@reown/appkit-core-react-native 0.0.0-accounts-canary.1-20251023174733
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 +410 -0
- package/lib/commonjs/controllers/ApiController.js.map +1 -0
- package/lib/commonjs/controllers/AssetController.js +30 -0
- package/lib/commonjs/controllers/AssetController.js.map +1 -0
- package/lib/commonjs/controllers/BlockchainApiController.js +384 -0
- package/lib/commonjs/controllers/BlockchainApiController.js.map +1 -0
- package/lib/commonjs/controllers/ConnectionsController.js +425 -0
- package/lib/commonjs/controllers/ConnectionsController.js.map +1 -0
- package/lib/commonjs/controllers/EnsController.js +37 -0
- package/lib/commonjs/controllers/EnsController.js.map +1 -0
- package/lib/commonjs/controllers/EventsController.js +122 -0
- package/lib/commonjs/controllers/EventsController.js.map +1 -0
- package/lib/commonjs/controllers/LogController.js +188 -0
- package/lib/commonjs/controllers/LogController.js.map +1 -0
- package/lib/commonjs/controllers/ModalController.js +68 -0
- package/lib/commonjs/controllers/ModalController.js.map +1 -0
- package/lib/commonjs/controllers/OnRampController.js +502 -0
- package/lib/commonjs/controllers/OnRampController.js.map +1 -0
- package/lib/commonjs/controllers/OptionsController.js +96 -0
- package/lib/commonjs/controllers/OptionsController.js.map +1 -0
- package/lib/commonjs/controllers/PublicStateController.js +33 -0
- package/lib/commonjs/controllers/PublicStateController.js.map +1 -0
- package/lib/commonjs/controllers/RouterController.js +63 -0
- package/lib/commonjs/controllers/RouterController.js.map +1 -0
- package/lib/commonjs/controllers/SendController.js +192 -0
- package/lib/commonjs/controllers/SendController.js.map +1 -0
- package/lib/commonjs/controllers/SnackController.js +83 -0
- package/lib/commonjs/controllers/SnackController.js.map +1 -0
- package/lib/commonjs/controllers/SwapController.js +674 -0
- package/lib/commonjs/controllers/SwapController.js.map +1 -0
- package/lib/commonjs/controllers/ThemeController.js +45 -0
- package/lib/commonjs/controllers/ThemeController.js.map +1 -0
- package/lib/commonjs/controllers/TransactionsController.js +118 -0
- package/lib/commonjs/controllers/TransactionsController.js.map +1 -0
- package/lib/commonjs/controllers/WcController.js +73 -0
- package/lib/commonjs/controllers/WcController.js.map +1 -0
- package/lib/commonjs/features/reown-authentication/ReownAuthentication.js +272 -0
- package/lib/commonjs/features/reown-authentication/ReownAuthentication.js.map +1 -0
- package/lib/commonjs/features/reown-authentication/ReownAuthenticationMessenger.js +48 -0
- package/lib/commonjs/features/reown-authentication/ReownAuthenticationMessenger.js.map +1 -0
- package/lib/commonjs/features/reown-authentication/index.js +28 -0
- package/lib/commonjs/features/reown-authentication/index.js.map +1 -0
- package/lib/commonjs/index.js +202 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/utils/ApiUtil.js +43 -0
- package/lib/commonjs/utils/ApiUtil.js.map +1 -0
- package/lib/commonjs/utils/AssetUtil.js +27 -0
- package/lib/commonjs/utils/AssetUtil.js.map +1 -0
- package/lib/commonjs/utils/ConstantsUtil.js +226 -0
- package/lib/commonjs/utils/ConstantsUtil.js.map +1 -0
- package/lib/commonjs/utils/CoreHelperUtil.js +298 -0
- package/lib/commonjs/utils/CoreHelperUtil.js.map +1 -0
- package/lib/commonjs/utils/EventUtil.js +25 -0
- package/lib/commonjs/utils/EventUtil.js.map +1 -0
- package/lib/commonjs/utils/FetchUtil.js +158 -0
- package/lib/commonjs/utils/FetchUtil.js.map +1 -0
- package/lib/commonjs/utils/LogUtils.js +131 -0
- package/lib/commonjs/utils/LogUtils.js.map +1 -0
- package/lib/commonjs/utils/StorageUtil.js +319 -0
- package/lib/commonjs/utils/StorageUtil.js.map +1 -0
- package/lib/commonjs/utils/SwapApiUtil.js +75 -0
- package/lib/commonjs/utils/SwapApiUtil.js.map +1 -0
- package/lib/commonjs/utils/SwapCalculationUtil.js +97 -0
- package/lib/commonjs/utils/SwapCalculationUtil.js.map +1 -0
- package/lib/commonjs/utils/WalletUtil.js +23 -0
- package/lib/commonjs/utils/WalletUtil.js.map +1 -0
- package/lib/module/controllers/ApiController.js +407 -0
- package/lib/module/controllers/ApiController.js.map +1 -0
- package/lib/module/controllers/AssetController.js +27 -0
- package/lib/module/controllers/AssetController.js.map +1 -0
- package/lib/module/controllers/BlockchainApiController.js +381 -0
- package/lib/module/controllers/BlockchainApiController.js.map +1 -0
- package/lib/module/controllers/ConnectionsController.js +422 -0
- package/lib/module/controllers/ConnectionsController.js.map +1 -0
- package/lib/module/controllers/EnsController.js +34 -0
- package/lib/module/controllers/EnsController.js.map +1 -0
- package/lib/module/controllers/EventsController.js +118 -0
- package/lib/module/controllers/EventsController.js.map +1 -0
- package/lib/module/controllers/LogController.js +185 -0
- package/lib/module/controllers/LogController.js.map +1 -0
- package/lib/module/controllers/ModalController.js +65 -0
- package/lib/module/controllers/ModalController.js.map +1 -0
- package/lib/module/controllers/OnRampController.js +499 -0
- package/lib/module/controllers/OnRampController.js.map +1 -0
- package/lib/module/controllers/OptionsController.js +93 -0
- package/lib/module/controllers/OptionsController.js.map +1 -0
- package/lib/module/controllers/PublicStateController.js +30 -0
- package/lib/module/controllers/PublicStateController.js.map +1 -0
- package/lib/module/controllers/RouterController.js +60 -0
- package/lib/module/controllers/RouterController.js.map +1 -0
- package/lib/module/controllers/SendController.js +189 -0
- package/lib/module/controllers/SendController.js.map +1 -0
- package/lib/module/controllers/SnackController.js +80 -0
- package/lib/module/controllers/SnackController.js.map +1 -0
- package/lib/module/controllers/SwapController.js +671 -0
- package/lib/module/controllers/SwapController.js.map +1 -0
- package/lib/module/controllers/ThemeController.js +42 -0
- package/lib/module/controllers/ThemeController.js.map +1 -0
- package/lib/module/controllers/TransactionsController.js +115 -0
- package/lib/module/controllers/TransactionsController.js.map +1 -0
- package/lib/module/controllers/WcController.js +70 -0
- package/lib/module/controllers/WcController.js.map +1 -0
- package/lib/module/features/reown-authentication/ReownAuthentication.js +268 -0
- package/lib/module/features/reown-authentication/ReownAuthentication.js.map +1 -0
- package/lib/module/features/reown-authentication/ReownAuthenticationMessenger.js +43 -0
- package/lib/module/features/reown-authentication/ReownAuthenticationMessenger.js.map +1 -0
- package/lib/module/features/reown-authentication/index.js +5 -0
- package/lib/module/features/reown-authentication/index.js.map +1 -0
- package/lib/module/index.js +38 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/utils/ApiUtil.js +39 -0
- package/lib/module/utils/ApiUtil.js.map +1 -0
- package/lib/module/utils/AssetUtil.js +23 -0
- package/lib/module/utils/AssetUtil.js.map +1 -0
- package/lib/module/utils/ConstantsUtil.js +222 -0
- package/lib/module/utils/ConstantsUtil.js.map +1 -0
- package/lib/module/utils/CoreHelperUtil.js +294 -0
- package/lib/module/utils/CoreHelperUtil.js.map +1 -0
- package/lib/module/utils/EventUtil.js +21 -0
- package/lib/module/utils/EventUtil.js.map +1 -0
- package/lib/module/utils/FetchUtil.js +154 -0
- package/lib/module/utils/FetchUtil.js.map +1 -0
- package/lib/module/utils/LogUtils.js +121 -0
- package/lib/module/utils/LogUtils.js.map +1 -0
- package/lib/module/utils/StorageUtil.js +315 -0
- package/lib/module/utils/StorageUtil.js.map +1 -0
- package/lib/module/utils/SwapApiUtil.js +71 -0
- package/lib/module/utils/SwapApiUtil.js.map +1 -0
- package/lib/module/utils/SwapCalculationUtil.js +94 -0
- package/lib/module/utils/SwapCalculationUtil.js.map +1 -0
- package/lib/module/utils/WalletUtil.js +19 -0
- package/lib/module/utils/WalletUtil.js.map +1 -0
- package/lib/typescript/controllers/ApiController.d.ts +40 -0
- package/lib/typescript/controllers/ApiController.d.ts.map +1 -0
- package/lib/typescript/controllers/AssetController.d.ts +12 -0
- package/lib/typescript/controllers/AssetController.d.ts.map +1 -0
- package/lib/typescript/controllers/BlockchainApiController.d.ts +55 -0
- package/lib/typescript/controllers/BlockchainApiController.d.ts.map +1 -0
- package/lib/typescript/controllers/ConnectionsController.d.ts +47 -0
- package/lib/typescript/controllers/ConnectionsController.d.ts.map +1 -0
- package/lib/typescript/controllers/EnsController.d.ts +10 -0
- package/lib/typescript/controllers/EnsController.d.ts.map +1 -0
- package/lib/typescript/controllers/EventsController.d.ts +25 -0
- package/lib/typescript/controllers/EventsController.d.ts.map +1 -0
- package/lib/typescript/controllers/LogController.d.ts +65 -0
- package/lib/typescript/controllers/LogController.d.ts.map +1 -0
- package/lib/typescript/controllers/ModalController.d.ts +17 -0
- package/lib/typescript/controllers/ModalController.d.ts.map +1 -0
- package/lib/typescript/controllers/OnRampController.d.ts +55 -0
- package/lib/typescript/controllers/OnRampController.d.ts.map +1 -0
- package/lib/typescript/controllers/OptionsController.d.ts +46 -0
- package/lib/typescript/controllers/OptionsController.d.ts.map +1 -0
- package/lib/typescript/controllers/PublicStateController.d.ts +12 -0
- package/lib/typescript/controllers/PublicStateController.d.ts.map +1 -0
- package/lib/typescript/controllers/RouterController.d.ts +21 -0
- package/lib/typescript/controllers/RouterController.d.ts.map +1 -0
- package/lib/typescript/controllers/SendController.d.ts +39 -0
- package/lib/typescript/controllers/SendController.d.ts.map +1 -0
- package/lib/typescript/controllers/SnackController.d.ts +20 -0
- package/lib/typescript/controllers/SnackController.d.ts.map +1 -0
- package/lib/typescript/controllers/SwapController.d.ts +116 -0
- package/lib/typescript/controllers/SwapController.d.ts.map +1 -0
- package/lib/typescript/controllers/ThemeController.d.ts +14 -0
- package/lib/typescript/controllers/ThemeController.d.ts.map +1 -0
- package/lib/typescript/controllers/TransactionsController.d.ts +21 -0
- package/lib/typescript/controllers/TransactionsController.d.ts.map +1 -0
- package/lib/typescript/controllers/WcController.d.ts +27 -0
- package/lib/typescript/controllers/WcController.d.ts.map +1 -0
- package/lib/typescript/features/reown-authentication/ReownAuthentication.d.ts +174 -0
- package/lib/typescript/features/reown-authentication/ReownAuthentication.d.ts.map +1 -0
- package/lib/typescript/features/reown-authentication/ReownAuthenticationMessenger.d.ts +16 -0
- package/lib/typescript/features/reown-authentication/ReownAuthenticationMessenger.d.ts.map +1 -0
- package/lib/typescript/features/reown-authentication/index.d.ts +3 -0
- package/lib/typescript/features/reown-authentication/index.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +29 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/utils/ApiUtil.d.ts +7 -0
- package/lib/typescript/utils/ApiUtil.d.ts.map +1 -0
- package/lib/typescript/utils/AssetUtil.d.ts +6 -0
- package/lib/typescript/utils/AssetUtil.d.ts.map +1 -0
- package/lib/typescript/utils/ConstantsUtil.d.ts +79 -0
- package/lib/typescript/utils/ConstantsUtil.d.ts.map +1 -0
- package/lib/typescript/utils/CoreHelperUtil.d.ts +43 -0
- package/lib/typescript/utils/CoreHelperUtil.d.ts.map +1 -0
- package/lib/typescript/utils/EventUtil.d.ts +5 -0
- package/lib/typescript/utils/EventUtil.d.ts.map +1 -0
- package/lib/typescript/utils/FetchUtil.d.ts +29 -0
- package/lib/typescript/utils/FetchUtil.d.ts.map +1 -0
- package/lib/typescript/utils/LogUtils.d.ts +15 -0
- package/lib/typescript/utils/LogUtils.d.ts.map +1 -0
- package/lib/typescript/utils/StorageUtil.d.ts +36 -0
- package/lib/typescript/utils/StorageUtil.d.ts.map +1 -0
- package/lib/typescript/utils/SwapApiUtil.d.ts +11 -0
- package/lib/typescript/utils/SwapApiUtil.d.ts.map +1 -0
- package/lib/typescript/utils/SwapCalculationUtil.d.ts +24 -0
- package/lib/typescript/utils/SwapCalculationUtil.d.ts.map +1 -0
- package/lib/typescript/utils/WalletUtil.d.ts +5 -0
- package/lib/typescript/utils/WalletUtil.d.ts.map +1 -0
- package/package.json +57 -0
- package/readme.md +9 -0
- package/src/controllers/ApiController.ts +454 -0
- package/src/controllers/AssetController.ts +32 -0
- package/src/controllers/BlockchainApiController.ts +418 -0
- package/src/controllers/ConnectionsController.ts +575 -0
- package/src/controllers/EnsController.ts +41 -0
- package/src/controllers/EventsController.ts +146 -0
- package/src/controllers/LogController.ts +250 -0
- package/src/controllers/ModalController.ts +68 -0
- package/src/controllers/OnRampController.ts +698 -0
- package/src/controllers/OptionsController.ts +143 -0
- package/src/controllers/PublicStateController.ts +37 -0
- package/src/controllers/RouterController.ts +112 -0
- package/src/controllers/SendController.ts +270 -0
- package/src/controllers/SnackController.ts +95 -0
- package/src/controllers/SwapController.ts +863 -0
- package/src/controllers/ThemeController.ts +47 -0
- package/src/controllers/TransactionsController.ts +150 -0
- package/src/controllers/WcController.ts +93 -0
- package/src/features/reown-authentication/ReownAuthentication.ts +475 -0
- package/src/features/reown-authentication/ReownAuthenticationMessenger.ts +80 -0
- package/src/features/reown-authentication/index.ts +2 -0
- package/src/index.ts +70 -0
- package/src/utils/ApiUtil.ts +50 -0
- package/src/utils/AssetUtil.ts +27 -0
- package/src/utils/ConstantsUtil.ts +303 -0
- package/src/utils/CoreHelperUtil.ts +377 -0
- package/src/utils/EventUtil.ts +22 -0
- package/src/utils/FetchUtil.ts +164 -0
- package/src/utils/LogUtils.ts +179 -0
- package/src/utils/StorageUtil.ts +405 -0
- package/src/utils/SwapApiUtil.ts +101 -0
- package/src/utils/SwapCalculationUtil.ts +145 -0
- package/src/utils/WalletUtil.ts +14 -0
|
@@ -0,0 +1 @@
|
|
|
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;AAEjF,eAAO,MAAM,SAAS;4BACI,QAAQ,iBAAiB,OAAO,MAAM,EAAE,MAAM,CAAC;8BAY7C,aAAa,kBAAkB,OAAO,MAAM,EAAE,MAAM,CAAC;CAWhF,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { Features } from '@reown/appkit-common-react-native';
|
|
2
|
+
export declare const OnRampErrorType: {
|
|
3
|
+
readonly AMOUNT_TOO_LOW: "INVALID_AMOUNT_TOO_LOW";
|
|
4
|
+
readonly AMOUNT_TOO_HIGH: "INVALID_AMOUNT_TOO_HIGH";
|
|
5
|
+
readonly INVALID_AMOUNT: "INVALID_AMOUNT";
|
|
6
|
+
readonly INCOMPATIBLE_REQUEST: "INCOMPATIBLE_REQUEST";
|
|
7
|
+
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
8
|
+
readonly NO_VALID_QUOTES: "NO_VALID_QUOTES";
|
|
9
|
+
readonly FAILED_TO_LOAD: "FAILED_TO_LOAD";
|
|
10
|
+
readonly FAILED_TO_LOAD_COUNTRIES: "FAILED_TO_LOAD_COUNTRIES";
|
|
11
|
+
readonly FAILED_TO_LOAD_PROVIDERS: "FAILED_TO_LOAD_PROVIDERS";
|
|
12
|
+
readonly FAILED_TO_LOAD_METHODS: "FAILED_TO_LOAD_METHODS";
|
|
13
|
+
readonly FAILED_TO_LOAD_CURRENCIES: "FAILED_TO_LOAD_CURRENCIES";
|
|
14
|
+
readonly FAILED_TO_LOAD_LIMITS: "FAILED_TO_LOAD_LIMITS";
|
|
15
|
+
readonly UNKNOWN: "UNKNOWN_ERROR";
|
|
16
|
+
};
|
|
17
|
+
export declare const ConstantsUtil: {
|
|
18
|
+
FOUR_MINUTES_MS: number;
|
|
19
|
+
TEN_SEC_MS: number;
|
|
20
|
+
ONE_SEC_MS: number;
|
|
21
|
+
EMAIL_REGEX: RegExp;
|
|
22
|
+
LINKING_ERROR: string;
|
|
23
|
+
NATIVE_TOKEN_ADDRESS: {
|
|
24
|
+
readonly eip155: "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
25
|
+
readonly solana: "So11111111111111111111111111111111111111111";
|
|
26
|
+
readonly bip122: "0x";
|
|
27
|
+
};
|
|
28
|
+
ONRAMP_ERROR_TYPES: {
|
|
29
|
+
readonly AMOUNT_TOO_LOW: "INVALID_AMOUNT_TOO_LOW";
|
|
30
|
+
readonly AMOUNT_TOO_HIGH: "INVALID_AMOUNT_TOO_HIGH";
|
|
31
|
+
readonly INVALID_AMOUNT: "INVALID_AMOUNT";
|
|
32
|
+
readonly INCOMPATIBLE_REQUEST: "INCOMPATIBLE_REQUEST";
|
|
33
|
+
readonly BAD_REQUEST: "BAD_REQUEST";
|
|
34
|
+
readonly NO_VALID_QUOTES: "NO_VALID_QUOTES";
|
|
35
|
+
readonly FAILED_TO_LOAD: "FAILED_TO_LOAD";
|
|
36
|
+
readonly FAILED_TO_LOAD_COUNTRIES: "FAILED_TO_LOAD_COUNTRIES";
|
|
37
|
+
readonly FAILED_TO_LOAD_PROVIDERS: "FAILED_TO_LOAD_PROVIDERS";
|
|
38
|
+
readonly FAILED_TO_LOAD_METHODS: "FAILED_TO_LOAD_METHODS";
|
|
39
|
+
readonly FAILED_TO_LOAD_CURRENCIES: "FAILED_TO_LOAD_CURRENCIES";
|
|
40
|
+
readonly FAILED_TO_LOAD_LIMITS: "FAILED_TO_LOAD_LIMITS";
|
|
41
|
+
readonly UNKNOWN: "UNKNOWN_ERROR";
|
|
42
|
+
};
|
|
43
|
+
SWAP_SUGGESTED_TOKENS: string[];
|
|
44
|
+
SWAP_POPULAR_TOKENS: string[];
|
|
45
|
+
ACTIVITY_SUPPORTED_CHAINS: string[];
|
|
46
|
+
SWAP_SUPPORTED_NETWORKS: string[];
|
|
47
|
+
SEND_SUPPORTED_NAMESPACES: string[];
|
|
48
|
+
ONRAMP_SUPPORTED_NAMESPACES: string[];
|
|
49
|
+
CONVERT_SLIPPAGE_TOLERANCE: number;
|
|
50
|
+
DEFAULT_FEATURES: Features;
|
|
51
|
+
NETWORK_DEFAULT_CURRENCIES: {
|
|
52
|
+
'eip155:1': string;
|
|
53
|
+
'eip155:56': string;
|
|
54
|
+
'eip155:137': string;
|
|
55
|
+
'eip155:42161': string;
|
|
56
|
+
'eip155:43114': string;
|
|
57
|
+
'eip155:10': string;
|
|
58
|
+
'eip155:250': string;
|
|
59
|
+
'eip155:100': string;
|
|
60
|
+
'eip155:8453': string;
|
|
61
|
+
'eip155:1284': string;
|
|
62
|
+
'eip155:1285': string;
|
|
63
|
+
'eip155:25': string;
|
|
64
|
+
'eip155:42220': string;
|
|
65
|
+
'eip155:8217': string;
|
|
66
|
+
'eip155:1313161554': string;
|
|
67
|
+
'eip155:40': string;
|
|
68
|
+
'eip155:1088': string;
|
|
69
|
+
'eip155:2222': string;
|
|
70
|
+
'eip155:7777777': string;
|
|
71
|
+
'eip155:7700': string;
|
|
72
|
+
'eip155:59144': string;
|
|
73
|
+
'eip155:1101': string;
|
|
74
|
+
'eip155:196': string;
|
|
75
|
+
'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp': string;
|
|
76
|
+
'bip122:000000000019d6689c085ae165831e93': string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=ConstantsUtil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqRzB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BlockchainAdapter, type Balance, type CaipAddress, type CaipNetwork, type ChainNamespace, type SocialProvider, type LinkingRecord, type DataWallet, type SdkVersion } from '@reown/appkit-common-react-native';
|
|
2
|
+
export declare const CoreHelperUtil: {
|
|
3
|
+
isPairingExpired(expiry?: number): boolean;
|
|
4
|
+
isAllowedRetry(lastRetry: number): boolean;
|
|
5
|
+
isCaipAddress(address?: unknown): address is `${string}:${string}:${string}`;
|
|
6
|
+
getPairingExpiry(): number;
|
|
7
|
+
getNetworkId(caipAddress: CaipAddress | undefined): string | undefined;
|
|
8
|
+
getPlainAddress(address: CaipAddress | string | undefined): string | undefined;
|
|
9
|
+
wait(milliseconds: number): Promise<unknown>;
|
|
10
|
+
isHttpUrl(url: string): boolean;
|
|
11
|
+
isLinkModeURL(url?: string): boolean;
|
|
12
|
+
formatNativeUrl(appUrl: string, wcUri: string): LinkingRecord;
|
|
13
|
+
formatUniversalUrl(appUrl: string, wcUri: string, provider?: SocialProvider): LinkingRecord;
|
|
14
|
+
openLink(url: string): Promise<void>;
|
|
15
|
+
formatBalance(balance: string | undefined, symbol: string | undefined, decimals?: number): string;
|
|
16
|
+
isAddress(address: string, namespace?: ChainNamespace): boolean;
|
|
17
|
+
getApiUrl(): string;
|
|
18
|
+
getBlockchainApiUrl(): string;
|
|
19
|
+
getBlockchainStagingApiUrl(): string;
|
|
20
|
+
getAnalyticsUrl(): string;
|
|
21
|
+
getCountryFromTimezone(): "VC" | "DE" | "GB" | "NZ" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "YE" | "YT" | "ZA" | "ZM" | "ZW";
|
|
22
|
+
getUUID(): string;
|
|
23
|
+
getBundleId(): string | undefined;
|
|
24
|
+
parseError(error: any): string;
|
|
25
|
+
checkInstalled(wallet: DataWallet): Promise<boolean>;
|
|
26
|
+
isValidEmail(email: string): boolean;
|
|
27
|
+
allSettled(promises: Promise<unknown>[]): Promise<({
|
|
28
|
+
status: string;
|
|
29
|
+
value: unknown;
|
|
30
|
+
} | {
|
|
31
|
+
status: string;
|
|
32
|
+
reason: any;
|
|
33
|
+
})[]>;
|
|
34
|
+
calculateAndFormatBalance(array?: Balance[]): {
|
|
35
|
+
dollars: string | undefined;
|
|
36
|
+
pennies: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
sortNetworks(approvedCaipNetworkIds: `${string}:${string}`[] | undefined, requestedCaipNetworks?: CaipNetwork[]): CaipNetwork[];
|
|
39
|
+
debounce<F extends (...args: any[]) => any>(func: F, wait: number): (...args: Parameters<F>) => void;
|
|
40
|
+
generateSdkVersion(adapters: BlockchainAdapter[], version: string): SdkVersion;
|
|
41
|
+
getRequestedCaipNetworkIds(): `${string}:${string}`[];
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=CoreHelperUtil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoreHelperUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/CoreHelperUtil.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EAGjB,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,UAAU,EAChB,MAAM,mCAAmC,CAAC;AA+B3C,eAAO,MAAM,cAAc;8BACC,MAAM;8BAIN,MAAM;4BAIR,OAAO;;8BAkBL,WAAW,GAAG,SAAS;6BAIxB,WAAW,GAAG,MAAM,GAAG,SAAS;uBAQhC,MAAM;mBAMhB,MAAM;wBAID,MAAM;4BAQF,MAAM,SAAS,MAAM,GAAG,aAAa;+BA2BlC,MAAM,SAAS,MAAM,aAAa,cAAc,GAAG,aAAa;kBAyBvE,MAAM;2BAQH,MAAM,GAAG,SAAS,UAAU,MAAM,GAAG,SAAS;uBAgBlD,MAAM,cAAa,cAAc,GAAc,OAAO;;;;;;;mBA2E1D,MAAM,GAAG,SAAS;sBAQf,GAAG,GAAG,MAAM;2BAYD,UAAU,GAAG,QAAQ,OAAO,CAAC;wBAiBtC,MAAM;yBAIL,QAAQ,OAAO,CAAC,EAAE;;;;;;;sCAUL,OAAO,EAAE;;;;yCAiBjB,GAAG,MAAM,IAAI,MAAM,EAAE,EAAE,GAAG,SAAS,0BACpC,WAAW,EAAE;iCAiBT,GAAG,EAAE,KAAK,GAAG,iBAAiB,MAAM;iCAcpC,iBAAiB,EAAE,WAAW,MAAM,GAAG,UAAU;;CAsB/E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/EventUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAE5E,eAAO,MAAM,SAAS;8BACM,QAAQ,cAAc,OAAO,GAAG,QAAQ,GAAG,SAAS;CAkB/E,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestCache } from '@reown/appkit-common-react-native';
|
|
2
|
+
interface Options {
|
|
3
|
+
baseUrl: string;
|
|
4
|
+
clientId?: string | null;
|
|
5
|
+
}
|
|
6
|
+
interface RequestArguments {
|
|
7
|
+
path: string;
|
|
8
|
+
headers?: HeadersInit;
|
|
9
|
+
params?: Record<string, string | undefined>;
|
|
10
|
+
cache?: RequestCache;
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
}
|
|
13
|
+
interface PostArguments extends RequestArguments {
|
|
14
|
+
body?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
export declare class FetchUtil {
|
|
17
|
+
baseUrl: Options['baseUrl'];
|
|
18
|
+
clientId: Options['clientId'];
|
|
19
|
+
constructor({ baseUrl, clientId }: Options);
|
|
20
|
+
get<T>({ headers, signal, ...args }: RequestArguments): Promise<T | undefined>;
|
|
21
|
+
post<T>({ body, headers, signal, ...args }: PostArguments): Promise<T | undefined>;
|
|
22
|
+
put<T>({ body, headers, signal, ...args }: PostArguments): Promise<T | undefined>;
|
|
23
|
+
delete<T>({ body, headers, signal, ...args }: PostArguments): Promise<T | undefined>;
|
|
24
|
+
fetchImage(path: string, headers?: Record<string, string>, params?: Record<string, string>): Promise<string | undefined>;
|
|
25
|
+
createUrl({ path, params }: RequestArguments): string;
|
|
26
|
+
private processResponse;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=FetchUtil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FetchUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/FetchUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAItE,UAAU,OAAO;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,UAAU,aAAc,SAAQ,gBAAgB;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAGD,qBAAa,SAAS;IACb,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;gBAElB,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,OAAO;IAKpC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB;IAOrD,IAAI,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa;IAYzD,GAAG,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa;IAYxD,MAAM,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa;IAY3D,UAAU,CACrB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAiB1B,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,gBAAgB;YAsCrC,eAAe;CA+B9B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const sanitizeString: (value: string) => string;
|
|
2
|
+
export declare const sanitizeStackTrace: (stack: string) => string;
|
|
3
|
+
export declare const sanitizeUrl: (url: string) => string;
|
|
4
|
+
export declare const sanitizeValue: (value: unknown, visited?: WeakSet<WeakKey>) => unknown;
|
|
5
|
+
export declare const sanitizeObject: (obj: Record<string, unknown>, visited?: WeakSet<WeakKey>) => Record<string, unknown>;
|
|
6
|
+
export declare const sanitizeData: (data?: Record<string, unknown>) => Record<string, unknown> | undefined;
|
|
7
|
+
export declare const LogUtils: {
|
|
8
|
+
sanitizeString: (value: string) => string;
|
|
9
|
+
sanitizeStackTrace: (stack: string) => string;
|
|
10
|
+
sanitizeUrl: (url: string) => string;
|
|
11
|
+
sanitizeValue: (value: unknown, visited?: WeakSet<WeakKey>) => unknown;
|
|
12
|
+
sanitizeObject: (obj: Record<string, unknown>, visited?: WeakSet<WeakKey>) => Record<string, unknown>;
|
|
13
|
+
sanitizeData: (data?: Record<string, unknown>) => Record<string, unknown> | undefined;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=LogUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/LogUtils.ts"],"names":[],"mappings":"AAuCA,eAAO,MAAM,cAAc,UAAW,MAAM,KAAG,MAU9C,CAAC;AAEF,eAAO,MAAM,kBAAkB,UAAW,MAAM,KAAG,MAgBlD,CAAC;AAEF,eAAO,MAAM,WAAW,QAAS,MAAM,KAAG,MAazC,CAAC;AAQF,eAAO,MAAM,aAAa,UAAW,OAAO,iCAA4B,OAqCvE,CAAC;AAEF,eAAO,MAAM,cAAc,QACpB,OAAO,MAAM,EAAE,OAAO,CAAC,iCAE3B,OAAO,MAAM,EAAE,OAAO,CA0BxB,CAAC;AAEF,eAAO,MAAM,YAAY,UAChB,OAAO,MAAM,EAAE,OAAO,CAAC,KAC7B,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAM5B,CAAC;AAGF,eAAO,MAAM,QAAQ;4BApIiB,MAAM,KAAG,MAAM;gCAYX,MAAM,KAAG,MAAM;uBAkBxB,MAAM,KAAG,MAAM;2BAqBX,OAAO,iCAA4B,OAAO;0BAwCxE,OAAO,MAAM,EAAE,OAAO,CAAC,iCAE3B,OAAO,MAAM,EAAE,OAAO,CAAC;0BA6BjB,OAAO,MAAM,EAAE,OAAO,CAAC,KAC7B,OAAO,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;CAgBrC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type OnRampCountry, type OnRampFiatCurrency, type OnRampFiatLimit, type OnRampServiceProvider, type OnRampCountryDefaults, type WcWallet, type ConnectorType, type ChainNamespace, type WalletDeepLink } from '@reown/appkit-common-react-native';
|
|
2
|
+
export declare const StorageUtil: {
|
|
3
|
+
setWalletConnectDeepLink({ href, name }: WalletDeepLink): void;
|
|
4
|
+
getWalletConnectDeepLink(): Promise<WalletDeepLink | undefined>;
|
|
5
|
+
removeWalletConnectDeepLink(): Promise<void>;
|
|
6
|
+
addRecentWallet(wallet: WcWallet): Promise<WcWallet[] | undefined>;
|
|
7
|
+
setRecentWallets(wallets: WcWallet[]): Promise<void>;
|
|
8
|
+
getRecentWallets(): Promise<WcWallet[]>;
|
|
9
|
+
setConnectedConnectors({ type, namespaces }: {
|
|
10
|
+
type: ConnectorType;
|
|
11
|
+
namespaces: string[];
|
|
12
|
+
}): Promise<void>;
|
|
13
|
+
getConnectedConnectors(): Promise<{
|
|
14
|
+
type: ConnectorType;
|
|
15
|
+
namespaces: string[];
|
|
16
|
+
}[]>;
|
|
17
|
+
removeConnectedConnectors(type: ConnectorType): Promise<void>;
|
|
18
|
+
setOnRampPreferredCountry(country: OnRampCountry): Promise<void>;
|
|
19
|
+
getOnRampPreferredCountry(): Promise<OnRampCountry | undefined>;
|
|
20
|
+
setOnRampPreferredFiatCurrency(currency: OnRampFiatCurrency): Promise<void>;
|
|
21
|
+
getOnRampPreferredFiatCurrency(): Promise<OnRampFiatCurrency | undefined>;
|
|
22
|
+
setOnRampCountries(countries: OnRampCountry[]): Promise<void>;
|
|
23
|
+
getOnRampCountries(): Promise<OnRampCountry[]>;
|
|
24
|
+
setOnRampCountriesDefaults(countriesDefaults: OnRampCountryDefaults[]): Promise<void>;
|
|
25
|
+
getOnRampCountriesDefaults(): Promise<OnRampCountryDefaults[]>;
|
|
26
|
+
setOnRampServiceProviders(serviceProviders: OnRampServiceProvider[]): Promise<void>;
|
|
27
|
+
getOnRampServiceProviders(): Promise<OnRampServiceProvider[]>;
|
|
28
|
+
setOnRampFiatLimits(fiatLimits: OnRampFiatLimit[]): Promise<void>;
|
|
29
|
+
getOnRampFiatLimits(): Promise<OnRampFiatLimit[]>;
|
|
30
|
+
setOnRampFiatCurrencies(fiatCurrencies: OnRampFiatCurrency[]): Promise<void>;
|
|
31
|
+
getOnRampFiatCurrencies(): Promise<OnRampFiatCurrency[]>;
|
|
32
|
+
setActiveNamespace(namespace?: ChainNamespace): Promise<void>;
|
|
33
|
+
getActiveNamespace(): Promise<ChainNamespace | undefined>;
|
|
34
|
+
removeActiveNamespace(): Promise<void>;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=StorageUtil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorageUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/StorageUtil.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,QAAQ,EAEb,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,cAAc,EAEpB,MAAM,mCAAmC,CAAC;AAK3C,eAAO,MAAM,WAAW;6CACmB,cAAc;;;4BAkCzB,QAAQ;8BAuBN,QAAQ,EAAE;wBAQhB,QAAQ,QAAQ,EAAE,CAAC;;cAgBrC,aAAa;oBACP,MAAM,EAAE;;8BAiBU,QAAQ;QAAE,IAAI,EAAE,aAAa,CAAC;QAAC,UAAU,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;oCAclD,aAAa;uCAaV,aAAa;;6CAyBP,kBAAkB;;kCAyB7B,aAAa,EAAE;;kDAsBC,qBAAqB,EAAE;;gDAsCzB,qBAAqB,EAAE;;oCAsCnC,eAAe,EAAE;;4CAsCT,kBAAkB,EAAE;;mCAsC7B,cAAc;;;CAmCpD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Balance, BlockchainApiSwapAllowanceRequest, SwapTokenWithBalance } from '@reown/appkit-common-react-native';
|
|
2
|
+
export declare const SwapApiUtil: {
|
|
3
|
+
getTokenList(): Promise<SwapTokenWithBalance[]>;
|
|
4
|
+
fetchSwapAllowance({ tokenAddress, userAddress, sourceTokenAmount, sourceTokenDecimals }: Pick<BlockchainApiSwapAllowanceRequest, "tokenAddress" | "userAddress"> & {
|
|
5
|
+
sourceTokenAmount: string;
|
|
6
|
+
sourceTokenDecimals: number;
|
|
7
|
+
}): Promise<boolean>;
|
|
8
|
+
mapBalancesToSwapTokens(balances?: Balance[]): SwapTokenWithBalance[];
|
|
9
|
+
fetchGasPrice(): Promise<import("@reown/appkit-common-react-native").BlockchainApiGasPriceResponse | null | undefined>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=SwapApiUtil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwapApiUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/SwapApiUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAEP,iCAAiC,EACjC,oBAAoB,EACrB,MAAM,mCAAmC,CAAC;AAM3C,eAAO,MAAM,WAAW;;;2BAgCD,MAAM;6BACJ,MAAM;;uCAqBM,OAAO,EAAE;;CAmC7C,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type SwapTokenWithBalance } from '@reown/appkit-common-react-native';
|
|
2
|
+
export declare const SwapCalculationUtil: {
|
|
3
|
+
getGasPriceInEther(gas: bigint, gasPrice: bigint): number;
|
|
4
|
+
getGasPriceInUSD(networkPrice: string, gas: bigint, gasPrice: bigint): number;
|
|
5
|
+
getPriceImpact({ sourceTokenAmount, sourceTokenPriceInUSD, toTokenPriceInUSD, toTokenAmount }: {
|
|
6
|
+
sourceTokenAmount: string;
|
|
7
|
+
sourceTokenPriceInUSD: number;
|
|
8
|
+
toTokenPriceInUSD: number;
|
|
9
|
+
toTokenAmount: string;
|
|
10
|
+
}): number;
|
|
11
|
+
getMaxSlippage(slippage: number, toTokenAmount: string): number;
|
|
12
|
+
getProviderFee(sourceTokenAmount: string, feePercentage?: number): string;
|
|
13
|
+
getProviderFeePrice(sourceTokenAmount: string, sourceTokenPriceInUSD: number, feePercentage?: number): number;
|
|
14
|
+
isInsufficientNetworkTokenForGas(networkBalanceInUSD: string, gasPriceInUSD: number | undefined): boolean;
|
|
15
|
+
isInsufficientSourceTokenForSwap(sourceTokenAmount: string, sourceTokenAddress: string, balance: SwapTokenWithBalance[] | undefined): boolean;
|
|
16
|
+
getToTokenAmount({ sourceToken, toToken, sourceTokenPrice, toTokenPrice, sourceTokenAmount }: {
|
|
17
|
+
sourceToken: SwapTokenWithBalance | undefined;
|
|
18
|
+
toToken: SwapTokenWithBalance | undefined;
|
|
19
|
+
sourceTokenPrice: number;
|
|
20
|
+
toTokenPrice: number;
|
|
21
|
+
sourceTokenAmount: string;
|
|
22
|
+
}): string;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=SwapCalculationUtil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SwapCalculationUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/SwapCalculationUtil.ts"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAG1F,eAAO,MAAM,mBAAmB;4BACN,MAAM,YAAY,MAAM;mCAOjB,MAAM,OAAO,MAAM,YAAY,MAAM;;2BAc/C,MAAM;+BACF,MAAM;2BACV,MAAM;uBACV,MAAM;;6BASE,MAAM,iBAAiB,MAAM;sCAOpB,MAAM;2CAOnB,MAAM,yBACF,MAAM;0DASuB,MAAM,iBAAiB,MAAM,GAAG,SAAS;wDAW1E,MAAM,sBACL,MAAM,WACjB,oBAAoB,EAAE,GAAG,SAAS;;qBAmB9B,oBAAoB,GAAG,SAAS;iBACpC,oBAAoB,GAAG,SAAS;0BACvB,MAAM;sBACV,MAAM;2BACD,MAAM;;CA6C5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WalletUtil.d.ts","sourceRoot":"","sources":["../../../src/utils/WalletUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAIlE,eAAO,MAAM,UAAU;0BACC,MAAM,KAAG,QAAQ,GAAG,SAAS;CAQpD,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@reown/appkit-core-react-native",
|
|
3
|
+
"version": "0.0.0-accounts-canary.1-20251023174733",
|
|
4
|
+
"main": "lib/commonjs/index.js",
|
|
5
|
+
"types": "lib/typescript/index.d.ts",
|
|
6
|
+
"module": "lib/module/index.js",
|
|
7
|
+
"react-native": "src/index.ts",
|
|
8
|
+
"source": "src/index.ts",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "bob build",
|
|
11
|
+
"clean": "rm -rf lib",
|
|
12
|
+
"test": "jest",
|
|
13
|
+
"lint": "eslint . --ext .js,.jsx,.ts,.tsx"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"src",
|
|
17
|
+
"lib",
|
|
18
|
+
"!**/__tests__",
|
|
19
|
+
"!**/__fixtures__",
|
|
20
|
+
"!**/__mocks__"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"web3",
|
|
24
|
+
"crypto",
|
|
25
|
+
"ethereum",
|
|
26
|
+
"appkit",
|
|
27
|
+
"walletconnect",
|
|
28
|
+
"react-native"
|
|
29
|
+
],
|
|
30
|
+
"repository": "https://github.com/reown-com/appkit-react-native",
|
|
31
|
+
"author": "Reown (https://discord.gg/reown)",
|
|
32
|
+
"homepage": "https://reown.com/appkit",
|
|
33
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/reown-com/appkit-react-native/issues"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"registry": "https://registry.npmjs.org/",
|
|
39
|
+
"access": "public",
|
|
40
|
+
"provenance": true
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@reown/appkit-common-react-native": "0.0.0-accounts-canary.1-20251023174733",
|
|
44
|
+
"countries-and-timezones": "3.7.2",
|
|
45
|
+
"derive-valtio": "0.2.0",
|
|
46
|
+
"valtio": "2.1.8"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@walletconnect/react-native-compat": ">=2.16.1",
|
|
50
|
+
"react": ">=18",
|
|
51
|
+
"react-native": ">=0.72"
|
|
52
|
+
},
|
|
53
|
+
"eslintIgnore": [
|
|
54
|
+
"node_modules/",
|
|
55
|
+
"lib/"
|
|
56
|
+
]
|
|
57
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#### 📚 [Documentation](https://docs.reown.com/appkit/react-native/core/installation)
|
|
2
|
+
|
|
3
|
+
#### 🔎 [Examples](https://github.com/reown-com/react-native-examples)
|
|
4
|
+
|
|
5
|
+
#### 🔗 [Website](https://reown.com/appkit)
|
|
6
|
+
|
|
7
|
+
# AppKit
|
|
8
|
+
|
|
9
|
+
Your on-ramp to web3 multichain. AppKit is a versatile library that makes it super easy to connect users with your Dapp and start interacting with the blockchain.
|