@bitgo-beta/statics 7.0.0

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.
Files changed (64) hide show
  1. package/.mocharc.js +10 -0
  2. package/.prettierignore +2 -0
  3. package/CHANGELOG.md +251 -0
  4. package/LICENSE +191 -0
  5. package/README.md +124 -0
  6. package/dist/resources/aca/index.d.ts +3 -0
  7. package/dist/resources/aca/index.d.ts.map +1 -0
  8. package/dist/resources/aca/index.js +15 -0
  9. package/dist/resources/aca/mainnet.d.ts +2 -0
  10. package/dist/resources/aca/mainnet.d.ts.map +1 -0
  11. package/dist/resources/aca/mainnet.js +5 -0
  12. package/dist/resources/aca/mandala.d.ts +2 -0
  13. package/dist/resources/aca/mandala.d.ts.map +1 -0
  14. package/dist/resources/aca/mandala.js +5 -0
  15. package/dist/resources/dot/index.d.ts +3 -0
  16. package/dist/resources/dot/index.d.ts.map +1 -0
  17. package/dist/resources/dot/index.js +15 -0
  18. package/dist/resources/dot/mainnet.d.ts +2 -0
  19. package/dist/resources/dot/mainnet.d.ts.map +1 -0
  20. package/dist/resources/dot/mainnet.js +5 -0
  21. package/dist/resources/dot/westend.d.ts +2 -0
  22. package/dist/resources/dot/westend.d.ts.map +1 -0
  23. package/dist/resources/dot/westend.js +5 -0
  24. package/dist/src/account.d.ts +676 -0
  25. package/dist/src/account.d.ts.map +1 -0
  26. package/dist/src/account.js +1055 -0
  27. package/dist/src/ada.d.ts +33 -0
  28. package/dist/src/ada.d.ts.map +1 -0
  29. package/dist/src/ada.js +55 -0
  30. package/dist/src/avaxp.d.ts +38 -0
  31. package/dist/src/avaxp.d.ts.map +1 -0
  32. package/dist/src/avaxp.js +51 -0
  33. package/dist/src/base.d.ts +851 -0
  34. package/dist/src/base.d.ts.map +1 -0
  35. package/dist/src/base.js +928 -0
  36. package/dist/src/coins.d.ts +3 -0
  37. package/dist/src/coins.d.ts.map +1 -0
  38. package/dist/src/coins.js +978 -0
  39. package/dist/src/errors.d.ts +31 -0
  40. package/dist/src/errors.d.ts.map +1 -0
  41. package/dist/src/errors.js +60 -0
  42. package/dist/src/index.d.ts +10 -0
  43. package/dist/src/index.d.ts.map +1 -0
  44. package/dist/src/index.js +36 -0
  45. package/dist/src/map.d.ts +21 -0
  46. package/dist/src/map.d.ts.map +1 -0
  47. package/dist/src/map.js +75 -0
  48. package/dist/src/networks.d.ts +668 -0
  49. package/dist/src/networks.d.ts.map +1 -0
  50. package/dist/src/networks.js +838 -0
  51. package/dist/src/ofc.d.ts +93 -0
  52. package/dist/src/ofc.d.ts.map +1 -0
  53. package/dist/src/ofc.js +161 -0
  54. package/dist/src/tokenConfig.d.ts +129 -0
  55. package/dist/src/tokenConfig.d.ts.map +1 -0
  56. package/dist/src/tokenConfig.js +295 -0
  57. package/dist/src/utxo.d.ts +38 -0
  58. package/dist/src/utxo.d.ts.map +1 -0
  59. package/dist/src/utxo.js +55 -0
  60. package/dist/tsconfig.tsbuildinfo +2021 -0
  61. package/package.json +41 -0
  62. package/resources/dot/index.ts +2 -0
  63. package/resources/dot/mainnet.ts +2 -0
  64. package/resources/dot/westend.ts +2 -0
@@ -0,0 +1,676 @@
1
+ import { BaseCoin, CoinFeature, KeyCurve, UnderlyingAsset } from './base';
2
+ import { AccountNetwork, BaseNetwork, EthereumNetwork, TronNetwork } from './networks';
3
+ export interface AccountConstructorOptions {
4
+ fullName: string;
5
+ name: string;
6
+ alias?: string;
7
+ network: AccountNetwork;
8
+ asset: UnderlyingAsset;
9
+ features: CoinFeature[];
10
+ decimalPlaces: number;
11
+ isToken: boolean;
12
+ prefix?: string;
13
+ suffix?: string;
14
+ primaryKeyCurve: KeyCurve;
15
+ }
16
+ /**
17
+ * Account based coins, such as Ethereum, Stellar, or XRP.
18
+ *
19
+ * These types of coins maintain an "account balance" for each address on the network,
20
+ * as opposed to the unspent transaction output model which maintains a record of all
21
+ * "pieces" of coin which belong to an address.
22
+ */
23
+ export declare class AccountCoin extends BaseCoin {
24
+ static readonly DEFAULT_FEATURES: CoinFeature[];
25
+ readonly network: AccountNetwork;
26
+ constructor(options: AccountConstructorOptions);
27
+ protected requiredFeatures(): Set<CoinFeature>;
28
+ protected disallowedFeatures(): Set<CoinFeature>;
29
+ }
30
+ export interface Erc20ConstructorOptions extends AccountConstructorOptions {
31
+ contractAddress: string;
32
+ }
33
+ export interface StellarCoinConstructorOptions extends AccountConstructorOptions {
34
+ domain: string;
35
+ }
36
+ export interface HederaCoinConstructorOptions extends AccountConstructorOptions {
37
+ nodeAccountId: string;
38
+ }
39
+ export interface HederaTokenConstructorOptions extends AccountConstructorOptions {
40
+ nodeAccountId: string;
41
+ tokenId: string;
42
+ }
43
+ export interface AlgoCoinConstructorOptions extends AccountConstructorOptions {
44
+ tokenURL: string;
45
+ }
46
+ export interface EosCoinConstructorOptions extends AccountConstructorOptions {
47
+ contractName: string;
48
+ }
49
+ export interface SolCoinConstructorOptions extends AccountConstructorOptions {
50
+ tokenAddress: string;
51
+ }
52
+ export interface AdaCoinConstructorOptions extends AccountConstructorOptions {
53
+ policyId: string;
54
+ assetName: string;
55
+ }
56
+ declare type FiatCoinName = `fiat${string}` | `tfiat${string}`;
57
+ export interface FiatCoinConstructorOptions extends AccountConstructorOptions {
58
+ name: FiatCoinName;
59
+ }
60
+ export interface ContractAddress extends String {
61
+ __contractaddress_phantom__: never;
62
+ }
63
+ export declare class AccountCoinToken extends AccountCoin {
64
+ constructor(options: AccountConstructorOptions);
65
+ }
66
+ /**
67
+ * Some blockchains support tokens which are defined by an address at which they have a smart contract deployed.
68
+ * Examples are ERC20 tokens, and the equivalent on other chains.
69
+ */
70
+ export declare class ContractAddressDefinedToken extends AccountCoinToken {
71
+ contractAddress: ContractAddress;
72
+ constructor(options: Erc20ConstructorOptions);
73
+ }
74
+ /**
75
+ * ERC20 token addresses are Base58 formatted on some blockchains.
76
+ */
77
+ export declare class Base58ContractAddressDefinedToken extends AccountCoinToken {
78
+ contractAddress: ContractAddress;
79
+ constructor(options: Erc20ConstructorOptions);
80
+ }
81
+ /**
82
+ * ERC 20 is a token standard for the Ethereum blockchain. They are similar to other account coins, but have a
83
+ * contract address property which identifies the smart contract which defines the token.
84
+ */
85
+ export declare class Erc20Coin extends ContractAddressDefinedToken {
86
+ }
87
+ /**
88
+ * ERC 721 is the non fungible token standard for the Ethereum blockchain.
89
+ *
90
+ * {@link https://eips.ethereum.org/EIPS/eip-721 EIP721}
91
+ */
92
+ export declare class Erc721Coin extends ContractAddressDefinedToken {
93
+ }
94
+ /**
95
+ * ERC 1155 is the multi token standard for the Ethereum blockchain.
96
+ *
97
+ * {@link https://eips.ethereum.org/EIPS/eip-1155 EIP1155}
98
+ */
99
+ export declare class Erc1155Coin extends ContractAddressDefinedToken {
100
+ }
101
+ /**
102
+ * The TRON blockchain supports tokens of the ERC20 standard similar to ETH ERC20 tokens.
103
+ */
104
+ export declare class TronErc20Coin extends Base58ContractAddressDefinedToken {
105
+ }
106
+ /**
107
+ * Some blockchains have native coins which also support the ERC20 interface such as CELO.
108
+ */
109
+ export declare class Erc20CompatibleAccountCoin extends ContractAddressDefinedToken {
110
+ constructor(options: Erc20ConstructorOptions);
111
+ }
112
+ /**
113
+ * The CELO blockchain supports tokens of the ERC20 standard similar to ETH ERC20 tokens.
114
+ */
115
+ export declare class CeloCoin extends ContractAddressDefinedToken {
116
+ }
117
+ /**
118
+ * The BSC blockchain supports tokens of the ERC20 standard similar to ETH ERC20 tokens.
119
+ */
120
+ export declare class BscCoin extends ContractAddressDefinedToken {
121
+ }
122
+ /**
123
+ * The Stellar network supports tokens (non-native assets)
124
+ * XLM is also known as the native asset.
125
+ * Stellar tokens work similar to XLM, but the token name is determined by the chain,
126
+ * the token code and the issuer account in the form: (t)xlm:<token>-<issuer>
127
+ */
128
+ export declare class StellarCoin extends AccountCoinToken {
129
+ domain: string;
130
+ constructor(options: StellarCoinConstructorOptions);
131
+ }
132
+ /**
133
+ * The Hedera coin needs a client set with the node account Id.
134
+ * It's an account based coin that needs the node account ID
135
+ * where the transaction will be sent.
136
+ *
137
+ */
138
+ export declare class HederaCoin extends AccountCoinToken {
139
+ nodeAccountId: string;
140
+ constructor(options: HederaCoinConstructorOptions);
141
+ }
142
+ /**
143
+ * The Hedera network supports tokens.
144
+ * Hedera tokens work similar to native Hedera coin,
145
+ * but the token is determined by the tokenId on the node
146
+ *
147
+ */
148
+ export declare class HederaToken extends AccountCoinToken {
149
+ nodeAccountId: string;
150
+ tokenId: string;
151
+ constructor(options: HederaTokenConstructorOptions);
152
+ }
153
+ /**
154
+ * The Algo network supports tokens (assets)
155
+ * Algo tokens work similar to native ALGO coin, but the token name is determined by
156
+ * unique asset id on the chain. Internally, BitGo uses token identifiers of the format: (t)algo:<assetId>
157
+ *
158
+ */
159
+ export declare class AlgoCoin extends AccountCoinToken {
160
+ tokenURL: string;
161
+ constructor(options: AlgoCoinConstructorOptions);
162
+ }
163
+ /**
164
+ * The Eos network supports tokens
165
+ * Eos tokens work similar to native Eos coin, but the token name is determined by
166
+ * the contractName on the chain.
167
+ *
168
+ */
169
+ export declare class EosCoin extends AccountCoinToken {
170
+ contractName: string;
171
+ constructor(options: EosCoinConstructorOptions);
172
+ }
173
+ /**
174
+ * The Sol network supports tokens
175
+ * Sol tokens work similar to native SOL coin, but the token name is determined by
176
+ * the tokenAddress on the chain.
177
+ *
178
+ */
179
+ export declare class SolCoin extends AccountCoinToken {
180
+ tokenAddress: string;
181
+ constructor(options: SolCoinConstructorOptions);
182
+ }
183
+ /**
184
+ * The Ada network supports tokens
185
+ * Ada tokens are identified by their policy ID and asset name
186
+ *
187
+ */
188
+ export declare class AdaCoin extends AccountCoinToken {
189
+ policyId: string;
190
+ assetName: string;
191
+ constructor(options: AdaCoinConstructorOptions);
192
+ }
193
+ /**
194
+ * The AVAX C Chain network support tokens
195
+ * AVAX C Chain Tokens are ERC20 coins
196
+ */
197
+ export declare class AvaxERC20Token extends ContractAddressDefinedToken {
198
+ constructor(options: Erc20ConstructorOptions);
199
+ }
200
+ /**
201
+ * The Polygon Chain network support tokens
202
+ * Polygon Chain Tokens are ERC20 coins
203
+ */
204
+ export declare class PolygonERC20Token extends ContractAddressDefinedToken {
205
+ constructor(options: Erc20ConstructorOptions);
206
+ }
207
+ /**
208
+ * Fiat currencies, such as USD, EUR, or YEN.
209
+ */
210
+ export declare class FiatCoin extends BaseCoin {
211
+ static readonly DEFAULT_FEATURES: CoinFeature[];
212
+ readonly network: BaseNetwork;
213
+ constructor(options: FiatCoinConstructorOptions);
214
+ protected requiredFeatures(): Set<CoinFeature>;
215
+ protected disallowedFeatures(): Set<CoinFeature>;
216
+ }
217
+ /**
218
+ * Factory function for account coin instances.
219
+ *
220
+ * @param name unique identifier of the coin
221
+ * @param fullName Complete human-readable name of the coin
222
+ * @param network Network object for this coin
223
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
224
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
225
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
226
+ * @param primaryKeyCurve? The elliptic curve for this chain/token
227
+ * @param prefix? Optional coin prefix. Defaults to empty string
228
+ * @param suffix? Optional coin suffix. Defaults to coin name.
229
+ * @param isToken? Whether or not this account coin is a token of another coin
230
+ */
231
+ export declare function account(name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, prefix?: string, suffix?: string, isToken?: boolean): Readonly<AccountCoin>;
232
+ /**
233
+ * Factory function for erc20 token instances.
234
+ *
235
+ * @param name unique identifier of the token
236
+ * @param fullName Complete human-readable name of the token
237
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
238
+ * @param contractAddress Contract address of this token
239
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
240
+ * @param prefix? Optional token prefix. Defaults to empty string
241
+ * @param suffix? Optional token suffix. Defaults to token name.
242
+ * @param network? Optional token network. Defaults to Ethereum main network.
243
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
244
+ * @param primaryKeyCurve The elliptic curve for this chain/token
245
+ */
246
+ export declare function erc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc20Coin>;
247
+ /**
248
+ * Factory function for testnet erc20 token instances.
249
+ *
250
+ * @param name unique identifier of the token
251
+ * @param fullName Complete human-readable name of the token
252
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
253
+ * @param contractAddress Contract address of this token
254
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
255
+ * @param prefix? Optional token prefix. Defaults to empty string
256
+ * @param suffix? Optional token suffix. Defaults to token name.
257
+ * @param network? Optional token network. Defaults to the Kovan test network.
258
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
259
+ */
260
+ export declare function terc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<Erc20Coin>;
261
+ /**
262
+ * Factory function for erc721 token instances.
263
+ *
264
+ * @param name unique identifier of the token
265
+ * @param fullName Complete human-readable name of the token
266
+ * @param contractAddress Contract address of this token
267
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
268
+ * @param prefix? Optional token prefix. Defaults to empty string
269
+ * @param suffix? Optional token suffix. Defaults to token name.
270
+ * @param network? Optional token network. Defaults to Ethereum main network.
271
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
272
+ * @param primaryKeyCurve The elliptic curve for this chain/token
273
+ */
274
+ export declare function erc721(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>;
275
+ /**
276
+ * Factory function for testnet erc721 token instances.
277
+ *
278
+ * @param name unique identifier of the token
279
+ * @param fullName Complete human-readable name of the token
280
+ * @param contractAddress Contract address of this token
281
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
282
+ * @param prefix? Optional token prefix. Defaults to empty string
283
+ * @param suffix? Optional token suffix. Defaults to token name.
284
+ * @param network? Optional token network. Defaults to Goerli test network.
285
+ * @param primaryKeyCurve The elliptic curve for this chain/token
286
+ */
287
+ export declare function terc721(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>;
288
+ /**
289
+ * Factory function for erc1155 token instances.
290
+ *
291
+ * @param name unique identifier of the token
292
+ * @param fullName Complete human-readable name of the token
293
+ * @param contractAddress Contract address of this token
294
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
295
+ * @param prefix? Optional token prefix. Defaults to empty string
296
+ * @param suffix? Optional token suffix. Defaults to token name.
297
+ * @param network? Optional token network. Defaults to Ethereum main network.
298
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
299
+ * @param primaryKeyCurve The elliptic curve for this chain/token
300
+ */
301
+ export declare function erc1155(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>;
302
+ /**
303
+ * Factory function for testnet erc1155 token instances.
304
+ *
305
+ * @param name unique identifier of the token
306
+ * @param fullName Complete human-readable name of the token
307
+ * @param contractAddress Contract address of this token
308
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
309
+ * @param prefix? Optional token prefix. Defaults to empty string
310
+ * @param suffix? Optional token suffix. Defaults to token name.
311
+ * @param network? Optional token network. Defaults to Goerli test network.
312
+ * @param primaryKeyCurve The elliptic curve for this chain/token
313
+ */
314
+ export declare function terc1155(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>;
315
+ /**
316
+ * Factory function for ERC20-compatible account coin instances.
317
+ *
318
+ * @param name unique identifier of the token
319
+ * @param fullName Complete human-readable name of the token
320
+ * @param network Network object for this coin
321
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
322
+ * @param contractAddress Contract address of this token
323
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
324
+ * @param prefix? Optional token prefix. Defaults to empty string
325
+ * @param suffix? Optional token suffix. Defaults to token name.
326
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
327
+ * @param primaryKeyCurve The elliptic curve for this chain/token
328
+ */
329
+ export declare function erc20CompatibleAccountCoin(name: string, fullName: string, network: EthereumNetwork, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<Erc20CompatibleAccountCoin>;
330
+ /**
331
+ * Factory function for celo token instances.
332
+ *
333
+ * @param name unique identifier of the token
334
+ * @param fullName Complete human-readable name of the token
335
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
336
+ * @param contractAddress Contract address of this token
337
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
338
+ * @param prefix? Optional token prefix. Defaults to empty string
339
+ * @param suffix? Optional token suffix. Defaults to token name.
340
+ * @param network? Optional token network. Defaults to CELO main network.
341
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
342
+ * @param primaryKeyCurve The elliptic curve for this chain/token
343
+ */
344
+ export declare function celoToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<CeloCoin>;
345
+ /**
346
+ * Factory function for testnet celo token instances.
347
+ *
348
+ * @param name unique identifier of the token
349
+ * @param fullName Complete human-readable name of the token
350
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
351
+ * @param contractAddress Contract address of this token
352
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
353
+ * @param prefix? Optional token prefix. Defaults to empty string
354
+ * @param suffix? Optional token suffix. Defaults to token name.
355
+ * @param network? Optional token network. Defaults to the testnet CELO network.
356
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
357
+ */
358
+ export declare function tceloToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<CeloCoin>;
359
+ /**
360
+ * Factory function for celo token instances.
361
+ *
362
+ * @param name unique identifier of the token
363
+ * @param fullName Complete human-readable name of the token
364
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
365
+ * @param contractAddress Contract address of this token
366
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
367
+ * @param prefix? Optional token prefix. Defaults to empty string
368
+ * @param suffix? Optional token suffix. Defaults to token name.
369
+ * @param network? Optional token network. Defaults to BSC main network.
370
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
371
+ * @param primaryKeyCurve The elliptic curve for this chain/token
372
+ */
373
+ export declare function bscToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<BscCoin>;
374
+ /**
375
+ * Factory function for testnet bsc token instances.
376
+ *
377
+ * @param name unique identifier of the token
378
+ * @param fullName Complete human-readable name of the token
379
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
380
+ * @param contractAddress Contract address of this token
381
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
382
+ * @param prefix? Optional token prefix. Defaults to empty string
383
+ * @param suffix? Optional token suffix. Defaults to token name.
384
+ * @param network? Optional token network. Defaults to the testnet BSC network.
385
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
386
+ */
387
+ export declare function tbscToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<BscCoin>;
388
+ /**
389
+ * Factory function for Stellar token instances.
390
+ *
391
+ * @param name unique identifier of the token
392
+ * @param fullName Complete human-readable name of the token
393
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
394
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
395
+ * @param domain Domain of the token issuer (used to access token information from the issuer's stellar.toml file)
396
+ * See https://www.stellar.org/developers/guides/concepts/stellar-toml.html
397
+ * @param prefix? Optional token prefix. Defaults to empty string
398
+ * @param suffix? Optional token suffix. Defaults to token name.
399
+ * @param network? Optional token network. Defaults to Stellar mainnet.
400
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
401
+ * @param primaryKeyCurve The elliptic curve for this chain/token
402
+ */
403
+ export declare function stellarToken(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<StellarCoin>;
404
+ /**
405
+ * Factory function for testnet Stellar token instances.
406
+ *
407
+ * @param name unique identifier of the token
408
+ * @param fullName Complete human-readable name of the token
409
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
410
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
411
+ * @param domain Domain of the token issuer (used to access token information from the issuer's stellar.toml file)
412
+ * See https://www.stellar.org/developers/guides/concepts/stellar-toml.html
413
+ * @param prefix? Optional token prefix. Defaults to empty string
414
+ * @param suffix? Optional token suffix. Defaults to token name.
415
+ * @param network? Optional token network. Defaults to Stellar testnet.
416
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
417
+ */
418
+ export declare function tstellarToken(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<StellarCoin>;
419
+ /**
420
+ * Factory function for tron token instances.
421
+ *
422
+ * @param name unique identifier of the token
423
+ * @param fullName Complete human-readable name of the token
424
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
425
+ * @param contractAddress Contract address of this token
426
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
427
+ * @param prefix? Optional token prefix. Defaults to empty string
428
+ * @param suffix? Optional token suffix. Defaults to token name.
429
+ * @param network? Optional token network. Defaults to TRON main network.
430
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
431
+ * @param primaryKeyCurve The elliptic curve for this chain/token
432
+ */
433
+ export declare function tronToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>;
434
+ /**
435
+ * Factory function for testnet tron token instances.
436
+ *
437
+ * @param name unique identifier of the token
438
+ * @param fullName Complete human-readable name of the token
439
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
440
+ * @param contractAddress Contract address of this token
441
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
442
+ * @param prefix? Optional token prefix. Defaults to empty string
443
+ * @param suffix? Optional token suffix. Defaults to token name.
444
+ * @param network? Optional token network. Defaults to the testnet TRON network.
445
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
446
+ * @param primaryKeyCurve The elliptic curve for this chain/token
447
+ */
448
+ export declare function ttronToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>;
449
+ /**
450
+ * Factory function for Hedera coin instances
451
+ *
452
+ * @param name unique identifier of the coin
453
+ * @param fullName Complete human-readable name of the token
454
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
455
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
456
+ * @param nodeAccountId node account Id from which the transaction will be sent
457
+ * @param prefix? Optional token prefix. Defaults to empty string
458
+ * @param suffix? Optional token suffix. Defaults to token name.
459
+ * @param network? Optional token network. Defaults to Hedera mainnet.
460
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
461
+ * @param primaryKeyCurve The elliptic curve for this chain/token
462
+ */
463
+ export declare function hederaCoin(name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, nodeAccountId?: string, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<HederaCoin>;
464
+ /**
465
+ * Factory function for Hedera token instances
466
+ *
467
+ * @param name unique identifier of the coin
468
+ * @param fullName Complete human-readable name of the token
469
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
470
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
471
+ * @param nodeAccountId node account Id from which the transaction will be sent
472
+ * @param tokenId The unique identifier of this token
473
+ * @param prefix? Optional token prefix. Defaults to empty string
474
+ * @param suffix? Optional token suffix. Defaults to token name.
475
+ * @param network? Optional token network. Defaults to Hedera mainnet.
476
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
477
+ * @param primaryKeyCurve The elliptic curve for this chain/token
478
+ */
479
+ export declare function hederaToken(name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, nodeAccountId: string | undefined, tokenId: string, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<HederaToken>;
480
+ /**
481
+ * Factory function for ALGO token instances.
482
+ *
483
+ * @param name unique identifier of the token
484
+ * @param alias (optional) alternative identifier of the token
485
+ * @param fullName Complete human-readable name of the token
486
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
487
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
488
+ * @param tokenURL Optional asset Url for more informationa about the asset
489
+ * See https://developer.algorand.org/docs/reference/transactions/#url
490
+ * @param prefix? Optional token prefix. Defaults to empty string
491
+ * @param suffix? Optional token suffix. Defaults to token name.
492
+ * @param network? Optional token network. Defaults to ALGO mainnet.
493
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
494
+ * @param primaryKeyCurve The elliptic curve for this chain/token
495
+ */
496
+ export declare function algoToken(name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, tokenURL?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AlgoCoin>;
497
+ /**
498
+ * Factory function for testnet ALGO token instances.
499
+ *
500
+ * @param name unique identifier of the token
501
+ * @param alias (optional) alternative identifier of the token
502
+ * @param fullName Complete human-readable name of the token
503
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
504
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
505
+ * @param tokenURL Optional asset Url for more informationa about the asset
506
+ * See https://developer.algorand.org/docs/reference/transactions/#url
507
+ * @param prefix? Optional token prefix. Defaults to empty string
508
+ * @param suffix? Optional token suffix. Defaults to token name.
509
+ * @param network? Optional token network. Defaults to Algo testnet.
510
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
511
+ */
512
+ export declare function talgoToken(name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, tokenURL?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<AlgoCoin>;
513
+ /**
514
+ * Factory function for eos token instances.
515
+ *
516
+ * @param name unique identifier of the token
517
+ * @param fullName Complete human-readable name of the token
518
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
519
+ * @param contractName Contract address of this token
520
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
521
+ * @param prefix? Optional token prefix. Defaults to empty string
522
+ * @param suffix? Optional token suffix. Defaults to token name.
523
+ * @param network? Optional token network. Defaults to EOS main network.
524
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
525
+ * @param primaryKeyCurve The elliptic curve for this chain/token
526
+ */
527
+ export declare function eosToken(name: string, fullName: string, decimalPlaces: number, contractName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<EosCoin>;
528
+ /**
529
+ * Factory function for testnet eos token instances.
530
+ *
531
+ * @param name unique identifier of the token
532
+ * @param fullName Complete human-readable name of the token
533
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
534
+ * @param contractAddress Contract address of this token
535
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
536
+ * @param prefix? Optional token prefix. Defaults to empty string
537
+ * @param suffix? Optional token suffix. Defaults to token name.
538
+ * @param network? Optional token network. Defaults to the testnet EOS network.
539
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
540
+ */
541
+ export declare function teosToken(name: string, fullName: string, decimalPlaces: number, contractName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<EosCoin>;
542
+ /**
543
+ * Factory function for sol token instances.
544
+ *
545
+ * @param name unique identifier of the token
546
+ * @param fullName Complete human-readable name of the token
547
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
548
+ * @param tokenAddress Token address of this token
549
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
550
+ * @param prefix? Optional token prefix. Defaults to empty string
551
+ * @param suffix? Optional token suffix. Defaults to token name.
552
+ * @param network? Optional token network. Defaults to SOL main network.
553
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
554
+ * @param primaryKeyCurve The elliptic curve for this chain/token
555
+ */
556
+ export declare function solToken(name: string, fullName: string, decimalPlaces: number, tokenAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<SolCoin>;
557
+ /**
558
+ * Factory function for testnet solana token instances.
559
+ *
560
+ * @param name unique identifier of the token
561
+ * @param fullName Complete human-readable name of the token
562
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
563
+ * @param tokenAddress Token address of this token
564
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
565
+ * @param prefix? Optional token prefix. Defaults to empty string
566
+ * @param suffix? Optional token suffix. Defaults to token name.
567
+ * @param network? Optional token network. Defaults to the testnet Solana network.
568
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
569
+ */
570
+ export declare function tsolToken(name: string, fullName: string, decimalPlaces: number, tokenAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<SolCoin>;
571
+ /**
572
+ * Factory function for ada token instances.
573
+ *
574
+ * @param name unique identifier of the token
575
+ * @param fullName Complete human-readable name of the token
576
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
577
+ * @param tokenSymbol Token symbol of this token
578
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
579
+ * @param prefix? Optional token prefix. Defaults to empty string
580
+ * @param suffix? Optional token suffix. Defaults to token name.
581
+ * @param network? Optional token network. Defaults to Cardano main network.
582
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
583
+ * @param primaryKeyCurve The elliptic curve for this chain/token
584
+ */
585
+ export declare function adaToken(name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AdaCoin>;
586
+ /**
587
+ * Factory function for testnet cardano token instances.
588
+ *
589
+ * @param name unique identifier of the token
590
+ * @param fullName Complete human-readable name of the token
591
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
592
+ * @param tokenSymbol Token symbol of this token i.e: AUSD
593
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
594
+ * @param prefix? Optional token prefix. Defaults to empty string
595
+ * @param suffix? Optional token suffix. Defaults to token name.
596
+ * @param network? Optional token network. Defaults to the testnet Cardano network.
597
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
598
+ */
599
+ export declare function tadaToken(name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<AdaCoin>;
600
+ /**
601
+ * Factory function for avaxErc20 token instances.
602
+ *
603
+ * @param name unique identifier of the token
604
+ * @param fullName Complete human-readable name of the token
605
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
606
+ * @param contractAddress Contract address of this token
607
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
608
+ * @param prefix? Optional token prefix. Defaults to empty string
609
+ * @param suffix? Optional token suffix. Defaults to token name.
610
+ * @param network? Optional token network. Defaults to AvalancheC main network.
611
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
612
+ * @param primaryKeyCurve The elliptic curve for this chain/token
613
+ */
614
+ export declare function avaxErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>;
615
+ /**
616
+ * Factory function for testnet avaxErc20 token instances.
617
+ *
618
+ * @param name unique identifier of the token
619
+ * @param fullName Complete human-readable name of the token
620
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
621
+ * @param contractAddress Contract address of this token
622
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
623
+ * @param prefix? Optional token prefix. Defaults to empty string
624
+ * @param suffix? Optional token suffix. Defaults to token name.
625
+ * @param network? Optional token network. Defaults to the AvalancheC test network.
626
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
627
+ * @param primaryKeyCurve The elliptic curve for this chain/token
628
+ */
629
+ export declare function tavaxErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>;
630
+ /**
631
+ * Factory function for polygonErc20 token instances.
632
+ *
633
+ * @param name unique identifier of the token
634
+ * @param fullName Complete human-readable name of the token
635
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
636
+ * @param contractAddress Contract address of this token
637
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
638
+ * @param prefix? Optional token prefix. Defaults to empty string
639
+ * @param suffix? Optional token suffix. Defaults to token name.
640
+ * @param network? Optional token network. Defaults to Polygon main network.
641
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
642
+ * @param primaryKeyCurve The elliptic curve for this chain/token
643
+ */
644
+ export declare function polygonErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolygonERC20Token>;
645
+ /**
646
+ * Factory function for Mumbai testnet polygonErc20 token instances.
647
+ *
648
+ * @param name unique identifier of the token
649
+ * @param fullName Complete human-readable name of the token
650
+ * @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
651
+ * @param contractAddress Contract address of this token
652
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
653
+ * @param prefix? Optional token prefix. Defaults to empty string
654
+ * @param suffix? Optional token suffix. Defaults to token name.
655
+ * @param network? Optional token network. Defaults to the Polygon test network.
656
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
657
+ * @param primaryKeyCurve The elliptic curve for this chain/token
658
+ */
659
+ export declare function tpolygonErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolygonERC20Token>;
660
+ /**
661
+ * Factory function for fiat coin instances.
662
+ *
663
+ * @param name unique identifier of the coin, should start with 'fiat' or 'tfiat'
664
+ * @param fullName Complete human-readable name of the coin
665
+ * @param network Network object for this coin
666
+ * @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
667
+ * @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
668
+ * @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `FiatCoin`
669
+ * @param primaryKeyCurve? The elliptic curve for this chain/token
670
+ * @param prefix? Optional coin prefix. Defaults to empty string
671
+ * @param suffix? Optional coin suffix. Defaults to coin name.
672
+ * @param isToken? Whether or not this coin is a token of another coin
673
+ */
674
+ export declare function fiat(name: FiatCoinName, fullName: string, network: BaseNetwork, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, prefix?: string, suffix?: string, isToken?: boolean): Readonly<FiatCoin>;
675
+ export {};
676
+ //# sourceMappingURL=account.d.ts.map