-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes: #9393 ## Description Add a new priceFeed for StkATOM. ### Security Considerations None ### Scaling Considerations None ### Documentation Considerations None ### Testing Considerations [**Edited**]: added verification to an existing test in A3P. ### Upgrade Considerations This completes the sustainability upgrade by replacing the only priceFeed that wasn't handled in the A3P tests.
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 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
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,21 @@ | ||
import { makeHelpers } from '@agoric/deploy-script-support'; | ||
import { priceFeedProposalBuilder } from './priceFeedSupport.js'; | ||
|
||
const OPTIONS = { | ||
AGORIC_INSTANCE_NAME: 'stkATOM-USD price feed', | ||
IN_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'stkAtom'], | ||
OUT_BRAND_LOOKUP: ['agoricNames', 'oracleBrand', 'USD'], | ||
}; | ||
|
||
/** | ||
* @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} | ||
*/ | ||
export const defaultProposalBuilder = async ({ publishRef, install }) => { | ||
return priceFeedProposalBuilder({ publishRef, install }, OPTIONS); | ||
}; | ||
|
||
export default async (homeP, endowments) => { | ||
const { writeCoreProposal } = await makeHelpers(homeP, endowments); | ||
|
||
await writeCoreProposal('stkATOMPriceFeed', defaultProposalBuilder); | ||
}; |