diff --git a/packages/orchestration/src/contracts/stakingAccountHolder.js b/packages/orchestration/src/contracts/stakingAccountHolder.js index 6fc77109a5b2..9fb4891b59b6 100644 --- a/packages/orchestration/src/contracts/stakingAccountHolder.js +++ b/packages/orchestration/src/contracts/stakingAccountHolder.js @@ -94,7 +94,7 @@ export const prepareStakingAccountHolder = (baggage, makeRecorderKit, zcf) => { return this.state.topicKit.recorder; }, // TODO move this beneath the Orchestration abstraction, - // to the OrchestrationAccount provided by provideAccount() + // to the OrchestrationAccount provided by makeAccount() /** * _Assumes users has already sent funds to their ICA, until #9193 * @param {string} validatorAddress diff --git a/packages/orchestration/src/contracts/swapExample.contract.js b/packages/orchestration/src/contracts/swapExample.contract.js index da059e0ba93b..21ab5f79fc2b 100644 --- a/packages/orchestration/src/contracts/swapExample.contract.js +++ b/packages/orchestration/src/contracts/swapExample.contract.js @@ -26,8 +26,8 @@ export const start = async (zcf, privateArgs) => { !AmountMath.isEmpty(give.USDC) || Fail`Must provide USDC.`; const [celestiaAccount, localAccount] = await Promise.all([ - E(celestia).provideAccount('main'), - E(agoric).provideAccount('main'), + E(celestia).makeAccount(), + E(agoric).makeAccount(), ]); const tiaAddress = await E( diff --git a/packages/orchestration/src/types.d.ts b/packages/orchestration/src/types.d.ts index 2579603120dc..891e5fda04a9 100644 --- a/packages/orchestration/src/types.d.ts +++ b/packages/orchestration/src/types.d.ts @@ -77,17 +77,12 @@ interface QueryResult {} */ export interface Chain { getChainInfo: () => Promise; - // TODO change this to makeAccount(), letting the scope handle naming /** - * Provide (get or make) an account on the chain. The account is a - * named account associated with the current orchestrator instance - * (typically associated with a specific seat). If an account for this `Chain` - * with the provided `petName` already exists, it is returned, - * otherwise a new account is created on the remote Chain. - * @param petName + * Make an account on the chain, associated with the current orchestrator + * instance (typically associated with a specific seat). * @returns the account that controls the */ - provideAccount: (petName?: string) => Promise; + makeAccount: () => Promise; /* query external chain state */ query: (queries: Proto3JSONMsg[]) => Promise>;