From 2347cca16c241ce9cfc3f3108f2122921cd8ea02 Mon Sep 17 00:00:00 2001 From: 0xPatrick Date: Wed, 24 Apr 2024 20:50:10 -0400 Subject: [PATCH] fixup! feat(stakeAtom): implement queryBalance --- packages/orchestration/index.js | 2 +- .../src/contracts/stakingAccountHolder.js | 2 +- packages/orchestration/src/types.d.ts | 10 +++++++--- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/orchestration/index.js b/packages/orchestration/index.js index b6857fbeda65..3d31f6afe135 100644 --- a/packages/orchestration/index.js +++ b/packages/orchestration/index.js @@ -4,4 +4,4 @@ export * from './src/utils/address.js'; export * from './src/utils/packet.js'; export * from './src/service.js'; export * from './src/queryConnection.js'; -export * from './src/guards.js'; +export * from './src/typeGuards.js'; diff --git a/packages/orchestration/src/contracts/stakingAccountHolder.js b/packages/orchestration/src/contracts/stakingAccountHolder.js index b4b65de389df..3644bc996c48 100644 --- a/packages/orchestration/src/contracts/stakingAccountHolder.js +++ b/packages/orchestration/src/contracts/stakingAccountHolder.js @@ -80,7 +80,7 @@ export const prepareStakingAccountHolder = (baggage, makeRecorderKit, zcf) => { }), }, /** - * @param {ChainAccount} account + * @param {ChainAccountKit['account']} account * @param {StorageNode} storageNode * @param {ChainAddress['address']} chainAddress * @param {import('../queryConnection.js').QueryConnection} queryConnection diff --git a/packages/orchestration/src/types.d.ts b/packages/orchestration/src/types.d.ts index 53d61b47dece..c9bbecb78c81 100644 --- a/packages/orchestration/src/types.d.ts +++ b/packages/orchestration/src/types.d.ts @@ -12,7 +12,7 @@ import type { export type AttenuatedNetwork = Pick; -export type * from './orchestration.js'; +export type * from './service.js'; export type * from './vat-orchestration.js'; export type * from './utils/packet.js'; export type * from './queryConnection.js'; @@ -457,6 +457,10 @@ export type OsmoSwapFn = ( next: TransferMsg | ChainAddress, ) => TransferMsg; -type AfterAction = { destChain: string; destAddress: ChainAddress }; +export type AfterAction = { destChain: string; destAddress: ChainAddress }; type SwapExact = { amountIn: Amount; amountOut: Amount }; -type SwapMaxSlippage = { amountIn: Amount; brandOut: Brand; slippage: number }; +export type SwapMaxSlippage = { + amountIn: Amount; + brandOut: Brand; + slippage: number; +};