Skip to content

Commit

Permalink
chore: regen gov-startPSM.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Apr 24, 2022
1 parent 846f19c commit 7573378
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/run-protocol/scripts/gov-startPSM.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const config = {
denom: "ibc/949E954E05CE9E63E072ABD13A7DAAAB338A1E57FFBC148C50D74451AB5067D1",
},
installCache: {
boardId: "board04827",
boardId: "board04312",
},
mintHolder: {
endoZipBase64Sha512: "cfc000f4f6d1065908271c700d2e66102b6c5121bb80c750fab2fc99474ad9dda5c5edd866bd6546d4301e43900981da76b6257282256049cd85ab9704788bc9",
Expand Down Expand Up @@ -86,17 +86,19 @@ const makeAnchorAsset = async (
options: {
denom,
proposedName = 'USDC Anchor',
name = 'AUSD',
keyword = 'AUSD',
decimalPlaces = 6,
},
},
) => {
/** @type {import\('@agoric/vats/src/mintHolder.js').AssetTerms} */
const terms = {
keyword,
assetKind: AssetKind.NAT,
displayInfo: { decimalPlaces, assetKind: AssetKind.NAT },
};
const { creatorFacet: mint, publicFacet: issuer } = E.get(
E(zoe).startInstance(mintHolder, {
name,
assetKind: AssetKind.NAT,
displayInfo: { decimalPlaces },
}),
E(zoe).startInstance(mintHolder, {}, terms),
);

const brand = await E(issuer).getBrand();
Expand All @@ -105,7 +107,7 @@ const makeAnchorAsset = async (
brandP.resolve(kit.brand);
return E(bankManager).addAsset(
denom,
name,
keyword,
proposedName,
kit, // with mint
);
Expand Down Expand Up @@ -252,6 +254,7 @@ const startPSMWorkAround = async agoricdev10Powers => {
const installCacheJSON = await E(board).getValue(config.installCache.boardId);
/** @type {{sha512: string, boardId: string}[]} */
const installInfo = JSON.parse(installCacheJSON);
console.info('@@', { installCacheJSON, installInfo });
const toBoardId = new Map(
installInfo.map(({ sha512, boardId }) => [sha512, boardId]),
);
Expand Down

0 comments on commit 7573378

Please sign in to comment.