Skip to content

Commit

Permalink
refactor: move example contracts under test
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Apr 26, 2024
1 parent b78d824 commit a19eadd
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions packages/orchestration/src/proposals/start-stakeAtom.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { makeTracer } from '@agoric/internal';
import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
import { E } from '@endo/far';

/** @import { StakeAtomSF, StakeAtomTerms} from '../contracts/stakeAtom.contract' */
/** @import { StakeAtomSF, StakeAtomTerms} from '../../test/examples/stakeAtom.contract' */

const trace = makeTracer('StartStakeAtom', true);

/**
* @param {BootstrapPowers & { installation: {consume: {stakeAtom: Installation<import('../contracts/stakeAtom.contract.js').start>}}}} powers
* @param {BootstrapPowers & { installation: {consume: {stakeAtom: Installation<import('../../test/examples/stakeAtom.contract.js').start>}}}} powers
* @param {{options: StakeAtomTerms }} options
*/
export const startStakeAtom = async (
Expand Down
4 changes: 2 additions & 2 deletions packages/orchestration/src/proposals/start-stakeBld.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { E } from '@endo/far';
const trace = makeTracer('StartStakeBld', true);

/**
* @param {BootstrapPowers & {installation: {consume: {stakeBld: Installation<import('../contracts/stakeBld.contract.js').start>}}}} powers
* @param {BootstrapPowers & {installation: {consume: {stakeBld: Installation<import('../../test/examples/stakeBld.contract.js').start>}}}} powers
*/
export const startStakeBld = async ({
consume: { board, chainStorage, localchain, startUpgradable },
Expand All @@ -29,7 +29,7 @@ export const startStakeBld = async ({
const marshaller = await E(board).getPublishingMarshaller();

// FIXME this isn't detecting missing privateArgs
/** @type {StartUpgradableOpts<import('../contracts/stakeBld.contract.js').start>} */
/** @type {StartUpgradableOpts<import('../../test/examples/stakeBld.contract.js').start>} */
const startOpts = {
label: 'stakeBld',
installation: stakeBld,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { makeDurableZone } from '@agoric/zone/durable.js';
import { V as E } from '@agoric/vat-data/vow.js';
import { M } from '@endo/patterns';
import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport';
import { prepareStakingAccountHolder } from './stakingAccountHolder.js';
import { prepareStakingAccountHolder } from '../../src/contracts/stakingAccountHolder.js';

const trace = makeTracer('StakeAtom');
/**
* @import { OrchestrationService } from '../service.js'
* @import { OrchestrationService } from '../../src/service.js'
* @import { Baggage } from '@agoric/vat-data';
* @import { IBCConnectionID } from '@agoric/vats';
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { M } from '@endo/patterns';
import { E } from '@endo/far';
import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport/recorder.js';
import { atomicTransfer } from '@agoric/zoe/src/contractSupport/atomicTransfer.js';
import { prepareAccountHolder } from './localchainAccountHolder.js';
import { prepareAccountHolder } from '../../src/contracts/localchainAccountHolder.js';

const trace = makeTracer('StakeBld');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { Fail } from '@agoric/assert';
import { AmountMath, AmountShape } from '@agoric/ertp';
import { E, Far } from '@endo/far';
import { M } from '@endo/patterns';
import { makeOrchestrationFacade } from '../facade.js';
import { orcUtils } from '../utils/orc.js';
import { makeOrchestrationFacade } from '../../src/facade.js';
import { orcUtils } from '../../src/utils/orc.js';

/**
* @import {Orchestrator, ChainAccount, CosmosValidatorAddress} from '../types.js'
* @import {Orchestrator, ChainAccount, CosmosValidatorAddress} from '../../src/types.js'
* @import {TimerService} from '@agoric/time';
* @import {ERef} from '@endo/far'
* @import {OrchestrationService} from '../service.js';
* @import {OrchestrationService} from '../../src/service.js';
* @import {Zone} from '@agoric/zone';
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { Fail } from '@agoric/assert';
import { AmountMath, AmountShape } from '@agoric/ertp';
import { Far } from '@endo/far';
import { M } from '@endo/patterns';
import { makeOrchestrationFacade } from '../facade.js';
import { makeOrchestrationFacade } from '../../src/facade.js';

/**
* @import {Orchestrator, ChainAccount, CosmosValidatorAddress} from '../types.js'
* @import {Orchestrator, ChainAccount, CosmosValidatorAddress} from '../../src/types.js'
* @import {TimerService} from '@agoric/time';
* @import {ERef} from '@endo/far'
* @import {OrchestrationService} from '../service.js';
* @import {OrchestrationService} from '../../src/service.js';
* @import {Zone} from '@agoric/zone';
*/

Expand Down

0 comments on commit a19eadd

Please sign in to comment.