@defillama/sdk 5.0.240 → 5.0.244
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/build/Balances.d.ts +139 -0
- package/build/Balances.js +363 -0
- package/build/ChainApi.d.ts +142 -0
- package/build/ChainApi.js +310 -0
- package/build/abi/abi2.d.ts +5 -0
- package/build/abi/abi2.js +215 -0
- package/build/abi/cachedABIs.d.ts +4 -0
- package/build/abi/cachedABIs.js +8 -0
- package/build/abi/convertResults.d.ts +5 -0
- package/build/abi/convertResults.js +60 -0
- package/build/abi/index.d.ts +31 -0
- package/build/abi/index.js +327 -0
- package/build/abi/multicall.d.ts +23 -0
- package/build/abi/multicall.js +383 -0
- package/build/abi/multicall3.d.ts +7 -0
- package/build/abi/multicall3.js +405 -0
- package/build/abi/rpcCall.d.ts +4 -0
- package/build/abi/rpcCall.js +62 -0
- package/build/abi/tron.d.ts +33 -0
- package/build/abi/tron.js +118 -0
- package/build/api.d.ts +10 -0
- package/build/api.js +45 -0
- package/build/api2.d.ts +5 -0
- package/build/api2.js +41 -0
- package/build/chains/algorand.d.ts +277 -0
- package/build/chains/algorand.js +618 -0
- package/build/chains/aptos.d.ts +269 -0
- package/build/chains/aptos.js +700 -0
- package/build/chains/cardano.d.ts +242 -0
- package/build/chains/cardano.js +407 -0
- package/build/chains/cosmos.d.ts +252 -0
- package/build/chains/cosmos.js +623 -0
- package/build/chains/icp.d.ts +235 -0
- package/build/chains/icp.js +1040 -0
- package/build/chains/index.d.ts +23 -0
- package/build/chains/index.js +59 -0
- package/build/chains/near.d.ts +192 -0
- package/build/chains/near.js +446 -0
- package/build/chains/rpc.d.ts +125 -0
- package/build/chains/rpc.js +332 -0
- package/build/chains/starknet.d.ts +205 -0
- package/build/chains/starknet.js +886 -0
- package/build/chains/stellar.d.ts +410 -0
- package/build/chains/stellar.js +1082 -0
- package/build/chains/substrate.d.ts +333 -0
- package/build/chains/substrate.js +1042 -0
- package/build/chains/sui.d.ts +392 -0
- package/build/chains/sui.js +1213 -0
- package/build/chains/svm.d.ts +340 -0
- package/build/chains/svm.js +764 -0
- package/build/chains/tezos.d.ts +225 -0
- package/build/chains/tezos.js +412 -0
- package/build/chains/ton.d.ts +353 -0
- package/build/chains/ton.js +788 -0
- package/build/chains/tron.d.ts +45 -0
- package/build/chains/tron.js +110 -0
- package/build/chains/utxo.d.ts +210 -0
- package/build/chains/utxo.js +678 -0
- package/build/chains/xrpl.d.ts +179 -0
- package/build/chains/xrpl.js +467 -0
- package/build/computeTVL/blocks.d.ts +1 -0
- package/build/computeTVL/blocks.js +12 -0
- package/build/computeTVL/humanizeNumber.d.ts +1 -0
- package/build/computeTVL/humanizeNumber.js +19 -0
- package/build/erc20/index.d.ts +31 -0
- package/build/erc20/index.js +56 -0
- package/build/eth/index.d.ts +22 -0
- package/build/eth/index.js +118 -0
- package/build/general.d.ts +5 -0
- package/build/general.js +20 -0
- package/build/generalUtil.d.ts +8 -0
- package/build/generalUtil.js +73 -0
- package/build/index.d.ts +33 -0
- package/build/index.js +75 -0
- package/build/providers.json +1 -0
- package/build/types.d.ts +76 -0
- package/build/types.js +2 -0
- package/build/util/LlamaProvider.d.ts +46 -0
- package/build/util/LlamaProvider.js +343 -0
- package/build/util/blocks.d.ts +36 -0
- package/build/util/blocks.js +500 -0
- package/build/util/cache.d.ts +45 -0
- package/build/util/cache.js +309 -0
- package/build/util/callStats.d.ts +74 -0
- package/build/util/callStats.js +385 -0
- package/build/util/chainUtils/data.json +1459 -0
- package/build/util/chainUtils/index.d.ts +11 -0
- package/build/util/chainUtils/index.js +136 -0
- package/build/util/coins.d.ts +19 -0
- package/build/util/coins.js +124 -0
- package/build/util/common.d.ts +34 -0
- package/build/util/common.js +376 -0
- package/build/util/computeTVL.d.ts +19 -0
- package/build/util/computeTVL.js +102 -0
- package/build/util/cosmos.d.ts +1 -0
- package/build/util/cosmos.js +8 -0
- package/build/util/debugLog.d.ts +4 -0
- package/build/util/debugLog.js +18 -0
- package/build/util/discord.d.ts +1 -0
- package/build/util/discord.js +33 -0
- package/build/util/elastic.d.ts +43 -0
- package/build/util/elastic.js +113 -0
- package/build/util/env.d.ts +20 -0
- package/build/util/env.js +176 -0
- package/build/util/graph.d.ts +8 -0
- package/build/util/graph.js +50 -0
- package/build/util/index.d.ts +32 -0
- package/build/util/index.js +227 -0
- package/build/util/indexer.compatibility.d.ts +6 -0
- package/build/util/indexer.compatibility.js +64 -0
- package/build/util/indexer.d.ts +92 -0
- package/build/util/indexer.js +854 -0
- package/build/util/indexerSql.d.ts +9 -0
- package/build/util/indexerSql.js +102 -0
- package/build/util/internal-cache.d.ts +11 -0
- package/build/util/internal-cache.js +77 -0
- package/build/util/logs.d.ts +58 -0
- package/build/util/logs.decode.shared.d.ts +8 -0
- package/build/util/logs.decode.shared.js +289 -0
- package/build/util/logs.js +432 -0
- package/build/util/promisePool.d.ts +8 -0
- package/build/util/promisePool.js +31 -0
- package/build/util/r2.d.ts +4 -0
- package/build/util/r2.js +52 -0
- package/build/util/removeRedundantRPCs.d.ts +1 -0
- package/build/util/removeRedundantRPCs.js +49 -0
- package/build/util/transactions.d.ts +35 -0
- package/build/util/transactions.js +22 -0
- package/build/util/updateChainLabels.d.ts +1 -0
- package/build/util/updateChainLabels.js +5 -0
- package/build/util/updateProviderList.d.ts +1 -0
- package/build/util/updateProviderList.js +275 -0
- package/package.json +3 -2
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
export declare const DEFAULT_ENDPOINTS: Record<string, string>;
|
|
2
|
+
/**
|
|
3
|
+
* Archival nodes used when the primary answers 410 `block_pruned` / `version_pruned`
|
|
4
|
+
* (the public aptos fullnode keeps only a few weeks of blocks). Override with `<CHAIN>_ARCHIVAL_RPC`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ARCHIVAL_ENDPOINTS: Record<string, string>;
|
|
7
|
+
/**
|
|
8
|
+
* Indexer (Hasura GraphQL) endpoints. Override / add fallbacks with `<CHAIN>_INDEXER` (comma separated).
|
|
9
|
+
* The `<CHAIN>_API_KEY` bearer key is sent here too (aptoslabs keys cover both the full node and the indexer).
|
|
10
|
+
*/
|
|
11
|
+
export declare const INDEXER_ENDPOINTS: Record<string, string>;
|
|
12
|
+
export declare const aptosChains: string[];
|
|
13
|
+
export declare const APT_COIN_TYPE = "0x1::aptos_coin::AptosCoin";
|
|
14
|
+
export declare const APT_DECIMALS = 8;
|
|
15
|
+
export type AptosChain = 'aptos' | 'move' | string;
|
|
16
|
+
export interface ChainOptions {
|
|
17
|
+
/** chain key, default `aptos` */
|
|
18
|
+
chain?: AptosChain;
|
|
19
|
+
}
|
|
20
|
+
export interface RequestOptions extends ChainOptions {
|
|
21
|
+
timeout?: number;
|
|
22
|
+
retries?: number;
|
|
23
|
+
/** send straight to the archival endpoint(s) instead of falling back to them on 410 */
|
|
24
|
+
archival?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface LedgerInfo {
|
|
27
|
+
chainId: number;
|
|
28
|
+
ledgerVersion: number;
|
|
29
|
+
/** unix seconds */
|
|
30
|
+
ledgerTimestamp: number;
|
|
31
|
+
blockHeight: number;
|
|
32
|
+
oldestLedgerVersion: number;
|
|
33
|
+
oldestBlockHeight: number;
|
|
34
|
+
epoch: number;
|
|
35
|
+
raw: any;
|
|
36
|
+
}
|
|
37
|
+
export interface AptosBlock {
|
|
38
|
+
/** block height */
|
|
39
|
+
number: number;
|
|
40
|
+
/** unix seconds */
|
|
41
|
+
timestamp: number;
|
|
42
|
+
hash: string;
|
|
43
|
+
firstVersion: number;
|
|
44
|
+
lastVersion: number;
|
|
45
|
+
transactions?: any[];
|
|
46
|
+
raw: any;
|
|
47
|
+
}
|
|
48
|
+
export interface CoinInfo {
|
|
49
|
+
decimals: number;
|
|
50
|
+
symbol: string;
|
|
51
|
+
name: string;
|
|
52
|
+
/** raw supply (only when directly available on the metadata resource) */
|
|
53
|
+
supply?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface TypeTag {
|
|
56
|
+
/** full type string as given */
|
|
57
|
+
raw: string;
|
|
58
|
+
/** module address (`0x1`), empty for primitives */
|
|
59
|
+
address: string;
|
|
60
|
+
/** module name (`coin`), empty for primitives */
|
|
61
|
+
module: string;
|
|
62
|
+
/** struct / primitive name (`CoinInfo`, `u64`) */
|
|
63
|
+
name: string;
|
|
64
|
+
/** generic type arguments, unparsed (`['0x1::aptos_coin::AptosCoin']`) */
|
|
65
|
+
typeArgs: string[];
|
|
66
|
+
/** true when the tag is a struct (`addr::module::Name`) */
|
|
67
|
+
isStruct: boolean;
|
|
68
|
+
}
|
|
69
|
+
export declare function isAptosChain(chain?: string): boolean;
|
|
70
|
+
/** All configured endpoints for the chain (env override first, then defaults). */
|
|
71
|
+
export declare function getEndpointList({ chain }?: ChainOptions): string[];
|
|
72
|
+
/** First configured endpoint for the chain. */
|
|
73
|
+
export declare function getEndpoint({ chain }?: ChainOptions): string;
|
|
74
|
+
/** Archival endpoints for the chain (`<CHAIN>_ARCHIVAL_RPC` env, then built-in); empty when none. */
|
|
75
|
+
export declare function getArchivalEndpointList({ chain }?: ChainOptions): string[];
|
|
76
|
+
/** Indexer GraphQL endpoints for the chain (`<CHAIN>_INDEXER` env first, then built-in); empty when none. */
|
|
77
|
+
export declare function getIndexerEndpointList({ chain }?: ChainOptions): string[];
|
|
78
|
+
/** GET `path` (relative to the node root, e.g. `/v1/accounts/0x1`). 404 -> `null` when `allowNotFound`. */
|
|
79
|
+
export declare function get({ chain, path, params, allowNotFound, timeout, retries, archival }: RequestOptions & {
|
|
80
|
+
path: string;
|
|
81
|
+
params?: Record<string, any>;
|
|
82
|
+
allowNotFound?: boolean;
|
|
83
|
+
}): Promise<any>;
|
|
84
|
+
/** POST `body` to `path` (relative to the node root, e.g. `/v1/view`). */
|
|
85
|
+
export declare function post({ chain, path, body, params, allowNotFound, timeout, retries, archival }: RequestOptions & {
|
|
86
|
+
path: string;
|
|
87
|
+
body: any;
|
|
88
|
+
params?: Record<string, any>;
|
|
89
|
+
allowNotFound?: boolean;
|
|
90
|
+
}): Promise<any>;
|
|
91
|
+
/** GraphQL `errors` in a 200 response (bad query, or a rate limit the indexer reports in-band). */
|
|
92
|
+
export declare class IndexerError extends Error {
|
|
93
|
+
errors: any[];
|
|
94
|
+
constructor(errors: any[]);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Run a GraphQL query against the chain's indexer, returning `data`. Same transport as the node calls:
|
|
98
|
+
* rotates over `<CHAIN>_INDEXER` endpoints (then the default), retries transport/5xx/429 failures with
|
|
99
|
+
* backoff and sends the `<CHAIN>_API_KEY` bearer key. GraphQL `errors` throw `IndexerError` and are
|
|
100
|
+
* only retried when they report a rate limit (a bad query fails fast).
|
|
101
|
+
*/
|
|
102
|
+
export declare function indexerQuery<T = any>({ chain, query, variables, timeout, retries }: RequestOptions & {
|
|
103
|
+
query: string;
|
|
104
|
+
variables?: Record<string, any>;
|
|
105
|
+
}): Promise<T>;
|
|
106
|
+
export interface FungibleAssetBalance {
|
|
107
|
+
owner: string;
|
|
108
|
+
/** coin type (`0x1::aptos_coin::AptosCoin`) or FA metadata address */
|
|
109
|
+
assetType: string;
|
|
110
|
+
/** raw amount (coin + fungible store balance combined by the indexer) */
|
|
111
|
+
amount: string;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Coin + fungible asset balances of many owners from the indexer (`current_fungible_asset_balances`),
|
|
115
|
+
* `chunkSize` owners per query and paginated, so a few requests replace one node call per owner per token.
|
|
116
|
+
* Owners are matched by the indexer's 64-hex form, so short addresses are padded first.
|
|
117
|
+
*/
|
|
118
|
+
export declare function getFungibleAssetBalances({ chain, owners, chunkSize, pageSize, timeout, retries }: RequestOptions & {
|
|
119
|
+
owners: string[];
|
|
120
|
+
chunkSize?: number;
|
|
121
|
+
pageSize?: number;
|
|
122
|
+
}): Promise<FungibleAssetBalance[]>;
|
|
123
|
+
export declare function getLedgerInfo({ chain, archival }?: ChainOptions & {
|
|
124
|
+
archival?: boolean;
|
|
125
|
+
}): Promise<LedgerInfo>;
|
|
126
|
+
/** `{ sequence_number, authentication_key }` or `null` when the account does not exist. */
|
|
127
|
+
export declare function getAccount({ chain, address, ledgerVersion }: ChainOptions & {
|
|
128
|
+
address: string;
|
|
129
|
+
ledgerVersion?: number | string;
|
|
130
|
+
}): Promise<any>;
|
|
131
|
+
/** Every resource of `account` (`{ type, data }[]`), following `x-aptos-cursor` pagination. */
|
|
132
|
+
export declare function getResources({ chain, account, ledgerVersion }: ChainOptions & {
|
|
133
|
+
account: string;
|
|
134
|
+
ledgerVersion?: number | string;
|
|
135
|
+
}): Promise<any[]>;
|
|
136
|
+
/** `data` of one resource, or `null` when the account does not hold it. */
|
|
137
|
+
export declare function getResource({ chain, account, type, ledgerVersion }: ChainOptions & {
|
|
138
|
+
account: string;
|
|
139
|
+
type: string;
|
|
140
|
+
ledgerVersion?: number | string;
|
|
141
|
+
}): Promise<any>;
|
|
142
|
+
/** Every module published by `account`, following `x-aptos-cursor` pagination. */
|
|
143
|
+
export declare function getAccountModules({ chain, account, ledgerVersion }: ChainOptions & {
|
|
144
|
+
account: string;
|
|
145
|
+
ledgerVersion?: number | string;
|
|
146
|
+
}): Promise<any[]>;
|
|
147
|
+
/** Single module ABI/bytecode, or `null` when missing. */
|
|
148
|
+
export declare function getAccountModule({ chain, account, name, ledgerVersion }: ChainOptions & {
|
|
149
|
+
account: string;
|
|
150
|
+
name: string;
|
|
151
|
+
ledgerVersion?: number | string;
|
|
152
|
+
}): Promise<any>;
|
|
153
|
+
/**
|
|
154
|
+
* Read one table item. Returns the decoded value, or `null` when `allowNotFound` is set and the
|
|
155
|
+
* key is missing (the node answers 404 for absent keys).
|
|
156
|
+
*/
|
|
157
|
+
export declare function getTableItem({ chain, handle, keyType, valueType, key, ledgerVersion, allowNotFound }: ChainOptions & {
|
|
158
|
+
handle: string;
|
|
159
|
+
keyType: string;
|
|
160
|
+
valueType: string;
|
|
161
|
+
key: any;
|
|
162
|
+
ledgerVersion?: number | string;
|
|
163
|
+
allowNotFound?: boolean;
|
|
164
|
+
}): Promise<any>;
|
|
165
|
+
/** Run a `#[view]` function. Returns the result array as the node encodes it (u64/u128 as strings). */
|
|
166
|
+
export declare function view<T extends any[] = any[]>({ chain, function: fn, typeArguments, args, ledgerVersion }: ChainOptions & {
|
|
167
|
+
function: string;
|
|
168
|
+
typeArguments?: string[];
|
|
169
|
+
args?: any[];
|
|
170
|
+
ledgerVersion?: number | string;
|
|
171
|
+
}): Promise<T>;
|
|
172
|
+
/** Events of an event handle field, e.g. `{ eventHandle: '0x1::coin::CoinStore<...>', field: 'deposit_events' }`. */
|
|
173
|
+
export declare function getEvents({ chain, account, eventHandle, field, start, limit }: ChainOptions & {
|
|
174
|
+
account: string;
|
|
175
|
+
eventHandle: string;
|
|
176
|
+
field: string;
|
|
177
|
+
start?: number | string;
|
|
178
|
+
limit?: number;
|
|
179
|
+
}): Promise<any[]>;
|
|
180
|
+
export declare function getEventsByCreationNumber({ chain, account, creationNumber, start, limit }: ChainOptions & {
|
|
181
|
+
account: string;
|
|
182
|
+
creationNumber: number | string;
|
|
183
|
+
start?: number | string;
|
|
184
|
+
limit?: number;
|
|
185
|
+
}): Promise<any[]>;
|
|
186
|
+
/**
|
|
187
|
+
* Block by height; `null` when it does not exist (yet). Heights pruned from the primary are
|
|
188
|
+
* fetched from the archival endpoint when one is configured, otherwise the 410 error propagates.
|
|
189
|
+
*/
|
|
190
|
+
export declare function getBlockByHeight({ chain, height, withTransactions, archival }: ChainOptions & {
|
|
191
|
+
height: number | string;
|
|
192
|
+
withTransactions?: boolean;
|
|
193
|
+
archival?: boolean;
|
|
194
|
+
}): Promise<AptosBlock | null>;
|
|
195
|
+
/** Block containing ledger version `version`; `null` when unknown. Pruned versions fall back to archival like `getBlockByHeight`. */
|
|
196
|
+
export declare function getBlockByVersion({ chain, version, withTransactions, archival }: ChainOptions & {
|
|
197
|
+
version: number | string;
|
|
198
|
+
withTransactions?: boolean;
|
|
199
|
+
archival?: boolean;
|
|
200
|
+
}): Promise<AptosBlock | null>;
|
|
201
|
+
/** Latest block height + timestamp (seconds) from ledger info; `version` is the latest ledger version. */
|
|
202
|
+
export declare function getLatestBlock({ chain }?: ChainOptions): Promise<{
|
|
203
|
+
number: number;
|
|
204
|
+
timestamp: number;
|
|
205
|
+
version: number;
|
|
206
|
+
}>;
|
|
207
|
+
/**
|
|
208
|
+
* Binary search over block heights (REST only) for the last block whose timestamp is at or
|
|
209
|
+
* before `timestamp` (unix seconds). Starts on the primary node; when the target predates the
|
|
210
|
+
* primary's oldest block the search moves to the archival endpoint (the public aptos fullnode
|
|
211
|
+
* keeps only a few weeks). Throws when `timestamp` predates all available history.
|
|
212
|
+
*/
|
|
213
|
+
export declare function getBlockAtTimestamp({ chain, timestamp, minBlock }: ChainOptions & {
|
|
214
|
+
timestamp: number;
|
|
215
|
+
minBlock?: number;
|
|
216
|
+
}): Promise<AptosBlock>;
|
|
217
|
+
/**
|
|
218
|
+
* Last ledger version at or before `timestamp` (unix seconds). Every transaction in a block
|
|
219
|
+
* shares the block timestamp, so this is the `last_version` of the block found by `getBlockAtTimestamp`.
|
|
220
|
+
*/
|
|
221
|
+
export declare function getVersionAtTimestamp({ chain, timestamp, minBlock }: ChainOptions & {
|
|
222
|
+
timestamp: number;
|
|
223
|
+
minBlock?: number;
|
|
224
|
+
}): Promise<number>;
|
|
225
|
+
/**
|
|
226
|
+
* Raw balance of `account` for a coin type (`0x1::aptos_coin::AptosCoin`) or a fungible asset
|
|
227
|
+
* metadata address. Coins: `CoinStore<T>` resource, falling back to the `0x1::coin::balance` view
|
|
228
|
+
* (which also counts the paired FA store after a coin -> FA migration). FA: `0x1::primary_fungible_store::balance`.
|
|
229
|
+
*/
|
|
230
|
+
export declare function getBalance({ chain, account, coinType, ledgerVersion }: ChainOptions & {
|
|
231
|
+
account: string;
|
|
232
|
+
coinType?: string;
|
|
233
|
+
ledgerVersion?: number | string;
|
|
234
|
+
}): Promise<string>;
|
|
235
|
+
/**
|
|
236
|
+
* Token metadata: `0x1::coin::CoinInfo<T>` for coin types, `0x1::fungible_asset::Metadata` for
|
|
237
|
+
* fungible asset addresses. Throws when the token is unknown.
|
|
238
|
+
*/
|
|
239
|
+
export declare function getCoinInfo({ chain, coinType, ledgerVersion }: ChainOptions & {
|
|
240
|
+
coinType: string;
|
|
241
|
+
ledgerVersion?: number | string;
|
|
242
|
+
}): Promise<CoinInfo>;
|
|
243
|
+
/**
|
|
244
|
+
* Raw total supply of a coin type or fungible asset address. Resolution order (ported from the
|
|
245
|
+
* server l2 adapter):
|
|
246
|
+
* 1. `0x1::coin::supply<T>` view: sums the legacy CoinInfo supply and the paired FA supply, which
|
|
247
|
+
* matters for coins that migrated to the FA standard (CoinInfo alone undercounts).
|
|
248
|
+
* 2. `CoinInfo<T>.supply` integer value, or the aggregator table item it points at (native APT).
|
|
249
|
+
* 3. The paired FA metadata (`0x1::coin::paired_metadata<T>`), then the FA branch.
|
|
250
|
+
* 4. FA: `0x1::fungible_asset::supply` view -> `ConcurrentSupply` -> `Supply` resource.
|
|
251
|
+
* Throws when nothing resolves (e.g. coins initialised with `monitor_supply = false`).
|
|
252
|
+
*/
|
|
253
|
+
export declare function getCoinSupply({ chain, coinType, ledgerVersion }: ChainOptions & {
|
|
254
|
+
coinType: string;
|
|
255
|
+
ledgerVersion?: number | string;
|
|
256
|
+
}): Promise<string>;
|
|
257
|
+
/** Decode a hex string (with or without `0x`) as UTF-8. */
|
|
258
|
+
export declare function hexToString(hex: string): string;
|
|
259
|
+
/** Octas (1e-8 APT) to APT as a JS number. */
|
|
260
|
+
export declare function octasToApt(octas: string | number | bigint): number;
|
|
261
|
+
/** Fungible asset tokens are identified by an object address (no `::`), coins by `addr::module::Name`. */
|
|
262
|
+
export declare function isFungibleAssetAddress(type: string): boolean;
|
|
263
|
+
/** `0x1` -> `0x0000...0001` (64 hex chars, lowercase). Throws on non-hex input. */
|
|
264
|
+
export declare function normalizeAddress(address: string): string;
|
|
265
|
+
/**
|
|
266
|
+
* Parse `0x1::coin::CoinInfo<0x1::aptos_coin::AptosCoin>` into address / module / name / generics.
|
|
267
|
+
* Primitive and vector types (`u64`, `vector<u8>`) parse with an empty address and module.
|
|
268
|
+
*/
|
|
269
|
+
export declare function parseTypeTag(type: string): TypeTag;
|