Skip to content

Commit

Permalink
Add VOTING_VAULTS + bugfix in sandbox contracts (#52)
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Sears <[email protected]>
  • Loading branch information
Fitblip and Fitblip authored Apr 5, 2022
1 parent 256d7f9 commit b4e0506
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hover-labs/kolibri-js",
"version": "4.0.0",
"version": "4.1.0",
"description": "SDK Code to Interact with Kolibri, a stablecoin built on Tezos",
"main": "build/src/index.js",
"files": [
Expand Down
6 changes: 6 additions & 0 deletions src/contracts/florencenet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ const contracts: ContractGroup = {
tz1cNABC2qtbbHKDDKdvxRkcyopL1kEfbpgV: ['KT1H3Z1NWBEyUt1kzU1BV7GZZfMa991xPbDB'],
},

VOTING_VAULTS: {
tz1YeYpdJshsXxkPdSdKUJaF1QmH1ngCrJ7V: 'KT1MBPwY93j5LN2u3UQcsEUDA927FfcxaTSr',
tz1Xh11mHYWxbYHv55AVhsPPPJeSp8PunERB: 'KT1AXRyS5bgWWSV77xU5yNXKgDQ7NE7rbnPH',
tz1cNABC2qtbbHKDDKdvxRkcyopL1kEfbpgV: 'KT1H3Z1NWBEyUt1kzU1BV7GZZfMa991xPbDB',
},

BREAK_GLASS_CONTRACTS: {
MINTER: 'KT1AbZ25BiDxtAvwFcsnyzCBJzz6iZPPMVRk',
OVEN_PROXY: 'KT1SysbBUcNKWKZVrSiViGASqM5gF4qMuGtf',
Expand Down
6 changes: 6 additions & 0 deletions src/contracts/granadanet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ const contracts: ContractGroup = {
tz1cNABC2qtbbHKDDKdvxRkcyopL1kEfbpgV: ['KT1SrgtuHnESCcpLxarXv2YykjNfuEETXTJQ'],
},

VOTING_VAULTS: {
tz1YeYpdJshsXxkPdSdKUJaF1QmH1ngCrJ7V: 'KT1Sv3wpMRvQbTE1J6cq2mpJnHXnYvZ8KypA',
tz1Xh11mHYWxbYHv55AVhsPPPJeSp8PunERB: 'KT1R8yEPU7jaBzka68o8WDXb3Xgnpgbw9nZX',
tz1cNABC2qtbbHKDDKdvxRkcyopL1kEfbpgV: 'KT1SrgtuHnESCcpLxarXv2YykjNfuEETXTJQ',
},

BREAK_GLASS_CONTRACTS: {
MINTER: 'KT1KXNGKc3k7FiyAQ2b5BS6rVCZYkNTEpXSa',
OVEN_PROXY: 'KT1R9287AvXLiBmkfnVrjHPTidQCR8qS1v7n',
Expand Down
6 changes: 6 additions & 0 deletions src/contracts/hangzhounet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ const contracts: ContractGroup = {
tz1cNABC2qtbbHKDDKdvxRkcyopL1kEfbpgV: ['KT1D1UyDWN2Q52SENuWjq8DdxVqqsmqQT1JQ'],
},

VOTING_VAULTS: {
tz1YeYpdJshsXxkPdSdKUJaF1QmH1ngCrJ7V: 'KT1UpziYhnqkLmhHhjBKAf4Z4VqPDW9jaK7J',
tz1Xh11mHYWxbYHv55AVhsPPPJeSp8PunERB: 'KT1NVBwsunSuFwxUWki5Y5ZW7voaXahGUpWf',
tz1cNABC2qtbbHKDDKdvxRkcyopL1kEfbpgV: 'KT1D1UyDWN2Q52SENuWjq8DdxVqqsmqQT1JQ',
},

BREAK_GLASS_CONTRACTS: {
MINTER: 'KT1PuF7NbRKZTyxHsijboUobFrSQFFCG2uDf',
OVEN_PROXY: 'KT1HeWCmuEGsyE3czZ33hz1ViZYQF9xu8jLH',
Expand Down
6 changes: 6 additions & 0 deletions src/contracts/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ const contracts: ContractGroup = {
tz1Xh11mHYWxbYHv55AVhsPPPJeSp8PunERB: ['KT1TDgMJA7daH2Dg271dXV3SAMLfhd4kiJGb'],
},

VOTING_VAULTS: {
tz1YeYpdJshsXxkPdSdKUJaF1QmH1ngCrJ7V: 'KT1JyC6ShDjT9DtdjZAjWFsvuQuev2f49UXn',
tz1cNABC2qtbbHKDDKdvxRkcyopL1kEfbpgV: 'KT1A4N9amP26gjPknxAsVZNP5xgLGu4yqKka',
tz1Xh11mHYWxbYHv55AVhsPPPJeSp8PunERB: 'KT1TDgMJA7daH2Dg271dXV3SAMLfhd4kiJGb',
},

BREAK_GLASS_CONTRACTS: {
MINTER: 'KT1TrqGSqnnkbaRUjTNFfd2BWnpAk6MocnwX',
OVEN_PROXY: 'KT1FTT7CYwEqJErbGkk6ZrWonLtYa8SpTEbH',
Expand Down
5 changes: 4 additions & 1 deletion src/contracts/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ const contracts: ContractGroup = {
PAYMENT_VAULTS: {
tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb: ['KT1XUKeMZDTeAQNEYrhif61BkcSjbERR6Kav'],
},
VOTING_VAULTS: {
tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb: 'KT1XUKeMZDTeAQNEYrhif61BkcSjbERR6Kav'
},
BREAK_GLASS_CONTRACTS: {
MINTER: 'KT1Q5N3KZtsyo7TTLFfWSmk98bBaFdFe44hm',
OVEN_PROXY: 'KT1T4qDyNsGEnxprtChrL59Hmaw6iLUDEtuz',
Expand All @@ -62,7 +65,7 @@ const contracts: ContractGroup = {
SAVINGS_POOL: 'KT1WnKoVnBWPA8VUqMYfVfMgiX6pda5Z8gNn',
DAO_COMMUNITY_FUND: 'KT1SVzcqJE9Hvo5PjtxRTTYSThpQEaaFNGHy',
PAYMENT_VAULTS: {
KT1N8xjKYSawu93uG8LuTHPsYPMeGdWQHffL: ['KT193RkaYfHLoH3KbNnqY5mFnBnjLKHW72Uu'],
tz1VSUr8wwNhLAzempoch5d6hLRiTh8Cjcjb: ['KT1N8xjKYSawu93uG8LuTHPsYPMeGdWQHffL'],
},
},
}
Expand Down
7 changes: 7 additions & 0 deletions src/types/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,16 @@ export type ContractGroup = {
}
}

// A user may have multiple payment vaults. Voting vaults should be a subset
PAYMENT_VAULTS: {
[key: string]: string[]
}

// A user only has one "voting vault" and we'll use this for the DAO frontend
VOTING_VAULTS: {
[key: string]: string
}

BREAK_GLASS_CONTRACTS: {
MINTER: DeployedContractAddressOrNull
OVEN_PROXY: DeployedContractAddressOrNull
Expand All @@ -83,6 +89,7 @@ export type ContractGroup = {
LIQUIDITY_POOL: DeployedContractAddressOrNull
SAVINGS_POOL: DeployedContractAddressOrNull
DAO_COMMUNITY_FUND: DeployedContractAddressOrNull
// All payment vaults should also capture all voting vaults
PAYMENT_VAULTS: {
[key: string]: string[]
}
Expand Down

0 comments on commit b4e0506

Please sign in to comment.