@bitgo-beta/statics 15.1.1-beta.79 → 15.1.1-beta.791
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 +2672 -0
- package/dist/src/account.d.ts +353 -21
- package/dist/src/account.d.ts.map +1 -1
- package/dist/src/account.js +585 -76
- package/dist/src/ada.d.ts.map +1 -1
- package/dist/src/ada.js +7 -3
- package/dist/src/avaxp.d.ts.map +1 -1
- package/dist/src/avaxp.js +6 -3
- package/dist/src/base.d.ts +1255 -38
- package/dist/src/base.d.ts.map +1 -1
- package/dist/src/base.js +1299 -49
- package/dist/src/coinFeatures.d.ts +79 -0
- package/dist/src/coinFeatures.d.ts.map +1 -0
- package/dist/src/coinFeatures.js +446 -0
- package/dist/src/coins/avaxTokens.d.ts +2 -0
- package/dist/src/coins/avaxTokens.d.ts.map +1 -0
- package/dist/src/coins/avaxTokens.js +93 -0
- package/dist/src/coins/bscTokens.d.ts +2 -0
- package/dist/src/coins/bscTokens.d.ts.map +1 -0
- package/dist/src/coins/bscTokens.js +136 -0
- package/dist/src/coins/erc20Coins.d.ts +2 -0
- package/dist/src/coins/erc20Coins.d.ts.map +1 -0
- package/dist/src/coins/erc20Coins.js +1349 -0
- package/dist/src/coins/ofcCoins.d.ts +2 -0
- package/dist/src/coins/ofcCoins.d.ts.map +1 -0
- package/dist/src/coins/ofcCoins.js +264 -0
- package/dist/src/coins/ofcErc20Coins.d.ts +3 -0
- package/dist/src/coins/ofcErc20Coins.d.ts.map +1 -0
- package/dist/src/coins/ofcErc20Coins.js +1277 -0
- package/dist/src/coins/polygonTokens.d.ts +2 -0
- package/dist/src/coins/polygonTokens.d.ts.map +1 -0
- package/dist/src/coins/polygonTokens.js +136 -0
- package/dist/src/coins/sip10Tokens.d.ts +2 -0
- package/dist/src/coins/sip10Tokens.d.ts.map +1 -0
- package/dist/src/coins/sip10Tokens.js +13 -0
- package/dist/src/coins/solTokens.d.ts +2 -0
- package/dist/src/coins/solTokens.d.ts.map +1 -0
- package/dist/src/coins/solTokens.js +330 -0
- package/dist/src/coins.d.ts +2 -1
- package/dist/src/coins.d.ts.map +1 -1
- package/dist/src/coins.js +500 -1504
- package/dist/src/constants.d.ts +1 -0
- package/dist/src/constants.d.ts.map +1 -1
- package/dist/src/constants.js +3 -2
- package/dist/src/gatekeep.d.ts +2 -0
- package/dist/src/gatekeep.d.ts.map +1 -0
- package/dist/src/gatekeep.js +1794 -0
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +16 -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 +46 -3
- package/dist/src/networks.d.ts +502 -1
- package/dist/src/networks.d.ts.map +1 -1
- package/dist/src/networks.js +669 -44
- package/dist/src/ofc.d.ts +279 -0
- package/dist/src/ofc.d.ts.map +1 -1
- package/dist/src/ofc.js +583 -14
- package/dist/src/tokenConfig.d.ts +107 -14
- package/dist/src/tokenConfig.d.ts.map +1 -1
- package/dist/src/tokenConfig.js +267 -115
- package/dist/src/utxo.d.ts +3 -1
- package/dist/src/utxo.d.ts.map +1 -1
- package/dist/src/utxo.js +77 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/src/account.d.ts
CHANGED
|
@@ -24,11 +24,16 @@ export interface AccountConstructorOptions {
|
|
|
24
24
|
*/
|
|
25
25
|
export declare class AccountCoin extends BaseCoin {
|
|
26
26
|
static readonly DEFAULT_FEATURES: CoinFeature[];
|
|
27
|
+
static readonly DEFAULT_FEATURES_EXCLUDE_SINGAPORE: (CoinFeature.EVM_WALLET | CoinFeature.METAMASK_INSTITUTIONAL | CoinFeature.VALUELESS_TRANSFER | CoinFeature.TRANSACTION_DATA | CoinFeature.REQUIRES_BIG_NUMBER | CoinFeature.REQUIRES_KRS_BACKUP_KEY | CoinFeature.PAYGO | CoinFeature.UNSPENT_MODEL | CoinFeature.LIGHTNING_MODEL | CoinFeature.ACCOUNT_MODEL | CoinFeature.CHILD_PAYS_FOR_PARENT | CoinFeature.SUPPORTS_TOKENS | CoinFeature.ENTERPRISE_PAYS_FEES | CoinFeature.REQUIRES_RESERVE | CoinFeature.CUSTODY | CoinFeature.TSS | CoinFeature.STAKING | CoinFeature.LIQUID_STAKING | CoinFeature.DEPRECATED | CoinFeature.GENERIC_TOKEN | CoinFeature.CUSTODY_BITGO_TRUST | CoinFeature.CUSTODY_BITGO_NEW_YORK | CoinFeature.CUSTODY_BITGO_GERMANY | CoinFeature.CUSTODY_BITGO_SWITZERLAND | CoinFeature.CUSTODY_BITGO_FRANKFURT | CoinFeature.CUSTODY_BITGO_SISTER_TRUST_ONE | CoinFeature.CUSTODY_BITGO_KOREA | CoinFeature.CUSTODY_BITGO_EUROPE_APS | CoinFeature.CUSTODY_BITGO_MENA_FZE | CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE | CoinFeature.EXPIRING_TRANSACTIONS | CoinFeature.MULTISIG_COLD | CoinFeature.TSS_COLD | CoinFeature.SHA256_WITH_ECDSA_TSS | CoinFeature.COSMOS_LIKE_COINS | CoinFeature.REBUILD_ON_CUSTODY_SIGNING | CoinFeature.INCREASED_TX_REQUEST_REBUILD_LIMIT | CoinFeature.BULK_TRANSACTION | CoinFeature.DISTRIBUTED_CUSTODY | CoinFeature.BULK_STAKING_TRANSACTION | CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA | CoinFeature.MPCV2 | CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS | CoinFeature.STUCK_TRANSACTION_MANAGEMENT_ONCHAIN | CoinFeature.ETH_ROLLUP_CHAIN | CoinFeature.EIP1559 | CoinFeature.TSS_ENTERPRISE_PAYS_FEES | CoinFeature.ALPHANUMERIC_MEMO_ID | CoinFeature.WALLET_CONNECT_DEFI)[];
|
|
27
28
|
readonly network: AccountNetwork;
|
|
28
29
|
constructor(options: AccountConstructorOptions);
|
|
29
30
|
protected requiredFeatures(): Set<CoinFeature>;
|
|
30
31
|
protected disallowedFeatures(): Set<CoinFeature>;
|
|
31
32
|
}
|
|
33
|
+
export interface GasTankAccountConstructorOptions extends AccountConstructorOptions {
|
|
34
|
+
gasTankLowBalanceAlertFactor: number;
|
|
35
|
+
gasTankMinBalanceRecommendationFactor: number;
|
|
36
|
+
}
|
|
32
37
|
export interface Erc20ConstructorOptions extends AccountConstructorOptions {
|
|
33
38
|
contractAddress: string;
|
|
34
39
|
}
|
|
@@ -41,15 +46,15 @@ export interface HederaCoinConstructorOptions extends AccountConstructorOptions
|
|
|
41
46
|
export interface HederaTokenConstructorOptions extends AccountConstructorOptions {
|
|
42
47
|
nodeAccountId: string;
|
|
43
48
|
tokenId: string;
|
|
44
|
-
|
|
45
|
-
export interface AlgoCoinConstructorOptions extends AccountConstructorOptions {
|
|
46
|
-
tokenURL: string;
|
|
49
|
+
contractAddress: string;
|
|
47
50
|
}
|
|
48
51
|
export interface EosCoinConstructorOptions extends AccountConstructorOptions {
|
|
49
52
|
contractName: string;
|
|
53
|
+
contractAddress: string;
|
|
50
54
|
}
|
|
51
55
|
export interface SolCoinConstructorOptions extends AccountConstructorOptions {
|
|
52
56
|
tokenAddress: string;
|
|
57
|
+
contractAddress: string;
|
|
53
58
|
}
|
|
54
59
|
export interface AdaCoinConstructorOptions extends AccountConstructorOptions {
|
|
55
60
|
policyId: string;
|
|
@@ -59,17 +64,35 @@ export interface XrpCoinConstructorOptions extends AccountConstructorOptions {
|
|
|
59
64
|
issuerAddress: string;
|
|
60
65
|
currencyCode: string;
|
|
61
66
|
domain: string;
|
|
67
|
+
contractAddress: string;
|
|
68
|
+
}
|
|
69
|
+
export interface SuiCoinConstructorOptions extends AccountConstructorOptions {
|
|
70
|
+
packageId: string;
|
|
71
|
+
module: string;
|
|
72
|
+
symbol: string;
|
|
73
|
+
contractAddress: string;
|
|
74
|
+
}
|
|
75
|
+
export interface AptCoinConstructorOptions extends AccountConstructorOptions {
|
|
76
|
+
assetId: string;
|
|
62
77
|
}
|
|
63
|
-
|
|
78
|
+
type FiatCoinName = `fiat${string}` | `tfiat${string}`;
|
|
64
79
|
export interface FiatCoinConstructorOptions extends AccountConstructorOptions {
|
|
65
80
|
name: FiatCoinName;
|
|
66
81
|
}
|
|
82
|
+
export interface Sip10TokenConstructorOptions extends AccountConstructorOptions {
|
|
83
|
+
assetId: string;
|
|
84
|
+
}
|
|
67
85
|
export interface ContractAddress extends String {
|
|
68
86
|
__contractaddress_phantom__: never;
|
|
69
87
|
}
|
|
70
88
|
export declare class AccountCoinToken extends AccountCoin {
|
|
71
89
|
constructor(options: AccountConstructorOptions);
|
|
72
90
|
}
|
|
91
|
+
export declare class GasTankAccountCoin extends AccountCoin {
|
|
92
|
+
gasTankLowBalanceAlertFactor: number;
|
|
93
|
+
gasTankMinBalanceRecommendationFactor: number;
|
|
94
|
+
constructor(options: GasTankAccountConstructorOptions);
|
|
95
|
+
}
|
|
73
96
|
/**
|
|
74
97
|
* Some blockchains support tokens which are defined by an address at which they have a smart contract deployed.
|
|
75
98
|
* Examples are ERC20 tokens, and the equivalent on other chains.
|
|
@@ -155,6 +178,7 @@ export declare class HederaCoin extends AccountCoinToken {
|
|
|
155
178
|
export declare class HederaToken extends AccountCoinToken {
|
|
156
179
|
nodeAccountId: string;
|
|
157
180
|
tokenId: string;
|
|
181
|
+
contractAddress: string;
|
|
158
182
|
constructor(options: HederaTokenConstructorOptions);
|
|
159
183
|
}
|
|
160
184
|
/**
|
|
@@ -164,8 +188,7 @@ export declare class HederaToken extends AccountCoinToken {
|
|
|
164
188
|
*
|
|
165
189
|
*/
|
|
166
190
|
export declare class AlgoCoin extends AccountCoinToken {
|
|
167
|
-
|
|
168
|
-
constructor(options: AlgoCoinConstructorOptions);
|
|
191
|
+
constructor(options: AccountConstructorOptions);
|
|
169
192
|
}
|
|
170
193
|
/**
|
|
171
194
|
* The Eos network supports tokens
|
|
@@ -175,6 +198,7 @@ export declare class AlgoCoin extends AccountCoinToken {
|
|
|
175
198
|
*/
|
|
176
199
|
export declare class EosCoin extends AccountCoinToken {
|
|
177
200
|
contractName: string;
|
|
201
|
+
contractAddress: string;
|
|
178
202
|
constructor(options: EosCoinConstructorOptions);
|
|
179
203
|
}
|
|
180
204
|
/**
|
|
@@ -185,6 +209,7 @@ export declare class EosCoin extends AccountCoinToken {
|
|
|
185
209
|
*/
|
|
186
210
|
export declare class SolCoin extends AccountCoinToken {
|
|
187
211
|
tokenAddress: string;
|
|
212
|
+
contractAddress: string;
|
|
188
213
|
constructor(options: SolCoinConstructorOptions);
|
|
189
214
|
}
|
|
190
215
|
/**
|
|
@@ -211,6 +236,34 @@ export declare class AvaxERC20Token extends ContractAddressDefinedToken {
|
|
|
211
236
|
export declare class PolygonERC20Token extends ContractAddressDefinedToken {
|
|
212
237
|
constructor(options: Erc20ConstructorOptions);
|
|
213
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* The Arbitrum Chain network support tokens
|
|
241
|
+
* Arbitrum Chain Tokens are ERC20 tokens
|
|
242
|
+
*/
|
|
243
|
+
export declare class ArbethERC20Token extends ContractAddressDefinedToken {
|
|
244
|
+
constructor(options: Erc20ConstructorOptions);
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* The Optimism Chain network support tokens
|
|
248
|
+
* Optimism Chain Tokens are ERC20 tokens
|
|
249
|
+
*/
|
|
250
|
+
export declare class OpethERC20Token extends ContractAddressDefinedToken {
|
|
251
|
+
constructor(options: Erc20ConstructorOptions);
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* The zkSync network support tokens
|
|
255
|
+
* zkSync Tokens are ERC20 tokens
|
|
256
|
+
*/
|
|
257
|
+
export declare class ZkethERC20Token extends ContractAddressDefinedToken {
|
|
258
|
+
constructor(options: Erc20ConstructorOptions);
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* The Bera Chain network support tokens
|
|
262
|
+
* Bera Chain Tokens are ERC20 tokens
|
|
263
|
+
*/
|
|
264
|
+
export declare class BeraERC20Token extends ContractAddressDefinedToken {
|
|
265
|
+
constructor(options: Erc20ConstructorOptions);
|
|
266
|
+
}
|
|
214
267
|
/**
|
|
215
268
|
* The Xrp network supports tokens
|
|
216
269
|
* Xrp tokens are identified by their issuer address
|
|
@@ -221,8 +274,26 @@ export declare class XrpCoin extends AccountCoinToken {
|
|
|
221
274
|
issuerAddress: string;
|
|
222
275
|
currencyCode: string;
|
|
223
276
|
domain: string;
|
|
277
|
+
contractAddress: string;
|
|
224
278
|
constructor(options: XrpCoinConstructorOptions);
|
|
225
279
|
}
|
|
280
|
+
export declare class SuiCoin extends AccountCoinToken {
|
|
281
|
+
packageId: string;
|
|
282
|
+
module: string;
|
|
283
|
+
symbol: string;
|
|
284
|
+
contractAddress: string;
|
|
285
|
+
constructor(options: SuiCoinConstructorOptions);
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* The Apt network supports tokens
|
|
289
|
+
* Apt tokens work similar to native Apt coin, but the token name is determined by
|
|
290
|
+
* the tokenAddress on the chain.
|
|
291
|
+
*
|
|
292
|
+
*/
|
|
293
|
+
export declare class AptCoin extends AccountCoinToken {
|
|
294
|
+
assetId: string;
|
|
295
|
+
constructor(options: AptCoinConstructorOptions);
|
|
296
|
+
}
|
|
226
297
|
/**
|
|
227
298
|
* Fiat currencies, such as USD, EUR, or YEN.
|
|
228
299
|
*/
|
|
@@ -233,6 +304,15 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
233
304
|
protected requiredFeatures(): Set<CoinFeature>;
|
|
234
305
|
protected disallowedFeatures(): Set<CoinFeature>;
|
|
235
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* The Stacks network supports tokens
|
|
309
|
+
* Stx tokens work similar to native Stx coin, but the token name is determined by
|
|
310
|
+
* the contractName on the chain.
|
|
311
|
+
*/
|
|
312
|
+
export declare class Sip10Token extends AccountCoinToken {
|
|
313
|
+
assetId: string;
|
|
314
|
+
constructor(options: Sip10TokenConstructorOptions);
|
|
315
|
+
}
|
|
236
316
|
/**
|
|
237
317
|
* Factory function for account coin instances.
|
|
238
318
|
*
|
|
@@ -249,6 +329,25 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
249
329
|
* @param isToken? Whether or not this account coin is a token of another coin
|
|
250
330
|
*/
|
|
251
331
|
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>;
|
|
332
|
+
/**
|
|
333
|
+
* Factory function for gas tank account coin instances.
|
|
334
|
+
*
|
|
335
|
+
* @param id uuid v4
|
|
336
|
+
* @param name unique identifier of the coin
|
|
337
|
+
* @param fullName Complete human-readable name of the coin
|
|
338
|
+
* @param network Network object for this coin
|
|
339
|
+
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
|
|
340
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
341
|
+
* @param baseUnit
|
|
342
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
343
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
344
|
+
* @param gasTankLowBalanceAlertFactor Low gas tank balance alert threshold = (feeEstimate x gasTankLowBalanceAlertFactor)
|
|
345
|
+
* @param gasTankMinBalanceRecommendationFactor Min gas tank balance recommendation = (feeEstimate x gasTankMinBalanceRecommendationFactor)
|
|
346
|
+
* @param prefix Optional coin prefix. Defaults to empty string
|
|
347
|
+
* @param suffix Optional coin suffix. Defaults to coin name.
|
|
348
|
+
* @param isToken Whether or not this account coin is a token of another coin
|
|
349
|
+
*/
|
|
350
|
+
export declare function gasTankAccount(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, gasTankLowBalanceAlertFactor?: number, gasTankMinBalanceRecommendationFactor?: number, prefix?: string, suffix?: string, isToken?: boolean): Readonly<GasTankAccountCoin>;
|
|
252
351
|
/**
|
|
253
352
|
* Factory function for erc20 token instances.
|
|
254
353
|
*
|
|
@@ -305,7 +404,7 @@ export declare function erc721(id: string, name: string, fullName: string, contr
|
|
|
305
404
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
306
405
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
307
406
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
308
|
-
* @param network? Optional token network. Defaults to
|
|
407
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
309
408
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
310
409
|
*/
|
|
311
410
|
export declare function terc721(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>;
|
|
@@ -349,7 +448,7 @@ export declare function erc1155(id: string, name: string, fullName: string, cont
|
|
|
349
448
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
350
449
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
351
450
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
352
|
-
* @param network? Optional token network. Defaults to
|
|
451
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
353
452
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
354
453
|
*/
|
|
355
454
|
export declare function terc1155(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>;
|
|
@@ -511,7 +610,7 @@ export declare function ttronToken(id: string, name: string, fullName: string, d
|
|
|
511
610
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
512
611
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
513
612
|
*/
|
|
514
|
-
export declare function hederaCoin(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset,
|
|
613
|
+
export declare function hederaCoin(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<HederaCoin>;
|
|
515
614
|
/**
|
|
516
615
|
* Factory function for Hedera token instances
|
|
517
616
|
*
|
|
@@ -522,13 +621,14 @@ export declare function hederaCoin(id: string, name: string, fullName: string, n
|
|
|
522
621
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
523
622
|
* @param nodeAccountId node account Id from which the transaction will be sent
|
|
524
623
|
* @param tokenId The unique identifier of this token
|
|
624
|
+
* @param contractAddress Contract address of this token, same as tokenId
|
|
525
625
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
526
626
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
527
627
|
* @param network? Optional token network. Defaults to Hedera mainnet.
|
|
528
628
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
529
629
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
530
630
|
*/
|
|
531
|
-
export declare function hederaToken(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset,
|
|
631
|
+
export declare function hederaToken(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, tokenId: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<HederaToken>;
|
|
532
632
|
/**
|
|
533
633
|
* Factory function for ALGO token instances.
|
|
534
634
|
*
|
|
@@ -539,7 +639,6 @@ export declare function hederaToken(id: string, name: string, fullName: string,
|
|
|
539
639
|
* @param fullName Complete human-readable name of the token
|
|
540
640
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
541
641
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
542
|
-
* @param tokenURL Optional asset Url for more informationa about the asset
|
|
543
642
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
544
643
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
545
644
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -547,7 +646,7 @@ export declare function hederaToken(id: string, name: string, fullName: string,
|
|
|
547
646
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
548
647
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
549
648
|
*/
|
|
550
|
-
export declare function algoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset,
|
|
649
|
+
export declare function algoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AlgoCoin>;
|
|
551
650
|
/**
|
|
552
651
|
* Factory function for testnet ALGO token instances.
|
|
553
652
|
*
|
|
@@ -557,14 +656,13 @@ export declare function algoToken(id: string, name: string, alias: string | unde
|
|
|
557
656
|
* @param fullName Complete human-readable name of the token
|
|
558
657
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
559
658
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
560
|
-
* @param tokenURL Optional asset Url for more informationa about the asset
|
|
561
659
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
562
660
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
563
661
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
564
662
|
* @param network? Optional token network. Defaults to Algo testnet.
|
|
565
663
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
566
664
|
*/
|
|
567
|
-
export declare function talgoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset,
|
|
665
|
+
export declare function talgoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<AlgoCoin>;
|
|
568
666
|
/**
|
|
569
667
|
* Factory function for eos token instances.
|
|
570
668
|
*
|
|
@@ -573,6 +671,7 @@ export declare function talgoToken(id: string, name: string, alias: string | und
|
|
|
573
671
|
* @param fullName Complete human-readable name of the token
|
|
574
672
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
575
673
|
* @param contractName Contract address of this token
|
|
674
|
+
* @param contractAddress Contract address of this token
|
|
576
675
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
577
676
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
578
677
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -580,7 +679,7 @@ export declare function talgoToken(id: string, name: string, alias: string | und
|
|
|
580
679
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
581
680
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
582
681
|
*/
|
|
583
|
-
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>;
|
|
682
|
+
export declare function eosToken(id: string, name: string, fullName: string, decimalPlaces: number, contractName: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<EosCoin>;
|
|
584
683
|
/**
|
|
585
684
|
* Factory function for testnet eos token instances.
|
|
586
685
|
*
|
|
@@ -588,6 +687,7 @@ export declare function eosToken(id: string, name: string, fullName: string, dec
|
|
|
588
687
|
* @param name unique identifier of the token
|
|
589
688
|
* @param fullName Complete human-readable name of the token
|
|
590
689
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
690
|
+
* @param contractName Contract address of this token
|
|
591
691
|
* @param contractAddress Contract address of this token
|
|
592
692
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
593
693
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -595,7 +695,7 @@ export declare function eosToken(id: string, name: string, fullName: string, dec
|
|
|
595
695
|
* @param network? Optional token network. Defaults to the testnet EOS network.
|
|
596
696
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
597
697
|
*/
|
|
598
|
-
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>;
|
|
698
|
+
export declare function teosToken(id: string, name: string, fullName: string, decimalPlaces: number, contractName: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<EosCoin>;
|
|
599
699
|
/**
|
|
600
700
|
* Factory function for sol token instances.
|
|
601
701
|
*
|
|
@@ -604,6 +704,7 @@ export declare function teosToken(id: string, name: string, fullName: string, de
|
|
|
604
704
|
* @param fullName Complete human-readable name of the token
|
|
605
705
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
606
706
|
* @param tokenAddress Token address of this token
|
|
707
|
+
* @param contractAddress Contract address of this token
|
|
607
708
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
608
709
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
609
710
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -611,7 +712,7 @@ export declare function teosToken(id: string, name: string, fullName: string, de
|
|
|
611
712
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
612
713
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
613
714
|
*/
|
|
614
|
-
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>;
|
|
715
|
+
export declare function solToken(id: string, name: string, fullName: string, decimalPlaces: number, tokenAddress: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<SolCoin>;
|
|
615
716
|
/**
|
|
616
717
|
* Factory function for testnet solana token instances.
|
|
617
718
|
*
|
|
@@ -626,7 +727,7 @@ export declare function solToken(id: string, name: string, fullName: string, dec
|
|
|
626
727
|
* @param network? Optional token network. Defaults to the testnet Solana network.
|
|
627
728
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
628
729
|
*/
|
|
629
|
-
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>;
|
|
730
|
+
export declare function tsolToken(id: string, name: string, fullName: string, decimalPlaces: number, tokenAddress: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<SolCoin>;
|
|
630
731
|
/**
|
|
631
732
|
* Factory function for ada token instances.
|
|
632
733
|
*
|
|
@@ -707,7 +808,7 @@ export declare function tavaxErc20(id: string, name: string, fullName: string, d
|
|
|
707
808
|
*/
|
|
708
809
|
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>;
|
|
709
810
|
/**
|
|
710
|
-
* Factory function for
|
|
811
|
+
* Factory function for Amoy testnet polygonErc20 token instances.
|
|
711
812
|
*
|
|
712
813
|
* @param id uuid v4
|
|
713
814
|
* @param name unique identifier of the token
|
|
@@ -722,6 +823,134 @@ export declare function polygonErc20(id: string, name: string, fullName: string,
|
|
|
722
823
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
723
824
|
*/
|
|
724
825
|
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>;
|
|
826
|
+
/**
|
|
827
|
+
* Factory function for arbethErc20 token instances.
|
|
828
|
+
*
|
|
829
|
+
* @param id uuid v4
|
|
830
|
+
* @param name unique identifier of the token
|
|
831
|
+
* @param fullName Complete human-readable name of the token
|
|
832
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
833
|
+
* @param contractAddress Contract address of this token
|
|
834
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
835
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
836
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
837
|
+
* @param network? Optional token network. Defaults to Arbitrum main network.
|
|
838
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
839
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
840
|
+
*/
|
|
841
|
+
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>;
|
|
842
|
+
/**
|
|
843
|
+
* Factory function for Arbitrum Sepolia testnet arbethErc20 token instances.
|
|
844
|
+
*
|
|
845
|
+
* @param id uuid v4
|
|
846
|
+
* @param name unique identifier of the token
|
|
847
|
+
* @param fullName Complete human-readable name of the token
|
|
848
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
849
|
+
* @param contractAddress Contract address of this token
|
|
850
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
851
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
852
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
853
|
+
* @param network? Optional token network. Defaults to the Arbitrum test network.
|
|
854
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
855
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
856
|
+
*/
|
|
857
|
+
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>;
|
|
858
|
+
/**
|
|
859
|
+
* Factory function for opethErc20 token instances.
|
|
860
|
+
*
|
|
861
|
+
* @param id uuid v4
|
|
862
|
+
* @param name unique identifier of the token
|
|
863
|
+
* @param fullName Complete human-readable name of the token
|
|
864
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
865
|
+
* @param contractAddress Contract address of this token
|
|
866
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
867
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
868
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
869
|
+
* @param network? Optional token network. Defaults to Optimism main network.
|
|
870
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
871
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
872
|
+
*/
|
|
873
|
+
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>;
|
|
874
|
+
/**
|
|
875
|
+
* Factory function for Optimism Sepolia testnet opethErc20 token instances.
|
|
876
|
+
*
|
|
877
|
+
* @param id uuid v4
|
|
878
|
+
* @param name unique identifier of the token
|
|
879
|
+
* @param fullName Complete human-readable name of the token
|
|
880
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
881
|
+
* @param contractAddress Contract address of this token
|
|
882
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
883
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
884
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
885
|
+
* @param network? Optional token network. Defaults to the Optimism test network.
|
|
886
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
887
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
888
|
+
*/
|
|
889
|
+
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>;
|
|
890
|
+
/**
|
|
891
|
+
* Factory function for zkethErc20 token instances.
|
|
892
|
+
*
|
|
893
|
+
* @param id uuid v4
|
|
894
|
+
* @param name unique identifier of the token
|
|
895
|
+
* @param fullName Complete human-readable name of the token
|
|
896
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
897
|
+
* @param contractAddress Contract address of this token
|
|
898
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
899
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
900
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
901
|
+
* @param network? Optional token network. Defaults to zkSync mainnet network.
|
|
902
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
903
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
904
|
+
*/
|
|
905
|
+
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>;
|
|
906
|
+
/**
|
|
907
|
+
* Factory function for zkSync Sepolia testnet zkethErc20 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 contractAddress Contract address of this token
|
|
914
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
915
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
916
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
917
|
+
* @param network? Optional token network. Defaults to the zkSync sepolia test network.
|
|
918
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
919
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
920
|
+
*/
|
|
921
|
+
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>;
|
|
922
|
+
/**
|
|
923
|
+
* Factory function for beraErc20 token instances.
|
|
924
|
+
*
|
|
925
|
+
* @param id uuid v4
|
|
926
|
+
* @param name unique identifier of the token
|
|
927
|
+
* @param fullName Complete human-readable name of the token
|
|
928
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
929
|
+
* @param contractAddress Contract address of this token
|
|
930
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
931
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
932
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
933
|
+
* @param network? Optional token network. Defaults to bera mainnet network.
|
|
934
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
935
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
936
|
+
*/
|
|
937
|
+
export declare function beraErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<BeraERC20Token>;
|
|
938
|
+
/**
|
|
939
|
+
* Factory function for zkSync Sepolia testnet beraErc20 token instances.
|
|
940
|
+
*
|
|
941
|
+
* @param id uuid v4
|
|
942
|
+
* @param name unique identifier of the token
|
|
943
|
+
* @param fullName Complete human-readable name of the token
|
|
944
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
945
|
+
* @param contractAddress Contract address of this token
|
|
946
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
947
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
948
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
949
|
+
* @param network? Optional token network. Defaults to the bera test network.
|
|
950
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
951
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
952
|
+
*/
|
|
953
|
+
export declare function tberaErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<BeraERC20Token>;
|
|
725
954
|
/**
|
|
726
955
|
* Factory function for xrp token instances.
|
|
727
956
|
*
|
|
@@ -731,6 +960,7 @@ export declare function tpolygonErc20(id: string, name: string, fullName: string
|
|
|
731
960
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
732
961
|
* @param issuerAddress: The address of the issuer of the token,
|
|
733
962
|
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
963
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
734
964
|
* @param domain? the domain of the issuer of the token,
|
|
735
965
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
736
966
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -739,7 +969,7 @@ export declare function tpolygonErc20(id: string, name: string, fullName: string
|
|
|
739
969
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
740
970
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
741
971
|
*/
|
|
742
|
-
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>;
|
|
972
|
+
export declare function xrpToken(id: string, name: string, fullName: string, decimalPlaces: number, issuerAddress: string, currencyCode: string, contractAddress: string, domain: string | undefined, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<XrpCoin>;
|
|
743
973
|
/**
|
|
744
974
|
* Factory function for testnet cardano token instances.
|
|
745
975
|
*
|
|
@@ -749,6 +979,7 @@ export declare function xrpToken(id: string, name: string, fullName: string, dec
|
|
|
749
979
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
750
980
|
* @param issuerAddress: The address of the issuer of the token,
|
|
751
981
|
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
982
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
752
983
|
* @param domain? the domain of the issuer of the token,
|
|
753
984
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
754
985
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -756,7 +987,77 @@ export declare function xrpToken(id: string, name: string, fullName: string, dec
|
|
|
756
987
|
* @param network? Optional token network. Defaults to the testnet Cardano network.
|
|
757
988
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
758
989
|
*/
|
|
759
|
-
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>;
|
|
990
|
+
export declare function txrpToken(id: string, name: string, fullName: string, decimalPlaces: number, issuerAddress: string, currencyCode: string, contractAddress: string, domain: string | undefined, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<XrpCoin>;
|
|
991
|
+
/**
|
|
992
|
+
* Factory function for sui token instances.
|
|
993
|
+
*
|
|
994
|
+
* @param id uuid v4
|
|
995
|
+
* @param name unique identifier of the token
|
|
996
|
+
* @param fullName Complete human-readable name of the token
|
|
997
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
998
|
+
* @param packageId PackageId of this token
|
|
999
|
+
* @param module The module of the package with id `packageId`
|
|
1000
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
1001
|
+
* @param contractAddress Contract address of this token formed with `packageId::module::symbol`
|
|
1002
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1003
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1004
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1005
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1006
|
+
* @param network? Optional token network. Defaults to SUI main network.
|
|
1007
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1008
|
+
*/
|
|
1009
|
+
export declare function suiToken(id: string, name: string, fullName: string, decimalPlaces: number, packageId: string, module: string, symbol: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<SuiCoin>;
|
|
1010
|
+
/**
|
|
1011
|
+
* Factory function for testnet sui token instances.
|
|
1012
|
+
*
|
|
1013
|
+
* @param id uuid v4
|
|
1014
|
+
* @param name unique identifier of the token
|
|
1015
|
+
* @param fullName Complete human-readable name of the token
|
|
1016
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1017
|
+
* @param packageId PackageId of this token
|
|
1018
|
+
* @param module The module of the package with id `packageId`
|
|
1019
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
1020
|
+
* @param contractAddress Contract address of this token formed with `packageId::module::symbol`
|
|
1021
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1022
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1023
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1024
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1025
|
+
* @param network? Optional token network. Defaults to SUI test network.
|
|
1026
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1027
|
+
*/
|
|
1028
|
+
export declare function tsuiToken(id: string, name: string, fullName: string, decimalPlaces: number, packageId: string, module: string, symbol: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<SuiCoin>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Factory function for apt token instances.
|
|
1031
|
+
*
|
|
1032
|
+
* @param id uuid v4
|
|
1033
|
+
* @param name unique identifier of the token
|
|
1034
|
+
* @param fullName Complete human-readable name of the token
|
|
1035
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1036
|
+
* @param assetId Asset Id of this token i.e. the unique identifier of the token for all tokens - fungible, non-fungible and legacy
|
|
1037
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1038
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1039
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1040
|
+
* @param network Optional token network. Defaults to APT main network.
|
|
1041
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1042
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1043
|
+
*/
|
|
1044
|
+
export declare function aptToken(id: string, name: string, fullName: string, decimalPlaces: number, assetId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AptCoin>;
|
|
1045
|
+
/**
|
|
1046
|
+
* Factory function for testnet apt token instances.
|
|
1047
|
+
*
|
|
1048
|
+
* @param id uuid v4
|
|
1049
|
+
* @param name unique identifier of the token
|
|
1050
|
+
* @param fullName Complete human-readable name of the token
|
|
1051
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1052
|
+
* @param assetId Asset Id of this token i.e. the unique identifier of the token for all tokens - fungible, non-fungible and legacy
|
|
1053
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1054
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1055
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1056
|
+
* @param network Optional token network. Defaults to the testnet APT network.
|
|
1057
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1058
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1059
|
+
*/
|
|
1060
|
+
export declare function taptToken(id: string, name: string, fullName: string, decimalPlaces: number, assetId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AptCoin>;
|
|
760
1061
|
/**
|
|
761
1062
|
* Factory function for fiat coin instances.
|
|
762
1063
|
*
|
|
@@ -773,5 +1074,36 @@ export declare function txrpToken(id: string, name: string, fullName: string, de
|
|
|
773
1074
|
* @param isToken? Whether or not this coin is a token of another coin
|
|
774
1075
|
*/
|
|
775
1076
|
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>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Factory function for sip10 token instances.
|
|
1079
|
+
*
|
|
1080
|
+
* @param id uuid v4
|
|
1081
|
+
* @param name unique identifier of the token
|
|
1082
|
+
* @param fullName Complete human-readable name of the token
|
|
1083
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1084
|
+
* @param assetId A unique identifier for a token, which is in the form of contractAddress.contractName::tokenName
|
|
1085
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1086
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1087
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1088
|
+
* @param network? Optional token network. Defaults to Stacks main network.
|
|
1089
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1090
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1091
|
+
*/
|
|
1092
|
+
export declare function sip10Token(id: string, name: string, fullName: string, decimalPlaces: number, assetId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<Sip10Token>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Factory function for testnet sip10 token instances.
|
|
1095
|
+
*
|
|
1096
|
+
* @param id uuid v4
|
|
1097
|
+
* @param name unique identifier of the token
|
|
1098
|
+
* @param fullName Complete human-readable name of the token
|
|
1099
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1100
|
+
* @param assetId A unique identifier for a token, which is in the form of contractAddress.contractName::tokenName
|
|
1101
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1102
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1103
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1104
|
+
* @param network? Optional token network. Defaults to the testnet Stacks network.
|
|
1105
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1106
|
+
*/
|
|
1107
|
+
export declare function tsip10Token(id: string, name: string, fullName: string, decimalPlaces: number, assetId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<Sip10Token>;
|
|
776
1108
|
export {};
|
|
777
1109
|
//# sourceMappingURL=account.d.ts.map
|