@ref-finance/ref-sdk 1.1.3 → 1.1.5

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/ref.d.ts CHANGED
@@ -1,8 +1,30 @@
1
- import { Near } from 'near-api-js';
2
1
  import { TokenMetadata, FTStorageBalance, RefFiViewFunctionOptions } from './types';
3
2
  import { Transaction } from './types';
4
3
  export declare const REPLACE_TOKENS: string[];
5
- export declare const near: Near;
4
+ export declare const init_env: (env: string) => {
5
+ config: {
6
+ networkId: string;
7
+ nodeUrl: string;
8
+ walletUrl: string;
9
+ WRAP_NEAR_CONTRACT_ID: string;
10
+ REF_FI_CONTRACT_ID: string;
11
+ REF_TOKEN_ID: string;
12
+ indexerUrl: string;
13
+ explorerUrl: string;
14
+ REF_DCL_SWAP_CONTRACT_ID: string;
15
+ };
16
+ REF_FI_CONTRACT_ID: string;
17
+ WRAP_NEAR_CONTRACT_ID: string;
18
+ REF_TOKEN_ID: string;
19
+ REF_META_DATA: {
20
+ decimals: number;
21
+ icon: string;
22
+ id: string;
23
+ name: string;
24
+ symbol: string;
25
+ };
26
+ WNEAR_META_DATA: TokenMetadata;
27
+ };
6
28
  export declare const refFiViewFunction: ({ methodName, args, }: RefFiViewFunctionOptions) => Promise<any>;
7
29
  export declare const ftViewFunction: (tokenId: string, { methodName, args }: RefFiViewFunctionOptions) => Promise<any>;
8
30
  export declare const ftGetStorageBalance: (tokenId: string, AccountId: string) => Promise<FTStorageBalance | null>;
@@ -5,7 +5,6 @@ export declare const REF_WIDGET_SWAP_OUT_KEY = "REF_WIDGET_SWAP_OUT_VALUE";
5
5
  export declare const REF_WIDGET_SWAP_DETAIL_KEY = "REF_WIDGET_SWAP_DETAIL_VALUE";
6
6
  export declare const DEFAULT_START_TOKEN_LIST_TESTNET: string[];
7
7
  export declare const DEFAULT_START_TOKEN_LIST_MAINNET: string[];
8
- export declare const DEFAULT_START_TOKEN_LIST: string[];
9
8
  export interface Theme {
10
9
  container: string;
11
10
  buttonBg: string;
@@ -72,7 +72,7 @@ export declare const DefaultMainnetTokenList: ({
72
72
  decimals: number;
73
73
  id: string;
74
74
  })[];
75
- export declare function getDefaultTokenList(env?: string | undefined): ({
75
+ export declare function getDefaultTokenList(): ({
76
76
  spec: string;
77
77
  name: string;
78
78
  symbol: string;
@@ -1,5 +1,4 @@
1
1
  import { Pool } from '../types';
2
- export declare const DEFAULT_PAGE_LIMIT = 100;
3
2
  export declare const getRatedPoolDetail: ({ id }: {
4
3
  id: string | number;
5
4
  }) => Promise<any>;
@@ -9,7 +8,7 @@ export declare const getUnRatedPoolDetail: ({ id }: {
9
8
  export declare const getStablePools: (stablePools: Pool[]) => Promise<any[]>;
10
9
  export declare const getPool: (id: number) => Promise<Pool>;
11
10
  export declare const getRefPools: (page?: number, perPage?: number) => Promise<Pool[]>;
12
- export declare const fetchAllPools: () => Promise<{
11
+ export declare const fetchAllPools: (perPage?: number | undefined) => Promise<{
13
12
  simplePools: Pool[];
14
13
  unRatedPools: Pool[];
15
14
  ratedPools: Pool[];
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.3",
2
+ "version": "1.1.5",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -46,7 +46,6 @@
46
46
  }
47
47
  ],
48
48
  "devDependencies": {
49
- "@react-icons/all-files": "^4.1.0",
50
49
  "@size-limit/preset-small-lib": "^8.0.1",
51
50
  "@types/react": "^17.0.17",
52
51
  "@types/react-dom": "^17.0.6",
@@ -77,5 +76,9 @@
77
76
  "lodash": "^4.17.21",
78
77
  "bn.js": "^5.2.0",
79
78
  "@react-icons/all-files": "^4.1.0"
79
+ },
80
+ "resolutions": {
81
+ "jsdom": "^16.5.0",
82
+ "node-notifier": "^8.0.1"
80
83
  }
81
84
  }