Skip to content

Commit

Permalink
chore(fusdc): use WithOrchestrationOpts.disableStorageNode: true
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Dec 17, 2024
1 parent bdbeec1 commit fc56d7e
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 31 deletions.
6 changes: 1 addition & 5 deletions packages/boot/test/fast-usdc/fast-usdc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,7 @@ test.serial('writes account addresses to vstorage', async t => {
showValue: JSON.parse,
pattern: /published\.fastUsdc\.(feeConfig|feedPolicy|poolMetrics)/,
replacement: '',
note: `Under "published", the "fastUsdc" node is delegated to FastUSDC contract.
Note: published.fastUsdc.[settleAcctAddr], published.fastUsdc.[poolAcctAddr],
and published.fastUsdc.[intermediateAcctAddr] are published by @agoric/orchestration
via 'withOrchestration' and (local|cosmos)-orch-account-kit.js.
`,
owner: 'FastUSDC contract',
};

await documentStorageSchema(t, storage, doc);
Expand Down
25 changes: 0 additions & 25 deletions packages/boot/test/fast-usdc/snapshots/fast-usdc.test.ts.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,6 @@ Generated by [AVA](https://avajs.dev).
## writes account addresses to vstorage

> Under "published", the "fastUsdc" node is delegated to FastUSDC contract.
> Note: published.fastUsdc.[settleAcctAddr], published.fastUsdc.[poolAcctAddr],
> and published.fastUsdc.[intermediateAcctAddr] are published by @agoric/orchestration
> via 'withOrchestration' and (local|cosmos)-orch-account-kit.js.
>
> The example below illustrates the schema of the data published there.
>
> See also board marshalling conventions (_to appear_).
Expand All @@ -136,27 +132,6 @@ Generated by [AVA](https://avajs.dev).
settlementAccount: 'agoric1fakeLCAAddress1',
},
],
[
'published.fastUsdc.agoric1fakeLCAAddress',
{
body: '#""',
slots: [],
},
],
[
'published.fastUsdc.agoric1fakeLCAAddress1',
{
body: '#""',
slots: [],
},
],
[
'published.fastUsdc.noble1test',
{
body: '#{"localAddress":"/ibc-port/icacontroller-1/ordered/{\\"version\\":\\"ics27-1\\",\\"controllerConnectionId\\":\\"connection-72\\",\\"hostConnectionId\\":\\"connection-40\\",\\"address\\":\\"noble1test\\",\\"encoding\\":\\"proto3\\",\\"txType\\":\\"sdk_multi_msg\\"}/ibc-channel/channel-1","remoteAddress":"/ibc-hop/connection-72/ibc-port/icahost/ordered/{\\"version\\":\\"ics27-1\\",\\"controllerConnectionId\\":\\"connection-72\\",\\"hostConnectionId\\":\\"connection-40\\",\\"address\\":\\"noble1test\\",\\"encoding\\":\\"proto3\\",\\"txType\\":\\"sdk_multi_msg\\"}/ibc-channel/channel-1"}',
slots: [],
},
],
]

## makes usdc advance
Expand Down
Binary file modified packages/boot/test/fast-usdc/snapshots/fast-usdc.test.ts.snap
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/fast-usdc/src/fast-usdc.contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,6 @@ export const contract = async (zcf, privateArgs, zone, tools) => {
};
harden(contract);

export const start = withOrchestration(contract);
export const start = withOrchestration(contract, { disableStorageNode: true });
harden(start);
/** @typedef {typeof start} FastUsdcSF */

0 comments on commit fc56d7e

Please sign in to comment.