Skip to content

Commit

Permalink
WIP WIP WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jun 25, 2024
1 parent b7fc6e7 commit 6843b3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion packages/orchestration/src/utils/orc.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const orcUtils = {
/** @type {XCSv2Msg<null>} */
const it = {
osmosis_swap: {
output_denom, // @@@TODO
output_denom: '// @@@TODO',
slippage: {
twap: {
slippage_percentage: `${opts.slippage * 100}`,
Expand Down
25 changes: 5 additions & 20 deletions packages/orchestration/test/orc-utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import type { VBankAssetInfo } from '../src/exos/chain-hub.js';
import { orcUtils } from '../src/utils/orc.js';
import { commonSetup } from './supports.js';
import { denomHash } from '../src/utils/denomHash.js';
import { provideOrchestration } from '../src/utils/start-helper.js';

const { fromEntries, values } = Object;

Expand Down Expand Up @@ -99,28 +100,12 @@ test.before(async t => (t.context = await makeTestContext(t)));
const mockContractStartup = async (t, chainHub) => {
const { bootstrap, facadeServices, commonPrivateArgs } = t.context;
// const { zcf } = await setupZCFTest(t);
const zcf = {};
const { marshaller, timerService } = commonPrivateArgs;
const zcf = {} as ZCF;
const { marshaller } = commonPrivateArgs;
const zone = bootstrap.rootZone.subZone('orchContractStartup');
const vowTools = prepareVowTools(zone.subZone('VowTools'));
const baggage = zone.mapStore('baggage1');
const { makeRecorderKit } = prepareRecorderKitMakers(baggage, marshaller);
const makeLocalChainAccountKit = prepareLocalOrchestrationAccountKit(
zone,
makeRecorderKit,
zcf,
timerService,
vowTools,
chainHub,
);
return makeOrchestrationFacade({
...commonPrivateArgs,
zcf,
zone: bootstrap.rootZone.subZone('contract1'),
chainHub,
makeLocalChainAccountKit,
...facadeServices,
});

return provideOrchestration(zcf, baggage, commonPrivateArgs, marshaller);
};

test('Agoric ATOM denom -> cosmos hub ATOM denom -> osmosis ATOM denom', async t => {
Expand Down

0 comments on commit 6843b3f

Please sign in to comment.