@bitgo-beta/statics 10.0.1-alpha.3 → 10.0.1-alpha.300
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 +2913 -0
- package/dist/src/account.d.ts +521 -43
- package/dist/src/account.d.ts.map +1 -1
- package/dist/src/account.js +853 -114
- package/dist/src/ada.d.ts +3 -1
- package/dist/src/ada.d.ts.map +1 -1
- package/dist/src/ada.js +12 -4
- package/dist/src/avaxp.d.ts +3 -1
- package/dist/src/avaxp.d.ts.map +1 -1
- package/dist/src/avaxp.js +16 -5
- package/dist/src/base.d.ts +1571 -26
- package/dist/src/base.d.ts.map +1 -1
- package/dist/src/base.js +1670 -44
- package/dist/src/coinFeatures.d.ts +80 -0
- package/dist/src/coinFeatures.d.ts.map +1 -0
- package/dist/src/coinFeatures.js +458 -0
- package/dist/src/coins/avaxTokens.d.ts +2 -0
- package/dist/src/coins/avaxTokens.d.ts.map +1 -0
- package/dist/src/coins/avaxTokens.js +93 -0
- package/dist/src/coins/bscTokens.d.ts +2 -0
- package/dist/src/coins/bscTokens.d.ts.map +1 -0
- package/dist/src/coins/bscTokens.js +137 -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 +1351 -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 +278 -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 +1279 -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 +18 -0
- package/dist/src/coins/solTokens.d.ts +2 -0
- package/dist/src/coins/solTokens.d.ts.map +1 -0
- package/dist/src/coins/solTokens.js +330 -0
- package/dist/src/coins.d.ts +2 -0
- package/dist/src/coins.d.ts.map +1 -1
- package/dist/src/coins.js +542 -1014
- package/dist/src/constants.d.ts +3 -0
- package/dist/src/constants.d.ts.map +1 -0
- package/dist/src/constants.js +6 -0
- package/dist/src/errors.d.ts +6 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +16 -2
- package/dist/src/gatekeep.d.ts +2 -0
- package/dist/src/gatekeep.d.ts.map +1 -0
- package/dist/src/gatekeep.js +1794 -0
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +18 -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 +3 -0
- package/dist/src/map.d.ts.map +1 -1
- package/dist/src/map.js +63 -3
- package/dist/src/networks.d.ts +622 -4
- package/dist/src/networks.d.ts.map +1 -1
- package/dist/src/networks.js +853 -50
- package/dist/src/ofc.d.ts +424 -4
- package/dist/src/ofc.d.ts.map +1 -1
- package/dist/src/ofc.js +868 -10
- package/dist/src/tokenConfig.d.ts +124 -12
- package/dist/src/tokenConfig.d.ts.map +1 -1
- package/dist/src/tokenConfig.js +293 -101
- package/dist/src/utxo.d.ts +6 -2
- package/dist/src/utxo.d.ts.map +1 -1
- package/dist/src/utxo.js +82 -4
- package/dist/tsconfig.tsbuildinfo +1 -2717
- package/package.json +2 -2
- package/dist/resources/dot/index.d.ts +0 -3
- package/dist/resources/dot/index.d.ts.map +0 -1
- package/dist/resources/dot/index.js +0 -15
- package/dist/resources/dot/mainnet.d.ts +0 -2
- package/dist/resources/dot/mainnet.d.ts.map +0 -1
- package/dist/resources/dot/mainnet.js +0 -5
- package/dist/resources/dot/westend.d.ts +0 -2
- package/dist/resources/dot/westend.d.ts.map +0 -1
- package/dist/resources/dot/westend.js +0 -5
- package/resources/dot/index.ts +0 -2
- package/resources/dot/mainnet.ts +0 -2
- package/resources/dot/westend.ts +0 -2
package/dist/src/account.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseCoin, BaseUnit, CoinFeature, KeyCurve, UnderlyingAsset } from './base';
|
|
2
2
|
import { AccountNetwork, BaseNetwork, EthereumNetwork, TronNetwork } from './networks';
|
|
3
3
|
export interface AccountConstructorOptions {
|
|
4
|
+
id: string;
|
|
4
5
|
fullName: string;
|
|
5
6
|
name: string;
|
|
6
7
|
alias?: string;
|
|
@@ -23,14 +24,22 @@ export interface AccountConstructorOptions {
|
|
|
23
24
|
*/
|
|
24
25
|
export declare class AccountCoin extends BaseCoin {
|
|
25
26
|
static readonly DEFAULT_FEATURES: CoinFeature[];
|
|
27
|
+
static readonly DEFAULT_FEATURES_EXCLUDE_SINGAPORE: (CoinFeature.EVM_WALLET | CoinFeature.METAMASK_INSTITUTIONAL | CoinFeature.VALUELESS_TRANSFER | CoinFeature.TRANSACTION_DATA | CoinFeature.REQUIRES_BIG_NUMBER | CoinFeature.REQUIRES_KRS_BACKUP_KEY | CoinFeature.PAYGO | CoinFeature.UNSPENT_MODEL | CoinFeature.LIGHTNING_MODEL | CoinFeature.ACCOUNT_MODEL | CoinFeature.CHILD_PAYS_FOR_PARENT | CoinFeature.SUPPORTS_TOKENS | CoinFeature.ENTERPRISE_PAYS_FEES | CoinFeature.REQUIRES_RESERVE | CoinFeature.CUSTODY | CoinFeature.TSS | CoinFeature.STAKING | CoinFeature.LIQUID_STAKING | CoinFeature.DEPRECATED | CoinFeature.GENERIC_TOKEN | CoinFeature.CUSTODY_BITGO_TRUST | CoinFeature.CUSTODY_BITGO_NEW_YORK | CoinFeature.CUSTODY_BITGO_GERMANY | CoinFeature.CUSTODY_BITGO_SWITZERLAND | CoinFeature.CUSTODY_BITGO_FRANKFURT | CoinFeature.CUSTODY_BITGO_SISTER_TRUST_ONE | CoinFeature.CUSTODY_BITGO_KOREA | CoinFeature.CUSTODY_BITGO_EUROPE_APS | CoinFeature.CUSTODY_BITGO_MENA_FZE | CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE | CoinFeature.EXPIRING_TRANSACTIONS | CoinFeature.MULTISIG_COLD | CoinFeature.TSS_COLD | CoinFeature.SHA256_WITH_ECDSA_TSS | CoinFeature.COSMOS_LIKE_COINS | CoinFeature.REBUILD_ON_CUSTODY_SIGNING | CoinFeature.INCREASED_TX_REQUEST_REBUILD_LIMIT | CoinFeature.BULK_TRANSACTION | CoinFeature.DISTRIBUTED_CUSTODY | CoinFeature.BULK_STAKING_TRANSACTION | CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA | CoinFeature.MPCV2 | CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS | CoinFeature.STUCK_TRANSACTION_MANAGEMENT_ONCHAIN | CoinFeature.ETH_ROLLUP_CHAIN | CoinFeature.EIP1559 | CoinFeature.TSS_ENTERPRISE_PAYS_FEES | CoinFeature.ALPHANUMERIC_MEMO_ID | CoinFeature.WALLET_CONNECT_DEFI)[];
|
|
26
28
|
readonly network: AccountNetwork;
|
|
27
29
|
constructor(options: AccountConstructorOptions);
|
|
28
30
|
protected requiredFeatures(): Set<CoinFeature>;
|
|
29
31
|
protected disallowedFeatures(): Set<CoinFeature>;
|
|
30
32
|
}
|
|
33
|
+
export interface GasTankAccountConstructorOptions extends AccountConstructorOptions {
|
|
34
|
+
gasTankLowBalanceAlertFactor: number;
|
|
35
|
+
gasTankMinBalanceRecommendationFactor: number;
|
|
36
|
+
}
|
|
31
37
|
export interface Erc20ConstructorOptions extends AccountConstructorOptions {
|
|
32
38
|
contractAddress: string;
|
|
33
39
|
}
|
|
40
|
+
export interface NFTCollectionIdConstructorOptions extends AccountConstructorOptions {
|
|
41
|
+
nftCollectionId: string;
|
|
42
|
+
}
|
|
34
43
|
export interface StellarCoinConstructorOptions extends AccountConstructorOptions {
|
|
35
44
|
domain: string;
|
|
36
45
|
}
|
|
@@ -40,30 +49,53 @@ export interface HederaCoinConstructorOptions extends AccountConstructorOptions
|
|
|
40
49
|
export interface HederaTokenConstructorOptions extends AccountConstructorOptions {
|
|
41
50
|
nodeAccountId: string;
|
|
42
51
|
tokenId: string;
|
|
43
|
-
|
|
44
|
-
export interface AlgoCoinConstructorOptions extends AccountConstructorOptions {
|
|
45
|
-
tokenURL: string;
|
|
52
|
+
contractAddress: string;
|
|
46
53
|
}
|
|
47
54
|
export interface EosCoinConstructorOptions extends AccountConstructorOptions {
|
|
48
55
|
contractName: string;
|
|
56
|
+
contractAddress: string;
|
|
49
57
|
}
|
|
50
58
|
export interface SolCoinConstructorOptions extends AccountConstructorOptions {
|
|
51
59
|
tokenAddress: string;
|
|
60
|
+
contractAddress: string;
|
|
52
61
|
}
|
|
53
62
|
export interface AdaCoinConstructorOptions extends AccountConstructorOptions {
|
|
54
63
|
policyId: string;
|
|
55
64
|
assetName: string;
|
|
56
65
|
}
|
|
57
|
-
|
|
66
|
+
export interface XrpCoinConstructorOptions extends AccountConstructorOptions {
|
|
67
|
+
issuerAddress: string;
|
|
68
|
+
currencyCode: string;
|
|
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;
|
|
80
|
+
}
|
|
81
|
+
type FiatCoinName = `fiat${string}` | `tfiat${string}`;
|
|
58
82
|
export interface FiatCoinConstructorOptions extends AccountConstructorOptions {
|
|
59
83
|
name: FiatCoinName;
|
|
60
84
|
}
|
|
85
|
+
export interface Sip10TokenConstructorOptions extends AccountConstructorOptions {
|
|
86
|
+
assetId: string;
|
|
87
|
+
}
|
|
61
88
|
export interface ContractAddress extends String {
|
|
62
89
|
__contractaddress_phantom__: never;
|
|
63
90
|
}
|
|
64
91
|
export declare class AccountCoinToken extends AccountCoin {
|
|
65
92
|
constructor(options: AccountConstructorOptions);
|
|
66
93
|
}
|
|
94
|
+
export declare class GasTankAccountCoin extends AccountCoin {
|
|
95
|
+
gasTankLowBalanceAlertFactor: number;
|
|
96
|
+
gasTankMinBalanceRecommendationFactor: number;
|
|
97
|
+
constructor(options: GasTankAccountConstructorOptions);
|
|
98
|
+
}
|
|
67
99
|
/**
|
|
68
100
|
* Some blockchains support tokens which are defined by an address at which they have a smart contract deployed.
|
|
69
101
|
* Examples are ERC20 tokens, and the equivalent on other chains.
|
|
@@ -72,6 +104,13 @@ export declare class ContractAddressDefinedToken extends AccountCoinToken {
|
|
|
72
104
|
contractAddress: ContractAddress;
|
|
73
105
|
constructor(options: Erc20ConstructorOptions);
|
|
74
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
|
+
}
|
|
75
114
|
/**
|
|
76
115
|
* ERC20 token addresses are Base58 formatted on some blockchains.
|
|
77
116
|
*/
|
|
@@ -149,6 +188,7 @@ export declare class HederaCoin extends AccountCoinToken {
|
|
|
149
188
|
export declare class HederaToken extends AccountCoinToken {
|
|
150
189
|
nodeAccountId: string;
|
|
151
190
|
tokenId: string;
|
|
191
|
+
contractAddress: string;
|
|
152
192
|
constructor(options: HederaTokenConstructorOptions);
|
|
153
193
|
}
|
|
154
194
|
/**
|
|
@@ -158,8 +198,7 @@ export declare class HederaToken extends AccountCoinToken {
|
|
|
158
198
|
*
|
|
159
199
|
*/
|
|
160
200
|
export declare class AlgoCoin extends AccountCoinToken {
|
|
161
|
-
|
|
162
|
-
constructor(options: AlgoCoinConstructorOptions);
|
|
201
|
+
constructor(options: AccountConstructorOptions);
|
|
163
202
|
}
|
|
164
203
|
/**
|
|
165
204
|
* The Eos network supports tokens
|
|
@@ -169,6 +208,7 @@ export declare class AlgoCoin extends AccountCoinToken {
|
|
|
169
208
|
*/
|
|
170
209
|
export declare class EosCoin extends AccountCoinToken {
|
|
171
210
|
contractName: string;
|
|
211
|
+
contractAddress: string;
|
|
172
212
|
constructor(options: EosCoinConstructorOptions);
|
|
173
213
|
}
|
|
174
214
|
/**
|
|
@@ -179,6 +219,7 @@ export declare class EosCoin extends AccountCoinToken {
|
|
|
179
219
|
*/
|
|
180
220
|
export declare class SolCoin extends AccountCoinToken {
|
|
181
221
|
tokenAddress: string;
|
|
222
|
+
contractAddress: string;
|
|
182
223
|
constructor(options: SolCoinConstructorOptions);
|
|
183
224
|
}
|
|
184
225
|
/**
|
|
@@ -205,6 +246,70 @@ export declare class AvaxERC20Token extends ContractAddressDefinedToken {
|
|
|
205
246
|
export declare class PolygonERC20Token extends ContractAddressDefinedToken {
|
|
206
247
|
constructor(options: Erc20ConstructorOptions);
|
|
207
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
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* The Xrp network supports tokens
|
|
279
|
+
* Xrp tokens are identified by their issuer address
|
|
280
|
+
* Naming format is similar to XLM
|
|
281
|
+
* <network>:<token>-<issuer>
|
|
282
|
+
*/
|
|
283
|
+
export declare class XrpCoin extends AccountCoinToken {
|
|
284
|
+
issuerAddress: string;
|
|
285
|
+
currencyCode: string;
|
|
286
|
+
domain: string;
|
|
287
|
+
contractAddress: string;
|
|
288
|
+
constructor(options: XrpCoinConstructorOptions);
|
|
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
|
+
}
|
|
208
313
|
/**
|
|
209
314
|
* Fiat currencies, such as USD, EUR, or YEN.
|
|
210
315
|
*/
|
|
@@ -215,9 +320,19 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
215
320
|
protected requiredFeatures(): Set<CoinFeature>;
|
|
216
321
|
protected disallowedFeatures(): Set<CoinFeature>;
|
|
217
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
|
+
}
|
|
218
332
|
/**
|
|
219
333
|
* Factory function for account coin instances.
|
|
220
334
|
*
|
|
335
|
+
* @param id uuid v4
|
|
221
336
|
* @param name unique identifier of the coin
|
|
222
337
|
* @param fullName Complete human-readable name of the coin
|
|
223
338
|
* @param network Network object for this coin
|
|
@@ -229,10 +344,30 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
229
344
|
* @param suffix? Optional coin suffix. Defaults to coin name.
|
|
230
345
|
* @param isToken? Whether or not this account coin is a token of another coin
|
|
231
346
|
*/
|
|
232
|
-
export declare function account(name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, prefix?: string, suffix?: string, isToken?: boolean): Readonly<AccountCoin>;
|
|
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>;
|
|
233
367
|
/**
|
|
234
368
|
* Factory function for erc20 token instances.
|
|
235
369
|
*
|
|
370
|
+
* @param id uuid v4
|
|
236
371
|
* @param name unique identifier of the token
|
|
237
372
|
* @param fullName Complete human-readable name of the token
|
|
238
373
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -244,10 +379,11 @@ export declare function account(name: string, fullName: string, network: Account
|
|
|
244
379
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
245
380
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
246
381
|
*/
|
|
247
|
-
export declare function erc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc20Coin>;
|
|
382
|
+
export declare function erc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc20Coin>;
|
|
248
383
|
/**
|
|
249
384
|
* Factory function for testnet erc20 token instances.
|
|
250
385
|
*
|
|
386
|
+
* @param id uuid v4
|
|
251
387
|
* @param name unique identifier of the token
|
|
252
388
|
* @param fullName Complete human-readable name of the token
|
|
253
389
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -258,10 +394,11 @@ export declare function erc20(name: string, fullName: string, decimalPlaces: num
|
|
|
258
394
|
* @param network? Optional token network. Defaults to the Kovan test network.
|
|
259
395
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
260
396
|
*/
|
|
261
|
-
export declare function terc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<Erc20Coin>;
|
|
397
|
+
export declare function terc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<Erc20Coin>;
|
|
262
398
|
/**
|
|
263
399
|
* Factory function for erc721 token instances.
|
|
264
400
|
*
|
|
401
|
+
* @param id uuid v4
|
|
265
402
|
* @param name unique identifier of the token
|
|
266
403
|
* @param fullName Complete human-readable name of the token
|
|
267
404
|
* @param contractAddress Contract address of this token
|
|
@@ -272,23 +409,40 @@ export declare function terc20(name: string, fullName: string, decimalPlaces: nu
|
|
|
272
409
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
273
410
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
274
411
|
*/
|
|
275
|
-
export declare function erc721(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>;
|
|
412
|
+
export declare function erc721(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>;
|
|
276
413
|
/**
|
|
277
414
|
* Factory function for testnet erc721 token instances.
|
|
278
415
|
*
|
|
416
|
+
* @param id uuid v4
|
|
417
|
+
* @param name unique identifier of the token
|
|
418
|
+
* @param fullName Complete human-readable name of the token
|
|
419
|
+
* @param contractAddress Contract address of this token
|
|
420
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
421
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
422
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
423
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
424
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
425
|
+
*/
|
|
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>;
|
|
427
|
+
/**
|
|
428
|
+
* Factory function for nonstandard token instances.
|
|
429
|
+
*
|
|
430
|
+
* @param id uuid v4
|
|
279
431
|
* @param name unique identifier of the token
|
|
280
432
|
* @param fullName Complete human-readable name of the token
|
|
281
433
|
* @param contractAddress Contract address of this token
|
|
282
434
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
283
435
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
284
436
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
285
|
-
* @param network? Optional token network. Defaults to
|
|
437
|
+
* @param network? Optional token network. Defaults to Ethereum main network.
|
|
438
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
286
439
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
287
440
|
*/
|
|
288
|
-
export declare function
|
|
441
|
+
export declare function nonstandardToken(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<ContractAddressDefinedToken>;
|
|
289
442
|
/**
|
|
290
443
|
* Factory function for erc1155 token instances.
|
|
291
444
|
*
|
|
445
|
+
* @param id uuid v4
|
|
292
446
|
* @param name unique identifier of the token
|
|
293
447
|
* @param fullName Complete human-readable name of the token
|
|
294
448
|
* @param contractAddress Contract address of this token
|
|
@@ -299,23 +453,25 @@ export declare function terc721(name: string, fullName: string, contractAddress:
|
|
|
299
453
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
300
454
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
301
455
|
*/
|
|
302
|
-
export declare function erc1155(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>;
|
|
456
|
+
export declare function erc1155(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>;
|
|
303
457
|
/**
|
|
304
458
|
* Factory function for testnet erc1155 token instances.
|
|
305
459
|
*
|
|
460
|
+
* @param id uuid v4
|
|
306
461
|
* @param name unique identifier of the token
|
|
307
462
|
* @param fullName Complete human-readable name of the token
|
|
308
463
|
* @param contractAddress Contract address of this token
|
|
309
464
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
310
465
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
311
466
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
312
|
-
* @param network? Optional token network. Defaults to
|
|
467
|
+
* @param network? Optional token network. Defaults to Holesky test network.
|
|
313
468
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
314
469
|
*/
|
|
315
|
-
export declare function terc1155(name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>;
|
|
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>;
|
|
316
471
|
/**
|
|
317
472
|
* Factory function for ERC20-compatible account coin instances.
|
|
318
473
|
*
|
|
474
|
+
* @param id uuid v4
|
|
319
475
|
* @param name unique identifier of the token
|
|
320
476
|
* @param fullName Complete human-readable name of the token
|
|
321
477
|
* @param network Network object for this coin
|
|
@@ -327,10 +483,11 @@ export declare function terc1155(name: string, fullName: string, contractAddress
|
|
|
327
483
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
328
484
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
329
485
|
*/
|
|
330
|
-
export declare function erc20CompatibleAccountCoin(name: string, fullName: string, network: EthereumNetwork, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<Erc20CompatibleAccountCoin>;
|
|
486
|
+
export declare function erc20CompatibleAccountCoin(id: string, name: string, fullName: string, network: EthereumNetwork, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, baseUnit: BaseUnit, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<Erc20CompatibleAccountCoin>;
|
|
331
487
|
/**
|
|
332
488
|
* Factory function for celo token instances.
|
|
333
489
|
*
|
|
490
|
+
* @param id uuid v4
|
|
334
491
|
* @param name unique identifier of the token
|
|
335
492
|
* @param fullName Complete human-readable name of the token
|
|
336
493
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -342,10 +499,11 @@ export declare function erc20CompatibleAccountCoin(name: string, fullName: strin
|
|
|
342
499
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
343
500
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
344
501
|
*/
|
|
345
|
-
export declare function celoToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<CeloCoin>;
|
|
502
|
+
export declare function celoToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<CeloCoin>;
|
|
346
503
|
/**
|
|
347
504
|
* Factory function for testnet celo token instances.
|
|
348
505
|
*
|
|
506
|
+
* @param id uuid v4
|
|
349
507
|
* @param name unique identifier of the token
|
|
350
508
|
* @param fullName Complete human-readable name of the token
|
|
351
509
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -356,10 +514,11 @@ export declare function celoToken(name: string, fullName: string, decimalPlaces:
|
|
|
356
514
|
* @param network? Optional token network. Defaults to the testnet CELO network.
|
|
357
515
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
358
516
|
*/
|
|
359
|
-
export declare function tceloToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<CeloCoin>;
|
|
517
|
+
export declare function tceloToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<CeloCoin>;
|
|
360
518
|
/**
|
|
361
519
|
* Factory function for celo token instances.
|
|
362
520
|
*
|
|
521
|
+
* @param id uuid v4
|
|
363
522
|
* @param name unique identifier of the token
|
|
364
523
|
* @param fullName Complete human-readable name of the token
|
|
365
524
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -371,10 +530,11 @@ export declare function tceloToken(name: string, fullName: string, decimalPlaces
|
|
|
371
530
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
372
531
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
373
532
|
*/
|
|
374
|
-
export declare function bscToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<BscCoin>;
|
|
533
|
+
export declare function bscToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<BscCoin>;
|
|
375
534
|
/**
|
|
376
535
|
* Factory function for testnet bsc token instances.
|
|
377
536
|
*
|
|
537
|
+
* @param id uuid v4
|
|
378
538
|
* @param name unique identifier of the token
|
|
379
539
|
* @param fullName Complete human-readable name of the token
|
|
380
540
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -385,10 +545,11 @@ export declare function bscToken(name: string, fullName: string, decimalPlaces:
|
|
|
385
545
|
* @param network? Optional token network. Defaults to the testnet BSC network.
|
|
386
546
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
387
547
|
*/
|
|
388
|
-
export declare function tbscToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<BscCoin>;
|
|
548
|
+
export declare function tbscToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork): Readonly<BscCoin>;
|
|
389
549
|
/**
|
|
390
550
|
* Factory function for Stellar token instances.
|
|
391
551
|
*
|
|
552
|
+
* @param id uuid v4
|
|
392
553
|
* @param name unique identifier of the token
|
|
393
554
|
* @param fullName Complete human-readable name of the token
|
|
394
555
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -401,10 +562,11 @@ export declare function tbscToken(name: string, fullName: string, decimalPlaces:
|
|
|
401
562
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
402
563
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
403
564
|
*/
|
|
404
|
-
export declare function stellarToken(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<StellarCoin>;
|
|
565
|
+
export declare function stellarToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<StellarCoin>;
|
|
405
566
|
/**
|
|
406
567
|
* Factory function for testnet Stellar token instances.
|
|
407
568
|
*
|
|
569
|
+
* @param id uuid v4
|
|
408
570
|
* @param name unique identifier of the token
|
|
409
571
|
* @param fullName Complete human-readable name of the token
|
|
410
572
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -416,10 +578,11 @@ export declare function stellarToken(name: string, fullName: string, decimalPlac
|
|
|
416
578
|
* @param network? Optional token network. Defaults to Stellar testnet.
|
|
417
579
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
418
580
|
*/
|
|
419
|
-
export declare function tstellarToken(name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<StellarCoin>;
|
|
581
|
+
export declare function tstellarToken(id: string, name: string, fullName: string, decimalPlaces: number, asset: UnderlyingAsset, domain?: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<StellarCoin>;
|
|
420
582
|
/**
|
|
421
583
|
* Factory function for tron token instances.
|
|
422
584
|
*
|
|
585
|
+
* @param id uuid v4
|
|
423
586
|
* @param name unique identifier of the token
|
|
424
587
|
* @param fullName Complete human-readable name of the token
|
|
425
588
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -431,10 +594,11 @@ export declare function tstellarToken(name: string, fullName: string, decimalPla
|
|
|
431
594
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
432
595
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
433
596
|
*/
|
|
434
|
-
export declare function tronToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>;
|
|
597
|
+
export declare function tronToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>;
|
|
435
598
|
/**
|
|
436
599
|
* Factory function for testnet tron token instances.
|
|
437
600
|
*
|
|
601
|
+
* @param id uuid v4
|
|
438
602
|
* @param name unique identifier of the token
|
|
439
603
|
* @param fullName Complete human-readable name of the token
|
|
440
604
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -446,10 +610,11 @@ export declare function tronToken(name: string, fullName: string, decimalPlaces:
|
|
|
446
610
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
447
611
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
448
612
|
*/
|
|
449
|
-
export declare function ttronToken(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>;
|
|
613
|
+
export declare function ttronToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: TronNetwork, primaryKeyCurve?: KeyCurve): Readonly<TronErc20Coin>;
|
|
450
614
|
/**
|
|
451
615
|
* Factory function for Hedera coin instances
|
|
452
616
|
*
|
|
617
|
+
* @param id uuid v4
|
|
453
618
|
* @param name unique identifier of the coin
|
|
454
619
|
* @param fullName Complete human-readable name of the token
|
|
455
620
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -461,32 +626,35 @@ export declare function ttronToken(name: string, fullName: string, decimalPlaces
|
|
|
461
626
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
462
627
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
463
628
|
*/
|
|
464
|
-
export declare function hederaCoin(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>;
|
|
465
630
|
/**
|
|
466
631
|
* Factory function for Hedera token instances
|
|
467
632
|
*
|
|
633
|
+
* @param id uuid v4
|
|
468
634
|
* @param name unique identifier of the coin
|
|
469
635
|
* @param fullName Complete human-readable name of the token
|
|
470
636
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
471
637
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
472
638
|
* @param nodeAccountId node account Id from which the transaction will be sent
|
|
473
639
|
* @param tokenId The unique identifier of this token
|
|
640
|
+
* @param contractAddress Contract address of this token, same as tokenId
|
|
474
641
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
475
642
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
476
643
|
* @param network? Optional token network. Defaults to Hedera mainnet.
|
|
477
644
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
478
645
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
479
646
|
*/
|
|
480
|
-
export declare function hederaToken(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>;
|
|
481
648
|
/**
|
|
482
649
|
* Factory function for ALGO token instances.
|
|
483
650
|
*
|
|
651
|
+
* @param id uuid v4
|
|
484
652
|
* @param name unique identifier of the token
|
|
653
|
+
|
|
485
654
|
* @param alias (optional) alternative identifier of the token
|
|
486
655
|
* @param fullName Complete human-readable name of the token
|
|
487
656
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
488
657
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
489
|
-
* @param tokenURL Optional asset Url for more informationa about the asset
|
|
490
658
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
491
659
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
492
660
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -494,30 +662,32 @@ export declare function hederaToken(name: string, fullName: string, network: Acc
|
|
|
494
662
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
495
663
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
496
664
|
*/
|
|
497
|
-
export declare function algoToken(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>;
|
|
498
666
|
/**
|
|
499
667
|
* Factory function for testnet ALGO token instances.
|
|
500
668
|
*
|
|
669
|
+
* @param id uuid v4
|
|
501
670
|
* @param name unique identifier of the token
|
|
502
671
|
* @param alias (optional) alternative identifier of the token
|
|
503
672
|
* @param fullName Complete human-readable name of the token
|
|
504
673
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
505
674
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
506
|
-
* @param tokenURL Optional asset Url for more informationa about the asset
|
|
507
675
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
508
676
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
509
677
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
510
678
|
* @param network? Optional token network. Defaults to Algo testnet.
|
|
511
679
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
512
680
|
*/
|
|
513
|
-
export declare function talgoToken(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>;
|
|
514
682
|
/**
|
|
515
683
|
* Factory function for eos token instances.
|
|
516
684
|
*
|
|
685
|
+
* @param id uuid v4
|
|
517
686
|
* @param name unique identifier of the token
|
|
518
687
|
* @param fullName Complete human-readable name of the token
|
|
519
688
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
520
689
|
* @param contractName Contract address of this token
|
|
690
|
+
* @param contractAddress Contract address of this token
|
|
521
691
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
522
692
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
523
693
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -525,13 +695,15 @@ export declare function talgoToken(name: string, alias: string | undefined, full
|
|
|
525
695
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
526
696
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
527
697
|
*/
|
|
528
|
-
export declare function eosToken(name: string, fullName: string, decimalPlaces: number, contractName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<EosCoin>;
|
|
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>;
|
|
529
699
|
/**
|
|
530
700
|
* Factory function for testnet eos token instances.
|
|
531
701
|
*
|
|
702
|
+
* @param id uuid v4
|
|
532
703
|
* @param name unique identifier of the token
|
|
533
704
|
* @param fullName Complete human-readable name of the token
|
|
534
705
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
706
|
+
* @param contractName Contract address of this token
|
|
535
707
|
* @param contractAddress Contract address of this token
|
|
536
708
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
537
709
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
@@ -539,14 +711,16 @@ export declare function eosToken(name: string, fullName: string, decimalPlaces:
|
|
|
539
711
|
* @param network? Optional token network. Defaults to the testnet EOS network.
|
|
540
712
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
541
713
|
*/
|
|
542
|
-
export declare function teosToken(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>;
|
|
543
715
|
/**
|
|
544
716
|
* Factory function for sol token instances.
|
|
545
717
|
*
|
|
718
|
+
* @param id uuid v4
|
|
546
719
|
* @param name unique identifier of the token
|
|
547
720
|
* @param fullName Complete human-readable name of the token
|
|
548
721
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
549
722
|
* @param tokenAddress Token address of this token
|
|
723
|
+
* @param contractAddress Contract address of this token
|
|
550
724
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
551
725
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
552
726
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -554,10 +728,11 @@ export declare function teosToken(name: string, fullName: string, decimalPlaces:
|
|
|
554
728
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
555
729
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
556
730
|
*/
|
|
557
|
-
export declare function solToken(name: string, fullName: string, decimalPlaces: number, tokenAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<SolCoin>;
|
|
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>;
|
|
558
732
|
/**
|
|
559
733
|
* Factory function for testnet solana token instances.
|
|
560
734
|
*
|
|
735
|
+
* @param id uuid v4
|
|
561
736
|
* @param name unique identifier of the token
|
|
562
737
|
* @param fullName Complete human-readable name of the token
|
|
563
738
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -568,10 +743,11 @@ export declare function solToken(name: string, fullName: string, decimalPlaces:
|
|
|
568
743
|
* @param network? Optional token network. Defaults to the testnet Solana network.
|
|
569
744
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
570
745
|
*/
|
|
571
|
-
export declare function tsolToken(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>;
|
|
572
747
|
/**
|
|
573
748
|
* Factory function for ada token instances.
|
|
574
749
|
*
|
|
750
|
+
* @param id uuid v4
|
|
575
751
|
* @param name unique identifier of the token
|
|
576
752
|
* @param fullName Complete human-readable name of the token
|
|
577
753
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -583,10 +759,11 @@ export declare function tsolToken(name: string, fullName: string, decimalPlaces:
|
|
|
583
759
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
584
760
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
585
761
|
*/
|
|
586
|
-
export declare function adaToken(name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AdaCoin>;
|
|
762
|
+
export declare function adaToken(id: string, name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AdaCoin>;
|
|
587
763
|
/**
|
|
588
764
|
* Factory function for testnet cardano token instances.
|
|
589
765
|
*
|
|
766
|
+
* @param id uuid v4
|
|
590
767
|
* @param name unique identifier of the token
|
|
591
768
|
* @param fullName Complete human-readable name of the token
|
|
592
769
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -597,10 +774,11 @@ export declare function adaToken(name: string, fullName: string, decimalPlaces:
|
|
|
597
774
|
* @param network? Optional token network. Defaults to the testnet Cardano network.
|
|
598
775
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
599
776
|
*/
|
|
600
|
-
export declare function tadaToken(name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<AdaCoin>;
|
|
777
|
+
export declare function tadaToken(id: string, name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<AdaCoin>;
|
|
601
778
|
/**
|
|
602
779
|
* Factory function for avaxErc20 token instances.
|
|
603
780
|
*
|
|
781
|
+
* @param id uuid v4
|
|
604
782
|
* @param name unique identifier of the token
|
|
605
783
|
* @param fullName Complete human-readable name of the token
|
|
606
784
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -612,10 +790,11 @@ export declare function tadaToken(name: string, fullName: string, decimalPlaces:
|
|
|
612
790
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
613
791
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
614
792
|
*/
|
|
615
|
-
export declare function avaxErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>;
|
|
793
|
+
export declare function avaxErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>;
|
|
616
794
|
/**
|
|
617
795
|
* Factory function for testnet avaxErc20 token instances.
|
|
618
796
|
*
|
|
797
|
+
* @param id uuid v4
|
|
619
798
|
* @param name unique identifier of the token
|
|
620
799
|
* @param fullName Complete human-readable name of the token
|
|
621
800
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -627,10 +806,11 @@ export declare function avaxErc20(name: string, fullName: string, decimalPlaces:
|
|
|
627
806
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
628
807
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
629
808
|
*/
|
|
630
|
-
export declare function tavaxErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>;
|
|
809
|
+
export declare function tavaxErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AvaxERC20Token>;
|
|
631
810
|
/**
|
|
632
811
|
* Factory function for polygonErc20 token instances.
|
|
633
812
|
*
|
|
813
|
+
* @param id uuid v4
|
|
634
814
|
* @param name unique identifier of the token
|
|
635
815
|
* @param fullName Complete human-readable name of the token
|
|
636
816
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -642,10 +822,11 @@ export declare function tavaxErc20(name: string, fullName: string, decimalPlaces
|
|
|
642
822
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
643
823
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
644
824
|
*/
|
|
645
|
-
export declare function polygonErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolygonERC20Token>;
|
|
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>;
|
|
646
826
|
/**
|
|
647
|
-
* Factory function for
|
|
827
|
+
* Factory function for Amoy testnet polygonErc20 token instances.
|
|
648
828
|
*
|
|
829
|
+
* @param id uuid v4
|
|
649
830
|
* @param name unique identifier of the token
|
|
650
831
|
* @param fullName Complete human-readable name of the token
|
|
651
832
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
@@ -657,11 +838,277 @@ export declare function polygonErc20(name: string, fullName: string, decimalPlac
|
|
|
657
838
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
658
839
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
659
840
|
*/
|
|
660
|
-
export declare function tpolygonErc20(name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolygonERC20Token>;
|
|
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>;
|
|
970
|
+
/**
|
|
971
|
+
* Factory function for xrp token instances.
|
|
972
|
+
*
|
|
973
|
+
* @param id uuid v4
|
|
974
|
+
* @param name unique identifier of the token
|
|
975
|
+
* @param fullName Complete human-readable name of the token
|
|
976
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
977
|
+
* @param issuerAddress: The address of the issuer of the token,
|
|
978
|
+
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
979
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
980
|
+
* @param domain? the domain of the issuer of the token,
|
|
981
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
982
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
983
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
984
|
+
* @param network? Optional token network. Defaults to Cardano main network.
|
|
985
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
986
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
987
|
+
*/
|
|
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>;
|
|
989
|
+
/**
|
|
990
|
+
* Factory function for testnet cardano token instances.
|
|
991
|
+
*
|
|
992
|
+
* @param id uuid v4
|
|
993
|
+
* @param name unique identifier of the token
|
|
994
|
+
* @param fullName Complete human-readable name of the token
|
|
995
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
996
|
+
* @param issuerAddress: The address of the issuer of the token,
|
|
997
|
+
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
998
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
999
|
+
* @param domain? the domain of the issuer of the token,
|
|
1000
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1001
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1002
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1003
|
+
* @param network? Optional token network. Defaults to the testnet Cardano network.
|
|
1004
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1005
|
+
*/
|
|
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>;
|
|
661
1107
|
/**
|
|
662
1108
|
* Factory function for fiat coin instances.
|
|
663
1109
|
*
|
|
664
|
-
* @param
|
|
1110
|
+
* @param id uuid v4
|
|
1111
|
+
* @param name unique identifier of the coin, should start with 'fiat' or 'tfiat' followed by the 3-char ISO-4217 alphabetical code
|
|
665
1112
|
* @param fullName Complete human-readable name of the coin
|
|
666
1113
|
* @param network Network object for this coin
|
|
667
1114
|
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
|
|
@@ -672,6 +1119,37 @@ export declare function tpolygonErc20(name: string, fullName: string, decimalPla
|
|
|
672
1119
|
* @param suffix? Optional coin suffix. Defaults to coin name.
|
|
673
1120
|
* @param isToken? Whether or not this coin is a token of another coin
|
|
674
1121
|
*/
|
|
675
|
-
export declare function fiat(name: FiatCoinName, fullName: string, network: BaseNetwork, decimalPlaces: number, asset: UnderlyingAsset, features?: CoinFeature[], primaryKeyCurve?: KeyCurve, prefix?: string, suffix?: string, isToken?: boolean): Readonly<FiatCoin>;
|
|
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>;
|
|
676
1154
|
export {};
|
|
677
1155
|
//# sourceMappingURL=account.d.ts.map
|