-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(bootstrap): liq after add-collateral
- Loading branch information
Showing
7 changed files
with
420 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { makeHelpers } from '@agoric/deploy-script-support'; | ||
import { defaultProposalBuilder as vaultProposalBuilder } from './add-collateral-core.js'; | ||
import { defaultProposalBuilder as oraclesProposalBuilder } from './price-feed-core.js'; | ||
|
||
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */ | ||
export const starsVaultProposalBuilder = async powers => { | ||
return vaultProposalBuilder(powers, { | ||
interchainAssetOptions: { | ||
// Values for the Stargaze token on Osmosis | ||
denom: | ||
'ibc/987C17B11ABC2B20019178ACE62929FE9840202CE79498E29FE8E5CB02B7C0A4', | ||
decimalPlaces: 6, | ||
keyword: 'STARS', | ||
oracleBrand: 'STARS', | ||
proposedName: 'STARS', | ||
}, | ||
}); | ||
}; | ||
|
||
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */ | ||
export const starsOraclesProposalBuilder = async powers => { | ||
return oraclesProposalBuilder(powers, { | ||
AGORIC_INSTANCE_NAME: `STARS-USD price feed`, | ||
IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'STARS'], | ||
IN_BRAND_DECIMALS: 6, | ||
OUT_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'USD'], | ||
OUT_BRAND_DECIMALS: 4, | ||
oracleAddresses: [ | ||
// copied from decentral-main-vaults-config.json | ||
'agoric1krunjcqfrf7la48zrvdfeeqtls5r00ep68mzkr', | ||
'agoric19uscwxdac6cf6z7d5e26e0jm0lgwstc47cpll8', | ||
'agoric144rrhh4m09mh7aaffhm6xy223ym76gve2x7y78', | ||
'agoric19d6gnr9fyp6hev4tlrg87zjrzsd5gzr5qlfq2p', | ||
'agoric1n4fcxsnkxe4gj6e24naec99hzmc4pjfdccy5nj', | ||
], | ||
}); | ||
}; | ||
|
||
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */ | ||
export default async (homeP, endowments) => { | ||
const { writeCoreProposal } = await makeHelpers(homeP, endowments); | ||
await writeCoreProposal('add-STARS', starsVaultProposalBuilder); | ||
await writeCoreProposal('add-STARS-oracles', starsOraclesProposalBuilder); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.