@coinmasters/types 4.10.1 → 4.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,849 +1,9 @@
1
- /// <reference types="node" />
2
-
3
- import type { FixedNumber } from 'ethers';
4
-
5
- export declare type AddChainWalletParams = {
6
- chain: Chain;
7
- wallet: ChainWallet;
8
- walletMethods: any;
9
- };
10
-
11
- export declare class ApiError extends Error {
12
- readonly status: number;
13
- readonly revision: string;
14
- readonly type?: ERROR_TYPE;
15
- readonly module: ERROR_MODULE;
16
- readonly code: ERROR_CODE;
17
- readonly message: string;
18
- readonly display: string;
19
- readonly stack?: string;
20
- readonly options: ApiErrorOptions;
21
- readonly displayMessageParams?: string[];
22
- constructor({ status, revision, module, code, message, type, options: { shouldLog, shouldThrow, shouldTrace }, displayMessageParams, }: ErrorInfo);
23
- static fromErrorInfo(errorInfo: ErrorInfo): ApiError;
24
- toErrorInfo(): ErrorInfo;
25
- get identifier(): string;
26
- get displayMessage(): string;
27
- handle(): ErrorInfo;
28
- }
29
-
30
- export declare type ApiErrorOptions = {
31
- shouldLog?: boolean;
32
- shouldTrace?: boolean;
33
- shouldThrow?: boolean;
34
- };
35
-
36
- declare type ApisType = {
37
- [key in UTXOChain]?: string | any;
38
- } & {
39
- [key in EVMChain]?: string | any;
40
- } & {
41
- [key in CosmosChain]?: string;
42
- };
43
-
44
- export declare enum ApiUrl {
45
- Cosmos = "https://node-router.thorswap.net/cosmos/rest",
46
- Kujira = "https://lcd-kujira.synergynodes.com/",
47
- MayanodeMainnet = "https://mayanode.mayachain.info",
48
- MayanodeStagenet = "https://stagenet.mayanode.mayachain.info",
49
- ThornodeMainnet = "https://thornode.ninerealms.com",
50
- ThornodeStagenet = "https://thornode.ninerealms.com",
51
- ThorswapApi = "https://api.thorswap.net",
52
- ThorswapStatic = "https://static.thorswap.net"
53
- }
54
-
55
- export declare type Asset = {
56
- chain: Chain;
57
- symbol: string;
58
- ticker: string;
59
- synth?: boolean;
60
- };
61
-
62
- export declare const availableChainsByWallet: any;
63
-
64
- export declare enum BaseDecimal {
65
- ARB = 18,
66
- AVAX = 18,
67
- BCH = 8,
68
- BSC = 18,
69
- BTC = 8,
70
- DASH = 8,
71
- DGB = 8,
72
- DOGE = 8,
73
- ETH = 18,
74
- BASE = 18,
75
- EOS = 6,
76
- GAIA = 6,
77
- KUJI = 6,
78
- LTC = 8,
79
- MATIC = 18,
80
- MAYA = 10,
81
- OP = 18,
82
- OSMO = 6,
83
- XRP = 6,
84
- THOR = 8,
85
- ZEC = 8
86
- }
87
-
88
- export declare enum Chain {
89
- Arbitrum = "ARB",
90
- Avalanche = "AVAX",
91
- Base = "BASE",
92
- BinanceSmartChain = "BSC",
93
- Bitcoin = "BTC",
94
- BitcoinCash = "BCH",
95
- Cosmos = "GAIA",
96
- Dash = "DASH",
97
- Digibyte = "DGB",
98
- Dogecoin = "DOGE",
99
- EOS = "EOS",
100
- Ethereum = "ETH",
101
- Kujira = "KUJI",
102
- Litecoin = "LTC",
103
- Mayachain = "MAYA",
104
- Optimism = "OP",
105
- Osmosis = "OSMO",
106
- Polygon = "MATIC",
107
- Ripple = "XRP",
108
- THORChain = "THOR",
109
- Zcash = "ZEC"
110
- }
111
-
112
- export declare enum ChainId {
113
- Arbitrum = "42161",
114
- ArbitrumHex = "0xa4b1",
115
- Avalanche = "43114",
116
- AvalancheHex = "0xa86a",
117
- Base = "8453",
118
- BinanceSmartChain = "56",
119
- BinanceSmartChainHex = "0x38",
120
- Bitcoin = "bitcoin",
121
- BitcoinCash = "bitcoincash",
122
- Cosmos = "cosmoshub-4",
123
- Dash = "dash",
124
- Dogecoin = "dogecoin",
125
- Kujira = "kaiyo-1",
126
- Ethereum = "1",
127
- EthereumHex = "0x1",
128
- Litecoin = "litecoin",
129
- Mayachain = "mayachain-mainnet-v1",
130
- MayaStagenet = "mayachain-stagenet-v1",
131
- Optimism = "10",
132
- OptimismHex = "0xa",
133
- Osmosis = "osmosis-1",
134
- Polygon = "137",
135
- PolygonHex = "0x89",
136
- THORChain = "thorchain-mainnet-v1",
137
- THORChainStagenet = "thorchain-stagenet-v2"
138
- }
139
-
140
- export declare const ChainIdToChain: Record<ChainId, Chain>;
141
-
142
- export declare const ChainToChainId: {
143
- ARB: ChainId;
144
- AVAX: ChainId;
145
- BASE: ChainId;
146
- BSC: ChainId;
147
- BTC: ChainId;
148
- BCH: ChainId;
149
- GAIA: ChainId;
150
- DASH: ChainId;
151
- DGB: ChainId;
152
- DOGE: ChainId;
153
- EOS: ChainId;
154
- ETH: ChainId;
155
- KUJI: ChainId;
156
- LTC: ChainId;
157
- MAYA: ChainId;
158
- OP: ChainId;
159
- OSMO: ChainId;
160
- MATIC: ChainId;
161
- XRP: ChainId;
162
- THOR: ChainId;
163
- ZEC: ChainId;
164
- };
165
-
166
- export declare const ChainToExplorerUrl: Record<Chain, string>;
167
-
168
- export declare const ChainToHexChainId: {
169
- ARB: ChainId;
170
- AVAX: ChainId;
171
- BASE: ChainId;
172
- BSC: ChainId;
173
- BTC: ChainId;
174
- BCH: ChainId;
175
- GAIA: ChainId;
176
- DASH: ChainId;
177
- DGB: ChainId;
178
- DOGE: ChainId;
179
- EOS: ChainId;
180
- ETH: ChainId;
181
- KUJI: ChainId;
182
- LTC: ChainId;
183
- MAYA: ChainId;
184
- OP: ChainId;
185
- OSMO: ChainId;
186
- MATIC: ChainId;
187
- XRP: ChainId;
188
- THOR: ChainId;
189
- ZEC: ChainId;
190
- };
191
-
192
- export declare const ChainToNetworkId: Record<Chain, string>;
193
-
194
- export declare const ChainToRPC: {
195
- ARB: RPCUrl;
196
- AVAX: RPCUrl;
197
- BASE: RPCUrl;
198
- BSC: RPCUrl;
199
- BTC: RPCUrl;
200
- BCH: RPCUrl;
201
- GAIA: RPCUrl;
202
- DASH: RPCUrl;
203
- DGB: RPCUrl;
204
- DOGE: RPCUrl;
205
- EOS: RPCUrl;
206
- ETH: RPCUrl;
207
- KUJI: RPCUrl;
208
- LTC: RPCUrl;
209
- MAYA: RPCUrl;
210
- OP: RPCUrl;
211
- OSMO: RPCUrl;
212
- MATIC: RPCUrl;
213
- XRP: RPCUrl;
214
- THOR: RPCUrl;
215
- ZEC: RPCUrl;
216
- };
217
-
218
- declare type ChainWallet = {
219
- address: string;
220
- balance: any[];
221
- walletType: WalletOption;
222
- };
223
-
224
- export declare function classifySwap(quoteMode: QuoteMode): string | null;
225
-
226
- export declare type ConnectConfig = {
227
- stagenet?: boolean;
228
- /**
229
- * @required for AVAX & BSC
230
- */
231
- covalentApiKey?: string;
232
- /**
233
- * @required for ETH
234
- */
235
- ethplorerApiKey?: string;
236
- /**
237
- * @required for BTC, BCH, LTC, DOGE
238
- */
239
- blockchairApiKey?: string;
240
- /**
241
- * @deprecated - use blockchairApiKey instead
242
- */
243
- utxoApiKey?: string;
244
- /**
245
- * @required for Walletconnect
246
- */
247
- walletConnectProjectId?: string;
248
- /**
249
- * @optional for Trezor config
250
- */
251
- trezorManifest?: {
252
- email: string;
253
- appUrl: string;
254
- };
255
- /**
256
- * @optional for KeepKey config
257
- */
258
- keepkeyConfig?: {
259
- apiKey: string;
260
- pairingInfo: {
261
- name: string;
262
- imageUrl: string;
263
- basePath: string;
264
- url: string;
265
- };
266
- };
267
- };
268
-
269
- declare type ConnectMethodNames = 'connectEVMWallet' | 'connectKeplr' | 'connectKeystore' | 'connectKeepkey' | 'connectMetaMask' | 'connectLedger' | 'connectOkx' | 'connectTrezor' | 'connectWalletconnect' | 'connectXDEFI';
270
-
271
- export declare type ConnectWalletParams = {
272
- addChain: (params: AddChainWalletParams) => void;
273
- config: ConnectConfig;
274
- rpcUrls: {
275
- [chain in Chain]?: string;
276
- };
277
- apis: ApisType;
278
- };
279
-
280
- export declare enum ContractAddress {
281
- ARB = "0x0000000000000000000000000000000000000000",
282
- AVAX = "0x0000000000000000000000000000000000000000",
283
- ETH = "0x0000000000000000000000000000000000000000",
284
- BSC = "0x0000000000000000000000000000000000000000",
285
- MATIC = "0x0000000000000000000000000000000000001010",
286
- OP = "0x4200000000000000000000000000000000000042"
287
- }
288
-
289
- export declare type CosmosChain = Chain.Cosmos | Chain.Osmosis | Chain.THORChain | Chain.Mayachain | Chain.Kujira;
290
-
291
- export declare const CosmosChainList: CosmosChain[];
292
-
293
- export declare enum DerivationPath {
294
- ARB = "m/44'/60'/0'/0/0",
295
- AVAX = "m/44'/60'/0'/0/0",
296
- BASE = "m/44'/60'/0'/0/0",
297
- BCH = "m/44'/145'/0'/0/0",
298
- BSC = "m/44'/60'/0'/0/0",
299
- BTC = "m/84'/0'/0'/0/0",
300
- DOGE = "m/44'/3'/0'/0/0",
301
- DASH = "m/44'/5'/0'/0/0",
302
- DGB = "m/44'/20'/0'/0/0",
303
- ETH = "m/44'/60'/0'/0/0",
304
- EOS = "m/44'/194'/0'/0/0",
305
- GAIA = "m/44'/118'/0'/0/0",
306
- KUJI = "m/44'/118'/0'/0/0",
307
- LTC = "m/84'/2'/0'/0/0",
308
- MATIC = "m/44'/60'/0'/0/0",
309
- MAYA = "m/44'/931'/0'/0/0",
310
- OP = "m/44'/60'/0'/0/0",
311
- OSMO = "m/44'/118'/0'/0/0",
312
- XRP = "m/44'/144'/0'/0/0",
313
- THOR = "m/44'/931'/0'/0/0",
314
- ZEC = "m/44'/133'/0'/0/0"
315
- }
316
-
317
- export declare type DerivationPathArray = [number, number, number, number, number];
318
-
319
- export declare const erc20ABI: ({
320
- inputs: never[];
321
- stateMutability: string;
322
- type: string;
323
- anonymous?: undefined;
324
- name?: undefined;
325
- outputs?: undefined;
326
- } | {
327
- anonymous: boolean;
328
- inputs: {
329
- indexed: boolean;
330
- internalType: string;
331
- name: string;
332
- type: string;
333
- }[];
334
- name: string;
335
- type: string;
336
- stateMutability?: undefined;
337
- outputs?: undefined;
338
- } | {
339
- inputs: {
340
- internalType: string;
341
- name: string;
342
- type: string;
343
- }[];
344
- name: string;
345
- outputs: {
346
- internalType: string;
347
- name: string;
348
- type: string;
349
- }[];
350
- stateMutability: string;
351
- type: string;
352
- anonymous?: undefined;
353
- })[];
354
-
355
- export declare enum ERROR_CODE {
356
- INVALID_INPUT_PARAMETERS = "1000",
357
- UNKNOWN_PROVIDERS = "1001",
358
- CANNOT_FIND_INBOUND_ADDRESS = "1002",
359
- NO_INBOUND_ADDRESSES = "1003",
360
- CHAIN_HALTED_OR_UNSUPPORTED = "1004",
361
- MISSING_INPUT_PARAMETER = "1005",
362
- INVALID_TYPE_GENERIC = "1100",
363
- INVALID_NUMBER_STRING = "1101",
364
- INVALID_NUMBER = "1102",
365
- INVALID_BOOLEAN = "1103",
366
- INVALID_OBJECT = "1104",
367
- INVALID_ARRAY = "1105",
368
- SELL_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2000",
369
- SELL_BUY_ASSETS_ARE_THE_SAME = "2001",
370
- MISSING_SOURCE_ADDRESS_FOR_SYNTH = "2002",
371
- AFF_ADDRESS_AND_BPS_OR_NEITHER = "2003",
372
- AFF_ADDRESS_TOO_LONG = "2004",
373
- AFF_BPS_INTEGER_0_100 = "2005",
374
- SOURCE_ADDRESS_INVALID_FOR_SELL_CHAIN = "2006",
375
- DESTINATION_ADDRESS_INVALID_FOR_BUY_CHAIN = "2007",
376
- PREFERRED_PROFVIDER_NOT_SUPPORTED = "2008",
377
- DESTINATION_ADDRESS_SMART_CONTRACT = "2009",
378
- BUY_AMOUNT_MUST_BE_POSITIVE_INTEGER = "2010",
379
- SOURCE_ADDRESS_SMART_CONTRACT = "2011",
380
- INVALID_PROVIDER = "2100",
381
- MISSING_CROSS_CHAIN_PROVIDER = "2101",
382
- MISSING_AVAX_PROVIDER = "2102",
383
- MISSING_BSC_PROVIDER = "2103",
384
- MISSING_ETH_PROVIDER = "2104",
385
- INVALID_PROVIDER_FOR_SWAP_OUT = "2105",
386
- MISSING_ARB_PROVIDER = "2106",
387
- INVALID_CHAIN = "2200",
388
- INVALID_ASSET = "2201",
389
- INVALID_ASSET_IDENTIFIER = "2202",
390
- UNSUPPORTED_CHAIN = "2204",
391
- UNSUPPORTED_ASSET = "2203",
392
- UNSUPPORTED_ASSET_FOR_SWAPOUT = "2205",
393
- INVALID_SOURCE_ADDRESS = "2300",
394
- INVALID_DESTINATION_ADDRESS = "2301",
395
- THORNODE_QUOTE_GENERIC_ERROR = "3000",
396
- NOT_ENOUGH_SYNTH_BALANCE = "3001",
397
- SYNTH_MINTING_CAP_REACHED = "3002",
398
- INVALID_QUOTE_MODE = "4000",
399
- NO_QUOTES = "4001",
400
- SERVICE_UNAVAILABLE_GENERIC = "5000",
401
- MISSING_GAS_DATA_GENERIC = "5100",
402
- MISSING_TOKEN_INFO_GENERIC = "5200",
403
- CANT_FIND_TOKEN_LIST = "5201",
404
- NO_PRICE = "5202",
405
- PRICE_IS_STALE = "5203",
406
- ADDRESS_NOT_WHITELISTED = "6000",
407
- ADDRESS_ALREADY_CLAIMED = "6001",
408
- TEMPORARY_ERROR = "9999"
409
- }
410
-
411
- export declare enum ERROR_MODULE {
412
- HEALTH_CONTROLLER = "1000",
413
- LIQUIDITY_CONTROLLER = "1001",
414
- PROVIDER_CONTROLLER = "1002",
415
- QUOTE_CONTROLLER = "1003",
416
- SWAP_CONTROLLER = "1004",
417
- UTIL_CONTROLLER = "1005",
418
- AIRDROP_CONTROLLER = "1006",
419
- PROVIDER = "2000",
420
- ASSET = "2001",
421
- TOKEN_LIST = "2002",
422
- QUOTE = "2100",
423
- QUOTE_TXN_DETAILS = "2101",
424
- THORCHAIN_PROVIDER = "3000",
425
- UNISWAPV2_ETH_PROVIDER = "3001",
426
- UNISWAPV3_ETH_PROVIDER = "3002",
427
- SUSHISWAP_ETH_PROVIDER = "3003",
428
- PANCAKESWAP_BSC_PROVIDER = "3004",
429
- PANCAKESWAP_ETH_PROVIDER = "3005",
430
- ONEINCH_ETH_PROVIDER = "3006",
431
- ONEINCH_BSC_PROVIDER = "3007",
432
- ONEINCH_AVAX_PROVIDER = "3008",
433
- ZEROX_ETH_PROVIDER = "3009",
434
- WOOFI_AVAX_PROVIDER = "3010",
435
- PANGOLIN_AVAX_PROVIDER = "3011",
436
- TRADERJOE_AVAX_PROVIDER = "3012",
437
- KYBER_ETH_PROVIDER = "3013",
438
- KYBER_AVAX_PROVIDER = "3014",
439
- WOOFI_BSC_PROVIDER = "3015",
440
- STARGATE_PROVIDER = "3016",
441
- PROVIDER_UTIL = "4000",
442
- TXN_DETAILS = "5000",
443
- AIRDROP_UTIL = "6000"
444
- }
445
-
446
- export declare enum ERROR_TYPE {
447
- VALIDATION_ERROR = "VALIDATION_ERROR",
448
- REQUEST_PARAMETER_ERROR = "REQUEST_PARAMETER_ERROR",
449
- RESPONSE_PARSING_ERROR = "RESPONSE_PARSING_ERROR",
450
- UNSUPPORTED = "UNSUPPORTED",
451
- NOT_IMPLEMENTED = "NOT_IMPLEMENTED",
452
- INCOMPATIBLE_ASSETS_OPERATIONS = "INCOMPATIBLE_ASSETS_OPERATIONS",
453
- SERVICE_UNAVAILABLE = "SERVICE_UNAVAILABLE",
454
- DOWN_FOR_MAINTENANCE = "DOWN_FOR_MAINTENANCE",
455
- MISSING_INBOUND_INFO = "MISSING_INBOUND_INFO",
456
- QUOTE_FETCHING_ERROR = "QUOTE_FETCHING_ERROR",
457
- AIRDROP_ERROR = "AIRDROP_ERROR",
458
- UNHANDLED_ERROR = "UNHANDLED_ERROR"
459
- }
460
-
461
- export declare enum ErrorCode {
462
- NoError = 36864
463
- }
464
-
465
- export declare type ErrorInfo = {
466
- status: number;
467
- revision: string;
468
- type?: ERROR_TYPE;
469
- module: ERROR_MODULE;
470
- code: ERROR_CODE;
471
- message?: string | undefined;
472
- stack?: string;
473
- identifier?: string;
474
- options?: ApiErrorOptions;
475
- displayMessageParams?: string[];
476
- };
477
-
478
- export declare type EVMChain = Chain.Ethereum | Chain.Avalanche | Chain.Base | Chain.BinanceSmartChain | Chain.Arbitrum | Chain.Optimism | Chain.Polygon;
479
-
480
- export declare const EVMChainList: EVMChain[];
481
-
482
- export declare type EVMTxBaseParams<T = bigint> = {
483
- to?: string;
484
- from?: string;
485
- nonce?: number;
486
- gasLimit?: T;
487
- data?: string;
488
- value?: T;
489
- chainId?: T;
490
- };
491
-
492
- export declare type EVMWalletOptions = WalletOption.BRAVE | WalletOption.METAMASK | WalletOption.TRUSTWALLET_WEB | WalletOption.COINBASE_WEB;
493
-
494
- export declare type ExtendParams<WalletConnectMethodNames = ''> = {
495
- excludedChains?: Chain[];
496
- config?: ConnectConfig;
497
- rpcUrls?: {
498
- [chain in Chain]?: string;
499
- };
500
- apis?: ApisType;
501
- wallets: {
502
- connectMethodName: ConnectMethodNames | WalletConnectMethodNames;
503
- connect: (params: ConnectWalletParams) => (...params: any) => Promise<any>;
504
- }[];
505
- };
506
-
507
- export declare enum FeeOption {
508
- Average = "average",
509
- Fast = "fast",
510
- Fastest = "fastest"
511
- }
512
-
513
- export declare type FixedNumberish = string | number | FixedNumber;
514
-
515
- export declare type GetAddressAndPubKeyResponse = {
516
- bech32_address: string;
517
- compressed_pk: any;
518
- error_message: string;
519
- return_code: number;
520
- };
521
-
522
- export declare function getChainEnumValue(chainStr: any): Chain | undefined;
523
-
524
- export declare enum MemoType {
525
- BOND = "BOND",
526
- DEPOSIT = "+",
527
- LEAVE = "LEAVE",
528
- THORNAME_REGISTER = "~",
529
- UNBOND = "UNBOND",
530
- WITHDRAW = "-",
531
- OPEN_LOAN = "$+",
532
- CLOSE_LOAN = "$-"
533
- }
534
-
535
- export declare const NetworkDerivationPath: Record<Chain, DerivationPathArray>;
536
-
537
- export declare const NetworkIdToChain: Record<string, Chain>;
538
-
539
- export declare const prefurredChainsByWallet: any;
540
-
541
- export declare enum QuoteMode {
542
- TC_SUPPORTED_TO_TC_SUPPORTED = "TC-TC",
543
- TC_SUPPORTED_TO_ETH = "TC-ERC20",
544
- TC_SUPPORTED_TO_AVAX = "TC-ARC20",
545
- TC_SUPPORTED_TO_BSC = "TC-BEP20",
546
- ETH_TO_TC_SUPPORTED = "ERC20-TC",
547
- ETH_TO_ETH = "ERC20-ERC20",
548
- ETH_TO_AVAX = "ERC20-ARC20",
549
- ETH_TO_BSC = "ERC20-BEP20",
550
- AVAX_TO_TC_SUPPORTED = "ARC20-TC",
551
- AVAX_TO_ETH = "ARC20-ERC20",
552
- AVAX_TO_AVAX = "ARC20-ARC20",
553
- AVAX_TO_BSC = "ARC20-BEP20",
554
- BSC_TO_TC_SUPPORTED = "BEP20-TC",
555
- BSC_TO_ETH = "BEP20-ERC20",
556
- BSC_TO_AVAX = "BEP20-ARC20",
557
- BSC_TO_BSC = "BEP20-BEP20",
558
- GAIA_TO_OSMO = "OSMOSIS-IBC",
559
- MAYA_SUPPORTED_TO_MAYA_SUPPORTED = "MAYA_SUPPORTED_TO_MAYA_SUPPORTED",
560
- CHANGELLY = "CHANGELLY",
561
- RANGO = "RANGO"
562
- }
563
-
564
- export declare enum RPCUrl {
565
- Arbitrum = "https://arb1.arbitrum.io/rpc",
566
- Avalanche = "https://avalanche-c-chain-rpc.publicnode.com",
567
- BinanceSmartChain = "https://binance.llamarpc.com",
568
- Base = "https://developer-access-mainnet.base.org",
569
- Bitcoin = "https://node-router.thorswap.net/bitcoin",
570
- BitcoinCash = "https://node-router.thorswap.net/bitcoin-cash",
571
- Cosmos = "https://api.cosmos.shapeshift.com",
572
- Kujira = "https://rpc-kujira.synergynodes.com/",
573
- Dash = "https://dash.nownodes.io",
574
- Dogecoin = "https://node-router.thorswap.net/dogecoin",
575
- Ethereum = "https://daemon.ethereum.shapeshift.com",
576
- Litecoin = "https://node-router.thorswap.net/litecoin",
577
- Mayachain = "https://mayanode.mayachain.info",
578
- MayaStagenet = "https://stagenet.tendermint.mayachain.info",
579
- Optimism = "https://mainnet.optimism.io",
580
- Osmosis = "https://lcd-osmosis.keplr.app",
581
- Polygon = "https://polygon-rpc.com",
582
- Ripple = "https://xrplcluster.com",
583
- THORChain = "https://thornode.ninerealms.com",
584
- THORChainStagenet = "https://thornode.ninerealms.com"
585
- }
586
-
587
- export declare type Signature = {
588
- pub_key: {
589
- type: string;
590
- value: string;
591
- };
592
- sequence: string;
593
- signature: string;
594
- };
595
-
596
- export declare const SWAP_TYPES: {
597
- AGG_SWAP: QuoteMode[];
598
- ETH_TO_ETH: QuoteMode[];
599
- SWAP_IN: QuoteMode[];
600
- SWAP_OUT: QuoteMode[];
601
- OSMOSIS_SWAP: QuoteMode[];
602
- CENTRALIZED_SWAPPER: QuoteMode[];
603
- UXTO_SWAP: QuoteMode[];
604
- RANGO: QuoteMode[];
605
- };
606
-
607
- export declare const TCAvalancheDepositABI: ({
608
- inputs: never[];
609
- stateMutability: string;
610
- type: string;
611
- anonymous?: undefined;
612
- name?: undefined;
613
- outputs?: undefined;
614
- } | {
615
- anonymous: boolean;
616
- inputs: ({
617
- indexed: boolean;
618
- internalType: string;
619
- name: string;
620
- type: string;
621
- components?: undefined;
622
- } | {
623
- components: {
624
- internalType: string;
625
- name: string;
626
- type: string;
627
- }[];
628
- indexed: boolean;
629
- internalType: string;
630
- name: string;
631
- type: string;
632
- })[];
633
- name: string;
634
- type: string;
635
- stateMutability?: undefined;
636
- outputs?: undefined;
637
- } | {
638
- inputs: ({
639
- internalType: string;
640
- name: string;
641
- type: string;
642
- components?: undefined;
643
- } | {
644
- components: {
645
- internalType: string;
646
- name: string;
647
- type: string;
648
- }[];
649
- internalType: string;
650
- name: string;
651
- type: string;
652
- })[];
653
- name: string;
654
- outputs: never[];
655
- stateMutability: string;
656
- type: string;
657
- anonymous?: undefined;
658
- } | {
659
- inputs: {
660
- internalType: string;
661
- name: string;
662
- type: string;
663
- }[];
664
- name: string;
665
- outputs: {
666
- internalType: string;
667
- name: string;
668
- type: string;
669
- }[];
670
- stateMutability: string;
671
- type: string;
672
- anonymous?: undefined;
673
- })[];
674
-
675
- export declare const TCBscDepositABI: ({
676
- inputs: never[];
677
- stateMutability: string;
678
- type: string;
679
- anonymous?: undefined;
680
- name?: undefined;
681
- outputs?: undefined;
682
- } | {
683
- anonymous: boolean;
684
- inputs: ({
685
- indexed: boolean;
686
- internalType: string;
687
- name: string;
688
- type: string;
689
- components?: undefined;
690
- } | {
691
- components: {
692
- internalType: string;
693
- name: string;
694
- type: string;
695
- }[];
696
- indexed: boolean;
697
- internalType: string;
698
- name: string;
699
- type: string;
700
- })[];
701
- name: string;
702
- type: string;
703
- stateMutability?: undefined;
704
- outputs?: undefined;
705
- } | {
706
- inputs: ({
707
- internalType: string;
708
- name: string;
709
- type: string;
710
- components?: undefined;
711
- } | {
712
- components: {
713
- internalType: string;
714
- name: string;
715
- type: string;
716
- }[];
717
- internalType: string;
718
- name: string;
719
- type: string;
720
- })[];
721
- name: string;
722
- outputs: never[];
723
- stateMutability: string;
724
- type: string;
725
- anonymous?: undefined;
726
- } | {
727
- inputs: {
728
- internalType: string;
729
- name: string;
730
- type: string;
731
- }[];
732
- name: string;
733
- outputs: {
734
- internalType: string;
735
- name: string;
736
- type: string;
737
- }[];
738
- stateMutability: string;
739
- type: string;
740
- anonymous?: undefined;
741
- })[];
742
-
743
- export declare const TCEthereumVaultAbi: ({
744
- inputs: {
745
- internalType: string;
746
- name: string;
747
- type: string;
748
- }[];
749
- stateMutability: string;
750
- type: string;
751
- anonymous?: undefined;
752
- name?: undefined;
753
- outputs?: undefined;
754
- } | {
755
- anonymous: boolean;
756
- inputs: ({
757
- indexed: boolean;
758
- internalType: string;
759
- name: string;
760
- type: string;
761
- components?: undefined;
762
- } | {
763
- components: {
764
- internalType: string;
765
- name: string;
766
- type: string;
767
- }[];
768
- indexed: boolean;
769
- internalType: string;
770
- name: string;
771
- type: string;
772
- })[];
773
- name: string;
774
- type: string;
775
- stateMutability?: undefined;
776
- outputs?: undefined;
777
- } | {
778
- inputs: ({
779
- internalType: string;
780
- name: string;
781
- type: string;
782
- components?: undefined;
783
- } | {
784
- components: {
785
- internalType: string;
786
- name: string;
787
- type: string;
788
- }[];
789
- internalType: string;
790
- name: string;
791
- type: string;
792
- })[];
793
- name: string;
794
- outputs: never[];
795
- stateMutability: string;
796
- type: string;
797
- anonymous?: undefined;
798
- } | {
799
- inputs: {
800
- internalType: string;
801
- name: string;
802
- type: string;
803
- }[];
804
- name: string;
805
- outputs: {
806
- internalType: string;
807
- name: string;
808
- type: string;
809
- }[];
810
- stateMutability: string;
811
- type: string;
812
- anonymous?: undefined;
813
- })[];
814
-
815
- export declare const TCSupportedChainList: Chain[];
816
-
817
- export declare type UTXOChain = Chain.Bitcoin | Chain.BitcoinCash | Chain.Dogecoin | Chain.Litecoin | Chain.Dash | Chain.Digibyte | Chain.Zcash;
818
-
819
- export declare const UTXOChainList: UTXOChain[];
820
-
821
- export declare enum WalletOption {
822
- 'KEYSTORE' = "KEYSTORE",
823
- 'KEEPKEY' = "KEEPKEY",
824
- 'XDEFI' = "XDEFI",
825
- 'METAMASK' = "METAMASK",
826
- 'METAMASK_SHAPESHIFT' = "METAMASK_SHAPESHIFT",
827
- 'COINBASE_WEB' = "COINBASE_WEB",
828
- 'TREZOR' = "TREZOR",
829
- 'TRUSTWALLET_WEB' = "TRUSTWALLET_WEB",
830
- 'LEDGER' = "LEDGER",
831
- 'KEPLR' = "KEPLR",
832
- 'OKX' = "OKX",
833
- 'BRAVE' = "BRAVE",
834
- 'WALLETCONNECT' = "WALLETCONNECT"
835
- }
836
-
837
- export declare type WalletTxParams = {
838
- feeOptionKey?: FeeOption;
839
- from?: string;
840
- memo?: string;
841
- recipient: string;
842
- };
843
-
844
- export declare type Witness = {
845
- value: number;
846
- script: Buffer;
847
- };
848
-
849
- export { }
1
+ export { erc20ABI } from './abis/erc20.ts';
2
+ export { TCAvalancheDepositABI, TCBscDepositABI, TCEthereumVaultAbi } from './abis/tcEthVault.ts';
3
+ export * from './commonTypes.ts';
4
+ export * from './errors/index.ts';
5
+ export * from './network.ts';
6
+ export * from './thorchain.ts';
7
+ export * from './transactions.ts';
8
+ export * from './wallet.ts';
9
+ //# sourceMappingURL=index.d.ts.map