Skip to content

Commit

Permalink
refactor(types): rollup module
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed May 14, 2024
1 parent 8035737 commit f280790
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
1 change: 0 additions & 1 deletion packages/orchestration/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line import/export
export * from './src/types.js';
export * from './src/service.js';
export * from './src/typeGuards.js';
32 changes: 1 addition & 31 deletions packages/orchestration/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/* eslint-disable no-use-before-define -- fine for types */
// Ambients
import '@agoric/zoe/exported.js';

import { ChainAddress, DenomArg, TransferMsg } from './orchestration-api.js';
/** @file Rollup of all type definitions in the package, for local import and external export */

export type * from './chain-info.js';
export type * from './cosmos-api.js';
Expand All @@ -12,29 +8,3 @@ export type * from './exos/icqConnectionKit.js';
export type * from './orchestration-api.js';
export type * from './service.js';
export type * from './vat-orchestration.js';

// marker interface
interface QueryResult {}

/**
* @param pool - Required. Pool number
* @example
* await icaNoble.transferSteps(usdcAmt,
* osmosisSwap(tiaBrand, { pool: 1224, slippage: 0.05 }, icaCel.getAddress()));
*/
export type OsmoSwapOptions = {
pool: string;
slippage?: Number;
};

/**
* Make a TransferMsg for a swap operation.
* @param denom - the currency to swap to
* @param options
* @param slippage - the maximum acceptable slippage
*/
export type OsmoSwapFn = (
denom: DenomArg,
options: Partial<OsmoSwapOptions>,
next: TransferMsg | ChainAddress,
) => TransferMsg;

0 comments on commit f280790

Please sign in to comment.