@bitgo-beta/statics 15.1.1-beta.211 → 15.1.1-beta.2111
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/dist/src/account.d.ts +1187 -73
- package/dist/src/account.d.ts.map +1 -1
- package/dist/src/account.js +1794 -161
- package/dist/src/ada.d.ts.map +1 -1
- package/dist/src/ada.js +7 -3
- package/dist/src/allCoinsAndTokens.d.ts +2 -0
- package/dist/src/allCoinsAndTokens.d.ts.map +1 -0
- package/dist/src/allCoinsAndTokens.js +1907 -0
- package/dist/src/avaxp.d.ts.map +1 -1
- package/dist/src/avaxp.js +8 -3
- package/dist/src/base.d.ts +2960 -45
- package/dist/src/base.d.ts.map +1 -1
- package/dist/src/base.js +3085 -56
- package/dist/src/canton.d.ts +34 -0
- package/dist/src/canton.d.ts.map +1 -0
- package/dist/src/canton.js +51 -0
- package/dist/src/coinFeatures.d.ts +134 -0
- package/dist/src/coinFeatures.d.ts.map +1 -0
- package/dist/src/coinFeatures.js +817 -0
- package/dist/src/coins/adaTokens.d.ts +2 -0
- package/dist/src/coins/adaTokens.d.ts.map +1 -0
- package/dist/src/coins/adaTokens.js +27 -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 +133 -0
- package/dist/src/coins/botOfcTokens.d.ts +3 -0
- package/dist/src/coins/botOfcTokens.d.ts.map +1 -0
- package/dist/src/coins/botOfcTokens.js +309 -0
- package/dist/src/coins/botTokens.d.ts +3 -0
- package/dist/src/coins/botTokens.d.ts.map +1 -0
- package/dist/src/coins/botTokens.js +966 -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 +421 -0
- package/dist/src/coins/cantonTokens.d.ts +2 -0
- package/dist/src/coins/cantonTokens.d.ts.map +1 -0
- package/dist/src/coins/cantonTokens.js +134 -0
- package/dist/src/coins/cosmosTokens.d.ts +2 -0
- package/dist/src/coins/cosmosTokens.d.ts.map +1 -0
- package/dist/src/coins/cosmosTokens.js +14 -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 +2086 -0
- package/dist/src/coins/erc7984Tokens.d.ts +17 -0
- package/dist/src/coins/erc7984Tokens.d.ts.map +1 -0
- package/dist/src/coins/erc7984Tokens.js +40 -0
- package/dist/src/coins/generateERC20.d.ts +36 -0
- package/dist/src/coins/generateERC20.d.ts.map +1 -0
- package/dist/src/coins/generateERC20.js +46 -0
- package/dist/src/coins/hoodethTokens.d.ts +2 -0
- package/dist/src/coins/hoodethTokens.d.ts.map +1 -0
- package/dist/src/coins/hoodethTokens.js +318 -0
- package/dist/src/coins/jettonTokens.d.ts +2 -0
- package/dist/src/coins/jettonTokens.d.ts.map +1 -0
- package/dist/src/coins/jettonTokens.js +19 -0
- package/dist/src/coins/nep141Tokens.d.ts +2 -0
- package/dist/src/coins/nep141Tokens.d.ts.map +1 -0
- package/dist/src/coins/nep141Tokens.js +18 -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 +1500 -0
- package/dist/src/coins/ofcErc20Coins.d.ts +4 -0
- package/dist/src/coins/ofcErc20Coins.d.ts.map +1 -0
- package/dist/src/coins/ofcErc20Coins.js +1902 -0
- package/dist/src/coins/ofcHoodethTokens.d.ts +2 -0
- package/dist/src/coins/ofcHoodethTokens.d.ts.map +1 -0
- package/dist/src/coins/ofcHoodethTokens.js +316 -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 +218 -0
- package/dist/src/coins/polyxTokens.d.ts +2 -0
- package/dist/src/coins/polyxTokens.d.ts.map +1 -0
- package/dist/src/coins/polyxTokens.js +22 -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 +3 -0
- package/dist/src/coins/solTokens.d.ts.map +1 -0
- package/dist/src/coins/solTokens.js +538 -0
- package/dist/src/coins/vetTokens.d.ts +2 -0
- package/dist/src/coins/vetTokens.d.ts.map +1 -0
- package/dist/src/coins/vetTokens.js +11 -0
- package/dist/src/coins.d.ts +22 -1
- package/dist/src/coins.d.ts.map +1 -1
- package/dist/src/coins.js +477 -2059
- 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/errors.d.ts +9 -0
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/errors.js +23 -2
- package/dist/src/flrp.d.ts +40 -0
- package/dist/src/flrp.d.ts.map +1 -0
- package/dist/src/flrp.js +66 -0
- package/dist/src/hypeevm.d.ts +28 -0
- package/dist/src/hypeevm.d.ts.map +1 -0
- package/dist/src/hypeevm.js +60 -0
- package/dist/src/index.d.ts +5 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +49 -3
- package/dist/src/kaspa.d.ts +34 -0
- package/dist/src/kaspa.d.ts.map +1 -0
- package/dist/src/kaspa.js +63 -0
- package/dist/src/lightning.d.ts +43 -0
- package/dist/src/lightning.d.ts.map +1 -0
- package/dist/src/lightning.js +64 -0
- package/dist/src/map.d.ts +34 -1
- package/dist/src/map.d.ts.map +1 -1
- package/dist/src/map.js +251 -35
- package/dist/src/networkFeatureMapForTokens.d.ts +30 -0
- package/dist/src/networkFeatureMapForTokens.d.ts.map +1 -0
- package/dist/src/networkFeatureMapForTokens.js +91 -0
- package/dist/src/networks.d.ts +2081 -68
- package/dist/src/networks.d.ts.map +1 -1
- package/dist/src/networks.js +2554 -104
- package/dist/src/ofc.d.ts +695 -3
- package/dist/src/ofc.d.ts.map +1 -1
- package/dist/src/ofc.js +1653 -28
- package/dist/src/tokenConfig.d.ts +717 -114
- package/dist/src/tokenConfig.d.ts.map +1 -1
- package/dist/src/tokenConfig.js +1132 -233
- package/dist/src/utxo.d.ts +6 -2
- package/dist/src/utxo.d.ts.map +1 -1
- package/dist/src/utxo.js +132 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -3
- package/.mocharc.js +0 -10
- package/.prettierignore +0 -2
- package/CHANGELOG.md +0 -1504
package/dist/src/account.d.ts
CHANGED
|
@@ -1,5 +1,85 @@
|
|
|
1
1
|
import { BaseCoin, BaseUnit, CoinFeature, KeyCurve, UnderlyingAsset } from './base';
|
|
2
2
|
import { AccountNetwork, BaseNetwork, EthereumNetwork, TronNetwork } from './networks';
|
|
3
|
+
/**
|
|
4
|
+
* This is the program id against sol token program.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ProgramID {
|
|
7
|
+
TokenProgramId = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
|
|
8
|
+
Token2022ProgramId = "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Token-2022 (SPL Token Extensions) that BitGo has explicit custody handling for.
|
|
12
|
+
* This set is the onboarding safety gate: a mint whose
|
|
13
|
+
* TLV data declares any extension NOT represented here must be rejected at onboarding
|
|
14
|
+
* and escalated to engineering — no soft pass.
|
|
15
|
+
*/
|
|
16
|
+
export declare enum SolTokenExtensionType {
|
|
17
|
+
TransferFee = "transferFee",
|
|
18
|
+
TransferHook = "transferHook",
|
|
19
|
+
PermanentDelegate = "permanentDelegate",
|
|
20
|
+
InterestBearing = "interestBearing",
|
|
21
|
+
ScaledUiAmount = "scaledUiAmount",
|
|
22
|
+
DefaultAccountState = "defaultAccountState"
|
|
23
|
+
}
|
|
24
|
+
/** On-chain authority addresses relevant to Token-2022 extensions, captured at onboarding. */
|
|
25
|
+
export interface SolTokenAuthorities {
|
|
26
|
+
freezeAuthority?: string;
|
|
27
|
+
mintAuthority?: string;
|
|
28
|
+
transferFeeConfigAuthority?: string;
|
|
29
|
+
withdrawWithheldAuthority?: string;
|
|
30
|
+
permanentDelegate?: string;
|
|
31
|
+
rateAuthority?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface SolTransferFeeConfig {
|
|
34
|
+
transferFeeBasisPoints: number;
|
|
35
|
+
/** Raw base units, stringified to avoid precision loss. */
|
|
36
|
+
maximumFee: string;
|
|
37
|
+
}
|
|
38
|
+
export interface SolDefaultAccountStateConfig {
|
|
39
|
+
/** True when the mint's Default Account State is Frozen. */
|
|
40
|
+
frozen: boolean;
|
|
41
|
+
/** True when a permissionless thaw program (Token ACL etc.) is associated */
|
|
42
|
+
permissionlessThaw: boolean;
|
|
43
|
+
}
|
|
44
|
+
export interface SolInterestBearingConfig {
|
|
45
|
+
/** Annual interest rate in basis points. */
|
|
46
|
+
rateBasisPoints: number;
|
|
47
|
+
/** 'continuous' (issuer mints frequently) or 'redeemOnMaturity' (accrued not transferable until settlement). */
|
|
48
|
+
settlementModel?: 'continuous' | 'redeemOnMaturity';
|
|
49
|
+
}
|
|
50
|
+
export interface SolScaledUiAmountConfig {
|
|
51
|
+
/** UiAmountMultiplier active at onboarding; time-series history is tracked off-chain from day one. */
|
|
52
|
+
initialMultiplier: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Per-mint Token-2022 extension configuration detected at onboarding.
|
|
56
|
+
* Absent => classic SPL / no modeled extensions.
|
|
57
|
+
*/
|
|
58
|
+
export interface SolTokenExtensions {
|
|
59
|
+
/** Every extension detected on the mint's TLV data. Onboarding hard-stops if any is not a SolTokenExtensionType. */
|
|
60
|
+
detected: SolTokenExtensionType[];
|
|
61
|
+
authorities?: SolTokenAuthorities;
|
|
62
|
+
/** Resolved human-readable issuer name for notifications and transaction history. */
|
|
63
|
+
issuerName?: string;
|
|
64
|
+
transferFee?: SolTransferFeeConfig;
|
|
65
|
+
/** Transfer Hook program id. The extra-account-meta list is resolved fresh at tx time — never stored. */
|
|
66
|
+
transferHookProgramId?: string;
|
|
67
|
+
interestBearing?: SolInterestBearingConfig;
|
|
68
|
+
scaledUiAmount?: SolScaledUiAmountConfig;
|
|
69
|
+
defaultAccountState?: SolDefaultAccountStateConfig;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* spl-token ExtensionType names BitGo recognizes at onboarding.
|
|
73
|
+
* Two groups: extensions with custody handling (modeled as SolTokenExtensionType), and
|
|
74
|
+
* holding-only extensions that need no special handling but must still be *recognized*
|
|
75
|
+
* (else common mints carrying MetadataPointer/TokenMetadata would be wrongly rejected).
|
|
76
|
+
*/
|
|
77
|
+
export declare const SUPPORTED_SOL_TOKEN_EXTENSION_NAMES: ReadonlySet<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Returns the detected extensions BitGo has no handling code for.
|
|
80
|
+
* A non-empty result MUST hard-stop onboarding.
|
|
81
|
+
*/
|
|
82
|
+
export declare function getUnsupportedSolTokenExtensions(detected: readonly string[]): string[];
|
|
3
83
|
export interface AccountConstructorOptions {
|
|
4
84
|
id: string;
|
|
5
85
|
fullName: string;
|
|
@@ -24,14 +104,37 @@ export interface AccountConstructorOptions {
|
|
|
24
104
|
*/
|
|
25
105
|
export declare class AccountCoin extends BaseCoin {
|
|
26
106
|
static readonly DEFAULT_FEATURES: CoinFeature[];
|
|
107
|
+
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.MERGE_UTXOS | CoinFeature.FANOUT_UTXOS | 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.SUNSETTING | 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.CUSTODY_BITGO_INDIA | CoinFeature.EXPIRING_TRANSACTIONS | CoinFeature.MULTISIG_COLD | CoinFeature.TSS_COLD | CoinFeature.TSS_SUPPORT_IN_PROGRESS | 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.CUSTODY_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.FEES_PAID_WITH_TOKEN | CoinFeature.ALPHANUMERIC_MEMO_ID | CoinFeature.WALLET_CONNECT_DEFI | CoinFeature.TSS_SUPPORT_GATED | CoinFeature.MULTISIG_SUPPORT_GATED | CoinFeature.SHARED_EVM_SIGNING | CoinFeature.SHARED_EVM_SDK | CoinFeature.SUPPORTS_ERC20 | CoinFeature.SUPPORTS_ERC721 | CoinFeature.SHARED_COSMOS_SDK | CoinFeature.SHARED_COSMOS_WP | CoinFeature.COSMOS_COMMON_BGA | CoinFeature.EVM_COIN | CoinFeature.MULTISIG | CoinFeature.EVM_COMPATIBLE_IMS | CoinFeature.EVM_COMPATIBLE_UI | CoinFeature.EVM_UNSIGNED_SWEEP_RECOVERY | CoinFeature.EVM_NON_BITGO_RECOVERY | CoinFeature.REBASE_TOKEN | CoinFeature.EVM_COMPATIBLE_WP | CoinFeature.EVM_KEYRING_UNSUPPORTED | CoinFeature.RESTRICTED | CoinFeature.SHARED_EVM_MESSAGE_SIGNING | CoinFeature.STABLECOIN | CoinFeature.ALTERNATIVE_ADDRESS_IDENTIFIER | CoinFeature.TOKEN_STANDARD_USES_ALTERNATIVE_ADDRESS_IDENTIFIER | CoinFeature.SUPPORTS_ONE_STEP_DEPOSIT | CoinFeature.REQUIRES_WALLET_INITIALIZATION_TRANSACTION | CoinFeature.REQUIRES_DEPOSIT_ACCEPTANCE_TRANSACTION | CoinFeature.ALLOWS_NEGATIVE_FEE | CoinFeature.CONFIDENTIAL_TRANSFER | CoinFeature.REQUIRES_DECRYPTION_DELEGATION | CoinFeature.RECEIPT_TOKEN | CoinFeature.RECEIPT_TOKEN_APPROXIMATE_PRICE | CoinFeature.BYOV_VALIDATOR | CoinFeature.TOKENIZED_EQUITY | CoinFeature.BITGO_TOKENIZED_EQUITY | CoinFeature.TSS_VERIFY_USE_SERIALIZED_TX_HEX)[];
|
|
27
108
|
readonly network: AccountNetwork;
|
|
28
109
|
constructor(options: AccountConstructorOptions);
|
|
29
110
|
protected requiredFeatures(): Set<CoinFeature>;
|
|
30
111
|
protected disallowedFeatures(): Set<CoinFeature>;
|
|
112
|
+
static getFeaturesExcluding(excludedFeatures: CoinFeature[]): CoinFeature[];
|
|
113
|
+
static getFeaturesByTypeExcluding(excludedFeatures: CoinFeature[], baseFeatures?: CoinFeature[]): CoinFeature[];
|
|
114
|
+
}
|
|
115
|
+
export interface GasTankAccountConstructorOptions extends AccountConstructorOptions {
|
|
116
|
+
gasTankLowBalanceAlertFactor: number;
|
|
117
|
+
gasTankMinBalanceRecommendationFactor: number;
|
|
118
|
+
gasTankToken?: string;
|
|
31
119
|
}
|
|
32
120
|
export interface Erc20ConstructorOptions extends AccountConstructorOptions {
|
|
33
121
|
contractAddress: string;
|
|
34
122
|
}
|
|
123
|
+
export interface Erc721ConstructorOptions extends AccountConstructorOptions {
|
|
124
|
+
contractAddress: string;
|
|
125
|
+
}
|
|
126
|
+
export interface Erc7984ConstructorOptions extends AccountConstructorOptions {
|
|
127
|
+
contractAddress: string;
|
|
128
|
+
/** Plain ERC-20 locked in the wrapper as escrow. Set for Hoodi test pairs first. */
|
|
129
|
+
underlyingErc20Address?: string;
|
|
130
|
+
/** On-chain `rate()` as a decimal string (uint256). Set for Hoodi test pairs first. */
|
|
131
|
+
rate?: string;
|
|
132
|
+
/** When true, non-zero→non-zero approve may revert (USDT-style); WP must approve(0) first. */
|
|
133
|
+
requiresApprovalReset?: boolean;
|
|
134
|
+
}
|
|
135
|
+
export interface NFTCollectionIdConstructorOptions extends AccountConstructorOptions {
|
|
136
|
+
nftCollectionId: string;
|
|
137
|
+
}
|
|
35
138
|
export interface StellarCoinConstructorOptions extends AccountConstructorOptions {
|
|
36
139
|
domain: string;
|
|
37
140
|
}
|
|
@@ -40,36 +143,91 @@ export interface HederaCoinConstructorOptions extends AccountConstructorOptions
|
|
|
40
143
|
}
|
|
41
144
|
export interface HederaTokenConstructorOptions extends AccountConstructorOptions {
|
|
42
145
|
nodeAccountId: string;
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
export interface AlgoCoinConstructorOptions extends AccountConstructorOptions {
|
|
46
|
-
tokenURL: string;
|
|
146
|
+
contractAddress: string;
|
|
47
147
|
}
|
|
48
148
|
export interface EosCoinConstructorOptions extends AccountConstructorOptions {
|
|
49
149
|
contractName: string;
|
|
150
|
+
contractAddress: string;
|
|
151
|
+
symbol?: string;
|
|
50
152
|
}
|
|
51
153
|
export interface SolCoinConstructorOptions extends AccountConstructorOptions {
|
|
52
154
|
tokenAddress: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
assetName: string;
|
|
155
|
+
contractAddress: string;
|
|
156
|
+
programId: string;
|
|
157
|
+
tokenExtensions?: SolTokenExtensions;
|
|
57
158
|
}
|
|
58
159
|
export interface XrpCoinConstructorOptions extends AccountConstructorOptions {
|
|
59
160
|
issuerAddress: string;
|
|
60
161
|
currencyCode: string;
|
|
61
162
|
domain: string;
|
|
163
|
+
contractAddress: string;
|
|
164
|
+
}
|
|
165
|
+
export interface XrpMptCoinConstructorOptions extends AccountConstructorOptions {
|
|
166
|
+
mptIssuanceId: string;
|
|
167
|
+
canTransfer: boolean;
|
|
168
|
+
assetScale: number;
|
|
169
|
+
}
|
|
170
|
+
export interface SuiCoinConstructorOptions extends AccountConstructorOptions {
|
|
171
|
+
packageId: string;
|
|
172
|
+
module: string;
|
|
173
|
+
symbol: string;
|
|
174
|
+
contractAddress: string;
|
|
62
175
|
}
|
|
63
|
-
|
|
176
|
+
export interface AptCoinConstructorOptions extends AccountConstructorOptions {
|
|
177
|
+
assetId: string;
|
|
178
|
+
}
|
|
179
|
+
export interface TaoCoinConstructorOptions extends AccountConstructorOptions {
|
|
180
|
+
subnetId: string;
|
|
181
|
+
}
|
|
182
|
+
export interface PolyxCoinConstructorOptions extends AccountConstructorOptions {
|
|
183
|
+
ticker: string;
|
|
184
|
+
assetId: string;
|
|
185
|
+
}
|
|
186
|
+
type FiatCoinName = `fiat${string}` | `tfiat${string}`;
|
|
64
187
|
export interface FiatCoinConstructorOptions extends AccountConstructorOptions {
|
|
65
188
|
name: FiatCoinName;
|
|
66
189
|
}
|
|
190
|
+
export interface Sip10TokenConstructorOptions extends AccountConstructorOptions {
|
|
191
|
+
assetId: string;
|
|
192
|
+
}
|
|
193
|
+
export interface Nep141TokenConstructorOptions extends AccountConstructorOptions {
|
|
194
|
+
contractAddress: string;
|
|
195
|
+
storageDepositAmount: string;
|
|
196
|
+
}
|
|
197
|
+
export interface VetTokenConstructorOptions extends AccountConstructorOptions {
|
|
198
|
+
contractAddress: string;
|
|
199
|
+
gasTankToken?: string;
|
|
200
|
+
}
|
|
201
|
+
export interface CosmosTokenConstructorOptions extends AccountConstructorOptions {
|
|
202
|
+
denom: string;
|
|
203
|
+
}
|
|
204
|
+
export interface JettonTokenConstructorOptions extends AccountConstructorOptions {
|
|
205
|
+
contractAddress: string;
|
|
206
|
+
}
|
|
207
|
+
export interface AdaTokenConstructorOptions extends AccountConstructorOptions {
|
|
208
|
+
policyId: string;
|
|
209
|
+
assetName: string;
|
|
210
|
+
contractAddress: string;
|
|
211
|
+
}
|
|
212
|
+
export interface CantonTokenConstructorOptions extends AccountConstructorOptions {
|
|
213
|
+
baseUrl: string;
|
|
214
|
+
contractAddress: string;
|
|
215
|
+
}
|
|
216
|
+
export interface Tip20TokenConstructorOptions extends AccountConstructorOptions {
|
|
217
|
+
contractAddress: string;
|
|
218
|
+
}
|
|
67
219
|
export interface ContractAddress extends String {
|
|
68
220
|
__contractaddress_phantom__: never;
|
|
69
221
|
}
|
|
70
222
|
export declare class AccountCoinToken extends AccountCoin {
|
|
71
223
|
constructor(options: AccountConstructorOptions);
|
|
72
224
|
}
|
|
225
|
+
export declare class GasTankAccountCoin extends AccountCoin {
|
|
226
|
+
gasTankLowBalanceAlertFactor: number;
|
|
227
|
+
gasTankMinBalanceRecommendationFactor: number;
|
|
228
|
+
gasTankToken?: string;
|
|
229
|
+
constructor(options: GasTankAccountConstructorOptions);
|
|
230
|
+
}
|
|
73
231
|
/**
|
|
74
232
|
* Some blockchains support tokens which are defined by an address at which they have a smart contract deployed.
|
|
75
233
|
* Examples are ERC20 tokens, and the equivalent on other chains.
|
|
@@ -78,6 +236,13 @@ export declare class ContractAddressDefinedToken extends AccountCoinToken {
|
|
|
78
236
|
contractAddress: ContractAddress;
|
|
79
237
|
constructor(options: Erc20ConstructorOptions);
|
|
80
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* Used for blockchains that support NFT collections.
|
|
241
|
+
*/
|
|
242
|
+
export declare class NFTCollectionIdDefinedToken extends AccountCoinToken {
|
|
243
|
+
nftCollectionId: string;
|
|
244
|
+
constructor(options: NFTCollectionIdConstructorOptions);
|
|
245
|
+
}
|
|
81
246
|
/**
|
|
82
247
|
* ERC20 token addresses are Base58 formatted on some blockchains.
|
|
83
248
|
*/
|
|
@@ -105,6 +270,24 @@ export declare class Erc721Coin extends ContractAddressDefinedToken {
|
|
|
105
270
|
*/
|
|
106
271
|
export declare class Erc1155Coin extends ContractAddressDefinedToken {
|
|
107
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* ERC-7984 is the confidential token standard for fhEVM-enabled blockchains (Zama).
|
|
275
|
+
* Token balances are stored as FHE-encrypted ciphertexts; transfers use confidentialTransfer()
|
|
276
|
+
* instead of the standard ERC-20 transfer(). Balance reads require delegated decryption via ACL.
|
|
277
|
+
*
|
|
278
|
+
* Wrapper metadata (`underlyingErc20Address`, `rate`, `requiresApprovalReset`) lives on the coin —
|
|
279
|
+
* same pattern as `Nep141Token.storageDepositAmount` / `XrpMptCoin.canTransfer`. Currently
|
|
280
|
+
* populated for Hoodi test pairs only so mainnet served configs stay unchanged. Allowlisting /
|
|
281
|
+
* vetting for shield/unshield is owned by AMS, not statics.
|
|
282
|
+
*
|
|
283
|
+
* {@link https://eips.ethereum.org/EIPS/eip-7984 EIP-7984}
|
|
284
|
+
*/
|
|
285
|
+
export declare class Erc7984Coin extends ContractAddressDefinedToken {
|
|
286
|
+
underlyingErc20Address?: string;
|
|
287
|
+
rate?: string;
|
|
288
|
+
requiresApprovalReset?: boolean;
|
|
289
|
+
constructor(options: Erc7984ConstructorOptions);
|
|
290
|
+
}
|
|
108
291
|
/**
|
|
109
292
|
* The TRON blockchain supports tokens of the ERC20 standard similar to ETH ERC20 tokens.
|
|
110
293
|
*/
|
|
@@ -155,6 +338,7 @@ export declare class HederaCoin extends AccountCoinToken {
|
|
|
155
338
|
export declare class HederaToken extends AccountCoinToken {
|
|
156
339
|
nodeAccountId: string;
|
|
157
340
|
tokenId: string;
|
|
341
|
+
contractAddress: string;
|
|
158
342
|
constructor(options: HederaTokenConstructorOptions);
|
|
159
343
|
}
|
|
160
344
|
/**
|
|
@@ -164,8 +348,7 @@ export declare class HederaToken extends AccountCoinToken {
|
|
|
164
348
|
*
|
|
165
349
|
*/
|
|
166
350
|
export declare class AlgoCoin extends AccountCoinToken {
|
|
167
|
-
|
|
168
|
-
constructor(options: AlgoCoinConstructorOptions);
|
|
351
|
+
constructor(options: AccountConstructorOptions);
|
|
169
352
|
}
|
|
170
353
|
/**
|
|
171
354
|
* The Eos network supports tokens
|
|
@@ -175,6 +358,8 @@ export declare class AlgoCoin extends AccountCoinToken {
|
|
|
175
358
|
*/
|
|
176
359
|
export declare class EosCoin extends AccountCoinToken {
|
|
177
360
|
contractName: string;
|
|
361
|
+
contractAddress: string;
|
|
362
|
+
symbol: string;
|
|
178
363
|
constructor(options: EosCoinConstructorOptions);
|
|
179
364
|
}
|
|
180
365
|
/**
|
|
@@ -185,17 +370,18 @@ export declare class EosCoin extends AccountCoinToken {
|
|
|
185
370
|
*/
|
|
186
371
|
export declare class SolCoin extends AccountCoinToken {
|
|
187
372
|
tokenAddress: string;
|
|
373
|
+
contractAddress: string;
|
|
374
|
+
programId: string;
|
|
375
|
+
tokenExtensions?: SolTokenExtensions;
|
|
188
376
|
constructor(options: SolCoinConstructorOptions);
|
|
377
|
+
/** True if this token was onboarded with the given Token-2022 extension. */
|
|
378
|
+
hasExtension(type: SolTokenExtensionType): boolean;
|
|
189
379
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
export declare class AdaCoin extends AccountCoinToken {
|
|
196
|
-
policyId: string;
|
|
197
|
-
assetName: string;
|
|
198
|
-
constructor(options: AdaCoinConstructorOptions);
|
|
380
|
+
export declare class EthLikeERC20Token extends ContractAddressDefinedToken {
|
|
381
|
+
constructor(options: Erc20ConstructorOptions);
|
|
382
|
+
}
|
|
383
|
+
export declare class EthLikeERC721Token extends ContractAddressDefinedToken {
|
|
384
|
+
constructor(options: Erc721ConstructorOptions);
|
|
199
385
|
}
|
|
200
386
|
/**
|
|
201
387
|
* The AVAX C Chain network support tokens
|
|
@@ -225,6 +411,55 @@ export declare class ArbethERC20Token extends ContractAddressDefinedToken {
|
|
|
225
411
|
export declare class OpethERC20Token extends ContractAddressDefinedToken {
|
|
226
412
|
constructor(options: Erc20ConstructorOptions);
|
|
227
413
|
}
|
|
414
|
+
/**
|
|
415
|
+
* The zkSync Era network support tokens.
|
|
416
|
+
* These ERC20 tokens belong to the zksyncera family (CECHO-2215).
|
|
417
|
+
*/
|
|
418
|
+
export declare class ZkethERC20Token extends ContractAddressDefinedToken {
|
|
419
|
+
constructor(options: Erc20ConstructorOptions);
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* The Bera Chain network support tokens
|
|
423
|
+
* Bera Chain Tokens are ERC20 tokens
|
|
424
|
+
*/
|
|
425
|
+
export declare class BeraERC20Token extends ContractAddressDefinedToken {
|
|
426
|
+
constructor(options: Erc20ConstructorOptions);
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* The Coredao Chain network support tokens
|
|
430
|
+
* Coredao Chain Tokens are ERC20 tokens
|
|
431
|
+
*/
|
|
432
|
+
export declare class CoredaoERC20Token extends ContractAddressDefinedToken {
|
|
433
|
+
constructor(options: Erc20ConstructorOptions);
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* The World Chain network supports tokens
|
|
437
|
+
* World Chain Tokens are ERC20 tokens
|
|
438
|
+
*/
|
|
439
|
+
export declare class WorldERC20Token extends ContractAddressDefinedToken {
|
|
440
|
+
constructor(options: Erc20ConstructorOptions);
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* The Flr Chain network supports tokens
|
|
444
|
+
* Flr Chain Tokens are ERC20 tokens
|
|
445
|
+
*/
|
|
446
|
+
export declare class FlrERC20Token extends ContractAddressDefinedToken {
|
|
447
|
+
constructor(options: Erc20ConstructorOptions);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* The XDC network supports tokens
|
|
451
|
+
* XDC Tokens are ERC20 tokens
|
|
452
|
+
*/
|
|
453
|
+
export declare class XdcERC20Token extends ContractAddressDefinedToken {
|
|
454
|
+
constructor(options: Erc20ConstructorOptions);
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* The Mon network supports tokens
|
|
458
|
+
* Mon Tokens are ERC20 tokens
|
|
459
|
+
*/
|
|
460
|
+
export declare class MonERC20Token extends ContractAddressDefinedToken {
|
|
461
|
+
constructor(options: Erc20ConstructorOptions);
|
|
462
|
+
}
|
|
228
463
|
/**
|
|
229
464
|
* The Xrp network supports tokens
|
|
230
465
|
* Xrp tokens are identified by their issuer address
|
|
@@ -235,8 +470,53 @@ export declare class XrpCoin extends AccountCoinToken {
|
|
|
235
470
|
issuerAddress: string;
|
|
236
471
|
currencyCode: string;
|
|
237
472
|
domain: string;
|
|
473
|
+
contractAddress: string;
|
|
238
474
|
constructor(options: XrpCoinConstructorOptions);
|
|
239
475
|
}
|
|
476
|
+
/**
|
|
477
|
+
* XRP Ledger Multi-Purpose Token (MPT) — MPTokensV1 amendment.
|
|
478
|
+
* Identified by a 48-char hex MPTokenIssuanceID stored as contractAddress.
|
|
479
|
+
* Uses account_objects (not account_lines). No issuer::currency pattern.
|
|
480
|
+
* Named xrp:<token_name> — same pattern as trust-line tokens.
|
|
481
|
+
*/
|
|
482
|
+
export declare class XrpMptCoin extends AccountCoinToken {
|
|
483
|
+
readonly contractAddress: string;
|
|
484
|
+
readonly canTransfer: boolean;
|
|
485
|
+
constructor(options: XrpMptCoinConstructorOptions);
|
|
486
|
+
}
|
|
487
|
+
export declare class SuiCoin extends AccountCoinToken {
|
|
488
|
+
packageId: string;
|
|
489
|
+
module: string;
|
|
490
|
+
symbol: string;
|
|
491
|
+
contractAddress: string;
|
|
492
|
+
constructor(options: SuiCoinConstructorOptions);
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* The Apt network supports tokens
|
|
496
|
+
* Apt tokens work similar to native Apt coin, but the token name is determined by
|
|
497
|
+
* the tokenAddress on the chain.
|
|
498
|
+
*
|
|
499
|
+
*/
|
|
500
|
+
export declare class AptCoin extends AccountCoinToken {
|
|
501
|
+
assetId: string;
|
|
502
|
+
constructor(options: AptCoinConstructorOptions);
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* The Apt network supports non-fungible tokens (Digital Asset Standard)
|
|
506
|
+
* Every NFT belongs to an NFT collection.
|
|
507
|
+
*/
|
|
508
|
+
export declare class AptNFTCollection extends NFTCollectionIdDefinedToken {
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* The Vechain network supports non-fungible tokens
|
|
512
|
+
* Every NFT belongs to an NFT collection(contract).
|
|
513
|
+
*/
|
|
514
|
+
export declare class VetNFTCollection extends NFTCollectionIdDefinedToken {
|
|
515
|
+
gasTankToken?: string;
|
|
516
|
+
constructor(options: NFTCollectionIdConstructorOptions & {
|
|
517
|
+
gasTankToken?: string;
|
|
518
|
+
});
|
|
519
|
+
}
|
|
240
520
|
/**
|
|
241
521
|
* Fiat currencies, such as USD, EUR, or YEN.
|
|
242
522
|
*/
|
|
@@ -247,6 +527,87 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
247
527
|
protected requiredFeatures(): Set<CoinFeature>;
|
|
248
528
|
protected disallowedFeatures(): Set<CoinFeature>;
|
|
249
529
|
}
|
|
530
|
+
/**
|
|
531
|
+
* The Stacks network supports tokens
|
|
532
|
+
* Stx tokens work similar to native Stx coin, but the token name is determined by
|
|
533
|
+
* the contractName on the chain.
|
|
534
|
+
*/
|
|
535
|
+
export declare class Sip10Token extends AccountCoinToken {
|
|
536
|
+
assetId: string;
|
|
537
|
+
constructor(options: Sip10TokenConstructorOptions);
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* The Near network supports tokens
|
|
541
|
+
* Near tokens work similar to native near coin
|
|
542
|
+
*/
|
|
543
|
+
export declare class Nep141Token extends AccountCoinToken {
|
|
544
|
+
contractAddress: string;
|
|
545
|
+
storageDepositAmount: string;
|
|
546
|
+
constructor(options: Nep141TokenConstructorOptions);
|
|
547
|
+
}
|
|
548
|
+
export declare class VetToken extends AccountCoinToken {
|
|
549
|
+
contractAddress: string;
|
|
550
|
+
gasTankToken?: string;
|
|
551
|
+
constructor(options: VetTokenConstructorOptions);
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Cosmos network supports tokens
|
|
555
|
+
* Cosmos tokens work similar to native coins, but the token is determined by
|
|
556
|
+
* the denom on chain.
|
|
557
|
+
*
|
|
558
|
+
*/
|
|
559
|
+
export declare class CosmosChainToken extends AccountCoinToken {
|
|
560
|
+
denom: string;
|
|
561
|
+
constructor(options: CosmosTokenConstructorOptions);
|
|
562
|
+
}
|
|
563
|
+
/**
|
|
564
|
+
* TON supports tokens and Jetton is a token standard on TON
|
|
565
|
+
* Jetton tokens work similar to native TON coin
|
|
566
|
+
*/
|
|
567
|
+
export declare class JettonToken extends AccountCoinToken {
|
|
568
|
+
contractAddress: string;
|
|
569
|
+
constructor(options: JettonTokenConstructorOptions);
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* The Bittensor network supports tokens
|
|
573
|
+
* The token name is determined by the subnetId on chain.
|
|
574
|
+
*/
|
|
575
|
+
export declare class TaoCoin extends AccountCoinToken {
|
|
576
|
+
subnetId: string;
|
|
577
|
+
constructor(options: TaoCoinConstructorOptions);
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* The Bittensor network supports tokens
|
|
581
|
+
* The token name is determined by the subnetId on chain.
|
|
582
|
+
*/
|
|
583
|
+
export declare class PolyxCoin extends AccountCoinToken {
|
|
584
|
+
ticker: string;
|
|
585
|
+
assetId: string;
|
|
586
|
+
constructor(options: PolyxCoinConstructorOptions);
|
|
587
|
+
}
|
|
588
|
+
export declare class AdaToken extends AccountCoinToken {
|
|
589
|
+
policyId: string;
|
|
590
|
+
assetName: string;
|
|
591
|
+
contractAddress: string;
|
|
592
|
+
constructor(options: AdaTokenConstructorOptions);
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* The canton network supports tokens
|
|
596
|
+
* Canton tokens work similar to Canton coin,
|
|
597
|
+
* but they will have their own token standard base url and instrument admin
|
|
598
|
+
*/
|
|
599
|
+
export declare class CantonToken extends AccountCoinToken {
|
|
600
|
+
baseUrl: string;
|
|
601
|
+
contractAddress: string;
|
|
602
|
+
constructor(options: CantonTokenConstructorOptions);
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* The Tempo network supports TIP20 tokens
|
|
606
|
+
* TIP20 tokens are ERC20-compatible tokens on the Tempo network
|
|
607
|
+
*/
|
|
608
|
+
export declare class Tip20Token extends ContractAddressDefinedToken {
|
|
609
|
+
constructor(options: Tip20TokenConstructorOptions);
|
|
610
|
+
}
|
|
250
611
|
/**
|
|
251
612
|
* Factory function for account coin instances.
|
|
252
613
|
*
|
|
@@ -263,6 +624,56 @@ export declare class FiatCoin extends BaseCoin {
|
|
|
263
624
|
* @param isToken? Whether or not this account coin is a token of another coin
|
|
264
625
|
*/
|
|
265
626
|
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>;
|
|
627
|
+
/**
|
|
628
|
+
* Factory function for gas tank account coin instances.
|
|
629
|
+
*
|
|
630
|
+
* @param id uuid v4
|
|
631
|
+
* @param name unique identifier of the coin
|
|
632
|
+
* @param fullName Complete human-readable name of the coin
|
|
633
|
+
* @param network Network object for this coin
|
|
634
|
+
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
|
|
635
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
636
|
+
* @param baseUnit
|
|
637
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
638
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
639
|
+
* @param gasTankLowBalanceAlertFactor Low gas tank balance alert threshold = (feeEstimate x gasTankLowBalanceAlertFactor)
|
|
640
|
+
* @param gasTankMinBalanceRecommendationFactor Min gas tank balance recommendation = (feeEstimate x gasTankMinBalanceRecommendationFactor)
|
|
641
|
+
* @param prefix Optional coin prefix. Defaults to empty string
|
|
642
|
+
* @param suffix Optional coin suffix. Defaults to coin name.
|
|
643
|
+
* @param isToken Whether or not this account coin is a token of another coin
|
|
644
|
+
*/
|
|
645
|
+
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, gasTankToken?: string): Readonly<GasTankAccountCoin>;
|
|
646
|
+
/**
|
|
647
|
+
* Factory function for ethLikeErc20 token instances.
|
|
648
|
+
*
|
|
649
|
+
* @param id uuid v4
|
|
650
|
+
* @param name unique identifier of the token
|
|
651
|
+
* @param fullName Complete human-readable name of the token
|
|
652
|
+
* @param decimalPlaces Number of decimal places this token supports
|
|
653
|
+
* @param contractAddress Contract address of this token
|
|
654
|
+
* @param asset Asset which this coin represents
|
|
655
|
+
* @param network Optional token network
|
|
656
|
+
* @param coinNames The parent coin names for mainnet and testnet
|
|
657
|
+
* @param features Features of this coin
|
|
658
|
+
* @param prefix Optional token prefix
|
|
659
|
+
* @param suffix Optional token suffix
|
|
660
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
661
|
+
*/
|
|
662
|
+
export declare function erc20Token(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, network: AccountNetwork, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<EthLikeERC20Token>;
|
|
663
|
+
/**
|
|
664
|
+
* Factory function for erc721 token instances.
|
|
665
|
+
*
|
|
666
|
+
* @param id uuid v4
|
|
667
|
+
* @param name unique identifier of the token
|
|
668
|
+
* @param fullName Complete human-readable name of the token
|
|
669
|
+
* @param contractAddress Contract address of this token
|
|
670
|
+
* @param network network
|
|
671
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
672
|
+
* @param prefix Optional token prefix
|
|
673
|
+
* @param suffix Optional token suffix
|
|
674
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
675
|
+
*/
|
|
676
|
+
export declare function erc721Token(id: string, name: string, fullName: string, contractAddress: string, network: AccountNetwork, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<EthLikeERC721Token>;
|
|
266
677
|
/**
|
|
267
678
|
* Factory function for erc20 token instances.
|
|
268
679
|
*
|
|
@@ -294,6 +705,48 @@ export declare function erc20(id: string, name: string, fullName: string, decima
|
|
|
294
705
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
295
706
|
*/
|
|
296
707
|
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>;
|
|
708
|
+
/**
|
|
709
|
+
* Factory function for ERC-7984 confidential token instances (Zama fhEVM).
|
|
710
|
+
*
|
|
711
|
+
* ERC-7984 tokens store balances as FHE-encrypted ciphertexts. Transfers use
|
|
712
|
+
* confidentialTransfer() and balance reads require ACL delegation to BitGo.
|
|
713
|
+
*
|
|
714
|
+
* @param id uuid v4
|
|
715
|
+
* @param name unique identifier of the token (e.g. 'eth:ctkn')
|
|
716
|
+
* @param fullName Complete human-readable name of the token
|
|
717
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
718
|
+
* @param contractAddress Contract address of this token
|
|
719
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
720
|
+
* @param features? Features of this coin. Defaults to ERC7984_TOKEN_FEATURES
|
|
721
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
722
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
723
|
+
* @param network? Optional token network. Defaults to Ethereum main network.
|
|
724
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
725
|
+
* @param underlyingErc20Address? Plain ERC-20 locked in the wrapper as escrow
|
|
726
|
+
* @param rate? On-chain `rate()` as a decimal string (uint256)
|
|
727
|
+
* @param requiresApprovalReset? USDT-style approve(0) reset required before approve(amount)
|
|
728
|
+
*/
|
|
729
|
+
export declare function erc7984(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve, underlyingErc20Address?: string, rate?: string, requiresApprovalReset?: boolean): Readonly<Erc7984Coin>;
|
|
730
|
+
/**
|
|
731
|
+
* Factory function for testnet ERC-7984 confidential token instances (Zama fhEVM).
|
|
732
|
+
* Requires wrapper↔underlying metadata used by shield/unshield flows.
|
|
733
|
+
*
|
|
734
|
+
* @param id uuid v4
|
|
735
|
+
* @param name unique identifier of the token (e.g. 'hteth:ctkn')
|
|
736
|
+
* @param fullName Complete human-readable name of the token
|
|
737
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
738
|
+
* @param contractAddress Contract address of this token (wrapper)
|
|
739
|
+
* @param underlyingErc20Address Plain ERC-20 locked in the wrapper as escrow
|
|
740
|
+
* @param rate On-chain `rate()` as a decimal string (uint256)
|
|
741
|
+
* @param requiresApprovalReset USDT-style approve(0) reset required before approve(amount)
|
|
742
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
743
|
+
* @param features? Features of this coin. Defaults to ERC7984_TOKEN_FEATURES
|
|
744
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
745
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
746
|
+
* @param network? Optional token network. Defaults to Hoodi test network.
|
|
747
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
748
|
+
*/
|
|
749
|
+
export declare function terc7984(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, underlyingErc20Address: string, rate: string, requiresApprovalReset: boolean, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc7984Coin>;
|
|
297
750
|
/**
|
|
298
751
|
* Factory function for erc721 token instances.
|
|
299
752
|
*
|
|
@@ -319,7 +772,7 @@ export declare function erc721(id: string, name: string, fullName: string, contr
|
|
|
319
772
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
320
773
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
321
774
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
322
|
-
* @param network? Optional token network. Defaults to
|
|
775
|
+
* @param network? Optional token network. Defaults to Hoodi test network.
|
|
323
776
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
324
777
|
*/
|
|
325
778
|
export declare function terc721(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc721Coin>;
|
|
@@ -363,7 +816,7 @@ export declare function erc1155(id: string, name: string, fullName: string, cont
|
|
|
363
816
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
364
817
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
365
818
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
366
|
-
* @param network? Optional token network. Defaults to
|
|
819
|
+
* @param network? Optional token network. Defaults to Hoodi test network.
|
|
367
820
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
368
821
|
*/
|
|
369
822
|
export declare function terc1155(id: string, name: string, fullName: string, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, network?: EthereumNetwork, primaryKeyCurve?: KeyCurve): Readonly<Erc1155Coin>;
|
|
@@ -391,11 +844,11 @@ export declare function erc20CompatibleAccountCoin(id: string, name: string, ful
|
|
|
391
844
|
* @param fullName Complete human-readable name of the token
|
|
392
845
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
393
846
|
* @param contractAddress Contract address of this token
|
|
394
|
-
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin
|
|
395
|
-
* @param prefix? Optional token prefix. Defaults to empty string
|
|
396
|
-
* @param suffix? Optional token suffix. Defaults to token name.
|
|
397
|
-
* @param network? Optional token network. Defaults to CELO main network.
|
|
398
|
-
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
847
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin
|
|
848
|
+
* @param prefix ? Optional token prefix. Defaults to empty string
|
|
849
|
+
* @param suffix ? Optional token suffix. Defaults to token name.
|
|
850
|
+
* @param network ? Optional token network. Defaults to CELO main network.
|
|
851
|
+
* @param features ? Features of this coin. Defaults to the DEFAULT_FEATURES excluding CUSTODY feature
|
|
399
852
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
400
853
|
*/
|
|
401
854
|
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>;
|
|
@@ -408,10 +861,10 @@ export declare function celoToken(id: string, name: string, fullName: string, de
|
|
|
408
861
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
409
862
|
* @param contractAddress Contract address of this token
|
|
410
863
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
411
|
-
* @param
|
|
412
|
-
* @param
|
|
413
|
-
* @param
|
|
414
|
-
* @param
|
|
864
|
+
* @param features ? Features of this coin. Defaults to the DEFAULT_FEATURES excluding CUSTODY feature
|
|
865
|
+
* @param prefix ? Optional token prefix. Defaults to empty string
|
|
866
|
+
* @param suffix ? Optional token suffix. Defaults to token name.
|
|
867
|
+
* @param network ? Optional token network. Defaults to the testnet CELO network.
|
|
415
868
|
*/
|
|
416
869
|
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>;
|
|
417
870
|
/**
|
|
@@ -525,7 +978,7 @@ export declare function ttronToken(id: string, name: string, fullName: string, d
|
|
|
525
978
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
526
979
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
527
980
|
*/
|
|
528
|
-
export declare function hederaCoin(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset,
|
|
981
|
+
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>;
|
|
529
982
|
/**
|
|
530
983
|
* Factory function for Hedera token instances
|
|
531
984
|
*
|
|
@@ -536,13 +989,14 @@ export declare function hederaCoin(id: string, name: string, fullName: string, n
|
|
|
536
989
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
537
990
|
* @param nodeAccountId node account Id from which the transaction will be sent
|
|
538
991
|
* @param tokenId The unique identifier of this token
|
|
992
|
+
* @param contractAddress Contract address of this token, same as tokenId
|
|
539
993
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
540
994
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
541
995
|
* @param network? Optional token network. Defaults to Hedera mainnet.
|
|
542
996
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
543
997
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
544
998
|
*/
|
|
545
|
-
export declare function hederaToken(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset,
|
|
999
|
+
export declare function hederaToken(id: string, name: string, fullName: string, network: AccountNetwork, decimalPlaces: number, asset: UnderlyingAsset, contractAddress: string, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<HederaToken>;
|
|
546
1000
|
/**
|
|
547
1001
|
* Factory function for ALGO token instances.
|
|
548
1002
|
*
|
|
@@ -553,7 +1007,6 @@ export declare function hederaToken(id: string, name: string, fullName: string,
|
|
|
553
1007
|
* @param fullName Complete human-readable name of the token
|
|
554
1008
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
555
1009
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
556
|
-
* @param tokenURL Optional asset Url for more informationa about the asset
|
|
557
1010
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
558
1011
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
559
1012
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -561,7 +1014,7 @@ export declare function hederaToken(id: string, name: string, fullName: string,
|
|
|
561
1014
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
562
1015
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
563
1016
|
*/
|
|
564
|
-
export declare function algoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset,
|
|
1017
|
+
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>;
|
|
565
1018
|
/**
|
|
566
1019
|
* Factory function for testnet ALGO token instances.
|
|
567
1020
|
*
|
|
@@ -571,14 +1024,13 @@ export declare function algoToken(id: string, name: string, alias: string | unde
|
|
|
571
1024
|
* @param fullName Complete human-readable name of the token
|
|
572
1025
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
573
1026
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
574
|
-
* @param tokenURL Optional asset Url for more informationa about the asset
|
|
575
1027
|
* See https://developer.algorand.org/docs/reference/transactions/#url
|
|
576
1028
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
577
1029
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
578
1030
|
* @param network? Optional token network. Defaults to Algo testnet.
|
|
579
1031
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
580
1032
|
*/
|
|
581
|
-
export declare function talgoToken(id: string, name: string, alias: string | undefined, fullName: string, decimalPlaces: number, asset: UnderlyingAsset,
|
|
1033
|
+
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>;
|
|
582
1034
|
/**
|
|
583
1035
|
* Factory function for eos token instances.
|
|
584
1036
|
*
|
|
@@ -587,6 +1039,7 @@ export declare function talgoToken(id: string, name: string, alias: string | und
|
|
|
587
1039
|
* @param fullName Complete human-readable name of the token
|
|
588
1040
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
589
1041
|
* @param contractName Contract address of this token
|
|
1042
|
+
* @param contractAddress Contract address of this token
|
|
590
1043
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
591
1044
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
592
1045
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -594,7 +1047,7 @@ export declare function talgoToken(id: string, name: string, alias: string | und
|
|
|
594
1047
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
595
1048
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
596
1049
|
*/
|
|
597
|
-
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>;
|
|
1050
|
+
export declare function eosToken(id: string, name: string, fullName: string, decimalPlaces: number, contractName: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, symbol?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<EosCoin>;
|
|
598
1051
|
/**
|
|
599
1052
|
* Factory function for testnet eos token instances.
|
|
600
1053
|
*
|
|
@@ -602,14 +1055,16 @@ export declare function eosToken(id: string, name: string, fullName: string, dec
|
|
|
602
1055
|
* @param name unique identifier of the token
|
|
603
1056
|
* @param fullName Complete human-readable name of the token
|
|
604
1057
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1058
|
+
* @param contractName Contract address of this token
|
|
605
1059
|
* @param contractAddress Contract address of this token
|
|
606
1060
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
607
1061
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
608
1062
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1063
|
+
* @param symbol? token symbol as defined in token contract.
|
|
609
1064
|
* @param network? Optional token network. Defaults to the testnet EOS network.
|
|
610
1065
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
611
1066
|
*/
|
|
612
|
-
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>;
|
|
1067
|
+
export declare function teosToken(id: string, name: string, fullName: string, decimalPlaces: number, contractName: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, symbol?: string, network?: AccountNetwork): Readonly<EosCoin>;
|
|
613
1068
|
/**
|
|
614
1069
|
* Factory function for sol token instances.
|
|
615
1070
|
*
|
|
@@ -618,6 +1073,7 @@ export declare function teosToken(id: string, name: string, fullName: string, de
|
|
|
618
1073
|
* @param fullName Complete human-readable name of the token
|
|
619
1074
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
620
1075
|
* @param tokenAddress Token address of this token
|
|
1076
|
+
* @param contractAddress Contract address of this token
|
|
621
1077
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
622
1078
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
623
1079
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
@@ -625,7 +1081,7 @@ export declare function teosToken(id: string, name: string, fullName: string, de
|
|
|
625
1081
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
626
1082
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
627
1083
|
*/
|
|
628
|
-
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>;
|
|
1084
|
+
export declare function solToken(id: string, name: string, fullName: string, decimalPlaces: number, tokenAddress: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], programId?: ProgramID, prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve, tokenExtensions?: SolTokenExtensions): Readonly<SolCoin>;
|
|
629
1085
|
/**
|
|
630
1086
|
* Factory function for testnet solana token instances.
|
|
631
1087
|
*
|
|
@@ -640,38 +1096,42 @@ export declare function solToken(id: string, name: string, fullName: string, dec
|
|
|
640
1096
|
* @param network? Optional token network. Defaults to the testnet Solana network.
|
|
641
1097
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
642
1098
|
*/
|
|
643
|
-
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>;
|
|
1099
|
+
export declare function tsolToken(id: string, name: string, fullName: string, decimalPlaces: number, tokenAddress: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], programId?: ProgramID, prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve, tokenExtensions?: SolTokenExtensions): Readonly<SolCoin>;
|
|
644
1100
|
/**
|
|
645
|
-
* Factory function for
|
|
1101
|
+
* Factory function for prod cardano token instances.
|
|
646
1102
|
*
|
|
647
1103
|
* @param id uuid v4
|
|
648
|
-
* @param name
|
|
1104
|
+
* @param name Name of the token
|
|
649
1105
|
* @param fullName Complete human-readable name of the token
|
|
650
1106
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
651
|
-
* @param
|
|
1107
|
+
* @param policyId Policy Id
|
|
1108
|
+
* @param assetName Asset name -> Policy ID + Asset name is the unique identifier
|
|
1109
|
+
* @param contractAddress Fingerprint of this token
|
|
652
1110
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
653
1111
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
654
1112
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
655
|
-
* @param network? Optional token network. Defaults to Cardano
|
|
1113
|
+
* @param network? Optional token network. Defaults to the testnet Cardano network.
|
|
656
1114
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
657
1115
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
658
1116
|
*/
|
|
659
|
-
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<
|
|
1117
|
+
export declare function adaToken(id: string, name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<AdaToken>;
|
|
660
1118
|
/**
|
|
661
1119
|
* Factory function for testnet cardano token instances.
|
|
662
1120
|
*
|
|
663
1121
|
* @param id uuid v4
|
|
664
|
-
* @param name
|
|
1122
|
+
* @param name Name of the token
|
|
665
1123
|
* @param fullName Complete human-readable name of the token
|
|
666
1124
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
667
|
-
* @param
|
|
1125
|
+
* @param policyId Policy Id
|
|
1126
|
+
* @param assetName Asset name -> Policy ID + Asset name is the unique identifier
|
|
1127
|
+
* @param contractAddress Fingerprint of this token
|
|
668
1128
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
669
1129
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
670
1130
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
671
1131
|
* @param network? Optional token network. Defaults to the testnet Cardano network.
|
|
672
1132
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
673
1133
|
*/
|
|
674
|
-
export declare function tadaToken(id: string, name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, asset: UnderlyingAsset, features?: CoinFeature[],
|
|
1134
|
+
export declare function tadaToken(id: string, name: string, fullName: string, decimalPlaces: number, policyId: string, assetName: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], network?: AccountNetwork, prefix?: string, suffix?: string): Readonly<AdaToken>;
|
|
675
1135
|
/**
|
|
676
1136
|
* Factory function for avaxErc20 token instances.
|
|
677
1137
|
*
|
|
@@ -721,7 +1181,7 @@ export declare function tavaxErc20(id: string, name: string, fullName: string, d
|
|
|
721
1181
|
*/
|
|
722
1182
|
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>;
|
|
723
1183
|
/**
|
|
724
|
-
* Factory function for
|
|
1184
|
+
* Factory function for Amoy testnet polygonErc20 token instances.
|
|
725
1185
|
*
|
|
726
1186
|
* @param id uuid v4
|
|
727
1187
|
* @param name unique identifier of the token
|
|
@@ -801,55 +1261,709 @@ export declare function opethErc20(id: string, name: string, fullName: string, d
|
|
|
801
1261
|
*/
|
|
802
1262
|
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>;
|
|
803
1263
|
/**
|
|
804
|
-
* Factory function for
|
|
1264
|
+
* Factory function for zkethErc20 token instances.
|
|
805
1265
|
*
|
|
806
1266
|
* @param id uuid v4
|
|
807
1267
|
* @param name unique identifier of the token
|
|
808
1268
|
* @param fullName Complete human-readable name of the token
|
|
809
1269
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
810
|
-
* @param
|
|
811
|
-
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
812
|
-
* @param domain? the domain of the issuer of the token,
|
|
1270
|
+
* @param contractAddress Contract address of this token
|
|
813
1271
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
814
1272
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
815
1273
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
816
|
-
* @param network? Optional token network. Defaults to
|
|
1274
|
+
* @param network? Optional token network. Defaults to zkSync Era mainnet network.
|
|
817
1275
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
818
1276
|
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
819
1277
|
*/
|
|
820
|
-
export declare function
|
|
1278
|
+
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>;
|
|
821
1279
|
/**
|
|
822
|
-
* Factory function for testnet
|
|
1280
|
+
* Factory function for zkSync Sepolia testnet zkethErc20 token instances.
|
|
823
1281
|
*
|
|
824
1282
|
* @param id uuid v4
|
|
825
1283
|
* @param name unique identifier of the token
|
|
826
1284
|
* @param fullName Complete human-readable name of the token
|
|
827
1285
|
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
828
|
-
* @param
|
|
829
|
-
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
830
|
-
* @param domain? the domain of the issuer of the token,
|
|
1286
|
+
* @param contractAddress Contract address of this token
|
|
831
1287
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
832
1288
|
* @param prefix? Optional token prefix. Defaults to empty string
|
|
833
1289
|
* @param suffix? Optional token suffix. Defaults to token name.
|
|
834
|
-
* @param network? Optional token network. Defaults to the
|
|
1290
|
+
* @param network? Optional token network. Defaults to the zkSync Era sepolia test network.
|
|
835
1291
|
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1292
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
836
1293
|
*/
|
|
837
|
-
export declare function
|
|
1294
|
+
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>;
|
|
838
1295
|
/**
|
|
839
|
-
* Factory function for
|
|
1296
|
+
* Factory function for beraErc20 token instances.
|
|
840
1297
|
*
|
|
841
1298
|
* @param id uuid v4
|
|
842
|
-
* @param name unique identifier of the
|
|
843
|
-
* @param fullName Complete human-readable name of the
|
|
844
|
-
* @param
|
|
845
|
-
* @param
|
|
1299
|
+
* @param name unique identifier of the token
|
|
1300
|
+
* @param fullName Complete human-readable name of the token
|
|
1301
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1302
|
+
* @param contractAddress Contract address of this token
|
|
846
1303
|
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
847
|
-
* @param
|
|
848
|
-
* @param
|
|
849
|
-
* @param
|
|
850
|
-
* @param
|
|
851
|
-
* @param
|
|
1304
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1305
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1306
|
+
* @param network? Optional token network. Defaults to bera mainnet network.
|
|
1307
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1308
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
852
1309
|
*/
|
|
853
|
-
export declare function
|
|
1310
|
+
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>;
|
|
1311
|
+
/**
|
|
1312
|
+
* Factory function for zkSync Sepolia testnet beraErc20 token instances.
|
|
1313
|
+
*
|
|
1314
|
+
* @param id uuid v4
|
|
1315
|
+
* @param name unique identifier of the token
|
|
1316
|
+
* @param fullName Complete human-readable name of the token
|
|
1317
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1318
|
+
* @param contractAddress Contract address of this token
|
|
1319
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1320
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1321
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1322
|
+
* @param network? Optional token network. Defaults to the bera test network.
|
|
1323
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1324
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1325
|
+
*/
|
|
1326
|
+
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>;
|
|
1327
|
+
/**
|
|
1328
|
+
* Factory function for CoredaoErc20 token instances.
|
|
1329
|
+
*
|
|
1330
|
+
* @param id uuid v4
|
|
1331
|
+
* @param name unique identifier of the token
|
|
1332
|
+
* @param fullName Complete human-readable name of the token
|
|
1333
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1334
|
+
* @param contractAddress Contract address of this token
|
|
1335
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1336
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1337
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1338
|
+
* @param network? Optional token network. Defaults to coredao mainnet network.
|
|
1339
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1340
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1341
|
+
*/
|
|
1342
|
+
export declare function coredaoErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<CoredaoERC20Token>;
|
|
1343
|
+
/**
|
|
1344
|
+
* Factory function for coredao testnet coredaoErc20 token instances.
|
|
1345
|
+
*
|
|
1346
|
+
* @param id uuid v4
|
|
1347
|
+
* @param name unique identifier of the token
|
|
1348
|
+
* @param fullName Complete human-readable name of the token
|
|
1349
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1350
|
+
* @param contractAddress Contract address of this token
|
|
1351
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1352
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1353
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1354
|
+
* @param network? Optional token network. Defaults to the coredao test network.
|
|
1355
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1356
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1357
|
+
*/
|
|
1358
|
+
export declare function tcoredaoErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<CoredaoERC20Token>;
|
|
1359
|
+
/**
|
|
1360
|
+
* Factory function for WorldErc20 token instances.
|
|
1361
|
+
*
|
|
1362
|
+
* @param id uuid v4
|
|
1363
|
+
* @param name unique identifier of the token
|
|
1364
|
+
* @param fullName Complete human-readable name of the token
|
|
1365
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1366
|
+
* @param contractAddress Contract address of this token
|
|
1367
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1368
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1369
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1370
|
+
* @param network? Optional token network. Defaults to World Chain mainnet network.
|
|
1371
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1372
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1373
|
+
*/
|
|
1374
|
+
export declare function worldErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<WorldERC20Token>;
|
|
1375
|
+
/**
|
|
1376
|
+
* Factory function for world testnet worldErc20 token instances.
|
|
1377
|
+
*
|
|
1378
|
+
* @param id uuid v4
|
|
1379
|
+
* @param name unique identifier of the token
|
|
1380
|
+
* @param fullName Complete human-readable name of the token
|
|
1381
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1382
|
+
* @param contractAddress Contract address of this token
|
|
1383
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1384
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1385
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1386
|
+
* @param network? Optional token network. Defaults to the World Chain test network.
|
|
1387
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1388
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1389
|
+
*/
|
|
1390
|
+
export declare function tworldErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<WorldERC20Token>;
|
|
1391
|
+
/**
|
|
1392
|
+
* Factory function for FlrErc20 token instances.
|
|
1393
|
+
*
|
|
1394
|
+
* @param id uuid v4
|
|
1395
|
+
* @param name unique identifier of the token
|
|
1396
|
+
* @param fullName Complete human-readable name of the token
|
|
1397
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1398
|
+
* @param contractAddress Contract address of this token
|
|
1399
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1400
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1401
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1402
|
+
* @param network? Optional token network. Defaults to Flr Chain mainnet network.
|
|
1403
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1404
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1405
|
+
*/
|
|
1406
|
+
export declare function flrErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<FlrERC20Token>;
|
|
1407
|
+
/**
|
|
1408
|
+
* Factory function for Flr testnet FlrErc20 token instances.
|
|
1409
|
+
*
|
|
1410
|
+
* @param id uuid v4
|
|
1411
|
+
* @param name unique identifier of the token
|
|
1412
|
+
* @param fullName Complete human-readable name of the token
|
|
1413
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1414
|
+
* @param contractAddress Contract address of this token
|
|
1415
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1416
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1417
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1418
|
+
* @param network? Optional token network. Defaults to the Flr Chain test network.
|
|
1419
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1420
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1421
|
+
*/
|
|
1422
|
+
export declare function tflrErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<FlrERC20Token>;
|
|
1423
|
+
/**
|
|
1424
|
+
* Factory function for XdcErc20 token instances.
|
|
1425
|
+
*
|
|
1426
|
+
* @param id uuid v4
|
|
1427
|
+
* @param name unique identifier of the token
|
|
1428
|
+
* @param fullName Complete human-readable name of the token
|
|
1429
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1430
|
+
* @param contractAddress Contract address of this token
|
|
1431
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1432
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1433
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1434
|
+
* @param network? Optional token network. Defaults to XDC mainnet network.
|
|
1435
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1436
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1437
|
+
*/
|
|
1438
|
+
export declare function xdcErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<XdcERC20Token>;
|
|
1439
|
+
/**
|
|
1440
|
+
* Factory function for XDC testnet XdcErc20 token instances.
|
|
1441
|
+
*
|
|
1442
|
+
* @param id uuid v4
|
|
1443
|
+
* @param name unique identifier of the token
|
|
1444
|
+
* @param fullName Complete human-readable name of the token
|
|
1445
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1446
|
+
* @param contractAddress Contract address of this token
|
|
1447
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1448
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1449
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1450
|
+
* @param network? Optional token network. Defaults to the XDC test network.
|
|
1451
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1452
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1453
|
+
*/
|
|
1454
|
+
export declare function txdcErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<XdcERC20Token>;
|
|
1455
|
+
/**
|
|
1456
|
+
* Factory function for MonErc20 token instances.
|
|
1457
|
+
*
|
|
1458
|
+
* @param id uuid v4
|
|
1459
|
+
* @param name unique identifier of the token
|
|
1460
|
+
* @param fullName Complete human-readable name of the token
|
|
1461
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1462
|
+
* @param contractAddress Contract address of this token
|
|
1463
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1464
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1465
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1466
|
+
* @param network? Optional token network. Defaults to Mon mainnet network.
|
|
1467
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1468
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1469
|
+
*/
|
|
1470
|
+
export declare function monErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<MonERC20Token>;
|
|
1471
|
+
/**
|
|
1472
|
+
* Factory function for Mon testnet MonErc20 token instances.
|
|
1473
|
+
*
|
|
1474
|
+
* @param id uuid v4
|
|
1475
|
+
* @param name unique identifier of the token
|
|
1476
|
+
* @param fullName Complete human-readable name of the token
|
|
1477
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1478
|
+
* @param contractAddress Contract address of this token
|
|
1479
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1480
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1481
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1482
|
+
* @param network? Optional token network. Defaults to the Mon test network.
|
|
1483
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1484
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1485
|
+
*/
|
|
1486
|
+
export declare function tmonErc20(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<MonERC20Token>;
|
|
1487
|
+
/**
|
|
1488
|
+
* Factory function for xrp token instances.
|
|
1489
|
+
*
|
|
1490
|
+
* @param id uuid v4
|
|
1491
|
+
* @param name unique identifier of the token
|
|
1492
|
+
* @param fullName Complete human-readable name of the token
|
|
1493
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1494
|
+
* @param issuerAddress: The address of the issuer of the token,
|
|
1495
|
+
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
1496
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
1497
|
+
* @param domain? the domain of the issuer of the token,
|
|
1498
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1499
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1500
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1501
|
+
* @param network? Optional token network. Defaults to Cardano main network.
|
|
1502
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1503
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1504
|
+
*/
|
|
1505
|
+
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>;
|
|
1506
|
+
/**
|
|
1507
|
+
* Factory function for testnet cardano token instances.
|
|
1508
|
+
*
|
|
1509
|
+
* @param id uuid v4
|
|
1510
|
+
* @param name unique identifier of the token
|
|
1511
|
+
* @param fullName Complete human-readable name of the token
|
|
1512
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1513
|
+
* @param issuerAddress: The address of the issuer of the token,
|
|
1514
|
+
* @param currencyCode The token symbol. Example: USD, BTC, ETH, etc.
|
|
1515
|
+
* @param contractAddress Contract address of this token formed with `issuerAddress::currencyCode`
|
|
1516
|
+
* @param domain? the domain of the issuer of the token,
|
|
1517
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1518
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1519
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1520
|
+
* @param network? Optional token network. Defaults to the testnet Cardano network.
|
|
1521
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1522
|
+
*/
|
|
1523
|
+
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>;
|
|
1524
|
+
/**
|
|
1525
|
+
* Factory function for mainnet XRP MPT token instances.
|
|
1526
|
+
*
|
|
1527
|
+
* @param id uuid v4
|
|
1528
|
+
* @param name unique identifier of the token, e.g. "xrp:my_mpt"
|
|
1529
|
+
* @param fullName Complete human-readable name of the token
|
|
1530
|
+
* @param mptIssuanceId 48-char hex MPTokenIssuanceID
|
|
1531
|
+
* @param canTransfer immutable lsfMPTCanTransfer flag from MPTokenIssuanceCreate
|
|
1532
|
+
* @param assetScale immutable display decimal places from MPTokenIssuanceCreate (also used as decimalPlaces)
|
|
1533
|
+
* @param asset UnderlyingAsset enum value
|
|
1534
|
+
* @param features Optional coin features
|
|
1535
|
+
* @param network Optional network override (defaults to mainnet XRP)
|
|
1536
|
+
*/
|
|
1537
|
+
export declare function xrpMptToken(id: string, name: string, fullName: string, mptIssuanceId: string, canTransfer: boolean, assetScale: number, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<XrpMptCoin>;
|
|
1538
|
+
/**
|
|
1539
|
+
* Factory function for testnet XRP MPT token instances.
|
|
1540
|
+
*/
|
|
1541
|
+
export declare function txrpMptToken(id: string, name: string, fullName: string, mptIssuanceId: string, canTransfer: boolean, assetScale: number, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<XrpMptCoin>;
|
|
1542
|
+
/**
|
|
1543
|
+
* Factory function for sui token instances.
|
|
1544
|
+
*
|
|
1545
|
+
* @param id uuid v4
|
|
1546
|
+
* @param name unique identifier of the token
|
|
1547
|
+
* @param fullName Complete human-readable name of the token
|
|
1548
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1549
|
+
* @param packageId PackageId of this token
|
|
1550
|
+
* @param module The module of the package with id `packageId`
|
|
1551
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
1552
|
+
* @param contractAddress Contract address of this token formed with `packageId::module::symbol`
|
|
1553
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1554
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1555
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1556
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1557
|
+
* @param network? Optional token network. Defaults to SUI main network.
|
|
1558
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1559
|
+
*/
|
|
1560
|
+
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>;
|
|
1561
|
+
/**
|
|
1562
|
+
* Factory function for testnet sui token instances.
|
|
1563
|
+
*
|
|
1564
|
+
* @param id uuid v4
|
|
1565
|
+
* @param name unique identifier of the token
|
|
1566
|
+
* @param fullName Complete human-readable name of the token
|
|
1567
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1568
|
+
* @param packageId PackageId of this token
|
|
1569
|
+
* @param module The module of the package with id `packageId`
|
|
1570
|
+
* @param symbol Identifies the coin defined in the module `module` of the package with id `packageId`
|
|
1571
|
+
* @param contractAddress Contract address of this token formed with `packageId::module::symbol`
|
|
1572
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1573
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1574
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1575
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1576
|
+
* @param network? Optional token network. Defaults to SUI test network.
|
|
1577
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1578
|
+
*/
|
|
1579
|
+
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>;
|
|
1580
|
+
/**
|
|
1581
|
+
* Factory function for apt token instances.
|
|
1582
|
+
*
|
|
1583
|
+
* @param id uuid v4
|
|
1584
|
+
* @param name unique identifier of the token
|
|
1585
|
+
* @param fullName Complete human-readable name of the token
|
|
1586
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1587
|
+
* @param assetId Asset Id of this token i.e. the unique identifier of the token for all tokens - fungible, non-fungible and legacy
|
|
1588
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1589
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1590
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1591
|
+
* @param network Optional token network. Defaults to APT main network.
|
|
1592
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1593
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1594
|
+
*/
|
|
1595
|
+
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>;
|
|
1596
|
+
/**
|
|
1597
|
+
* Factory function for Apt NFT collections.
|
|
1598
|
+
*
|
|
1599
|
+
* @param id uuid v4
|
|
1600
|
+
* @param name unique identifier of the NFT collection
|
|
1601
|
+
* @param fullName Complete human-readable name of the NFT collection
|
|
1602
|
+
* @param nftCollectionId collection ID of the non-fungible tokens (NFTs)
|
|
1603
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1604
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1605
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1606
|
+
* @param network Optional token network. Defaults to APT main network.
|
|
1607
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1608
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1609
|
+
*/
|
|
1610
|
+
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>;
|
|
1611
|
+
/**
|
|
1612
|
+
* Factory function for testnet apt token instances.
|
|
1613
|
+
*
|
|
1614
|
+
* @param id uuid v4
|
|
1615
|
+
* @param name unique identifier of the token
|
|
1616
|
+
* @param fullName Complete human-readable name of the token
|
|
1617
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1618
|
+
* @param assetId Asset Id of this token i.e. the unique identifier of the token for all tokens - fungible, non-fungible and legacy
|
|
1619
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1620
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1621
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1622
|
+
* @param network Optional token network. Defaults to the testnet APT network.
|
|
1623
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1624
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1625
|
+
*/
|
|
1626
|
+
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>;
|
|
1627
|
+
/**
|
|
1628
|
+
* Factory function for testnet Apt NFT collections.
|
|
1629
|
+
*
|
|
1630
|
+
* @param id uuid v4
|
|
1631
|
+
* @param name unique identifier of the NFT collection
|
|
1632
|
+
* @param fullName Complete human-readable name of the NFT collection
|
|
1633
|
+
* @param nftCollectionId collection ID of the non-fungible tokens (NFTs)
|
|
1634
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1635
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1636
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1637
|
+
* @param network Optional token network. Defaults to APT test network.
|
|
1638
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1639
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1640
|
+
*/
|
|
1641
|
+
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>;
|
|
1642
|
+
/**
|
|
1643
|
+
* Factory function for fiat coin instances.
|
|
1644
|
+
*
|
|
1645
|
+
* @param id uuid v4
|
|
1646
|
+
* @param name unique identifier of the coin, should start with 'fiat' or 'tfiat' followed by the 3-char ISO-4217 alphabetical code
|
|
1647
|
+
* @param fullName Complete human-readable name of the coin
|
|
1648
|
+
* @param network Network object for this coin
|
|
1649
|
+
* @param decimalPlaces Number of decimal places this coin supports (divisibility exponent)
|
|
1650
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1651
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `FiatCoin`
|
|
1652
|
+
* @param primaryKeyCurve? The elliptic curve for this chain/token
|
|
1653
|
+
* @param prefix? Optional coin prefix. Defaults to empty string
|
|
1654
|
+
* @param suffix? Optional coin suffix. Defaults to coin name.
|
|
1655
|
+
* @param isToken? Whether or not this coin is a token of another coin
|
|
1656
|
+
*/
|
|
1657
|
+
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>;
|
|
1658
|
+
/**
|
|
1659
|
+
* Factory function for sip10 token instances.
|
|
1660
|
+
*
|
|
1661
|
+
* @param id uuid v4
|
|
1662
|
+
* @param name unique identifier of the token
|
|
1663
|
+
* @param fullName Complete human-readable name of the token
|
|
1664
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1665
|
+
* @param assetId A unique identifier for a token, which is in the form of contractAddress.contractName::tokenName
|
|
1666
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1667
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1668
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1669
|
+
* @param network? Optional token network. Defaults to Stacks main network.
|
|
1670
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1671
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1672
|
+
*/
|
|
1673
|
+
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>;
|
|
1674
|
+
/**
|
|
1675
|
+
* Factory function for testnet sip10 token instances.
|
|
1676
|
+
*
|
|
1677
|
+
* @param id uuid v4
|
|
1678
|
+
* @param name unique identifier of the token
|
|
1679
|
+
* @param fullName Complete human-readable name of the token
|
|
1680
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1681
|
+
* @param assetId A unique identifier for a token, which is in the form of contractAddress.contractName::tokenName
|
|
1682
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1683
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1684
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1685
|
+
* @param network? Optional token network. Defaults to the testnet Stacks network.
|
|
1686
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1687
|
+
*/
|
|
1688
|
+
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>;
|
|
1689
|
+
/**
|
|
1690
|
+
* Factory function for nep141 token instances.
|
|
1691
|
+
*
|
|
1692
|
+
* @param id uuid v4
|
|
1693
|
+
* @param name unique identifier of the token
|
|
1694
|
+
* @param fullName Complete human-readable name of the token
|
|
1695
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1696
|
+
* @param contractAddress Contract address of this token
|
|
1697
|
+
* @param storageDepositAmount the deposit amount needed to get registered with this contract
|
|
1698
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1699
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1700
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1701
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1702
|
+
* @param network Optional token network. Defaults to Near main network.
|
|
1703
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1704
|
+
*/
|
|
1705
|
+
export declare function nep141Token(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, storageDepositAmount: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<Nep141Token>;
|
|
1706
|
+
/**
|
|
1707
|
+
* Factory function for testnet nep141 token instances.
|
|
1708
|
+
*
|
|
1709
|
+
* @param id uuid v4
|
|
1710
|
+
* @param name unique identifier of the token
|
|
1711
|
+
* @param fullName Complete human-readable name of the token
|
|
1712
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1713
|
+
* @param contractAddress Contract address of this token
|
|
1714
|
+
* @param storageDepositAmount the deposit amount needed to get registered with this contract
|
|
1715
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1716
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1717
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1718
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1719
|
+
* @param network Optional token network. Defaults to the testnet Near network.
|
|
1720
|
+
*/
|
|
1721
|
+
export declare function tnep141Token(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, storageDepositAmount: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork): Readonly<Nep141Token>;
|
|
1722
|
+
/**
|
|
1723
|
+
* Factory function for vet token instances.
|
|
1724
|
+
*
|
|
1725
|
+
* @param id uuid v4
|
|
1726
|
+
* @param name unique identifier of the token
|
|
1727
|
+
* @param fullName Complete human-readable name of the token
|
|
1728
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1729
|
+
* @param contractAddress Contract address of this token
|
|
1730
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1731
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1732
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1733
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1734
|
+
* @param network Optional token network. Defaults to Near main network.
|
|
1735
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1736
|
+
* @param gasTankToken representing the token with which gas is paid on the network, defaults to 'VET:VTHO'
|
|
1737
|
+
*/
|
|
1738
|
+
export declare function vetToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve, gasTankToken?: string): Readonly<VetToken>;
|
|
1739
|
+
/**
|
|
1740
|
+
* Factory function for testnet vet token instances.
|
|
1741
|
+
*
|
|
1742
|
+
* @param id uuid v4
|
|
1743
|
+
* @param name unique identifier of the token
|
|
1744
|
+
* @param fullName Complete human-readable name of the token
|
|
1745
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1746
|
+
* @param contractAddress Contract address of this token
|
|
1747
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1748
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1749
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1750
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1751
|
+
* @param network Optional token network. Defaults to the testnet Near network.
|
|
1752
|
+
* @param gasTankToken representing the token with which gas is paid on the network, defaults to 'TVET:VTHO'
|
|
1753
|
+
*/
|
|
1754
|
+
export declare function tvetToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, gasTankToken?: string): Readonly<VetToken>;
|
|
1755
|
+
/**
|
|
1756
|
+
* Factory function for Vet NFT collections.
|
|
1757
|
+
*
|
|
1758
|
+
* @param id uuid v4
|
|
1759
|
+
* @param name unique identifier of the NFT collection
|
|
1760
|
+
* @param fullName Complete human-readable name of the NFT collection
|
|
1761
|
+
* @param nftCollectionId collection ID of the non-fungible tokens (NFTs)
|
|
1762
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1763
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1764
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1765
|
+
* @param network Optional token network. Defaults to VET main network.
|
|
1766
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1767
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1768
|
+
* @param gasTankToken representing the token with which gas is paid on the network, defaults to 'VET:VTHO'
|
|
1769
|
+
*/
|
|
1770
|
+
export declare function vetNFTCollection(id: string, name: string, fullName: string, nftCollectionId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve, gasTankToken?: string): Readonly<VetNFTCollection>;
|
|
1771
|
+
/**
|
|
1772
|
+
* Factory function for testnet Vet NFT collections.
|
|
1773
|
+
*
|
|
1774
|
+
* @param id uuid v4
|
|
1775
|
+
* @param name unique identifier of the NFT collection
|
|
1776
|
+
* @param fullName Complete human-readable name of the NFT collection
|
|
1777
|
+
* @param nftCollectionId collection ID of the non-fungible tokens (NFTs)
|
|
1778
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1779
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1780
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1781
|
+
* @param network Optional token network. Defaults to VET test network.
|
|
1782
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES and REQUIRES_RESERVE defined in `AccountCoin`
|
|
1783
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1784
|
+
* @param gasTankToken representing the token with which gas is paid on the network, defaults to 'TVET:VTHO'
|
|
1785
|
+
*/
|
|
1786
|
+
export declare function tvetNFTCollection(id: string, name: string, fullName: string, nftCollectionId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve, gasTankToken?: string): Readonly<VetNFTCollection>;
|
|
1787
|
+
/**
|
|
1788
|
+
* Factory function for Cosmos chain token instances.
|
|
1789
|
+
*
|
|
1790
|
+
* @param id uuid v4
|
|
1791
|
+
* @param name unique identifier of the token
|
|
1792
|
+
* @param fullName Complete human-readable name of the token
|
|
1793
|
+
* @param denom denomination of this token which will act as a unique identifier for the token on chain
|
|
1794
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1795
|
+
* @param network Network (mainnet or testnet) for this token
|
|
1796
|
+
* @param baseUnit Base unit of this token (native asset)
|
|
1797
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1798
|
+
* @param features Features of this coin. Defaults to the COSMOS_SIDECHAIN_FEATURES defined in `coinFeatures.ts`
|
|
1799
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1800
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1801
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1802
|
+
*/
|
|
1803
|
+
export declare function cosmosToken(id: string, name: string, fullName: string, denom: string, decimalPlaces: number, network: AccountNetwork, baseUnit: BaseUnit, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, primaryKeyCurve?: KeyCurve): Readonly<CosmosChainToken>;
|
|
1804
|
+
/**
|
|
1805
|
+
* Factory function for tao token instances.
|
|
1806
|
+
*
|
|
1807
|
+
* @param id uuid v4
|
|
1808
|
+
* @param name unique identifier of the token
|
|
1809
|
+
* @param fullName Complete human-readable name of the token
|
|
1810
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1811
|
+
* @param subnetId The uid of the subnet this token belongs to, numerical string
|
|
1812
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1813
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1814
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1815
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1816
|
+
* @param network? Optional token network. Defaults to TAO main network.
|
|
1817
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1818
|
+
*/
|
|
1819
|
+
export declare function taoToken(id: string, name: string, fullName: string, decimalPlaces: number, subnetId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<TaoCoin>;
|
|
1820
|
+
/**
|
|
1821
|
+
* Factory function for testnet tao token instances.
|
|
1822
|
+
*
|
|
1823
|
+
* @param id uuid v4
|
|
1824
|
+
* @param name unique identifier of the token
|
|
1825
|
+
* @param fullName Complete human-readable name of the token
|
|
1826
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1827
|
+
* @param subnetId The uid of the subnet this token belongs to, numerical string
|
|
1828
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1829
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1830
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1831
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1832
|
+
* @param network? Optional token network. Defaults to TAO test network.
|
|
1833
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1834
|
+
*/
|
|
1835
|
+
export declare function ttaoToken(id: string, name: string, fullName: string, decimalPlaces: number, subnetId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<TaoCoin>;
|
|
1836
|
+
/**
|
|
1837
|
+
* Factory function for polyx token instances.
|
|
1838
|
+
*
|
|
1839
|
+
* @param id uuid v4
|
|
1840
|
+
* @param name unique identifier of the token
|
|
1841
|
+
* @param fullName Complete human-readable name of the token
|
|
1842
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1843
|
+
* @param subnetId The uid of the subnet this token belongs to, numerical string
|
|
1844
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1845
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1846
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1847
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1848
|
+
* @param network? Optional token network. Defaults to Polyx main network.
|
|
1849
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1850
|
+
*/
|
|
1851
|
+
export declare function polyxToken(id: string, name: string, fullName: string, decimalPlaces: number, ticker: string, assetId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolyxCoin>;
|
|
1852
|
+
/**
|
|
1853
|
+
* Factory function for testnet polyx token instances.
|
|
1854
|
+
*
|
|
1855
|
+
* @param id uuid v4
|
|
1856
|
+
* @param name unique identifier of the token
|
|
1857
|
+
* @param fullName Complete human-readable name of the token
|
|
1858
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1859
|
+
* @param ticker The ticker symbol of the token
|
|
1860
|
+
* @param assetId The unique asset identifier for this token
|
|
1861
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1862
|
+
* @param features? Features of this coin. Defaults to the DEFAULT_FEATURES
|
|
1863
|
+
* @param prefix? Optional token prefix. Defaults to empty string
|
|
1864
|
+
* @param suffix? Optional token suffix. Defaults to token name.
|
|
1865
|
+
* @param network? Optional token network. Defaults to Polyx test network.
|
|
1866
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1867
|
+
*/
|
|
1868
|
+
export declare function tpolyxToken(id: string, name: string, fullName: string, decimalPlaces: number, ticker: string, assetId: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<PolyxCoin>;
|
|
1869
|
+
/**
|
|
1870
|
+
* Factory function for Jetton token instances.
|
|
1871
|
+
* Jetton is the token standard on TON blockchain.
|
|
1872
|
+
*
|
|
1873
|
+
* @param id uuid v4
|
|
1874
|
+
* @param name unique identifier of the token
|
|
1875
|
+
* @param fullName Complete human-readable name of the token
|
|
1876
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1877
|
+
* @param contractAddress Contract address of this token
|
|
1878
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1879
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1880
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1881
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1882
|
+
* @param network Optional token network. Defaults to TON main network.
|
|
1883
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1884
|
+
*/
|
|
1885
|
+
export declare function jettonToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<JettonToken>;
|
|
1886
|
+
/**
|
|
1887
|
+
* Factory function for testnet jetton token instances.
|
|
1888
|
+
* Jetton is the token standard on TON blockchain.
|
|
1889
|
+
*
|
|
1890
|
+
* @param id uuid v4
|
|
1891
|
+
* @param name unique identifier of the token
|
|
1892
|
+
* @param fullName Complete human-readable name of the token
|
|
1893
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1894
|
+
* @param contractAddress Contract address of this token
|
|
1895
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1896
|
+
* @param features Features of this coin. Defaults to the DEFAULT_FEATURES defined in `AccountCoin`
|
|
1897
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1898
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1899
|
+
* @param network Optional token network. Defaults to the testnet TON network.
|
|
1900
|
+
*/
|
|
1901
|
+
export declare function tjettonToken(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<JettonToken>;
|
|
1902
|
+
/**
|
|
1903
|
+
* Factory function for prod canton token instances.
|
|
1904
|
+
*
|
|
1905
|
+
* @param id uuid v4
|
|
1906
|
+
* @param name Name of the token
|
|
1907
|
+
* @param fullName Complete human-readable name of the token
|
|
1908
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1909
|
+
* @param baseUrl token standard base url, ref: https://docs.digitalasset.com/utilities/devnet/overview/registry-user-guide/token-standard.html#token-standard-endpoints
|
|
1910
|
+
* @param contractAddress the contract address of the token in the form `instrumentAdmin:instrumentId`
|
|
1911
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1912
|
+
* @param features Features of this coin. Defaults to CANTON_FEATURES
|
|
1913
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1914
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1915
|
+
* @param network Optional token network. Defaults to the mainnet canton network.
|
|
1916
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1917
|
+
*/
|
|
1918
|
+
export declare function cantonToken(id: string, name: string, fullName: string, decimalPlaces: number, baseUrl: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<CantonToken>;
|
|
1919
|
+
/**
|
|
1920
|
+
* Factory function for testnet canton token instances.
|
|
1921
|
+
*
|
|
1922
|
+
* @param id uuid v4
|
|
1923
|
+
* @param name unique identifier of the token
|
|
1924
|
+
* @param fullName Complete human-readable name of the token
|
|
1925
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1926
|
+
* @param baseUrl token standard base url
|
|
1927
|
+
* @param contractAddress the contract address of the token in the form `instrumentAdmin:instrumentId`
|
|
1928
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1929
|
+
* @param features Features of this coin. Defaults to the CANTON_FEATURES
|
|
1930
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1931
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1932
|
+
* @param network Optional token network. Defaults to the testnet Canton network.
|
|
1933
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1934
|
+
*/
|
|
1935
|
+
export declare function tcantonToken(id: string, name: string, fullName: string, decimalPlaces: number, baseUrl: string, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<CantonToken>;
|
|
1936
|
+
/**
|
|
1937
|
+
* Factory function for TIP20 token instances on Tempo network.
|
|
1938
|
+
*
|
|
1939
|
+
* @param id uuid v4
|
|
1940
|
+
* @param name unique identifier of the token
|
|
1941
|
+
* @param fullName Complete human-readable name of the token
|
|
1942
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1943
|
+
* @param contractAddress the contract address of the token
|
|
1944
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1945
|
+
* @param features Features of this coin. Defaults to the TEMPO_FEATURES
|
|
1946
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1947
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1948
|
+
* @param network Optional token network. Defaults to the mainnet Tempo network.
|
|
1949
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1950
|
+
*/
|
|
1951
|
+
export declare function tip20Token(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<Tip20Token>;
|
|
1952
|
+
/**
|
|
1953
|
+
* Factory function for testnet TIP20 token instances on Tempo network.
|
|
1954
|
+
*
|
|
1955
|
+
* @param id uuid v4
|
|
1956
|
+
* @param name unique identifier of the token
|
|
1957
|
+
* @param fullName Complete human-readable name of the token
|
|
1958
|
+
* @param decimalPlaces Number of decimal places this token supports (divisibility exponent)
|
|
1959
|
+
* @param contractAddress the contract address of the token
|
|
1960
|
+
* @param asset Asset which this coin represents. This is the same for both mainnet and testnet variants of a coin.
|
|
1961
|
+
* @param features Features of this coin. Defaults to the TEMPO_FEATURES
|
|
1962
|
+
* @param prefix Optional token prefix. Defaults to empty string
|
|
1963
|
+
* @param suffix Optional token suffix. Defaults to token name.
|
|
1964
|
+
* @param network Optional token network. Defaults to the testnet Tempo network.
|
|
1965
|
+
* @param primaryKeyCurve The elliptic curve for this chain/token
|
|
1966
|
+
*/
|
|
1967
|
+
export declare function ttip20Token(id: string, name: string, fullName: string, decimalPlaces: number, contractAddress: string, asset: UnderlyingAsset, features?: CoinFeature[], prefix?: string, suffix?: string, network?: AccountNetwork, primaryKeyCurve?: KeyCurve): Readonly<Tip20Token>;
|
|
854
1968
|
export {};
|
|
855
1969
|
//# sourceMappingURL=account.d.ts.map
|