Skip to content

Commit

Permalink
test(boot): FastLP/ufastlp is in published.agoricNames.vbankAsset
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Dec 17, 2024
1 parent 4e09dac commit 708c2f0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/boot/test/fast-usdc/fast-usdc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,22 @@ test.serial(
refreshAgoricNamesRemotes();
t.truthy(agoricNamesRemotes.instance.fastUsdc);
t.truthy(agoricNamesRemotes.brand.FastLP);
const lpAsset = agoricNamesRemotes.vbankAsset.FastLP;
t.like(lpAsset, {
issuerName: 'FastLP',
denom: 'ufastlp',
displayInfo: { assetKind: 'nat', decimalPlaces: 6 },
});
const lpId = lpAsset.brand.getBoardId();
t.is(agoricNamesRemotes.brand.FastLP.getBoardId(), lpId);

const { EV } = t.context.runUtils;
const agoricNames = await EV.vat('bootstrap').consumeItem('agoricNames');
const board = await EV.vat('bootstrap').consumeItem('board');
const getBoardAux = async name => {
const brand = await EV(agoricNames).lookup('brand', name);
const id = await EV(board).getId(brand);
t.is(id || null, lpId);
t.truthy(storage.data.get(`published.boardAux.${id}`));
return unmarshalFromVstorage(
storage.data,
Expand Down

0 comments on commit 708c2f0

Please sign in to comment.