@bitgo-beta/statics 15.1.1-beta.89 → 15.1.1-beta.890
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 +2756 -0
- package/dist/src/account.d.ts +439 -21
- package/dist/src/account.d.ts.map +1 -1
- package/dist/src/account.js +750 -107
- package/dist/src/ada.d.ts.map +1 -1
- package/dist/src/ada.js +6 -3
- package/dist/src/avaxp.d.ts.map +1 -1
- package/dist/src/avaxp.js +7 -3
- package/dist/src/base.d.ts +1387 -40
- package/dist/src/base.d.ts.map +1 -1
- package/dist/src/base.js +1438 -50
- package/dist/src/coinFeatures.d.ts +80 -0
- package/dist/src/coinFeatures.d.ts.map +1 -0
- package/dist/src/coinFeatures.js +480 -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 +96 -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 +139 -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 +1388 -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 +457 -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 +1305 -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 +137 -0
- package/dist/src/coins/sip10Tokens.d.ts +2 -0
- package/dist/src/coins/sip10Tokens.d.ts.map +1 -0
- package/dist/src/coins/sip10Tokens.js +25 -0
- package/dist/src/coins/solTokens.d.ts +2 -0
- package/dist/src/coins/solTokens.d.ts.map +1 -0
- package/dist/src/coins/solTokens.js +334 -0
- package/dist/src/coins.d.ts +10 -1
- package/dist/src/coins.d.ts.map +1 -1
- package/dist/src/coins.js +623 -1512
- 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 +1825 -0
- package/dist/src/index.d.ts +4 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +20 -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 +4 -0
- package/dist/src/map.d.ts.map +1 -1
- package/dist/src/map.js +93 -19
- package/dist/src/networkFeatureMapForTokens.d.ts +3 -0
- package/dist/src/networkFeatureMapForTokens.d.ts.map +1 -0
- package/dist/src/networkFeatureMapForTokens.js +29 -0
- package/dist/src/networks.d.ts +646 -1
- package/dist/src/networks.d.ts.map +1 -1
- package/dist/src/networks.js +874 -44
- package/dist/src/ofc.d.ts +349 -0
- package/dist/src/ofc.d.ts.map +1 -1
- package/dist/src/ofc.js +724 -14
- package/dist/src/tokenConfig.d.ts +135 -14
- package/dist/src/tokenConfig.d.ts.map +1 -1
- package/dist/src/tokenConfig.js +321 -115
- package/dist/src/utxo.d.ts +3 -1
- package/dist/src/utxo.d.ts.map +1 -1
- package/dist/src/utxo.js +78 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/src/account.d.ts
CHANGED
|
@@ -24,14 +24,23 @@ 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.ERC20_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 | CoinFeature.TSS_SUPPORT_GATED | CoinFeature.SHARED_EVM_SIGNING | CoinFeature.MULTISIG)[];
|
|
27
28
|
readonly network: AccountNetwork;
|
|
28
29
|
constructor(options: AccountConstructorOptions);
|
|
29
30
|
protected requiredFeatures(): Set<CoinFeature>;
|
|
30
31
|
protected disallowedFeatures(): Set<CoinFeature>;
|
|
32
|
+
static getFeaturesExcluding(excludedFeatures: CoinFeature[]): CoinFeature[];
|
|
33
|
+
}
|
|
34
|
+
export interface GasTankAccountConstructorOptions extends AccountConstructorOptions {
|
|
35
|
+
gasTankLowBalanceAlertFactor: number;
|
|
36
|
+
gasTankMinBalanceRecommendationFactor: number;
|
|
31
37
|
}
|
|
32
38
|
export interface Erc20ConstructorOptions extends AccountConstructorOptions {
|
|
33
39
|
contractAddress: string;
|
|
34
40
|
}
|
|
41
|
+
export interface NFTCollectionIdConstructorOptions extends AccountConstructorOptions {
|
|
42
|
+
nftCollectionId: string;
|
|
43
|
+
}
|
|
35
44
|
export interface StellarCoinConstructorOptions extends AccountConstructorOptions {
|
|
36
45
|
domain: string;
|
|
37
46
|
}
|
|
@@ -41,15 +50,15 @@ export interface HederaCoinConstructorOptions extends AccountConstructorOptions
|
|
|
41
50
|
export interface HederaTokenConstructorOptions extends AccountConstructorOptions {
|
|
42
51
|
nodeAccountId: string;
|
|
43
52
|
tokenId: string;
|
|
44
|
-
|
|
45
|
-
export interface AlgoCoinConstructorOptions extends AccountConstructorOptions {
|
|
46
|
-
tokenURL: string;
|
|
53
|
+
contractAddress: string;
|
|
47
54
|
}
|
|
48
55
|
export interface EosCoinConstructorOptions extends AccountConstructorOptions {
|
|
49
56
|
contractName: string;
|
|
57
|
+
contractAddress: string;
|
|
50
58
|
}
|
|
51
59
|
export interface SolCoinConstructorOptions extends AccountConstructorOptions {
|
|
52
60
|
tokenAddress: string;
|
|
61
|
+
contractAddress: string;
|
|
53
62
|
}
|
|
54
63
|
export interface AdaCoinConstructorOptions extends AccountConstructorOptions {
|
|
55
64
|
policyId: string;
|
|
@@ -59,17 +68,35 @@ export interface XrpCoinConstructorOptions extends AccountConstructorOptions {
|
|
|
59
68
|
issuerAddress: string;
|
|
60
69
|
currencyCode: string;
|
|
61
70
|
domain: string;
|
|
71
|
+
contractAddress: string;
|
|
72
|
+
}
|
|
73
|
+
export interface SuiCoinConstructorOptions extends AccountConstructorOptions {
|
|
74
|
+
packageId: string;
|
|
75
|
+
module: string;
|
|
76
|
+
symbol: string;
|
|
77
|
+
contractAddress: string;
|
|
62
78
|
}
|
|
63
|
-
|
|
79
|
+
export interface AptCoinConstructorOptions extends AccountConstructorOptions {
|
|
80
|
+
assetId: string;
|
|
81
|
+
}
|
|
82
|
+
type FiatCoinName = `fiat${string}` | `tfiat${string}`;
|
|
64
83
|
export interface FiatCoinConstructorOptions extends AccountConstructorOptions {
|
|
65
84
|
name: FiatCoinName;
|
|
66
85
|
}
|
|
86
|
+
export interface Sip10TokenConstructorOptions extends AccountConstructorOptions {
|
|
87
|
+
assetId: string;
|
|
88
|
+
}
|
|
67
89
|
export interface ContractAddress extends String {
|
|
68
90
|
__contractaddress_phantom__: never;
|
|
69
91
|
}
|
|
70
92
|
export declare class AccountCoinToken extends AccountCoin {
|
|
71
93
|
constructor(options: AccountConstructorOptions);
|
|
72
94
|
}
|
|
95
|
+
export declare class GasTankAccountCoin extends AccountCoin {
|
|
96
|
+
gasTankLowBalanceAlertFactor: number;
|
|
97
|
+
gasTankMinBalanceRecommendationFactor: number;
|
|
98
|
+
constructor(options: GasTankAccountConstructorOptions);
|
|
99
|
+
}
|
|
73
100
|
/**
|
|
74
101
|
* Some blockchains support tokens which are defined by an address at which they have a smart contract deployed.
|
|
75
102
|
* Examples are ERC20 tokens, and the equivalent on other chains.
|
|
@@ -78,6 +105,13 @@ export declare class ContractAddressDefinedToken extends AccountCoinToken {
|
|
|
78
105
|
contractAddress: ContractAddress;
|
|
79
106
|
constructor(options: Erc20ConstructorOptions);
|
|
80
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* Used for blockchains that support NFT collections.
|
|
110
|
+
*/
|
|
111
|
+
export declare class NFTCollectionIdDefinedToken extends AccountCoinToken {
|
|
112
|
+
nftCollectionId: string;
|
|
113
|
+
constructor(options: NFTCollectionIdConstructorOptions);
|
|
114
|
+
}
|
|
81
115
|
/**
|
|
82
116
|
* ERC20 token addresses are Base58 formatted on some blockchains.
|
|
83
117
|
*/
|
|
@@ -155,6 +189,7 @@ export declare class HederaCoin extends AccountCoinToken {
|
|
|
155
189
|
export declare class HederaToken extends AccountCoinToken {
|
|
156
190
|
nodeAccountId: string;
|
|
157
191
|
tokenId: string;
|
|
192
|
+
contractAddress: string;
|
|
158
193
|
constructor(options: HederaTokenConstructorOptions);
|
|
159
194
|
}
|
|
160
195
|
/**
|
|
@@ -164,8 +199,7 @@ export declare class HederaToken extends AccountCoinToken {
|
|
|
164
199
|
*
|
|
165
200
|
*/
|
|
166
201
|
export declare class AlgoCoin extends AccountCoinToken {
|
|
167
|
-
|
|
168
|
-
constructor(options: AlgoCoinConstructorOptions);
|
|
202
|
+
constructor(options: AccountConstructorOptions);
|
|
169
203
|
}
|
|
170
204
|
/**
|
|
171
205
|
* The Eos network supports tokens
|
|
@@ -175,6 +209,7 @@ export declare class AlgoCoin extends AccountCoinToken {
|
|
|
175
209
|
*/
|
|
176
210
|
export declare class EosCoin extends AccountCoinToken {
|
|
177
211
|
contractName: string;
|
|
212
|
+
contractAddress: string;
|
|
178
213
|
constructor(options: EosCoinConstructorOptions);
|
|
179
214
|
}
|
|
180
215
|
/**
|
|
@@ -185,6 +220,7 @@ export declare class EosCoin extends AccountCoinToken {
|
|
|
185
220
|
*/
|
|
186
221
|
export declare class SolCoin extends AccountCoinToken {
|
|
187
222
|
tokenAddress: string;
|
|
223
|
+
contractAddress: string;
|
|
188
224
|
constructor(options: SolCoinConstructorOptions);
|
|
189
225
|
}
|
|
190
226
|
/**
|
|
@@ -211,6 +247,41 @@ export declare class AvaxERC20Token extends ContractAddressDefinedToken {
|
|
|
211
247
|
export declare class PolygonERC20Token extends ContractAddressDefinedToken {
|
|
212
248
|
constructor(options: Erc20ConstructorOptions);
|
|
213
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* The Arbitrum Chain network support tokens
|
|
252
|
+
* Arbitrum Chain Tokens are ERC20 tokens
|
|
253
|
+
*/
|
|
254
|
+
export declare class ArbethERC20Token extends ContractAddressDefinedToken {
|
|
255
|
+
constructor(options: Erc20ConstructorOptions);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* The Optimism Chain network support tokens
|
|
259
|
+
* Optimism Chain Tokens are ERC20 tokens
|
|
260
|
+
*/
|
|
261
|
+
export declare class OpethERC20Token extends ContractAddressDefinedToken {
|
|
262
|
+
constructor(options: Erc20ConstructorOptions);
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* The zkSync network support tokens
|
|
266
|
+
* zkSync Tokens are ERC20 tokens
|
|
267
|
+
*/
|
|
268
|
+
export declare class ZkethERC20Token extends ContractAddressDefinedToken {
|
|
269
|
+
constructor(options: Erc20ConstructorOptions);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* The Bera Chain network support tokens
|
|
273
|
+
* Bera Chain Tokens are ERC20 tokens
|
|
274
|
+
*/
|
|
275
|
+
export declare class BeraERC20Token extends ContractAddressDefinedToken {
|
|
276
|
+
constructor(options: Erc20ConstructorOptions);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* The Coredao Chain network support tokens
|
|
280
|
+
* Coredao Chain Tokens are ERC20 tokens
|
|
281
|
+
*/
|
|
282
|
+
export declare class CoredaoERC20Token extends ContractAddressDefinedToken {
|
|
283
|
+
constructor(options: Erc20ConstructorOptions);
|
|
284
|
+
}
|
|
214
285
|
/**
|
|
215
286
|
* The Xrp network supports tokens
|
|
216
287
|
* Xrp tokens are identified by their issuer address
|
|
@@ -221,8 +292,32 @@ export declare class XrpCoin extends AccountCoinToken {
|
|
|
221
292
|
issuerAddress: string;
|
|
222
293
|
currencyCode: string;
|
|
223
294
|
domain: string;
|
|
295
|
+
contractAddress: string;
|
|
224
296
|
constructor(options: XrpCoinConstructorOptions);
|
|
225
297
|
}
|
|
298
|
+
export declare class SuiCoin extends AccountCoinToken {
|
|
299
|
+
packageId: string;
|
|
300
|
+
module: string;
|
|
301
|
+
symbol: string;
|
|
302
|
+
contractAddress: string;
|
|
303
|
+
constructor(options: SuiCoinConstructorOptions);
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* The Apt network supports tokens
|
|
307
|
+
* Apt tokens work similar to native Apt coin, but the token name is determined by
|
|
308
|
+
* the tokenAddress on the chain.
|
|
309
|
+
*
|
|
310
|
+
*/
|
|
311
|
+
export declare class AptCoin extends AccountCoinToken {
|
|
312
|
+
assetId: string;
|
|
313
|
+
constructor(options: AptCoinConstructorOptions);
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* The Apt network supports non-fungible tokens (Digital Asset Standard)
|
|
317
|
+
* Every NFT belongs to an NFT collection.
|
|
318
|
+
*/
|
|
319
|
+
export declare class AptNFTCollection extends NFTCollectionIdDefinedToken {
|
|
320
|
+
}
|
|
226
321
|
/**
|
|
227
322
|
* Fiat currencies, such as USD, EUR, or YEN.
|
|
228
323
|
*/
|
|
@@ -233,6 +328,15 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
233
328
|
protected requiredFeatures(): Set<CoinFeature>;
|
|
234
329
|
protected disallowedFeatures(): Set<CoinFeature>;
|
|
235
330
|
}
|
|
331
|
+
/**
|
|
332
|
+
* The Stacks network supports tokens
|
|
333
|
+
* Stx tokens work similar to native Stx coin, but the token name is determined by
|
|
334
|
+
* the contractName on the chain.
|
|
335
|
+
*/
|
|
336
|
+
export declare class Sip10Token extends AccountCoinToken {
|
|
337
|
+
assetId: string;
|
|
338
|
+
constructor(options: Sip10TokenConstructorOptions);
|
|
339
|
+
}
|
|
236
340
|
/**
|
|
237
341
|
* Factory function for account coin instances.
|
|
238
342
|
*
|
|
@@ -249,6 +353,25 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
249
353
|
* @param isToken? Whether or not this account coin is a token of another coin
|
|
250
354
|
*/
|
|
251
355
|
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>;
|
|
356
|
+
/**
|
|
357
|
+
* Factory function for gas tank account coin instances.
|
|
358
|
+
*
|
|
359
|
+
* @param id uuid v4
|
|
360
|
+
* @param name unique identifier of the coin
|
|
361
|
+
* @param fullName Complete human-readable name of the coin
|
|
362
|
+
* @param network Network object for this coin
|
|
363
|
+
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
|
|
364
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
365
|
+
* @param baseUnit
|
|
366
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
367
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
368
|
+
* @param gasTankLowBalanceAlertFactor Low gas tank balance alert threshold = (feeEstimate x gasTankLowBalanceAlertFactor)
|
|
369
|
+
* @param gasTankMinBalanceRecommendationFactor Min gas tank balance recommendation = (feeEstimate x gasTankMinBalanceRecommendationFactor)
|
|
370
|
+
* @param prefix Optional coin prefix. Defaults to empty string
|
|
371
|
+
* @param suffix Optional coin suffix. Defaults to coin name.
|
|
372
|
+
* @param isToken Whether or not this account coin is a token of another coin
|
|
373
|
+
*/
|
|
374
|
+
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
375
|
/**
|
|
253
376
|
* Factory function for erc20 token instances.
|
|
254
377
|
*
|
|
@@ -305,7 +428,7 @@ export declare function erc721(id: string, name: string, fullName: string, contr
|
|
|
305
428
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
306
429
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
307
430
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
308
|
-
* @param network? Optional token network. Defaults to
|
|
431
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
309
432
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
310
433
|
*/
|
|
311
434
|
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 +472,7 @@ export declare function erc1155(id: string, name: string, fullName: string, cont
|
|
|
349
472
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
350
473
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
351
474
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
352
|
-
* @param network? Optional token network. Defaults to
|
|
475
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
353
476
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
354
477
|
*/
|
|
355
478
|
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 +634,7 @@ export declare function ttronToken(id: string, name: string, fullName: string, d
|
|
|
511
634
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
512
635
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
513
636
|
*/
|
|
514
|
-
export declare function hederaCoin(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset,
|
|
637
|
+
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
638
|
/**
|
|
516
639
|
* Factory function for Hedera token instances
|
|
517
640
|
*
|
|
@@ -522,13 +645,14 @@ export declare function hederaCoin(id: string, name: string, fullName: string, n
|
|
|
522
645
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
523
646
|
* @param nodeAccountId node account Id from which the transaction will be sent
|
|
524
647
|
* @param tokenId The unique identifier of this token
|
|
648
|
+
* @param contractAddress Contract address of this token, same as tokenId
|
|
525
649
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
526
650
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
527
651
|
* @param network? Optional token network. Defaults to Hedera mainnet.
|
|
528
652
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
529
653
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
530
654
|
*/
|
|
531
|
-
export declare function hederaToken(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset,
|
|
655
|
+
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
656
|
/**
|
|
533
657
|
* Factory function for ALGO token instances.
|
|
534
658
|
*
|
|
@@ -539,7 +663,6 @@ export declare function hederaToken(id: string, name: string, fullName: string,
|
|
|
539
663
|
* @param fullName Complete human-readable name of the token
|
|
540
664
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
541
665
|
* @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
666
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
544
667
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
545
668
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -547,7 +670,7 @@ export declare function hederaToken(id: string, name: string, fullName: string,
|
|
|
547
670
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
548
671
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
549
672
|
*/
|
|
550
|
-
export declare function algoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset,
|
|
673
|
+
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
674
|
/**
|
|
552
675
|
* Factory function for testnet ALGO token instances.
|
|
553
676
|
*
|
|
@@ -557,14 +680,13 @@ export declare function algoToken(id: string, name: string, alias: string | unde
|
|
|
557
680
|
* @param fullName Complete human-readable name of the token
|
|
558
681
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
559
682
|
* @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
683
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
562
684
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
563
685
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
564
686
|
* @param network? Optional token network. Defaults to Algo testnet.
|
|
565
687
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
566
688
|
*/
|
|
567
|
-
export declare function talgoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset,
|
|
689
|
+
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
690
|
/**
|
|
569
691
|
* Factory function for eos token instances.
|
|
570
692
|
*
|
|
@@ -573,6 +695,7 @@ export declare function talgoToken(id: string, name: string, alias: string | und
|
|
|
573
695
|
* @param fullName Complete human-readable name of the token
|
|
574
696
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
575
697
|
* @param contractName Contract address of this token
|
|
698
|
+
* @param contractAddress Contract address of this token
|
|
576
699
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
577
700
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
578
701
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -580,7 +703,7 @@ export declare function talgoToken(id: string, name: string, alias: string | und
|
|
|
580
703
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
581
704
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
582
705
|
*/
|
|
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>;
|
|
706
|
+
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
707
|
/**
|
|
585
708
|
* Factory function for testnet eos token instances.
|
|
586
709
|
*
|
|
@@ -588,6 +711,7 @@ export declare function eosToken(id: string, name: string, fullName: string, dec
|
|
|
588
711
|
* @param name unique identifier of the token
|
|
589
712
|
* @param fullName Complete human-readable name of the token
|
|
590
713
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
714
|
+
* @param contractName Contract address of this token
|
|
591
715
|
* @param contractAddress Contract address of this token
|
|
592
716
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
593
717
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -595,7 +719,7 @@ export declare function eosToken(id: string, name: string, fullName: string, dec
|
|
|
595
719
|
* @param network? Optional token network. Defaults to the testnet EOS network.
|
|
596
720
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
597
721
|
*/
|
|
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>;
|
|
722
|
+
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
723
|
/**
|
|
600
724
|
* Factory function for sol token instances.
|
|
601
725
|
*
|
|
@@ -604,6 +728,7 @@ export declare function teosToken(id: string, name: string, fullName: string, de
|
|
|
604
728
|
* @param fullName Complete human-readable name of the token
|
|
605
729
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
606
730
|
* @param tokenAddress Token address of this token
|
|
731
|
+
* @param contractAddress Contract address of this token
|
|
607
732
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
608
733
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
609
734
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -611,7 +736,7 @@ export declare function teosToken(id: string, name: string, fullName: string, de
|
|
|
611
736
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
612
737
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
613
738
|
*/
|
|
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>;
|
|
739
|
+
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
740
|
/**
|
|
616
741
|
* Factory function for testnet solana token instances.
|
|
617
742
|
*
|
|
@@ -626,7 +751,7 @@ export declare function solToken(id: string, name: string, fullName: string, dec
|
|
|
626
751
|
* @param network? Optional token network. Defaults to the testnet Solana network.
|
|
627
752
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
628
753
|
*/
|
|
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>;
|
|
754
|
+
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
755
|
/**
|
|
631
756
|
* Factory function for ada token instances.
|
|
632
757
|
*
|
|
@@ -707,7 +832,7 @@ export declare function tavaxErc20(id: string, name: string, fullName: string, d
|
|
|
707
832
|
*/
|
|
708
833
|
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
834
|
/**
|
|
710
|
-
* Factory function for
|
|
835
|
+
* Factory function for Amoy testnet polygonErc20 token instances.
|
|
711
836
|
*
|
|
712
837
|
* @param id uuid v4
|
|
713
838
|
* @param name unique identifier of the token
|
|
@@ -722,6 +847,166 @@ export declare function polygonErc20(id: string, name: string, fullName: string,
|
|
|
722
847
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
723
848
|
*/
|
|
724
849
|
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>;
|
|
850
|
+
/**
|
|
851
|
+
* Factory function for arbethErc20 token instances.
|
|
852
|
+
*
|
|
853
|
+
* @param id uuid v4
|
|
854
|
+
* @param name unique identifier of the token
|
|
855
|
+
* @param fullName Complete human-readable name of the token
|
|
856
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
857
|
+
* @param contractAddress Contract address of this token
|
|
858
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
859
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
860
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
861
|
+
* @param network? Optional token network. Defaults to Arbitrum main network.
|
|
862
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
863
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
864
|
+
*/
|
|
865
|
+
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>;
|
|
866
|
+
/**
|
|
867
|
+
* Factory function for Arbitrum Sepolia testnet arbethErc20 token instances.
|
|
868
|
+
*
|
|
869
|
+
* @param id uuid v4
|
|
870
|
+
* @param name unique identifier of the token
|
|
871
|
+
* @param fullName Complete human-readable name of the token
|
|
872
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
873
|
+
* @param contractAddress Contract address of this token
|
|
874
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
875
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
876
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
877
|
+
* @param network? Optional token network. Defaults to the Arbitrum test network.
|
|
878
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
879
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
880
|
+
*/
|
|
881
|
+
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>;
|
|
882
|
+
/**
|
|
883
|
+
* Factory function for opethErc20 token instances.
|
|
884
|
+
*
|
|
885
|
+
* @param id uuid v4
|
|
886
|
+
* @param name unique identifier of the token
|
|
887
|
+
* @param fullName Complete human-readable name of the token
|
|
888
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
889
|
+
* @param contractAddress Contract address of this token
|
|
890
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
891
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
892
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
893
|
+
* @param network? Optional token network. Defaults to Optimism main network.
|
|
894
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
895
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
896
|
+
*/
|
|
897
|
+
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>;
|
|
898
|
+
/**
|
|
899
|
+
* Factory function for Optimism Sepolia testnet opethErc20 token instances.
|
|
900
|
+
*
|
|
901
|
+
* @param id uuid v4
|
|
902
|
+
* @param name unique identifier of the token
|
|
903
|
+
* @param fullName Complete human-readable name of the token
|
|
904
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
905
|
+
* @param contractAddress Contract address of this token
|
|
906
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
907
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
908
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
909
|
+
* @param network? Optional token network. Defaults to the Optimism test network.
|
|
910
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
911
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
912
|
+
*/
|
|
913
|
+
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>;
|
|
914
|
+
/**
|
|
915
|
+
* Factory function for zkethErc20 token instances.
|
|
916
|
+
*
|
|
917
|
+
* @param id uuid v4
|
|
918
|
+
* @param name unique identifier of the token
|
|
919
|
+
* @param fullName Complete human-readable name of the token
|
|
920
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
921
|
+
* @param contractAddress Contract address of this token
|
|
922
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
923
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
924
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
925
|
+
* @param network? Optional token network. Defaults to zkSync mainnet network.
|
|
926
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
927
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
928
|
+
*/
|
|
929
|
+
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>;
|
|
930
|
+
/**
|
|
931
|
+
* Factory function for zkSync Sepolia testnet zkethErc20 token instances.
|
|
932
|
+
*
|
|
933
|
+
* @param id uuid v4
|
|
934
|
+
* @param name unique identifier of the token
|
|
935
|
+
* @param fullName Complete human-readable name of the token
|
|
936
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
937
|
+
* @param contractAddress Contract address of this token
|
|
938
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
939
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
940
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
941
|
+
* @param network? Optional token network. Defaults to the zkSync sepolia test network.
|
|
942
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
943
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
944
|
+
*/
|
|
945
|
+
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>;
|
|
946
|
+
/**
|
|
947
|
+
* Factory function for beraErc20 token instances.
|
|
948
|
+
*
|
|
949
|
+
* @param id uuid v4
|
|
950
|
+
* @param name unique identifier of the token
|
|
951
|
+
* @param fullName Complete human-readable name of the token
|
|
952
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
953
|
+
* @param contractAddress Contract address of this token
|
|
954
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
955
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
956
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
957
|
+
* @param network? Optional token network. Defaults to bera mainnet network.
|
|
958
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
959
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
960
|
+
*/
|
|
961
|
+
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>;
|
|
962
|
+
/**
|
|
963
|
+
* Factory function for zkSync Sepolia testnet beraErc20 token instances.
|
|
964
|
+
*
|
|
965
|
+
* @param id uuid v4
|
|
966
|
+
* @param name unique identifier of the token
|
|
967
|
+
* @param fullName Complete human-readable name of the token
|
|
968
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
969
|
+
* @param contractAddress Contract address of this token
|
|
970
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
971
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
972
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
973
|
+
* @param network? Optional token network. Defaults to the bera test network.
|
|
974
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
975
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
976
|
+
*/
|
|
977
|
+
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>;
|
|
978
|
+
/**
|
|
979
|
+
* Factory function for CoredaoErc20 token instances.
|
|
980
|
+
*
|
|
981
|
+
* @param id uuid v4
|
|
982
|
+
* @param name unique identifier of the token
|
|
983
|
+
* @param fullName Complete human-readable name of the token
|
|
984
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
985
|
+
* @param contractAddress Contract address of this token
|
|
986
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
987
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
988
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
989
|
+
* @param network? Optional token network. Defaults to coredao mainnet network.
|
|
990
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
991
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
992
|
+
*/
|
|
993
|
+
export declare function coredaoErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<CoredaoERC20Token>;
|
|
994
|
+
/**
|
|
995
|
+
* Factory function for coredao testnet coredaoErc20 token instances.
|
|
996
|
+
*
|
|
997
|
+
* @param id uuid v4
|
|
998
|
+
* @param name unique identifier of the token
|
|
999
|
+
* @param fullName Complete human-readable name of the token
|
|
1000
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1001
|
+
* @param contractAddress Contract address of this token
|
|
1002
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1003
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1004
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1005
|
+
* @param network? Optional token network. Defaults to the coredao test network.
|
|
1006
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1007
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1008
|
+
*/
|
|
1009
|
+
export declare function tcoredaoErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<CoredaoERC20Token>;
|
|
725
1010
|
/**
|
|
726
1011
|
* Factory function for xrp token instances.
|
|
727
1012
|
*
|
|
@@ -731,6 +1016,7 @@ export declare function tpolygonErc20(id: string, name: string, fullName: string
|
|
|
731
1016
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
732
1017
|
* @param issuerAddress: The address of the issuer of the token,
|
|
733
1018
|
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
1019
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
734
1020
|
* @param domain? the domain of the issuer of the token,
|
|
735
1021
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
736
1022
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -739,7 +1025,7 @@ export declare function tpolygonErc20(id: string, name: string, fullName: string
|
|
|
739
1025
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
740
1026
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
741
1027
|
*/
|
|
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>;
|
|
1028
|
+
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
1029
|
/**
|
|
744
1030
|
* Factory function for testnet cardano token instances.
|
|
745
1031
|
*
|
|
@@ -749,6 +1035,7 @@ export declare function xrpToken(id: string, name: string, fullName: string, dec
|
|
|
749
1035
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
750
1036
|
* @param issuerAddress: The address of the issuer of the token,
|
|
751
1037
|
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
1038
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
752
1039
|
* @param domain? the domain of the issuer of the token,
|
|
753
1040
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
754
1041
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -756,7 +1043,107 @@ export declare function xrpToken(id: string, name: string, fullName: string, dec
|
|
|
756
1043
|
* @param network? Optional token network. Defaults to the testnet Cardano network.
|
|
757
1044
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
758
1045
|
*/
|
|
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>;
|
|
1046
|
+
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>;
|
|
1047
|
+
/**
|
|
1048
|
+
* Factory function for sui token instances.
|
|
1049
|
+
*
|
|
1050
|
+
* @param id uuid v4
|
|
1051
|
+
* @param name unique identifier of the token
|
|
1052
|
+
* @param fullName Complete human-readable name of the token
|
|
1053
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1054
|
+
* @param packageId PackageId of this token
|
|
1055
|
+
* @param module The module of the package with id `packageId`
|
|
1056
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
1057
|
+
* @param contractAddress Contract address of this token formed with `packageId::module::symbol`
|
|
1058
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1059
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1060
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1061
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1062
|
+
* @param network? Optional token network. Defaults to SUI main network.
|
|
1063
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1064
|
+
*/
|
|
1065
|
+
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>;
|
|
1066
|
+
/**
|
|
1067
|
+
* Factory function for testnet sui token instances.
|
|
1068
|
+
*
|
|
1069
|
+
* @param id uuid v4
|
|
1070
|
+
* @param name unique identifier of the token
|
|
1071
|
+
* @param fullName Complete human-readable name of the token
|
|
1072
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1073
|
+
* @param packageId PackageId of this token
|
|
1074
|
+
* @param module The module of the package with id `packageId`
|
|
1075
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
1076
|
+
* @param contractAddress Contract address of this token formed with `packageId::module::symbol`
|
|
1077
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1078
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1079
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1080
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1081
|
+
* @param network? Optional token network. Defaults to SUI test network.
|
|
1082
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1083
|
+
*/
|
|
1084
|
+
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>;
|
|
1085
|
+
/**
|
|
1086
|
+
* Factory function for apt token instances.
|
|
1087
|
+
*
|
|
1088
|
+
* @param id uuid v4
|
|
1089
|
+
* @param name unique identifier of the token
|
|
1090
|
+
* @param fullName Complete human-readable name of the token
|
|
1091
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1092
|
+
* @param assetId Asset Id of this token i.e. the unique identifier of the token for all tokens - fungible, non-fungible and legacy
|
|
1093
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1094
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1095
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1096
|
+
* @param network Optional token network. Defaults to APT main network.
|
|
1097
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1098
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1099
|
+
*/
|
|
1100
|
+
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>;
|
|
1101
|
+
/**
|
|
1102
|
+
* Factory function for Apt NFT collections.
|
|
1103
|
+
*
|
|
1104
|
+
* @param id uuid v4
|
|
1105
|
+
* @param name unique identifier of the NFT collection
|
|
1106
|
+
* @param fullName Complete human-readable name of the NFT collection
|
|
1107
|
+
* @param nftCollectionId collection ID of the non-fungible tokens (NFTs)
|
|
1108
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1109
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1110
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1111
|
+
* @param network Optional token network. Defaults to APT main network.
|
|
1112
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1113
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1114
|
+
*/
|
|
1115
|
+
export declare function aptNFTCollection(id: string, name: string, fullName: string, nftCollectionId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AptNFTCollection>;
|
|
1116
|
+
/**
|
|
1117
|
+
* Factory function for testnet apt token instances.
|
|
1118
|
+
*
|
|
1119
|
+
* @param id uuid v4
|
|
1120
|
+
* @param name unique identifier of the token
|
|
1121
|
+
* @param fullName Complete human-readable name of the token
|
|
1122
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1123
|
+
* @param assetId Asset Id of this token i.e. the unique identifier of the token for all tokens - fungible, non-fungible and legacy
|
|
1124
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1125
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1126
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1127
|
+
* @param network Optional token network. Defaults to the testnet APT network.
|
|
1128
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1129
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1130
|
+
*/
|
|
1131
|
+
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>;
|
|
1132
|
+
/**
|
|
1133
|
+
* Factory function for testnet Apt NFT collections.
|
|
1134
|
+
*
|
|
1135
|
+
* @param id uuid v4
|
|
1136
|
+
* @param name unique identifier of the NFT collection
|
|
1137
|
+
* @param fullName Complete human-readable name of the NFT collection
|
|
1138
|
+
* @param nftCollectionId collection ID of the non-fungible tokens (NFTs)
|
|
1139
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1140
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1141
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1142
|
+
* @param network Optional token network. Defaults to APT test network.
|
|
1143
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1144
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1145
|
+
*/
|
|
1146
|
+
export declare function taptNFTCollection(id: string, name: string, fullName: string, nftCollectionId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AptNFTCollection>;
|
|
760
1147
|
/**
|
|
761
1148
|
* Factory function for fiat coin instances.
|
|
762
1149
|
*
|
|
@@ -773,5 +1160,36 @@ export declare function txrpToken(id: string, name: string, fullName: string, de
|
|
|
773
1160
|
* @param isToken? Whether or not this coin is a token of another coin
|
|
774
1161
|
*/
|
|
775
1162
|
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>;
|
|
1163
|
+
/**
|
|
1164
|
+
* Factory function for sip10 token instances.
|
|
1165
|
+
*
|
|
1166
|
+
* @param id uuid v4
|
|
1167
|
+
* @param name unique identifier of the token
|
|
1168
|
+
* @param fullName Complete human-readable name of the token
|
|
1169
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1170
|
+
* @param assetId A unique identifier for a token, which is in the form of contractAddress.contractName::tokenName
|
|
1171
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1172
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1173
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1174
|
+
* @param network? Optional token network. Defaults to Stacks main network.
|
|
1175
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1176
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1177
|
+
*/
|
|
1178
|
+
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>;
|
|
1179
|
+
/**
|
|
1180
|
+
* Factory function for testnet sip10 token instances.
|
|
1181
|
+
*
|
|
1182
|
+
* @param id uuid v4
|
|
1183
|
+
* @param name unique identifier of the token
|
|
1184
|
+
* @param fullName Complete human-readable name of the token
|
|
1185
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1186
|
+
* @param assetId A unique identifier for a token, which is in the form of contractAddress.contractName::tokenName
|
|
1187
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1188
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1189
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1190
|
+
* @param network? Optional token network. Defaults to the testnet Stacks network.
|
|
1191
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1192
|
+
*/
|
|
1193
|
+
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
1194
|
export {};
|
|
777
1195
|
//# sourceMappingURL=account.d.ts.map
|