@proton/wrap-constants 0.2.192 → 0.3.0
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/index.cjs +2421 -0
- package/dist/index.d.cts +2604 -0
- package/dist/index.d.mts +2076 -12743
- package/dist/index.mjs +2232 -2758
- package/package.json +29 -15
- package/src/coins.ts +3 -3
- package/src/parsers/actions.ts +88 -65
- package/src/parsers/address.ts +22 -22
- package/src/parsers/auth.ts +2 -2
- package/src/parsers/deposit.ts +4 -10
- package/src/parsers/dex.ts +49 -33
- package/src/parsers/login.ts +7 -8
- package/src/parsers/pool.ts +1 -1
- package/src/parsers/withdraw.ts +31 -31
- package/src/parsers/wrap.ts +31 -31
- package/dist/index.d.ts +0 -13271
- package/dist/index.js +0 -2957
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,2604 @@
|
|
|
1
|
+
import BN, { BigNumber } from "bignumber.js";
|
|
2
|
+
import "dayjs";
|
|
3
|
+
import * as z from "zod";
|
|
4
|
+
declare namespace Maths {
|
|
5
|
+
enum Operations {
|
|
6
|
+
PLUS = "plus",
|
|
7
|
+
MULTIPLY = "multipliedBy",
|
|
8
|
+
DIVIDE = "dividedBy",
|
|
9
|
+
MINUS = "minus"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
declare class Asset {
|
|
13
|
+
symbol: Symbol;
|
|
14
|
+
amount: BigNumber.Instance;
|
|
15
|
+
get integerAmount(): BigNumber.Instance;
|
|
16
|
+
constructor(asset: {
|
|
17
|
+
code: string;
|
|
18
|
+
precision: number;
|
|
19
|
+
amount: BigNumber.Instance | number | string;
|
|
20
|
+
});
|
|
21
|
+
static fromString(asset: string): Asset;
|
|
22
|
+
static fromSymbol({ symbol, amount }: {
|
|
23
|
+
symbol: Symbol;
|
|
24
|
+
amount: BigNumber.Instance;
|
|
25
|
+
}): Asset;
|
|
26
|
+
isEqualTo(asset: Asset): boolean;
|
|
27
|
+
isLooselyEqualTo(asset: Asset): boolean;
|
|
28
|
+
toString(): string;
|
|
29
|
+
modifyAmount(x: number | BigNumber.Instance | Asset, method: Maths.Operations): Asset;
|
|
30
|
+
plus(x: number): Asset;
|
|
31
|
+
plus(x: Asset): Asset;
|
|
32
|
+
minus(x: number): Asset;
|
|
33
|
+
minus(x: Asset): Asset;
|
|
34
|
+
multipliedBy(x: number): Asset;
|
|
35
|
+
multipliedBy(x: Asset): Asset;
|
|
36
|
+
dividedBy(x: number): Asset;
|
|
37
|
+
dividedBy(x: Asset): Asset;
|
|
38
|
+
}
|
|
39
|
+
declare class ExtendedAsset$1 {
|
|
40
|
+
quantity: Asset;
|
|
41
|
+
contract: string;
|
|
42
|
+
constructor(extendedAsset: {
|
|
43
|
+
quantity: Asset;
|
|
44
|
+
contract: string;
|
|
45
|
+
});
|
|
46
|
+
static fromRaw({ quantity, contract }: {
|
|
47
|
+
quantity: string;
|
|
48
|
+
contract: string;
|
|
49
|
+
}): ExtendedAsset$1;
|
|
50
|
+
static fromExtendedSymbol(symbol: ExtendedSymbol, amount: BigNumber.Instance): ExtendedAsset$1;
|
|
51
|
+
isEqualTo(extendedAsset: ExtendedAsset$1): boolean;
|
|
52
|
+
isLooselyEqualTo(extendedAsset: ExtendedAsset$1): boolean;
|
|
53
|
+
toString(): string;
|
|
54
|
+
toExtendedSymbol(): ExtendedSymbol;
|
|
55
|
+
modifyAmount(x: number | BigNumber.Instance | Asset | ExtendedAsset$1, method: Maths.Operations): ExtendedAsset$1;
|
|
56
|
+
plus(x: number): ExtendedAsset$1;
|
|
57
|
+
plus(x: Asset): ExtendedAsset$1;
|
|
58
|
+
minus(x: number): ExtendedAsset$1;
|
|
59
|
+
minus(x: Asset): ExtendedAsset$1;
|
|
60
|
+
multipliedBy(x: number): ExtendedAsset$1;
|
|
61
|
+
multipliedBy(x: Asset): ExtendedAsset$1;
|
|
62
|
+
dividedBy(x: number): ExtendedAsset$1;
|
|
63
|
+
dividedBy(x: Asset): ExtendedAsset$1;
|
|
64
|
+
}
|
|
65
|
+
declare class Symbol {
|
|
66
|
+
precision: number;
|
|
67
|
+
code: string;
|
|
68
|
+
constructor(symbol: {
|
|
69
|
+
code: string;
|
|
70
|
+
precision: number;
|
|
71
|
+
});
|
|
72
|
+
static fromString(symbol: string): Symbol;
|
|
73
|
+
isEqualTo(symbol: Symbol): boolean;
|
|
74
|
+
toString(): string;
|
|
75
|
+
}
|
|
76
|
+
declare class ExtendedSymbol {
|
|
77
|
+
contract: string;
|
|
78
|
+
sym: Symbol;
|
|
79
|
+
constructor(sym: Symbol, contract: string);
|
|
80
|
+
static fromRaw({ sym, contract }: {
|
|
81
|
+
sym: string;
|
|
82
|
+
contract: string;
|
|
83
|
+
}): ExtendedSymbol;
|
|
84
|
+
isEqualTo(extendedSymbol: ExtendedSymbol): boolean;
|
|
85
|
+
toString(): string;
|
|
86
|
+
}
|
|
87
|
+
declare enum Chains {
|
|
88
|
+
BitcoinMainnet = "Bitcoin",
|
|
89
|
+
BitcoinTestnet = "Bitcoin (Testnet)",
|
|
90
|
+
EthereumMainnet = "Ethereum",
|
|
91
|
+
EthereumSepolia = "Ethereum (Sepolia)",
|
|
92
|
+
LitecoinMainnet = "Litecoin",
|
|
93
|
+
LitecoinTestnet = "Litecoin (Testnet)",
|
|
94
|
+
BitcoinCashMainnet = "Bitcoin Cash",
|
|
95
|
+
BitcoinCashTestnet = "Bitcoin Cash (Testnet)",
|
|
96
|
+
StellarMainnet = "Stellar",
|
|
97
|
+
StellarTestnet = "Stellar (Testnet)",
|
|
98
|
+
ProtonMainnet = "Proton",
|
|
99
|
+
ProtonTestnet = "Proton (Testnet)",
|
|
100
|
+
PolkadotMainnet = "Polkadot",
|
|
101
|
+
BinanceBEP2 = "Binance (BEP2)",
|
|
102
|
+
BinanceBEP20 = "Binance (BEP20)",
|
|
103
|
+
EosMainnet = "EOS",
|
|
104
|
+
EosTestnet = "EOS (Jungle Testnet)",
|
|
105
|
+
HederaMainnet = "Hedera (Mainnet)",
|
|
106
|
+
HederaTestnet = "Hedera (Testnet)",
|
|
107
|
+
DogeMainnet = "Dogecoin",
|
|
108
|
+
CardanoMainnet = "Cardano",
|
|
109
|
+
AvalancheXChain = "Avalanche X-Chain",
|
|
110
|
+
AvalancheCChain = "Avalanche C-Chain",
|
|
111
|
+
PolygonMainnet = "Polygon",
|
|
112
|
+
TerraMainnet = "Terra",
|
|
113
|
+
RippleMainnet = "Ripple",
|
|
114
|
+
SolanaMainnet = "Solana",
|
|
115
|
+
XDCMainnet = "XDC Network",
|
|
116
|
+
MetalXTestnet = "Metal X-Chain (Testnet)",
|
|
117
|
+
MetalCTestnet = "Metal C-Chain (Testnet)",
|
|
118
|
+
MetalCMainnet = "Metal C-Chain",
|
|
119
|
+
MetalL2Mainnet = "Metal L2",
|
|
120
|
+
MetalL2Testnet = "Metal L2 (Testnet)"
|
|
121
|
+
}
|
|
122
|
+
declare enum Networks {
|
|
123
|
+
Mainnet = "mainnet",
|
|
124
|
+
Testnet = "testnet",
|
|
125
|
+
ERC20 = "erc20",
|
|
126
|
+
BEP20 = "bep20",
|
|
127
|
+
XLM = "xlm",
|
|
128
|
+
AVM = "avm",
|
|
129
|
+
EVM = "evm",
|
|
130
|
+
METALL2 = "metall2",
|
|
131
|
+
Sepolia = "sepolia"
|
|
132
|
+
}
|
|
133
|
+
declare const similarChains: {
|
|
134
|
+
Ethereum: Chains[];
|
|
135
|
+
"Binance (BEP20)": Chains[];
|
|
136
|
+
};
|
|
137
|
+
interface Coin {
|
|
138
|
+
allowSwap: boolean;
|
|
139
|
+
allowBridge: boolean;
|
|
140
|
+
allowLend: boolean;
|
|
141
|
+
allowBorrow: boolean;
|
|
142
|
+
name: string;
|
|
143
|
+
coin: string;
|
|
144
|
+
xtokenSymbol: string;
|
|
145
|
+
xtokenPrecision: number;
|
|
146
|
+
xtokenContract: string;
|
|
147
|
+
wallets: Wallet[];
|
|
148
|
+
image: string;
|
|
149
|
+
coingeckoId: string;
|
|
150
|
+
unifiedCryptoassetId: string;
|
|
151
|
+
balance?: Asset;
|
|
152
|
+
}
|
|
153
|
+
interface Wallet {
|
|
154
|
+
wallet: string;
|
|
155
|
+
symbol: string;
|
|
156
|
+
chain: Chains;
|
|
157
|
+
network: Networks;
|
|
158
|
+
precision: number;
|
|
159
|
+
contract: string | undefined;
|
|
160
|
+
provider: string;
|
|
161
|
+
hasWithdrawMemo: boolean;
|
|
162
|
+
}
|
|
163
|
+
declare enum Providers {
|
|
164
|
+
FIREBLOCKS = "fireblocks",
|
|
165
|
+
METAL = "metal",
|
|
166
|
+
METALL2 = "metall2"
|
|
167
|
+
}
|
|
168
|
+
type CoinWallet = Exclude<Coin, "wallets"> & Wallet;
|
|
169
|
+
declare const explorerLinkByChain: {
|
|
170
|
+
Bitcoin: (txid: string) => string;
|
|
171
|
+
"Bitcoin (Testnet)": (txid: string) => string;
|
|
172
|
+
Ethereum: (txid: string) => string;
|
|
173
|
+
"Ethereum (Sepolia)": (txid: string) => string;
|
|
174
|
+
Litecoin: (txid: string) => string;
|
|
175
|
+
"Litecoin (Testnet)": (txid: string) => string;
|
|
176
|
+
"Bitcoin Cash": (txid: string) => string;
|
|
177
|
+
"Bitcoin Cash (Testnet)": (txid: string) => string;
|
|
178
|
+
Stellar: (txid: string) => string;
|
|
179
|
+
"Stellar (Testnet)": (txid: string) => string;
|
|
180
|
+
Proton: (txid: string, traces?: boolean) => string;
|
|
181
|
+
"Proton (Testnet)": (txid: string, traces?: boolean) => string;
|
|
182
|
+
Polkadot: (txid: string) => string;
|
|
183
|
+
"Binance (BEP2)": (txid: string) => string;
|
|
184
|
+
"Binance (BEP20)": (txid: string) => string;
|
|
185
|
+
EOS: (txid: string) => string;
|
|
186
|
+
"EOS (Jungle Testnet)": (txid: string) => string;
|
|
187
|
+
"Hedera (Mainnet)": (txid: string) => string;
|
|
188
|
+
"Hedera (Testnet)": (txid: string) => string;
|
|
189
|
+
Dogecoin: (txid: string) => string;
|
|
190
|
+
Cardano: (txid: string) => string;
|
|
191
|
+
"Avalanche X-Chain": (txid: string) => string;
|
|
192
|
+
"Avalanche C-Chain": (txid: string) => string;
|
|
193
|
+
Polygon: (txid: string) => string;
|
|
194
|
+
Terra: (txid: string) => string;
|
|
195
|
+
Ripple: (txid: string) => string;
|
|
196
|
+
Solana: (txid: string) => string;
|
|
197
|
+
"Metal X-Chain (Testnet)": (txid: string) => string;
|
|
198
|
+
"Metal C-Chain (Testnet)": (txid: string) => string;
|
|
199
|
+
"Metal C-Chain": (txid: string) => string;
|
|
200
|
+
"XDC Network": (txid: string) => string;
|
|
201
|
+
"Metal L2 (Testnet)": (txid: string) => string;
|
|
202
|
+
"Metal L2": (txid: string) => string;
|
|
203
|
+
};
|
|
204
|
+
declare const protonExplorerTxUrl: (chain: string, txId: string, traces?: boolean) => string;
|
|
205
|
+
declare const initializeCoins: (protonChain: string) => {
|
|
206
|
+
allCoins: Coin[];
|
|
207
|
+
swapCoins: Coin[];
|
|
208
|
+
bridgeCoins: Coin[];
|
|
209
|
+
lendCoins: Coin[];
|
|
210
|
+
borrowCoins: Coin[];
|
|
211
|
+
loanCoins: Coin[];
|
|
212
|
+
allEnabledCoins: Coin[];
|
|
213
|
+
};
|
|
214
|
+
declare const baseActionParser: <T extends z.ZodRawShape>(contract: string, action: string, data: T) => z.ZodObject<{
|
|
215
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
216
|
+
name: z.ZodLiteral<string>;
|
|
217
|
+
data: z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strip>;
|
|
218
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
219
|
+
actor: z.ZodString;
|
|
220
|
+
permission: z.ZodString;
|
|
221
|
+
}, z.core.$strip>>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
declare const baseActionSerializedParser: <T extends z.ZodRawShape>(contract: string, action: string, data: T) => z.ZodObject<{
|
|
224
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
225
|
+
name: z.ZodLiteral<string>;
|
|
226
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strip>]>;
|
|
227
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
228
|
+
actor: z.ZodString;
|
|
229
|
+
permission: z.ZodString;
|
|
230
|
+
}, z.core.$strip>>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
declare const webauthActionParser: <T extends z.ZodRawShape>(contract: string, action: string, data: T) => z.ZodObject<{
|
|
233
|
+
account: z.ZodLiteral<"webauthn">;
|
|
234
|
+
name: z.ZodLiteral<"exec">;
|
|
235
|
+
data: z.ZodObject<{
|
|
236
|
+
account: z.ZodString;
|
|
237
|
+
key: z.ZodObject<{
|
|
238
|
+
key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
239
|
+
modulus: z.ZodString;
|
|
240
|
+
exponent: z.ZodString;
|
|
241
|
+
}, z.core.$strip>]>>;
|
|
242
|
+
user_presence: z.ZodNumber;
|
|
243
|
+
rpid: z.ZodString;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
nonce: z.ZodNumber;
|
|
246
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
247
|
+
actor: z.ZodString;
|
|
248
|
+
permission: z.ZodString;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
signature: z.ZodObject<{
|
|
251
|
+
auth_data: z.ZodString;
|
|
252
|
+
client_json: z.ZodString;
|
|
253
|
+
signature: z.ZodString;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
trx: z.ZodObject<{
|
|
256
|
+
expiration: z.ZodString;
|
|
257
|
+
ref_block_num: z.ZodNumber;
|
|
258
|
+
ref_block_prefix: z.ZodNumber;
|
|
259
|
+
max_net_usage_words: z.ZodNumber;
|
|
260
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
261
|
+
delay_sec: z.ZodNumber;
|
|
262
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
263
|
+
account: z.ZodString;
|
|
264
|
+
name: z.ZodString;
|
|
265
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
266
|
+
actor: z.ZodString;
|
|
267
|
+
permission: z.ZodString;
|
|
268
|
+
}, z.core.$strip>>;
|
|
269
|
+
data: z.ZodAny;
|
|
270
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
271
|
+
}, z.core.$strip>>;
|
|
272
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
273
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
274
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
275
|
+
name: z.ZodLiteral<string>;
|
|
276
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strip>]>;
|
|
277
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
278
|
+
actor: z.ZodString;
|
|
279
|
+
permission: z.ZodString;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
}, z.core.$strip>>;
|
|
282
|
+
}, z.core.$strip>;
|
|
283
|
+
}, z.core.$strip>;
|
|
284
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
285
|
+
actor: z.ZodString;
|
|
286
|
+
permission: z.ZodString;
|
|
287
|
+
}, z.core.$strip>>;
|
|
288
|
+
}, z.core.$strip>;
|
|
289
|
+
declare const singleActionTransactionParser: <T extends z.ZodRawShape>(contract: string, action: string, data: T) => z.ZodObject<{
|
|
290
|
+
expiration: z.ZodString;
|
|
291
|
+
ref_block_num: z.ZodNumber;
|
|
292
|
+
ref_block_prefix: z.ZodNumber;
|
|
293
|
+
max_net_usage_words: z.ZodNumber;
|
|
294
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
295
|
+
delay_sec: z.ZodNumber;
|
|
296
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
297
|
+
account: z.ZodString;
|
|
298
|
+
name: z.ZodString;
|
|
299
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
300
|
+
actor: z.ZodString;
|
|
301
|
+
permission: z.ZodString;
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
data: z.ZodAny;
|
|
304
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
305
|
+
}, z.core.$strip>>;
|
|
306
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
307
|
+
actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
308
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
309
|
+
name: z.ZodLiteral<string>;
|
|
310
|
+
data: z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strip>;
|
|
311
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
312
|
+
actor: z.ZodString;
|
|
313
|
+
permission: z.ZodString;
|
|
314
|
+
}, z.core.$strip>>;
|
|
315
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
316
|
+
account: z.ZodLiteral<"webauthn">;
|
|
317
|
+
name: z.ZodLiteral<"exec">;
|
|
318
|
+
data: z.ZodObject<{
|
|
319
|
+
account: z.ZodString;
|
|
320
|
+
key: z.ZodObject<{
|
|
321
|
+
key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
322
|
+
modulus: z.ZodString;
|
|
323
|
+
exponent: z.ZodString;
|
|
324
|
+
}, z.core.$strip>]>>;
|
|
325
|
+
user_presence: z.ZodNumber;
|
|
326
|
+
rpid: z.ZodString;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
nonce: z.ZodNumber;
|
|
329
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
330
|
+
actor: z.ZodString;
|
|
331
|
+
permission: z.ZodString;
|
|
332
|
+
}, z.core.$strip>>;
|
|
333
|
+
signature: z.ZodObject<{
|
|
334
|
+
auth_data: z.ZodString;
|
|
335
|
+
client_json: z.ZodString;
|
|
336
|
+
signature: z.ZodString;
|
|
337
|
+
}, z.core.$strip>;
|
|
338
|
+
trx: z.ZodObject<{
|
|
339
|
+
expiration: z.ZodString;
|
|
340
|
+
ref_block_num: z.ZodNumber;
|
|
341
|
+
ref_block_prefix: z.ZodNumber;
|
|
342
|
+
max_net_usage_words: z.ZodNumber;
|
|
343
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
344
|
+
delay_sec: z.ZodNumber;
|
|
345
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
346
|
+
account: z.ZodString;
|
|
347
|
+
name: z.ZodString;
|
|
348
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
349
|
+
actor: z.ZodString;
|
|
350
|
+
permission: z.ZodString;
|
|
351
|
+
}, z.core.$strip>>;
|
|
352
|
+
data: z.ZodAny;
|
|
353
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
356
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
357
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
358
|
+
name: z.ZodLiteral<string>;
|
|
359
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<{ -readonly [P in keyof T]: T[P]; }, z.core.$strip>]>;
|
|
360
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
361
|
+
actor: z.ZodString;
|
|
362
|
+
permission: z.ZodString;
|
|
363
|
+
}, z.core.$strip>>;
|
|
364
|
+
}, z.core.$strip>>;
|
|
365
|
+
}, z.core.$strip>;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
368
|
+
actor: z.ZodString;
|
|
369
|
+
permission: z.ZodString;
|
|
370
|
+
}, z.core.$strip>>;
|
|
371
|
+
}, z.core.$strip>]>>;
|
|
372
|
+
}, z.core.$strip>;
|
|
373
|
+
declare const addressParser: z.ZodObject<{
|
|
374
|
+
index: z.ZodNumber;
|
|
375
|
+
account: z.ZodString;
|
|
376
|
+
chain: z.ZodString;
|
|
377
|
+
address: z.ZodString;
|
|
378
|
+
address_hash: z.ZodString;
|
|
379
|
+
}, z.core.$strip>;
|
|
380
|
+
type Address = z.infer<typeof addressParser>;
|
|
381
|
+
declare const generateAddressBodyParser: z.ZodObject<{
|
|
382
|
+
signer: z.ZodObject<{
|
|
383
|
+
actor: z.ZodString;
|
|
384
|
+
permission: z.ZodString;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
signatures: z.ZodArray<z.ZodString>;
|
|
387
|
+
transaction: z.ZodObject<{
|
|
388
|
+
expiration: z.ZodString;
|
|
389
|
+
ref_block_num: z.ZodNumber;
|
|
390
|
+
ref_block_prefix: z.ZodNumber;
|
|
391
|
+
max_net_usage_words: z.ZodNumber;
|
|
392
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
393
|
+
delay_sec: z.ZodNumber;
|
|
394
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
395
|
+
account: z.ZodString;
|
|
396
|
+
name: z.ZodString;
|
|
397
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
398
|
+
actor: z.ZodString;
|
|
399
|
+
permission: z.ZodString;
|
|
400
|
+
}, z.core.$strip>>;
|
|
401
|
+
data: z.ZodAny;
|
|
402
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
403
|
+
}, z.core.$strip>>;
|
|
404
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
405
|
+
actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
406
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
407
|
+
name: z.ZodLiteral<string>;
|
|
408
|
+
data: z.ZodObject<{
|
|
409
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
410
|
+
}, z.core.$strip>;
|
|
411
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
412
|
+
actor: z.ZodString;
|
|
413
|
+
permission: z.ZodString;
|
|
414
|
+
}, z.core.$strip>>;
|
|
415
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
416
|
+
account: z.ZodLiteral<"webauthn">;
|
|
417
|
+
name: z.ZodLiteral<"exec">;
|
|
418
|
+
data: z.ZodObject<{
|
|
419
|
+
account: z.ZodString;
|
|
420
|
+
key: z.ZodObject<{
|
|
421
|
+
key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
422
|
+
modulus: z.ZodString;
|
|
423
|
+
exponent: z.ZodString;
|
|
424
|
+
}, z.core.$strip>]>>;
|
|
425
|
+
user_presence: z.ZodNumber;
|
|
426
|
+
rpid: z.ZodString;
|
|
427
|
+
}, z.core.$strip>;
|
|
428
|
+
nonce: z.ZodNumber;
|
|
429
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
430
|
+
actor: z.ZodString;
|
|
431
|
+
permission: z.ZodString;
|
|
432
|
+
}, z.core.$strip>>;
|
|
433
|
+
signature: z.ZodObject<{
|
|
434
|
+
auth_data: z.ZodString;
|
|
435
|
+
client_json: z.ZodString;
|
|
436
|
+
signature: z.ZodString;
|
|
437
|
+
}, z.core.$strip>;
|
|
438
|
+
trx: z.ZodObject<{
|
|
439
|
+
expiration: z.ZodString;
|
|
440
|
+
ref_block_num: z.ZodNumber;
|
|
441
|
+
ref_block_prefix: z.ZodNumber;
|
|
442
|
+
max_net_usage_words: z.ZodNumber;
|
|
443
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
444
|
+
delay_sec: z.ZodNumber;
|
|
445
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
446
|
+
account: z.ZodString;
|
|
447
|
+
name: z.ZodString;
|
|
448
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
449
|
+
actor: z.ZodString;
|
|
450
|
+
permission: z.ZodString;
|
|
451
|
+
}, z.core.$strip>>;
|
|
452
|
+
data: z.ZodAny;
|
|
453
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
454
|
+
}, z.core.$strip>>;
|
|
455
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
456
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
457
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
458
|
+
name: z.ZodLiteral<string>;
|
|
459
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
460
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
461
|
+
}, z.core.$strip>]>;
|
|
462
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
463
|
+
actor: z.ZodString;
|
|
464
|
+
permission: z.ZodString;
|
|
465
|
+
}, z.core.$strip>>;
|
|
466
|
+
}, z.core.$strip>>;
|
|
467
|
+
}, z.core.$strip>;
|
|
468
|
+
}, z.core.$strip>;
|
|
469
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
470
|
+
actor: z.ZodString;
|
|
471
|
+
permission: z.ZodString;
|
|
472
|
+
}, z.core.$strip>>;
|
|
473
|
+
}, z.core.$strip>]>>;
|
|
474
|
+
}, z.core.$strip>;
|
|
475
|
+
coin: z.ZodString;
|
|
476
|
+
wallet: z.ZodString;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
type GenerateAddressBody = z.infer<typeof generateAddressBodyParser>;
|
|
479
|
+
declare const generateAddressResponse: z.ZodObject<{
|
|
480
|
+
id: z.ZodString;
|
|
481
|
+
address: z.ZodString;
|
|
482
|
+
coin: z.ZodString;
|
|
483
|
+
wallet: z.ZodString;
|
|
484
|
+
memo: z.ZodOptional<z.ZodString>;
|
|
485
|
+
}, z.core.$strip>;
|
|
486
|
+
type GenerateAddressResponse = z.infer<typeof generateAddressResponse>;
|
|
487
|
+
declare const createAbstractAuthParser: (contract: string, action: string, data: z.ZodRawShape) => z.ZodObject<{
|
|
488
|
+
signer: z.ZodObject<{
|
|
489
|
+
actor: z.ZodString;
|
|
490
|
+
permission: z.ZodString;
|
|
491
|
+
}, z.core.$strip>;
|
|
492
|
+
signatures: z.ZodArray<z.ZodString>;
|
|
493
|
+
transaction: z.ZodObject<{
|
|
494
|
+
expiration: z.ZodString;
|
|
495
|
+
ref_block_num: z.ZodNumber;
|
|
496
|
+
ref_block_prefix: z.ZodNumber;
|
|
497
|
+
max_net_usage_words: z.ZodNumber;
|
|
498
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
499
|
+
delay_sec: z.ZodNumber;
|
|
500
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
501
|
+
account: z.ZodString;
|
|
502
|
+
name: z.ZodString;
|
|
503
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
504
|
+
actor: z.ZodString;
|
|
505
|
+
permission: z.ZodString;
|
|
506
|
+
}, z.core.$strip>>;
|
|
507
|
+
data: z.ZodAny;
|
|
508
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
509
|
+
}, z.core.$strip>>;
|
|
510
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
511
|
+
actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
512
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
513
|
+
name: z.ZodLiteral<string>;
|
|
514
|
+
data: z.ZodObject<{
|
|
515
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
518
|
+
actor: z.ZodString;
|
|
519
|
+
permission: z.ZodString;
|
|
520
|
+
}, z.core.$strip>>;
|
|
521
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
522
|
+
account: z.ZodLiteral<"webauthn">;
|
|
523
|
+
name: z.ZodLiteral<"exec">;
|
|
524
|
+
data: z.ZodObject<{
|
|
525
|
+
account: z.ZodString;
|
|
526
|
+
key: z.ZodObject<{
|
|
527
|
+
key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
528
|
+
modulus: z.ZodString;
|
|
529
|
+
exponent: z.ZodString;
|
|
530
|
+
}, z.core.$strip>]>>;
|
|
531
|
+
user_presence: z.ZodNumber;
|
|
532
|
+
rpid: z.ZodString;
|
|
533
|
+
}, z.core.$strip>;
|
|
534
|
+
nonce: z.ZodNumber;
|
|
535
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
536
|
+
actor: z.ZodString;
|
|
537
|
+
permission: z.ZodString;
|
|
538
|
+
}, z.core.$strip>>;
|
|
539
|
+
signature: z.ZodObject<{
|
|
540
|
+
auth_data: z.ZodString;
|
|
541
|
+
client_json: z.ZodString;
|
|
542
|
+
signature: z.ZodString;
|
|
543
|
+
}, z.core.$strip>;
|
|
544
|
+
trx: z.ZodObject<{
|
|
545
|
+
expiration: z.ZodString;
|
|
546
|
+
ref_block_num: z.ZodNumber;
|
|
547
|
+
ref_block_prefix: z.ZodNumber;
|
|
548
|
+
max_net_usage_words: z.ZodNumber;
|
|
549
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
550
|
+
delay_sec: z.ZodNumber;
|
|
551
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
552
|
+
account: z.ZodString;
|
|
553
|
+
name: z.ZodString;
|
|
554
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
555
|
+
actor: z.ZodString;
|
|
556
|
+
permission: z.ZodString;
|
|
557
|
+
}, z.core.$strip>>;
|
|
558
|
+
data: z.ZodAny;
|
|
559
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
560
|
+
}, z.core.$strip>>;
|
|
561
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
562
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
563
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
564
|
+
name: z.ZodLiteral<string>;
|
|
565
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
566
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
567
|
+
}, z.core.$strip>]>;
|
|
568
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
569
|
+
actor: z.ZodString;
|
|
570
|
+
permission: z.ZodString;
|
|
571
|
+
}, z.core.$strip>>;
|
|
572
|
+
}, z.core.$strip>>;
|
|
573
|
+
}, z.core.$strip>;
|
|
574
|
+
}, z.core.$strip>;
|
|
575
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
576
|
+
actor: z.ZodString;
|
|
577
|
+
permission: z.ZodString;
|
|
578
|
+
}, z.core.$strip>>;
|
|
579
|
+
}, z.core.$strip>]>>;
|
|
580
|
+
}, z.core.$strip>;
|
|
581
|
+
}, z.core.$strip>;
|
|
582
|
+
declare const generateAuthActionsBaseParser: z.ZodObject<{
|
|
583
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
584
|
+
name: z.ZodLiteral<string>;
|
|
585
|
+
data: z.ZodObject<{
|
|
586
|
+
time: z.ZodString;
|
|
587
|
+
protonAccount: z.ZodString;
|
|
588
|
+
}, z.core.$strip>;
|
|
589
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
590
|
+
actor: z.ZodString;
|
|
591
|
+
permission: z.ZodString;
|
|
592
|
+
}, z.core.$strip>>;
|
|
593
|
+
}, z.core.$strip>;
|
|
594
|
+
type GenerateAuthBaseAction = z.infer<typeof generateAuthActionsBaseParser>;
|
|
595
|
+
declare const generateAuthParser: z.ZodObject<{
|
|
596
|
+
signer: z.ZodObject<{
|
|
597
|
+
actor: z.ZodString;
|
|
598
|
+
permission: z.ZodString;
|
|
599
|
+
}, z.core.$strip>;
|
|
600
|
+
signatures: z.ZodArray<z.ZodString>;
|
|
601
|
+
transaction: z.ZodObject<{
|
|
602
|
+
expiration: z.ZodString;
|
|
603
|
+
ref_block_num: z.ZodNumber;
|
|
604
|
+
ref_block_prefix: z.ZodNumber;
|
|
605
|
+
max_net_usage_words: z.ZodNumber;
|
|
606
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
607
|
+
delay_sec: z.ZodNumber;
|
|
608
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
609
|
+
account: z.ZodString;
|
|
610
|
+
name: z.ZodString;
|
|
611
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
612
|
+
actor: z.ZodString;
|
|
613
|
+
permission: z.ZodString;
|
|
614
|
+
}, z.core.$strip>>;
|
|
615
|
+
data: z.ZodAny;
|
|
616
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
617
|
+
}, z.core.$strip>>;
|
|
618
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
619
|
+
actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
620
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
621
|
+
name: z.ZodLiteral<string>;
|
|
622
|
+
data: z.ZodObject<{
|
|
623
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
624
|
+
}, z.core.$strip>;
|
|
625
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
626
|
+
actor: z.ZodString;
|
|
627
|
+
permission: z.ZodString;
|
|
628
|
+
}, z.core.$strip>>;
|
|
629
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
630
|
+
account: z.ZodLiteral<"webauthn">;
|
|
631
|
+
name: z.ZodLiteral<"exec">;
|
|
632
|
+
data: z.ZodObject<{
|
|
633
|
+
account: z.ZodString;
|
|
634
|
+
key: z.ZodObject<{
|
|
635
|
+
key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
636
|
+
modulus: z.ZodString;
|
|
637
|
+
exponent: z.ZodString;
|
|
638
|
+
}, z.core.$strip>]>>;
|
|
639
|
+
user_presence: z.ZodNumber;
|
|
640
|
+
rpid: z.ZodString;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
nonce: z.ZodNumber;
|
|
643
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
644
|
+
actor: z.ZodString;
|
|
645
|
+
permission: z.ZodString;
|
|
646
|
+
}, z.core.$strip>>;
|
|
647
|
+
signature: z.ZodObject<{
|
|
648
|
+
auth_data: z.ZodString;
|
|
649
|
+
client_json: z.ZodString;
|
|
650
|
+
signature: z.ZodString;
|
|
651
|
+
}, z.core.$strip>;
|
|
652
|
+
trx: z.ZodObject<{
|
|
653
|
+
expiration: z.ZodString;
|
|
654
|
+
ref_block_num: z.ZodNumber;
|
|
655
|
+
ref_block_prefix: z.ZodNumber;
|
|
656
|
+
max_net_usage_words: z.ZodNumber;
|
|
657
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
658
|
+
delay_sec: z.ZodNumber;
|
|
659
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
660
|
+
account: z.ZodString;
|
|
661
|
+
name: z.ZodString;
|
|
662
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
663
|
+
actor: z.ZodString;
|
|
664
|
+
permission: z.ZodString;
|
|
665
|
+
}, z.core.$strip>>;
|
|
666
|
+
data: z.ZodAny;
|
|
667
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
668
|
+
}, z.core.$strip>>;
|
|
669
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
670
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
671
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
672
|
+
name: z.ZodLiteral<string>;
|
|
673
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
674
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
675
|
+
}, z.core.$strip>]>;
|
|
676
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
677
|
+
actor: z.ZodString;
|
|
678
|
+
permission: z.ZodString;
|
|
679
|
+
}, z.core.$strip>>;
|
|
680
|
+
}, z.core.$strip>>;
|
|
681
|
+
}, z.core.$strip>;
|
|
682
|
+
}, z.core.$strip>;
|
|
683
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
684
|
+
actor: z.ZodString;
|
|
685
|
+
permission: z.ZodString;
|
|
686
|
+
}, z.core.$strip>>;
|
|
687
|
+
}, z.core.$strip>]>>;
|
|
688
|
+
}, z.core.$strip>;
|
|
689
|
+
}, z.core.$strip>;
|
|
690
|
+
type GenerateAuth = z.infer<typeof generateAuthParser>;
|
|
691
|
+
declare const accountParser: z.ZodString;
|
|
692
|
+
declare const authorizationParser: z.ZodObject<{
|
|
693
|
+
actor: z.ZodString;
|
|
694
|
+
permission: z.ZodString;
|
|
695
|
+
}, z.core.$strip>;
|
|
696
|
+
type Authorization = z.infer<typeof authorizationParser>;
|
|
697
|
+
declare const authorizationsParser: z.ZodArray<z.ZodObject<{
|
|
698
|
+
actor: z.ZodString;
|
|
699
|
+
permission: z.ZodString;
|
|
700
|
+
}, z.core.$strip>>;
|
|
701
|
+
type Authorizations = z.infer<typeof authorizationsParser>;
|
|
702
|
+
declare const ExtendedAssetParser: z.ZodObject<{
|
|
703
|
+
quantity: z.ZodString;
|
|
704
|
+
contract: z.ZodString;
|
|
705
|
+
}, z.core.$strip>;
|
|
706
|
+
type ExtendedAsset = z.infer<typeof ExtendedAssetParser>;
|
|
707
|
+
declare const accountRamDeltaParser: z.ZodObject<{
|
|
708
|
+
account: z.ZodString;
|
|
709
|
+
delta: z.ZodString;
|
|
710
|
+
}, z.core.$strip>;
|
|
711
|
+
type HistoryAccountRamDelta = z.infer<typeof accountRamDeltaParser>;
|
|
712
|
+
interface CurrencyStat {
|
|
713
|
+
supply: string;
|
|
714
|
+
max_supply: string;
|
|
715
|
+
issuer: string;
|
|
716
|
+
}
|
|
717
|
+
interface CurrencyStats {
|
|
718
|
+
[key: string]: CurrencyStat;
|
|
719
|
+
}
|
|
720
|
+
declare const rateParser: z.ZodObject<{
|
|
721
|
+
counterCurrency: z.ZodString;
|
|
722
|
+
price: z.ZodNumber;
|
|
723
|
+
priceChangePercent: z.ZodNumber;
|
|
724
|
+
marketCap: z.ZodNumber;
|
|
725
|
+
volume: z.ZodNumber;
|
|
726
|
+
timestamp: z.ZodNumber;
|
|
727
|
+
}, z.core.$strip>;
|
|
728
|
+
type Rate = z.infer<typeof rateParser>;
|
|
729
|
+
declare const exchangeRateParser: z.ZodObject<{
|
|
730
|
+
contract: z.ZodString;
|
|
731
|
+
symbol: z.ZodString;
|
|
732
|
+
rank: z.ZodNumber;
|
|
733
|
+
rates: z.ZodArray<z.ZodObject<{
|
|
734
|
+
counterCurrency: z.ZodString;
|
|
735
|
+
price: z.ZodNumber;
|
|
736
|
+
priceChangePercent: z.ZodNumber;
|
|
737
|
+
marketCap: z.ZodNumber;
|
|
738
|
+
volume: z.ZodNumber;
|
|
739
|
+
timestamp: z.ZodNumber;
|
|
740
|
+
}, z.core.$strip>>;
|
|
741
|
+
}, z.core.$strip>;
|
|
742
|
+
type ExchangeRate = z.infer<typeof exchangeRateParser>;
|
|
743
|
+
declare const exchangeRatesParser: z.ZodArray<z.ZodObject<{
|
|
744
|
+
contract: z.ZodString;
|
|
745
|
+
symbol: z.ZodString;
|
|
746
|
+
rank: z.ZodNumber;
|
|
747
|
+
rates: z.ZodArray<z.ZodObject<{
|
|
748
|
+
counterCurrency: z.ZodString;
|
|
749
|
+
price: z.ZodNumber;
|
|
750
|
+
priceChangePercent: z.ZodNumber;
|
|
751
|
+
marketCap: z.ZodNumber;
|
|
752
|
+
volume: z.ZodNumber;
|
|
753
|
+
timestamp: z.ZodNumber;
|
|
754
|
+
}, z.core.$strip>>;
|
|
755
|
+
}, z.core.$strip>>;
|
|
756
|
+
type ExchangeRates = z.infer<typeof exchangeRatesParser>;
|
|
757
|
+
declare const bloksRatesParser: z.ZodArray<z.ZodObject<{
|
|
758
|
+
contract: z.ZodString;
|
|
759
|
+
symbol: z.ZodString;
|
|
760
|
+
rank: z.ZodNumber;
|
|
761
|
+
rates: z.ZodArray<z.ZodObject<{
|
|
762
|
+
counterCurrency: z.ZodString;
|
|
763
|
+
price: z.ZodNumber;
|
|
764
|
+
priceChangePercent: z.ZodNumber;
|
|
765
|
+
marketCap: z.ZodNumber;
|
|
766
|
+
volume: z.ZodNumber;
|
|
767
|
+
timestamp: z.ZodNumber;
|
|
768
|
+
}, z.core.$strip>>;
|
|
769
|
+
}, z.core.$strip>>;
|
|
770
|
+
type BloksRate = {
|
|
771
|
+
key: string;
|
|
772
|
+
symbol: string;
|
|
773
|
+
account: string;
|
|
774
|
+
chain: string;
|
|
775
|
+
supply: {
|
|
776
|
+
circulating: number;
|
|
777
|
+
max: number;
|
|
778
|
+
precision: number;
|
|
779
|
+
last_update: string;
|
|
780
|
+
};
|
|
781
|
+
metadata: {
|
|
782
|
+
name: string;
|
|
783
|
+
website: string;
|
|
784
|
+
logo: string;
|
|
785
|
+
created_at: string;
|
|
786
|
+
desc: string;
|
|
787
|
+
};
|
|
788
|
+
pairs: [{
|
|
789
|
+
id: string;
|
|
790
|
+
pair_base: string;
|
|
791
|
+
pair_quote: string;
|
|
792
|
+
exchange: string;
|
|
793
|
+
quote: {
|
|
794
|
+
price: number;
|
|
795
|
+
volume_base_24h: number;
|
|
796
|
+
volume_quote_24h: number;
|
|
797
|
+
market_cap: number;
|
|
798
|
+
price_usd: number;
|
|
799
|
+
volume_usd_24h: number;
|
|
800
|
+
};
|
|
801
|
+
percentage_daily_volume: number;
|
|
802
|
+
}];
|
|
803
|
+
price: {
|
|
804
|
+
quotes: {
|
|
805
|
+
[key: string]: number;
|
|
806
|
+
};
|
|
807
|
+
usd: number;
|
|
808
|
+
volume_base_24h: number;
|
|
809
|
+
volume_usd_24h: number;
|
|
810
|
+
marketcap_usd: number;
|
|
811
|
+
change_24hr: number;
|
|
812
|
+
};
|
|
813
|
+
rank: number;
|
|
814
|
+
chain_rank: number;
|
|
815
|
+
};
|
|
816
|
+
type BloksRates = BloksRate[];
|
|
817
|
+
declare enum Type {
|
|
818
|
+
RECEIVE = "receive",
|
|
819
|
+
SEND = "send"
|
|
820
|
+
}
|
|
821
|
+
declare const depositBodyParser: z.ZodObject<{
|
|
822
|
+
id: z.ZodString;
|
|
823
|
+
type: z.ZodEnum<typeof Type>;
|
|
824
|
+
hash: z.ZodString;
|
|
825
|
+
coin: z.ZodString;
|
|
826
|
+
wallet: z.ZodString;
|
|
827
|
+
network: z.ZodString;
|
|
828
|
+
}, z.core.$strip>;
|
|
829
|
+
type DepositBody = z.infer<typeof depositBodyParser>;
|
|
830
|
+
declare const metalTransactionParser: z.ZodObject<{
|
|
831
|
+
id: z.ZodString;
|
|
832
|
+
wallet: z.ZodString;
|
|
833
|
+
value: z.ZodNumber;
|
|
834
|
+
valueString: z.ZodString;
|
|
835
|
+
address: z.ZodString;
|
|
836
|
+
type: z.ZodEnum<typeof Type>;
|
|
837
|
+
state: z.ZodString;
|
|
838
|
+
confirmations: z.ZodNumber;
|
|
839
|
+
hash: z.ZodString;
|
|
840
|
+
blockHash: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
841
|
+
blockHeight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
842
|
+
}, z.core.$strip>;
|
|
843
|
+
type MetalTransaction = z.infer<typeof metalTransactionParser>;
|
|
844
|
+
declare const otcOrderResponseParser: z.ZodObject<{
|
|
845
|
+
success: z.ZodBoolean;
|
|
846
|
+
transaction_id: z.ZodString;
|
|
847
|
+
errormsg: z.ZodOptional<z.ZodString>;
|
|
848
|
+
}, z.core.$strip>;
|
|
849
|
+
type OtcOrderResponse = z.infer<typeof otcOrderResponseParser>;
|
|
850
|
+
declare const otcQuoteBodyParser: z.ZodObject<{
|
|
851
|
+
baseAmount: z.ZodNumber;
|
|
852
|
+
baseSymbol: z.ZodString;
|
|
853
|
+
quoteSymbol: z.ZodString;
|
|
854
|
+
}, z.core.$strip>;
|
|
855
|
+
type OtcQuoteBody = z.infer<typeof otcQuoteBodyParser>;
|
|
856
|
+
declare const otcQuoteResponseParser: z.ZodObject<{
|
|
857
|
+
success: z.ZodBoolean;
|
|
858
|
+
token: z.ZodString;
|
|
859
|
+
qty: z.ZodNumber;
|
|
860
|
+
errormsg: z.ZodOptional<z.ZodString>;
|
|
861
|
+
}, z.core.$strip>;
|
|
862
|
+
type OtcQuoteResponse = z.infer<typeof otcQuoteResponseParser>;
|
|
863
|
+
declare class INode<T> {
|
|
864
|
+
key: string;
|
|
865
|
+
data: T;
|
|
866
|
+
constructor(key: string, data?: T);
|
|
867
|
+
}
|
|
868
|
+
declare class ILink<T> {
|
|
869
|
+
from: INode<T>;
|
|
870
|
+
to: INode<T>;
|
|
871
|
+
data: T;
|
|
872
|
+
constructor(from: INode<T>, to: INode<T>, data?: T);
|
|
873
|
+
}
|
|
874
|
+
declare class Graph<T> {
|
|
875
|
+
nodes: INode<T>[];
|
|
876
|
+
links: ILink<T>[];
|
|
877
|
+
lastPathFound: INode<T>[];
|
|
878
|
+
isEquals: (a: INode<T>, b: INode<T>) => boolean;
|
|
879
|
+
addNode(k: string, v?: T): void;
|
|
880
|
+
addNodes(...nodes: (string | [string, T?])[]): void;
|
|
881
|
+
findNode(k: string): INode<T> | undefined;
|
|
882
|
+
findNodes(...keys: string[]): (INode<T> | undefined)[];
|
|
883
|
+
requireFindNodes(...keys: string[]): INode<T>[];
|
|
884
|
+
addLink(nodeA: string, nodeB: string, data?: T): void;
|
|
885
|
+
addLinks(...links: [nodeA: string, nodeB: string, data?: T][]): void;
|
|
886
|
+
/**
|
|
887
|
+
* Get all nodes linked
|
|
888
|
+
* to from `node`.
|
|
889
|
+
*/
|
|
890
|
+
findLinkedNodes(node: INode<T>): INode<T>[];
|
|
891
|
+
findAllPaths(from: string, to: string): INode<T>[][];
|
|
892
|
+
}
|
|
893
|
+
interface RawPool {
|
|
894
|
+
lt_symbol: string;
|
|
895
|
+
creator: string;
|
|
896
|
+
memo: string;
|
|
897
|
+
pool1: {
|
|
898
|
+
quantity: string;
|
|
899
|
+
contract: string;
|
|
900
|
+
};
|
|
901
|
+
pool2: {
|
|
902
|
+
quantity: string;
|
|
903
|
+
contract: string;
|
|
904
|
+
};
|
|
905
|
+
hash: string;
|
|
906
|
+
fee: {
|
|
907
|
+
exchange_fee: number;
|
|
908
|
+
add_liquidity_fee: number;
|
|
909
|
+
remove_liquidity_fee: number;
|
|
910
|
+
};
|
|
911
|
+
active: boolean;
|
|
912
|
+
amplifier: number;
|
|
913
|
+
}
|
|
914
|
+
interface Pool extends Omit<RawPool, "pool1" | "pool2"> {
|
|
915
|
+
lt_symbol: string;
|
|
916
|
+
creator: string;
|
|
917
|
+
memo: string;
|
|
918
|
+
pool1: ExtendedTokenWithRate;
|
|
919
|
+
pool2: ExtendedTokenWithRate;
|
|
920
|
+
hash: string;
|
|
921
|
+
fee: {
|
|
922
|
+
exchange_fee: number;
|
|
923
|
+
add_liquidity_fee: number;
|
|
924
|
+
remove_liquidity_fee: number;
|
|
925
|
+
};
|
|
926
|
+
liquidityUsd: number;
|
|
927
|
+
liquidityApr: number;
|
|
928
|
+
}
|
|
929
|
+
type ExtendedToken = Coin & ExtendedAsset$1 & {
|
|
930
|
+
key: string;
|
|
931
|
+
};
|
|
932
|
+
type ExtendedTokenWithRate = ExtendedToken & {
|
|
933
|
+
rate: number;
|
|
934
|
+
};
|
|
935
|
+
type PoolTable = {
|
|
936
|
+
pool1: ExtendedTokenWithRate;
|
|
937
|
+
pool2: ExtendedTokenWithRate;
|
|
938
|
+
path: INode<Pool>[];
|
|
939
|
+
shortestPath: INode<Pool>[];
|
|
940
|
+
getPathString: () => string;
|
|
941
|
+
} | undefined;
|
|
942
|
+
declare const withdrawBodyBaseAction: z.ZodObject<{
|
|
943
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
944
|
+
name: z.ZodLiteral<string>;
|
|
945
|
+
data: z.ZodObject<{
|
|
946
|
+
from: z.ZodString;
|
|
947
|
+
to: z.ZodLiteral<"proton.wrap">;
|
|
948
|
+
quantity: z.ZodString;
|
|
949
|
+
memo: z.ZodString;
|
|
950
|
+
}, z.core.$strip>;
|
|
951
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
952
|
+
actor: z.ZodString;
|
|
953
|
+
permission: z.ZodString;
|
|
954
|
+
}, z.core.$strip>>;
|
|
955
|
+
}, z.core.$strip>;
|
|
956
|
+
type WithdrawBodyBaseAction = z.infer<typeof withdrawBodyBaseAction>;
|
|
957
|
+
declare const withdrawBodyParser: z.ZodObject<{
|
|
958
|
+
signer: z.ZodObject<{
|
|
959
|
+
actor: z.ZodString;
|
|
960
|
+
permission: z.ZodString;
|
|
961
|
+
}, z.core.$strip>;
|
|
962
|
+
signatures: z.ZodArray<z.ZodString>;
|
|
963
|
+
transaction: z.ZodObject<{
|
|
964
|
+
expiration: z.ZodString;
|
|
965
|
+
ref_block_num: z.ZodNumber;
|
|
966
|
+
ref_block_prefix: z.ZodNumber;
|
|
967
|
+
max_net_usage_words: z.ZodNumber;
|
|
968
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
969
|
+
delay_sec: z.ZodNumber;
|
|
970
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
971
|
+
account: z.ZodString;
|
|
972
|
+
name: z.ZodString;
|
|
973
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
974
|
+
actor: z.ZodString;
|
|
975
|
+
permission: z.ZodString;
|
|
976
|
+
}, z.core.$strip>>;
|
|
977
|
+
data: z.ZodAny;
|
|
978
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
979
|
+
}, z.core.$strip>>;
|
|
980
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
981
|
+
actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
982
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
983
|
+
name: z.ZodLiteral<string>;
|
|
984
|
+
data: z.ZodObject<{
|
|
985
|
+
from: z.ZodString;
|
|
986
|
+
to: z.ZodLiteral<"proton.wrap">;
|
|
987
|
+
quantity: z.ZodString;
|
|
988
|
+
memo: z.ZodString;
|
|
989
|
+
}, z.core.$strip>;
|
|
990
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
991
|
+
actor: z.ZodString;
|
|
992
|
+
permission: z.ZodString;
|
|
993
|
+
}, z.core.$strip>>;
|
|
994
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
995
|
+
account: z.ZodLiteral<"webauthn">;
|
|
996
|
+
name: z.ZodLiteral<"exec">;
|
|
997
|
+
data: z.ZodObject<{
|
|
998
|
+
account: z.ZodString;
|
|
999
|
+
key: z.ZodObject<{
|
|
1000
|
+
key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1001
|
+
modulus: z.ZodString;
|
|
1002
|
+
exponent: z.ZodString;
|
|
1003
|
+
}, z.core.$strip>]>>;
|
|
1004
|
+
user_presence: z.ZodNumber;
|
|
1005
|
+
rpid: z.ZodString;
|
|
1006
|
+
}, z.core.$strip>;
|
|
1007
|
+
nonce: z.ZodNumber;
|
|
1008
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
1009
|
+
actor: z.ZodString;
|
|
1010
|
+
permission: z.ZodString;
|
|
1011
|
+
}, z.core.$strip>>;
|
|
1012
|
+
signature: z.ZodObject<{
|
|
1013
|
+
auth_data: z.ZodString;
|
|
1014
|
+
client_json: z.ZodString;
|
|
1015
|
+
signature: z.ZodString;
|
|
1016
|
+
}, z.core.$strip>;
|
|
1017
|
+
trx: z.ZodObject<{
|
|
1018
|
+
expiration: z.ZodString;
|
|
1019
|
+
ref_block_num: z.ZodNumber;
|
|
1020
|
+
ref_block_prefix: z.ZodNumber;
|
|
1021
|
+
max_net_usage_words: z.ZodNumber;
|
|
1022
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
1023
|
+
delay_sec: z.ZodNumber;
|
|
1024
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
1025
|
+
account: z.ZodString;
|
|
1026
|
+
name: z.ZodString;
|
|
1027
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
1028
|
+
actor: z.ZodString;
|
|
1029
|
+
permission: z.ZodString;
|
|
1030
|
+
}, z.core.$strip>>;
|
|
1031
|
+
data: z.ZodAny;
|
|
1032
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
1033
|
+
}, z.core.$strip>>;
|
|
1034
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
1035
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
1036
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
1037
|
+
name: z.ZodLiteral<string>;
|
|
1038
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1039
|
+
from: z.ZodString;
|
|
1040
|
+
to: z.ZodLiteral<"proton.wrap">;
|
|
1041
|
+
quantity: z.ZodString;
|
|
1042
|
+
memo: z.ZodString;
|
|
1043
|
+
}, z.core.$strip>]>;
|
|
1044
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
1045
|
+
actor: z.ZodString;
|
|
1046
|
+
permission: z.ZodString;
|
|
1047
|
+
}, z.core.$strip>>;
|
|
1048
|
+
}, z.core.$strip>>;
|
|
1049
|
+
}, z.core.$strip>;
|
|
1050
|
+
}, z.core.$strip>;
|
|
1051
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
1052
|
+
actor: z.ZodString;
|
|
1053
|
+
permission: z.ZodString;
|
|
1054
|
+
}, z.core.$strip>>;
|
|
1055
|
+
}, z.core.$strip>]>>;
|
|
1056
|
+
}, z.core.$strip>;
|
|
1057
|
+
quoteId: z.ZodString;
|
|
1058
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
1059
|
+
}, z.core.$strip>;
|
|
1060
|
+
type WithdrawBody = z.infer<typeof withdrawBodyParser>;
|
|
1061
|
+
declare const withdrawMetalResponseParser: z.ZodObject<{
|
|
1062
|
+
success: z.ZodBoolean;
|
|
1063
|
+
id: z.ZodString;
|
|
1064
|
+
}, z.core.$strip>;
|
|
1065
|
+
type WithdrawMetalResponse = z.infer<typeof withdrawMetalResponseParser>;
|
|
1066
|
+
declare const withdrawalFeeQuoteParser: z.ZodObject<{
|
|
1067
|
+
quoteId: z.ZodString;
|
|
1068
|
+
estimatedFee: z.ZodString;
|
|
1069
|
+
currency: z.ZodString;
|
|
1070
|
+
network: z.ZodString;
|
|
1071
|
+
}, z.core.$strip>;
|
|
1072
|
+
type WithdrawalFeeQuote = z.infer<typeof withdrawalFeeQuoteParser>;
|
|
1073
|
+
declare const withdrawHistoryMetalSwapParser: z.ZodObject<{
|
|
1074
|
+
id: z.ZodString;
|
|
1075
|
+
status: z.ZodString;
|
|
1076
|
+
amount: z.ZodString;
|
|
1077
|
+
currency: z.ZodString;
|
|
1078
|
+
network: z.ZodString;
|
|
1079
|
+
created: z.ZodString;
|
|
1080
|
+
withdrawalAddress: z.ZodString;
|
|
1081
|
+
withdrawalHash: z.ZodOptional<z.ZodString>;
|
|
1082
|
+
}, z.core.$strip>;
|
|
1083
|
+
type WithdrawHistoryMetalSwap = z.infer<typeof withdrawHistoryMetalSwapParser>;
|
|
1084
|
+
declare const withdrawHistoryMetalResponseParser: z.ZodObject<{
|
|
1085
|
+
swaps: z.ZodArray<z.ZodObject<{
|
|
1086
|
+
id: z.ZodString;
|
|
1087
|
+
status: z.ZodString;
|
|
1088
|
+
amount: z.ZodString;
|
|
1089
|
+
currency: z.ZodString;
|
|
1090
|
+
network: z.ZodString;
|
|
1091
|
+
created: z.ZodString;
|
|
1092
|
+
withdrawalAddress: z.ZodString;
|
|
1093
|
+
withdrawalHash: z.ZodOptional<z.ZodString>;
|
|
1094
|
+
}, z.core.$strip>>;
|
|
1095
|
+
page: z.ZodNumber;
|
|
1096
|
+
pageSize: z.ZodNumber;
|
|
1097
|
+
numberOfElements: z.ZodNumber;
|
|
1098
|
+
totalPages: z.ZodNumber;
|
|
1099
|
+
totalElements: z.ZodNumber;
|
|
1100
|
+
}, z.core.$strip>;
|
|
1101
|
+
type WithdrawHistoryMetalResponse = z.infer<typeof withdrawHistoryMetalResponseParser>;
|
|
1102
|
+
declare enum Status {
|
|
1103
|
+
PENDING = "pending",
|
|
1104
|
+
SUCCESS = "success",
|
|
1105
|
+
FAIL = "fail",
|
|
1106
|
+
PROCESSING = "processing"
|
|
1107
|
+
}
|
|
1108
|
+
declare const wrapStartParser: z.ZodObject<{
|
|
1109
|
+
balance: z.ZodObject<{
|
|
1110
|
+
quantity: z.ZodString;
|
|
1111
|
+
contract: z.ZodString;
|
|
1112
|
+
}, z.core.$strip>;
|
|
1113
|
+
id: z.ZodString;
|
|
1114
|
+
txid: z.ZodString;
|
|
1115
|
+
chain: z.ZodString;
|
|
1116
|
+
deposit_address: z.ZodString;
|
|
1117
|
+
confirmations: z.ZodNumber;
|
|
1118
|
+
}, z.core.$strip>;
|
|
1119
|
+
type WrapStart = z.infer<typeof wrapStartParser>;
|
|
1120
|
+
declare const wrapSetConfParser: z.ZodObject<{
|
|
1121
|
+
wrap_hash: z.ZodString;
|
|
1122
|
+
confirmations: z.ZodNumber;
|
|
1123
|
+
}, z.core.$strip>;
|
|
1124
|
+
type WrapSetConf = z.infer<typeof wrapSetConfParser>;
|
|
1125
|
+
declare const wrapParser: z.ZodObject<{
|
|
1126
|
+
index: z.ZodNumber;
|
|
1127
|
+
proton_account: z.ZodString;
|
|
1128
|
+
balance: z.ZodObject<{
|
|
1129
|
+
quantity: z.ZodString;
|
|
1130
|
+
contract: z.ZodString;
|
|
1131
|
+
}, z.core.$strip>;
|
|
1132
|
+
id: z.ZodString;
|
|
1133
|
+
txid: z.ZodString;
|
|
1134
|
+
chain: z.ZodString;
|
|
1135
|
+
deposit_address: z.ZodString;
|
|
1136
|
+
status: z.ZodEnum<typeof Status>;
|
|
1137
|
+
finish_txid: z.ZodString;
|
|
1138
|
+
wrap_hash: z.ZodString;
|
|
1139
|
+
confirmations: z.ZodNumber;
|
|
1140
|
+
}, z.core.$strip>;
|
|
1141
|
+
type Wrap = z.infer<typeof wrapParser>;
|
|
1142
|
+
declare const sortDirectionEnum: z.ZodEnum<{
|
|
1143
|
+
asc: "asc";
|
|
1144
|
+
desc: "desc";
|
|
1145
|
+
}>;
|
|
1146
|
+
type SortDirection = z.input<typeof sortDirectionEnum>;
|
|
1147
|
+
/**
|
|
1148
|
+
* OHLCV
|
|
1149
|
+
*/
|
|
1150
|
+
declare const ohlcvParser: z.ZodObject<{
|
|
1151
|
+
time: z.ZodNumber;
|
|
1152
|
+
open: z.ZodNumber;
|
|
1153
|
+
high: z.ZodNumber;
|
|
1154
|
+
low: z.ZodNumber;
|
|
1155
|
+
close: z.ZodNumber;
|
|
1156
|
+
volume: z.ZodNumber;
|
|
1157
|
+
volume_bid: z.ZodNumber;
|
|
1158
|
+
count: z.ZodNumber;
|
|
1159
|
+
}, z.core.$strip>;
|
|
1160
|
+
type OHLCV = z.infer<typeof ohlcvParser>;
|
|
1161
|
+
declare const getOhlcvParser: z.ZodObject<{
|
|
1162
|
+
interval: z.ZodString;
|
|
1163
|
+
from: z.ZodString;
|
|
1164
|
+
to: z.ZodString;
|
|
1165
|
+
symbol: z.ZodString;
|
|
1166
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
1167
|
+
}, z.core.$strip>;
|
|
1168
|
+
type GetOHLCV = z.input<typeof getOhlcvParser>;
|
|
1169
|
+
type GetOHLCVParsed = z.output<typeof getOhlcvParser>;
|
|
1170
|
+
declare const getOhlcvResponseParser: z.ZodObject<{
|
|
1171
|
+
sync: z.ZodNumber;
|
|
1172
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1173
|
+
time: z.ZodNumber;
|
|
1174
|
+
open: z.ZodNumber;
|
|
1175
|
+
high: z.ZodNumber;
|
|
1176
|
+
low: z.ZodNumber;
|
|
1177
|
+
close: z.ZodNumber;
|
|
1178
|
+
volume: z.ZodNumber;
|
|
1179
|
+
volume_bid: z.ZodNumber;
|
|
1180
|
+
count: z.ZodNumber;
|
|
1181
|
+
}, z.core.$strip>>;
|
|
1182
|
+
}, z.core.$strip>;
|
|
1183
|
+
type GetOHLCVResponse = z.infer<typeof getOhlcvResponseParser>;
|
|
1184
|
+
/**
|
|
1185
|
+
* Order History
|
|
1186
|
+
*/
|
|
1187
|
+
declare const openOrderParser: z.ZodObject<{
|
|
1188
|
+
block_time: z.ZodString;
|
|
1189
|
+
order_id: z.ZodString;
|
|
1190
|
+
ordinal_order_id: z.ZodString;
|
|
1191
|
+
market_id: z.ZodNumber;
|
|
1192
|
+
quantity_init: z.ZodOptional<z.ZodNumber>;
|
|
1193
|
+
quantity_curr: z.ZodNumber;
|
|
1194
|
+
price: z.ZodNumber;
|
|
1195
|
+
account_name: z.ZodString;
|
|
1196
|
+
order_side: z.ZodNumber;
|
|
1197
|
+
order_type: z.ZodNumber;
|
|
1198
|
+
trigger_price: z.ZodNumber;
|
|
1199
|
+
fill_type: z.ZodNumber;
|
|
1200
|
+
status: z.ZodString;
|
|
1201
|
+
filled_total: z.ZodOptional<z.ZodNumber>;
|
|
1202
|
+
filled_amount: z.ZodOptional<z.ZodNumber>;
|
|
1203
|
+
filled_fee: z.ZodOptional<z.ZodNumber>;
|
|
1204
|
+
created_at: z.ZodString;
|
|
1205
|
+
updated_at: z.ZodString;
|
|
1206
|
+
}, z.core.$strip>;
|
|
1207
|
+
type OpenOrder = z.infer<typeof openOrderParser>;
|
|
1208
|
+
declare const orderLogParser: z.ZodObject<{
|
|
1209
|
+
seq: z.ZodString;
|
|
1210
|
+
block_num: z.ZodString;
|
|
1211
|
+
block_time: z.ZodString;
|
|
1212
|
+
order_id: z.ZodString;
|
|
1213
|
+
market_id: z.ZodNumber;
|
|
1214
|
+
quantity: z.ZodString;
|
|
1215
|
+
price: z.ZodString;
|
|
1216
|
+
account_name: z.ZodString;
|
|
1217
|
+
order_side: z.ZodNumber;
|
|
1218
|
+
order_type: z.ZodNumber;
|
|
1219
|
+
trigger_price: z.ZodString;
|
|
1220
|
+
fill_type: z.ZodNumber;
|
|
1221
|
+
status: z.ZodString;
|
|
1222
|
+
quantity_change: z.ZodString;
|
|
1223
|
+
trx_id: z.ZodString;
|
|
1224
|
+
}, z.core.$strip>;
|
|
1225
|
+
type OrderLog = z.infer<typeof orderLogParser>;
|
|
1226
|
+
declare const orderHistoryParser: z.ZodObject<{
|
|
1227
|
+
block_num: z.ZodString;
|
|
1228
|
+
block_time: z.ZodString;
|
|
1229
|
+
order_id: z.ZodString;
|
|
1230
|
+
ordinal_order_id: z.ZodString;
|
|
1231
|
+
market_id: z.ZodNumber;
|
|
1232
|
+
quantity_init: z.ZodOptional<z.ZodNumber>;
|
|
1233
|
+
quantity_curr: z.ZodNumber;
|
|
1234
|
+
price: z.ZodNumber;
|
|
1235
|
+
account_name: z.ZodString;
|
|
1236
|
+
order_side: z.ZodNumber;
|
|
1237
|
+
order_type: z.ZodNumber;
|
|
1238
|
+
trigger_price: z.ZodNumber;
|
|
1239
|
+
fill_type: z.ZodNumber;
|
|
1240
|
+
status: z.ZodString;
|
|
1241
|
+
quantity_change: z.ZodNumber;
|
|
1242
|
+
filled_total: z.ZodOptional<z.ZodNumber>;
|
|
1243
|
+
filled_amount: z.ZodOptional<z.ZodNumber>;
|
|
1244
|
+
filled_fee: z.ZodOptional<z.ZodNumber>;
|
|
1245
|
+
seq: z.ZodString;
|
|
1246
|
+
trx_id: z.ZodString;
|
|
1247
|
+
}, z.core.$strip>;
|
|
1248
|
+
type OrderHistory = z.infer<typeof orderHistoryParser>;
|
|
1249
|
+
declare const getOpenOrdersParser: z.ZodObject<{
|
|
1250
|
+
account: z.ZodString;
|
|
1251
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1252
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
1253
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
1254
|
+
ordinal_order_ids: z.ZodPipe<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodString]>>, z.ZodTransform<string[], string | string[] | undefined>>;
|
|
1255
|
+
}, z.core.$strip>;
|
|
1256
|
+
type GetOpenOrders = z.input<typeof getOpenOrdersParser>;
|
|
1257
|
+
type GetOpenOrdersParsed = z.output<typeof getOpenOrdersParser>;
|
|
1258
|
+
declare const getOpenOrdersResponseParser: z.ZodObject<{
|
|
1259
|
+
sync: z.ZodNumber;
|
|
1260
|
+
count: z.ZodNumber;
|
|
1261
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1262
|
+
block_time: z.ZodString;
|
|
1263
|
+
order_id: z.ZodString;
|
|
1264
|
+
ordinal_order_id: z.ZodString;
|
|
1265
|
+
market_id: z.ZodNumber;
|
|
1266
|
+
quantity_init: z.ZodOptional<z.ZodNumber>;
|
|
1267
|
+
quantity_curr: z.ZodNumber;
|
|
1268
|
+
price: z.ZodNumber;
|
|
1269
|
+
account_name: z.ZodString;
|
|
1270
|
+
order_side: z.ZodNumber;
|
|
1271
|
+
order_type: z.ZodNumber;
|
|
1272
|
+
trigger_price: z.ZodNumber;
|
|
1273
|
+
fill_type: z.ZodNumber;
|
|
1274
|
+
status: z.ZodString;
|
|
1275
|
+
filled_total: z.ZodOptional<z.ZodNumber>;
|
|
1276
|
+
filled_amount: z.ZodOptional<z.ZodNumber>;
|
|
1277
|
+
filled_fee: z.ZodOptional<z.ZodNumber>;
|
|
1278
|
+
created_at: z.ZodString;
|
|
1279
|
+
updated_at: z.ZodString;
|
|
1280
|
+
}, z.core.$strip>>;
|
|
1281
|
+
}, z.core.$strip>;
|
|
1282
|
+
type GetOpenOrdersResponse = z.infer<typeof getOpenOrdersResponseParser>;
|
|
1283
|
+
declare const getOrderHistoryParser: z.ZodObject<{
|
|
1284
|
+
account: z.ZodString;
|
|
1285
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1286
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
1287
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
1288
|
+
ordinal_order_ids: z.ZodPipe<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodString]>>, z.ZodTransform<string[], string | string[] | undefined>>;
|
|
1289
|
+
trx_id: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1291
|
+
}, z.core.$strip>;
|
|
1292
|
+
type GetOrderHistory = z.input<typeof getOrderHistoryParser>;
|
|
1293
|
+
type GetOrderHistoryParsed = z.output<typeof getOrderHistoryParser>;
|
|
1294
|
+
declare const getOrderHistoryResponseParser: z.ZodObject<{
|
|
1295
|
+
sync: z.ZodNumber;
|
|
1296
|
+
count: z.ZodNumber;
|
|
1297
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1298
|
+
block_num: z.ZodString;
|
|
1299
|
+
block_time: z.ZodString;
|
|
1300
|
+
order_id: z.ZodString;
|
|
1301
|
+
ordinal_order_id: z.ZodString;
|
|
1302
|
+
market_id: z.ZodNumber;
|
|
1303
|
+
quantity_init: z.ZodOptional<z.ZodNumber>;
|
|
1304
|
+
quantity_curr: z.ZodNumber;
|
|
1305
|
+
price: z.ZodNumber;
|
|
1306
|
+
account_name: z.ZodString;
|
|
1307
|
+
order_side: z.ZodNumber;
|
|
1308
|
+
order_type: z.ZodNumber;
|
|
1309
|
+
trigger_price: z.ZodNumber;
|
|
1310
|
+
fill_type: z.ZodNumber;
|
|
1311
|
+
status: z.ZodString;
|
|
1312
|
+
quantity_change: z.ZodNumber;
|
|
1313
|
+
filled_total: z.ZodOptional<z.ZodNumber>;
|
|
1314
|
+
filled_amount: z.ZodOptional<z.ZodNumber>;
|
|
1315
|
+
filled_fee: z.ZodOptional<z.ZodNumber>;
|
|
1316
|
+
seq: z.ZodString;
|
|
1317
|
+
trx_id: z.ZodString;
|
|
1318
|
+
}, z.core.$strip>>;
|
|
1319
|
+
}, z.core.$strip>;
|
|
1320
|
+
type GetOrderHistoryResponse = z.infer<typeof getOrderHistoryResponseParser>;
|
|
1321
|
+
declare const getOrderLifecycleParser: z.ZodObject<{
|
|
1322
|
+
order_id: z.ZodOptional<z.ZodString>;
|
|
1323
|
+
ordinal_order_id: z.ZodOptional<z.ZodString>;
|
|
1324
|
+
}, z.core.$strip>;
|
|
1325
|
+
type GetOrderLifecycle = z.input<typeof getOrderLifecycleParser>;
|
|
1326
|
+
type GetOrderLifecycleParsed = z.output<typeof getOrderLifecycleParser>;
|
|
1327
|
+
declare const getOrderLifecycleResponseParser: z.ZodObject<{
|
|
1328
|
+
sync: z.ZodNumber;
|
|
1329
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1330
|
+
block_num: z.ZodString;
|
|
1331
|
+
block_time: z.ZodString;
|
|
1332
|
+
order_id: z.ZodString;
|
|
1333
|
+
ordinal_order_id: z.ZodString;
|
|
1334
|
+
market_id: z.ZodNumber;
|
|
1335
|
+
quantity_init: z.ZodOptional<z.ZodNumber>;
|
|
1336
|
+
quantity_curr: z.ZodNumber;
|
|
1337
|
+
price: z.ZodNumber;
|
|
1338
|
+
account_name: z.ZodString;
|
|
1339
|
+
order_side: z.ZodNumber;
|
|
1340
|
+
order_type: z.ZodNumber;
|
|
1341
|
+
trigger_price: z.ZodNumber;
|
|
1342
|
+
fill_type: z.ZodNumber;
|
|
1343
|
+
status: z.ZodString;
|
|
1344
|
+
quantity_change: z.ZodNumber;
|
|
1345
|
+
filled_total: z.ZodOptional<z.ZodNumber>;
|
|
1346
|
+
filled_amount: z.ZodOptional<z.ZodNumber>;
|
|
1347
|
+
filled_fee: z.ZodOptional<z.ZodNumber>;
|
|
1348
|
+
seq: z.ZodString;
|
|
1349
|
+
trx_id: z.ZodString;
|
|
1350
|
+
}, z.core.$strip>>;
|
|
1351
|
+
}, z.core.$strip>;
|
|
1352
|
+
type GetOrderLifecycleResponse = z.infer<typeof getOrderLifecycleResponseParser>;
|
|
1353
|
+
/**
|
|
1354
|
+
* Submit Order
|
|
1355
|
+
*/
|
|
1356
|
+
declare const postSubmitOrderParser: z.ZodObject<{
|
|
1357
|
+
serialized_tx_hex: z.ZodString;
|
|
1358
|
+
signatures: z.ZodArray<z.ZodString>;
|
|
1359
|
+
}, z.core.$strip>;
|
|
1360
|
+
type PostSubmitOrder = z.infer<typeof postSubmitOrderParser>;
|
|
1361
|
+
declare const postSubmitOrderResponseParser: z.ZodObject<{
|
|
1362
|
+
sync: z.ZodNumber;
|
|
1363
|
+
data: z.ZodObject<{
|
|
1364
|
+
trx_id: z.ZodString;
|
|
1365
|
+
block_time: z.ZodString;
|
|
1366
|
+
orders: z.ZodArray<z.ZodObject<{
|
|
1367
|
+
ordinal_order_id: z.ZodString;
|
|
1368
|
+
order_id: z.ZodString;
|
|
1369
|
+
status: z.ZodString;
|
|
1370
|
+
}, z.core.$strip>>;
|
|
1371
|
+
}, z.core.$strip>;
|
|
1372
|
+
}, z.core.$strip>;
|
|
1373
|
+
type PostSubmitOrderResponse = z.infer<typeof postSubmitOrderResponseParser>;
|
|
1374
|
+
/**
|
|
1375
|
+
* Serialize Order
|
|
1376
|
+
*/
|
|
1377
|
+
declare const postSerializeOrderParser: z.ZodObject<{
|
|
1378
|
+
transaction: z.ZodObject<{
|
|
1379
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
1380
|
+
account: z.ZodString;
|
|
1381
|
+
name: z.ZodString;
|
|
1382
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
1383
|
+
actor: z.ZodString;
|
|
1384
|
+
permission: z.ZodString;
|
|
1385
|
+
}, z.core.$strip>>;
|
|
1386
|
+
data: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1387
|
+
}, z.core.$strip>>;
|
|
1388
|
+
}, z.core.$strip>;
|
|
1389
|
+
}, z.core.$strip>;
|
|
1390
|
+
type PostSerializeOrder = z.infer<typeof postSerializeOrderParser>;
|
|
1391
|
+
declare const postSerializeOrderResponseParser: z.ZodObject<{
|
|
1392
|
+
data: z.ZodObject<{
|
|
1393
|
+
serialized_tx_hex: z.ZodString;
|
|
1394
|
+
digest_hex: z.ZodString;
|
|
1395
|
+
}, z.core.$strip>;
|
|
1396
|
+
}, z.core.$strip>;
|
|
1397
|
+
type PostSerializeOrderResponse = z.infer<typeof postSerializeOrderResponseParser>;
|
|
1398
|
+
/**
|
|
1399
|
+
* Depth
|
|
1400
|
+
*/
|
|
1401
|
+
declare const depthParser: z.ZodObject<{
|
|
1402
|
+
level: z.ZodNumber;
|
|
1403
|
+
ask: z.ZodNumber;
|
|
1404
|
+
bid: z.ZodNumber;
|
|
1405
|
+
count: z.ZodNumber;
|
|
1406
|
+
}, z.core.$strip>;
|
|
1407
|
+
type Depth = z.infer<typeof depthParser>;
|
|
1408
|
+
declare const getDepthParser: z.ZodObject<{
|
|
1409
|
+
symbol: z.ZodString;
|
|
1410
|
+
step: z.ZodCoercedNumber<number>;
|
|
1411
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
1412
|
+
}, z.core.$strip>;
|
|
1413
|
+
type GetDepth = z.input<typeof getDepthParser>;
|
|
1414
|
+
type GetDepthParsed = z.output<typeof getDepthParser>;
|
|
1415
|
+
declare const getDepthResponseParser: z.ZodObject<{
|
|
1416
|
+
sync: z.ZodNumber;
|
|
1417
|
+
data: z.ZodObject<{
|
|
1418
|
+
bids: z.ZodArray<z.ZodObject<{
|
|
1419
|
+
level: z.ZodNumber;
|
|
1420
|
+
ask: z.ZodNumber;
|
|
1421
|
+
bid: z.ZodNumber;
|
|
1422
|
+
count: z.ZodNumber;
|
|
1423
|
+
}, z.core.$strip>>;
|
|
1424
|
+
asks: z.ZodArray<z.ZodObject<{
|
|
1425
|
+
level: z.ZodNumber;
|
|
1426
|
+
ask: z.ZodNumber;
|
|
1427
|
+
bid: z.ZodNumber;
|
|
1428
|
+
count: z.ZodNumber;
|
|
1429
|
+
}, z.core.$strip>>;
|
|
1430
|
+
}, z.core.$strip>;
|
|
1431
|
+
}, z.core.$strip>;
|
|
1432
|
+
type GetDepthResponse = z.infer<typeof getDepthResponseParser>;
|
|
1433
|
+
/**
|
|
1434
|
+
* Daily
|
|
1435
|
+
*/
|
|
1436
|
+
declare const dailyParser: z.ZodObject<{
|
|
1437
|
+
market_id: z.ZodNumber;
|
|
1438
|
+
symbol: z.ZodString;
|
|
1439
|
+
open: z.ZodNumber;
|
|
1440
|
+
high: z.ZodNumber;
|
|
1441
|
+
low: z.ZodNumber;
|
|
1442
|
+
close: z.ZodNumber;
|
|
1443
|
+
volume_bid: z.ZodNumber;
|
|
1444
|
+
volume_ask: z.ZodNumber;
|
|
1445
|
+
change_percentage: z.ZodNumber;
|
|
1446
|
+
}, z.core.$strip>;
|
|
1447
|
+
type Daily = z.infer<typeof dailyParser>;
|
|
1448
|
+
declare const getDailyResponseParser: z.ZodObject<{
|
|
1449
|
+
sync: z.ZodNumber;
|
|
1450
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1451
|
+
market_id: z.ZodNumber;
|
|
1452
|
+
symbol: z.ZodString;
|
|
1453
|
+
open: z.ZodNumber;
|
|
1454
|
+
high: z.ZodNumber;
|
|
1455
|
+
low: z.ZodNumber;
|
|
1456
|
+
close: z.ZodNumber;
|
|
1457
|
+
volume_bid: z.ZodNumber;
|
|
1458
|
+
volume_ask: z.ZodNumber;
|
|
1459
|
+
change_percentage: z.ZodNumber;
|
|
1460
|
+
}, z.core.$strip>>;
|
|
1461
|
+
}, z.core.$strip>;
|
|
1462
|
+
type GetDailyResponse = z.infer<typeof getDailyResponseParser>;
|
|
1463
|
+
/**
|
|
1464
|
+
* Markets
|
|
1465
|
+
*/
|
|
1466
|
+
declare const marketParser: z.ZodObject<{
|
|
1467
|
+
market_id: z.ZodNumber;
|
|
1468
|
+
symbol: z.ZodString;
|
|
1469
|
+
status_code: z.ZodNumber;
|
|
1470
|
+
type: z.ZodString;
|
|
1471
|
+
maker_fee: z.ZodNumber;
|
|
1472
|
+
taker_fee: z.ZodNumber;
|
|
1473
|
+
order_min: z.ZodNumber;
|
|
1474
|
+
bid_token: z.ZodObject<{
|
|
1475
|
+
code: z.ZodString;
|
|
1476
|
+
precision: z.ZodNumber;
|
|
1477
|
+
contract: z.ZodString;
|
|
1478
|
+
multiplier: z.ZodNumber;
|
|
1479
|
+
}, z.core.$strip>;
|
|
1480
|
+
ask_token: z.ZodObject<{
|
|
1481
|
+
code: z.ZodString;
|
|
1482
|
+
precision: z.ZodNumber;
|
|
1483
|
+
contract: z.ZodString;
|
|
1484
|
+
multiplier: z.ZodNumber;
|
|
1485
|
+
}, z.core.$strip>;
|
|
1486
|
+
}, z.core.$strip>;
|
|
1487
|
+
type Market = z.infer<typeof marketParser>;
|
|
1488
|
+
declare const dbMarketParser: z.ZodObject<{
|
|
1489
|
+
market_id: z.ZodNumber;
|
|
1490
|
+
order_min: z.ZodString;
|
|
1491
|
+
status_code: z.ZodNumber;
|
|
1492
|
+
ask_oracle_index: z.ZodString;
|
|
1493
|
+
bid_token_c: z.ZodString;
|
|
1494
|
+
bid_token_s: z.ZodString;
|
|
1495
|
+
bid_token_m: z.ZodString;
|
|
1496
|
+
ask_token_c: z.ZodString;
|
|
1497
|
+
ask_token_s: z.ZodString;
|
|
1498
|
+
ask_token_m: z.ZodString;
|
|
1499
|
+
created_at: z.ZodDate;
|
|
1500
|
+
updated_at: z.ZodDate;
|
|
1501
|
+
}, z.core.$strip>;
|
|
1502
|
+
type DbMarket = z.infer<typeof dbMarketParser>;
|
|
1503
|
+
declare const getMarketsResponseParser: z.ZodObject<{
|
|
1504
|
+
sync: z.ZodNumber;
|
|
1505
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1506
|
+
market_id: z.ZodNumber;
|
|
1507
|
+
symbol: z.ZodString;
|
|
1508
|
+
status_code: z.ZodNumber;
|
|
1509
|
+
type: z.ZodString;
|
|
1510
|
+
maker_fee: z.ZodNumber;
|
|
1511
|
+
taker_fee: z.ZodNumber;
|
|
1512
|
+
order_min: z.ZodNumber;
|
|
1513
|
+
bid_token: z.ZodObject<{
|
|
1514
|
+
code: z.ZodString;
|
|
1515
|
+
precision: z.ZodNumber;
|
|
1516
|
+
contract: z.ZodString;
|
|
1517
|
+
multiplier: z.ZodNumber;
|
|
1518
|
+
}, z.core.$strip>;
|
|
1519
|
+
ask_token: z.ZodObject<{
|
|
1520
|
+
code: z.ZodString;
|
|
1521
|
+
precision: z.ZodNumber;
|
|
1522
|
+
contract: z.ZodString;
|
|
1523
|
+
multiplier: z.ZodNumber;
|
|
1524
|
+
}, z.core.$strip>;
|
|
1525
|
+
}, z.core.$strip>>;
|
|
1526
|
+
}, z.core.$strip>;
|
|
1527
|
+
type GetMarketsResponse = z.infer<typeof getMarketsResponseParser>;
|
|
1528
|
+
/**
|
|
1529
|
+
* Trades
|
|
1530
|
+
*/
|
|
1531
|
+
declare const tradeLogParser: z.ZodObject<{
|
|
1532
|
+
block_num: z.ZodString;
|
|
1533
|
+
block_time: z.ZodString;
|
|
1534
|
+
trade_id: z.ZodString;
|
|
1535
|
+
market_id: z.ZodNumber;
|
|
1536
|
+
price: z.ZodString;
|
|
1537
|
+
bid_user: z.ZodString;
|
|
1538
|
+
bid_user_order_id: z.ZodString;
|
|
1539
|
+
bid_total: z.ZodString;
|
|
1540
|
+
bid_amount: z.ZodString;
|
|
1541
|
+
bid_fee: z.ZodString;
|
|
1542
|
+
bid_referrer: z.ZodString;
|
|
1543
|
+
bid_referrer_fee: z.ZodString;
|
|
1544
|
+
ask_user: z.ZodString;
|
|
1545
|
+
ask_user_order_id: z.ZodString;
|
|
1546
|
+
ask_total: z.ZodString;
|
|
1547
|
+
ask_amount: z.ZodString;
|
|
1548
|
+
ask_fee: z.ZodString;
|
|
1549
|
+
ask_referrer: z.ZodString;
|
|
1550
|
+
ask_referrer_fee: z.ZodString;
|
|
1551
|
+
order_side: z.ZodNumber;
|
|
1552
|
+
trx_id: z.ZodString;
|
|
1553
|
+
}, z.core.$strip>;
|
|
1554
|
+
type TradeLog = z.infer<typeof tradeLogParser>;
|
|
1555
|
+
declare const tradeParser: z.ZodObject<{
|
|
1556
|
+
block_num: z.ZodString;
|
|
1557
|
+
block_time: z.ZodString;
|
|
1558
|
+
trade_id: z.ZodString;
|
|
1559
|
+
market_id: z.ZodNumber;
|
|
1560
|
+
price: z.ZodNumber;
|
|
1561
|
+
bid_user: z.ZodString;
|
|
1562
|
+
bid_user_order_id: z.ZodString;
|
|
1563
|
+
bid_user_ordinal_order_id: z.ZodString;
|
|
1564
|
+
bid_total: z.ZodNumber;
|
|
1565
|
+
bid_amount: z.ZodNumber;
|
|
1566
|
+
bid_fee: z.ZodNumber;
|
|
1567
|
+
bid_referrer: z.ZodString;
|
|
1568
|
+
bid_referrer_fee: z.ZodNumber;
|
|
1569
|
+
ask_user: z.ZodString;
|
|
1570
|
+
ask_user_order_id: z.ZodString;
|
|
1571
|
+
ask_user_ordinal_order_id: z.ZodString;
|
|
1572
|
+
ask_total: z.ZodNumber;
|
|
1573
|
+
ask_amount: z.ZodNumber;
|
|
1574
|
+
ask_fee: z.ZodNumber;
|
|
1575
|
+
ask_referrer: z.ZodString;
|
|
1576
|
+
ask_referrer_fee: z.ZodNumber;
|
|
1577
|
+
order_side: z.ZodNumber;
|
|
1578
|
+
trx_id: z.ZodString;
|
|
1579
|
+
}, z.core.$strip>;
|
|
1580
|
+
type Trade = z.infer<typeof tradeParser>;
|
|
1581
|
+
declare const getTradesParser: z.ZodObject<{
|
|
1582
|
+
symbol: z.ZodString;
|
|
1583
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
1584
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
1585
|
+
}, z.core.$strip>;
|
|
1586
|
+
type GetTrades = z.input<typeof getTradesParser>;
|
|
1587
|
+
type GetTradesParsed = z.output<typeof getTradesParser>;
|
|
1588
|
+
declare const getTradesResponseParser: z.ZodObject<{
|
|
1589
|
+
sync: z.ZodNumber;
|
|
1590
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1591
|
+
block_num: z.ZodString;
|
|
1592
|
+
block_time: z.ZodString;
|
|
1593
|
+
trade_id: z.ZodString;
|
|
1594
|
+
market_id: z.ZodNumber;
|
|
1595
|
+
price: z.ZodNumber;
|
|
1596
|
+
bid_user: z.ZodString;
|
|
1597
|
+
bid_user_order_id: z.ZodString;
|
|
1598
|
+
bid_user_ordinal_order_id: z.ZodString;
|
|
1599
|
+
bid_total: z.ZodNumber;
|
|
1600
|
+
bid_amount: z.ZodNumber;
|
|
1601
|
+
bid_fee: z.ZodNumber;
|
|
1602
|
+
bid_referrer: z.ZodString;
|
|
1603
|
+
bid_referrer_fee: z.ZodNumber;
|
|
1604
|
+
ask_user: z.ZodString;
|
|
1605
|
+
ask_user_order_id: z.ZodString;
|
|
1606
|
+
ask_user_ordinal_order_id: z.ZodString;
|
|
1607
|
+
ask_total: z.ZodNumber;
|
|
1608
|
+
ask_amount: z.ZodNumber;
|
|
1609
|
+
ask_fee: z.ZodNumber;
|
|
1610
|
+
ask_referrer: z.ZodString;
|
|
1611
|
+
ask_referrer_fee: z.ZodNumber;
|
|
1612
|
+
order_side: z.ZodNumber;
|
|
1613
|
+
trx_id: z.ZodString;
|
|
1614
|
+
}, z.core.$strip>>;
|
|
1615
|
+
}, z.core.$strip>;
|
|
1616
|
+
type GetTradesResponse = z.infer<typeof getTradesResponseParser>;
|
|
1617
|
+
declare const getTradeHistoryParser: z.ZodObject<{
|
|
1618
|
+
account: z.ZodString;
|
|
1619
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1620
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
1621
|
+
ordinal_order_ids: z.ZodPipe<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodString]>>, z.ZodTransform<string[], string | string[] | undefined>>;
|
|
1622
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
1623
|
+
}, z.core.$strip>;
|
|
1624
|
+
type GetTradeHistory = z.input<typeof getTradeHistoryParser>;
|
|
1625
|
+
type GetTradeHistoryParsed = z.output<typeof getTradeHistoryParser>;
|
|
1626
|
+
declare const getTradeHistoryResponseParser: z.ZodObject<{
|
|
1627
|
+
sync: z.ZodNumber;
|
|
1628
|
+
count: z.ZodNumber;
|
|
1629
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1630
|
+
block_num: z.ZodString;
|
|
1631
|
+
block_time: z.ZodString;
|
|
1632
|
+
trade_id: z.ZodString;
|
|
1633
|
+
market_id: z.ZodNumber;
|
|
1634
|
+
price: z.ZodNumber;
|
|
1635
|
+
bid_user: z.ZodString;
|
|
1636
|
+
bid_user_order_id: z.ZodString;
|
|
1637
|
+
bid_user_ordinal_order_id: z.ZodString;
|
|
1638
|
+
bid_total: z.ZodNumber;
|
|
1639
|
+
bid_amount: z.ZodNumber;
|
|
1640
|
+
bid_fee: z.ZodNumber;
|
|
1641
|
+
bid_referrer: z.ZodString;
|
|
1642
|
+
bid_referrer_fee: z.ZodNumber;
|
|
1643
|
+
ask_user: z.ZodString;
|
|
1644
|
+
ask_user_order_id: z.ZodString;
|
|
1645
|
+
ask_user_ordinal_order_id: z.ZodString;
|
|
1646
|
+
ask_total: z.ZodNumber;
|
|
1647
|
+
ask_amount: z.ZodNumber;
|
|
1648
|
+
ask_fee: z.ZodNumber;
|
|
1649
|
+
ask_referrer: z.ZodString;
|
|
1650
|
+
ask_referrer_fee: z.ZodNumber;
|
|
1651
|
+
order_side: z.ZodNumber;
|
|
1652
|
+
trx_id: z.ZodString;
|
|
1653
|
+
}, z.core.$strip>>;
|
|
1654
|
+
}, z.core.$strip>;
|
|
1655
|
+
type GetTradeHistoryResponse = z.infer<typeof getTradeHistoryResponseParser>;
|
|
1656
|
+
/**
|
|
1657
|
+
* SYNC
|
|
1658
|
+
*/
|
|
1659
|
+
declare const syncParser: z.ZodObject<{
|
|
1660
|
+
sourceid: z.ZodNumber;
|
|
1661
|
+
block_num: z.ZodString;
|
|
1662
|
+
block_time: z.ZodString;
|
|
1663
|
+
irreversible: z.ZodString;
|
|
1664
|
+
is_master: z.ZodNumber;
|
|
1665
|
+
last_updated: z.ZodString;
|
|
1666
|
+
}, z.core.$strip>;
|
|
1667
|
+
type Sync = z.infer<typeof syncParser>;
|
|
1668
|
+
declare const getSyncResponseParser: z.ZodObject<{
|
|
1669
|
+
dbSecondsBehind: z.ZodNumber;
|
|
1670
|
+
chronicleSecondsBehind: z.ZodNumber;
|
|
1671
|
+
maxSecondsBehind: z.ZodNumber;
|
|
1672
|
+
}, z.core.$strip>;
|
|
1673
|
+
type GetSyncResponse = z.infer<typeof getSyncResponseParser>;
|
|
1674
|
+
/**
|
|
1675
|
+
* Referral Totals
|
|
1676
|
+
*/
|
|
1677
|
+
declare const refferalTotalParser: z.ZodObject<{
|
|
1678
|
+
referrer: z.ZodString;
|
|
1679
|
+
market_id: z.ZodNumber;
|
|
1680
|
+
bid_fee: z.ZodNumber;
|
|
1681
|
+
bid_total: z.ZodNumber;
|
|
1682
|
+
ask_fee: z.ZodNumber;
|
|
1683
|
+
ask_total: z.ZodNumber;
|
|
1684
|
+
}, z.core.$strip>;
|
|
1685
|
+
type ReferralTotal = z.infer<typeof refferalTotalParser>;
|
|
1686
|
+
declare const getReferralTotalsParser: z.ZodObject<{
|
|
1687
|
+
referrer: z.ZodString;
|
|
1688
|
+
}, z.core.$strip>;
|
|
1689
|
+
type GetReferralTotals = z.input<typeof getReferralTotalsParser>;
|
|
1690
|
+
type GetReferralTotalsParsed = z.output<typeof getReferralTotalsParser>;
|
|
1691
|
+
declare const getReferralTotalsResponseParser: z.ZodObject<{
|
|
1692
|
+
sync: z.ZodNumber;
|
|
1693
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1694
|
+
referrer: z.ZodString;
|
|
1695
|
+
market_id: z.ZodNumber;
|
|
1696
|
+
bid_fee: z.ZodNumber;
|
|
1697
|
+
bid_total: z.ZodNumber;
|
|
1698
|
+
ask_fee: z.ZodNumber;
|
|
1699
|
+
ask_total: z.ZodNumber;
|
|
1700
|
+
}, z.core.$strip>>;
|
|
1701
|
+
}, z.core.$strip>;
|
|
1702
|
+
type GetReferralTotalsResponse = z.infer<typeof getReferralTotalsResponseParser>;
|
|
1703
|
+
/**
|
|
1704
|
+
* Referrals
|
|
1705
|
+
*/
|
|
1706
|
+
declare const refferalParser: z.ZodObject<{
|
|
1707
|
+
referred_user: z.ZodString;
|
|
1708
|
+
}, z.core.$strip>;
|
|
1709
|
+
type Referral = z.infer<typeof refferalParser>;
|
|
1710
|
+
declare const getReferralsParser: z.ZodObject<{
|
|
1711
|
+
referrer: z.ZodString;
|
|
1712
|
+
}, z.core.$strip>;
|
|
1713
|
+
type GetReferrals = z.input<typeof getReferralsParser>;
|
|
1714
|
+
type GetReferralsParsed = z.output<typeof getReferralsParser>;
|
|
1715
|
+
declare const getReferralsResponseParser: z.ZodObject<{
|
|
1716
|
+
sync: z.ZodNumber;
|
|
1717
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1718
|
+
referred_user: z.ZodString;
|
|
1719
|
+
}, z.core.$strip>>;
|
|
1720
|
+
}, z.core.$strip>;
|
|
1721
|
+
type GetReferralsResponse = z.infer<typeof getReferralsResponseParser>;
|
|
1722
|
+
/**
|
|
1723
|
+
* Leaderboard
|
|
1724
|
+
*/
|
|
1725
|
+
declare const leaderboardParser: z.ZodObject<{
|
|
1726
|
+
user: z.ZodString;
|
|
1727
|
+
total: z.ZodNumber;
|
|
1728
|
+
}, z.core.$strip>;
|
|
1729
|
+
type Leaderboard = z.infer<typeof leaderboardParser>;
|
|
1730
|
+
declare const getLeaderboardParser: z.ZodObject<{
|
|
1731
|
+
market_ids: z.ZodPipe<z.ZodUnion<[z.ZodArray<z.ZodCoercedNumber<number>>, z.ZodCoercedNumber<number>]>, z.ZodTransform<number[], number | number[]>>;
|
|
1732
|
+
from: z.ZodString;
|
|
1733
|
+
to: z.ZodString;
|
|
1734
|
+
exclude_zero_fee: z.ZodPrefault<z.ZodUnion<[z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
1735
|
+
true: "true";
|
|
1736
|
+
false: "false";
|
|
1737
|
+
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
1738
|
+
}, z.core.$strip>;
|
|
1739
|
+
type GetLeaderboard = z.input<typeof getLeaderboardParser>;
|
|
1740
|
+
type GetLeaderboardParsed = z.output<typeof getLeaderboardParser>;
|
|
1741
|
+
declare const getLeaderboardResponseParser: z.ZodObject<{
|
|
1742
|
+
sync: z.ZodNumber;
|
|
1743
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1744
|
+
user: z.ZodString;
|
|
1745
|
+
total: z.ZodNumber;
|
|
1746
|
+
}, z.core.$strip>>;
|
|
1747
|
+
}, z.core.$strip>;
|
|
1748
|
+
type GetLeaderboardResponse = z.infer<typeof getLeaderboardResponseParser>;
|
|
1749
|
+
/**
|
|
1750
|
+
* History Transaction
|
|
1751
|
+
*/
|
|
1752
|
+
declare const historyPartialParser: z.ZodObject<{
|
|
1753
|
+
expiration: z.ZodObject<{
|
|
1754
|
+
utc_seconds: z.ZodString;
|
|
1755
|
+
}, z.core.$strip>;
|
|
1756
|
+
ref_block_num: z.ZodString;
|
|
1757
|
+
ref_block_prefix: z.ZodString;
|
|
1758
|
+
max_net_usage_words: z.ZodString;
|
|
1759
|
+
max_cpu_usage_ms: z.ZodString;
|
|
1760
|
+
delay_sec: z.ZodString;
|
|
1761
|
+
transaction_extensions: z.ZodArray<z.ZodUnknown>;
|
|
1762
|
+
signatures: z.ZodArray<z.ZodString>;
|
|
1763
|
+
context_free_data: z.ZodArray<z.ZodUnknown>;
|
|
1764
|
+
}, z.core.$strip>;
|
|
1765
|
+
type HistoryPartial = z.infer<typeof historyPartialParser>;
|
|
1766
|
+
declare const actParser: z.ZodObject<{
|
|
1767
|
+
account: z.ZodString;
|
|
1768
|
+
name: z.ZodString;
|
|
1769
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
1770
|
+
actor: z.ZodString;
|
|
1771
|
+
permission: z.ZodString;
|
|
1772
|
+
}, z.core.$strip>>;
|
|
1773
|
+
data: z.ZodAny;
|
|
1774
|
+
}, z.core.$strip>;
|
|
1775
|
+
type HistoryAct = z.infer<typeof actParser>;
|
|
1776
|
+
declare const receiptParser: z.ZodObject<{
|
|
1777
|
+
receiver: z.ZodString;
|
|
1778
|
+
act_digest: z.ZodString;
|
|
1779
|
+
global_sequence: z.ZodString;
|
|
1780
|
+
recv_sequence: z.ZodString;
|
|
1781
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
1782
|
+
account: z.ZodString;
|
|
1783
|
+
sequence: z.ZodString;
|
|
1784
|
+
}, z.core.$strip>>;
|
|
1785
|
+
code_sequence: z.ZodString;
|
|
1786
|
+
abi_sequence: z.ZodString;
|
|
1787
|
+
}, z.core.$strip>;
|
|
1788
|
+
type HistoryReceipt = z.infer<typeof receiptParser>;
|
|
1789
|
+
declare const actionTraceParser: z.ZodObject<{
|
|
1790
|
+
action_ordinal: z.ZodString;
|
|
1791
|
+
creator_action_ordinal: z.ZodString;
|
|
1792
|
+
receipt: z.ZodObject<{
|
|
1793
|
+
receiver: z.ZodString;
|
|
1794
|
+
act_digest: z.ZodString;
|
|
1795
|
+
global_sequence: z.ZodString;
|
|
1796
|
+
recv_sequence: z.ZodString;
|
|
1797
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
1798
|
+
account: z.ZodString;
|
|
1799
|
+
sequence: z.ZodString;
|
|
1800
|
+
}, z.core.$strip>>;
|
|
1801
|
+
code_sequence: z.ZodString;
|
|
1802
|
+
abi_sequence: z.ZodString;
|
|
1803
|
+
}, z.core.$strip>;
|
|
1804
|
+
receiver: z.ZodString;
|
|
1805
|
+
act: z.ZodObject<{
|
|
1806
|
+
account: z.ZodString;
|
|
1807
|
+
name: z.ZodString;
|
|
1808
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
1809
|
+
actor: z.ZodString;
|
|
1810
|
+
permission: z.ZodString;
|
|
1811
|
+
}, z.core.$strip>>;
|
|
1812
|
+
data: z.ZodAny;
|
|
1813
|
+
}, z.core.$strip>;
|
|
1814
|
+
context_free: z.ZodString;
|
|
1815
|
+
elapsed: z.ZodString;
|
|
1816
|
+
console: z.ZodString;
|
|
1817
|
+
account_ram_deltas: z.ZodArray<z.ZodObject<{
|
|
1818
|
+
account: z.ZodString;
|
|
1819
|
+
delta: z.ZodString;
|
|
1820
|
+
}, z.core.$strip>>;
|
|
1821
|
+
except: z.ZodString;
|
|
1822
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
1823
|
+
return_value: z.ZodString;
|
|
1824
|
+
}, z.core.$strip>;
|
|
1825
|
+
type HistoryActionTrace = z.infer<typeof actionTraceParser>;
|
|
1826
|
+
declare const traceParser: z.ZodObject<{
|
|
1827
|
+
id: z.ZodString;
|
|
1828
|
+
status: z.ZodString;
|
|
1829
|
+
cpu_usage_us: z.ZodString;
|
|
1830
|
+
net_usage_words: z.ZodString;
|
|
1831
|
+
elapsed: z.ZodString;
|
|
1832
|
+
net_usage: z.ZodString;
|
|
1833
|
+
scheduled: z.ZodString;
|
|
1834
|
+
action_traces: z.ZodArray<z.ZodObject<{
|
|
1835
|
+
action_ordinal: z.ZodString;
|
|
1836
|
+
creator_action_ordinal: z.ZodString;
|
|
1837
|
+
receipt: z.ZodObject<{
|
|
1838
|
+
receiver: z.ZodString;
|
|
1839
|
+
act_digest: z.ZodString;
|
|
1840
|
+
global_sequence: z.ZodString;
|
|
1841
|
+
recv_sequence: z.ZodString;
|
|
1842
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
1843
|
+
account: z.ZodString;
|
|
1844
|
+
sequence: z.ZodString;
|
|
1845
|
+
}, z.core.$strip>>;
|
|
1846
|
+
code_sequence: z.ZodString;
|
|
1847
|
+
abi_sequence: z.ZodString;
|
|
1848
|
+
}, z.core.$strip>;
|
|
1849
|
+
receiver: z.ZodString;
|
|
1850
|
+
act: z.ZodObject<{
|
|
1851
|
+
account: z.ZodString;
|
|
1852
|
+
name: z.ZodString;
|
|
1853
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
1854
|
+
actor: z.ZodString;
|
|
1855
|
+
permission: z.ZodString;
|
|
1856
|
+
}, z.core.$strip>>;
|
|
1857
|
+
data: z.ZodAny;
|
|
1858
|
+
}, z.core.$strip>;
|
|
1859
|
+
context_free: z.ZodString;
|
|
1860
|
+
elapsed: z.ZodString;
|
|
1861
|
+
console: z.ZodString;
|
|
1862
|
+
account_ram_deltas: z.ZodArray<z.ZodObject<{
|
|
1863
|
+
account: z.ZodString;
|
|
1864
|
+
delta: z.ZodString;
|
|
1865
|
+
}, z.core.$strip>>;
|
|
1866
|
+
except: z.ZodString;
|
|
1867
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
1868
|
+
return_value: z.ZodString;
|
|
1869
|
+
}, z.core.$strip>>;
|
|
1870
|
+
account_ram_delta: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1871
|
+
account: z.ZodString;
|
|
1872
|
+
delta: z.ZodString;
|
|
1873
|
+
}, z.core.$strip>>>;
|
|
1874
|
+
except: z.ZodString;
|
|
1875
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
1876
|
+
failed_dtrx_trace: z.ZodArray<z.ZodUnknown>;
|
|
1877
|
+
partial: z.ZodObject<{
|
|
1878
|
+
expiration: z.ZodObject<{
|
|
1879
|
+
utc_seconds: z.ZodString;
|
|
1880
|
+
}, z.core.$strip>;
|
|
1881
|
+
ref_block_num: z.ZodString;
|
|
1882
|
+
ref_block_prefix: z.ZodString;
|
|
1883
|
+
max_net_usage_words: z.ZodString;
|
|
1884
|
+
max_cpu_usage_ms: z.ZodString;
|
|
1885
|
+
delay_sec: z.ZodString;
|
|
1886
|
+
transaction_extensions: z.ZodArray<z.ZodUnknown>;
|
|
1887
|
+
signatures: z.ZodArray<z.ZodString>;
|
|
1888
|
+
context_free_data: z.ZodArray<z.ZodUnknown>;
|
|
1889
|
+
}, z.core.$strip>;
|
|
1890
|
+
}, z.core.$strip>;
|
|
1891
|
+
type HistoryTrace = z.infer<typeof traceParser>;
|
|
1892
|
+
declare const historyTransactionParser: z.ZodObject<{
|
|
1893
|
+
seq: z.ZodString;
|
|
1894
|
+
block_num: z.ZodString;
|
|
1895
|
+
block_time: z.ZodString;
|
|
1896
|
+
trx_id: z.ZodString;
|
|
1897
|
+
trace: z.ZodObject<{
|
|
1898
|
+
block_num: z.ZodString;
|
|
1899
|
+
block_timestamp: z.ZodString;
|
|
1900
|
+
trace: z.ZodObject<{
|
|
1901
|
+
id: z.ZodString;
|
|
1902
|
+
status: z.ZodString;
|
|
1903
|
+
cpu_usage_us: z.ZodString;
|
|
1904
|
+
net_usage_words: z.ZodString;
|
|
1905
|
+
elapsed: z.ZodString;
|
|
1906
|
+
net_usage: z.ZodString;
|
|
1907
|
+
scheduled: z.ZodString;
|
|
1908
|
+
action_traces: z.ZodArray<z.ZodObject<{
|
|
1909
|
+
action_ordinal: z.ZodString;
|
|
1910
|
+
creator_action_ordinal: z.ZodString;
|
|
1911
|
+
receipt: z.ZodObject<{
|
|
1912
|
+
receiver: z.ZodString;
|
|
1913
|
+
act_digest: z.ZodString;
|
|
1914
|
+
global_sequence: z.ZodString;
|
|
1915
|
+
recv_sequence: z.ZodString;
|
|
1916
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
1917
|
+
account: z.ZodString;
|
|
1918
|
+
sequence: z.ZodString;
|
|
1919
|
+
}, z.core.$strip>>;
|
|
1920
|
+
code_sequence: z.ZodString;
|
|
1921
|
+
abi_sequence: z.ZodString;
|
|
1922
|
+
}, z.core.$strip>;
|
|
1923
|
+
receiver: z.ZodString;
|
|
1924
|
+
act: z.ZodObject<{
|
|
1925
|
+
account: z.ZodString;
|
|
1926
|
+
name: z.ZodString;
|
|
1927
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
1928
|
+
actor: z.ZodString;
|
|
1929
|
+
permission: z.ZodString;
|
|
1930
|
+
}, z.core.$strip>>;
|
|
1931
|
+
data: z.ZodAny;
|
|
1932
|
+
}, z.core.$strip>;
|
|
1933
|
+
context_free: z.ZodString;
|
|
1934
|
+
elapsed: z.ZodString;
|
|
1935
|
+
console: z.ZodString;
|
|
1936
|
+
account_ram_deltas: z.ZodArray<z.ZodObject<{
|
|
1937
|
+
account: z.ZodString;
|
|
1938
|
+
delta: z.ZodString;
|
|
1939
|
+
}, z.core.$strip>>;
|
|
1940
|
+
except: z.ZodString;
|
|
1941
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
1942
|
+
return_value: z.ZodString;
|
|
1943
|
+
}, z.core.$strip>>;
|
|
1944
|
+
account_ram_delta: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1945
|
+
account: z.ZodString;
|
|
1946
|
+
delta: z.ZodString;
|
|
1947
|
+
}, z.core.$strip>>>;
|
|
1948
|
+
except: z.ZodString;
|
|
1949
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
1950
|
+
failed_dtrx_trace: z.ZodArray<z.ZodUnknown>;
|
|
1951
|
+
partial: z.ZodObject<{
|
|
1952
|
+
expiration: z.ZodObject<{
|
|
1953
|
+
utc_seconds: z.ZodString;
|
|
1954
|
+
}, z.core.$strip>;
|
|
1955
|
+
ref_block_num: z.ZodString;
|
|
1956
|
+
ref_block_prefix: z.ZodString;
|
|
1957
|
+
max_net_usage_words: z.ZodString;
|
|
1958
|
+
max_cpu_usage_ms: z.ZodString;
|
|
1959
|
+
delay_sec: z.ZodString;
|
|
1960
|
+
transaction_extensions: z.ZodArray<z.ZodUnknown>;
|
|
1961
|
+
signatures: z.ZodArray<z.ZodString>;
|
|
1962
|
+
context_free_data: z.ZodArray<z.ZodUnknown>;
|
|
1963
|
+
}, z.core.$strip>;
|
|
1964
|
+
}, z.core.$strip>;
|
|
1965
|
+
}, z.core.$strip>;
|
|
1966
|
+
irreversible: z.ZodBoolean;
|
|
1967
|
+
}, z.core.$strip>;
|
|
1968
|
+
type HistoryTransaction = z.infer<typeof historyTransactionParser>;
|
|
1969
|
+
declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
1970
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
1971
|
+
seq: z.ZodString;
|
|
1972
|
+
block_num: z.ZodString;
|
|
1973
|
+
block_time: z.ZodString;
|
|
1974
|
+
trx_id: z.ZodString;
|
|
1975
|
+
trace: z.ZodObject<{
|
|
1976
|
+
block_num: z.ZodString;
|
|
1977
|
+
block_timestamp: z.ZodString;
|
|
1978
|
+
trace: z.ZodObject<{
|
|
1979
|
+
id: z.ZodString;
|
|
1980
|
+
status: z.ZodString;
|
|
1981
|
+
cpu_usage_us: z.ZodString;
|
|
1982
|
+
net_usage_words: z.ZodString;
|
|
1983
|
+
elapsed: z.ZodString;
|
|
1984
|
+
net_usage: z.ZodString;
|
|
1985
|
+
scheduled: z.ZodString;
|
|
1986
|
+
action_traces: z.ZodArray<z.ZodObject<{
|
|
1987
|
+
action_ordinal: z.ZodString;
|
|
1988
|
+
creator_action_ordinal: z.ZodString;
|
|
1989
|
+
receipt: z.ZodObject<{
|
|
1990
|
+
receiver: z.ZodString;
|
|
1991
|
+
act_digest: z.ZodString;
|
|
1992
|
+
global_sequence: z.ZodString;
|
|
1993
|
+
recv_sequence: z.ZodString;
|
|
1994
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
1995
|
+
account: z.ZodString;
|
|
1996
|
+
sequence: z.ZodString;
|
|
1997
|
+
}, z.core.$strip>>;
|
|
1998
|
+
code_sequence: z.ZodString;
|
|
1999
|
+
abi_sequence: z.ZodString;
|
|
2000
|
+
}, z.core.$strip>;
|
|
2001
|
+
receiver: z.ZodString;
|
|
2002
|
+
act: z.ZodObject<{
|
|
2003
|
+
account: z.ZodString;
|
|
2004
|
+
name: z.ZodString;
|
|
2005
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
2006
|
+
actor: z.ZodString;
|
|
2007
|
+
permission: z.ZodString;
|
|
2008
|
+
}, z.core.$strip>>;
|
|
2009
|
+
data: z.ZodAny;
|
|
2010
|
+
}, z.core.$strip>;
|
|
2011
|
+
context_free: z.ZodString;
|
|
2012
|
+
elapsed: z.ZodString;
|
|
2013
|
+
console: z.ZodString;
|
|
2014
|
+
account_ram_deltas: z.ZodArray<z.ZodObject<{
|
|
2015
|
+
account: z.ZodString;
|
|
2016
|
+
delta: z.ZodString;
|
|
2017
|
+
}, z.core.$strip>>;
|
|
2018
|
+
except: z.ZodString;
|
|
2019
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
2020
|
+
return_value: z.ZodString;
|
|
2021
|
+
}, z.core.$strip>>;
|
|
2022
|
+
account_ram_delta: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2023
|
+
account: z.ZodString;
|
|
2024
|
+
delta: z.ZodString;
|
|
2025
|
+
}, z.core.$strip>>>;
|
|
2026
|
+
except: z.ZodString;
|
|
2027
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
2028
|
+
failed_dtrx_trace: z.ZodArray<z.ZodUnknown>;
|
|
2029
|
+
partial: z.ZodObject<{
|
|
2030
|
+
expiration: z.ZodObject<{
|
|
2031
|
+
utc_seconds: z.ZodString;
|
|
2032
|
+
}, z.core.$strip>;
|
|
2033
|
+
ref_block_num: z.ZodString;
|
|
2034
|
+
ref_block_prefix: z.ZodString;
|
|
2035
|
+
max_net_usage_words: z.ZodString;
|
|
2036
|
+
max_cpu_usage_ms: z.ZodString;
|
|
2037
|
+
delay_sec: z.ZodString;
|
|
2038
|
+
transaction_extensions: z.ZodArray<z.ZodUnknown>;
|
|
2039
|
+
signatures: z.ZodArray<z.ZodString>;
|
|
2040
|
+
context_free_data: z.ZodArray<z.ZodUnknown>;
|
|
2041
|
+
}, z.core.$strip>;
|
|
2042
|
+
}, z.core.$strip>;
|
|
2043
|
+
}, z.core.$strip>;
|
|
2044
|
+
irreversible: z.ZodBoolean;
|
|
2045
|
+
}, z.core.$strip>>;
|
|
2046
|
+
}, z.core.$strip>;
|
|
2047
|
+
type GetHistoryTransactionResponse = z.input<typeof getHistoryTransactionResponseParser>;
|
|
2048
|
+
declare const chronicleTransactionParser: z.ZodObject<{
|
|
2049
|
+
block_num: z.ZodString;
|
|
2050
|
+
block_timestamp: z.ZodString;
|
|
2051
|
+
trace: z.ZodObject<{
|
|
2052
|
+
id: z.ZodString;
|
|
2053
|
+
status: z.ZodString;
|
|
2054
|
+
cpu_usage_us: z.ZodString;
|
|
2055
|
+
net_usage_words: z.ZodString;
|
|
2056
|
+
elapsed: z.ZodString;
|
|
2057
|
+
net_usage: z.ZodString;
|
|
2058
|
+
scheduled: z.ZodString;
|
|
2059
|
+
action_traces: z.ZodArray<z.ZodObject<{
|
|
2060
|
+
action_ordinal: z.ZodString;
|
|
2061
|
+
creator_action_ordinal: z.ZodString;
|
|
2062
|
+
receipt: z.ZodObject<{
|
|
2063
|
+
receiver: z.ZodString;
|
|
2064
|
+
act_digest: z.ZodString;
|
|
2065
|
+
global_sequence: z.ZodString;
|
|
2066
|
+
recv_sequence: z.ZodString;
|
|
2067
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
2068
|
+
account: z.ZodString;
|
|
2069
|
+
sequence: z.ZodString;
|
|
2070
|
+
}, z.core.$strip>>;
|
|
2071
|
+
code_sequence: z.ZodString;
|
|
2072
|
+
abi_sequence: z.ZodString;
|
|
2073
|
+
}, z.core.$strip>;
|
|
2074
|
+
receiver: z.ZodString;
|
|
2075
|
+
act: z.ZodObject<{
|
|
2076
|
+
account: z.ZodString;
|
|
2077
|
+
name: z.ZodString;
|
|
2078
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
2079
|
+
actor: z.ZodString;
|
|
2080
|
+
permission: z.ZodString;
|
|
2081
|
+
}, z.core.$strip>>;
|
|
2082
|
+
data: z.ZodAny;
|
|
2083
|
+
}, z.core.$strip>;
|
|
2084
|
+
context_free: z.ZodString;
|
|
2085
|
+
elapsed: z.ZodString;
|
|
2086
|
+
console: z.ZodString;
|
|
2087
|
+
account_ram_deltas: z.ZodArray<z.ZodObject<{
|
|
2088
|
+
account: z.ZodString;
|
|
2089
|
+
delta: z.ZodString;
|
|
2090
|
+
}, z.core.$strip>>;
|
|
2091
|
+
except: z.ZodString;
|
|
2092
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
2093
|
+
return_value: z.ZodString;
|
|
2094
|
+
}, z.core.$strip>>;
|
|
2095
|
+
account_ram_delta: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2096
|
+
account: z.ZodString;
|
|
2097
|
+
delta: z.ZodString;
|
|
2098
|
+
}, z.core.$strip>>>;
|
|
2099
|
+
except: z.ZodString;
|
|
2100
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
2101
|
+
failed_dtrx_trace: z.ZodArray<z.ZodUnknown>;
|
|
2102
|
+
partial: z.ZodObject<{
|
|
2103
|
+
expiration: z.ZodObject<{
|
|
2104
|
+
utc_seconds: z.ZodString;
|
|
2105
|
+
}, z.core.$strip>;
|
|
2106
|
+
ref_block_num: z.ZodString;
|
|
2107
|
+
ref_block_prefix: z.ZodString;
|
|
2108
|
+
max_net_usage_words: z.ZodString;
|
|
2109
|
+
max_cpu_usage_ms: z.ZodString;
|
|
2110
|
+
delay_sec: z.ZodString;
|
|
2111
|
+
transaction_extensions: z.ZodArray<z.ZodUnknown>;
|
|
2112
|
+
signatures: z.ZodArray<z.ZodString>;
|
|
2113
|
+
context_free_data: z.ZodArray<z.ZodUnknown>;
|
|
2114
|
+
}, z.core.$strip>;
|
|
2115
|
+
}, z.core.$strip>;
|
|
2116
|
+
}, z.core.$strip>;
|
|
2117
|
+
type ChronicleTransaction = z.infer<typeof chronicleTransactionParser>;
|
|
2118
|
+
declare const dbHistoryTransactionParser: z.ZodObject<{
|
|
2119
|
+
seq: z.ZodString;
|
|
2120
|
+
block_num: z.ZodString;
|
|
2121
|
+
block_time: z.ZodString;
|
|
2122
|
+
trx_id: z.ZodString;
|
|
2123
|
+
trace: z.ZodAny;
|
|
2124
|
+
}, z.core.$strip>;
|
|
2125
|
+
type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
|
|
2126
|
+
/**
|
|
2127
|
+
* History Actions
|
|
2128
|
+
*/
|
|
2129
|
+
declare const getHistoryActionsParser: z.ZodObject<{
|
|
2130
|
+
account: z.ZodString;
|
|
2131
|
+
contract_filters: z.ZodPipe<z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodString]>>, z.ZodTransform<string[], string | string[] | undefined>>;
|
|
2132
|
+
account_seq_from: z.ZodOptional<z.ZodString>;
|
|
2133
|
+
account_seq_to: z.ZodOptional<z.ZodString>;
|
|
2134
|
+
date_from: z.ZodOptional<z.ZodString>;
|
|
2135
|
+
date_to: z.ZodOptional<z.ZodString>;
|
|
2136
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2137
|
+
asc: "asc";
|
|
2138
|
+
desc: "desc";
|
|
2139
|
+
}>>;
|
|
2140
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
2141
|
+
}, z.core.$strip>;
|
|
2142
|
+
type GetHistoryActions = z.input<typeof getHistoryActionsParser>;
|
|
2143
|
+
type GetHistoryActionsParsed = z.output<typeof getHistoryActionsParser>;
|
|
2144
|
+
declare const historyActionParser: z.ZodObject<{
|
|
2145
|
+
block_num: z.ZodNumber;
|
|
2146
|
+
block_time: z.ZodString;
|
|
2147
|
+
trx_id: z.ZodString;
|
|
2148
|
+
account_action_seq: z.ZodNumber;
|
|
2149
|
+
global_action_seq: z.ZodNumber;
|
|
2150
|
+
action_trace: z.ZodObject<{
|
|
2151
|
+
action_ordinal: z.ZodString;
|
|
2152
|
+
creator_action_ordinal: z.ZodString;
|
|
2153
|
+
receipt: z.ZodObject<{
|
|
2154
|
+
receiver: z.ZodString;
|
|
2155
|
+
act_digest: z.ZodString;
|
|
2156
|
+
global_sequence: z.ZodString;
|
|
2157
|
+
recv_sequence: z.ZodString;
|
|
2158
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
2159
|
+
account: z.ZodString;
|
|
2160
|
+
sequence: z.ZodString;
|
|
2161
|
+
}, z.core.$strip>>;
|
|
2162
|
+
code_sequence: z.ZodString;
|
|
2163
|
+
abi_sequence: z.ZodString;
|
|
2164
|
+
}, z.core.$strip>;
|
|
2165
|
+
receiver: z.ZodString;
|
|
2166
|
+
act: z.ZodObject<{
|
|
2167
|
+
account: z.ZodString;
|
|
2168
|
+
name: z.ZodString;
|
|
2169
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
2170
|
+
actor: z.ZodString;
|
|
2171
|
+
permission: z.ZodString;
|
|
2172
|
+
}, z.core.$strip>>;
|
|
2173
|
+
data: z.ZodAny;
|
|
2174
|
+
}, z.core.$strip>;
|
|
2175
|
+
context_free: z.ZodString;
|
|
2176
|
+
elapsed: z.ZodString;
|
|
2177
|
+
console: z.ZodString;
|
|
2178
|
+
account_ram_deltas: z.ZodArray<z.ZodObject<{
|
|
2179
|
+
account: z.ZodString;
|
|
2180
|
+
delta: z.ZodString;
|
|
2181
|
+
}, z.core.$strip>>;
|
|
2182
|
+
except: z.ZodString;
|
|
2183
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
2184
|
+
return_value: z.ZodString;
|
|
2185
|
+
}, z.core.$strip>;
|
|
2186
|
+
irreversible: z.ZodBoolean;
|
|
2187
|
+
}, z.core.$strip>;
|
|
2188
|
+
type HistoryAction = z.infer<typeof historyActionParser>;
|
|
2189
|
+
declare const getHistoryActionsResponseParser: z.ZodObject<{
|
|
2190
|
+
sync: z.ZodNumber;
|
|
2191
|
+
last_irreversible_block_num: z.ZodNumber;
|
|
2192
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2193
|
+
block_num: z.ZodNumber;
|
|
2194
|
+
block_time: z.ZodString;
|
|
2195
|
+
trx_id: z.ZodString;
|
|
2196
|
+
account_action_seq: z.ZodNumber;
|
|
2197
|
+
global_action_seq: z.ZodNumber;
|
|
2198
|
+
action_trace: z.ZodObject<{
|
|
2199
|
+
action_ordinal: z.ZodString;
|
|
2200
|
+
creator_action_ordinal: z.ZodString;
|
|
2201
|
+
receipt: z.ZodObject<{
|
|
2202
|
+
receiver: z.ZodString;
|
|
2203
|
+
act_digest: z.ZodString;
|
|
2204
|
+
global_sequence: z.ZodString;
|
|
2205
|
+
recv_sequence: z.ZodString;
|
|
2206
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
2207
|
+
account: z.ZodString;
|
|
2208
|
+
sequence: z.ZodString;
|
|
2209
|
+
}, z.core.$strip>>;
|
|
2210
|
+
code_sequence: z.ZodString;
|
|
2211
|
+
abi_sequence: z.ZodString;
|
|
2212
|
+
}, z.core.$strip>;
|
|
2213
|
+
receiver: z.ZodString;
|
|
2214
|
+
act: z.ZodObject<{
|
|
2215
|
+
account: z.ZodString;
|
|
2216
|
+
name: z.ZodString;
|
|
2217
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
2218
|
+
actor: z.ZodString;
|
|
2219
|
+
permission: z.ZodString;
|
|
2220
|
+
}, z.core.$strip>>;
|
|
2221
|
+
data: z.ZodAny;
|
|
2222
|
+
}, z.core.$strip>;
|
|
2223
|
+
context_free: z.ZodString;
|
|
2224
|
+
elapsed: z.ZodString;
|
|
2225
|
+
console: z.ZodString;
|
|
2226
|
+
account_ram_deltas: z.ZodArray<z.ZodObject<{
|
|
2227
|
+
account: z.ZodString;
|
|
2228
|
+
delta: z.ZodString;
|
|
2229
|
+
}, z.core.$strip>>;
|
|
2230
|
+
except: z.ZodString;
|
|
2231
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
2232
|
+
return_value: z.ZodString;
|
|
2233
|
+
}, z.core.$strip>;
|
|
2234
|
+
irreversible: z.ZodBoolean;
|
|
2235
|
+
}, z.core.$strip>>;
|
|
2236
|
+
}, z.core.$strip>;
|
|
2237
|
+
type GetHistoryActionsResponse = z.infer<typeof getHistoryActionsResponseParser>;
|
|
2238
|
+
/**
|
|
2239
|
+
* History transfers
|
|
2240
|
+
*/
|
|
2241
|
+
declare const getHistoryTransfersParser: z.ZodObject<{
|
|
2242
|
+
transfer_from: z.ZodOptional<z.ZodString>;
|
|
2243
|
+
transfer_to: z.ZodOptional<z.ZodString>;
|
|
2244
|
+
contract: z.ZodOptional<z.ZodString>;
|
|
2245
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
2246
|
+
amount_precision: z.ZodOptional<z.ZodString>;
|
|
2247
|
+
amount_min: z.ZodOptional<z.ZodString>;
|
|
2248
|
+
amount_max: z.ZodOptional<z.ZodString>;
|
|
2249
|
+
date_from: z.ZodOptional<z.ZodString>;
|
|
2250
|
+
date_to: z.ZodOptional<z.ZodString>;
|
|
2251
|
+
global_seq_from: z.ZodOptional<z.ZodString>;
|
|
2252
|
+
global_seq_to: z.ZodOptional<z.ZodString>;
|
|
2253
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
2254
|
+
asc: "asc";
|
|
2255
|
+
desc: "desc";
|
|
2256
|
+
}>>;
|
|
2257
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<number>>;
|
|
2258
|
+
}, z.core.$strip>;
|
|
2259
|
+
type GetHistoryTransfers = z.input<typeof getHistoryTransfersParser>;
|
|
2260
|
+
type GetHistoryTransfersParsed = z.output<typeof getHistoryTransfersParser>;
|
|
2261
|
+
declare const historyTransferParser: z.ZodObject<{
|
|
2262
|
+
block_num: z.ZodNumber;
|
|
2263
|
+
block_time: z.ZodString;
|
|
2264
|
+
trx_id: z.ZodString;
|
|
2265
|
+
account_action_seq: z.ZodNumber;
|
|
2266
|
+
global_action_seq: z.ZodNumber;
|
|
2267
|
+
action_trace: z.ZodObject<{
|
|
2268
|
+
action_ordinal: z.ZodString;
|
|
2269
|
+
creator_action_ordinal: z.ZodString;
|
|
2270
|
+
receipt: z.ZodObject<{
|
|
2271
|
+
receiver: z.ZodString;
|
|
2272
|
+
act_digest: z.ZodString;
|
|
2273
|
+
global_sequence: z.ZodString;
|
|
2274
|
+
recv_sequence: z.ZodString;
|
|
2275
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
2276
|
+
account: z.ZodString;
|
|
2277
|
+
sequence: z.ZodString;
|
|
2278
|
+
}, z.core.$strip>>;
|
|
2279
|
+
code_sequence: z.ZodString;
|
|
2280
|
+
abi_sequence: z.ZodString;
|
|
2281
|
+
}, z.core.$strip>;
|
|
2282
|
+
receiver: z.ZodString;
|
|
2283
|
+
act: z.ZodObject<{
|
|
2284
|
+
account: z.ZodString;
|
|
2285
|
+
name: z.ZodString;
|
|
2286
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
2287
|
+
actor: z.ZodString;
|
|
2288
|
+
permission: z.ZodString;
|
|
2289
|
+
}, z.core.$strip>>;
|
|
2290
|
+
data: z.ZodAny;
|
|
2291
|
+
}, z.core.$strip>;
|
|
2292
|
+
context_free: z.ZodString;
|
|
2293
|
+
elapsed: z.ZodString;
|
|
2294
|
+
console: z.ZodString;
|
|
2295
|
+
account_ram_deltas: z.ZodArray<z.ZodObject<{
|
|
2296
|
+
account: z.ZodString;
|
|
2297
|
+
delta: z.ZodString;
|
|
2298
|
+
}, z.core.$strip>>;
|
|
2299
|
+
except: z.ZodString;
|
|
2300
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
2301
|
+
return_value: z.ZodString;
|
|
2302
|
+
}, z.core.$strip>;
|
|
2303
|
+
irreversible: z.ZodBoolean;
|
|
2304
|
+
}, z.core.$strip>;
|
|
2305
|
+
type HistoryTransfer = z.infer<typeof historyTransferParser>;
|
|
2306
|
+
declare const getHistoryTransfersResponseParser: z.ZodObject<{
|
|
2307
|
+
sync: z.ZodNumber;
|
|
2308
|
+
last_irreversible_block_num: z.ZodNumber;
|
|
2309
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2310
|
+
block_num: z.ZodNumber;
|
|
2311
|
+
block_time: z.ZodString;
|
|
2312
|
+
trx_id: z.ZodString;
|
|
2313
|
+
account_action_seq: z.ZodNumber;
|
|
2314
|
+
global_action_seq: z.ZodNumber;
|
|
2315
|
+
action_trace: z.ZodObject<{
|
|
2316
|
+
action_ordinal: z.ZodString;
|
|
2317
|
+
creator_action_ordinal: z.ZodString;
|
|
2318
|
+
receipt: z.ZodObject<{
|
|
2319
|
+
receiver: z.ZodString;
|
|
2320
|
+
act_digest: z.ZodString;
|
|
2321
|
+
global_sequence: z.ZodString;
|
|
2322
|
+
recv_sequence: z.ZodString;
|
|
2323
|
+
auth_sequence: z.ZodArray<z.ZodObject<{
|
|
2324
|
+
account: z.ZodString;
|
|
2325
|
+
sequence: z.ZodString;
|
|
2326
|
+
}, z.core.$strip>>;
|
|
2327
|
+
code_sequence: z.ZodString;
|
|
2328
|
+
abi_sequence: z.ZodString;
|
|
2329
|
+
}, z.core.$strip>;
|
|
2330
|
+
receiver: z.ZodString;
|
|
2331
|
+
act: z.ZodObject<{
|
|
2332
|
+
account: z.ZodString;
|
|
2333
|
+
name: z.ZodString;
|
|
2334
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
2335
|
+
actor: z.ZodString;
|
|
2336
|
+
permission: z.ZodString;
|
|
2337
|
+
}, z.core.$strip>>;
|
|
2338
|
+
data: z.ZodAny;
|
|
2339
|
+
}, z.core.$strip>;
|
|
2340
|
+
context_free: z.ZodString;
|
|
2341
|
+
elapsed: z.ZodString;
|
|
2342
|
+
console: z.ZodString;
|
|
2343
|
+
account_ram_deltas: z.ZodArray<z.ZodObject<{
|
|
2344
|
+
account: z.ZodString;
|
|
2345
|
+
delta: z.ZodString;
|
|
2346
|
+
}, z.core.$strip>>;
|
|
2347
|
+
except: z.ZodString;
|
|
2348
|
+
error_code: z.ZodNullable<z.ZodString>;
|
|
2349
|
+
return_value: z.ZodString;
|
|
2350
|
+
}, z.core.$strip>;
|
|
2351
|
+
irreversible: z.ZodBoolean;
|
|
2352
|
+
}, z.core.$strip>>;
|
|
2353
|
+
}, z.core.$strip>;
|
|
2354
|
+
type GetHistoryTransfersResponse = z.infer<typeof getHistoryTransfersResponseParser>;
|
|
2355
|
+
/**
|
|
2356
|
+
* Open orders Balances
|
|
2357
|
+
*/
|
|
2358
|
+
declare const marketOpenOrdersBalanceParser: z.ZodObject<{
|
|
2359
|
+
market_id: z.ZodNumber;
|
|
2360
|
+
bid_token_quantity: z.ZodNumber;
|
|
2361
|
+
bid_token: z.ZodString;
|
|
2362
|
+
ask_token_quantity: z.ZodNumber;
|
|
2363
|
+
ask_token: z.ZodString;
|
|
2364
|
+
}, z.core.$strip>;
|
|
2365
|
+
type MarketOpenOrdersBalance = z.infer<typeof marketOpenOrdersBalanceParser>;
|
|
2366
|
+
declare const getOpenOrdersBalancesResponseParser: z.ZodObject<{
|
|
2367
|
+
sync: z.ZodNumber;
|
|
2368
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2369
|
+
market_id: z.ZodNumber;
|
|
2370
|
+
bid_token_quantity: z.ZodNumber;
|
|
2371
|
+
bid_token: z.ZodString;
|
|
2372
|
+
ask_token_quantity: z.ZodNumber;
|
|
2373
|
+
ask_token: z.ZodString;
|
|
2374
|
+
}, z.core.$strip>>;
|
|
2375
|
+
}, z.core.$strip>;
|
|
2376
|
+
type GetOpenOrdersBalancesResponse = z.infer<typeof getOpenOrdersBalancesResponseParser>;
|
|
2377
|
+
/**
|
|
2378
|
+
* Basic Types
|
|
2379
|
+
*/
|
|
2380
|
+
declare enum orderType {
|
|
2381
|
+
ORDERBOOK = 0,
|
|
2382
|
+
LIMIT = 1,
|
|
2383
|
+
STOPLOSS = 2,
|
|
2384
|
+
TAKEPROFIT = 3
|
|
2385
|
+
}
|
|
2386
|
+
declare enum orderSide {
|
|
2387
|
+
INVALID = 0,
|
|
2388
|
+
BUY = 1,
|
|
2389
|
+
SELL = 2
|
|
2390
|
+
}
|
|
2391
|
+
declare enum fillType {
|
|
2392
|
+
GTC = 0,
|
|
2393
|
+
IOC = 1,
|
|
2394
|
+
POST_ONLY = 2
|
|
2395
|
+
}
|
|
2396
|
+
declare enum logStatus {
|
|
2397
|
+
CREATE = "create",
|
|
2398
|
+
UPDATE = "update",
|
|
2399
|
+
TRANSFER = "transfer",
|
|
2400
|
+
CANCEL = "cancel",
|
|
2401
|
+
DELETE = "delete"
|
|
2402
|
+
}
|
|
2403
|
+
declare enum ITopics {
|
|
2404
|
+
TRADES = "TRADES",
|
|
2405
|
+
ORDERS = "ORDERS"
|
|
2406
|
+
}
|
|
2407
|
+
declare const TOPICS: {
|
|
2408
|
+
TRADES: {
|
|
2409
|
+
topic: ITopics;
|
|
2410
|
+
};
|
|
2411
|
+
ORDERS: {
|
|
2412
|
+
topic: ITopics;
|
|
2413
|
+
};
|
|
2414
|
+
};
|
|
2415
|
+
declare const loginAccountParamsV3Parser: z.ZodObject<{
|
|
2416
|
+
signer: z.ZodObject<{
|
|
2417
|
+
actor: z.ZodString;
|
|
2418
|
+
permission: z.ZodString;
|
|
2419
|
+
}, z.core.$strip>;
|
|
2420
|
+
signatures: z.ZodArray<z.ZodString>;
|
|
2421
|
+
transaction: z.ZodObject<{
|
|
2422
|
+
expiration: z.ZodString;
|
|
2423
|
+
ref_block_num: z.ZodNumber;
|
|
2424
|
+
ref_block_prefix: z.ZodNumber;
|
|
2425
|
+
max_net_usage_words: z.ZodNumber;
|
|
2426
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
2427
|
+
delay_sec: z.ZodNumber;
|
|
2428
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
2429
|
+
account: z.ZodString;
|
|
2430
|
+
name: z.ZodString;
|
|
2431
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
2432
|
+
actor: z.ZodString;
|
|
2433
|
+
permission: z.ZodString;
|
|
2434
|
+
}, z.core.$strip>>;
|
|
2435
|
+
data: z.ZodAny;
|
|
2436
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
2437
|
+
}, z.core.$strip>>;
|
|
2438
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
2439
|
+
actions: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
2440
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
2441
|
+
name: z.ZodLiteral<string>;
|
|
2442
|
+
data: z.ZodObject<{
|
|
2443
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
2444
|
+
}, z.core.$strip>;
|
|
2445
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
2446
|
+
actor: z.ZodString;
|
|
2447
|
+
permission: z.ZodString;
|
|
2448
|
+
}, z.core.$strip>>;
|
|
2449
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2450
|
+
account: z.ZodLiteral<"webauthn">;
|
|
2451
|
+
name: z.ZodLiteral<"exec">;
|
|
2452
|
+
data: z.ZodObject<{
|
|
2453
|
+
account: z.ZodString;
|
|
2454
|
+
key: z.ZodObject<{
|
|
2455
|
+
key: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2456
|
+
modulus: z.ZodString;
|
|
2457
|
+
exponent: z.ZodString;
|
|
2458
|
+
}, z.core.$strip>]>>;
|
|
2459
|
+
user_presence: z.ZodNumber;
|
|
2460
|
+
rpid: z.ZodString;
|
|
2461
|
+
}, z.core.$strip>;
|
|
2462
|
+
nonce: z.ZodNumber;
|
|
2463
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
2464
|
+
actor: z.ZodString;
|
|
2465
|
+
permission: z.ZodString;
|
|
2466
|
+
}, z.core.$strip>>;
|
|
2467
|
+
signature: z.ZodObject<{
|
|
2468
|
+
auth_data: z.ZodString;
|
|
2469
|
+
client_json: z.ZodString;
|
|
2470
|
+
signature: z.ZodString;
|
|
2471
|
+
}, z.core.$strip>;
|
|
2472
|
+
trx: z.ZodObject<{
|
|
2473
|
+
expiration: z.ZodString;
|
|
2474
|
+
ref_block_num: z.ZodNumber;
|
|
2475
|
+
ref_block_prefix: z.ZodNumber;
|
|
2476
|
+
max_net_usage_words: z.ZodNumber;
|
|
2477
|
+
max_cpu_usage_ms: z.ZodNumber;
|
|
2478
|
+
delay_sec: z.ZodNumber;
|
|
2479
|
+
context_free_actions: z.ZodArray<z.ZodObject<{
|
|
2480
|
+
account: z.ZodString;
|
|
2481
|
+
name: z.ZodString;
|
|
2482
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
2483
|
+
actor: z.ZodString;
|
|
2484
|
+
permission: z.ZodString;
|
|
2485
|
+
}, z.core.$strip>>;
|
|
2486
|
+
data: z.ZodAny;
|
|
2487
|
+
hex_data: z.ZodOptional<z.ZodString>;
|
|
2488
|
+
}, z.core.$strip>>;
|
|
2489
|
+
transaction_extensions: z.ZodArray<z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>>;
|
|
2490
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
2491
|
+
account: z.ZodString | z.ZodLiteral<string>;
|
|
2492
|
+
name: z.ZodLiteral<string>;
|
|
2493
|
+
data: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2494
|
+
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
2495
|
+
}, z.core.$strip>]>;
|
|
2496
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
2497
|
+
actor: z.ZodString;
|
|
2498
|
+
permission: z.ZodString;
|
|
2499
|
+
}, z.core.$strip>>;
|
|
2500
|
+
}, z.core.$strip>>;
|
|
2501
|
+
}, z.core.$strip>;
|
|
2502
|
+
}, z.core.$strip>;
|
|
2503
|
+
authorization: z.ZodArray<z.ZodObject<{
|
|
2504
|
+
actor: z.ZodString;
|
|
2505
|
+
permission: z.ZodString;
|
|
2506
|
+
}, z.core.$strip>>;
|
|
2507
|
+
}, z.core.$strip>]>>;
|
|
2508
|
+
}, z.core.$strip>;
|
|
2509
|
+
email: z.ZodOptional<z.ZodString>;
|
|
2510
|
+
verificationCode: z.ZodOptional<z.ZodString>;
|
|
2511
|
+
}, z.core.$strip>;
|
|
2512
|
+
type LoginAccountParamsV3 = z.infer<typeof loginAccountParamsV3Parser>;
|
|
2513
|
+
declare const WRAP_CONTRACT = "proton.wrap";
|
|
2514
|
+
declare const WRAP_AUTH_ACTION = "generateauth";
|
|
2515
|
+
declare const FEE_FACTOR = 10000;
|
|
2516
|
+
declare const initializeConstants: (chain: string) => {
|
|
2517
|
+
SWAP_CONTRACT: string;
|
|
2518
|
+
VEST_CONTRACT: string;
|
|
2519
|
+
DEX_CONTRACT: string;
|
|
2520
|
+
FEE_FACTOR: number;
|
|
2521
|
+
SWAP_URL: string;
|
|
2522
|
+
WRAP_SERVER_URL: string;
|
|
2523
|
+
WRAP_CONTRACT: string;
|
|
2524
|
+
WRAP_ACTIONS: {
|
|
2525
|
+
SAVE_ADDRESS: string;
|
|
2526
|
+
DELETE_ADDRESS: string;
|
|
2527
|
+
WRAP_START: string;
|
|
2528
|
+
WRAP_FINISH: string;
|
|
2529
|
+
WRAP_PROCESS: string;
|
|
2530
|
+
WRAP_SET_CONF: string;
|
|
2531
|
+
};
|
|
2532
|
+
WRAP_TABLES: {
|
|
2533
|
+
ADDRESSES: string;
|
|
2534
|
+
WRAPS: string;
|
|
2535
|
+
};
|
|
2536
|
+
ADDRESSES_INDEXES: {
|
|
2537
|
+
BY_ACCOUNT: number;
|
|
2538
|
+
BY_ADDR_HASH: number;
|
|
2539
|
+
};
|
|
2540
|
+
WRAPS_INDEXES: {
|
|
2541
|
+
BY_ACCOUNT: number;
|
|
2542
|
+
BY_STATUS: number;
|
|
2543
|
+
BY_WRAP_HASH: number;
|
|
2544
|
+
};
|
|
2545
|
+
WRAP_PROCESS_TIMER: number;
|
|
2546
|
+
FARM_CONTRACT: string;
|
|
2547
|
+
WEBHOOK_PERMISSION: string;
|
|
2548
|
+
PUBLIC_PERMISSION: string;
|
|
2549
|
+
LIGHT_PERMISSION: string;
|
|
2550
|
+
WRAP_AUTH_ACTION: string;
|
|
2551
|
+
METAL_ENDPOINT: string;
|
|
2552
|
+
METAL_PROTON_ENDPOINT: string;
|
|
2553
|
+
METAL_DEX_HTTP_ENDPOINT: string;
|
|
2554
|
+
METAL_DEX_WS_ENDPOINT: string;
|
|
2555
|
+
PROTON_ENDPOINTS: string[];
|
|
2556
|
+
CHAIN_ID: string;
|
|
2557
|
+
COINS_URL: string;
|
|
2558
|
+
DEX_PROCESS_SIZE: number;
|
|
2559
|
+
DEX_SLTPPROCESS_SIZE: number;
|
|
2560
|
+
MAX_PRICE: string;
|
|
2561
|
+
MAX_ITEMS_PER_PAGE_DESKTOP: number;
|
|
2562
|
+
MIN_PRICE: number;
|
|
2563
|
+
DEFAULT_DEX_SYMBOL: string;
|
|
2564
|
+
CHAIN: string;
|
|
2565
|
+
SWAP_COINS: Coin[];
|
|
2566
|
+
BRIDGE_COINS: Coin[];
|
|
2567
|
+
ALL_ENABLED_COINS: Coin[];
|
|
2568
|
+
LEND_COINS: Coin[];
|
|
2569
|
+
BORROW_COINS: Coin[];
|
|
2570
|
+
LOAN_COINS: Coin[];
|
|
2571
|
+
ALL_COINS: Coin[];
|
|
2572
|
+
XMD_CONTRACT: string;
|
|
2573
|
+
XMD_TOKEN_CONTRACT: string;
|
|
2574
|
+
XMD_SYMBOL_CODE: string;
|
|
2575
|
+
XMD_DECIMALS: number;
|
|
2576
|
+
findBridgeCoinWalletByXtokenAndChain(xtokenSymbol: string, chain: string): CoinWallet | undefined;
|
|
2577
|
+
findBridgeCoinWallet(coin: string, wallet: string): CoinWallet | undefined;
|
|
2578
|
+
findBridgeCoinWalletByWallet(wallet: string): CoinWallet | undefined;
|
|
2579
|
+
findBridgeCoinNetwork(coin: string, network: string): CoinWallet | undefined;
|
|
2580
|
+
};
|
|
2581
|
+
interface PartialCoin {
|
|
2582
|
+
xtokenSymbol: string;
|
|
2583
|
+
xtokenPrecision: number;
|
|
2584
|
+
xtokenContract: string;
|
|
2585
|
+
}
|
|
2586
|
+
declare const isSameToken: (token1: PartialCoin, token2: PartialCoin) => boolean;
|
|
2587
|
+
declare const median: (numbers: number[]) => number;
|
|
2588
|
+
/**
|
|
2589
|
+
* XPR<>XUSDT (XPR -> XUSDT)
|
|
2590
|
+
*
|
|
2591
|
+
* pool1 * pool2
|
|
2592
|
+
* term = pool2 - --------------
|
|
2593
|
+
* pool1 + swap
|
|
2594
|
+
*
|
|
2595
|
+
* result = term - (term * fee)
|
|
2596
|
+
*/
|
|
2597
|
+
declare const compute_transfer: (pool1: BN.Instance, pool2: BN.Instance, swap: BN.Instance, exchange_fee: number, precision: number) => BN;
|
|
2598
|
+
declare const compute_transfer_curve: (reserve_in: number, reserve_out: number, amount_in: number, exchange_fee: number, precision: number, amplifier: number) => BN;
|
|
2599
|
+
declare const compute_liquidity: (amount_lt: BN.Instance, pool: BN.Instance, lt_supply: BN.Instance, precision: number) => number;
|
|
2600
|
+
declare const isInputInvalid: (data: string, value: string | number, pool: {
|
|
2601
|
+
xtokenPrecision: number;
|
|
2602
|
+
}) => boolean;
|
|
2603
|
+
declare const applyDiscountToFee: (fee: number, staked: number) => number;
|
|
2604
|
+
export { Address, Authorization, Authorizations, BloksRate, BloksRates, Chains, ChronicleTransaction, Coin, CoinWallet, CurrencyStat, CurrencyStats, Daily, DbHistoryTransaction, DbMarket, DepositBody, Depth, ExchangeRate, ExchangeRates, ExtendedAsset, ExtendedAssetParser, ExtendedToken, ExtendedTokenWithRate, FEE_FACTOR, GenerateAddressBody, GenerateAddressResponse, GenerateAuth, GenerateAuthBaseAction, GetDailyResponse, GetDepth, GetDepthParsed, GetDepthResponse, GetHistoryActions, GetHistoryActionsParsed, GetHistoryActionsResponse, GetHistoryTransactionResponse, GetHistoryTransfers, GetHistoryTransfersParsed, GetHistoryTransfersResponse, GetLeaderboard, GetLeaderboardParsed, GetLeaderboardResponse, GetMarketsResponse, GetOHLCV, GetOHLCVParsed, GetOHLCVResponse, GetOpenOrders, GetOpenOrdersBalancesResponse, GetOpenOrdersParsed, GetOpenOrdersResponse, GetOrderHistory, GetOrderHistoryParsed, GetOrderHistoryResponse, GetOrderLifecycle, GetOrderLifecycleParsed, GetOrderLifecycleResponse, GetReferralTotals, GetReferralTotalsParsed, GetReferralTotalsResponse, GetReferrals, GetReferralsParsed, GetReferralsResponse, GetSyncResponse, GetTradeHistory, GetTradeHistoryParsed, GetTradeHistoryResponse, GetTrades, GetTradesParsed, GetTradesResponse, Graph, HistoryAccountRamDelta, HistoryAct, HistoryAction, HistoryActionTrace, HistoryPartial, HistoryReceipt, HistoryTrace, HistoryTransaction, HistoryTransfer, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, MarketOpenOrdersBalance, MetalTransaction, Networks, OHLCV, OpenOrder, OrderHistory, OrderLog, OtcOrderResponse, OtcQuoteBody, OtcQuoteResponse, Pool, PoolTable, PostSerializeOrder, PostSerializeOrderResponse, PostSubmitOrder, PostSubmitOrderResponse, Providers, Rate, RawPool, Referral, ReferralTotal, SortDirection, Status, Sync, TOPICS, Trade, TradeLog, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, Wallet, WithdrawBody, WithdrawBodyBaseAction, WithdrawHistoryMetalResponse, WithdrawHistoryMetalSwap, WithdrawMetalResponse, WithdrawalFeeQuote, Wrap, WrapSetConf, WrapStart, accountParser, accountRamDeltaParser, actParser, actionTraceParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, chronicleTransactionParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, dailyParser, dbHistoryTransactionParser, dbMarketParser, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, fillType, generateAddressBodyParser, generateAddressResponse, generateAuthActionsBaseParser, generateAuthParser, getDailyResponseParser, getDepthParser, getDepthResponseParser, getHistoryActionsParser, getHistoryActionsResponseParser, getHistoryTransactionResponseParser, getHistoryTransfersParser, getHistoryTransfersResponseParser, getLeaderboardParser, getLeaderboardResponseParser, getMarketsResponseParser, getOhlcvParser, getOhlcvResponseParser, getOpenOrdersBalancesResponseParser, getOpenOrdersParser, getOpenOrdersResponseParser, getOrderHistoryParser, getOrderHistoryResponseParser, getOrderLifecycleParser, getOrderLifecycleResponseParser, getReferralTotalsParser, getReferralTotalsResponseParser, getReferralsParser, getReferralsResponseParser, getSyncResponseParser, getTradeHistoryParser, getTradeHistoryResponseParser, getTradesParser, getTradesResponseParser, historyActionParser, historyPartialParser, historyTransactionParser, historyTransferParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, leaderboardParser, logStatus, loginAccountParamsV3Parser, marketOpenOrdersBalanceParser, marketParser, median, metalTransactionParser, ohlcvParser, openOrderParser, orderHistoryParser, orderLogParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, postSerializeOrderParser, postSerializeOrderResponseParser, postSubmitOrderParser, postSubmitOrderResponseParser, protonExplorerTxUrl, rateParser, receiptParser, refferalParser, refferalTotalParser, similarChains, singleActionTransactionParser, sortDirectionEnum, syncParser, traceParser, tradeLogParser, tradeParser, webauthActionParser, withdrawBodyBaseAction, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|