@ref-finance/ref-sdk 1.4.5 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/utils.d.ts CHANGED
@@ -3,6 +3,7 @@ import BN from 'bn.js';
3
3
  import * as math from 'mathjs';
4
4
  import Big from 'big.js';
5
5
  import { TokenMetadata } from './types';
6
+ import { SignAndSendTransactionsParams } from '@near-wallet-selector/core/lib/wallet';
6
7
  export declare const parsePool: (pool: PoolRPCView, id?: number | undefined) => Pool;
7
8
  export declare const poolFormatter: (pool: Pool) => SmartRoutingInputPool;
8
9
  export declare const isStablePoolToken: (stablePools: StablePool[], tokenId: string | Number) => boolean;
@@ -33,21 +34,7 @@ export declare const transformTransactions: (transactions: Transaction[], Accoun
33
34
  };
34
35
  }[];
35
36
  }[];
36
- export declare const WalletSelectorTransactions: (transactions: Transaction[], AccountId: string) => {
37
- transactions: {
38
- signerId: string;
39
- receiverId: string;
40
- actions: {
41
- type: string;
42
- params: {
43
- methodName: string;
44
- args: object;
45
- gas: string;
46
- deposit: string;
47
- };
48
- }[];
49
- }[];
50
- };
37
+ export declare const WalletSelectorTransactions: (transactions: Transaction[], AccountId: string) => SignAndSendTransactionsParams;
51
38
  export declare const separateRoutes: (actions: EstimateSwapView[], outputToken: string) => EstimateSwapView[][];
52
39
  export declare const calculateExchangeRate: (from: string, to: string, precision?: number | undefined) => string;
53
40
  export declare const getAvgFee: (estimates: EstimateSwapView[], outputToken: string, parsedAmountIn: string) => number;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.5",
2
+ "version": "1.4.6",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",