@bitgo-beta/statics 15.1.1-beta.21 → 15.1.1-beta.2100
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/src/account.d.ts +1266 -74
- package/dist/src/account.d.ts.map +1 -1
- package/dist/src/account.js +1968 -211
- package/dist/src/ada.d.ts.map +1 -1
- package/dist/src/ada.js +9 -3
- package/dist/src/allCoinsAndTokens.d.ts +2 -0
- package/dist/src/allCoinsAndTokens.d.ts.map +1 -0
- package/dist/src/allCoinsAndTokens.js +1905 -0
- package/dist/src/avaxp.d.ts.map +1 -1
- package/dist/src/avaxp.js +11 -3
- package/dist/src/base.d.ts +3480 -41
- package/dist/src/base.d.ts.map +1 -1
- package/dist/src/base.js +3625 -59
- package/dist/src/canton.d.ts +34 -0
- package/dist/src/canton.d.ts.map +1 -0
- package/dist/src/canton.js +51 -0
- package/dist/src/coinFeatures.d.ts +134 -0
- package/dist/src/coinFeatures.d.ts.map +1 -0
- package/dist/src/coinFeatures.js +817 -0
- package/dist/src/coins/adaTokens.d.ts +2 -0
- package/dist/src/coins/adaTokens.d.ts.map +1 -0
- package/dist/src/coins/adaTokens.js +27 -0
- package/dist/src/coins/avaxTokens.d.ts +2 -0
- package/dist/src/coins/avaxTokens.d.ts.map +1 -0
- package/dist/src/coins/avaxTokens.js +133 -0
- package/dist/src/coins/botOfcTokens.d.ts +3 -0
- package/dist/src/coins/botOfcTokens.d.ts.map +1 -0
- package/dist/src/coins/botOfcTokens.js +309 -0
- package/dist/src/coins/botTokens.d.ts +3 -0
- package/dist/src/coins/botTokens.d.ts.map +1 -0
- package/dist/src/coins/botTokens.js +966 -0
- package/dist/src/coins/bscTokens.d.ts +2 -0
- package/dist/src/coins/bscTokens.d.ts.map +1 -0
- package/dist/src/coins/bscTokens.js +421 -0
- package/dist/src/coins/cantonTokens.d.ts +2 -0
- package/dist/src/coins/cantonTokens.d.ts.map +1 -0
- package/dist/src/coins/cantonTokens.js +134 -0
- package/dist/src/coins/cosmosTokens.d.ts +2 -0
- package/dist/src/coins/cosmosTokens.d.ts.map +1 -0
- package/dist/src/coins/cosmosTokens.js +14 -0
- package/dist/src/coins/erc20Coins.d.ts +2 -0
- package/dist/src/coins/erc20Coins.d.ts.map +1 -0
- package/dist/src/coins/erc20Coins.js +2086 -0
- package/dist/src/coins/erc7984Tokens.d.ts +17 -0
- package/dist/src/coins/erc7984Tokens.d.ts.map +1 -0
- package/dist/src/coins/erc7984Tokens.js +40 -0
- package/dist/src/coins/generateERC20.d.ts +36 -0
- package/dist/src/coins/generateERC20.d.ts.map +1 -0
- package/dist/src/coins/generateERC20.js +46 -0
- package/dist/src/coins/hoodethTokens.d.ts +2 -0
- package/dist/src/coins/hoodethTokens.d.ts.map +1 -0
- package/dist/src/coins/hoodethTokens.js +318 -0
- package/dist/src/coins/jettonTokens.d.ts +2 -0
- package/dist/src/coins/jettonTokens.d.ts.map +1 -0
- package/dist/src/coins/jettonTokens.js +19 -0
- package/dist/src/coins/nep141Tokens.d.ts +2 -0
- package/dist/src/coins/nep141Tokens.d.ts.map +1 -0
- package/dist/src/coins/nep141Tokens.js +18 -0
- package/dist/src/coins/ofcCoins.d.ts +2 -0
- package/dist/src/coins/ofcCoins.d.ts.map +1 -0
- package/dist/src/coins/ofcCoins.js +1457 -0
- package/dist/src/coins/ofcErc20Coins.d.ts +4 -0
- package/dist/src/coins/ofcErc20Coins.d.ts.map +1 -0
- package/dist/src/coins/ofcErc20Coins.js +1902 -0
- package/dist/src/coins/ofcHoodethTokens.d.ts +2 -0
- package/dist/src/coins/ofcHoodethTokens.d.ts.map +1 -0
- package/dist/src/coins/ofcHoodethTokens.js +316 -0
- package/dist/src/coins/polygonTokens.d.ts +2 -0
- package/dist/src/coins/polygonTokens.d.ts.map +1 -0
- package/dist/src/coins/polygonTokens.js +216 -0
- package/dist/src/coins/polyxTokens.d.ts +2 -0
- package/dist/src/coins/polyxTokens.d.ts.map +1 -0
- package/dist/src/coins/polyxTokens.js +22 -0
- package/dist/src/coins/sip10Tokens.d.ts +2 -0
- package/dist/src/coins/sip10Tokens.d.ts.map +1 -0
- package/dist/src/coins/sip10Tokens.js +25 -0
- package/dist/src/coins/solTokens.d.ts +3 -0
- package/dist/src/coins/solTokens.d.ts.map +1 -0
- package/dist/src/coins/solTokens.js +538 -0
- package/dist/src/coins/vetTokens.d.ts +2 -0
- package/dist/src/coins/vetTokens.d.ts.map +1 -0
- package/dist/src/coins/vetTokens.js +11 -0
- package/dist/src/coins.d.ts +22 -1
- package/dist/src/coins.d.ts.map +1 -1
- package/dist/src/coins.js +477 -1412
- package/dist/src/constants.d.ts +1 -0
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/constants.js +3 -2
- package/dist/src/errors.d.ts +9 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +23 -2
- package/dist/src/flrp.d.ts +40 -0
- package/dist/src/flrp.d.ts.map +1 -0
- package/dist/src/flrp.js +66 -0
- package/dist/src/hypeevm.d.ts +28 -0
- package/dist/src/hypeevm.d.ts.map +1 -0
- package/dist/src/hypeevm.js +60 -0
- package/dist/src/index.d.ts +5 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +49 -3
- package/dist/src/kaspa.d.ts +34 -0
- package/dist/src/kaspa.d.ts.map +1 -0
- package/dist/src/kaspa.js +63 -0
- package/dist/src/lightning.d.ts +43 -0
- package/dist/src/lightning.d.ts.map +1 -0
- package/dist/src/lightning.js +64 -0
- package/dist/src/map.d.ts +34 -0
- package/dist/src/map.d.ts.map +1 -1
- package/dist/src/map.js +251 -17
- package/dist/src/networkFeatureMapForTokens.d.ts +30 -0
- package/dist/src/networkFeatureMapForTokens.d.ts.map +1 -0
- package/dist/src/networkFeatureMapForTokens.js +91 -0
- package/dist/src/networks.d.ts +2233 -45
- package/dist/src/networks.d.ts.map +1 -1
- package/dist/src/networks.js +2854 -149
- package/dist/src/ofc.d.ts +695 -3
- package/dist/src/ofc.d.ts.map +1 -1
- package/dist/src/ofc.js +1653 -28
- package/dist/src/tokenConfig.d.ts +717 -102
- package/dist/src/tokenConfig.d.ts.map +1 -1
- package/dist/src/tokenConfig.js +1131 -205
- package/dist/src/utxo.d.ts +6 -2
- package/dist/src/utxo.d.ts.map +1 -1
- package/dist/src/utxo.js +133 -4
- package/dist/tsconfig.tsbuildinfo +1 -2744
- package/package.json +6 -3
- package/.mocharc.js +0 -10
- package/.prettierignore +0 -2
- package/CHANGELOG.md +0 -552
- package/dist/resources/dot/index.d.ts +0 -3
- package/dist/resources/dot/index.d.ts.map +0 -1
- package/dist/resources/dot/index.js +0 -15
- package/dist/resources/dot/mainnet.d.ts +0 -2
- package/dist/resources/dot/mainnet.d.ts.map +0 -1
- package/dist/resources/dot/mainnet.js +0 -5
- package/dist/resources/dot/westend.d.ts +0 -2
- package/dist/resources/dot/westend.d.ts.map +0 -1
- package/dist/resources/dot/westend.js +0 -5
- package/resources/dot/index.ts +0 -2
- package/resources/dot/mainnet.ts +0 -2
- package/resources/dot/westend.ts +0 -2
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { CoinFamily, BaseCoin, CoinFeature } from './base';
|
|
2
|
+
import { coins } from './coins';
|
|
3
|
+
import { DynamicNetworkOptions } from './networks';
|
|
1
4
|
export interface BaseTokenConfig {
|
|
2
5
|
coin: string;
|
|
3
6
|
decimalPlaces: number;
|
|
@@ -10,123 +13,292 @@ export interface BaseNetworkConfig extends BaseTokenConfig {
|
|
|
10
13
|
export interface BaseContractAddressConfig extends BaseNetworkConfig {
|
|
11
14
|
tokenContractAddress: string;
|
|
12
15
|
}
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export
|
|
16
|
+
export type AvaxcTokenConfig = BaseContractAddressConfig;
|
|
17
|
+
export type CeloTokenConfig = BaseContractAddressConfig;
|
|
18
|
+
export type EthLikeTokenConfig = BaseContractAddressConfig;
|
|
19
|
+
export type EosTokenConfig = BaseContractAddressConfig & {
|
|
20
|
+
contractName: string;
|
|
21
|
+
contractAddress: string;
|
|
22
|
+
};
|
|
23
|
+
export type Erc20TokenConfig = BaseContractAddressConfig;
|
|
24
|
+
export type Erc7984TokenConfig = BaseContractAddressConfig & {
|
|
25
|
+
/** Present for Hoodi test pairs; omitted on mainnet until shield/unshield ships there. */
|
|
26
|
+
underlyingErc20Address?: string;
|
|
27
|
+
rate?: string;
|
|
28
|
+
requiresApprovalReset?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type TrxTokenConfig = BaseContractAddressConfig;
|
|
31
|
+
export type StellarTokenConfig = BaseNetworkConfig;
|
|
32
|
+
export type SolTokenConfig = BaseNetworkConfig & {
|
|
21
33
|
tokenAddress: string;
|
|
34
|
+
contractAddress: string;
|
|
35
|
+
programId?: string;
|
|
22
36
|
};
|
|
23
|
-
export
|
|
37
|
+
export type AdaTokenConfig = BaseNetworkConfig & {
|
|
24
38
|
policyId: string;
|
|
25
39
|
assetName: string;
|
|
40
|
+
contractAddress: string;
|
|
26
41
|
};
|
|
27
|
-
export
|
|
42
|
+
export type AlgoTokenConfig = BaseNetworkConfig & {
|
|
28
43
|
alias?: string;
|
|
29
44
|
};
|
|
30
|
-
export
|
|
45
|
+
export type OfcTokenConfig = BaseTokenConfig & {
|
|
31
46
|
backingCoin: string;
|
|
32
47
|
isFiat: boolean;
|
|
33
48
|
};
|
|
34
|
-
export
|
|
35
|
-
|
|
49
|
+
export type HbarTokenConfig = BaseNetworkConfig & {
|
|
50
|
+
nodeAccountId: string;
|
|
51
|
+
tokenId: string;
|
|
52
|
+
contractAddress: string;
|
|
53
|
+
};
|
|
54
|
+
export type XrpTokenConfig = BaseNetworkConfig & {
|
|
36
55
|
issuerAddress: string;
|
|
37
56
|
currencyCode: string;
|
|
38
57
|
domain?: string;
|
|
58
|
+
contractAddress: string;
|
|
39
59
|
};
|
|
40
|
-
export
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
60
|
+
export type XrpMptTokenConfig = BaseNetworkConfig & {
|
|
61
|
+
contractAddress: string;
|
|
62
|
+
canTransfer: boolean;
|
|
63
|
+
};
|
|
64
|
+
export type SuiTokenConfig = BaseNetworkConfig & {
|
|
65
|
+
packageId: string;
|
|
66
|
+
module: string;
|
|
67
|
+
symbol: string;
|
|
68
|
+
contractAddress: string;
|
|
69
|
+
};
|
|
70
|
+
export type AptTokenConfig = BaseNetworkConfig & {
|
|
71
|
+
assetId: string;
|
|
72
|
+
};
|
|
73
|
+
export type AptNFTCollectionConfig = BaseNetworkConfig & {
|
|
74
|
+
nftCollectionId: string;
|
|
75
|
+
};
|
|
76
|
+
export type Sip10TokenConfig = BaseNetworkConfig & {
|
|
77
|
+
assetId: string;
|
|
78
|
+
};
|
|
79
|
+
export type TaoTokenConfig = BaseNetworkConfig & {
|
|
80
|
+
subnetId: string;
|
|
81
|
+
};
|
|
82
|
+
export type PolyxTokenConfig = BaseNetworkConfig & {
|
|
83
|
+
ticker: string;
|
|
84
|
+
assetId: string;
|
|
85
|
+
};
|
|
86
|
+
export type Nep141TokenConfig = BaseNetworkConfig & {
|
|
87
|
+
contractAddress: string;
|
|
88
|
+
storageDepositAmount: string;
|
|
89
|
+
};
|
|
90
|
+
export type CantonTokenConfig = BaseNetworkConfig & {
|
|
91
|
+
baseUrl: string;
|
|
92
|
+
contractAddress: string;
|
|
93
|
+
};
|
|
94
|
+
export type VetTokenConfig = BaseNetworkConfig & {
|
|
95
|
+
contractAddress: string;
|
|
96
|
+
};
|
|
97
|
+
export type VetNFTCollectionConfig = BaseNetworkConfig & {
|
|
98
|
+
nftCollectionId: string;
|
|
99
|
+
};
|
|
100
|
+
export type CosmosTokenConfig = BaseNetworkConfig & {
|
|
101
|
+
denom: string;
|
|
102
|
+
};
|
|
103
|
+
export type JettonTokenConfig = BaseNetworkConfig & {
|
|
104
|
+
contractAddress: string;
|
|
105
|
+
};
|
|
106
|
+
export type EthLikeERC721TokenConfig = BaseContractAddressConfig & {
|
|
107
|
+
network: string;
|
|
108
|
+
};
|
|
109
|
+
export type Tip20TokenConfig = BaseContractAddressConfig;
|
|
110
|
+
export type TokenConfig = Erc20TokenConfig | StellarTokenConfig | OfcTokenConfig | CeloTokenConfig | EthLikeTokenConfig | EosTokenConfig | AvaxcTokenConfig | SolTokenConfig | HbarTokenConfig | AdaTokenConfig | AlgoTokenConfig | TrxTokenConfig | XrpTokenConfig | XrpMptTokenConfig | SuiTokenConfig | AptTokenConfig | AptNFTCollectionConfig | Sip10TokenConfig | Nep141TokenConfig | CantonTokenConfig | CosmosTokenConfig | VetTokenConfig | VetNFTCollectionConfig | TaoTokenConfig | PolyxTokenConfig | JettonTokenConfig | EthLikeERC721TokenConfig | Tip20TokenConfig | Erc7984TokenConfig;
|
|
111
|
+
export interface TokenNetwork {
|
|
112
|
+
eth: {
|
|
113
|
+
tokens: Erc20TokenConfig[];
|
|
114
|
+
nfts: EthLikeTokenConfig[];
|
|
115
|
+
confidentialTokens: Erc7984TokenConfig[];
|
|
116
|
+
};
|
|
117
|
+
xlm: {
|
|
118
|
+
tokens: StellarTokenConfig[];
|
|
119
|
+
};
|
|
120
|
+
algo: {
|
|
121
|
+
tokens: AlgoTokenConfig[];
|
|
122
|
+
};
|
|
123
|
+
ofc: {
|
|
124
|
+
tokens: OfcTokenConfig[];
|
|
125
|
+
};
|
|
126
|
+
celo: {
|
|
127
|
+
tokens: CeloTokenConfig[];
|
|
128
|
+
};
|
|
129
|
+
eos: {
|
|
130
|
+
tokens: EosTokenConfig[];
|
|
131
|
+
};
|
|
132
|
+
avaxc: {
|
|
133
|
+
tokens: AvaxcTokenConfig[];
|
|
134
|
+
};
|
|
135
|
+
polygon: {
|
|
136
|
+
tokens: EthLikeTokenConfig[];
|
|
137
|
+
};
|
|
138
|
+
soneium: {
|
|
139
|
+
tokens: EthLikeTokenConfig[];
|
|
140
|
+
};
|
|
141
|
+
bsc: {
|
|
142
|
+
tokens: EthLikeTokenConfig[];
|
|
143
|
+
};
|
|
144
|
+
arbeth: {
|
|
145
|
+
tokens: EthLikeTokenConfig[];
|
|
146
|
+
};
|
|
147
|
+
opeth: {
|
|
148
|
+
tokens: EthLikeTokenConfig[];
|
|
149
|
+
};
|
|
150
|
+
baseeth: {
|
|
151
|
+
tokens: EthLikeTokenConfig[];
|
|
152
|
+
};
|
|
153
|
+
og: {
|
|
154
|
+
tokens: EthLikeTokenConfig[];
|
|
155
|
+
};
|
|
156
|
+
flow: {
|
|
157
|
+
tokens: EthLikeTokenConfig[];
|
|
158
|
+
};
|
|
159
|
+
lineaeth: {
|
|
160
|
+
tokens: EthLikeTokenConfig[];
|
|
161
|
+
};
|
|
162
|
+
seievm: {
|
|
163
|
+
tokens: EthLikeTokenConfig[];
|
|
164
|
+
};
|
|
165
|
+
coredao: {
|
|
166
|
+
tokens: EthLikeTokenConfig[];
|
|
167
|
+
};
|
|
168
|
+
world: {
|
|
169
|
+
tokens: EthLikeTokenConfig[];
|
|
170
|
+
};
|
|
171
|
+
flr: {
|
|
172
|
+
tokens: EthLikeTokenConfig[];
|
|
173
|
+
};
|
|
174
|
+
sol: {
|
|
175
|
+
tokens: SolTokenConfig[];
|
|
176
|
+
};
|
|
177
|
+
hbar: {
|
|
178
|
+
tokens: HbarTokenConfig[];
|
|
179
|
+
};
|
|
180
|
+
ada: {
|
|
181
|
+
tokens: AdaTokenConfig[];
|
|
182
|
+
};
|
|
183
|
+
trx: {
|
|
184
|
+
tokens: TrxTokenConfig[];
|
|
185
|
+
};
|
|
186
|
+
xrp: {
|
|
187
|
+
tokens: XrpTokenConfig[];
|
|
188
|
+
mptTokens: XrpMptTokenConfig[];
|
|
189
|
+
};
|
|
190
|
+
zketh: {
|
|
191
|
+
tokens: EthLikeTokenConfig[];
|
|
192
|
+
};
|
|
193
|
+
zksyncera: {
|
|
194
|
+
tokens: EthLikeTokenConfig[];
|
|
195
|
+
};
|
|
196
|
+
sui: {
|
|
197
|
+
tokens: SuiTokenConfig[];
|
|
198
|
+
};
|
|
199
|
+
tao: {
|
|
200
|
+
tokens: TaoTokenConfig[];
|
|
201
|
+
};
|
|
202
|
+
polyx: {
|
|
203
|
+
tokens: PolyxTokenConfig[];
|
|
204
|
+
};
|
|
205
|
+
bera: {
|
|
206
|
+
tokens: EthLikeTokenConfig[];
|
|
207
|
+
};
|
|
208
|
+
mon: {
|
|
209
|
+
tokens: EthLikeTokenConfig[];
|
|
210
|
+
};
|
|
211
|
+
xdc: {
|
|
212
|
+
tokens: EthLikeTokenConfig[];
|
|
213
|
+
};
|
|
214
|
+
hypeevm: {
|
|
215
|
+
tokens: EthLikeTokenConfig[];
|
|
216
|
+
};
|
|
217
|
+
ip: {
|
|
218
|
+
tokens: EthLikeTokenConfig[];
|
|
128
219
|
};
|
|
220
|
+
apt: {
|
|
221
|
+
tokens: AptTokenConfig[];
|
|
222
|
+
nftCollections: AptNFTCollectionConfig[];
|
|
223
|
+
};
|
|
224
|
+
stx: {
|
|
225
|
+
tokens: Sip10TokenConfig[];
|
|
226
|
+
};
|
|
227
|
+
near: {
|
|
228
|
+
tokens: Nep141TokenConfig[];
|
|
229
|
+
};
|
|
230
|
+
vet: {
|
|
231
|
+
tokens: VetTokenConfig[];
|
|
232
|
+
nftCollections: VetNFTCollectionConfig[];
|
|
233
|
+
};
|
|
234
|
+
cosmos: {
|
|
235
|
+
tokens: CosmosTokenConfig[];
|
|
236
|
+
};
|
|
237
|
+
ton: {
|
|
238
|
+
tokens: JettonTokenConfig[];
|
|
239
|
+
};
|
|
240
|
+
tempo: {
|
|
241
|
+
tokens: Tip20TokenConfig[];
|
|
242
|
+
};
|
|
243
|
+
canton: {
|
|
244
|
+
tokens: CantonTokenConfig[];
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
export interface Tokens {
|
|
248
|
+
bitcoin: TokenNetwork;
|
|
249
|
+
testnet: TokenNetwork;
|
|
129
250
|
}
|
|
251
|
+
export interface AmsTokenConfig {
|
|
252
|
+
id: string;
|
|
253
|
+
name: string;
|
|
254
|
+
fullName: string;
|
|
255
|
+
family: string;
|
|
256
|
+
decimalPlaces: number;
|
|
257
|
+
asset: string;
|
|
258
|
+
features?: string[];
|
|
259
|
+
prefix?: string;
|
|
260
|
+
suffix?: string;
|
|
261
|
+
network?: unknown;
|
|
262
|
+
primaryKeyCurve?: string;
|
|
263
|
+
contractAddress?: string;
|
|
264
|
+
tokenAddress?: string;
|
|
265
|
+
nftCollectionId?: string;
|
|
266
|
+
alias?: string;
|
|
267
|
+
contractName?: string;
|
|
268
|
+
tokenId?: string;
|
|
269
|
+
packageId?: string;
|
|
270
|
+
module?: string;
|
|
271
|
+
symbol?: string;
|
|
272
|
+
issuerAddress?: string;
|
|
273
|
+
currecnycode?: string;
|
|
274
|
+
domain?: string;
|
|
275
|
+
assetId?: string;
|
|
276
|
+
denom?: string;
|
|
277
|
+
isToken: boolean;
|
|
278
|
+
baseUnit?: string;
|
|
279
|
+
kind?: string;
|
|
280
|
+
subnetId?: string;
|
|
281
|
+
ticker?: string;
|
|
282
|
+
programId?: string;
|
|
283
|
+
addressCoin?: string;
|
|
284
|
+
assetName?: string;
|
|
285
|
+
policyId?: string;
|
|
286
|
+
baseUrl?: string;
|
|
287
|
+
}
|
|
288
|
+
export interface AmsNetworkConfig extends DynamicNetworkOptions {
|
|
289
|
+
features: CoinFeature[];
|
|
290
|
+
}
|
|
291
|
+
export type AmsNetworkConfigMap = Record<string, AmsNetworkConfig>;
|
|
292
|
+
export interface TrimmedAmsNetworkConfig {
|
|
293
|
+
name: string;
|
|
294
|
+
}
|
|
295
|
+
export interface TrimmedAmsTokenConfig extends Omit<AmsTokenConfig, 'features' | 'network'> {
|
|
296
|
+
network: TrimmedAmsNetworkConfig;
|
|
297
|
+
excludedFeatures?: string[];
|
|
298
|
+
additionalFeatures?: string[];
|
|
299
|
+
}
|
|
300
|
+
export declare const getFormattedErc20Tokens: (customCoinMap?: import("./map").CoinMap) => BaseContractAddressConfig[];
|
|
301
|
+
export declare const getFormattedErc7984Tokens: (customCoinMap?: import("./map").CoinMap) => Erc7984TokenConfig[];
|
|
130
302
|
export declare const ethGasConfigs: {
|
|
131
303
|
minimumGasPrice: number;
|
|
132
304
|
defaultGasPrice: number;
|
|
@@ -135,13 +307,456 @@ export declare const ethGasConfigs: {
|
|
|
135
307
|
defaultGasLimitTokenSend: number;
|
|
136
308
|
minimumGasLimit: number;
|
|
137
309
|
maximumGasLimit: number;
|
|
310
|
+
newEthLikeCoinsMinGasLimit: number;
|
|
311
|
+
l1GasFeeBuffer: number;
|
|
138
312
|
};
|
|
139
|
-
export declare const
|
|
313
|
+
export declare const getFormattedSolTokens: (customCoinMap?: import("./map").CoinMap) => SolTokenConfig[];
|
|
314
|
+
export declare const getFormattedAlgoTokens: (customCoinMap?: import("./map").CoinMap) => AlgoTokenConfig[];
|
|
315
|
+
export declare const getFormattedCantonTokens: (customCoinMap?: import("./map").CoinMap) => CantonTokenConfig[];
|
|
316
|
+
type EthLikeTokenMap = {
|
|
317
|
+
[K in CoinFamily]: {
|
|
318
|
+
tokens: EthLikeTokenConfig[];
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
export declare enum TokenTypeEnum {
|
|
322
|
+
ERC20 = "erc20",
|
|
323
|
+
ERC721 = "erc721",
|
|
324
|
+
ERC7984 = "erc7984"
|
|
325
|
+
}
|
|
326
|
+
export declare const getFormattedEthLikeTokenConfig: (customCoinMap: import("./map").CoinMap | undefined, tokenType: TokenTypeEnum) => EthLikeTokenConfig[];
|
|
327
|
+
export declare const getEthLikeTokens: (network: "Mainnet" | "Testnet", tokenType: TokenTypeEnum, coinMap?: typeof coins) => EthLikeTokenMap;
|
|
328
|
+
/**
|
|
329
|
+
* Enumerate EVM token configs per family from a coin map (defaults to the bundled statics map).
|
|
330
|
+
* Unlike getEthLikeTokens, families are resolved from each token's own entry in the passed map,
|
|
331
|
+
* so AMS-only tokens on families whose base coin lacks CoinFeature.SUPPORTS_ERC20 (e.g. bsc,
|
|
332
|
+
* polygon) are included. Reads the passed map only, never the static coins import.
|
|
333
|
+
*/
|
|
334
|
+
export declare const getEvmTokensByFamily: (coinMap?: typeof coins, tokenType?: TokenTypeEnum) => {
|
|
335
|
+
[family: string]: EthLikeTokenConfig[];
|
|
336
|
+
};
|
|
337
|
+
export declare const getFormattedTokensByNetwork: (network: "Mainnet" | "Testnet", coinMap: typeof coins) => {
|
|
338
|
+
eth: {
|
|
339
|
+
tokens: BaseContractAddressConfig[];
|
|
340
|
+
nfts: BaseContractAddressConfig[];
|
|
341
|
+
confidentialTokens: Erc7984TokenConfig[];
|
|
342
|
+
};
|
|
343
|
+
xlm: {
|
|
344
|
+
tokens: BaseNetworkConfig[];
|
|
345
|
+
};
|
|
346
|
+
algo: {
|
|
347
|
+
tokens: AlgoTokenConfig[];
|
|
348
|
+
};
|
|
349
|
+
ofc: {
|
|
350
|
+
tokens: OfcTokenConfig[];
|
|
351
|
+
};
|
|
352
|
+
celo: {
|
|
353
|
+
tokens: BaseContractAddressConfig[];
|
|
354
|
+
};
|
|
355
|
+
bsc: {
|
|
356
|
+
tokens: BaseContractAddressConfig[];
|
|
357
|
+
};
|
|
358
|
+
eos: {
|
|
359
|
+
tokens: EosTokenConfig[];
|
|
360
|
+
};
|
|
361
|
+
avaxc: {
|
|
362
|
+
tokens: BaseContractAddressConfig[];
|
|
363
|
+
};
|
|
364
|
+
polygon: {
|
|
365
|
+
tokens: BaseContractAddressConfig[];
|
|
366
|
+
};
|
|
367
|
+
soneium: {
|
|
368
|
+
tokens: BaseContractAddressConfig[];
|
|
369
|
+
};
|
|
370
|
+
arbeth: {
|
|
371
|
+
tokens: BaseContractAddressConfig[];
|
|
372
|
+
};
|
|
373
|
+
opeth: {
|
|
374
|
+
tokens: BaseContractAddressConfig[];
|
|
375
|
+
};
|
|
376
|
+
baseeth: {
|
|
377
|
+
tokens: BaseContractAddressConfig[];
|
|
378
|
+
};
|
|
379
|
+
og: {
|
|
380
|
+
tokens: BaseContractAddressConfig[];
|
|
381
|
+
};
|
|
382
|
+
flow: {
|
|
383
|
+
tokens: BaseContractAddressConfig[];
|
|
384
|
+
};
|
|
385
|
+
mon: {
|
|
386
|
+
tokens: BaseContractAddressConfig[];
|
|
387
|
+
};
|
|
388
|
+
xdc: {
|
|
389
|
+
tokens: BaseContractAddressConfig[];
|
|
390
|
+
};
|
|
391
|
+
lineaeth: {
|
|
392
|
+
tokens: BaseContractAddressConfig[];
|
|
393
|
+
};
|
|
394
|
+
seievm: {
|
|
395
|
+
tokens: BaseContractAddressConfig[];
|
|
396
|
+
};
|
|
397
|
+
zketh: {
|
|
398
|
+
tokens: BaseContractAddressConfig[];
|
|
399
|
+
};
|
|
400
|
+
zksyncera: {
|
|
401
|
+
tokens: BaseContractAddressConfig[];
|
|
402
|
+
};
|
|
403
|
+
sol: {
|
|
404
|
+
tokens: SolTokenConfig[];
|
|
405
|
+
};
|
|
406
|
+
hbar: {
|
|
407
|
+
tokens: HbarTokenConfig[];
|
|
408
|
+
};
|
|
409
|
+
ada: {
|
|
410
|
+
tokens: AdaTokenConfig[];
|
|
411
|
+
};
|
|
412
|
+
trx: {
|
|
413
|
+
tokens: BaseContractAddressConfig[];
|
|
414
|
+
};
|
|
415
|
+
xrp: {
|
|
416
|
+
tokens: XrpTokenConfig[];
|
|
417
|
+
mptTokens: XrpMptTokenConfig[];
|
|
418
|
+
};
|
|
419
|
+
sui: {
|
|
420
|
+
tokens: SuiTokenConfig[];
|
|
421
|
+
};
|
|
422
|
+
tao: {
|
|
423
|
+
tokens: TaoTokenConfig[];
|
|
424
|
+
};
|
|
425
|
+
polyx: {
|
|
426
|
+
tokens: PolyxTokenConfig[];
|
|
427
|
+
};
|
|
428
|
+
bera: {
|
|
429
|
+
tokens: BaseContractAddressConfig[];
|
|
430
|
+
};
|
|
431
|
+
coredao: {
|
|
432
|
+
tokens: BaseContractAddressConfig[];
|
|
433
|
+
};
|
|
434
|
+
world: {
|
|
435
|
+
tokens: BaseContractAddressConfig[];
|
|
436
|
+
};
|
|
437
|
+
flr: {
|
|
438
|
+
tokens: BaseContractAddressConfig[];
|
|
439
|
+
};
|
|
440
|
+
stx: {
|
|
441
|
+
tokens: Sip10TokenConfig[];
|
|
442
|
+
};
|
|
443
|
+
near: {
|
|
444
|
+
tokens: Nep141TokenConfig[];
|
|
445
|
+
};
|
|
446
|
+
cosmos: {
|
|
447
|
+
tokens: CosmosTokenConfig[];
|
|
448
|
+
};
|
|
449
|
+
ton: {
|
|
450
|
+
tokens: JettonTokenConfig[];
|
|
451
|
+
};
|
|
452
|
+
tempo: {
|
|
453
|
+
tokens: BaseContractAddressConfig[];
|
|
454
|
+
};
|
|
455
|
+
canton: {
|
|
456
|
+
tokens: CantonTokenConfig[];
|
|
457
|
+
};
|
|
458
|
+
abstracteth: {
|
|
459
|
+
tokens: EthLikeTokenConfig[];
|
|
460
|
+
};
|
|
461
|
+
apechain: {
|
|
462
|
+
tokens: EthLikeTokenConfig[];
|
|
463
|
+
};
|
|
464
|
+
apt: {
|
|
465
|
+
tokens: EthLikeTokenConfig[];
|
|
466
|
+
};
|
|
467
|
+
asi: {
|
|
468
|
+
tokens: EthLikeTokenConfig[];
|
|
469
|
+
};
|
|
470
|
+
atom: {
|
|
471
|
+
tokens: EthLikeTokenConfig[];
|
|
472
|
+
};
|
|
473
|
+
avaxp: {
|
|
474
|
+
tokens: EthLikeTokenConfig[];
|
|
475
|
+
};
|
|
476
|
+
baby: {
|
|
477
|
+
tokens: EthLikeTokenConfig[];
|
|
478
|
+
};
|
|
479
|
+
bch: {
|
|
480
|
+
tokens: EthLikeTokenConfig[];
|
|
481
|
+
};
|
|
482
|
+
bcha: {
|
|
483
|
+
tokens: EthLikeTokenConfig[];
|
|
484
|
+
};
|
|
485
|
+
bld: {
|
|
486
|
+
tokens: EthLikeTokenConfig[];
|
|
487
|
+
};
|
|
488
|
+
bsv: {
|
|
489
|
+
tokens: EthLikeTokenConfig[];
|
|
490
|
+
};
|
|
491
|
+
btc: {
|
|
492
|
+
tokens: EthLikeTokenConfig[];
|
|
493
|
+
};
|
|
494
|
+
btg: {
|
|
495
|
+
tokens: EthLikeTokenConfig[];
|
|
496
|
+
};
|
|
497
|
+
chiliz: {
|
|
498
|
+
tokens: EthLikeTokenConfig[];
|
|
499
|
+
};
|
|
500
|
+
codexeth: {
|
|
501
|
+
tokens: EthLikeTokenConfig[];
|
|
502
|
+
};
|
|
503
|
+
coreum: {
|
|
504
|
+
tokens: EthLikeTokenConfig[];
|
|
505
|
+
};
|
|
506
|
+
cotieth: {
|
|
507
|
+
tokens: EthLikeTokenConfig[];
|
|
508
|
+
};
|
|
509
|
+
cronos: {
|
|
510
|
+
tokens: EthLikeTokenConfig[];
|
|
511
|
+
};
|
|
512
|
+
cspr: {
|
|
513
|
+
tokens: EthLikeTokenConfig[];
|
|
514
|
+
};
|
|
515
|
+
dash: {
|
|
516
|
+
tokens: EthLikeTokenConfig[];
|
|
517
|
+
};
|
|
518
|
+
doge: {
|
|
519
|
+
tokens: EthLikeTokenConfig[];
|
|
520
|
+
};
|
|
521
|
+
dogeos: {
|
|
522
|
+
tokens: EthLikeTokenConfig[];
|
|
523
|
+
};
|
|
524
|
+
dot: {
|
|
525
|
+
tokens: EthLikeTokenConfig[];
|
|
526
|
+
};
|
|
527
|
+
dydx: {
|
|
528
|
+
tokens: EthLikeTokenConfig[];
|
|
529
|
+
};
|
|
530
|
+
dydxcosmos: {
|
|
531
|
+
tokens: EthLikeTokenConfig[];
|
|
532
|
+
};
|
|
533
|
+
etc: {
|
|
534
|
+
tokens: EthLikeTokenConfig[];
|
|
535
|
+
};
|
|
536
|
+
eth2: {
|
|
537
|
+
tokens: EthLikeTokenConfig[];
|
|
538
|
+
};
|
|
539
|
+
ethw: {
|
|
540
|
+
tokens: EthLikeTokenConfig[];
|
|
541
|
+
};
|
|
542
|
+
fetchai: {
|
|
543
|
+
tokens: EthLikeTokenConfig[];
|
|
544
|
+
};
|
|
545
|
+
fiat: {
|
|
546
|
+
tokens: EthLikeTokenConfig[];
|
|
547
|
+
};
|
|
548
|
+
fantom: {
|
|
549
|
+
tokens: EthLikeTokenConfig[];
|
|
550
|
+
};
|
|
551
|
+
flrp: {
|
|
552
|
+
tokens: EthLikeTokenConfig[];
|
|
553
|
+
};
|
|
554
|
+
gasevm: {
|
|
555
|
+
tokens: EthLikeTokenConfig[];
|
|
556
|
+
};
|
|
557
|
+
h: {
|
|
558
|
+
tokens: EthLikeTokenConfig[];
|
|
559
|
+
};
|
|
560
|
+
hash: {
|
|
561
|
+
tokens: EthLikeTokenConfig[];
|
|
562
|
+
};
|
|
563
|
+
hbarevm: {
|
|
564
|
+
tokens: EthLikeTokenConfig[];
|
|
565
|
+
};
|
|
566
|
+
hemieth: {
|
|
567
|
+
tokens: EthLikeTokenConfig[];
|
|
568
|
+
};
|
|
569
|
+
hoodeth: {
|
|
570
|
+
tokens: EthLikeTokenConfig[];
|
|
571
|
+
};
|
|
572
|
+
hppeth: {
|
|
573
|
+
tokens: EthLikeTokenConfig[];
|
|
574
|
+
};
|
|
575
|
+
icp: {
|
|
576
|
+
tokens: EthLikeTokenConfig[];
|
|
577
|
+
};
|
|
578
|
+
inketh: {
|
|
579
|
+
tokens: EthLikeTokenConfig[];
|
|
580
|
+
};
|
|
581
|
+
initia: {
|
|
582
|
+
tokens: EthLikeTokenConfig[];
|
|
583
|
+
};
|
|
584
|
+
injective: {
|
|
585
|
+
tokens: EthLikeTokenConfig[];
|
|
586
|
+
};
|
|
587
|
+
iota: {
|
|
588
|
+
tokens: EthLikeTokenConfig[];
|
|
589
|
+
};
|
|
590
|
+
irys: {
|
|
591
|
+
tokens: EthLikeTokenConfig[];
|
|
592
|
+
};
|
|
593
|
+
islm: {
|
|
594
|
+
tokens: EthLikeTokenConfig[];
|
|
595
|
+
};
|
|
596
|
+
jovayeth: {
|
|
597
|
+
tokens: EthLikeTokenConfig[];
|
|
598
|
+
};
|
|
599
|
+
kaia: {
|
|
600
|
+
tokens: EthLikeTokenConfig[];
|
|
601
|
+
};
|
|
602
|
+
kaspa: {
|
|
603
|
+
tokens: EthLikeTokenConfig[];
|
|
604
|
+
};
|
|
605
|
+
katanaeth: {
|
|
606
|
+
tokens: EthLikeTokenConfig[];
|
|
607
|
+
};
|
|
608
|
+
kavacosmos: {
|
|
609
|
+
tokens: EthLikeTokenConfig[];
|
|
610
|
+
};
|
|
611
|
+
kavaevm: {
|
|
612
|
+
tokens: EthLikeTokenConfig[];
|
|
613
|
+
};
|
|
614
|
+
lnbtc: {
|
|
615
|
+
tokens: EthLikeTokenConfig[];
|
|
616
|
+
};
|
|
617
|
+
ltc: {
|
|
618
|
+
tokens: EthLikeTokenConfig[];
|
|
619
|
+
};
|
|
620
|
+
mantle: {
|
|
621
|
+
tokens: EthLikeTokenConfig[];
|
|
622
|
+
};
|
|
623
|
+
mantra: {
|
|
624
|
+
tokens: EthLikeTokenConfig[];
|
|
625
|
+
};
|
|
626
|
+
megaeth: {
|
|
627
|
+
tokens: EthLikeTokenConfig[];
|
|
628
|
+
};
|
|
629
|
+
xpl: {
|
|
630
|
+
tokens: EthLikeTokenConfig[];
|
|
631
|
+
};
|
|
632
|
+
phrs: {
|
|
633
|
+
tokens: EthLikeTokenConfig[];
|
|
634
|
+
};
|
|
635
|
+
prividiumeth: {
|
|
636
|
+
tokens: EthLikeTokenConfig[];
|
|
637
|
+
};
|
|
638
|
+
ctc: {
|
|
639
|
+
tokens: EthLikeTokenConfig[];
|
|
640
|
+
};
|
|
641
|
+
hypeevm: {
|
|
642
|
+
tokens: EthLikeTokenConfig[];
|
|
643
|
+
};
|
|
644
|
+
hyperliquid: {
|
|
645
|
+
tokens: EthLikeTokenConfig[];
|
|
646
|
+
};
|
|
647
|
+
oas: {
|
|
648
|
+
tokens: EthLikeTokenConfig[];
|
|
649
|
+
};
|
|
650
|
+
opbnb: {
|
|
651
|
+
tokens: EthLikeTokenConfig[];
|
|
652
|
+
};
|
|
653
|
+
okbxlayer: {
|
|
654
|
+
tokens: EthLikeTokenConfig[];
|
|
655
|
+
};
|
|
656
|
+
osmo: {
|
|
657
|
+
tokens: EthLikeTokenConfig[];
|
|
658
|
+
};
|
|
659
|
+
plume: {
|
|
660
|
+
tokens: EthLikeTokenConfig[];
|
|
661
|
+
};
|
|
662
|
+
pearl: {
|
|
663
|
+
tokens: EthLikeTokenConfig[];
|
|
664
|
+
};
|
|
665
|
+
rbtc: {
|
|
666
|
+
tokens: EthLikeTokenConfig[];
|
|
667
|
+
};
|
|
668
|
+
scrolleth: {
|
|
669
|
+
tokens: EthLikeTokenConfig[];
|
|
670
|
+
};
|
|
671
|
+
sgb: {
|
|
672
|
+
tokens: EthLikeTokenConfig[];
|
|
673
|
+
};
|
|
674
|
+
sei: {
|
|
675
|
+
tokens: EthLikeTokenConfig[];
|
|
676
|
+
};
|
|
677
|
+
sonic: {
|
|
678
|
+
tokens: EthLikeTokenConfig[];
|
|
679
|
+
};
|
|
680
|
+
starknet: {
|
|
681
|
+
tokens: EthLikeTokenConfig[];
|
|
682
|
+
};
|
|
683
|
+
stt: {
|
|
684
|
+
tokens: EthLikeTokenConfig[];
|
|
685
|
+
};
|
|
686
|
+
susd: {
|
|
687
|
+
tokens: EthLikeTokenConfig[];
|
|
688
|
+
};
|
|
689
|
+
thor: {
|
|
690
|
+
tokens: EthLikeTokenConfig[];
|
|
691
|
+
};
|
|
692
|
+
tia: {
|
|
693
|
+
tokens: EthLikeTokenConfig[];
|
|
694
|
+
};
|
|
695
|
+
usdt0: {
|
|
696
|
+
tokens: EthLikeTokenConfig[];
|
|
697
|
+
};
|
|
698
|
+
vet: {
|
|
699
|
+
tokens: EthLikeTokenConfig[];
|
|
700
|
+
};
|
|
701
|
+
wemix: {
|
|
702
|
+
tokens: EthLikeTokenConfig[];
|
|
703
|
+
};
|
|
704
|
+
xtz: {
|
|
705
|
+
tokens: EthLikeTokenConfig[];
|
|
706
|
+
};
|
|
707
|
+
xtzevm: {
|
|
708
|
+
tokens: EthLikeTokenConfig[];
|
|
709
|
+
};
|
|
710
|
+
zec: {
|
|
711
|
+
tokens: EthLikeTokenConfig[];
|
|
712
|
+
};
|
|
713
|
+
zeta: {
|
|
714
|
+
tokens: EthLikeTokenConfig[];
|
|
715
|
+
};
|
|
716
|
+
ip: {
|
|
717
|
+
tokens: EthLikeTokenConfig[];
|
|
718
|
+
};
|
|
719
|
+
somi: {
|
|
720
|
+
tokens: EthLikeTokenConfig[];
|
|
721
|
+
};
|
|
722
|
+
fluenteth: {
|
|
723
|
+
tokens: EthLikeTokenConfig[];
|
|
724
|
+
};
|
|
725
|
+
morph: {
|
|
726
|
+
tokens: EthLikeTokenConfig[];
|
|
727
|
+
};
|
|
728
|
+
morpheth: {
|
|
729
|
+
tokens: EthLikeTokenConfig[];
|
|
730
|
+
};
|
|
731
|
+
arcusdc: {
|
|
732
|
+
tokens: EthLikeTokenConfig[];
|
|
733
|
+
};
|
|
734
|
+
unieth: {
|
|
735
|
+
tokens: EthLikeTokenConfig[];
|
|
736
|
+
};
|
|
737
|
+
bobaeth: {
|
|
738
|
+
tokens: EthLikeTokenConfig[];
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
export declare const getFormattedTokens: (coinMap?: import("./map").CoinMap) => Tokens;
|
|
742
|
+
/**
|
|
743
|
+
* Verify mainnet or testnet tokens
|
|
744
|
+
* @param tokens
|
|
745
|
+
*/
|
|
746
|
+
export declare const verifyTokens: (tokens: BaseTokenConfig[]) => Record<string, boolean>;
|
|
140
747
|
export declare const tokens: Tokens;
|
|
748
|
+
export declare const formattedAlgoTokens: AlgoTokenConfig[];
|
|
141
749
|
export declare const mainnetTokens: {
|
|
142
750
|
[x: string]: boolean;
|
|
143
751
|
};
|
|
144
752
|
export declare const testnetTokens: {
|
|
145
753
|
[x: string]: boolean;
|
|
146
754
|
};
|
|
755
|
+
/**
|
|
756
|
+
* Get formatted token configuration for a single coin
|
|
757
|
+
* @param coin - Static Base coin instance
|
|
758
|
+
* @returns The formatted token configuration for the coin, or undefined if not supported
|
|
759
|
+
*/
|
|
760
|
+
export declare function getFormattedTokenConfigForCoin(coin: Readonly<BaseCoin>): TokenConfig | undefined;
|
|
761
|
+
export {};
|
|
147
762
|
//# sourceMappingURL=tokenConfig.d.ts.map
|