wative 1.2.5 → 1.2.7
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/lib/account.d.ts +13 -13
- package/lib/account.d.ts.map +1 -1
- package/lib/assets.d.ts +10 -10
- package/lib/assets.d.ts.map +1 -1
- package/lib/chain.d.ts +5 -5
- package/lib/chain.d.ts.map +1 -1
- package/lib/config.d.ts +22 -22
- package/lib/home_page.d.ts +3 -3
- package/lib/home_page.d.ts.map +1 -1
- package/lib/index.d.ts +11 -11
- package/lib/index.esm.js +1 -1
- package/lib/index.umd.js +1 -1
- package/lib/network.d.ts +27 -27
- package/lib/network.d.ts.map +1 -1
- package/lib/ssh/client.d.ts +119 -119
- package/lib/ssh/config_manager.d.ts +54 -54
- package/lib/ssh/index.d.ts +7 -7
- package/lib/ssh/index.d.ts.map +1 -1
- package/lib/ssh/service_manager.d.ts +118 -118
- package/lib/ssh/types.d.ts +43 -44
- package/lib/ssh/types.d.ts.map +1 -1
- package/lib/ssh/utils.d.ts +10 -10
- package/lib/ssh/utils.d.ts.map +1 -1
- package/lib/ssh/wative_server.d.ts +25 -25
- package/lib/ssh/wative_server.d.ts.map +1 -1
- package/lib/tools.d.ts +5 -5
- package/lib/tools.d.ts.map +1 -1
- package/lib/tx_gas_utils.d.ts +17 -17
- package/lib/utils.d.ts +48 -48
- package/lib/utils.d.ts.map +1 -1
- package/lib/wallet-cli.d.ts +1 -1
- package/lib/wallet-cli.esm.js +1 -1
- package/lib/wallet-cli.umd.js +1 -1
- package/lib/wative.d.ts +3 -3
- package/lib/web3.d.ts +58 -58
- package/lib/web3.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/ssh/types.ts +1 -3
- package/src/utils.ts +2 -0
- package/src/ssh/client.rs +0 -221
package/lib/account.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
declare const WativeCore: any;
|
|
2
|
-
export declare const getNetworkInfo: (keystore_path: string) => any;
|
|
3
|
-
export declare const getAccountInfo: (keystore_path: string, keystore_slug: string) => any;
|
|
4
|
-
export declare const saveAccountInfo: (keystore_path: string, keystore_slug: string, account_info: any) => void;
|
|
5
|
-
export declare const loginIn: (keystore_path: string, keystore_slug: string, wative_core: typeof WativeCore) => Promise<{
|
|
6
|
-
isLoginIn: boolean;
|
|
7
|
-
password?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
isLoginIn: boolean;
|
|
10
|
-
password: any;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const accountSetting: (keystore_path: string, wative_core: typeof WativeCore) => Promise<void>;
|
|
13
|
-
export {};
|
|
1
|
+
declare const WativeCore: any;
|
|
2
|
+
export declare const getNetworkInfo: (keystore_path: string) => any;
|
|
3
|
+
export declare const getAccountInfo: (keystore_path: string, keystore_slug: string) => any;
|
|
4
|
+
export declare const saveAccountInfo: (keystore_path: string, keystore_slug: string, account_info: any) => void;
|
|
5
|
+
export declare const loginIn: (keystore_path: string, keystore_slug: string, wative_core: typeof WativeCore) => Promise<{
|
|
6
|
+
isLoginIn: boolean;
|
|
7
|
+
password?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
isLoginIn: boolean;
|
|
10
|
+
password: any;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const accountSetting: (keystore_path: string, wative_core: typeof WativeCore) => Promise<void>;
|
|
13
|
+
export {};
|
|
14
14
|
//# sourceMappingURL=account.d.ts.map
|
package/lib/account.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAgCA,QAAA,MAAQ,UAAU,KAA2B,CAAC;AA8M9C,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAgCA,QAAA,MAAQ,UAAU,KAA2B,CAAC;AA8M9C,eAAO,MAAM,cAAc,kBAAmB,MAAM,QAInD,CAAA;AAED,eAAO,MAAM,cAAc,kBAAmB,MAAM,iBAAiB,MAAM,QAI1E,CAAA;AAED,eAAO,MAAM,eAAe,kBAAmB,MAAM,iBAAiB,MAAM,gBAAgB,GAAG,SAG9F,CAAA;AAED,eAAO,MAAM,OAAO,kBAAyB,MAAM,iBAAiB,MAAM,eAAe,iBAAiB;;;;;;EAyCzG,CAAA;AA6gBD,eAAO,MAAM,cAAc,kBAAyB,MAAM,eAAe,iBAAiB,kBA0CzF,CAAA"}
|
package/lib/assets.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare const getAssetList: (keystore_path: string, chain_id: string) => Promise<any>;
|
|
2
|
-
export declare const getAssetListByTokenName: (keystore_path: string, chain_id: string, token_name: string) => Promise<any>;
|
|
3
|
-
export declare const showAssetsDetail: (keystore_path: string, default_network: string, account_address: string) => Promise<void>;
|
|
4
|
-
export declare const updateTokenBalanceOption: (keystore_path: string, default_network: string, account_address: string) => Promise<void>;
|
|
5
|
-
export declare const saveAsset: (keystore_path: string, chain_id: string, asset_address: string, symbol: string, name: string, decimals: number, display_decimals: number) => Promise<void>;
|
|
6
|
-
export declare const addToken: (keystore_path: string) => Promise<void>;
|
|
7
|
-
export declare const addAsset: (keystore_path: string, default_network: string) => Promise<void>;
|
|
8
|
-
export declare const showAssets: (keystore_path: string, account_address: string, default_network: string) => Promise<void>;
|
|
9
|
-
export declare const batchGetTokenBalance: (account_address: string, asset_info_list: any, rpc_url: string, chain_type: string, chain_id: string) => Promise<any>;
|
|
10
|
-
export declare const getBatchAccountBalance: (keystore_path: string, account_address_list: string[], asset_info_list: any, rpc_url: string, network_name: string, show_gas_token: boolean, show_extended_token: boolean) => Promise<any>;
|
|
1
|
+
export declare const getAssetList: (keystore_path: string, chain_id: string) => Promise<any>;
|
|
2
|
+
export declare const getAssetListByTokenName: (keystore_path: string, chain_id: string, token_name: string) => Promise<any>;
|
|
3
|
+
export declare const showAssetsDetail: (keystore_path: string, default_network: string, account_address: string) => Promise<void>;
|
|
4
|
+
export declare const updateTokenBalanceOption: (keystore_path: string, default_network: string, account_address: string) => Promise<void>;
|
|
5
|
+
export declare const saveAsset: (keystore_path: string, chain_id: string, asset_address: string, symbol: string, name: string, decimals: number, display_decimals: number) => Promise<void>;
|
|
6
|
+
export declare const addToken: (keystore_path: string) => Promise<void>;
|
|
7
|
+
export declare const addAsset: (keystore_path: string, default_network: string) => Promise<void>;
|
|
8
|
+
export declare const showAssets: (keystore_path: string, account_address: string, default_network: string) => Promise<void>;
|
|
9
|
+
export declare const batchGetTokenBalance: (account_address: string, asset_info_list: any, rpc_url: string, chain_type: string, chain_id: string) => Promise<any>;
|
|
10
|
+
export declare const getBatchAccountBalance: (keystore_path: string, account_address_list: string[], asset_info_list: any, rpc_url: string, network_name: string, show_gas_token: boolean, show_extended_token: boolean) => Promise<any>;
|
|
11
11
|
//# sourceMappingURL=assets.d.ts.map
|
package/lib/assets.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../src/assets.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY,kBACN,MAAM,YACX,MAAM,iBAcnB,CAAA;AAED,eAAO,MAAM,uBAAuB,kBACjB,MAAM,YACX,MAAM,cACJ,MAAM,iBAUrB,CAAA;AAED,eAAO,MAAM,gBAAgB,kBACV,MAAM,mBACJ,MAAM,mBACN,MAAM,kBAkC1B,CAAA;AAED,eAAO,MAAM,wBAAwB,kBAClB,MAAM,mBACJ,MAAM,mBACN,MAAM,kBAO1B,CAAA;AAED,eAAO,MAAM,SAAS,kBACH,MAAM,YACX,MAAM,iBACD,MAAM,UACb,MAAM,QACR,MAAM,YACF,MAAM,oBACE,MAAM,kBAsC3B,CAAA;AAED,eAAO,MAAM,QAAQ,kBACF,MAAM,kBA2DxB,CAAA;AAED,eAAO,MAAM,QAAQ,kBACF,MAAM,mBACJ,MAAM,kBAgD1B,CAAA;AAED,eAAO,MAAM,UAAU,kBACJ,MAAM,mBACJ,MAAM,mBACN,MAAM,kBAyB1B,CAAA;AAED,eAAO,MAAM,oBAAoB,oBACZ,MAAM,mBACN,GAAG,WACX,MAAM,cACH,MAAM,YACR,MAAM,iBAqDnB,CAAA;AAED,eAAO,MAAM,sBAAsB,kBAChB,MAAM,wBACC,MAAM,EAAE,mBACb,GAAG,WACX,MAAM,gBACD,MAAM,kBACJ,OAAO,uBACF,OAAO,iBA4C/B,CAAA"}
|
package/lib/chain.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const SOLANA_CHAIN_IDS: string[];
|
|
2
|
-
export declare const getNativeTokenDecimals: (chain_id: string) => 9 | 18;
|
|
3
|
-
export declare const getChainType: (chain_id: string) => "solana" | "evm";
|
|
4
|
-
export declare const isSolanaAddress: (account_address: string) => boolean;
|
|
5
|
-
export declare const isEvmAddress: (account_address: string) => boolean;
|
|
1
|
+
export declare const SOLANA_CHAIN_IDS: string[];
|
|
2
|
+
export declare const getNativeTokenDecimals: (chain_id: string) => 9 | 18;
|
|
3
|
+
export declare const getChainType: (chain_id: string) => "solana" | "evm";
|
|
4
|
+
export declare const isSolanaAddress: (account_address: string) => boolean;
|
|
5
|
+
export declare const isEvmAddress: (account_address: string) => boolean;
|
|
6
6
|
//# sourceMappingURL=chain.d.ts.map
|
package/lib/chain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../src/chain.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,UAAwB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../src/chain.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,gBAAgB,UAAwB,CAAC;AAEtD,eAAO,MAAM,sBAAsB,aAAc,MAAM,WAMtD,CAAA;AAED,eAAO,MAAM,YAAY,aAAc,MAAM,qBAM5C,CAAA;AAED,eAAO,MAAM,eAAe,oBAAqB,MAAM,YAGtD,CAAA;AAED,eAAO,MAAM,YAAY,oBAAqB,MAAM,YAGnD,CAAA"}
|
package/lib/config.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export declare const MNEMONIC_WORDS: string[];
|
|
2
|
-
export declare const DEFAULT_NETWORK: ({
|
|
3
|
-
name: string;
|
|
4
|
-
chainId: number;
|
|
5
|
-
rpcUrl: string;
|
|
6
|
-
nativeCurrency: {
|
|
7
|
-
name: string;
|
|
8
|
-
symbol: string;
|
|
9
|
-
decimals: number;
|
|
10
|
-
};
|
|
11
|
-
multicallAddress: string;
|
|
12
|
-
} | {
|
|
13
|
-
name: string;
|
|
14
|
-
chainId: number;
|
|
15
|
-
rpcUrl: string;
|
|
16
|
-
nativeCurrency: {
|
|
17
|
-
name: string;
|
|
18
|
-
symbol: string;
|
|
19
|
-
decimals: number;
|
|
20
|
-
};
|
|
21
|
-
multicallAddress?: undefined;
|
|
22
|
-
})[];
|
|
1
|
+
export declare const MNEMONIC_WORDS: string[];
|
|
2
|
+
export declare const DEFAULT_NETWORK: ({
|
|
3
|
+
name: string;
|
|
4
|
+
chainId: number;
|
|
5
|
+
rpcUrl: string;
|
|
6
|
+
nativeCurrency: {
|
|
7
|
+
name: string;
|
|
8
|
+
symbol: string;
|
|
9
|
+
decimals: number;
|
|
10
|
+
};
|
|
11
|
+
multicallAddress: string;
|
|
12
|
+
} | {
|
|
13
|
+
name: string;
|
|
14
|
+
chainId: number;
|
|
15
|
+
rpcUrl: string;
|
|
16
|
+
nativeCurrency: {
|
|
17
|
+
name: string;
|
|
18
|
+
symbol: string;
|
|
19
|
+
decimals: number;
|
|
20
|
+
};
|
|
21
|
+
multicallAddress?: undefined;
|
|
22
|
+
})[];
|
|
23
23
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/home_page.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const WativeCore: any;
|
|
2
|
-
export declare const showHomePage: (keystore_path: string, wative_core: typeof WativeCore) => Promise<void>;
|
|
3
|
-
export {};
|
|
1
|
+
declare const WativeCore: any;
|
|
2
|
+
export declare const showHomePage: (keystore_path: string, wative_core: typeof WativeCore) => Promise<void>;
|
|
3
|
+
export {};
|
|
4
4
|
//# sourceMappingURL=home_page.d.ts.map
|
package/lib/home_page.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"home_page.d.ts","sourceRoot":"","sources":["../src/home_page.ts"],"names":[],"mappings":"AAIA,QAAA,MAAQ,UAAU,KAA2B,CAAC;AAE9C,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"home_page.d.ts","sourceRoot":"","sources":["../src/home_page.ts"],"names":[],"mappings":"AAIA,QAAA,MAAQ,UAAU,KAA2B,CAAC;AAE9C,eAAO,MAAM,YAAY,kBAAyB,MAAM,eAAe,iBAAiB,kBA6BvF,CAAA"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export * as SSH from './ssh';
|
|
2
|
-
export * from './utils';
|
|
3
|
-
export * from './network';
|
|
4
|
-
export * from './account';
|
|
5
|
-
export * from './assets';
|
|
6
|
-
export * from './tools';
|
|
7
|
-
export * from './web3';
|
|
8
|
-
export * from './wative';
|
|
9
|
-
export * from './chain';
|
|
10
|
-
export * from './config';
|
|
11
|
-
export * from './tx_gas_utils';
|
|
1
|
+
export * as SSH from './ssh';
|
|
2
|
+
export * from './utils';
|
|
3
|
+
export * from './network';
|
|
4
|
+
export * from './account';
|
|
5
|
+
export * from './assets';
|
|
6
|
+
export * from './tools';
|
|
7
|
+
export * from './web3';
|
|
8
|
+
export * from './wative';
|
|
9
|
+
export * from './chain';
|
|
10
|
+
export * from './config';
|
|
11
|
+
export * from './tx_gas_utils';
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|