@bitgo-beta/statics 15.1.1-beta.87 → 15.1.1-beta.871
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 +2741 -0
- package/dist/src/account.d.ts +399 -21
- package/dist/src/account.d.ts.map +1 -1
- package/dist/src/account.js +656 -78
- 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 +6 -3
- package/dist/src/base.d.ts +1354 -40
- package/dist/src/base.d.ts.map +1 -1
- package/dist/src/base.js +1400 -50
- package/dist/src/coinFeatures.d.ts +80 -0
- package/dist/src/coinFeatures.d.ts.map +1 -0
- package/dist/src/coinFeatures.js +468 -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 +95 -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 +138 -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 +1371 -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 +428 -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 +1300 -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 +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 +332 -0
- package/dist/src/coins.d.ts +10 -1
- package/dist/src/coins.d.ts.map +1 -1
- package/dist/src/coins.js +590 -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 +1804 -0
- package/dist/src/index.d.ts +4 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +19 -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 +27 -0
- package/dist/src/networks.d.ts +641 -1
- package/dist/src/networks.d.ts.map +1 -1
- package/dist/src/networks.js +869 -44
- package/dist/src/ofc.d.ts +330 -0
- package/dist/src/ofc.d.ts.map +1 -1
- package/dist/src/ofc.js +688 -14
- package/dist/src/tokenConfig.d.ts +116 -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,14 +24,22 @@ 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)[];
|
|
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
|
}
|
|
40
|
+
export interface NFTCollectionIdConstructorOptions extends AccountConstructorOptions {
|
|
41
|
+
nftCollectionId: string;
|
|
42
|
+
}
|
|
35
43
|
export interface StellarCoinConstructorOptions extends AccountConstructorOptions {
|
|
36
44
|
domain: string;
|
|
37
45
|
}
|
|
@@ -41,15 +49,15 @@ export interface HederaCoinConstructorOptions extends AccountConstructorOptions
|
|
|
41
49
|
export interface HederaTokenConstructorOptions extends AccountConstructorOptions {
|
|
42
50
|
nodeAccountId: string;
|
|
43
51
|
tokenId: string;
|
|
44
|
-
|
|
45
|
-
export interface AlgoCoinConstructorOptions extends AccountConstructorOptions {
|
|
46
|
-
tokenURL: string;
|
|
52
|
+
contractAddress: string;
|
|
47
53
|
}
|
|
48
54
|
export interface EosCoinConstructorOptions extends AccountConstructorOptions {
|
|
49
55
|
contractName: string;
|
|
56
|
+
contractAddress: string;
|
|
50
57
|
}
|
|
51
58
|
export interface SolCoinConstructorOptions extends AccountConstructorOptions {
|
|
52
59
|
tokenAddress: string;
|
|
60
|
+
contractAddress: string;
|
|
53
61
|
}
|
|
54
62
|
export interface AdaCoinConstructorOptions extends AccountConstructorOptions {
|
|
55
63
|
policyId: string;
|
|
@@ -59,17 +67,35 @@ export interface XrpCoinConstructorOptions extends AccountConstructorOptions {
|
|
|
59
67
|
issuerAddress: string;
|
|
60
68
|
currencyCode: string;
|
|
61
69
|
domain: string;
|
|
70
|
+
contractAddress: string;
|
|
71
|
+
}
|
|
72
|
+
export interface SuiCoinConstructorOptions extends AccountConstructorOptions {
|
|
73
|
+
packageId: string;
|
|
74
|
+
module: string;
|
|
75
|
+
symbol: string;
|
|
76
|
+
contractAddress: string;
|
|
77
|
+
}
|
|
78
|
+
export interface AptCoinConstructorOptions extends AccountConstructorOptions {
|
|
79
|
+
assetId: string;
|
|
62
80
|
}
|
|
63
|
-
|
|
81
|
+
type FiatCoinName = `fiat${string}` | `tfiat${string}`;
|
|
64
82
|
export interface FiatCoinConstructorOptions extends AccountConstructorOptions {
|
|
65
83
|
name: FiatCoinName;
|
|
66
84
|
}
|
|
85
|
+
export interface Sip10TokenConstructorOptions extends AccountConstructorOptions {
|
|
86
|
+
assetId: string;
|
|
87
|
+
}
|
|
67
88
|
export interface ContractAddress extends String {
|
|
68
89
|
__contractaddress_phantom__: never;
|
|
69
90
|
}
|
|
70
91
|
export declare class AccountCoinToken extends AccountCoin {
|
|
71
92
|
constructor(options: AccountConstructorOptions);
|
|
72
93
|
}
|
|
94
|
+
export declare class GasTankAccountCoin extends AccountCoin {
|
|
95
|
+
gasTankLowBalanceAlertFactor: number;
|
|
96
|
+
gasTankMinBalanceRecommendationFactor: number;
|
|
97
|
+
constructor(options: GasTankAccountConstructorOptions);
|
|
98
|
+
}
|
|
73
99
|
/**
|
|
74
100
|
* Some blockchains support tokens which are defined by an address at which they have a smart contract deployed.
|
|
75
101
|
* Examples are ERC20 tokens, and the equivalent on other chains.
|
|
@@ -78,6 +104,13 @@ export declare class ContractAddressDefinedToken extends AccountCoinToken {
|
|
|
78
104
|
contractAddress: ContractAddress;
|
|
79
105
|
constructor(options: Erc20ConstructorOptions);
|
|
80
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Used for blockchains that support NFT collections.
|
|
109
|
+
*/
|
|
110
|
+
export declare class NFTCollectionIdDefinedToken extends AccountCoinToken {
|
|
111
|
+
nftCollectionId: string;
|
|
112
|
+
constructor(options: NFTCollectionIdConstructorOptions);
|
|
113
|
+
}
|
|
81
114
|
/**
|
|
82
115
|
* ERC20 token addresses are Base58 formatted on some blockchains.
|
|
83
116
|
*/
|
|
@@ -155,6 +188,7 @@ export declare class HederaCoin extends AccountCoinToken {
|
|
|
155
188
|
export declare class HederaToken extends AccountCoinToken {
|
|
156
189
|
nodeAccountId: string;
|
|
157
190
|
tokenId: string;
|
|
191
|
+
contractAddress: string;
|
|
158
192
|
constructor(options: HederaTokenConstructorOptions);
|
|
159
193
|
}
|
|
160
194
|
/**
|
|
@@ -164,8 +198,7 @@ export declare class HederaToken extends AccountCoinToken {
|
|
|
164
198
|
*
|
|
165
199
|
*/
|
|
166
200
|
export declare class AlgoCoin extends AccountCoinToken {
|
|
167
|
-
|
|
168
|
-
constructor(options: AlgoCoinConstructorOptions);
|
|
201
|
+
constructor(options: AccountConstructorOptions);
|
|
169
202
|
}
|
|
170
203
|
/**
|
|
171
204
|
* The Eos network supports tokens
|
|
@@ -175,6 +208,7 @@ export declare class AlgoCoin extends AccountCoinToken {
|
|
|
175
208
|
*/
|
|
176
209
|
export declare class EosCoin extends AccountCoinToken {
|
|
177
210
|
contractName: string;
|
|
211
|
+
contractAddress: string;
|
|
178
212
|
constructor(options: EosCoinConstructorOptions);
|
|
179
213
|
}
|
|
180
214
|
/**
|
|
@@ -185,6 +219,7 @@ export declare class EosCoin extends AccountCoinToken {
|
|
|
185
219
|
*/
|
|
186
220
|
export declare class SolCoin extends AccountCoinToken {
|
|
187
221
|
tokenAddress: string;
|
|
222
|
+
contractAddress: string;
|
|
188
223
|
constructor(options: SolCoinConstructorOptions);
|
|
189
224
|
}
|
|
190
225
|
/**
|
|
@@ -211,6 +246,34 @@ export declare class AvaxERC20Token extends ContractAddressDefinedToken {
|
|
|
211
246
|
export declare class PolygonERC20Token extends ContractAddressDefinedToken {
|
|
212
247
|
constructor(options: Erc20ConstructorOptions);
|
|
213
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* The Arbitrum Chain network support tokens
|
|
251
|
+
* Arbitrum Chain Tokens are ERC20 tokens
|
|
252
|
+
*/
|
|
253
|
+
export declare class ArbethERC20Token extends ContractAddressDefinedToken {
|
|
254
|
+
constructor(options: Erc20ConstructorOptions);
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* The Optimism Chain network support tokens
|
|
258
|
+
* Optimism Chain Tokens are ERC20 tokens
|
|
259
|
+
*/
|
|
260
|
+
export declare class OpethERC20Token extends ContractAddressDefinedToken {
|
|
261
|
+
constructor(options: Erc20ConstructorOptions);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* The zkSync network support tokens
|
|
265
|
+
* zkSync Tokens are ERC20 tokens
|
|
266
|
+
*/
|
|
267
|
+
export declare class ZkethERC20Token extends ContractAddressDefinedToken {
|
|
268
|
+
constructor(options: Erc20ConstructorOptions);
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* The Bera Chain network support tokens
|
|
272
|
+
* Bera Chain Tokens are ERC20 tokens
|
|
273
|
+
*/
|
|
274
|
+
export declare class BeraERC20Token extends ContractAddressDefinedToken {
|
|
275
|
+
constructor(options: Erc20ConstructorOptions);
|
|
276
|
+
}
|
|
214
277
|
/**
|
|
215
278
|
* The Xrp network supports tokens
|
|
216
279
|
* Xrp tokens are identified by their issuer address
|
|
@@ -221,8 +284,32 @@ export declare class XrpCoin extends AccountCoinToken {
|
|
|
221
284
|
issuerAddress: string;
|
|
222
285
|
currencyCode: string;
|
|
223
286
|
domain: string;
|
|
287
|
+
contractAddress: string;
|
|
224
288
|
constructor(options: XrpCoinConstructorOptions);
|
|
225
289
|
}
|
|
290
|
+
export declare class SuiCoin extends AccountCoinToken {
|
|
291
|
+
packageId: string;
|
|
292
|
+
module: string;
|
|
293
|
+
symbol: string;
|
|
294
|
+
contractAddress: string;
|
|
295
|
+
constructor(options: SuiCoinConstructorOptions);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* The Apt network supports tokens
|
|
299
|
+
* Apt tokens work similar to native Apt coin, but the token name is determined by
|
|
300
|
+
* the tokenAddress on the chain.
|
|
301
|
+
*
|
|
302
|
+
*/
|
|
303
|
+
export declare class AptCoin extends AccountCoinToken {
|
|
304
|
+
assetId: string;
|
|
305
|
+
constructor(options: AptCoinConstructorOptions);
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* The Apt network supports non-fungible tokens (Digital Asset Standard)
|
|
309
|
+
* Every NFT belongs to an NFT collection.
|
|
310
|
+
*/
|
|
311
|
+
export declare class AptNFTCollection extends NFTCollectionIdDefinedToken {
|
|
312
|
+
}
|
|
226
313
|
/**
|
|
227
314
|
* Fiat currencies, such as USD, EUR, or YEN.
|
|
228
315
|
*/
|
|
@@ -233,6 +320,15 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
233
320
|
protected requiredFeatures(): Set<CoinFeature>;
|
|
234
321
|
protected disallowedFeatures(): Set<CoinFeature>;
|
|
235
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* The Stacks network supports tokens
|
|
325
|
+
* Stx tokens work similar to native Stx coin, but the token name is determined by
|
|
326
|
+
* the contractName on the chain.
|
|
327
|
+
*/
|
|
328
|
+
export declare class Sip10Token extends AccountCoinToken {
|
|
329
|
+
assetId: string;
|
|
330
|
+
constructor(options: Sip10TokenConstructorOptions);
|
|
331
|
+
}
|
|
236
332
|
/**
|
|
237
333
|
* Factory function for account coin instances.
|
|
238
334
|
*
|
|
@@ -249,6 +345,25 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
249
345
|
* @param isToken? Whether or not this account coin is a token of another coin
|
|
250
346
|
*/
|
|
251
347
|
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>;
|
|
348
|
+
/**
|
|
349
|
+
* Factory function for gas tank account coin instances.
|
|
350
|
+
*
|
|
351
|
+
* @param id uuid v4
|
|
352
|
+
* @param name unique identifier of the coin
|
|
353
|
+
* @param fullName Complete human-readable name of the coin
|
|
354
|
+
* @param network Network object for this coin
|
|
355
|
+
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
|
|
356
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
357
|
+
* @param baseUnit
|
|
358
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
359
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
360
|
+
* @param gasTankLowBalanceAlertFactor Low gas tank balance alert threshold = (feeEstimate x gasTankLowBalanceAlertFactor)
|
|
361
|
+
* @param gasTankMinBalanceRecommendationFactor Min gas tank balance recommendation = (feeEstimate x gasTankMinBalanceRecommendationFactor)
|
|
362
|
+
* @param prefix Optional coin prefix. Defaults to empty string
|
|
363
|
+
* @param suffix Optional coin suffix. Defaults to coin name.
|
|
364
|
+
* @param isToken Whether or not this account coin is a token of another coin
|
|
365
|
+
*/
|
|
366
|
+
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
367
|
/**
|
|
253
368
|
* Factory function for erc20 token instances.
|
|
254
369
|
*
|
|
@@ -305,7 +420,7 @@ export declare function erc721(id: string, name: string, fullName: string, contr
|
|
|
305
420
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
306
421
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
307
422
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
308
|
-
* @param network? Optional token network. Defaults to
|
|
423
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
309
424
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
310
425
|
*/
|
|
311
426
|
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 +464,7 @@ export declare function erc1155(id: string, name: string, fullName: string, cont
|
|
|
349
464
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
350
465
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
351
466
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
352
|
-
* @param network? Optional token network. Defaults to
|
|
467
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
353
468
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
354
469
|
*/
|
|
355
470
|
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 +626,7 @@ export declare function ttronToken(id: string, name: string, fullName: string, d
|
|
|
511
626
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
512
627
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
513
628
|
*/
|
|
514
|
-
export declare function hederaCoin(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset,
|
|
629
|
+
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
630
|
/**
|
|
516
631
|
* Factory function for Hedera token instances
|
|
517
632
|
*
|
|
@@ -522,13 +637,14 @@ export declare function hederaCoin(id: string, name: string, fullName: string, n
|
|
|
522
637
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
523
638
|
* @param nodeAccountId node account Id from which the transaction will be sent
|
|
524
639
|
* @param tokenId The unique identifier of this token
|
|
640
|
+
* @param contractAddress Contract address of this token, same as tokenId
|
|
525
641
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
526
642
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
527
643
|
* @param network? Optional token network. Defaults to Hedera mainnet.
|
|
528
644
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
529
645
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
530
646
|
*/
|
|
531
|
-
export declare function hederaToken(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset,
|
|
647
|
+
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
648
|
/**
|
|
533
649
|
* Factory function for ALGO token instances.
|
|
534
650
|
*
|
|
@@ -539,7 +655,6 @@ export declare function hederaToken(id: string, name: string, fullName: string,
|
|
|
539
655
|
* @param fullName Complete human-readable name of the token
|
|
540
656
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
541
657
|
* @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
658
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
544
659
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
545
660
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -547,7 +662,7 @@ export declare function hederaToken(id: string, name: string, fullName: string,
|
|
|
547
662
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
548
663
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
549
664
|
*/
|
|
550
|
-
export declare function algoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset,
|
|
665
|
+
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
666
|
/**
|
|
552
667
|
* Factory function for testnet ALGO token instances.
|
|
553
668
|
*
|
|
@@ -557,14 +672,13 @@ export declare function algoToken(id: string, name: string, alias: string | unde
|
|
|
557
672
|
* @param fullName Complete human-readable name of the token
|
|
558
673
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
559
674
|
* @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
675
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
562
676
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
563
677
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
564
678
|
* @param network? Optional token network. Defaults to Algo testnet.
|
|
565
679
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
566
680
|
*/
|
|
567
|
-
export declare function talgoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset,
|
|
681
|
+
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
682
|
/**
|
|
569
683
|
* Factory function for eos token instances.
|
|
570
684
|
*
|
|
@@ -573,6 +687,7 @@ export declare function talgoToken(id: string, name: string, alias: string | und
|
|
|
573
687
|
* @param fullName Complete human-readable name of the token
|
|
574
688
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
575
689
|
* @param contractName Contract address of this token
|
|
690
|
+
* @param contractAddress Contract address of this token
|
|
576
691
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
577
692
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
578
693
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -580,7 +695,7 @@ export declare function talgoToken(id: string, name: string, alias: string | und
|
|
|
580
695
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
581
696
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
582
697
|
*/
|
|
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>;
|
|
698
|
+
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
699
|
/**
|
|
585
700
|
* Factory function for testnet eos token instances.
|
|
586
701
|
*
|
|
@@ -588,6 +703,7 @@ export declare function eosToken(id: string, name: string, fullName: string, dec
|
|
|
588
703
|
* @param name unique identifier of the token
|
|
589
704
|
* @param fullName Complete human-readable name of the token
|
|
590
705
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
706
|
+
* @param contractName Contract address of this token
|
|
591
707
|
* @param contractAddress Contract address of this token
|
|
592
708
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
593
709
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -595,7 +711,7 @@ export declare function eosToken(id: string, name: string, fullName: string, dec
|
|
|
595
711
|
* @param network? Optional token network. Defaults to the testnet EOS network.
|
|
596
712
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
597
713
|
*/
|
|
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>;
|
|
714
|
+
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
715
|
/**
|
|
600
716
|
* Factory function for sol token instances.
|
|
601
717
|
*
|
|
@@ -604,6 +720,7 @@ export declare function teosToken(id: string, name: string, fullName: string, de
|
|
|
604
720
|
* @param fullName Complete human-readable name of the token
|
|
605
721
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
606
722
|
* @param tokenAddress Token address of this token
|
|
723
|
+
* @param contractAddress Contract address of this token
|
|
607
724
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
608
725
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
609
726
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -611,7 +728,7 @@ export declare function teosToken(id: string, name: string, fullName: string, de
|
|
|
611
728
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
612
729
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
613
730
|
*/
|
|
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>;
|
|
731
|
+
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
732
|
/**
|
|
616
733
|
* Factory function for testnet solana token instances.
|
|
617
734
|
*
|
|
@@ -626,7 +743,7 @@ export declare function solToken(id: string, name: string, fullName: string, dec
|
|
|
626
743
|
* @param network? Optional token network. Defaults to the testnet Solana network.
|
|
627
744
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
628
745
|
*/
|
|
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>;
|
|
746
|
+
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
747
|
/**
|
|
631
748
|
* Factory function for ada token instances.
|
|
632
749
|
*
|
|
@@ -707,7 +824,7 @@ export declare function tavaxErc20(id: string, name: string, fullName: string, d
|
|
|
707
824
|
*/
|
|
708
825
|
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
826
|
/**
|
|
710
|
-
* Factory function for
|
|
827
|
+
* Factory function for Amoy testnet polygonErc20 token instances.
|
|
711
828
|
*
|
|
712
829
|
* @param id uuid v4
|
|
713
830
|
* @param name unique identifier of the token
|
|
@@ -722,6 +839,134 @@ export declare function polygonErc20(id: string, name: string, fullName: string,
|
|
|
722
839
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
723
840
|
*/
|
|
724
841
|
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>;
|
|
842
|
+
/**
|
|
843
|
+
* Factory function for 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 Arbitrum main 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 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>;
|
|
858
|
+
/**
|
|
859
|
+
* Factory function for Arbitrum Sepolia testnet arbethErc20 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 the Arbitrum test 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 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>;
|
|
874
|
+
/**
|
|
875
|
+
* Factory function for 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 Optimism main 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 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>;
|
|
890
|
+
/**
|
|
891
|
+
* Factory function for Optimism Sepolia testnet opethErc20 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 the Optimism test 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 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>;
|
|
906
|
+
/**
|
|
907
|
+
* Factory function for 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 zkSync mainnet 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 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>;
|
|
922
|
+
/**
|
|
923
|
+
* Factory function for zkSync Sepolia testnet zkethErc20 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 the zkSync sepolia test 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 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>;
|
|
938
|
+
/**
|
|
939
|
+
* Factory function for 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 bera mainnet 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 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>;
|
|
954
|
+
/**
|
|
955
|
+
* Factory function for zkSync Sepolia testnet beraErc20 token instances.
|
|
956
|
+
*
|
|
957
|
+
* @param id uuid v4
|
|
958
|
+
* @param name unique identifier of the token
|
|
959
|
+
* @param fullName Complete human-readable name of the token
|
|
960
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
961
|
+
* @param contractAddress Contract address of this token
|
|
962
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
963
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
964
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
965
|
+
* @param network? Optional token network. Defaults to the bera test network.
|
|
966
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
967
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
968
|
+
*/
|
|
969
|
+
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
970
|
/**
|
|
726
971
|
* Factory function for xrp token instances.
|
|
727
972
|
*
|
|
@@ -731,6 +976,7 @@ export declare function tpolygonErc20(id: string, name: string, fullName: string
|
|
|
731
976
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
732
977
|
* @param issuerAddress: The address of the issuer of the token,
|
|
733
978
|
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
979
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
734
980
|
* @param domain? the domain of the issuer of the token,
|
|
735
981
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
736
982
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -739,7 +985,7 @@ export declare function tpolygonErc20(id: string, name: string, fullName: string
|
|
|
739
985
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
740
986
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
741
987
|
*/
|
|
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>;
|
|
988
|
+
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
989
|
/**
|
|
744
990
|
* Factory function for testnet cardano token instances.
|
|
745
991
|
*
|
|
@@ -749,6 +995,7 @@ export declare function xrpToken(id: string, name: string, fullName: string, dec
|
|
|
749
995
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
750
996
|
* @param issuerAddress: The address of the issuer of the token,
|
|
751
997
|
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
998
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
752
999
|
* @param domain? the domain of the issuer of the token,
|
|
753
1000
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
754
1001
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -756,7 +1003,107 @@ export declare function xrpToken(id: string, name: string, fullName: string, dec
|
|
|
756
1003
|
* @param network? Optional token network. Defaults to the testnet Cardano network.
|
|
757
1004
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
758
1005
|
*/
|
|
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>;
|
|
1006
|
+
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>;
|
|
1007
|
+
/**
|
|
1008
|
+
* Factory function for sui token instances.
|
|
1009
|
+
*
|
|
1010
|
+
* @param id uuid v4
|
|
1011
|
+
* @param name unique identifier of the token
|
|
1012
|
+
* @param fullName Complete human-readable name of the token
|
|
1013
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1014
|
+
* @param packageId PackageId of this token
|
|
1015
|
+
* @param module The module of the package with id `packageId`
|
|
1016
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
1017
|
+
* @param contractAddress Contract address of this token formed with `packageId::module::symbol`
|
|
1018
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1019
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1020
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1021
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1022
|
+
* @param network? Optional token network. Defaults to SUI main network.
|
|
1023
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1024
|
+
*/
|
|
1025
|
+
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>;
|
|
1026
|
+
/**
|
|
1027
|
+
* Factory function for testnet sui token instances.
|
|
1028
|
+
*
|
|
1029
|
+
* @param id uuid v4
|
|
1030
|
+
* @param name unique identifier of the token
|
|
1031
|
+
* @param fullName Complete human-readable name of the token
|
|
1032
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1033
|
+
* @param packageId PackageId of this token
|
|
1034
|
+
* @param module The module of the package with id `packageId`
|
|
1035
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
1036
|
+
* @param contractAddress Contract address of this token formed with `packageId::module::symbol`
|
|
1037
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1038
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1039
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1040
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1041
|
+
* @param network? Optional token network. Defaults to SUI test network.
|
|
1042
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1043
|
+
*/
|
|
1044
|
+
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>;
|
|
1045
|
+
/**
|
|
1046
|
+
* Factory function for 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 APT main 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 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>;
|
|
1061
|
+
/**
|
|
1062
|
+
* Factory function for Apt NFT collections.
|
|
1063
|
+
*
|
|
1064
|
+
* @param id uuid v4
|
|
1065
|
+
* @param name unique identifier of the NFT collection
|
|
1066
|
+
* @param fullName Complete human-readable name of the NFT collection
|
|
1067
|
+
* @param nftCollectionId collection ID of the non-fungible tokens (NFTs)
|
|
1068
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1069
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1070
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1071
|
+
* @param network Optional token network. Defaults to APT main network.
|
|
1072
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1073
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1074
|
+
*/
|
|
1075
|
+
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>;
|
|
1076
|
+
/**
|
|
1077
|
+
* Factory function for testnet apt token instances.
|
|
1078
|
+
*
|
|
1079
|
+
* @param id uuid v4
|
|
1080
|
+
* @param name unique identifier of the token
|
|
1081
|
+
* @param fullName Complete human-readable name of the token
|
|
1082
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1083
|
+
* @param assetId Asset Id of this token i.e. the unique identifier of the token for all tokens - fungible, non-fungible and legacy
|
|
1084
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1085
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1086
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1087
|
+
* @param network Optional token network. Defaults to the testnet APT network.
|
|
1088
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1089
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1090
|
+
*/
|
|
1091
|
+
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>;
|
|
1092
|
+
/**
|
|
1093
|
+
* Factory function for testnet Apt NFT collections.
|
|
1094
|
+
*
|
|
1095
|
+
* @param id uuid v4
|
|
1096
|
+
* @param name unique identifier of the NFT collection
|
|
1097
|
+
* @param fullName Complete human-readable name of the NFT collection
|
|
1098
|
+
* @param nftCollectionId collection ID of the non-fungible tokens (NFTs)
|
|
1099
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1100
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1101
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1102
|
+
* @param network Optional token network. Defaults to APT test network.
|
|
1103
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1104
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1105
|
+
*/
|
|
1106
|
+
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
1107
|
/**
|
|
761
1108
|
* Factory function for fiat coin instances.
|
|
762
1109
|
*
|
|
@@ -773,5 +1120,36 @@ export declare function txrpToken(id: string, name: string, fullName: string, de
|
|
|
773
1120
|
* @param isToken? Whether or not this coin is a token of another coin
|
|
774
1121
|
*/
|
|
775
1122
|
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>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Factory function for sip10 token instances.
|
|
1125
|
+
*
|
|
1126
|
+
* @param id uuid v4
|
|
1127
|
+
* @param name unique identifier of the token
|
|
1128
|
+
* @param fullName Complete human-readable name of the token
|
|
1129
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1130
|
+
* @param assetId A unique identifier for a token, which is in the form of contractAddress.contractName::tokenName
|
|
1131
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1132
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1133
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1134
|
+
* @param network? Optional token network. Defaults to Stacks main network.
|
|
1135
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1136
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1137
|
+
*/
|
|
1138
|
+
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>;
|
|
1139
|
+
/**
|
|
1140
|
+
* Factory function for testnet sip10 token instances.
|
|
1141
|
+
*
|
|
1142
|
+
* @param id uuid v4
|
|
1143
|
+
* @param name unique identifier of the token
|
|
1144
|
+
* @param fullName Complete human-readable name of the token
|
|
1145
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1146
|
+
* @param assetId A unique identifier for a token, which is in the form of contractAddress.contractName::tokenName
|
|
1147
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1148
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1149
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1150
|
+
* @param network? Optional token network. Defaults to the testnet Stacks network.
|
|
1151
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1152
|
+
*/
|
|
1153
|
+
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
1154
|
export {};
|
|
777
1155
|
//# sourceMappingURL=account.d.ts.map
|