@reown/appkit-core-react-native 2.0.0-alpha.1 → 2.0.0-alpha.3
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/commonjs/controllers/ApiController.js +16 -21
- package/lib/commonjs/controllers/ApiController.js.map +1 -1
- package/lib/commonjs/controllers/AssetController.js +0 -4
- package/lib/commonjs/controllers/AssetController.js.map +1 -1
- package/lib/commonjs/controllers/BlockchainApiController.js +102 -112
- package/lib/commonjs/controllers/BlockchainApiController.js.map +1 -1
- package/lib/commonjs/controllers/ConnectionsController.js +248 -51
- package/lib/commonjs/controllers/ConnectionsController.js.map +1 -1
- package/lib/commonjs/controllers/EnsController.js +4 -4
- package/lib/commonjs/controllers/EnsController.js.map +1 -1
- package/lib/commonjs/controllers/EventsController.js +4 -4
- package/lib/commonjs/controllers/EventsController.js.map +1 -1
- package/lib/commonjs/controllers/ModalController.js +6 -7
- package/lib/commonjs/controllers/ModalController.js.map +1 -1
- package/lib/commonjs/controllers/OnRampController.js +117 -53
- package/lib/commonjs/controllers/OnRampController.js.map +1 -1
- package/lib/commonjs/controllers/OptionsController.js +10 -4
- package/lib/commonjs/controllers/OptionsController.js.map +1 -1
- package/lib/commonjs/controllers/PublicStateController.js.map +1 -1
- package/lib/commonjs/controllers/RouterController.js +6 -21
- package/lib/commonjs/controllers/RouterController.js.map +1 -1
- package/lib/commonjs/controllers/SendController.js +100 -100
- package/lib/commonjs/controllers/SendController.js.map +1 -1
- package/lib/commonjs/controllers/SnackController.js +29 -5
- package/lib/commonjs/controllers/SnackController.js.map +1 -1
- package/lib/commonjs/controllers/SwapController.js +109 -117
- package/lib/commonjs/controllers/SwapController.js.map +1 -1
- package/lib/commonjs/controllers/ThemeController.js.map +1 -1
- package/lib/commonjs/controllers/TransactionsController.js +23 -19
- package/lib/commonjs/controllers/TransactionsController.js.map +1 -1
- package/lib/commonjs/controllers/WcController.js +73 -0
- package/lib/commonjs/controllers/WcController.js.map +1 -0
- package/lib/commonjs/index.js +3 -38
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/utils/ApiUtil.js.map +1 -1
- package/lib/commonjs/utils/AssetUtil.js +6 -14
- package/lib/commonjs/utils/AssetUtil.js.map +1 -1
- package/lib/commonjs/utils/ConstantsUtil.js +13 -425
- package/lib/commonjs/utils/ConstantsUtil.js.map +1 -1
- package/lib/commonjs/utils/CoreHelperUtil.js +13 -8
- package/lib/commonjs/utils/CoreHelperUtil.js.map +1 -1
- package/lib/commonjs/utils/EventUtil.js.map +1 -1
- package/lib/commonjs/utils/FetchUtil.js +34 -10
- package/lib/commonjs/utils/FetchUtil.js.map +1 -1
- package/lib/commonjs/utils/RouterUtil.js.map +1 -1
- package/lib/commonjs/utils/StorageUtil.js +77 -129
- package/lib/commonjs/utils/StorageUtil.js.map +1 -1
- package/lib/commonjs/utils/SwapApiUtil.js +2 -17
- package/lib/commonjs/utils/SwapApiUtil.js.map +1 -1
- package/lib/commonjs/utils/SwapCalculationUtil.js.map +1 -1
- package/lib/module/controllers/ApiController.js +17 -21
- package/lib/module/controllers/ApiController.js.map +1 -1
- package/lib/module/controllers/AssetController.js +2 -4
- package/lib/module/controllers/AssetController.js.map +1 -1
- package/lib/module/controllers/BlockchainApiController.js +103 -111
- package/lib/module/controllers/BlockchainApiController.js.map +1 -1
- package/lib/module/controllers/ConnectionsController.js +250 -51
- package/lib/module/controllers/ConnectionsController.js.map +1 -1
- package/lib/module/controllers/EnsController.js +4 -2
- package/lib/module/controllers/EnsController.js.map +1 -1
- package/lib/module/controllers/EventsController.js +3 -1
- package/lib/module/controllers/EventsController.js.map +1 -1
- package/lib/module/controllers/ModalController.js +8 -7
- package/lib/module/controllers/ModalController.js.map +1 -1
- package/lib/module/controllers/OnRampController.js +118 -52
- package/lib/module/controllers/OnRampController.js.map +1 -1
- package/lib/module/controllers/OptionsController.js +12 -4
- package/lib/module/controllers/OptionsController.js.map +1 -1
- package/lib/module/controllers/PublicStateController.js +2 -0
- package/lib/module/controllers/PublicStateController.js.map +1 -1
- package/lib/module/controllers/RouterController.js +8 -21
- package/lib/module/controllers/RouterController.js.map +1 -1
- package/lib/module/controllers/SendController.js +99 -97
- package/lib/module/controllers/SendController.js.map +1 -1
- package/lib/module/controllers/SnackController.js +31 -5
- package/lib/module/controllers/SnackController.js.map +1 -1
- package/lib/module/controllers/SwapController.js +111 -117
- package/lib/module/controllers/SwapController.js.map +1 -1
- package/lib/module/controllers/ThemeController.js +2 -0
- package/lib/module/controllers/ThemeController.js.map +1 -1
- package/lib/module/controllers/TransactionsController.js +23 -17
- package/lib/module/controllers/TransactionsController.js.map +1 -1
- package/lib/module/controllers/WcController.js +70 -0
- package/lib/module/controllers/WcController.js.map +1 -0
- package/lib/module/index.js +5 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/ApiUtil.js +2 -0
- package/lib/module/utils/ApiUtil.js.map +1 -1
- package/lib/module/utils/AssetUtil.js +8 -14
- package/lib/module/utils/AssetUtil.js.map +1 -1
- package/lib/module/utils/ConstantsUtil.js +15 -425
- package/lib/module/utils/ConstantsUtil.js.map +1 -1
- package/lib/module/utils/CoreHelperUtil.js +15 -6
- package/lib/module/utils/CoreHelperUtil.js.map +1 -1
- package/lib/module/utils/EventUtil.js +2 -0
- package/lib/module/utils/EventUtil.js.map +1 -1
- package/lib/module/utils/FetchUtil.js +36 -10
- package/lib/module/utils/FetchUtil.js.map +1 -1
- package/lib/module/utils/RouterUtil.js +2 -0
- package/lib/module/utils/RouterUtil.js.map +1 -1
- package/lib/module/utils/StorageUtil.js +80 -129
- package/lib/module/utils/StorageUtil.js.map +1 -1
- package/lib/module/utils/SwapApiUtil.js +4 -17
- package/lib/module/utils/SwapApiUtil.js.map +1 -1
- package/lib/module/utils/SwapCalculationUtil.js +3 -0
- package/lib/module/utils/SwapCalculationUtil.js.map +1 -1
- package/lib/typescript/controllers/ApiController.d.ts +3 -4
- package/lib/typescript/controllers/ApiController.d.ts.map +1 -1
- package/lib/typescript/controllers/AssetController.d.ts +0 -2
- package/lib/typescript/controllers/AssetController.d.ts.map +1 -1
- package/lib/typescript/controllers/BlockchainApiController.d.ts +21 -13
- package/lib/typescript/controllers/BlockchainApiController.d.ts.map +1 -1
- package/lib/typescript/controllers/ConnectionsController.d.ts +19 -17
- package/lib/typescript/controllers/ConnectionsController.d.ts.map +1 -1
- package/lib/typescript/controllers/EnsController.d.ts +1 -1
- package/lib/typescript/controllers/EventsController.d.ts +1 -1
- package/lib/typescript/controllers/EventsController.d.ts.map +1 -1
- package/lib/typescript/controllers/ModalController.d.ts +1 -1
- package/lib/typescript/controllers/ModalController.d.ts.map +1 -1
- package/lib/typescript/controllers/OnRampController.d.ts +4 -3
- package/lib/typescript/controllers/OnRampController.d.ts.map +1 -1
- package/lib/typescript/controllers/OptionsController.d.ts +4 -4
- package/lib/typescript/controllers/OptionsController.d.ts.map +1 -1
- package/lib/typescript/controllers/RouterController.d.ts +5 -20
- package/lib/typescript/controllers/RouterController.d.ts.map +1 -1
- package/lib/typescript/controllers/SendController.d.ts +5 -7
- package/lib/typescript/controllers/SendController.d.ts.map +1 -1
- package/lib/typescript/controllers/SnackController.d.ts +3 -3
- package/lib/typescript/controllers/SnackController.d.ts.map +1 -1
- package/lib/typescript/controllers/SwapController.d.ts +11 -11
- package/lib/typescript/controllers/SwapController.d.ts.map +1 -1
- package/lib/typescript/controllers/TransactionsController.d.ts +3 -3
- package/lib/typescript/controllers/TransactionsController.d.ts.map +1 -1
- package/lib/typescript/controllers/WcController.d.ts +27 -0
- package/lib/typescript/controllers/WcController.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +1 -7
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/utils/AssetUtil.d.ts +2 -3
- package/lib/typescript/utils/AssetUtil.d.ts.map +1 -1
- package/lib/typescript/utils/ConstantsUtil.d.ts +7 -415
- package/lib/typescript/utils/ConstantsUtil.d.ts.map +1 -1
- package/lib/typescript/utils/CoreHelperUtil.d.ts +4 -4
- package/lib/typescript/utils/CoreHelperUtil.d.ts.map +1 -1
- package/lib/typescript/utils/EventUtil.d.ts +1 -1
- package/lib/typescript/utils/EventUtil.d.ts.map +1 -1
- package/lib/typescript/utils/FetchUtil.d.ts +1 -1
- package/lib/typescript/utils/FetchUtil.d.ts.map +1 -1
- package/lib/typescript/utils/StorageUtil.d.ts +8 -19
- package/lib/typescript/utils/StorageUtil.d.ts.map +1 -1
- package/lib/typescript/utils/SwapApiUtil.d.ts +3 -4
- package/lib/typescript/utils/SwapApiUtil.d.ts.map +1 -1
- package/lib/typescript/utils/SwapCalculationUtil.d.ts +1 -1
- package/lib/typescript/utils/SwapCalculationUtil.d.ts.map +1 -1
- package/package.json +9 -23
- package/src/controllers/ApiController.ts +24 -28
- package/src/controllers/AssetController.ts +0 -6
- package/src/controllers/BlockchainApiController.ts +76 -121
- package/src/controllers/ConnectionsController.ts +308 -78
- package/src/controllers/EnsController.ts +3 -3
- package/src/controllers/EventsController.ts +2 -2
- package/src/controllers/ModalController.ts +7 -9
- package/src/controllers/OnRampController.ts +179 -82
- package/src/controllers/OptionsController.ts +24 -8
- package/src/controllers/RouterController.ts +12 -54
- package/src/controllers/SendController.ts +123 -112
- package/src/controllers/SnackController.ts +31 -5
- package/src/controllers/SwapController.ts +130 -146
- package/src/controllers/TransactionsController.ts +24 -18
- package/src/controllers/WcController.ts +93 -0
- package/src/index.ts +2 -21
- package/src/utils/AssetUtil.ts +7 -17
- package/src/utils/ConstantsUtil.ts +15 -429
- package/src/utils/CoreHelperUtil.ts +31 -8
- package/src/utils/EventUtil.ts +1 -1
- package/src/utils/FetchUtil.ts +38 -11
- package/src/utils/StorageUtil.ts +146 -157
- package/src/utils/SwapApiUtil.ts +18 -37
- package/src/utils/SwapCalculationUtil.ts +1 -2
- package/lib/commonjs/controllers/AccountController.js +0 -93
- package/lib/commonjs/controllers/AccountController.js.map +0 -1
- package/lib/commonjs/controllers/ConnectionController.js +0 -132
- package/lib/commonjs/controllers/ConnectionController.js.map +0 -1
- package/lib/commonjs/controllers/ConnectorController.js +0 -50
- package/lib/commonjs/controllers/ConnectorController.js.map +0 -1
- package/lib/commonjs/controllers/NetworkController.js +0 -90
- package/lib/commonjs/controllers/NetworkController.js.map +0 -1
- package/lib/commonjs/controllers/WebviewController.js +0 -52
- package/lib/commonjs/controllers/WebviewController.js.map +0 -1
- package/lib/commonjs/utils/NetworkUtil.js +0 -46
- package/lib/commonjs/utils/NetworkUtil.js.map +0 -1
- package/lib/commonjs/utils/TypeUtil.js +0 -6
- package/lib/commonjs/utils/TypeUtil.js.map +0 -1
- package/lib/module/controllers/AccountController.js +0 -88
- package/lib/module/controllers/AccountController.js.map +0 -1
- package/lib/module/controllers/ConnectionController.js +0 -127
- package/lib/module/controllers/ConnectionController.js.map +0 -1
- package/lib/module/controllers/ConnectorController.js +0 -45
- package/lib/module/controllers/ConnectorController.js.map +0 -1
- package/lib/module/controllers/NetworkController.js +0 -85
- package/lib/module/controllers/NetworkController.js.map +0 -1
- package/lib/module/controllers/WebviewController.js +0 -47
- package/lib/module/controllers/WebviewController.js.map +0 -1
- package/lib/module/utils/NetworkUtil.js +0 -40
- package/lib/module/utils/NetworkUtil.js.map +0 -1
- package/lib/module/utils/TypeUtil.js +0 -2
- package/lib/module/utils/TypeUtil.js.map +0 -1
- package/lib/typescript/controllers/AccountController.d.ts +0 -33
- package/lib/typescript/controllers/AccountController.d.ts.map +0 -1
- package/lib/typescript/controllers/ConnectionController.d.ts +0 -68
- package/lib/typescript/controllers/ConnectionController.d.ts.map +0 -1
- package/lib/typescript/controllers/ConnectorController.d.ts +0 -18
- package/lib/typescript/controllers/ConnectorController.d.ts.map +0 -1
- package/lib/typescript/controllers/NetworkController.d.ts +0 -34
- package/lib/typescript/controllers/NetworkController.d.ts.map +0 -1
- package/lib/typescript/controllers/WebviewController.d.ts +0 -21
- package/lib/typescript/controllers/WebviewController.d.ts.map +0 -1
- package/lib/typescript/utils/NetworkUtil.d.ts +0 -8
- package/lib/typescript/utils/NetworkUtil.d.ts.map +0 -1
- package/lib/typescript/utils/TypeUtil.d.ts +0 -817
- package/lib/typescript/utils/TypeUtil.d.ts.map +0 -1
- package/src/controllers/AccountController.ts +0 -128
- package/src/controllers/ConnectionController.ts +0 -208
- package/src/controllers/ConnectorController.ts +0 -64
- package/src/controllers/NetworkController.ts +0 -120
- package/src/controllers/WebviewController.ts +0 -63
- package/src/utils/NetworkUtil.ts +0 -33
- package/src/utils/TypeUtil.ts +0 -995
|
@@ -10,9 +10,9 @@ export interface SnackControllerState {
|
|
|
10
10
|
}
|
|
11
11
|
export declare const SnackController: {
|
|
12
12
|
state: SnackControllerState;
|
|
13
|
-
showSuccess(message: SnackControllerState['message']): void;
|
|
14
|
-
showError(message: SnackControllerState['message']): void;
|
|
15
|
-
showLoading(message: SnackControllerState['message']): void;
|
|
13
|
+
showSuccess(message: SnackControllerState['message'], long?: boolean): void;
|
|
14
|
+
showError(message: SnackControllerState['message'], long?: boolean): void;
|
|
15
|
+
showLoading(message: SnackControllerState['message'], long?: boolean): void;
|
|
16
16
|
showInternalError(error: Message): void;
|
|
17
17
|
hide(): void;
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SnackController.d.ts","sourceRoot":"","sources":["../../../src/controllers/SnackController.ts"],"names":[],"mappings":"AAIA,UAAU,OAAO;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACf;
|
|
1
|
+
{"version":3,"file":"SnackController.d.ts","sourceRoot":"","sources":["../../../src/controllers/SnackController.ts"],"names":[],"mappings":"AAIA,UAAU,OAAO;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACf;AA+BD,eAAO,MAAM,eAAe;;yBAGL,oBAAoB,CAAC,SAAS,CAAC;uBAQjC,oBAAoB,CAAC,SAAS,CAAC;yBAQ7B,oBAAoB,CAAC,SAAS,CAAC;6BAQ3B,OAAO;;CAsBjC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type CaipAddress, type SwapInputTarget, type SwapTokenWithBalance } from '@reown/appkit-common-react-native';
|
|
2
2
|
export declare const INITIAL_GAS_LIMIT = 150000;
|
|
3
3
|
export declare const TO_AMOUNT_DECIMALS = 6;
|
|
4
4
|
type TransactionParams = {
|
|
@@ -10,8 +10,7 @@ type TransactionParams = {
|
|
|
10
10
|
toAmount: string;
|
|
11
11
|
};
|
|
12
12
|
export interface SwapControllerState {
|
|
13
|
-
|
|
14
|
-
initialized: boolean;
|
|
13
|
+
loadingTokens: boolean;
|
|
15
14
|
loadingPrices: boolean;
|
|
16
15
|
loadingQuote?: boolean;
|
|
17
16
|
loadingApprovalTransaction?: boolean;
|
|
@@ -28,7 +27,6 @@ export interface SwapControllerState {
|
|
|
28
27
|
toTokenAmount: string;
|
|
29
28
|
toTokenPriceInUSD: number;
|
|
30
29
|
networkPrice: string;
|
|
31
|
-
networkBalanceInUSD: string;
|
|
32
30
|
networkTokenSymbol: string;
|
|
33
31
|
inputError: string | undefined;
|
|
34
32
|
slippage: number;
|
|
@@ -50,6 +48,7 @@ export declare const SwapController: {
|
|
|
50
48
|
subscribeKey<K extends keyof SwapControllerState>(key: K, callback: (value: SwapControllerState[K]) => void): () => void;
|
|
51
49
|
getParams(): {
|
|
52
50
|
networkAddress: `${string}:${string}:${string}`;
|
|
51
|
+
network: import("@reown/appkit-common-react-native").AppKitNetwork;
|
|
53
52
|
fromAddress: string;
|
|
54
53
|
fromCaipAddress: `${string}:${string}:${string}` | undefined;
|
|
55
54
|
sourceTokenAddress: `${string}:${string}:${string}` | undefined;
|
|
@@ -65,15 +64,13 @@ export declare const SwapController: {
|
|
|
65
64
|
isAuthConnector: boolean;
|
|
66
65
|
};
|
|
67
66
|
switchTokens(): void;
|
|
68
|
-
resetState(): void;
|
|
69
67
|
fetchTokens(): Promise<void>;
|
|
70
68
|
getTokenList(): Promise<void>;
|
|
71
|
-
getMyTokensWithBalance(forceUpdate?:
|
|
72
|
-
getFilteredPopularTokens(): SwapTokenWithBalance[] | undefined;
|
|
69
|
+
getMyTokensWithBalance(forceUpdate?: CaipAddress[]): Promise<void>;
|
|
70
|
+
getFilteredPopularTokens(balances?: SwapTokenWithBalance[]): SwapTokenWithBalance[] | undefined;
|
|
73
71
|
setSourceToken(sourceToken: SwapTokenWithBalance | undefined): void;
|
|
74
72
|
setSourceTokenAmount(amount: string): void;
|
|
75
|
-
|
|
76
|
-
getAddressPrice(address: string): Promise<number>;
|
|
73
|
+
getAddressPrice(address: CaipAddress): Promise<number>;
|
|
77
74
|
getNetworkTokenPrice(): Promise<void>;
|
|
78
75
|
getInitialGasPrice(): Promise<{
|
|
79
76
|
gasPrice: null;
|
|
@@ -88,7 +85,7 @@ export declare const SwapController: {
|
|
|
88
85
|
setBalances(balances: SwapTokenWithBalance[]): void;
|
|
89
86
|
setToToken(toToken: SwapTokenWithBalance | undefined): void;
|
|
90
87
|
setToTokenAmount(amount: string): void;
|
|
91
|
-
setTokenPrice(address:
|
|
88
|
+
setTokenPrice(address: CaipAddress, target: SwapInputTarget): Promise<void>;
|
|
92
89
|
swapTokens(): Promise<void>;
|
|
93
90
|
getTransaction(): Promise<TransactionParams | undefined>;
|
|
94
91
|
createAllowanceTransaction(): Promise<{
|
|
@@ -108,7 +105,10 @@ export declare const SwapController: {
|
|
|
108
105
|
toAmount: string;
|
|
109
106
|
} | undefined>;
|
|
110
107
|
sendTransactionForApproval(data: TransactionParams): Promise<void>;
|
|
111
|
-
sendTransactionForSwap(data: TransactionParams | undefined): Promise
|
|
108
|
+
sendTransactionForSwap(data: TransactionParams | undefined): Promise<string | null | undefined>;
|
|
109
|
+
clearTransactionLoaders(): void;
|
|
110
|
+
clearTokens(): void;
|
|
111
|
+
resetState(): void;
|
|
112
112
|
hasInsufficientToken(sourceTokenAmount: string, sourceTokenAddress: string): boolean;
|
|
113
113
|
setTransactionDetails(): void;
|
|
114
114
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwapController.d.ts","sourceRoot":"","sources":["../../../src/controllers/SwapController.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SwapController.d.ts","sourceRoot":"","sources":["../../../src/controllers/SwapController.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,WAAW,EAEhB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAC1B,MAAM,mCAAmC,CAAC;AAe3C,eAAO,MAAM,iBAAiB,SAAS,CAAC;AACxC,eAAO,MAAM,kBAAkB,IAAI,CAAC;AAGpC,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAYF,MAAM,WAAW,mBAAmB;IAElC,aAAa,EAAE,OAAO,CAAC;IACvB,aAAa,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAG7B,UAAU,EAAE,OAAO,CAAC;IAGpB,mBAAmB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACnD,eAAe,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC/C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,WAAW,CAAC,EAAE,oBAAoB,CAAC;IACnC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAG/B,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACzC,aAAa,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACvC,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,mBAAmB,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC7C,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAGvC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC;AAuDD,eAAO,MAAM,cAAc;;mCAGM,mBAAmB,KAAK,IAAI;2GAI2B,IAAI;;;;;;;;;;;;;;;;;;;;;yCAgI/C,WAAW,EAAE;wCAWpB,oBAAoB,EAAE;gCAQ9B,oBAAoB,GAAG,SAAS;iCAa/B,MAAM;6BAQJ,WAAW;;;;;;;;;;;;0BAqEpB,oBAAoB,EAAE;wBAQxB,oBAAoB,GAAG,SAAS;6BAa3B,MAAM;2BAMF,WAAW,UAAU,eAAe;;;;;;;;;;;;;;;;;;;qCAyP1B,iBAAiB;iCA8BrB,iBAAiB,GAAG,SAAS;;;;4CA6GxB,MAAM,sBAAsB,MAAM;;CAiD3E,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Transaction } from '@reown/appkit-common-react-native';
|
|
1
|
+
import type { CaipAddress, Transaction } from '@reown/appkit-common-react-native';
|
|
2
2
|
type TransactionByMonthMap = Record<string, Transaction[]>;
|
|
3
3
|
type TransactionByYearMap = Record<string, TransactionByMonthMap>;
|
|
4
4
|
export interface TransactionsControllerState {
|
|
@@ -10,12 +10,12 @@ export interface TransactionsControllerState {
|
|
|
10
10
|
export declare const TransactionsController: {
|
|
11
11
|
state: TransactionsControllerState;
|
|
12
12
|
subscribe(callback: (newState: TransactionsControllerState) => void): () => void;
|
|
13
|
-
fetchTransactions(accountAddress
|
|
13
|
+
fetchTransactions(accountAddress: CaipAddress, reset?: boolean): Promise<void>;
|
|
14
14
|
getTransactionsByYearAndMonth(transactions: Transaction[]): TransactionByYearMap;
|
|
15
15
|
filterSpamTransactions(transactions: Transaction[]): Transaction[];
|
|
16
16
|
filterByConnectedChain(transactions: Transaction[]): Transaction[];
|
|
17
17
|
clearCursor(): void;
|
|
18
|
-
|
|
18
|
+
resetState(): void;
|
|
19
19
|
};
|
|
20
20
|
export {};
|
|
21
21
|
//# sourceMappingURL=TransactionsController.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionsController.d.ts","sourceRoot":"","sources":["../../../src/controllers/TransactionsController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"TransactionsController.d.ts","sourceRoot":"","sources":["../../../src/controllers/TransactionsController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AASlF,KAAK,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;AAC3D,KAAK,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AAElE,MAAM,WAAW,2BAA2B;IAC1C,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B;AAWD,eAAO,MAAM,sBAAsB;;mCAGF,2BAA2B,KAAK,IAAI;sCAI3B,WAAW,UAAU,OAAO;gDA0DxB,WAAW,EAAE;yCAyBpB,WAAW,EAAE;yCAUb,WAAW,EAAE;;;CAmBnD,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { WalletDeepLink, WcWallet } from '@reown/appkit-common-react-native';
|
|
2
|
+
export interface WcControllerState {
|
|
3
|
+
wcUri?: string;
|
|
4
|
+
wcPromise?: Promise<void>;
|
|
5
|
+
wcPairingExpiry?: number;
|
|
6
|
+
wcLinking?: WalletDeepLink;
|
|
7
|
+
wcError?: boolean;
|
|
8
|
+
pressedWallet?: WcWallet;
|
|
9
|
+
recentWallets?: WcWallet[];
|
|
10
|
+
}
|
|
11
|
+
export declare const WcController: {
|
|
12
|
+
state: WcControllerState;
|
|
13
|
+
subscribeKey<K extends keyof WcControllerState>(key: K, callback: (value: WcControllerState[K]) => void): () => void;
|
|
14
|
+
setWcLinking(wcLinking: WcControllerState['wcLinking']): void;
|
|
15
|
+
removeWcLinking(): void;
|
|
16
|
+
setWcError(wcError: WcControllerState['wcError']): void;
|
|
17
|
+
setPressedWallet(wallet: WcControllerState['pressedWallet']): void;
|
|
18
|
+
removePressedWallet(): void;
|
|
19
|
+
setWcPromise(wcPromise: WcControllerState['wcPromise']): void;
|
|
20
|
+
setWcUri(wcUri: WcControllerState['wcUri']): void;
|
|
21
|
+
setRecentWallets(wallets: WcControllerState['recentWallets']): void;
|
|
22
|
+
addRecentWallet(wallet: WcWallet): Promise<void>;
|
|
23
|
+
setConnectedWallet: (wcLinking: WalletDeepLink, pressedWallet?: WcWallet) => Promise<void>;
|
|
24
|
+
clearUri(): void;
|
|
25
|
+
resetState(): void;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=WcController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WcController.d.ts","sourceRoot":"","sources":["../../../src/controllers/WcController.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAKlF,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC5B;AAUD,eAAO,MAAM,YAAY;;uGAG6D,IAAI;4BAIhE,iBAAiB,CAAC,WAAW,CAAC;;wBAQlC,iBAAiB,CAAC,SAAS,CAAC;6BAIvB,iBAAiB,CAAC,eAAe,CAAC;;4BAQnC,iBAAiB,CAAC,WAAW,CAAC;oBAItC,iBAAiB,CAAC,OAAO,CAAC;8BAKhB,iBAAiB,CAAC,eAAe,CAAC;4BAI9B,QAAQ;oCAOA,cAAc,kBAAkB,QAAQ;;;CAoB/E,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
export { ModalController, type ModalControllerArguments, type ModalControllerState } from './controllers/ModalController';
|
|
2
2
|
export { RouterController, type RouterControllerState } from './controllers/RouterController';
|
|
3
|
-
export {
|
|
4
|
-
export { NetworkController, type NetworkControllerClient, type NetworkControllerState } from './controllers/NetworkController';
|
|
5
|
-
export { ConnectionController, type ConnectionControllerClient, type ConnectionControllerState } from './controllers/ConnectionController';
|
|
3
|
+
export { WcController, type WcControllerState } from './controllers/WcController';
|
|
6
4
|
export { ConnectionsController, type ConnectionsControllerState } from './controllers/ConnectionsController';
|
|
7
|
-
export { ConnectorController, type ConnectorControllerState } from './controllers/ConnectorController';
|
|
8
5
|
export { SnackController, type SnackControllerState } from './controllers/SnackController';
|
|
9
6
|
export { ApiController, type ApiControllerState } from './controllers/ApiController';
|
|
10
7
|
export { AssetController, type AssetControllerState } from './controllers/AssetController';
|
|
@@ -18,7 +15,6 @@ export { EnsController, type EnsControllerState } from './controllers/EnsControl
|
|
|
18
15
|
export { TransactionsController, type TransactionsControllerState } from './controllers/TransactionsController';
|
|
19
16
|
export { SendController, type SendControllerState } from './controllers/SendController';
|
|
20
17
|
export { OnRampController, type OnRampControllerState } from './controllers/OnRampController';
|
|
21
|
-
export { WebviewController, type WebviewControllerState } from './controllers/WebviewController';
|
|
22
18
|
export { ApiUtil } from './utils/ApiUtil';
|
|
23
19
|
export { AssetUtil } from './utils/AssetUtil';
|
|
24
20
|
export { ConstantsUtil } from './utils/ConstantsUtil';
|
|
@@ -26,6 +22,4 @@ export { CoreHelperUtil } from './utils/CoreHelperUtil';
|
|
|
26
22
|
export { StorageUtil } from './utils/StorageUtil';
|
|
27
23
|
export { EventUtil } from './utils/EventUtil';
|
|
28
24
|
export { RouterUtil } from './utils/RouterUtil';
|
|
29
|
-
export { NetworkUtil } from './utils/NetworkUtil';
|
|
30
|
-
export type * from './utils/TypeUtil';
|
|
31
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EACf,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAElF,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,EAChC,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,EAAE,eAAe,EAAE,KAAK,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAEjG,OAAO,EACL,qBAAqB,EACrB,KAAK,0BAA0B,EAChC,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAErF,OAAO,EACL,sBAAsB,EACtB,KAAK,2BAA2B,EACjC,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExF,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAG9F,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AppKitNetwork, WcWallet } from '@reown/appkit-common-react-native';
|
|
2
2
|
export declare const AssetUtil: {
|
|
3
3
|
getWalletImage(wallet?: WcWallet): string | undefined;
|
|
4
|
-
getNetworkImage(
|
|
5
|
-
getConnectorImage(connector?: Connector): string | undefined;
|
|
4
|
+
getNetworkImage(network?: AppKitNetwork, networkImages?: Record<string, string>): string | undefined;
|
|
6
5
|
};
|
|
7
6
|
//# sourceMappingURL=AssetUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/AssetUtil.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AssetUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/AssetUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAGjF,eAAO,MAAM,SAAS;4BACI,QAAQ;8BAYN,aAAa,kBAAkB,OAAO,MAAM,EAAE,MAAM,CAAC;CAWhF,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { Features } from '
|
|
1
|
+
import type { Features } from '@reown/appkit-common-react-native';
|
|
2
2
|
export declare const OnRampErrorType: {
|
|
3
3
|
readonly AMOUNT_TOO_LOW: "INVALID_AMOUNT_TOO_LOW";
|
|
4
4
|
readonly AMOUNT_TOO_HIGH: "INVALID_AMOUNT_TOO_HIGH";
|
|
5
5
|
readonly INVALID_AMOUNT: "INVALID_AMOUNT";
|
|
6
6
|
readonly INCOMPATIBLE_REQUEST: "INCOMPATIBLE_REQUEST";
|
|
7
7
|
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
8
|
+
readonly NO_VALID_QUOTES: "NO_VALID_QUOTES";
|
|
8
9
|
readonly FAILED_TO_LOAD: "FAILED_TO_LOAD";
|
|
9
10
|
readonly FAILED_TO_LOAD_COUNTRIES: "FAILED_TO_LOAD_COUNTRIES";
|
|
10
11
|
readonly FAILED_TO_LOAD_PROVIDERS: "FAILED_TO_LOAD_PROVIDERS";
|
|
@@ -31,6 +32,7 @@ export declare const ConstantsUtil: {
|
|
|
31
32
|
readonly INVALID_AMOUNT: "INVALID_AMOUNT";
|
|
32
33
|
readonly INCOMPATIBLE_REQUEST: "INCOMPATIBLE_REQUEST";
|
|
33
34
|
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
35
|
+
readonly NO_VALID_QUOTES: "NO_VALID_QUOTES";
|
|
34
36
|
readonly FAILED_TO_LOAD: "FAILED_TO_LOAD";
|
|
35
37
|
readonly FAILED_TO_LOAD_COUNTRIES: "FAILED_TO_LOAD_COUNTRIES";
|
|
36
38
|
readonly FAILED_TO_LOAD_PROVIDERS: "FAILED_TO_LOAD_PROVIDERS";
|
|
@@ -43,261 +45,10 @@ export declare const ConstantsUtil: {
|
|
|
43
45
|
SWAP_POPULAR_TOKENS: string[];
|
|
44
46
|
ACTIVITY_SUPPORTED_CHAINS: string[];
|
|
45
47
|
SWAP_SUPPORTED_NETWORKS: string[];
|
|
48
|
+
SEND_SUPPORTED_NAMESPACES: string[];
|
|
49
|
+
ONRAMP_SUPPORTED_NAMESPACES: string[];
|
|
46
50
|
CONVERT_SLIPPAGE_TOLERANCE: number;
|
|
47
51
|
DEFAULT_FEATURES: Features;
|
|
48
|
-
COUNTRY_CURRENCIES: {
|
|
49
|
-
AD: string;
|
|
50
|
-
AE: string;
|
|
51
|
-
AF: string;
|
|
52
|
-
AG: string;
|
|
53
|
-
AI: string;
|
|
54
|
-
AL: string;
|
|
55
|
-
AM: string;
|
|
56
|
-
AN: string;
|
|
57
|
-
AO: string;
|
|
58
|
-
AQ: string;
|
|
59
|
-
AR: string;
|
|
60
|
-
AS: string;
|
|
61
|
-
AT: string;
|
|
62
|
-
AU: string;
|
|
63
|
-
AW: string;
|
|
64
|
-
AX: string;
|
|
65
|
-
AZ: string;
|
|
66
|
-
BA: string;
|
|
67
|
-
BB: string;
|
|
68
|
-
BD: string;
|
|
69
|
-
BE: string;
|
|
70
|
-
BF: string;
|
|
71
|
-
BG: string;
|
|
72
|
-
BH: string;
|
|
73
|
-
BI: string;
|
|
74
|
-
BJ: string;
|
|
75
|
-
BL: string;
|
|
76
|
-
BM: string;
|
|
77
|
-
BN: string;
|
|
78
|
-
BO: string;
|
|
79
|
-
BQ: string;
|
|
80
|
-
BR: string;
|
|
81
|
-
BS: string;
|
|
82
|
-
BT: string;
|
|
83
|
-
BV: string;
|
|
84
|
-
BW: string;
|
|
85
|
-
BY: string;
|
|
86
|
-
BZ: string;
|
|
87
|
-
CA: string;
|
|
88
|
-
CC: string;
|
|
89
|
-
CD: string;
|
|
90
|
-
CF: string;
|
|
91
|
-
CG: string;
|
|
92
|
-
CH: string;
|
|
93
|
-
CI: string;
|
|
94
|
-
CK: string;
|
|
95
|
-
CL: string;
|
|
96
|
-
CM: string;
|
|
97
|
-
CN: string;
|
|
98
|
-
CO: string;
|
|
99
|
-
CR: string;
|
|
100
|
-
CU: string;
|
|
101
|
-
CV: string;
|
|
102
|
-
CW: string;
|
|
103
|
-
CX: string;
|
|
104
|
-
CY: string;
|
|
105
|
-
CZ: string;
|
|
106
|
-
DE: string;
|
|
107
|
-
DJ: string;
|
|
108
|
-
DK: string;
|
|
109
|
-
DM: string;
|
|
110
|
-
DO: string;
|
|
111
|
-
DZ: string;
|
|
112
|
-
EC: string;
|
|
113
|
-
EE: string;
|
|
114
|
-
EG: string;
|
|
115
|
-
EH: string;
|
|
116
|
-
ER: string;
|
|
117
|
-
ES: string;
|
|
118
|
-
ET: string;
|
|
119
|
-
FI: string;
|
|
120
|
-
FJ: string;
|
|
121
|
-
FK: string;
|
|
122
|
-
FM: string;
|
|
123
|
-
FO: string;
|
|
124
|
-
FR: string;
|
|
125
|
-
GA: string;
|
|
126
|
-
GB: string;
|
|
127
|
-
GD: string;
|
|
128
|
-
GE: string;
|
|
129
|
-
GF: string;
|
|
130
|
-
GG: string;
|
|
131
|
-
GH: string;
|
|
132
|
-
GI: string;
|
|
133
|
-
GL: string;
|
|
134
|
-
GM: string;
|
|
135
|
-
GN: string;
|
|
136
|
-
GP: string;
|
|
137
|
-
GQ: string;
|
|
138
|
-
GR: string;
|
|
139
|
-
GS: string;
|
|
140
|
-
GT: string;
|
|
141
|
-
GU: string;
|
|
142
|
-
GW: string;
|
|
143
|
-
GY: string;
|
|
144
|
-
HK: string;
|
|
145
|
-
HM: string;
|
|
146
|
-
HN: string;
|
|
147
|
-
HR: string;
|
|
148
|
-
HT: string;
|
|
149
|
-
HU: string;
|
|
150
|
-
ID: string;
|
|
151
|
-
IE: string;
|
|
152
|
-
IL: string;
|
|
153
|
-
IM: string;
|
|
154
|
-
IN: string;
|
|
155
|
-
IO: string;
|
|
156
|
-
IQ: string;
|
|
157
|
-
IR: string;
|
|
158
|
-
IS: string;
|
|
159
|
-
IT: string;
|
|
160
|
-
JE: string;
|
|
161
|
-
JM: string;
|
|
162
|
-
JO: string;
|
|
163
|
-
JP: string;
|
|
164
|
-
KE: string;
|
|
165
|
-
KG: string;
|
|
166
|
-
KH: string;
|
|
167
|
-
KI: string;
|
|
168
|
-
KM: string;
|
|
169
|
-
KN: string;
|
|
170
|
-
KP: string;
|
|
171
|
-
KR: string;
|
|
172
|
-
KW: string;
|
|
173
|
-
KY: string;
|
|
174
|
-
KZ: string;
|
|
175
|
-
LA: string;
|
|
176
|
-
LB: string;
|
|
177
|
-
LC: string;
|
|
178
|
-
LI: string;
|
|
179
|
-
LK: string;
|
|
180
|
-
LR: string;
|
|
181
|
-
LS: string;
|
|
182
|
-
LT: string;
|
|
183
|
-
LU: string;
|
|
184
|
-
LV: string;
|
|
185
|
-
LY: string;
|
|
186
|
-
MA: string;
|
|
187
|
-
MC: string;
|
|
188
|
-
MD: string;
|
|
189
|
-
ME: string;
|
|
190
|
-
MF: string;
|
|
191
|
-
MG: string;
|
|
192
|
-
MH: string;
|
|
193
|
-
MK: string;
|
|
194
|
-
ML: string;
|
|
195
|
-
MM: string;
|
|
196
|
-
MN: string;
|
|
197
|
-
MO: string;
|
|
198
|
-
MP: string;
|
|
199
|
-
MQ: string;
|
|
200
|
-
MR: string;
|
|
201
|
-
MS: string;
|
|
202
|
-
MT: string;
|
|
203
|
-
MU: string;
|
|
204
|
-
MV: string;
|
|
205
|
-
MW: string;
|
|
206
|
-
MX: string;
|
|
207
|
-
MY: string;
|
|
208
|
-
MZ: string;
|
|
209
|
-
NA: string;
|
|
210
|
-
NC: string;
|
|
211
|
-
NE: string;
|
|
212
|
-
NF: string;
|
|
213
|
-
NG: string;
|
|
214
|
-
NI: string;
|
|
215
|
-
NL: string;
|
|
216
|
-
NO: string;
|
|
217
|
-
NP: string;
|
|
218
|
-
NR: string;
|
|
219
|
-
NU: string;
|
|
220
|
-
NZ: string;
|
|
221
|
-
OM: string;
|
|
222
|
-
PA: string;
|
|
223
|
-
PE: string;
|
|
224
|
-
PF: string;
|
|
225
|
-
PG: string;
|
|
226
|
-
PH: string;
|
|
227
|
-
PK: string;
|
|
228
|
-
PL: string;
|
|
229
|
-
PM: string;
|
|
230
|
-
PN: string;
|
|
231
|
-
PR: string;
|
|
232
|
-
PS: string;
|
|
233
|
-
PT: string;
|
|
234
|
-
PW: string;
|
|
235
|
-
PY: string;
|
|
236
|
-
QA: string;
|
|
237
|
-
RE: string;
|
|
238
|
-
RO: string;
|
|
239
|
-
RS: string;
|
|
240
|
-
RU: string;
|
|
241
|
-
RW: string;
|
|
242
|
-
SA: string;
|
|
243
|
-
SB: string;
|
|
244
|
-
SC: string;
|
|
245
|
-
SD: string;
|
|
246
|
-
SE: string;
|
|
247
|
-
SG: string;
|
|
248
|
-
SH: string;
|
|
249
|
-
SI: string;
|
|
250
|
-
SJ: string;
|
|
251
|
-
SK: string;
|
|
252
|
-
SL: string;
|
|
253
|
-
SM: string;
|
|
254
|
-
SN: string;
|
|
255
|
-
SO: string;
|
|
256
|
-
SR: string;
|
|
257
|
-
SS: string;
|
|
258
|
-
ST: string;
|
|
259
|
-
SV: string;
|
|
260
|
-
SX: string;
|
|
261
|
-
SY: string;
|
|
262
|
-
SZ: string;
|
|
263
|
-
TC: string;
|
|
264
|
-
TD: string;
|
|
265
|
-
TF: string;
|
|
266
|
-
TG: string;
|
|
267
|
-
TH: string;
|
|
268
|
-
TJ: string;
|
|
269
|
-
TK: string;
|
|
270
|
-
TL: string;
|
|
271
|
-
TM: string;
|
|
272
|
-
TN: string;
|
|
273
|
-
TO: string;
|
|
274
|
-
TR: string;
|
|
275
|
-
TT: string;
|
|
276
|
-
TV: string;
|
|
277
|
-
TW: string;
|
|
278
|
-
TZ: string;
|
|
279
|
-
UA: string;
|
|
280
|
-
UG: string;
|
|
281
|
-
UM: string;
|
|
282
|
-
US: string;
|
|
283
|
-
UY: string;
|
|
284
|
-
UZ: string;
|
|
285
|
-
VA: string;
|
|
286
|
-
VC: string;
|
|
287
|
-
VE: string;
|
|
288
|
-
VG: string;
|
|
289
|
-
VI: string;
|
|
290
|
-
VN: string;
|
|
291
|
-
VU: string;
|
|
292
|
-
WF: string;
|
|
293
|
-
WS: string;
|
|
294
|
-
XK: string;
|
|
295
|
-
YE: string;
|
|
296
|
-
YT: string;
|
|
297
|
-
ZA: string;
|
|
298
|
-
ZM: string;
|
|
299
|
-
ZW: string;
|
|
300
|
-
};
|
|
301
52
|
NETWORK_DEFAULT_CURRENCIES: {
|
|
302
53
|
'eip155:1': string;
|
|
303
54
|
'eip155:56': string;
|
|
@@ -322,167 +73,8 @@ export declare const ConstantsUtil: {
|
|
|
322
73
|
'eip155:59144': string;
|
|
323
74
|
'eip155:1101': string;
|
|
324
75
|
'eip155:196': string;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
AE: string[];
|
|
328
|
-
AR: string[];
|
|
329
|
-
AT: string[];
|
|
330
|
-
AU: string[];
|
|
331
|
-
BD: string[];
|
|
332
|
-
BE: string[];
|
|
333
|
-
BG: string[];
|
|
334
|
-
BR: string[];
|
|
335
|
-
CA: string[];
|
|
336
|
-
CH: string[];
|
|
337
|
-
CL: string[];
|
|
338
|
-
CN: string[];
|
|
339
|
-
CO: string[];
|
|
340
|
-
CY: string[];
|
|
341
|
-
CZ: string[];
|
|
342
|
-
DE: string[];
|
|
343
|
-
DK: string[];
|
|
344
|
-
EC: string[];
|
|
345
|
-
EE: string[];
|
|
346
|
-
ES: string[];
|
|
347
|
-
FI: string[];
|
|
348
|
-
FR: string[];
|
|
349
|
-
GB: string[];
|
|
350
|
-
GR: string[];
|
|
351
|
-
HK: string[];
|
|
352
|
-
HR: string[];
|
|
353
|
-
HU: string[];
|
|
354
|
-
ID: string[];
|
|
355
|
-
IE: string[];
|
|
356
|
-
IL: string[];
|
|
357
|
-
IN: string[];
|
|
358
|
-
IT: string[];
|
|
359
|
-
JP: string[];
|
|
360
|
-
KE: string[];
|
|
361
|
-
KR: string[];
|
|
362
|
-
LT: string[];
|
|
363
|
-
LV: string[];
|
|
364
|
-
MA: string[];
|
|
365
|
-
MX: string[];
|
|
366
|
-
MY: string[];
|
|
367
|
-
NG: string[];
|
|
368
|
-
NL: string[];
|
|
369
|
-
NO: string[];
|
|
370
|
-
NP: string[];
|
|
371
|
-
NZ: string[];
|
|
372
|
-
PH: string[];
|
|
373
|
-
PK: string[];
|
|
374
|
-
PL: string[];
|
|
375
|
-
PR: string[];
|
|
376
|
-
PT: string[];
|
|
377
|
-
RO: string[];
|
|
378
|
-
SA: string[];
|
|
379
|
-
SE: string[];
|
|
380
|
-
SG: string[];
|
|
381
|
-
SI: string[];
|
|
382
|
-
SK: string[];
|
|
383
|
-
TH: string[];
|
|
384
|
-
TR: string[];
|
|
385
|
-
TW: string[];
|
|
386
|
-
UA: string[];
|
|
387
|
-
US: string[];
|
|
388
|
-
VN: string[];
|
|
389
|
-
ZA: string[];
|
|
390
|
-
};
|
|
391
|
-
CURRENCY_SUGGESTED_VALUES: {
|
|
392
|
-
AED: number[];
|
|
393
|
-
AMD: number[];
|
|
394
|
-
ANG: number[];
|
|
395
|
-
AOA: number[];
|
|
396
|
-
ARS: number[];
|
|
397
|
-
AUD: number[];
|
|
398
|
-
AZN: number[];
|
|
399
|
-
BDT: number[];
|
|
400
|
-
BGN: number[];
|
|
401
|
-
BHD: number[];
|
|
402
|
-
BOB: number[];
|
|
403
|
-
BRL: number[];
|
|
404
|
-
BWP: number[];
|
|
405
|
-
CAD: number[];
|
|
406
|
-
CHF: number[];
|
|
407
|
-
CLP: number[];
|
|
408
|
-
CNY: number[];
|
|
409
|
-
COP: number[];
|
|
410
|
-
CRC: number[];
|
|
411
|
-
CZK: number[];
|
|
412
|
-
DKK: number[];
|
|
413
|
-
DOP: number[];
|
|
414
|
-
DZD: number[];
|
|
415
|
-
EGP: number[];
|
|
416
|
-
EUR: number[];
|
|
417
|
-
GBP: number[];
|
|
418
|
-
GEL: number[];
|
|
419
|
-
GHS: number[];
|
|
420
|
-
GTQ: number[];
|
|
421
|
-
HKD: number[];
|
|
422
|
-
HNL: number[];
|
|
423
|
-
HRK: number[];
|
|
424
|
-
HTG: number[];
|
|
425
|
-
HUF: number[];
|
|
426
|
-
IDR: number[];
|
|
427
|
-
ILS: number[];
|
|
428
|
-
INR: number[];
|
|
429
|
-
IQD: number[];
|
|
430
|
-
ISK: number[];
|
|
431
|
-
JOD: number[];
|
|
432
|
-
JPY: number[];
|
|
433
|
-
KES: number[];
|
|
434
|
-
KGS: number[];
|
|
435
|
-
KHR: number[];
|
|
436
|
-
KRW: number[];
|
|
437
|
-
KWD: number[];
|
|
438
|
-
KZT: number[];
|
|
439
|
-
LAK: number[];
|
|
440
|
-
LBP: number[];
|
|
441
|
-
LKR: number[];
|
|
442
|
-
MAD: number[];
|
|
443
|
-
MDL: number[];
|
|
444
|
-
MMK: number[];
|
|
445
|
-
MNT: number[];
|
|
446
|
-
MWK: number[];
|
|
447
|
-
MXN: number[];
|
|
448
|
-
MYR: number[];
|
|
449
|
-
NGN: number[];
|
|
450
|
-
NIO: number[];
|
|
451
|
-
NOK: number[];
|
|
452
|
-
NPR: number[];
|
|
453
|
-
NZD: number[];
|
|
454
|
-
OMR: number[];
|
|
455
|
-
PAB: number[];
|
|
456
|
-
PEN: number[];
|
|
457
|
-
PGK: number[];
|
|
458
|
-
PHP: number[];
|
|
459
|
-
PKR: number[];
|
|
460
|
-
PLN: number[];
|
|
461
|
-
PYG: number[];
|
|
462
|
-
QAR: number[];
|
|
463
|
-
RON: number[];
|
|
464
|
-
RSD: number[];
|
|
465
|
-
RWF: number[];
|
|
466
|
-
SAR: number[];
|
|
467
|
-
SEK: number[];
|
|
468
|
-
SGD: number[];
|
|
469
|
-
THB: number[];
|
|
470
|
-
TJS: number[];
|
|
471
|
-
TND: number[];
|
|
472
|
-
TRY: number[];
|
|
473
|
-
TWD: number[];
|
|
474
|
-
TZS: number[];
|
|
475
|
-
UAH: number[];
|
|
476
|
-
UGX: number[];
|
|
477
|
-
USD: number[];
|
|
478
|
-
UYU: number[];
|
|
479
|
-
UZS: number[];
|
|
480
|
-
VND: number[];
|
|
481
|
-
XAF: number[];
|
|
482
|
-
XCD: number[];
|
|
483
|
-
XOF: number[];
|
|
484
|
-
ZAR: number[];
|
|
485
|
-
ZMW: number[];
|
|
76
|
+
'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp': string;
|
|
77
|
+
'bip122:000000000019d6689c085ae165831e93': string;
|
|
486
78
|
};
|
|
487
79
|
};
|
|
488
80
|
//# sourceMappingURL=ConstantsUtil.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConstantsUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ConstantsUtil.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConstantsUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/ConstantsUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAkB,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AASlF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;CAclB,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0RzB,CAAC"}
|