@bitgo-beta/statics 10.0.1-alpha.15 → 10.0.1-alpha.151
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/.mocharc.js +1 -1
- package/CHANGELOG.md +2253 -0
- package/dist/src/account.d.ts +274 -62
- package/dist/src/account.d.ts.map +1 -1
- package/dist/src/account.js +419 -96
- package/dist/src/ada.d.ts +3 -1
- package/dist/src/ada.d.ts.map +1 -1
- package/dist/src/ada.js +7 -2
- package/dist/src/avaxp.d.ts +3 -1
- package/dist/src/avaxp.d.ts.map +1 -1
- package/dist/src/avaxp.js +12 -3
- package/dist/src/base.d.ts +887 -22
- package/dist/src/base.d.ts.map +1 -1
- package/dist/src/base.js +932 -21
- package/dist/src/coins.d.ts.map +1 -1
- package/dist/src/coins.js +2486 -1264
- package/dist/src/constants.d.ts +2 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/constants.js +5 -0
- package/dist/src/errors.d.ts +6 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +16 -2
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +11 -3
- package/dist/src/lightning.d.ts +43 -0
- package/dist/src/lightning.d.ts.map +1 -0
- package/dist/src/lightning.js +60 -0
- package/dist/src/map.d.ts +2 -0
- package/dist/src/map.d.ts.map +1 -1
- package/dist/src/map.js +26 -3
- package/dist/src/networks.d.ts +336 -3
- package/dist/src/networks.d.ts.map +1 -1
- package/dist/src/networks.js +487 -45
- package/dist/src/ofc.d.ts +249 -4
- package/dist/src/ofc.d.ts.map +1 -1
- package/dist/src/ofc.js +507 -6
- package/dist/src/tokenConfig.d.ts +42 -0
- package/dist/src/tokenConfig.d.ts.map +1 -1
- package/dist/src/tokenConfig.js +107 -3
- package/dist/src/utxo.d.ts +6 -2
- package/dist/src/utxo.d.ts.map +1 -1
- package/dist/src/utxo.js +67 -3
- package/dist/tsconfig.tsbuildinfo +1 -2717
- package/package.json +2 -2
- 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
package/dist/src/account.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseCoin, BaseUnit, CoinFeature, KeyCurve, UnderlyingAsset } from './base';
|
|
2
2
|
import { AccountNetwork, BaseNetwork, EthereumNetwork, TronNetwork } from './networks';
|
|
3
3
|
export interface AccountConstructorOptions {
|
|
4
|
+
id: string;
|
|
4
5
|
fullName: string;
|
|
5
6
|
name: string;
|
|
6
7
|
alias?: string;
|
|
@@ -54,6 +55,16 @@ export interface AdaCoinConstructorOptions extends AccountConstructorOptions {
|
|
|
54
55
|
policyId: string;
|
|
55
56
|
assetName: string;
|
|
56
57
|
}
|
|
58
|
+
export interface XrpCoinConstructorOptions extends AccountConstructorOptions {
|
|
59
|
+
issuerAddress: string;
|
|
60
|
+
currencyCode: string;
|
|
61
|
+
domain: string;
|
|
62
|
+
}
|
|
63
|
+
export interface SuiCoinConstructorOptions extends AccountConstructorOptions {
|
|
64
|
+
packageId: string;
|
|
65
|
+
module: string;
|
|
66
|
+
symbol: string;
|
|
67
|
+
}
|
|
57
68
|
declare type FiatCoinName = `fiat${string}` | `tfiat${string}`;
|
|
58
69
|
export interface FiatCoinConstructorOptions extends AccountConstructorOptions {
|
|
59
70
|
name: FiatCoinName;
|
|
@@ -191,15 +202,6 @@ export declare class AdaCoin extends AccountCoinToken {
|
|
|
191
202
|
assetName: string;
|
|
192
203
|
constructor(options: AdaCoinConstructorOptions);
|
|
193
204
|
}
|
|
194
|
-
/**
|
|
195
|
-
* The Trx network supports tokens
|
|
196
|
-
* Trx tokens are identified by their smart contract address
|
|
197
|
-
*
|
|
198
|
-
*/
|
|
199
|
-
export declare class TrxCoin extends AccountCoinToken {
|
|
200
|
-
contractAddress: string;
|
|
201
|
-
constructor(options: Erc20ConstructorOptions);
|
|
202
|
-
}
|
|
203
205
|
/**
|
|
204
206
|
* The AVAX C Chain network support tokens
|
|
205
207
|
* AVAX C Chain Tokens are ERC20 coins
|
|
@@ -214,6 +216,45 @@ export declare class AvaxERC20Token extends ContractAddressDefinedToken {
|
|
|
214
216
|
export declare class PolygonERC20Token extends ContractAddressDefinedToken {
|
|
215
217
|
constructor(options: Erc20ConstructorOptions);
|
|
216
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* The Arbitrum Chain network support tokens
|
|
221
|
+
* Arbitrum Chain Tokens are ERC20 tokens
|
|
222
|
+
*/
|
|
223
|
+
export declare class ArbethERC20Token extends ContractAddressDefinedToken {
|
|
224
|
+
constructor(options: Erc20ConstructorOptions);
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* The Optimism Chain network support tokens
|
|
228
|
+
* Optimism Chain Tokens are ERC20 tokens
|
|
229
|
+
*/
|
|
230
|
+
export declare class OpethERC20Token extends ContractAddressDefinedToken {
|
|
231
|
+
constructor(options: Erc20ConstructorOptions);
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* The zkSync network support tokens
|
|
235
|
+
* zkSync Tokens are ERC20 tokens
|
|
236
|
+
*/
|
|
237
|
+
export declare class ZkethERC20Token extends ContractAddressDefinedToken {
|
|
238
|
+
constructor(options: Erc20ConstructorOptions);
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* The Xrp network supports tokens
|
|
242
|
+
* Xrp tokens are identified by their issuer address
|
|
243
|
+
* Naming format is similar to XLM
|
|
244
|
+
* <network>:<token>-<issuer>
|
|
245
|
+
*/
|
|
246
|
+
export declare class XrpCoin extends AccountCoinToken {
|
|
247
|
+
issuerAddress: string;
|
|
248
|
+
currencyCode: string;
|
|
249
|
+
domain: string;
|
|
250
|
+
constructor(options: XrpCoinConstructorOptions);
|
|
251
|
+
}
|
|
252
|
+
export declare class SuiCoin extends AccountCoinToken {
|
|
253
|
+
packageId: string;
|
|
254
|
+
module: string;
|
|
255
|
+
symbol: string;
|
|
256
|
+
constructor(options: SuiCoinConstructorOptions);
|
|
257
|
+
}
|
|
217
258
|
/**
|
|
218
259
|
* Fiat currencies, such as USD, EUR, or YEN.
|
|
219
260
|
*/
|
|
@@ -227,6 +268,7 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
227
268
|
/**
|
|
228
269
|
* Factory function for account coin instances.
|
|
229
270
|
*
|
|
271
|
+
* @param id uuid v4
|
|
230
272
|
* @param name unique identifier of the coin
|
|
231
273
|
* @param fullName Complete human-readable name of the coin
|
|
232
274
|
* @param network Network object for this coin
|
|
@@ -238,10 +280,11 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
238
280
|
* @param suffix? Optional coin suffix. Defaults to coin name.
|
|
239
281
|
* @param isToken? Whether or not this account coin is a token of another coin
|
|
240
282
|
*/
|
|
241
|
-
export declare function account(name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, prefix?: string, suffix?: string, isToken?: boolean): Readonly<AccountCoin>;
|
|
283
|
+
export declare function account(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, prefix?: string, suffix?: string, isToken?: boolean): Readonly<AccountCoin>;
|
|
242
284
|
/**
|
|
243
285
|
* Factory function for erc20 token instances.
|
|
244
286
|
*
|
|
287
|
+
* @param id uuid v4
|
|
245
288
|
* @param name unique identifier of the token
|
|
246
289
|
* @param fullName Complete human-readable name of the token
|
|
247
290
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -253,10 +296,11 @@ export declare function account(name: string, fullName: string, network: Account
|
|
|
253
296
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
254
297
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
255
298
|
*/
|
|
256
|
-
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>;
|
|
299
|
+
export declare function erc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc20Coin>;
|
|
257
300
|
/**
|
|
258
301
|
* Factory function for testnet erc20 token instances.
|
|
259
302
|
*
|
|
303
|
+
* @param id uuid v4
|
|
260
304
|
* @param name unique identifier of the token
|
|
261
305
|
* @param fullName Complete human-readable name of the token
|
|
262
306
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -267,10 +311,11 @@ export declare function erc20(name: string, fullName: string, decimalPlaces: num
|
|
|
267
311
|
* @param network? Optional token network. Defaults to the Kovan test network.
|
|
268
312
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
269
313
|
*/
|
|
270
|
-
export declare function terc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<Erc20Coin>;
|
|
314
|
+
export declare function terc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<Erc20Coin>;
|
|
271
315
|
/**
|
|
272
316
|
* Factory function for erc721 token instances.
|
|
273
317
|
*
|
|
318
|
+
* @param id uuid v4
|
|
274
319
|
* @param name unique identifier of the token
|
|
275
320
|
* @param fullName Complete human-readable name of the token
|
|
276
321
|
* @param contractAddress Contract address of this token
|
|
@@ -281,23 +326,25 @@ export declare function terc20(name: string, fullName: string, decimalPlaces: nu
|
|
|
281
326
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
282
327
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
283
328
|
*/
|
|
284
|
-
export declare function erc721(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>;
|
|
329
|
+
export declare function erc721(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>;
|
|
285
330
|
/**
|
|
286
331
|
* Factory function for testnet erc721 token instances.
|
|
287
332
|
*
|
|
333
|
+
* @param id uuid v4
|
|
288
334
|
* @param name unique identifier of the token
|
|
289
335
|
* @param fullName Complete human-readable name of the token
|
|
290
336
|
* @param contractAddress Contract address of this token
|
|
291
337
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
292
338
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
293
339
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
294
|
-
* @param network? Optional token network. Defaults to
|
|
340
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
295
341
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
296
342
|
*/
|
|
297
|
-
export declare function terc721(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>;
|
|
343
|
+
export declare function terc721(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>;
|
|
298
344
|
/**
|
|
299
345
|
* Factory function for nonstandard token instances.
|
|
300
346
|
*
|
|
347
|
+
* @param id uuid v4
|
|
301
348
|
* @param name unique identifier of the token
|
|
302
349
|
* @param fullName Complete human-readable name of the token
|
|
303
350
|
* @param contractAddress Contract address of this token
|
|
@@ -308,10 +355,11 @@ export declare function terc721(name: string, fullName: string, contractAddress:
|
|
|
308
355
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
309
356
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
310
357
|
*/
|
|
311
|
-
export declare function nonstandardToken(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<ContractAddressDefinedToken>;
|
|
358
|
+
export declare function nonstandardToken(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<ContractAddressDefinedToken>;
|
|
312
359
|
/**
|
|
313
360
|
* Factory function for erc1155 token instances.
|
|
314
361
|
*
|
|
362
|
+
* @param id uuid v4
|
|
315
363
|
* @param name unique identifier of the token
|
|
316
364
|
* @param fullName Complete human-readable name of the token
|
|
317
365
|
* @param contractAddress Contract address of this token
|
|
@@ -322,23 +370,25 @@ export declare function nonstandardToken(name: string, fullName: string, contrac
|
|
|
322
370
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
323
371
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
324
372
|
*/
|
|
325
|
-
export declare function erc1155(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>;
|
|
373
|
+
export declare function erc1155(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>;
|
|
326
374
|
/**
|
|
327
375
|
* Factory function for testnet erc1155 token instances.
|
|
328
376
|
*
|
|
377
|
+
* @param id uuid v4
|
|
329
378
|
* @param name unique identifier of the token
|
|
330
379
|
* @param fullName Complete human-readable name of the token
|
|
331
380
|
* @param contractAddress Contract address of this token
|
|
332
381
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
333
382
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
334
383
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
335
|
-
* @param network? Optional token network. Defaults to
|
|
384
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
336
385
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
337
386
|
*/
|
|
338
|
-
export declare function terc1155(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>;
|
|
387
|
+
export declare function terc1155(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>;
|
|
339
388
|
/**
|
|
340
389
|
* Factory function for ERC20-compatible account coin instances.
|
|
341
390
|
*
|
|
391
|
+
* @param id uuid v4
|
|
342
392
|
* @param name unique identifier of the token
|
|
343
393
|
* @param fullName Complete human-readable name of the token
|
|
344
394
|
* @param network Network object for this coin
|
|
@@ -350,10 +400,11 @@ export declare function terc1155(name: string, fullName: string, contractAddress
|
|
|
350
400
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
351
401
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
352
402
|
*/
|
|
353
|
-
export declare function erc20CompatibleAccountCoin(name: string, fullName: string, network: EthereumNetwork, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<Erc20CompatibleAccountCoin>;
|
|
403
|
+
export declare function erc20CompatibleAccountCoin(id: string, name: string, fullName: string, network: EthereumNetwork, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<Erc20CompatibleAccountCoin>;
|
|
354
404
|
/**
|
|
355
405
|
* Factory function for celo token instances.
|
|
356
406
|
*
|
|
407
|
+
* @param id uuid v4
|
|
357
408
|
* @param name unique identifier of the token
|
|
358
409
|
* @param fullName Complete human-readable name of the token
|
|
359
410
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -365,10 +416,11 @@ export declare function erc20CompatibleAccountCoin(name: string, fullName: strin
|
|
|
365
416
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
366
417
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
367
418
|
*/
|
|
368
|
-
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>;
|
|
419
|
+
export declare function celoToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<CeloCoin>;
|
|
369
420
|
/**
|
|
370
421
|
* Factory function for testnet celo token instances.
|
|
371
422
|
*
|
|
423
|
+
* @param id uuid v4
|
|
372
424
|
* @param name unique identifier of the token
|
|
373
425
|
* @param fullName Complete human-readable name of the token
|
|
374
426
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -379,10 +431,11 @@ export declare function celoToken(name: string, fullName: string, decimalPlaces:
|
|
|
379
431
|
* @param network? Optional token network. Defaults to the testnet CELO network.
|
|
380
432
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
381
433
|
*/
|
|
382
|
-
export declare function tceloToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<CeloCoin>;
|
|
434
|
+
export declare function tceloToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<CeloCoin>;
|
|
383
435
|
/**
|
|
384
436
|
* Factory function for celo token instances.
|
|
385
437
|
*
|
|
438
|
+
* @param id uuid v4
|
|
386
439
|
* @param name unique identifier of the token
|
|
387
440
|
* @param fullName Complete human-readable name of the token
|
|
388
441
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -394,10 +447,11 @@ export declare function tceloToken(name: string, fullName: string, decimalPlaces
|
|
|
394
447
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
395
448
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
396
449
|
*/
|
|
397
|
-
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>;
|
|
450
|
+
export declare function bscToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<BscCoin>;
|
|
398
451
|
/**
|
|
399
452
|
* Factory function for testnet bsc token instances.
|
|
400
453
|
*
|
|
454
|
+
* @param id uuid v4
|
|
401
455
|
* @param name unique identifier of the token
|
|
402
456
|
* @param fullName Complete human-readable name of the token
|
|
403
457
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -408,10 +462,11 @@ export declare function bscToken(name: string, fullName: string, decimalPlaces:
|
|
|
408
462
|
* @param network? Optional token network. Defaults to the testnet BSC network.
|
|
409
463
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
410
464
|
*/
|
|
411
|
-
export declare function tbscToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<BscCoin>;
|
|
465
|
+
export declare function tbscToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<BscCoin>;
|
|
412
466
|
/**
|
|
413
467
|
* Factory function for Stellar token instances.
|
|
414
468
|
*
|
|
469
|
+
* @param id uuid v4
|
|
415
470
|
* @param name unique identifier of the token
|
|
416
471
|
* @param fullName Complete human-readable name of the token
|
|
417
472
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -424,10 +479,11 @@ export declare function tbscToken(name: string, fullName: string, decimalPlaces:
|
|
|
424
479
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
425
480
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
426
481
|
*/
|
|
427
|
-
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>;
|
|
482
|
+
export declare function stellarToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<StellarCoin>;
|
|
428
483
|
/**
|
|
429
484
|
* Factory function for testnet Stellar token instances.
|
|
430
485
|
*
|
|
486
|
+
* @param id uuid v4
|
|
431
487
|
* @param name unique identifier of the token
|
|
432
488
|
* @param fullName Complete human-readable name of the token
|
|
433
489
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -439,10 +495,11 @@ export declare function stellarToken(name: string, fullName: string, decimalPlac
|
|
|
439
495
|
* @param network? Optional token network. Defaults to Stellar testnet.
|
|
440
496
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
441
497
|
*/
|
|
442
|
-
export declare function tstellarToken(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<StellarCoin>;
|
|
498
|
+
export declare function tstellarToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<StellarCoin>;
|
|
443
499
|
/**
|
|
444
500
|
* Factory function for tron token instances.
|
|
445
501
|
*
|
|
502
|
+
* @param id uuid v4
|
|
446
503
|
* @param name unique identifier of the token
|
|
447
504
|
* @param fullName Complete human-readable name of the token
|
|
448
505
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -454,10 +511,11 @@ export declare function tstellarToken(name: string, fullName: string, decimalPla
|
|
|
454
511
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
455
512
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
456
513
|
*/
|
|
457
|
-
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>;
|
|
514
|
+
export declare function tronToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>;
|
|
458
515
|
/**
|
|
459
516
|
* Factory function for testnet tron token instances.
|
|
460
517
|
*
|
|
518
|
+
* @param id uuid v4
|
|
461
519
|
* @param name unique identifier of the token
|
|
462
520
|
* @param fullName Complete human-readable name of the token
|
|
463
521
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -469,10 +527,11 @@ export declare function tronToken(name: string, fullName: string, decimalPlaces:
|
|
|
469
527
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
470
528
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
471
529
|
*/
|
|
472
|
-
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>;
|
|
530
|
+
export declare function ttronToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>;
|
|
473
531
|
/**
|
|
474
532
|
* Factory function for Hedera coin instances
|
|
475
533
|
*
|
|
534
|
+
* @param id uuid v4
|
|
476
535
|
* @param name unique identifier of the coin
|
|
477
536
|
* @param fullName Complete human-readable name of the token
|
|
478
537
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -484,10 +543,11 @@ export declare function ttronToken(name: string, fullName: string, decimalPlaces
|
|
|
484
543
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
485
544
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
486
545
|
*/
|
|
487
|
-
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>;
|
|
546
|
+
export declare function hederaCoin(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, nodeAccountId?: string, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<HederaCoin>;
|
|
488
547
|
/**
|
|
489
548
|
* Factory function for Hedera token instances
|
|
490
549
|
*
|
|
550
|
+
* @param id uuid v4
|
|
491
551
|
* @param name unique identifier of the coin
|
|
492
552
|
* @param fullName Complete human-readable name of the token
|
|
493
553
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -500,11 +560,13 @@ export declare function hederaCoin(name: string, fullName: string, network: Acco
|
|
|
500
560
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
501
561
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
502
562
|
*/
|
|
503
|
-
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>;
|
|
563
|
+
export declare function hederaToken(id: string, 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>;
|
|
504
564
|
/**
|
|
505
565
|
* Factory function for ALGO token instances.
|
|
506
566
|
*
|
|
567
|
+
* @param id uuid v4
|
|
507
568
|
* @param name unique identifier of the token
|
|
569
|
+
|
|
508
570
|
* @param alias (optional) alternative identifier of the token
|
|
509
571
|
* @param fullName Complete human-readable name of the token
|
|
510
572
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -517,10 +579,11 @@ export declare function hederaToken(name: string, fullName: string, network: Acc
|
|
|
517
579
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
518
580
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
519
581
|
*/
|
|
520
|
-
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>;
|
|
582
|
+
export declare function algoToken(id: string, 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>;
|
|
521
583
|
/**
|
|
522
584
|
* Factory function for testnet ALGO token instances.
|
|
523
585
|
*
|
|
586
|
+
* @param id uuid v4
|
|
524
587
|
* @param name unique identifier of the token
|
|
525
588
|
* @param alias (optional) alternative identifier of the token
|
|
526
589
|
* @param fullName Complete human-readable name of the token
|
|
@@ -533,10 +596,11 @@ export declare function algoToken(name: string, alias: string | undefined, fullN
|
|
|
533
596
|
* @param network? Optional token network. Defaults to Algo testnet.
|
|
534
597
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
535
598
|
*/
|
|
536
|
-
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>;
|
|
599
|
+
export declare function talgoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, tokenURL?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<AlgoCoin>;
|
|
537
600
|
/**
|
|
538
601
|
* Factory function for eos token instances.
|
|
539
602
|
*
|
|
603
|
+
* @param id uuid v4
|
|
540
604
|
* @param name unique identifier of the token
|
|
541
605
|
* @param fullName Complete human-readable name of the token
|
|
542
606
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -548,10 +612,11 @@ export declare function talgoToken(name: string, alias: string | undefined, full
|
|
|
548
612
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
549
613
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
550
614
|
*/
|
|
551
|
-
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>;
|
|
615
|
+
export declare function eosToken(id: string, name: string, fullName: string, decimalPlaces: number, contractName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<EosCoin>;
|
|
552
616
|
/**
|
|
553
617
|
* Factory function for testnet eos token instances.
|
|
554
618
|
*
|
|
619
|
+
* @param id uuid v4
|
|
555
620
|
* @param name unique identifier of the token
|
|
556
621
|
* @param fullName Complete human-readable name of the token
|
|
557
622
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -562,10 +627,11 @@ export declare function eosToken(name: string, fullName: string, decimalPlaces:
|
|
|
562
627
|
* @param network? Optional token network. Defaults to the testnet EOS network.
|
|
563
628
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
564
629
|
*/
|
|
565
|
-
export declare function teosToken(name: string, fullName: string, decimalPlaces: number, contractName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<EosCoin>;
|
|
630
|
+
export declare function teosToken(id: string, name: string, fullName: string, decimalPlaces: number, contractName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<EosCoin>;
|
|
566
631
|
/**
|
|
567
632
|
* Factory function for sol token instances.
|
|
568
633
|
*
|
|
634
|
+
* @param id uuid v4
|
|
569
635
|
* @param name unique identifier of the token
|
|
570
636
|
* @param fullName Complete human-readable name of the token
|
|
571
637
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -577,10 +643,11 @@ export declare function teosToken(name: string, fullName: string, decimalPlaces:
|
|
|
577
643
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
578
644
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
579
645
|
*/
|
|
580
|
-
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>;
|
|
646
|
+
export declare function solToken(id: string, name: string, fullName: string, decimalPlaces: number, tokenAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<SolCoin>;
|
|
581
647
|
/**
|
|
582
648
|
* Factory function for testnet solana token instances.
|
|
583
649
|
*
|
|
650
|
+
* @param id uuid v4
|
|
584
651
|
* @param name unique identifier of the token
|
|
585
652
|
* @param fullName Complete human-readable name of the token
|
|
586
653
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -591,10 +658,11 @@ export declare function solToken(name: string, fullName: string, decimalPlaces:
|
|
|
591
658
|
* @param network? Optional token network. Defaults to the testnet Solana network.
|
|
592
659
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
593
660
|
*/
|
|
594
|
-
export declare function tsolToken(name: string, fullName: string, decimalPlaces: number, tokenAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<SolCoin>;
|
|
661
|
+
export declare function tsolToken(id: string, name: string, fullName: string, decimalPlaces: number, tokenAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<SolCoin>;
|
|
595
662
|
/**
|
|
596
663
|
* Factory function for ada token instances.
|
|
597
664
|
*
|
|
665
|
+
* @param id uuid v4
|
|
598
666
|
* @param name unique identifier of the token
|
|
599
667
|
* @param fullName Complete human-readable name of the token
|
|
600
668
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -606,10 +674,11 @@ export declare function tsolToken(name: string, fullName: string, decimalPlaces:
|
|
|
606
674
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
607
675
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
608
676
|
*/
|
|
609
|
-
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>;
|
|
677
|
+
export declare function adaToken(id: string, name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AdaCoin>;
|
|
610
678
|
/**
|
|
611
679
|
* Factory function for testnet cardano token instances.
|
|
612
680
|
*
|
|
681
|
+
* @param id uuid v4
|
|
613
682
|
* @param name unique identifier of the token
|
|
614
683
|
* @param fullName Complete human-readable name of the token
|
|
615
684
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -620,39 +689,43 @@ export declare function adaToken(name: string, fullName: string, decimalPlaces:
|
|
|
620
689
|
* @param network? Optional token network. Defaults to the testnet Cardano network.
|
|
621
690
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
622
691
|
*/
|
|
623
|
-
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>;
|
|
692
|
+
export declare function tadaToken(id: string, name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<AdaCoin>;
|
|
624
693
|
/**
|
|
625
|
-
* Factory function for
|
|
694
|
+
* Factory function for avaxErc20 token instances.
|
|
626
695
|
*
|
|
696
|
+
* @param id uuid v4
|
|
627
697
|
* @param name unique identifier of the token
|
|
628
698
|
* @param fullName Complete human-readable name of the token
|
|
629
699
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
630
|
-
* @param contractAddress
|
|
700
|
+
* @param contractAddress Contract address of this token
|
|
631
701
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
632
702
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
633
703
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
634
|
-
* @param network? Optional token network. Defaults to
|
|
635
|
-
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
704
|
+
* @param network? Optional token network. Defaults to AvalancheC main network.
|
|
705
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
636
706
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
637
707
|
*/
|
|
638
|
-
export declare function
|
|
708
|
+
export declare function avaxErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>;
|
|
639
709
|
/**
|
|
640
|
-
* Factory function for testnet
|
|
710
|
+
* Factory function for testnet avaxErc20 token instances.
|
|
641
711
|
*
|
|
712
|
+
* @param id uuid v4
|
|
642
713
|
* @param name unique identifier of the token
|
|
643
714
|
* @param fullName Complete human-readable name of the token
|
|
644
715
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
645
|
-
* @param contractAddress
|
|
716
|
+
* @param contractAddress Contract address of this token
|
|
646
717
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
647
718
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
648
719
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
649
|
-
* @param network? Optional token network. Defaults to the
|
|
650
|
-
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
720
|
+
* @param network? Optional token network. Defaults to the AvalancheC test network.
|
|
721
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
722
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
651
723
|
*/
|
|
652
|
-
export declare function
|
|
724
|
+
export declare function tavaxErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>;
|
|
653
725
|
/**
|
|
654
|
-
* Factory function for
|
|
726
|
+
* Factory function for polygonErc20 token instances.
|
|
655
727
|
*
|
|
728
|
+
* @param id uuid v4
|
|
656
729
|
* @param name unique identifier of the token
|
|
657
730
|
* @param fullName Complete human-readable name of the token
|
|
658
731
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -660,14 +733,15 @@ export declare function ttrxToken(name: string, fullName: string, decimalPlaces:
|
|
|
660
733
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
661
734
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
662
735
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
663
|
-
* @param network? Optional token network. Defaults to
|
|
736
|
+
* @param network? Optional token network. Defaults to Polygon main network.
|
|
664
737
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
665
738
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
666
739
|
*/
|
|
667
|
-
export declare function
|
|
740
|
+
export declare function polygonErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolygonERC20Token>;
|
|
668
741
|
/**
|
|
669
|
-
* Factory function for testnet
|
|
742
|
+
* Factory function for Amoy testnet polygonErc20 token instances.
|
|
670
743
|
*
|
|
744
|
+
* @param id uuid v4
|
|
671
745
|
* @param name unique identifier of the token
|
|
672
746
|
* @param fullName Complete human-readable name of the token
|
|
673
747
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -675,14 +749,15 @@ export declare function avaxErc20(name: string, fullName: string, decimalPlaces:
|
|
|
675
749
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
676
750
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
677
751
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
678
|
-
* @param network? Optional token network. Defaults to the
|
|
752
|
+
* @param network? Optional token network. Defaults to the Polygon test network.
|
|
679
753
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
680
754
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
681
755
|
*/
|
|
682
|
-
export declare function
|
|
756
|
+
export declare function tpolygonErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolygonERC20Token>;
|
|
683
757
|
/**
|
|
684
|
-
* Factory function for
|
|
758
|
+
* Factory function for arbethErc20 token instances.
|
|
685
759
|
*
|
|
760
|
+
* @param id uuid v4
|
|
686
761
|
* @param name unique identifier of the token
|
|
687
762
|
* @param fullName Complete human-readable name of the token
|
|
688
763
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -690,14 +765,15 @@ export declare function tavaxErc20(name: string, fullName: string, decimalPlaces
|
|
|
690
765
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
691
766
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
692
767
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
693
|
-
* @param network? Optional token network. Defaults to
|
|
768
|
+
* @param network? Optional token network. Defaults to Arbitrum main network.
|
|
694
769
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
695
770
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
696
771
|
*/
|
|
697
|
-
export declare function
|
|
772
|
+
export declare function arbethErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<ArbethERC20Token>;
|
|
698
773
|
/**
|
|
699
|
-
* Factory function for
|
|
774
|
+
* Factory function for Arbitrum Sepolia testnet arbethErc20 token instances.
|
|
700
775
|
*
|
|
776
|
+
* @param id uuid v4
|
|
701
777
|
* @param name unique identifier of the token
|
|
702
778
|
* @param fullName Complete human-readable name of the token
|
|
703
779
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -705,15 +781,151 @@ export declare function polygonErc20(name: string, fullName: string, decimalPlac
|
|
|
705
781
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
706
782
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
707
783
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
708
|
-
* @param network? Optional token network. Defaults to the
|
|
784
|
+
* @param network? Optional token network. Defaults to the Arbitrum test network.
|
|
709
785
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
710
786
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
711
787
|
*/
|
|
712
|
-
export declare function
|
|
788
|
+
export declare function tarbethErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<ArbethERC20Token>;
|
|
789
|
+
/**
|
|
790
|
+
* Factory function for opethErc20 token instances.
|
|
791
|
+
*
|
|
792
|
+
* @param id uuid v4
|
|
793
|
+
* @param name unique identifier of the token
|
|
794
|
+
* @param fullName Complete human-readable name of the token
|
|
795
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
796
|
+
* @param contractAddress Contract address of this token
|
|
797
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
798
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
799
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
800
|
+
* @param network? Optional token network. Defaults to Optimism main network.
|
|
801
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
802
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
803
|
+
*/
|
|
804
|
+
export declare function opethErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<OpethERC20Token>;
|
|
805
|
+
/**
|
|
806
|
+
* Factory function for Optimism Sepolia testnet opethErc20 token instances.
|
|
807
|
+
*
|
|
808
|
+
* @param id uuid v4
|
|
809
|
+
* @param name unique identifier of the token
|
|
810
|
+
* @param fullName Complete human-readable name of the token
|
|
811
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
812
|
+
* @param contractAddress Contract address of this token
|
|
813
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
814
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
815
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
816
|
+
* @param network? Optional token network. Defaults to the Optimism test network.
|
|
817
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
818
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
819
|
+
*/
|
|
820
|
+
export declare function topethErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<OpethERC20Token>;
|
|
821
|
+
/**
|
|
822
|
+
* Factory function for zkethErc20 token instances.
|
|
823
|
+
*
|
|
824
|
+
* @param id uuid v4
|
|
825
|
+
* @param name unique identifier of the token
|
|
826
|
+
* @param fullName Complete human-readable name of the token
|
|
827
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
828
|
+
* @param contractAddress Contract address of this token
|
|
829
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
830
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
831
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
832
|
+
* @param network? Optional token network. Defaults to zkSync mainnet network.
|
|
833
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
834
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
835
|
+
*/
|
|
836
|
+
export declare function zkethErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<ZkethERC20Token>;
|
|
837
|
+
/**
|
|
838
|
+
* Factory function for zkSync Sepolia testnet zkethErc20 token instances.
|
|
839
|
+
*
|
|
840
|
+
* @param id uuid v4
|
|
841
|
+
* @param name unique identifier of the token
|
|
842
|
+
* @param fullName Complete human-readable name of the token
|
|
843
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
844
|
+
* @param contractAddress Contract address of this token
|
|
845
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
846
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
847
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
848
|
+
* @param network? Optional token network. Defaults to the zkSync sepolia test network.
|
|
849
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
850
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
851
|
+
*/
|
|
852
|
+
export declare function tzkethErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<ZkethERC20Token>;
|
|
853
|
+
/**
|
|
854
|
+
* Factory function for xrp token instances.
|
|
855
|
+
*
|
|
856
|
+
* @param id uuid v4
|
|
857
|
+
* @param name unique identifier of the token
|
|
858
|
+
* @param fullName Complete human-readable name of the token
|
|
859
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
860
|
+
* @param issuerAddress: The address of the issuer of the token,
|
|
861
|
+
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
862
|
+
* @param domain? the domain of the issuer of the token,
|
|
863
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
864
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
865
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
866
|
+
* @param network? Optional token network. Defaults to Cardano main network.
|
|
867
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
868
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
869
|
+
*/
|
|
870
|
+
export declare function xrpToken(id: string, name: string, fullName: string, decimalPlaces: number, issuerAddress: string, currencyCode: string, domain: string | undefined, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<XrpCoin>;
|
|
871
|
+
/**
|
|
872
|
+
* Factory function for testnet cardano token instances.
|
|
873
|
+
*
|
|
874
|
+
* @param id uuid v4
|
|
875
|
+
* @param name unique identifier of the token
|
|
876
|
+
* @param fullName Complete human-readable name of the token
|
|
877
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
878
|
+
* @param issuerAddress: The address of the issuer of the token,
|
|
879
|
+
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
880
|
+
* @param domain? the domain of the issuer of the token,
|
|
881
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
882
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
883
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
884
|
+
* @param network? Optional token network. Defaults to the testnet Cardano network.
|
|
885
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
886
|
+
*/
|
|
887
|
+
export declare function txrpToken(id: string, name: string, fullName: string, decimalPlaces: number, issuerAddress: string, currencyCode: string, domain: string | undefined, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<XrpCoin>;
|
|
888
|
+
/**
|
|
889
|
+
* Factory function for sui token instances.
|
|
890
|
+
*
|
|
891
|
+
* @param id uuid v4
|
|
892
|
+
* @param name unique identifier of the token
|
|
893
|
+
* @param fullName Complete human-readable name of the token
|
|
894
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
895
|
+
* @param packageId PackageId of this token
|
|
896
|
+
* @param module The module of the package with id `packageId`
|
|
897
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
898
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
899
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
900
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
901
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
902
|
+
* @param network? Optional token network. Defaults to SUI main network.
|
|
903
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
904
|
+
*/
|
|
905
|
+
export declare function suiToken(id: string, name: string, fullName: string, decimalPlaces: number, packageId: string, module: string, symbol: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<SuiCoin>;
|
|
906
|
+
/**
|
|
907
|
+
* Factory function for testnet sui token instances.
|
|
908
|
+
*
|
|
909
|
+
* @param id uuid v4
|
|
910
|
+
* @param name unique identifier of the token
|
|
911
|
+
* @param fullName Complete human-readable name of the token
|
|
912
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
913
|
+
* @param packageId PackageId of this token
|
|
914
|
+
* @param module The module of the package with id `packageId`
|
|
915
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
916
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
917
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
918
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
919
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
920
|
+
* @param network? Optional token network. Defaults to SUI test network.
|
|
921
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
922
|
+
*/
|
|
923
|
+
export declare function tsuiToken(id: string, name: string, fullName: string, decimalPlaces: number, packageId: string, module: string, symbol: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<SuiCoin>;
|
|
713
924
|
/**
|
|
714
925
|
* Factory function for fiat coin instances.
|
|
715
926
|
*
|
|
716
|
-
* @param
|
|
927
|
+
* @param id uuid v4
|
|
928
|
+
* @param name unique identifier of the coin, should start with 'fiat' or 'tfiat' followed by the 3-char ISO-4217 alphabetical code
|
|
717
929
|
* @param fullName Complete human-readable name of the coin
|
|
718
930
|
* @param network Network object for this coin
|
|
719
931
|
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
|
|
@@ -724,6 +936,6 @@ export declare function tpolygonErc20(name: string, fullName: string, decimalPla
|
|
|
724
936
|
* @param suffix? Optional coin suffix. Defaults to coin name.
|
|
725
937
|
* @param isToken? Whether or not this coin is a token of another coin
|
|
726
938
|
*/
|
|
727
|
-
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>;
|
|
939
|
+
export declare function fiat(id: string, name: FiatCoinName, fullName: string, network: BaseNetwork, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, prefix?: string, suffix?: string, isToken?: boolean): Readonly<FiatCoin>;
|
|
728
940
|
export {};
|
|
729
941
|
//# sourceMappingURL=account.d.ts.map
|