@bitgo-beta/statics 15.1.1-beta.88 → 15.1.1-beta.880
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 +400 -21
- package/dist/src/account.d.ts.map +1 -1
- package/dist/src/account.js +659 -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 +7 -3
- package/dist/src/base.d.ts +1359 -40
- package/dist/src/base.d.ts.map +1 -1
- package/dist/src/base.js +1406 -50
- package/dist/src/coinFeatures.d.ts +80 -0
- package/dist/src/coinFeatures.d.ts.map +1 -0
- package/dist/src/coinFeatures.js +485 -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 +1383 -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 +436 -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 +646 -1
- package/dist/src/networks.d.ts.map +1 -1
- package/dist/src/networks.js +874 -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 +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;
|
|
78
|
+
}
|
|
79
|
+
export interface AptCoinConstructorOptions extends AccountConstructorOptions {
|
|
80
|
+
assetId: string;
|
|
62
81
|
}
|
|
63
|
-
|
|
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,34 @@ 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
|
+
}
|
|
214
278
|
/**
|
|
215
279
|
* The Xrp network supports tokens
|
|
216
280
|
* Xrp tokens are identified by their issuer address
|
|
@@ -221,8 +285,32 @@ export declare class XrpCoin extends AccountCoinToken {
|
|
|
221
285
|
issuerAddress: string;
|
|
222
286
|
currencyCode: string;
|
|
223
287
|
domain: string;
|
|
288
|
+
contractAddress: string;
|
|
224
289
|
constructor(options: XrpCoinConstructorOptions);
|
|
225
290
|
}
|
|
291
|
+
export declare class SuiCoin extends AccountCoinToken {
|
|
292
|
+
packageId: string;
|
|
293
|
+
module: string;
|
|
294
|
+
symbol: string;
|
|
295
|
+
contractAddress: string;
|
|
296
|
+
constructor(options: SuiCoinConstructorOptions);
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* The Apt network supports tokens
|
|
300
|
+
* Apt tokens work similar to native Apt coin, but the token name is determined by
|
|
301
|
+
* the tokenAddress on the chain.
|
|
302
|
+
*
|
|
303
|
+
*/
|
|
304
|
+
export declare class AptCoin extends AccountCoinToken {
|
|
305
|
+
assetId: string;
|
|
306
|
+
constructor(options: AptCoinConstructorOptions);
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* The Apt network supports non-fungible tokens (Digital Asset Standard)
|
|
310
|
+
* Every NFT belongs to an NFT collection.
|
|
311
|
+
*/
|
|
312
|
+
export declare class AptNFTCollection extends NFTCollectionIdDefinedToken {
|
|
313
|
+
}
|
|
226
314
|
/**
|
|
227
315
|
* Fiat currencies, such as USD, EUR, or YEN.
|
|
228
316
|
*/
|
|
@@ -233,6 +321,15 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
233
321
|
protected requiredFeatures(): Set<CoinFeature>;
|
|
234
322
|
protected disallowedFeatures(): Set<CoinFeature>;
|
|
235
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* The Stacks network supports tokens
|
|
326
|
+
* Stx tokens work similar to native Stx coin, but the token name is determined by
|
|
327
|
+
* the contractName on the chain.
|
|
328
|
+
*/
|
|
329
|
+
export declare class Sip10Token extends AccountCoinToken {
|
|
330
|
+
assetId: string;
|
|
331
|
+
constructor(options: Sip10TokenConstructorOptions);
|
|
332
|
+
}
|
|
236
333
|
/**
|
|
237
334
|
* Factory function for account coin instances.
|
|
238
335
|
*
|
|
@@ -249,6 +346,25 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
249
346
|
* @param isToken? Whether or not this account coin is a token of another coin
|
|
250
347
|
*/
|
|
251
348
|
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>;
|
|
349
|
+
/**
|
|
350
|
+
* Factory function for gas tank account coin instances.
|
|
351
|
+
*
|
|
352
|
+
* @param id uuid v4
|
|
353
|
+
* @param name unique identifier of the coin
|
|
354
|
+
* @param fullName Complete human-readable name of the coin
|
|
355
|
+
* @param network Network object for this coin
|
|
356
|
+
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
|
|
357
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
358
|
+
* @param baseUnit
|
|
359
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
360
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
361
|
+
* @param gasTankLowBalanceAlertFactor Low gas tank balance alert threshold = (feeEstimate x gasTankLowBalanceAlertFactor)
|
|
362
|
+
* @param gasTankMinBalanceRecommendationFactor Min gas tank balance recommendation = (feeEstimate x gasTankMinBalanceRecommendationFactor)
|
|
363
|
+
* @param prefix Optional coin prefix. Defaults to empty string
|
|
364
|
+
* @param suffix Optional coin suffix. Defaults to coin name.
|
|
365
|
+
* @param isToken Whether or not this account coin is a token of another coin
|
|
366
|
+
*/
|
|
367
|
+
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
368
|
/**
|
|
253
369
|
* Factory function for erc20 token instances.
|
|
254
370
|
*
|
|
@@ -305,7 +421,7 @@ export declare function erc721(id: string, name: string, fullName: string, contr
|
|
|
305
421
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
306
422
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
307
423
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
308
|
-
* @param network? Optional token network. Defaults to
|
|
424
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
309
425
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
310
426
|
*/
|
|
311
427
|
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 +465,7 @@ export declare function erc1155(id: string, name: string, fullName: string, cont
|
|
|
349
465
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
350
466
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
351
467
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
352
|
-
* @param network? Optional token network. Defaults to
|
|
468
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
353
469
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
354
470
|
*/
|
|
355
471
|
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 +627,7 @@ export declare function ttronToken(id: string, name: string, fullName: string, d
|
|
|
511
627
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
512
628
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
513
629
|
*/
|
|
514
|
-
export declare function hederaCoin(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset,
|
|
630
|
+
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
631
|
/**
|
|
516
632
|
* Factory function for Hedera token instances
|
|
517
633
|
*
|
|
@@ -522,13 +638,14 @@ export declare function hederaCoin(id: string, name: string, fullName: string, n
|
|
|
522
638
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
523
639
|
* @param nodeAccountId node account Id from which the transaction will be sent
|
|
524
640
|
* @param tokenId The unique identifier of this token
|
|
641
|
+
* @param contractAddress Contract address of this token, same as tokenId
|
|
525
642
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
526
643
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
527
644
|
* @param network? Optional token network. Defaults to Hedera mainnet.
|
|
528
645
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
529
646
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
530
647
|
*/
|
|
531
|
-
export declare function hederaToken(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset,
|
|
648
|
+
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
649
|
/**
|
|
533
650
|
* Factory function for ALGO token instances.
|
|
534
651
|
*
|
|
@@ -539,7 +656,6 @@ export declare function hederaToken(id: string, name: string, fullName: string,
|
|
|
539
656
|
* @param fullName Complete human-readable name of the token
|
|
540
657
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
541
658
|
* @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
659
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
544
660
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
545
661
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -547,7 +663,7 @@ export declare function hederaToken(id: string, name: string, fullName: string,
|
|
|
547
663
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
548
664
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
549
665
|
*/
|
|
550
|
-
export declare function algoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset,
|
|
666
|
+
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
667
|
/**
|
|
552
668
|
* Factory function for testnet ALGO token instances.
|
|
553
669
|
*
|
|
@@ -557,14 +673,13 @@ export declare function algoToken(id: string, name: string, alias: string | unde
|
|
|
557
673
|
* @param fullName Complete human-readable name of the token
|
|
558
674
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
559
675
|
* @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
676
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
562
677
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
563
678
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
564
679
|
* @param network? Optional token network. Defaults to Algo testnet.
|
|
565
680
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
566
681
|
*/
|
|
567
|
-
export declare function talgoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset,
|
|
682
|
+
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
683
|
/**
|
|
569
684
|
* Factory function for eos token instances.
|
|
570
685
|
*
|
|
@@ -573,6 +688,7 @@ export declare function talgoToken(id: string, name: string, alias: string | und
|
|
|
573
688
|
* @param fullName Complete human-readable name of the token
|
|
574
689
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
575
690
|
* @param contractName Contract address of this token
|
|
691
|
+
* @param contractAddress Contract address of this token
|
|
576
692
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
577
693
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
578
694
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -580,7 +696,7 @@ export declare function talgoToken(id: string, name: string, alias: string | und
|
|
|
580
696
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
581
697
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
582
698
|
*/
|
|
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>;
|
|
699
|
+
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
700
|
/**
|
|
585
701
|
* Factory function for testnet eos token instances.
|
|
586
702
|
*
|
|
@@ -588,6 +704,7 @@ export declare function eosToken(id: string, name: string, fullName: string, dec
|
|
|
588
704
|
* @param name unique identifier of the token
|
|
589
705
|
* @param fullName Complete human-readable name of the token
|
|
590
706
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
707
|
+
* @param contractName Contract address of this token
|
|
591
708
|
* @param contractAddress Contract address of this token
|
|
592
709
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
593
710
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -595,7 +712,7 @@ export declare function eosToken(id: string, name: string, fullName: string, dec
|
|
|
595
712
|
* @param network? Optional token network. Defaults to the testnet EOS network.
|
|
596
713
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
597
714
|
*/
|
|
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>;
|
|
715
|
+
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
716
|
/**
|
|
600
717
|
* Factory function for sol token instances.
|
|
601
718
|
*
|
|
@@ -604,6 +721,7 @@ export declare function teosToken(id: string, name: string, fullName: string, de
|
|
|
604
721
|
* @param fullName Complete human-readable name of the token
|
|
605
722
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
606
723
|
* @param tokenAddress Token address of this token
|
|
724
|
+
* @param contractAddress Contract address of this token
|
|
607
725
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
608
726
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
609
727
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -611,7 +729,7 @@ export declare function teosToken(id: string, name: string, fullName: string, de
|
|
|
611
729
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
612
730
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
613
731
|
*/
|
|
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>;
|
|
732
|
+
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
733
|
/**
|
|
616
734
|
* Factory function for testnet solana token instances.
|
|
617
735
|
*
|
|
@@ -626,7 +744,7 @@ export declare function solToken(id: string, name: string, fullName: string, dec
|
|
|
626
744
|
* @param network? Optional token network. Defaults to the testnet Solana network.
|
|
627
745
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
628
746
|
*/
|
|
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>;
|
|
747
|
+
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
748
|
/**
|
|
631
749
|
* Factory function for ada token instances.
|
|
632
750
|
*
|
|
@@ -707,7 +825,7 @@ export declare function tavaxErc20(id: string, name: string, fullName: string, d
|
|
|
707
825
|
*/
|
|
708
826
|
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
827
|
/**
|
|
710
|
-
* Factory function for
|
|
828
|
+
* Factory function for Amoy testnet polygonErc20 token instances.
|
|
711
829
|
*
|
|
712
830
|
* @param id uuid v4
|
|
713
831
|
* @param name unique identifier of the token
|
|
@@ -722,6 +840,134 @@ export declare function polygonErc20(id: string, name: string, fullName: string,
|
|
|
722
840
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
723
841
|
*/
|
|
724
842
|
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>;
|
|
843
|
+
/**
|
|
844
|
+
* Factory function for arbethErc20 token instances.
|
|
845
|
+
*
|
|
846
|
+
* @param id uuid v4
|
|
847
|
+
* @param name unique identifier of the token
|
|
848
|
+
* @param fullName Complete human-readable name of the token
|
|
849
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
850
|
+
* @param contractAddress Contract address of this token
|
|
851
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
852
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
853
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
854
|
+
* @param network? Optional token network. Defaults to Arbitrum main network.
|
|
855
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
856
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
857
|
+
*/
|
|
858
|
+
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>;
|
|
859
|
+
/**
|
|
860
|
+
* Factory function for Arbitrum Sepolia testnet arbethErc20 token instances.
|
|
861
|
+
*
|
|
862
|
+
* @param id uuid v4
|
|
863
|
+
* @param name unique identifier of the token
|
|
864
|
+
* @param fullName Complete human-readable name of the token
|
|
865
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
866
|
+
* @param contractAddress Contract address of this token
|
|
867
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
868
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
869
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
870
|
+
* @param network? Optional token network. Defaults to the Arbitrum test network.
|
|
871
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
872
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
873
|
+
*/
|
|
874
|
+
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>;
|
|
875
|
+
/**
|
|
876
|
+
* Factory function for opethErc20 token instances.
|
|
877
|
+
*
|
|
878
|
+
* @param id uuid v4
|
|
879
|
+
* @param name unique identifier of the token
|
|
880
|
+
* @param fullName Complete human-readable name of the token
|
|
881
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
882
|
+
* @param contractAddress Contract address of this token
|
|
883
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
884
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
885
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
886
|
+
* @param network? Optional token network. Defaults to Optimism main network.
|
|
887
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
888
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
889
|
+
*/
|
|
890
|
+
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>;
|
|
891
|
+
/**
|
|
892
|
+
* Factory function for Optimism Sepolia testnet opethErc20 token instances.
|
|
893
|
+
*
|
|
894
|
+
* @param id uuid v4
|
|
895
|
+
* @param name unique identifier of the token
|
|
896
|
+
* @param fullName Complete human-readable name of the token
|
|
897
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
898
|
+
* @param contractAddress Contract address of this token
|
|
899
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
900
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
901
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
902
|
+
* @param network? Optional token network. Defaults to the Optimism test network.
|
|
903
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
904
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
905
|
+
*/
|
|
906
|
+
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>;
|
|
907
|
+
/**
|
|
908
|
+
* Factory function for zkethErc20 token instances.
|
|
909
|
+
*
|
|
910
|
+
* @param id uuid v4
|
|
911
|
+
* @param name unique identifier of the token
|
|
912
|
+
* @param fullName Complete human-readable name of the token
|
|
913
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
914
|
+
* @param contractAddress Contract address of this token
|
|
915
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
916
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
917
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
918
|
+
* @param network? Optional token network. Defaults to zkSync mainnet network.
|
|
919
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
920
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
921
|
+
*/
|
|
922
|
+
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>;
|
|
923
|
+
/**
|
|
924
|
+
* Factory function for zkSync Sepolia testnet zkethErc20 token instances.
|
|
925
|
+
*
|
|
926
|
+
* @param id uuid v4
|
|
927
|
+
* @param name unique identifier of the token
|
|
928
|
+
* @param fullName Complete human-readable name of the token
|
|
929
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
930
|
+
* @param contractAddress Contract address of this token
|
|
931
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
932
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
933
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
934
|
+
* @param network? Optional token network. Defaults to the zkSync sepolia test network.
|
|
935
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
936
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
937
|
+
*/
|
|
938
|
+
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>;
|
|
939
|
+
/**
|
|
940
|
+
* Factory function for beraErc20 token instances.
|
|
941
|
+
*
|
|
942
|
+
* @param id uuid v4
|
|
943
|
+
* @param name unique identifier of the token
|
|
944
|
+
* @param fullName Complete human-readable name of the token
|
|
945
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
946
|
+
* @param contractAddress Contract address of this token
|
|
947
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
948
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
949
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
950
|
+
* @param network? Optional token network. Defaults to bera mainnet network.
|
|
951
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
952
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
953
|
+
*/
|
|
954
|
+
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>;
|
|
955
|
+
/**
|
|
956
|
+
* Factory function for zkSync Sepolia testnet beraErc20 token instances.
|
|
957
|
+
*
|
|
958
|
+
* @param id uuid v4
|
|
959
|
+
* @param name unique identifier of the token
|
|
960
|
+
* @param fullName Complete human-readable name of the token
|
|
961
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
962
|
+
* @param contractAddress Contract address of this token
|
|
963
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
964
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
965
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
966
|
+
* @param network? Optional token network. Defaults to the bera test network.
|
|
967
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
968
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
969
|
+
*/
|
|
970
|
+
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
971
|
/**
|
|
726
972
|
* Factory function for xrp token instances.
|
|
727
973
|
*
|
|
@@ -731,6 +977,7 @@ export declare function tpolygonErc20(id: string, name: string, fullName: string
|
|
|
731
977
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
732
978
|
* @param issuerAddress: The address of the issuer of the token,
|
|
733
979
|
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
980
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
734
981
|
* @param domain? the domain of the issuer of the token,
|
|
735
982
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
736
983
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -739,7 +986,7 @@ export declare function tpolygonErc20(id: string, name: string, fullName: string
|
|
|
739
986
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
740
987
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
741
988
|
*/
|
|
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>;
|
|
989
|
+
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
990
|
/**
|
|
744
991
|
* Factory function for testnet cardano token instances.
|
|
745
992
|
*
|
|
@@ -749,6 +996,7 @@ export declare function xrpToken(id: string, name: string, fullName: string, dec
|
|
|
749
996
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
750
997
|
* @param issuerAddress: The address of the issuer of the token,
|
|
751
998
|
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
999
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
752
1000
|
* @param domain? the domain of the issuer of the token,
|
|
753
1001
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
754
1002
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -756,7 +1004,107 @@ export declare function xrpToken(id: string, name: string, fullName: string, dec
|
|
|
756
1004
|
* @param network? Optional token network. Defaults to the testnet Cardano network.
|
|
757
1005
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
758
1006
|
*/
|
|
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>;
|
|
1007
|
+
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>;
|
|
1008
|
+
/**
|
|
1009
|
+
* Factory function for sui token instances.
|
|
1010
|
+
*
|
|
1011
|
+
* @param id uuid v4
|
|
1012
|
+
* @param name unique identifier of the token
|
|
1013
|
+
* @param fullName Complete human-readable name of the token
|
|
1014
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1015
|
+
* @param packageId PackageId of this token
|
|
1016
|
+
* @param module The module of the package with id `packageId`
|
|
1017
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
1018
|
+
* @param contractAddress Contract address of this token formed with `packageId::module::symbol`
|
|
1019
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1020
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1021
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1022
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1023
|
+
* @param network? Optional token network. Defaults to SUI main network.
|
|
1024
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1025
|
+
*/
|
|
1026
|
+
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>;
|
|
1027
|
+
/**
|
|
1028
|
+
* Factory function for testnet sui token instances.
|
|
1029
|
+
*
|
|
1030
|
+
* @param id uuid v4
|
|
1031
|
+
* @param name unique identifier of the token
|
|
1032
|
+
* @param fullName Complete human-readable name of the token
|
|
1033
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1034
|
+
* @param packageId PackageId of this token
|
|
1035
|
+
* @param module The module of the package with id `packageId`
|
|
1036
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
1037
|
+
* @param contractAddress Contract address of this token formed with `packageId::module::symbol`
|
|
1038
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1039
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1040
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1041
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1042
|
+
* @param network? Optional token network. Defaults to SUI test network.
|
|
1043
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1044
|
+
*/
|
|
1045
|
+
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>;
|
|
1046
|
+
/**
|
|
1047
|
+
* Factory function for apt token instances.
|
|
1048
|
+
*
|
|
1049
|
+
* @param id uuid v4
|
|
1050
|
+
* @param name unique identifier of the token
|
|
1051
|
+
* @param fullName Complete human-readable name of the token
|
|
1052
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1053
|
+
* @param assetId Asset Id of this token i.e. the unique identifier of the token for all tokens - fungible, non-fungible and legacy
|
|
1054
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1055
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1056
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1057
|
+
* @param network Optional token network. Defaults to APT main network.
|
|
1058
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1059
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1060
|
+
*/
|
|
1061
|
+
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>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Factory function for Apt NFT collections.
|
|
1064
|
+
*
|
|
1065
|
+
* @param id uuid v4
|
|
1066
|
+
* @param name unique identifier of the NFT collection
|
|
1067
|
+
* @param fullName Complete human-readable name of the NFT collection
|
|
1068
|
+
* @param nftCollectionId collection ID of the non-fungible tokens (NFTs)
|
|
1069
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1070
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1071
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1072
|
+
* @param network Optional token network. Defaults to APT main network.
|
|
1073
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1074
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1075
|
+
*/
|
|
1076
|
+
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>;
|
|
1077
|
+
/**
|
|
1078
|
+
* Factory function for testnet apt token instances.
|
|
1079
|
+
*
|
|
1080
|
+
* @param id uuid v4
|
|
1081
|
+
* @param name unique identifier of the token
|
|
1082
|
+
* @param fullName Complete human-readable name of the token
|
|
1083
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1084
|
+
* @param assetId Asset Id of this token i.e. the unique identifier of the token for all tokens - fungible, non-fungible and legacy
|
|
1085
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1086
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1087
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1088
|
+
* @param network Optional token network. Defaults to the testnet APT network.
|
|
1089
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1090
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1091
|
+
*/
|
|
1092
|
+
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>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Factory function for testnet Apt NFT collections.
|
|
1095
|
+
*
|
|
1096
|
+
* @param id uuid v4
|
|
1097
|
+
* @param name unique identifier of the NFT collection
|
|
1098
|
+
* @param fullName Complete human-readable name of the NFT collection
|
|
1099
|
+
* @param nftCollectionId collection ID of the non-fungible tokens (NFTs)
|
|
1100
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1101
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1102
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1103
|
+
* @param network Optional token network. Defaults to APT test network.
|
|
1104
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1105
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1106
|
+
*/
|
|
1107
|
+
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
1108
|
/**
|
|
761
1109
|
* Factory function for fiat coin instances.
|
|
762
1110
|
*
|
|
@@ -773,5 +1121,36 @@ export declare function txrpToken(id: string, name: string, fullName: string, de
|
|
|
773
1121
|
* @param isToken? Whether or not this coin is a token of another coin
|
|
774
1122
|
*/
|
|
775
1123
|
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>;
|
|
1124
|
+
/**
|
|
1125
|
+
* Factory function for sip10 token instances.
|
|
1126
|
+
*
|
|
1127
|
+
* @param id uuid v4
|
|
1128
|
+
* @param name unique identifier of the token
|
|
1129
|
+
* @param fullName Complete human-readable name of the token
|
|
1130
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1131
|
+
* @param assetId A unique identifier for a token, which is in the form of contractAddress.contractName::tokenName
|
|
1132
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1133
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1134
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1135
|
+
* @param network? Optional token network. Defaults to Stacks main network.
|
|
1136
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1137
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1138
|
+
*/
|
|
1139
|
+
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>;
|
|
1140
|
+
/**
|
|
1141
|
+
* Factory function for testnet sip10 token instances.
|
|
1142
|
+
*
|
|
1143
|
+
* @param id uuid v4
|
|
1144
|
+
* @param name unique identifier of the token
|
|
1145
|
+
* @param fullName Complete human-readable name of the token
|
|
1146
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1147
|
+
* @param assetId A unique identifier for a token, which is in the form of contractAddress.contractName::tokenName
|
|
1148
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1149
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1150
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1151
|
+
* @param network? Optional token network. Defaults to the testnet Stacks network.
|
|
1152
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1153
|
+
*/
|
|
1154
|
+
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
1155
|
export {};
|
|
777
1156
|
//# sourceMappingURL=account.d.ts.map
|