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