@defillama/sdk 5.0.235 → 5.0.236
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/ChainApi.d.ts +23 -1
- package/build/chains/algorand.d.ts +277 -0
- package/build/chains/algorand.js +618 -0
- package/build/chains/aptos.d.ts +230 -0
- package/build/chains/aptos.js +612 -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 +618 -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 +326 -0
- package/build/chains/starknet.d.ts +205 -0
- package/build/chains/starknet.js +884 -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 +365 -0
- package/build/chains/sui.js +1135 -0
- package/build/chains/svm.d.ts +340 -0
- package/build/chains/svm.js +760 -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 +202 -0
- package/build/chains/utxo.js +592 -0
- package/build/chains/xrpl.d.ts +179 -0
- package/build/chains/xrpl.js +467 -0
- package/build/index.d.ts +2 -1
- package/build/index.js +3 -1
- package/build/providers.json +1 -1
- package/build/util/chainUtils/data.json +11 -0
- package/build/util/chainUtils/index.d.ts +1 -0
- package/build/util/chainUtils/index.js +23 -0
- package/build/util/common.js +2 -3
- package/build/util/cosmos.d.ts +1 -11
- package/build/util/cosmos.js +6 -66
- package/build/util/env.js +1 -0
- package/build/util/indexer.compatibility.d.ts +6 -0
- package/build/util/indexer.compatibility.js +64 -0
- package/build/util/indexer.d.ts +24 -2
- package/build/util/indexer.js +215 -282
- package/build/util/indexerSql.d.ts +8 -1
- package/build/util/indexerSql.js +53 -22
- package/build/util/logs.decode.shared.js +5 -4
- package/build/util/transactions.d.ts +23 -1
- package/build/util/updateChainLabels.d.ts +1 -0
- package/build/util/updateChainLabels.js +5 -0
- package/build/util/updateProviderList.js +38 -17
- package/package.json +20 -7
- package/README.md +0 -41
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
export declare const DEFAULT_ENDPOINTS: {
|
|
2
|
+
toncenter: string;
|
|
3
|
+
tonapi: string;
|
|
4
|
+
};
|
|
5
|
+
/** All configured toncenter base urls (`TON_RPC`, comma separated) */
|
|
6
|
+
export declare function getToncenterEndpoints(): string[];
|
|
7
|
+
export declare function getToncenterEndpoint(): string;
|
|
8
|
+
/** All configured tonapi base urls (`TON_API_RPC`, comma separated) */
|
|
9
|
+
export declare function getTonapiEndpoints(): string[];
|
|
10
|
+
export declare function getTonapiEndpoint(): string;
|
|
11
|
+
export interface ToncenterGetOptions {
|
|
12
|
+
path: string;
|
|
13
|
+
params?: Record<string, any>;
|
|
14
|
+
/** api version, default 3 */
|
|
15
|
+
version?: 2 | 3;
|
|
16
|
+
}
|
|
17
|
+
export interface ToncenterPostOptions {
|
|
18
|
+
path: string;
|
|
19
|
+
body?: any;
|
|
20
|
+
/** api version, default 2 */
|
|
21
|
+
version?: 2 | 3;
|
|
22
|
+
}
|
|
23
|
+
/** GET `/api/v{version}/{path}` on toncenter. Returns the raw response body (v2 bodies are `{ok, result}`). */
|
|
24
|
+
export declare function toncenterGet({ path, params, version }: ToncenterGetOptions): Promise<any>;
|
|
25
|
+
/** POST to `/api/v{version}/{path}` on toncenter. Returns the raw response body. */
|
|
26
|
+
export declare function toncenterPost({ path, body, version }: ToncenterPostOptions): Promise<any>;
|
|
27
|
+
/** Full v3 account state: `{ balance, status, code, data, last_transaction_lt, last_transaction_hash, frozen_hash }` */
|
|
28
|
+
export declare function getAccountState({ address }: {
|
|
29
|
+
address: string;
|
|
30
|
+
}): Promise<any>;
|
|
31
|
+
/** TON balance in nanoton, as a decimal string */
|
|
32
|
+
export declare function getTonBalance({ address }: {
|
|
33
|
+
address: string;
|
|
34
|
+
}): Promise<string>;
|
|
35
|
+
export interface JettonMaster {
|
|
36
|
+
address: string;
|
|
37
|
+
total_supply: string;
|
|
38
|
+
mintable: boolean;
|
|
39
|
+
admin_address: string | null;
|
|
40
|
+
jetton_content: Record<string, any> | null;
|
|
41
|
+
jetton_wallet_code_hash: string;
|
|
42
|
+
code_hash: string;
|
|
43
|
+
data_hash: string;
|
|
44
|
+
last_transaction_lt: string;
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}
|
|
47
|
+
/** v3 `jetton/masters` entry for one jetton. Throws when the address is not a jetton master. */
|
|
48
|
+
export declare function getJettonMaster({ address }: {
|
|
49
|
+
address: string;
|
|
50
|
+
}): Promise<JettonMaster>;
|
|
51
|
+
/** `{ supply, decimals }` of a jetton from its v3 master record. `decimals` is undefined when the content is off-chain. */
|
|
52
|
+
export declare function getJettonSupply({ address }: {
|
|
53
|
+
address: string;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
supply: string;
|
|
56
|
+
decimals?: number;
|
|
57
|
+
}>;
|
|
58
|
+
export interface JettonWallet {
|
|
59
|
+
address: string;
|
|
60
|
+
balance: string;
|
|
61
|
+
owner: string;
|
|
62
|
+
jetton: string;
|
|
63
|
+
last_transaction_lt: string;
|
|
64
|
+
code_hash: string;
|
|
65
|
+
data_hash: string;
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}
|
|
68
|
+
export interface GetJettonWalletsOptions {
|
|
69
|
+
/** owner address(es); several are sent comma separated */
|
|
70
|
+
owner?: string | string[];
|
|
71
|
+
/** jetton master address */
|
|
72
|
+
jetton?: string;
|
|
73
|
+
/** page size, default 256 */
|
|
74
|
+
limit?: number;
|
|
75
|
+
offset?: number;
|
|
76
|
+
/** fetch every page, default true */
|
|
77
|
+
paginate?: boolean;
|
|
78
|
+
excludeZeroBalance?: boolean;
|
|
79
|
+
}
|
|
80
|
+
/** v3 `jetton/wallets` filtered by owner and/or jetton, all pages by default */
|
|
81
|
+
export declare function getJettonWallets({ owner, jetton, limit, offset, paginate, excludeZeroBalance }: GetJettonWalletsOptions): Promise<JettonWallet[]>;
|
|
82
|
+
/** Balance (smallest units, decimal string) of `owner` in `jetton`; '0' when no wallet exists */
|
|
83
|
+
export declare function getJettonWalletBalance({ owner, jetton }: {
|
|
84
|
+
owner: string;
|
|
85
|
+
jetton: string;
|
|
86
|
+
}): Promise<string>;
|
|
87
|
+
/** toncenter v2 stack entry, e.g. `['num', '0x1']`, `['cell', { bytes }]`, `['tuple', ...]` */
|
|
88
|
+
export type StackItem = [string, any];
|
|
89
|
+
export interface RunGetMethodResult {
|
|
90
|
+
exit_code: number;
|
|
91
|
+
gas_used: number;
|
|
92
|
+
stack: StackItem[];
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
}
|
|
95
|
+
/** v2 `runGetMethod`; returns the unwrapped result `{ exit_code, gas_used, stack }` */
|
|
96
|
+
export declare function runGetMethod({ address, method, stack }: {
|
|
97
|
+
address: string;
|
|
98
|
+
method: string;
|
|
99
|
+
stack?: any[];
|
|
100
|
+
}): Promise<RunGetMethodResult>;
|
|
101
|
+
/** Decode one runGetMethod stack entry: num -> number (bigint when unsafe), cell/slice holding an address -> friendly address, anything else is returned as-is */
|
|
102
|
+
export declare function decodeStackItem(item: StackItem): any;
|
|
103
|
+
export interface CallOptions {
|
|
104
|
+
target: string;
|
|
105
|
+
/** get method name (alias of `method`, kept from the adapters helper) */
|
|
106
|
+
abi?: string;
|
|
107
|
+
method?: string;
|
|
108
|
+
params?: any[];
|
|
109
|
+
/** return the untouched stack */
|
|
110
|
+
rawStack?: boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Call a get method and decode the stack. `num` entries become numbers (bigint when they do
|
|
114
|
+
* not fit a safe integer, where the adapters helper silently lost precision), cells / slices
|
|
115
|
+
* that hold a `MsgAddressInt` become friendly addresses, everything else stays raw.
|
|
116
|
+
*/
|
|
117
|
+
export declare function call({ target, abi, method, params, rawStack }: CallOptions): Promise<any[]>;
|
|
118
|
+
export interface GetTransactionsOptions {
|
|
119
|
+
/** account address(es); several are sent comma separated */
|
|
120
|
+
account: string | string[];
|
|
121
|
+
/** inclusive lower bound (unix seconds) */
|
|
122
|
+
startTimestamp?: number;
|
|
123
|
+
/** exclusive upper bound (unix seconds) */
|
|
124
|
+
endTimestamp?: number;
|
|
125
|
+
/** page size, default 128 (toncenter max 1000) */
|
|
126
|
+
limit?: number;
|
|
127
|
+
sort?: 'asc' | 'desc';
|
|
128
|
+
/** drop transactions seen twice across pages, default true */
|
|
129
|
+
dedupe?: boolean;
|
|
130
|
+
/** stop after this many pages */
|
|
131
|
+
maxPages?: number;
|
|
132
|
+
/** extra v3 query params (e.g. `{ workchain, seqno, lt }`) */
|
|
133
|
+
params?: Record<string, any>;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Every v3 transaction of `account` in `[startTimestamp, endTimestamp)`, paging through
|
|
137
|
+
* `/transactions` (toncenter's `end_utime` is inclusive, so the last second is dropped to
|
|
138
|
+
* keep consecutive windows disjoint).
|
|
139
|
+
*/
|
|
140
|
+
export declare function getTransactions({ account, startTimestamp, endTimestamp, limit, sort, dedupe, maxPages, params }: GetTransactionsOptions): Promise<any[]>;
|
|
141
|
+
export interface GetMessagesOptions {
|
|
142
|
+
source?: string;
|
|
143
|
+
destination?: string;
|
|
144
|
+
direction?: 'in' | 'out';
|
|
145
|
+
/** message hash, body hash or opcode filters straight from the v3 api */
|
|
146
|
+
opcode?: string;
|
|
147
|
+
bodyHash?: string;
|
|
148
|
+
/** inclusive lower bound (unix seconds) */
|
|
149
|
+
startTimestamp?: number;
|
|
150
|
+
/** exclusive upper bound (unix seconds) */
|
|
151
|
+
endTimestamp?: number;
|
|
152
|
+
/** page size, default 128 (toncenter max 1000) */
|
|
153
|
+
limit?: number;
|
|
154
|
+
sort?: 'asc' | 'desc';
|
|
155
|
+
dedupe?: boolean;
|
|
156
|
+
maxPages?: number;
|
|
157
|
+
params?: Record<string, any>;
|
|
158
|
+
}
|
|
159
|
+
/** Every v3 message matching the filters in `[startTimestamp, endTimestamp)`, paging through `/messages` */
|
|
160
|
+
export declare function getMessages({ source, destination, direction, opcode, bodyHash, startTimestamp, endTimestamp, limit, sort, dedupe, maxPages, params }: GetMessagesOptions): Promise<any[]>;
|
|
161
|
+
export declare const MASTERCHAIN_SHARD = "-9223372036854775808";
|
|
162
|
+
/** v3 `masterchainInfo`: `{ first: block, last: block }` where `last.seqno` is the current masterchain height */
|
|
163
|
+
export declare function getMasterchainInfo(): Promise<{
|
|
164
|
+
first: any;
|
|
165
|
+
last: any;
|
|
166
|
+
}>;
|
|
167
|
+
export interface LookupBlockOptions {
|
|
168
|
+
workchain?: number;
|
|
169
|
+
shard?: string;
|
|
170
|
+
seqno?: number;
|
|
171
|
+
/** unix seconds; resolves the block at or before this time */
|
|
172
|
+
utime?: number;
|
|
173
|
+
lt?: number | string;
|
|
174
|
+
}
|
|
175
|
+
/** v2 `lookupBlock` by seqno, unixtime or lt. Returns `{ workchain, shard, seqno, root_hash, file_hash }` */
|
|
176
|
+
export declare function lookupBlock({ workchain, shard, seqno, utime, lt }?: LookupBlockOptions): Promise<any>;
|
|
177
|
+
/** Masterchain block at `timestamp`: `{ number: seqno, timestamp, block }` */
|
|
178
|
+
export declare function getBlockAtTimestamp({ timestamp }: {
|
|
179
|
+
timestamp: number;
|
|
180
|
+
}): Promise<{
|
|
181
|
+
number: number;
|
|
182
|
+
timestamp: number;
|
|
183
|
+
block: any;
|
|
184
|
+
}>;
|
|
185
|
+
/** Latest masterchain block: `{ number: seqno, timestamp: gen_utime, block }` */
|
|
186
|
+
export declare function getLatestBlock(): Promise<{
|
|
187
|
+
number: number;
|
|
188
|
+
timestamp: number;
|
|
189
|
+
block: any;
|
|
190
|
+
}>;
|
|
191
|
+
/** GET `/v2/{path}` on tonapi */
|
|
192
|
+
export declare function tonapiGet({ path, params }: {
|
|
193
|
+
path: string;
|
|
194
|
+
params?: Record<string, any>;
|
|
195
|
+
}): Promise<any>;
|
|
196
|
+
/** POST to `/v2/{path}` on tonapi */
|
|
197
|
+
export declare function tonapiPost({ path, body }: {
|
|
198
|
+
path: string;
|
|
199
|
+
body?: any;
|
|
200
|
+
}): Promise<any>;
|
|
201
|
+
export interface TonapiJettonBalance {
|
|
202
|
+
balance: string;
|
|
203
|
+
price?: {
|
|
204
|
+
prices?: Record<string, number>;
|
|
205
|
+
diff_24h?: Record<string, string>;
|
|
206
|
+
};
|
|
207
|
+
wallet_address: {
|
|
208
|
+
address: string;
|
|
209
|
+
is_scam?: boolean;
|
|
210
|
+
is_wallet?: boolean;
|
|
211
|
+
name?: string;
|
|
212
|
+
};
|
|
213
|
+
jetton: {
|
|
214
|
+
address: string;
|
|
215
|
+
name: string;
|
|
216
|
+
symbol: string;
|
|
217
|
+
decimals: number;
|
|
218
|
+
image?: string;
|
|
219
|
+
verification?: string;
|
|
220
|
+
};
|
|
221
|
+
[key: string]: any;
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Jetton balances of an account from tonapi `accounts/{address}/jettons`, with USD prices.
|
|
225
|
+
* Returns the `balances` array (the adapters helper re-keyed it by jetton address; use
|
|
226
|
+
* `jettonBalancesByAddress` for that shape). Addresses are in raw `0:...` form.
|
|
227
|
+
*/
|
|
228
|
+
export declare function getJettonBalances({ address, currencies }: {
|
|
229
|
+
address: string;
|
|
230
|
+
currencies?: string;
|
|
231
|
+
}): Promise<TonapiJettonBalance[]>;
|
|
232
|
+
/** `{ [rawJettonAddress]: { balance, price, decimals } }`, the shape the adapters helper returned */
|
|
233
|
+
export declare function jettonBalancesByAddress(balances: TonapiJettonBalance[], currency?: string): Record<string, {
|
|
234
|
+
balance: string;
|
|
235
|
+
price?: number;
|
|
236
|
+
decimals: number;
|
|
237
|
+
}>;
|
|
238
|
+
/** tonapi `jettons/{address}`: `{ mintable, total_supply, metadata: { symbol, decimals, name, ... }, holders_count, ... }` */
|
|
239
|
+
export declare function getJettonInfo({ address }: {
|
|
240
|
+
address: string;
|
|
241
|
+
}): Promise<any>;
|
|
242
|
+
/** tonapi `jettons/_bulk`, 100 addresses per request */
|
|
243
|
+
export declare function getJettonsInfo({ addresses }: {
|
|
244
|
+
addresses: string[];
|
|
245
|
+
}): Promise<any[]>;
|
|
246
|
+
/** USD prices from tonapi `rates`, keyed by the token string that was passed in ('ton' or a jetton address) */
|
|
247
|
+
export declare function getTokenRates({ tokens, currency }: {
|
|
248
|
+
tokens: string[];
|
|
249
|
+
currency?: string;
|
|
250
|
+
}): Promise<Record<string, number>>;
|
|
251
|
+
/** CRC-16/XMODEM (poly 0x1021, init 0), the checksum used by friendly TON addresses */
|
|
252
|
+
export declare function crc16(data: Buffer | Uint8Array): number;
|
|
253
|
+
export interface AddressStringOptions {
|
|
254
|
+
/** default true */
|
|
255
|
+
urlSafe?: boolean;
|
|
256
|
+
/** default true */
|
|
257
|
+
bounceable?: boolean;
|
|
258
|
+
/** default false */
|
|
259
|
+
testOnly?: boolean;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* TON address (workchain + 256 bit hash), ported from ton-core. Parses friendly
|
|
263
|
+
* (`EQ...` / `UQ...`, base64 or base64url) and raw (`0:abcd...`) forms.
|
|
264
|
+
*/
|
|
265
|
+
export declare class Address {
|
|
266
|
+
readonly workChain: number;
|
|
267
|
+
readonly hash: Buffer;
|
|
268
|
+
constructor(workChain: number, hash: Buffer);
|
|
269
|
+
static isAddress(src: any): src is Address;
|
|
270
|
+
/** shape check only (48 base64 chars); use `isAddress` to also verify the checksum */
|
|
271
|
+
static isFriendly(source: string): boolean;
|
|
272
|
+
static isRaw(source: string): boolean;
|
|
273
|
+
static parse(source: string | Address): Address;
|
|
274
|
+
static parseRaw(source: string): Address;
|
|
275
|
+
static parseFriendly(source: string | Buffer): {
|
|
276
|
+
isBounceable: boolean;
|
|
277
|
+
isTestOnly: boolean;
|
|
278
|
+
address: Address;
|
|
279
|
+
};
|
|
280
|
+
/** friendly form of any address string (or Address), bounceable + url-safe by default */
|
|
281
|
+
static normalize(source: string | Address, options?: AddressStringOptions): string;
|
|
282
|
+
toRawString(): string;
|
|
283
|
+
/** 36 bytes: hash followed by the workchain repeated 4 times (ton-core `toRaw`) */
|
|
284
|
+
toRaw(): Buffer;
|
|
285
|
+
toStringBuffer({ bounceable, testOnly }?: AddressStringOptions): Buffer;
|
|
286
|
+
toString(options?: AddressStringOptions): string;
|
|
287
|
+
equals(src: Address): boolean;
|
|
288
|
+
}
|
|
289
|
+
/** `Address.parse` */
|
|
290
|
+
export declare function parseAddress(source: string | Address): Address;
|
|
291
|
+
/** Friendly form of any address string, bounceable + url-safe by default */
|
|
292
|
+
export declare function normalizeAddress(source: string | Address, { bounceable, urlSafe, testOnly }?: AddressStringOptions): string;
|
|
293
|
+
/** `wc:hex` form of any address string */
|
|
294
|
+
export declare function toRawAddress(source: string | Address): string;
|
|
295
|
+
/** true when `source` parses as a friendly (checksum verified) or raw address */
|
|
296
|
+
export declare function isAddress(source: any): boolean;
|
|
297
|
+
/** 256 bit account hash as a bigint (the workchain is dropped) */
|
|
298
|
+
export declare function addressToInt(address: string | Address): bigint;
|
|
299
|
+
/** Inverse of `addressToInt`, workchain 0 by default */
|
|
300
|
+
export declare function convertIntToAddress(value: bigint | number | string, workChain?: number): Address;
|
|
301
|
+
/** true when both parse and point at the same workchain + hash, false for anything unparsable */
|
|
302
|
+
export declare function compareAddress(a: string | Address | undefined | null, b: string | Address | undefined | null): boolean;
|
|
303
|
+
export declare function decodeBase64(source: string): Buffer;
|
|
304
|
+
/** MSB-first bit reader over a buffer */
|
|
305
|
+
export declare class BitReader {
|
|
306
|
+
buffer: Buffer;
|
|
307
|
+
byteOffset: number;
|
|
308
|
+
bitOffset: number;
|
|
309
|
+
constructor(buffer: Buffer, startByte?: number, startBit?: number);
|
|
310
|
+
get remainingBits(): number;
|
|
311
|
+
readBit(): number;
|
|
312
|
+
/** unsigned integer of `n` bits (n <= 53) */
|
|
313
|
+
readBits(n: number): number;
|
|
314
|
+
readUint(n: number): number;
|
|
315
|
+
/** two's complement signed integer of `n` bits */
|
|
316
|
+
readInt(n: number): number;
|
|
317
|
+
readBigUint(n: number): bigint;
|
|
318
|
+
readBytes(n: number): Buffer;
|
|
319
|
+
skip(n: number): void;
|
|
320
|
+
}
|
|
321
|
+
export interface ParsedBoc {
|
|
322
|
+
hasIdx: boolean;
|
|
323
|
+
hasCrc32c: boolean;
|
|
324
|
+
hasCacheBits: boolean;
|
|
325
|
+
flags: number;
|
|
326
|
+
/** bytes used for cell counts */
|
|
327
|
+
size: number;
|
|
328
|
+
/** bytes used for offsets */
|
|
329
|
+
offBytes: number;
|
|
330
|
+
cells: number;
|
|
331
|
+
roots: number;
|
|
332
|
+
absent: number;
|
|
333
|
+
totalCellSize: number;
|
|
334
|
+
/** root cell indices */
|
|
335
|
+
root: number[];
|
|
336
|
+
index: Buffer | null;
|
|
337
|
+
/** serialized cells, starting with the first root's descriptors */
|
|
338
|
+
cellData: Buffer;
|
|
339
|
+
/** byte offset right after the cell data */
|
|
340
|
+
offset: number;
|
|
341
|
+
}
|
|
342
|
+
/** Parse a serialized bag-of-cells header (`b5ee9c72` magic) and return the raw cell data */
|
|
343
|
+
export declare function parseBoc(buffer: Buffer): ParsedBoc;
|
|
344
|
+
/** Friendly address for a workchain + 32 byte hash (bounceable, url-safe by default) */
|
|
345
|
+
export declare function serializeAddress(wc: number, hash: Buffer, options?: AddressStringOptions): string;
|
|
346
|
+
/**
|
|
347
|
+
* Read the `MsgAddressInt` (addr_std) stored at the start of the first cell of a base64
|
|
348
|
+
* BoC, as returned in a runGetMethod `cell` / `slice` stack entry. Returns the friendly
|
|
349
|
+
* bounceable address. Throws when the cell does not start with an addr_std.
|
|
350
|
+
*/
|
|
351
|
+
export declare function readAddressFromSlice(base64Boc: string): string;
|
|
352
|
+
/** `readAddressFromSlice` that returns null instead of throwing */
|
|
353
|
+
export declare function tryReadAddressFromSlice(base64Boc: string): string | null;
|