@alephium/web3 1.8.5 → 1.10.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.
Files changed (41) hide show
  1. package/dist/alephium-web3.min.js +1 -1
  2. package/dist/alephium-web3.min.js.map +1 -1
  3. package/dist/src/api/api-alephium.d.ts +25 -6
  4. package/dist/src/api/api-alephium.js +33 -4
  5. package/dist/src/api/api-explorer.d.ts +810 -819
  6. package/dist/src/api/api-explorer.js +350 -360
  7. package/dist/src/codec/instr-codec.d.ts +2 -0
  8. package/dist/src/codec/instr-codec.js +54 -1
  9. package/dist/src/codec/unlock-script-codec.d.ts +1 -0
  10. package/dist/src/codec/unlock-script-codec.js +2 -1
  11. package/dist/src/constants.d.ts +4 -0
  12. package/dist/src/constants.js +5 -1
  13. package/dist/src/contract/contract.d.ts +5 -1
  14. package/dist/src/contract/contract.js +44 -8
  15. package/dist/src/contract/dapp-tx-builder.d.ts +26 -0
  16. package/dist/src/contract/dapp-tx-builder.js +187 -0
  17. package/dist/src/contract/events.d.ts +1 -0
  18. package/dist/src/contract/events.js +14 -3
  19. package/dist/src/contract/index.d.ts +1 -0
  20. package/dist/src/contract/index.js +3 -0
  21. package/dist/src/contract/ralph.js +2 -34
  22. package/dist/src/exchange/exchange.d.ts +13 -2
  23. package/dist/src/exchange/exchange.js +52 -14
  24. package/dist/src/exchange/index.d.ts +1 -1
  25. package/dist/src/exchange/index.js +3 -2
  26. package/dist/src/signer/types.d.ts +1 -0
  27. package/package.json +5 -5
  28. package/src/api/api-alephium.ts +49 -9
  29. package/src/api/api-explorer.ts +990 -1000
  30. package/src/codec/instr-codec.ts +56 -1
  31. package/src/codec/unlock-script-codec.ts +2 -0
  32. package/src/constants.ts +4 -0
  33. package/src/contract/contract.ts +46 -7
  34. package/src/contract/dapp-tx-builder.ts +209 -0
  35. package/src/contract/events.ts +15 -3
  36. package/src/contract/index.ts +1 -0
  37. package/src/contract/ralph.ts +4 -49
  38. package/src/exchange/exchange.ts +69 -17
  39. package/src/exchange/index.ts +10 -1
  40. package/src/signer/tx-builder.ts +2 -2
  41. package/src/signer/types.ts +1 -0
@@ -1,47 +1,42 @@
1
- /** Val */
2
- export type Val = ValAddress | ValArray | ValBool | ValByteVec | ValI256 | ValU256;
3
- /** ContractOutput */
4
- export interface ContractOutput {
5
- /** @format address */
6
- address: string;
7
- /** @format int32 */
8
- hint: number;
9
- /** @format 32-byte-hash */
10
- spent?: string;
11
- /** @format uint256 */
12
- attoAlphAmount: string;
13
- tokens?: Token[];
14
- fixedOutput: boolean;
15
- type: string;
16
- /** @format 32-byte-hash */
17
- key: string;
18
- }
19
- /** IntervalType */
20
- export declare enum IntervalType {
21
- Daily = "daily",
22
- Hourly = "hourly",
23
- Weekly = "weekly"
24
- }
25
- /** Token */
26
- export interface Token {
27
- /** @format uint256 */
28
- amount: string;
1
+ /** AcceptedTransaction */
2
+ export interface AcceptedTransaction {
29
3
  /** @format 32-byte-hash */
30
- id: string;
31
- }
32
- /** ContractLivenessLocation */
33
- export interface ContractLivenessLocation {
4
+ hash: string;
34
5
  /** @format block-hash */
35
6
  blockHash: string;
36
- /** @format 32-byte-hash */
37
- txHash: string;
38
7
  /** @format int64 */
39
8
  timestamp: number;
40
- }
41
- /** NonStandard */
42
- export interface NonStandard {
9
+ inputs?: Input[];
10
+ outputs?: Output[];
11
+ version: number;
12
+ networkId: number;
13
+ scriptOpt?: string;
14
+ /** @format int32 */
15
+ gasAmount: number;
16
+ /** @format uint256 */
17
+ gasPrice: string;
18
+ scriptExecutionOk: boolean;
19
+ inputSignatures?: string[];
20
+ scriptSignatures?: string[];
21
+ coinbase: boolean;
43
22
  type: string;
44
23
  }
24
+ /** AddressBalance */
25
+ export interface AddressBalance {
26
+ /** @format uint256 */
27
+ balance: string;
28
+ /** @format uint256 */
29
+ lockedBalance: string;
30
+ }
31
+ /** AddressInfo */
32
+ export interface AddressInfo {
33
+ /** @format uint256 */
34
+ balance: string;
35
+ /** @format uint256 */
36
+ lockedBalance: string;
37
+ /** @format int32 */
38
+ txNumber: number;
39
+ }
45
40
  /** AddressTokenBalance */
46
41
  export interface AddressTokenBalance {
47
42
  /** @format 32-byte-hash */
@@ -51,431 +46,487 @@ export interface AddressTokenBalance {
51
46
  /** @format uint256 */
52
47
  lockedBalance: string;
53
48
  }
54
- /** OutputRef */
55
- export interface OutputRef {
49
+ /** AmountHistory */
50
+ export interface AmountHistory {
51
+ amountHistory?: string[][];
52
+ }
53
+ /** AssetOutput */
54
+ export interface AssetOutput {
56
55
  /** @format int32 */
57
56
  hint: number;
58
57
  /** @format 32-byte-hash */
59
58
  key: string;
60
- }
61
- /** Input */
62
- export interface Input {
63
- /** @format address */
64
- address?: string;
65
- contractInput: boolean;
66
- /** @format hex-string */
67
- unlockScript?: string;
68
59
  /** @format uint256 */
69
- attoAlphAmount?: string;
60
+ attoAlphAmount: string;
61
+ /** @format address */
62
+ address: string;
70
63
  tokens?: Token[];
71
- /** @format 32-byte-hash */
72
- txHashRef?: string;
73
- outputRef: OutputRef;
74
- }
75
- /** PerChainCount */
76
- export interface PerChainCount {
77
- /** @format int32 */
78
- chainFrom: number;
79
- /** @format int32 */
80
- chainTo: number;
81
64
  /** @format int64 */
82
- count: number;
83
- }
84
- /** Unknown */
85
- export interface Unknown {
86
- id: string;
65
+ lockTime?: number;
66
+ /** @format hex-string */
67
+ message?: string;
68
+ /** @format 32-byte-hash */
69
+ spent?: string;
70
+ fixedOutput: boolean;
87
71
  type: string;
88
72
  }
73
+ /** BadRequest */
74
+ export interface BadRequest {
75
+ detail: string;
76
+ }
89
77
  /** BlockEntry */
90
78
  export interface BlockEntry {
91
79
  /** @format block-hash */
92
- parent?: string;
80
+ hash: string;
81
+ /** @format int64 */
82
+ timestamp: number;
93
83
  /** @format group-index */
94
84
  chainFrom: number;
95
- /** @format 32-byte-hash */
96
- depStateHash: string;
85
+ /** @format group-index */
86
+ chainTo: number;
87
+ /** @format int32 */
88
+ height: number;
97
89
  deps?: string[];
98
90
  /** @format hex-string */
99
91
  nonce: string;
100
92
  version: number;
101
- /** @format hex-string */
102
- target: string;
103
- mainChain: boolean;
93
+ /** @format 32-byte-hash */
94
+ depStateHash: string;
104
95
  /** @format 32-byte-hash */
105
96
  txsHash: string;
106
- /** @format group-index */
107
- chainTo: number;
108
- ghostUncles?: GhostUncle[];
109
- /** @format bigint */
110
- hashRate: string;
111
97
  /** @format int32 */
112
98
  txNumber: number;
99
+ /** @format hex-string */
100
+ target: string;
101
+ /** @format bigint */
102
+ hashRate: string;
103
+ /** @format block-hash */
104
+ parent?: string;
105
+ mainChain: boolean;
106
+ ghostUncles?: GhostUncle[];
107
+ }
108
+ /** BlockEntryLite */
109
+ export interface BlockEntryLite {
113
110
  /** @format block-hash */
114
111
  hash: string;
115
- /** @format int32 */
116
- height: number;
117
112
  /** @format int64 */
118
113
  timestamp: number;
119
- }
120
- /** ContractParent */
121
- export interface ContractParent {
122
- /** @format address */
123
- parent?: string;
124
- }
125
- /** ServiceUnavailable */
126
- export interface ServiceUnavailable {
127
- detail: string;
128
- }
129
- /** ValI256 */
130
- export interface ValI256 {
131
- type: string;
114
+ /** @format group-index */
115
+ chainFrom: number;
116
+ /** @format group-index */
117
+ chainTo: number;
118
+ /** @format int32 */
119
+ height: number;
120
+ /** @format int32 */
121
+ txNumber: number;
122
+ mainChain: boolean;
132
123
  /** @format bigint */
133
- value: string;
124
+ hashRate: string;
134
125
  }
135
126
  /** ContractLiveness */
136
127
  export interface ContractLiveness {
137
128
  /** @format address */
138
129
  parent?: string;
139
- interfaceId?: StdInterfaceId;
140
- destruction?: ContractLivenessLocation;
141
130
  creation: ContractLivenessLocation;
131
+ destruction?: ContractLivenessLocation;
132
+ interfaceId?: StdInterfaceId;
142
133
  }
143
- /** AssetOutput */
144
- export interface AssetOutput {
145
- /** @format address */
146
- address: string;
134
+ /** ContractLivenessLocation */
135
+ export interface ContractLivenessLocation {
136
+ /** @format block-hash */
137
+ blockHash: string;
138
+ /** @format 32-byte-hash */
139
+ txHash: string;
147
140
  /** @format int64 */
148
- lockTime?: number;
141
+ timestamp: number;
142
+ }
143
+ /** ContractOutput */
144
+ export interface ContractOutput {
149
145
  /** @format int32 */
150
146
  hint: number;
151
147
  /** @format 32-byte-hash */
152
- spent?: string;
148
+ key: string;
153
149
  /** @format uint256 */
154
150
  attoAlphAmount: string;
151
+ /** @format address */
152
+ address: string;
155
153
  tokens?: Token[];
154
+ /** @format 32-byte-hash */
155
+ spent?: string;
156
156
  fixedOutput: boolean;
157
157
  type: string;
158
- /** @format hex-string */
159
- message?: string;
160
- /** @format 32-byte-hash */
161
- key: string;
162
158
  }
163
- /** NFT */
164
- export interface NFT {
165
- id: string;
166
- type: string;
159
+ /** ContractParent */
160
+ export interface ContractParent {
161
+ /** @format address */
162
+ parent?: string;
167
163
  }
168
- /** AcceptedTransaction */
169
- export interface AcceptedTransaction {
170
- outputs?: Output[];
164
+ /** Event */
165
+ export interface Event {
171
166
  /** @format block-hash */
172
167
  blockHash: string;
173
- scriptSignatures?: string[];
174
- inputs?: Input[];
175
- scriptExecutionOk: boolean;
176
- type: string;
177
- scriptOpt?: string;
178
- version: number;
179
- coinbase: boolean;
180
- inputSignatures?: string[];
181
- /** @format int32 */
182
- gasAmount: number;
183
- networkId: number;
184
168
  /** @format 32-byte-hash */
185
- hash: string;
186
- /** @format uint256 */
187
- gasPrice: string;
169
+ txHash: string;
170
+ /** @format address */
171
+ contractAddress: string;
172
+ /** @format address */
173
+ inputAddress?: string;
174
+ /** @format int32 */
175
+ eventIndex: number;
176
+ fields?: Val[];
177
+ }
178
+ /** ExplorerInfo */
179
+ export interface ExplorerInfo {
180
+ releaseVersion: string;
181
+ commit: string;
182
+ /** @format int32 */
183
+ migrationsVersion: number;
188
184
  /** @format int64 */
189
- timestamp: number;
185
+ lastFinalizedInputTime: number;
186
+ /** @format int64 */
187
+ lastHoldersUpdate: number;
190
188
  }
191
- /** HolderInfo */
192
- export interface HolderInfo {
193
- /** @format address */
194
- address: string;
195
- /** @format uint256 */
196
- balance: string;
189
+ /** FungibleToken */
190
+ export interface FungibleToken {
191
+ id: string;
192
+ type: string;
197
193
  }
198
- /** TokenSupply */
199
- export interface TokenSupply {
200
- /** @format uint256 */
201
- circulating: string;
202
- /** @format uint256 */
203
- total: string;
204
- /** @format uint256 */
205
- reserved: string;
206
- /** @format uint256 */
207
- maximum: string;
208
- /** @format uint256 */
209
- locked: string;
210
- /** @format int64 */
211
- timestamp: number;
212
- }
213
- /** PendingTransaction */
214
- export interface PendingTransaction {
215
- outputs?: Output[];
216
- /** @format group-index */
217
- chainFrom: number;
218
- /** @format int64 */
219
- lastSeen: number;
220
- /** @format group-index */
221
- chainTo: number;
222
- inputs?: Input[];
223
- /** @format int32 */
224
- gasAmount: number;
225
- type: string;
194
+ /** FungibleTokenMetadata */
195
+ export interface FungibleTokenMetadata {
226
196
  /** @format 32-byte-hash */
227
- hash: string;
228
- /** @format uint256 */
229
- gasPrice: string;
230
- }
231
- /** TransactionLike */
232
- export type TransactionLike = AcceptedTransaction | PendingTransaction;
233
- /** LogbackValue */
234
- export interface LogbackValue {
235
- level: string;
197
+ id: string;
198
+ symbol: string;
236
199
  name: string;
237
- }
238
- /** ValU256 */
239
- export interface ValU256 {
240
- type: string;
241
200
  /** @format uint256 */
242
- value: string;
201
+ decimals: string;
243
202
  }
244
- /** BlockEntryLite */
245
- export interface BlockEntryLite {
246
- mainChain: boolean;
247
- /** @format group-index */
248
- chainFrom: number;
249
- /** @format group-index */
250
- chainTo: number;
251
- /** @format bigint */
252
- hashRate: string;
253
- /** @format int32 */
254
- txNumber: number;
203
+ /** GhostUncle */
204
+ export interface GhostUncle {
255
205
  /** @format block-hash */
256
- hash: string;
257
- /** @format int32 */
258
- height: number;
259
- /** @format int64 */
260
- timestamp: number;
206
+ blockHash: string;
207
+ /** @format address */
208
+ miner: string;
261
209
  }
262
- /** PerChainHeight */
263
- export interface PerChainHeight {
264
- /** @format int32 */
265
- chainFrom: number;
266
- /** @format int32 */
267
- chainTo: number;
210
+ /** Hashrate */
211
+ export interface Hashrate {
268
212
  /** @format int64 */
213
+ timestamp: number;
214
+ hashrate: number;
269
215
  value: number;
270
- /** @format int64 */
271
- height: number;
272
216
  }
273
- /** ValByteVec */
274
- export interface ValByteVec {
275
- type: string;
276
- /** @format hex-string */
277
- value: string;
217
+ /** HolderInfo */
218
+ export interface HolderInfo {
219
+ /** @format address */
220
+ address: string;
221
+ /** @format uint256 */
222
+ balance: string;
278
223
  }
279
- /** TokenStdInterfaceId */
280
- export declare enum TokenStdInterfaceId {
281
- Fungible = "fungible",
282
- NonFungible = "non-fungible",
283
- NonStandard = "non-standard"
224
+ /** Input */
225
+ export interface Input {
226
+ outputRef: OutputRef;
227
+ /** @format hex-string */
228
+ unlockScript?: string;
229
+ /** @format 32-byte-hash */
230
+ txHashRef?: string;
231
+ /** @format address */
232
+ address?: string;
233
+ /** @format uint256 */
234
+ attoAlphAmount?: string;
235
+ tokens?: Token[];
236
+ contractInput: boolean;
284
237
  }
285
- /** ExplorerInfo */
286
- export interface ExplorerInfo {
287
- releaseVersion: string;
288
- commit: string;
289
- /** @format int64 */
290
- lastHoldersUpdate: number;
291
- /** @format int32 */
292
- migrationsVersion: number;
293
- /** @format int64 */
294
- lastFinalizedInputTime: number;
238
+ /** InternalServerError */
239
+ export interface InternalServerError {
240
+ detail: string;
295
241
  }
296
- /** ValArray */
297
- export interface ValArray {
298
- type: string;
299
- value: Val[];
242
+ /** IntervalType */
243
+ export declare enum IntervalType {
244
+ Daily = "daily",
245
+ Hourly = "hourly",
246
+ Weekly = "weekly"
300
247
  }
301
- /** BadRequest */
302
- export interface BadRequest {
303
- detail: string;
248
+ /** ListBlocks */
249
+ export interface ListBlocks {
250
+ /** @format int32 */
251
+ total: number;
252
+ blocks?: BlockEntryLite[];
304
253
  }
305
- /** Hashrate */
306
- export interface Hashrate {
307
- hashrate: number;
308
- value: number;
309
- /** @format int64 */
310
- timestamp: number;
254
+ /** LogbackValue */
255
+ export interface LogbackValue {
256
+ name: string;
257
+ level: string;
311
258
  }
312
- /** Transaction */
313
- export interface Transaction {
314
- outputs?: Output[];
315
- /** @format block-hash */
316
- blockHash: string;
317
- scriptSignatures?: string[];
259
+ /** MempoolTransaction */
260
+ export interface MempoolTransaction {
261
+ /** @format 32-byte-hash */
262
+ hash: string;
263
+ /** @format group-index */
264
+ chainFrom: number;
265
+ /** @format group-index */
266
+ chainTo: number;
318
267
  inputs?: Input[];
319
- scriptExecutionOk: boolean;
320
- scriptOpt?: string;
321
- version: number;
322
- coinbase: boolean;
323
- inputSignatures?: string[];
268
+ outputs?: Output[];
324
269
  /** @format int32 */
325
270
  gasAmount: number;
326
- networkId: number;
327
- /** @format 32-byte-hash */
328
- hash: string;
329
271
  /** @format uint256 */
330
272
  gasPrice: string;
331
273
  /** @format int64 */
332
- timestamp: number;
274
+ lastSeen: number;
333
275
  }
334
- /** FungibleToken */
335
- export interface FungibleToken {
276
+ /** NFT */
277
+ export interface NFT {
336
278
  id: string;
337
279
  type: string;
338
280
  }
339
- /** GhostUncle */
340
- export interface GhostUncle {
341
- /** @format block-hash */
342
- blockHash: string;
281
+ /** NFTCollection */
282
+ export interface NFTCollection {
283
+ type: string;
284
+ }
285
+ /** NFTCollectionMetadata */
286
+ export interface NFTCollectionMetadata {
343
287
  /** @format address */
344
- miner: string;
288
+ address: string;
289
+ collectionUri: string;
345
290
  }
346
291
  /** NFTCollectionWithRoyalty */
347
292
  export interface NFTCollectionWithRoyalty {
348
293
  type: string;
349
294
  }
350
- /** PerChainTimedCount */
351
- export interface PerChainTimedCount {
352
- totalCountPerChain?: PerChainCount[];
353
- /** @format int64 */
354
- timestamp: number;
295
+ /** NFTMetadata */
296
+ export interface NFTMetadata {
297
+ /** @format 32-byte-hash */
298
+ id: string;
299
+ tokenUri: string;
300
+ /** @format 32-byte-hash */
301
+ collectionId: string;
302
+ /** @format uint256 */
303
+ nftIndex: string;
355
304
  }
356
- /** MempoolTransaction */
357
- export interface MempoolTransaction {
358
- outputs?: Output[];
305
+ /** NonStandard */
306
+ export interface NonStandard {
307
+ type: string;
308
+ }
309
+ /** NotFound */
310
+ export interface NotFound {
311
+ detail: string;
312
+ resource: string;
313
+ }
314
+ /** Output */
315
+ export type Output = AssetOutput | ContractOutput;
316
+ /** OutputRef */
317
+ export interface OutputRef {
318
+ /** @format int32 */
319
+ hint: number;
320
+ /** @format 32-byte-hash */
321
+ key: string;
322
+ }
323
+ /** PendingTransaction */
324
+ export interface PendingTransaction {
325
+ /** @format 32-byte-hash */
326
+ hash: string;
359
327
  /** @format group-index */
360
328
  chainFrom: number;
361
- /** @format int64 */
362
- lastSeen: number;
363
329
  /** @format group-index */
364
330
  chainTo: number;
365
331
  inputs?: Input[];
332
+ outputs?: Output[];
366
333
  /** @format int32 */
367
334
  gasAmount: number;
368
- /** @format 32-byte-hash */
369
- hash: string;
370
335
  /** @format uint256 */
371
336
  gasPrice: string;
337
+ /** @format int64 */
338
+ lastSeen: number;
339
+ type: string;
372
340
  }
373
- export declare enum TokensWithPrice {
374
- WETH = "WETH",
375
- ALPH = "ALPH",
376
- USDT = "USDT",
377
- AYIN = "AYIN",
378
- DAI = "DAI",
379
- USDC = "USDC",
380
- WBTC = "WBTC"
341
+ /** PerChainCount */
342
+ export interface PerChainCount {
343
+ /** @format int32 */
344
+ chainFrom: number;
345
+ /** @format int32 */
346
+ chainTo: number;
347
+ /** @format int64 */
348
+ count: number;
381
349
  }
382
- export declare enum MaxSizeTokens {
383
- Value80 = 80
350
+ /** PerChainDuration */
351
+ export interface PerChainDuration {
352
+ /** @format int32 */
353
+ chainFrom: number;
354
+ /** @format int32 */
355
+ chainTo: number;
356
+ /** @format int64 */
357
+ duration: number;
358
+ /** @format int64 */
359
+ value: number;
384
360
  }
385
- /** NFTCollection */
386
- export interface NFTCollection {
387
- type: string;
361
+ /** PerChainHeight */
362
+ export interface PerChainHeight {
363
+ /** @format int32 */
364
+ chainFrom: number;
365
+ /** @format int32 */
366
+ chainTo: number;
367
+ /** @format int64 */
368
+ height: number;
369
+ /** @format int64 */
370
+ value: number;
388
371
  }
389
- export declare enum MaxSizeAddressesForTokens {
390
- Value80 = 80
372
+ /** PerChainTimedCount */
373
+ export interface PerChainTimedCount {
374
+ /** @format int64 */
375
+ timestamp: number;
376
+ totalCountPerChain?: PerChainCount[];
391
377
  }
392
- /** InternalServerError */
393
- export interface InternalServerError {
378
+ /** ServiceUnavailable */
379
+ export interface ServiceUnavailable {
394
380
  detail: string;
395
381
  }
396
- /** TimedPrices */
397
- export interface TimedPrices {
398
- timestamps?: number[];
399
- prices?: number[];
382
+ /** StdInterfaceId */
383
+ export type StdInterfaceId = FungibleToken | NFT | NFTCollection | NFTCollectionWithRoyalty | NonStandard | Unknown;
384
+ /** SubContracts */
385
+ export interface SubContracts {
386
+ subContracts?: string[];
400
387
  }
401
388
  /** TimedCount */
402
389
  export interface TimedCount {
403
- /** @format int64 */
404
- totalCountAllChains: number;
405
390
  /** @format int64 */
406
391
  timestamp: number;
392
+ /** @format int64 */
393
+ totalCountAllChains: number;
407
394
  }
408
- /** NFTMetadata */
409
- export interface NFTMetadata {
410
- /** @format uint256 */
411
- nftIndex: string;
412
- tokenUri: string;
395
+ /** TimedPrices */
396
+ export interface TimedPrices {
397
+ timestamps?: number[];
398
+ prices?: number[];
399
+ }
400
+ /** Token */
401
+ export interface Token {
413
402
  /** @format 32-byte-hash */
414
403
  id: string;
404
+ /** @format uint256 */
405
+ amount: string;
406
+ }
407
+ /** TokenInfo */
408
+ export interface TokenInfo {
415
409
  /** @format 32-byte-hash */
416
- collectionId: string;
410
+ token: string;
411
+ /** Raw interface id, e.g. 0001 */
412
+ stdInterfaceId?: TokenStdInterfaceId | string;
417
413
  }
418
- /** PerChainDuration */
419
- export interface PerChainDuration {
414
+ /** TokenStdInterfaceId */
415
+ export declare enum TokenStdInterfaceId {
416
+ Fungible = "fungible",
417
+ NonFungible = "non-fungible",
418
+ NonStandard = "non-standard"
419
+ }
420
+ /** TokenSupply */
421
+ export interface TokenSupply {
422
+ /** @format int64 */
423
+ timestamp: number;
424
+ /** @format uint256 */
425
+ total: string;
426
+ /** @format uint256 */
427
+ circulating: string;
428
+ /** @format uint256 */
429
+ reserved: string;
430
+ /** @format uint256 */
431
+ locked: string;
432
+ /** @format uint256 */
433
+ maximum: string;
434
+ }
435
+ /** Transaction */
436
+ export interface Transaction {
437
+ /** @format 32-byte-hash */
438
+ hash: string;
439
+ /** @format block-hash */
440
+ blockHash: string;
420
441
  /** @format int64 */
421
- duration: number;
422
- /** @format int32 */
423
- chainFrom: number;
442
+ timestamp: number;
443
+ inputs?: Input[];
444
+ outputs?: Output[];
445
+ version: number;
446
+ networkId: number;
447
+ scriptOpt?: string;
424
448
  /** @format int32 */
425
- chainTo: number;
426
- /** @format int64 */
427
- value: number;
449
+ gasAmount: number;
450
+ /** @format uint256 */
451
+ gasPrice: string;
452
+ scriptExecutionOk: boolean;
453
+ inputSignatures?: string[];
454
+ scriptSignatures?: string[];
455
+ coinbase: boolean;
428
456
  }
429
- /** StdInterfaceId */
430
- export type StdInterfaceId = FungibleToken | NFT | NFTCollection | NFTCollectionWithRoyalty | NonStandard | Unknown;
431
- /** Output */
432
- export type Output = AssetOutput | ContractOutput;
433
457
  /** TransactionInfo */
434
458
  export interface TransactionInfo {
435
- /** @format block-hash */
436
- blockHash: string;
437
- coinbase: boolean;
438
459
  /** @format 32-byte-hash */
439
460
  hash: string;
461
+ /** @format block-hash */
462
+ blockHash: string;
440
463
  /** @format int64 */
441
464
  timestamp: number;
465
+ coinbase: boolean;
442
466
  }
467
+ /** TransactionLike */
468
+ export type TransactionLike = AcceptedTransaction | PendingTransaction;
443
469
  /** Unauthorized */
444
470
  export interface Unauthorized {
445
471
  detail: string;
446
472
  }
447
- /** NFTCollectionMetadata */
448
- export interface NFTCollectionMetadata {
449
- collectionUri: string;
450
- /** @format address */
451
- address: string;
473
+ /** Unknown */
474
+ export interface Unknown {
475
+ id: string;
476
+ type: string;
452
477
  }
478
+ /** Val */
479
+ export type Val = ValAddress | ValArray | ValBool | ValByteVec | ValI256 | ValU256;
453
480
  /** ValAddress */
454
481
  export interface ValAddress {
455
- type: string;
456
482
  /** @format address */
457
483
  value: string;
484
+ type: string;
458
485
  }
459
- export declare enum PaginationPageDefault {
460
- Value1 = 1
486
+ /** ValArray */
487
+ export interface ValArray {
488
+ value: Val[];
489
+ type: string;
461
490
  }
462
491
  /** ValBool */
463
492
  export interface ValBool {
464
- type: string;
465
493
  value: boolean;
494
+ type: string;
495
+ }
496
+ /** ValByteVec */
497
+ export interface ValByteVec {
498
+ /** @format hex-string */
499
+ value: string;
500
+ type: string;
501
+ }
502
+ /** ValI256 */
503
+ export interface ValI256 {
504
+ /** @format bigint */
505
+ value: string;
506
+ type: string;
507
+ }
508
+ /** ValU256 */
509
+ export interface ValU256 {
510
+ /** @format uint256 */
511
+ value: string;
512
+ type: string;
513
+ }
514
+ export declare enum PaginationLimitDefault {
515
+ Value20 = 20,
516
+ Value10 = 10
466
517
  }
467
518
  export declare enum PaginationLimitMax {
468
519
  Value100 = 100,
469
520
  Value20 = 20
470
521
  }
471
- /** FungibleTokenMetadata */
472
- export interface FungibleTokenMetadata {
473
- symbol: string;
474
- /** @format uint256 */
475
- decimals: string;
476
- name: string;
477
- /** @format 32-byte-hash */
478
- id: string;
522
+ export declare enum PaginationPageDefault {
523
+ Value1 = 1
524
+ }
525
+ export declare enum MaxSizeTokens {
526
+ Value80 = 80
527
+ }
528
+ export declare enum MaxSizeAddressesForTokens {
529
+ Value80 = 80
479
530
  }
480
531
  export declare enum MaxSizeAddresses {
481
532
  Value80 = 80
@@ -494,66 +545,6 @@ export declare enum Currencies {
494
545
  Cad = "cad",
495
546
  Aud = "aud"
496
547
  }
497
- export declare enum PaginationLimitDefault {
498
- Value20 = 20,
499
- Value10 = 10
500
- }
501
- /** AddressInfo */
502
- export interface AddressInfo {
503
- /** @format uint256 */
504
- balance: string;
505
- /** @format uint256 */
506
- lockedBalance: string;
507
- /** @format int32 */
508
- txNumber: number;
509
- }
510
- /** AddressBalance */
511
- export interface AddressBalance {
512
- /** @format uint256 */
513
- balance: string;
514
- /** @format uint256 */
515
- lockedBalance: string;
516
- }
517
- /** AmountHistory */
518
- export interface AmountHistory {
519
- amountHistory?: string[][];
520
- }
521
- /** Event */
522
- export interface Event {
523
- /** @format block-hash */
524
- blockHash: string;
525
- /** @format address */
526
- inputAddress?: string;
527
- /** @format address */
528
- contractAddress: string;
529
- /** @format int32 */
530
- eventIndex: number;
531
- fields?: Val[];
532
- /** @format 32-byte-hash */
533
- txHash: string;
534
- }
535
- /** ListBlocks */
536
- export interface ListBlocks {
537
- /** @format int32 */
538
- total: number;
539
- blocks?: BlockEntryLite[];
540
- }
541
- /** SubContracts */
542
- export interface SubContracts {
543
- subContracts?: string[];
544
- }
545
- /** TokenInfo */
546
- export interface TokenInfo {
547
- /** Raw interface id, e.g. 0001 */
548
- stdInterfaceId?: TokenStdInterfaceId | string;
549
- /** @format 32-byte-hash */
550
- token: string;
551
- }
552
- /** NotFound */
553
- export interface NotFound {
554
- resource: string;
555
- detail: string;
556
- }
557
548
  import 'cross-fetch/polyfill';
558
549
  export type QueryParamsType = Record<string | number, any>;
559
550
  export type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
@@ -600,116 +591,33 @@ export declare class HttpClient<SecurityDataType = unknown> {
600
591
  private abortControllers;
601
592
  private customFetch;
602
593
  private baseApiParams;
603
- constructor(apiConfig?: ApiConfig<SecurityDataType>);
604
- setSecurityData: (data: SecurityDataType | null) => void;
605
- protected encodeQueryParam(key: string, value: any): string;
606
- protected addQueryParam(query: QueryParamsType, key: string): string;
607
- protected addArrayQueryParam(query: QueryParamsType, key: string): any;
608
- protected toQueryString(rawQuery?: QueryParamsType): string;
609
- protected addQueryParams(rawQuery?: QueryParamsType): string;
610
- private contentFormatters;
611
- protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams;
612
- protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
613
- abortRequest: (cancelToken: CancelToken) => void;
614
- request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
615
- }
616
- /**
617
- * @title Alephium Explorer API
618
- * @version 1.0
619
- */
620
- export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
621
- contracts: {
622
- /**
623
- * @description Get sub contract addresses
624
- *
625
- * @tags Contracts
626
- * @name GetContractsContractAddressSubContracts
627
- * @request GET:/contracts/{contract_address}/sub-contracts
628
- */
629
- getContractsContractAddressSubContracts: (contractAddress: string, query?: {
630
- /**
631
- * Page number
632
- * @format int32
633
- * @min 1
634
- */
635
- page?: number;
636
- /**
637
- * Number of items per page
638
- * @format int32
639
- * @min 0
640
- * @max 100
641
- */
642
- limit?: number;
643
- }, params?: RequestParams) => Promise<SubContracts>;
644
- /**
645
- * @description Get contract liveness
646
- *
647
- * @tags Contracts
648
- * @name GetContractsContractAddressCurrentLiveness
649
- * @request GET:/contracts/{contract_address}/current-liveness
650
- */
651
- getContractsContractAddressCurrentLiveness: (contractAddress: string, params?: RequestParams) => Promise<ContractLiveness>;
652
- /**
653
- * @description Get contract parent address if exist
654
- *
655
- * @tags Contracts
656
- * @name GetContractsContractAddressParent
657
- * @request GET:/contracts/{contract_address}/parent
658
- */
659
- getContractsContractAddressParent: (contractAddress: string, params?: RequestParams) => Promise<ContractParent>;
660
- };
661
- addresses: {
662
- /**
663
- * @description Are the addresses used (at least 1 transaction)
664
- *
665
- * @tags Addresses, Addresses
666
- * @name PostAddressesUsed
667
- * @request POST:/addresses/used
668
- */
669
- postAddressesUsed: (data?: string[], params?: RequestParams) => Promise<boolean[]>;
670
- /**
671
- * No description
672
- *
673
- * @tags Addresses
674
- * @name GetAddressesAddressExportTransactionsCsv
675
- * @request GET:/addresses/{address}/export-transactions/csv
676
- */
677
- getAddressesAddressExportTransactionsCsv: (address: string, query: {
678
- /**
679
- * @format int64
680
- * @min 0
681
- */
682
- fromTs: number;
683
- /**
684
- * @format int64
685
- * @min 0
686
- */
687
- toTs: number;
688
- }, params?: RequestParams) => Promise<string>;
689
- /**
690
- * @description Get address balance
691
- *
692
- * @tags Addresses
693
- * @name GetAddressesAddressBalance
694
- * @request GET:/addresses/{address}/balance
695
- */
696
- getAddressesAddressBalance: (address: string, params?: RequestParams) => Promise<AddressBalance>;
697
- /**
698
- * @description List mempool transactions of a given address
699
- *
700
- * @tags Addresses
701
- * @name GetAddressesAddressMempoolTransactions
702
- * @request GET:/addresses/{address}/mempool/transactions
703
- */
704
- getAddressesAddressMempoolTransactions: (address: string, params?: RequestParams) => Promise<MempoolTransaction[]>;
594
+ constructor(apiConfig?: ApiConfig<SecurityDataType>);
595
+ setSecurityData: (data: SecurityDataType | null) => void;
596
+ protected encodeQueryParam(key: string, value: any): string;
597
+ protected addQueryParam(query: QueryParamsType, key: string): string;
598
+ protected addArrayQueryParam(query: QueryParamsType, key: string): any;
599
+ protected toQueryString(rawQuery?: QueryParamsType): string;
600
+ protected addQueryParams(rawQuery?: QueryParamsType): string;
601
+ private contentFormatters;
602
+ protected mergeRequestParams(params1: RequestParams, params2?: RequestParams): RequestParams;
603
+ protected createAbortSignal: (cancelToken: CancelToken) => AbortSignal | undefined;
604
+ abortRequest: (cancelToken: CancelToken) => void;
605
+ request: <T = any, E = any>({ body, secure, path, type, query, format, baseUrl, cancelToken, ...params }: FullRequestParams) => Promise<HttpResponse<T, E>>;
606
+ }
607
+ /**
608
+ * @title Alephium Explorer API
609
+ * @version 1.0
610
+ */
611
+ export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
612
+ blocks: {
705
613
  /**
706
- * @description List address tokens
614
+ * @description List latest blocks
707
615
  *
708
- * @tags Addresses
709
- * @name GetAddressesAddressTokensTokenIdTransactions
710
- * @request GET:/addresses/{address}/tokens/{token_id}/transactions
616
+ * @tags Blocks
617
+ * @name GetBlocks
618
+ * @request GET:/blocks
711
619
  */
712
- getAddressesAddressTokensTokenIdTransactions: (address: string, tokenId: string, query?: {
620
+ getBlocks: (query?: {
713
621
  /**
714
622
  * Page number
715
623
  * @format int32
@@ -723,41 +631,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
723
631
  * @max 100
724
632
  */
725
633
  limit?: number;
726
- }, params?: RequestParams) => Promise<Transaction[]>;
727
- /**
728
- * @description Get latest transaction information of a given address
729
- *
730
- * @tags Addresses
731
- * @name GetAddressesAddressLatestTransaction
732
- * @request GET:/addresses/{address}/latest-transaction
733
- */
734
- getAddressesAddressLatestTransaction: (address: string, params?: RequestParams) => Promise<TransactionInfo>;
634
+ /** Reverse pagination */
635
+ reverse?: boolean;
636
+ }, params?: RequestParams) => Promise<ListBlocks>;
735
637
  /**
736
- * @description Get total transactions of a given address
638
+ * @description Get a block with hash
737
639
  *
738
- * @tags Addresses
739
- * @name GetAddressesAddressTotalTransactions
740
- * @request GET:/addresses/{address}/total-transactions
640
+ * @tags Blocks
641
+ * @name GetBlocksBlockHash
642
+ * @request GET:/blocks/{block_hash}
741
643
  */
742
- getAddressesAddressTotalTransactions: (address: string, params?: RequestParams) => Promise<number>;
644
+ getBlocksBlockHash: (blockHash: string, params?: RequestParams) => Promise<BlockEntry>;
743
645
  /**
744
- * @description List transactions of a given address within a time-range
646
+ * @description Get block's transactions
745
647
  *
746
- * @tags Addresses
747
- * @name GetAddressesAddressTimerangedTransactions
748
- * @request GET:/addresses/{address}/timeranged-transactions
648
+ * @tags Blocks
649
+ * @name GetBlocksBlockHashTransactions
650
+ * @request GET:/blocks/{block_hash}/transactions
749
651
  */
750
- getAddressesAddressTimerangedTransactions: (address: string, query: {
751
- /**
752
- * @format int64
753
- * @min 0
754
- */
755
- fromTs: number;
756
- /**
757
- * @format int64
758
- * @min 0
759
- */
760
- toTs: number;
652
+ getBlocksBlockHashTransactions: (blockHash: string, query?: {
761
653
  /**
762
654
  * Page number
763
655
  * @format int32
@@ -772,6 +664,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
772
664
  */
773
665
  limit?: number;
774
666
  }, params?: RequestParams) => Promise<Transaction[]>;
667
+ };
668
+ transactions: {
669
+ /**
670
+ * @description Get a transaction with hash
671
+ *
672
+ * @tags Transactions
673
+ * @name GetTransactionsTransactionHash
674
+ * @request GET:/transactions/{transaction_hash}
675
+ */
676
+ getTransactionsTransactionHash: (transactionHash: string, params?: RequestParams) => Promise<AcceptedTransaction | PendingTransaction>;
677
+ };
678
+ addresses: {
679
+ /**
680
+ * @description Get address information
681
+ *
682
+ * @tags Addresses
683
+ * @name GetAddressesAddress
684
+ * @request GET:/addresses/{address}
685
+ */
686
+ getAddressesAddress: (address: string, params?: RequestParams) => Promise<AddressInfo>;
775
687
  /**
776
688
  * @description List transactions of a given address
777
689
  *
@@ -794,26 +706,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
794
706
  */
795
707
  limit?: number;
796
708
  }, params?: RequestParams) => Promise<Transaction[]>;
797
- /**
798
- * No description
799
- *
800
- * @tags Addresses
801
- * @name GetAddressesAddressAmountHistory
802
- * @request GET:/addresses/{address}/amount-history
803
- */
804
- getAddressesAddressAmountHistory: (address: string, query: {
805
- /**
806
- * @format int64
807
- * @min 0
808
- */
809
- fromTs: number;
810
- /**
811
- * @format int64
812
- * @min 0
813
- */
814
- toTs: number;
815
- 'interval-type': IntervalType;
816
- }, params?: RequestParams) => Promise<AmountHistory>;
817
709
  /**
818
710
  * @description List transactions for given addresses
819
711
  *
@@ -849,14 +741,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
849
741
  limit?: number;
850
742
  }, data?: string[], params?: RequestParams) => Promise<Transaction[]>;
851
743
  /**
852
- * No description
744
+ * @description List transactions of a given address within a time-range
853
745
  *
854
746
  * @tags Addresses
855
- * @name GetAddressesAddressAmountHistoryDeprecated
856
- * @request GET:/addresses/{address}/amount-history-DEPRECATED
857
- * @deprecated
747
+ * @name GetAddressesAddressTimerangedTransactions
748
+ * @request GET:/addresses/{address}/timeranged-transactions
858
749
  */
859
- getAddressesAddressAmountHistoryDeprecated: (address: string, query: {
750
+ getAddressesAddressTimerangedTransactions: (address: string, query: {
860
751
  /**
861
752
  * @format int64
862
753
  * @min 0
@@ -867,8 +758,52 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
867
758
  * @min 0
868
759
  */
869
760
  toTs: number;
870
- 'interval-type': IntervalType;
871
- }, params?: RequestParams) => Promise<string>;
761
+ /**
762
+ * Page number
763
+ * @format int32
764
+ * @min 1
765
+ */
766
+ page?: number;
767
+ /**
768
+ * Number of items per page
769
+ * @format int32
770
+ * @min 0
771
+ * @max 100
772
+ */
773
+ limit?: number;
774
+ }, params?: RequestParams) => Promise<Transaction[]>;
775
+ /**
776
+ * @description Get total transactions of a given address
777
+ *
778
+ * @tags Addresses
779
+ * @name GetAddressesAddressTotalTransactions
780
+ * @request GET:/addresses/{address}/total-transactions
781
+ */
782
+ getAddressesAddressTotalTransactions: (address: string, params?: RequestParams) => Promise<number>;
783
+ /**
784
+ * @description Get latest transaction information of a given address
785
+ *
786
+ * @tags Addresses
787
+ * @name GetAddressesAddressLatestTransaction
788
+ * @request GET:/addresses/{address}/latest-transaction
789
+ */
790
+ getAddressesAddressLatestTransaction: (address: string, params?: RequestParams) => Promise<TransactionInfo>;
791
+ /**
792
+ * @description List mempool transactions of a given address
793
+ *
794
+ * @tags Addresses
795
+ * @name GetAddressesAddressMempoolTransactions
796
+ * @request GET:/addresses/{address}/mempool/transactions
797
+ */
798
+ getAddressesAddressMempoolTransactions: (address: string, params?: RequestParams) => Promise<MempoolTransaction[]>;
799
+ /**
800
+ * @description Get address balance
801
+ *
802
+ * @tags Addresses
803
+ * @name GetAddressesAddressBalance
804
+ * @request GET:/addresses/{address}/balance
805
+ */
806
+ getAddressesAddressBalance: (address: string, params?: RequestParams) => Promise<AddressBalance>;
872
807
  /**
873
808
  * @description List address tokens
874
809
  *
@@ -892,6 +827,44 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
892
827
  */
893
828
  limit?: number;
894
829
  }, params?: RequestParams) => Promise<string[]>;
830
+ /**
831
+ * @description List address tokens
832
+ *
833
+ * @tags Addresses
834
+ * @name GetAddressesAddressTokensTokenIdTransactions
835
+ * @request GET:/addresses/{address}/tokens/{token_id}/transactions
836
+ */
837
+ getAddressesAddressTokensTokenIdTransactions: (address: string, tokenId: string, query?: {
838
+ /**
839
+ * Page number
840
+ * @format int32
841
+ * @min 1
842
+ */
843
+ page?: number;
844
+ /**
845
+ * Number of items per page
846
+ * @format int32
847
+ * @min 0
848
+ * @max 100
849
+ */
850
+ limit?: number;
851
+ }, params?: RequestParams) => Promise<Transaction[]>;
852
+ /**
853
+ * @description Get address balance of given token
854
+ *
855
+ * @tags Addresses
856
+ * @name GetAddressesAddressTokensTokenIdBalance
857
+ * @request GET:/addresses/{address}/tokens/{token_id}/balance
858
+ */
859
+ getAddressesAddressTokensTokenIdBalance: (address: string, tokenId: string, params?: RequestParams) => Promise<AddressTokenBalance>;
860
+ /**
861
+ * @description Get public key of p2pkh addresses, the address needs to have at least one input.
862
+ *
863
+ * @tags Addresses
864
+ * @name GetAddressesAddressPublicKey
865
+ * @request GET:/addresses/{address}/public-key
866
+ */
867
+ getAddressesAddressPublicKey: (address: string, params?: RequestParams) => Promise<string>;
895
868
  /**
896
869
  * @description Get address tokens with balance
897
870
  *
@@ -915,31 +888,91 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
915
888
  limit?: number;
916
889
  }, params?: RequestParams) => Promise<AddressTokenBalance[]>;
917
890
  /**
918
- * @description Get address balance of given token
891
+ * @description Are the addresses used (at least 1 transaction)
892
+ *
893
+ * @tags Addresses, Addresses
894
+ * @name PostAddressesUsed
895
+ * @request POST:/addresses/used
896
+ */
897
+ postAddressesUsed: (data?: string[], params?: RequestParams) => Promise<boolean[]>;
898
+ /**
899
+ * No description
900
+ *
901
+ * @tags Addresses
902
+ * @name GetAddressesAddressExportTransactionsCsv
903
+ * @request GET:/addresses/{address}/export-transactions/csv
904
+ */
905
+ getAddressesAddressExportTransactionsCsv: (address: string, query: {
906
+ /**
907
+ * @format int64
908
+ * @min 0
909
+ */
910
+ fromTs: number;
911
+ /**
912
+ * @format int64
913
+ * @min 0
914
+ */
915
+ toTs: number;
916
+ }, params?: RequestParams) => Promise<string>;
917
+ /**
918
+ * No description
919
+ *
920
+ * @tags Addresses
921
+ * @name GetAddressesAddressAmountHistoryDeprecated
922
+ * @request GET:/addresses/{address}/amount-history-DEPRECATED
923
+ * @deprecated
924
+ */
925
+ getAddressesAddressAmountHistoryDeprecated: (address: string, query: {
926
+ /**
927
+ * @format int64
928
+ * @min 0
929
+ */
930
+ fromTs: number;
931
+ /**
932
+ * @format int64
933
+ * @min 0
934
+ */
935
+ toTs: number;
936
+ 'interval-type': IntervalType;
937
+ }, params?: RequestParams) => Promise<string>;
938
+ /**
939
+ * No description
919
940
  *
920
941
  * @tags Addresses
921
- * @name GetAddressesAddressTokensTokenIdBalance
922
- * @request GET:/addresses/{address}/tokens/{token_id}/balance
942
+ * @name GetAddressesAddressAmountHistory
943
+ * @request GET:/addresses/{address}/amount-history
923
944
  */
924
- getAddressesAddressTokensTokenIdBalance: (address: string, tokenId: string, params?: RequestParams) => Promise<AddressTokenBalance>;
945
+ getAddressesAddressAmountHistory: (address: string, query: {
946
+ /**
947
+ * @format int64
948
+ * @min 0
949
+ */
950
+ fromTs: number;
951
+ /**
952
+ * @format int64
953
+ * @min 0
954
+ */
955
+ toTs: number;
956
+ 'interval-type': IntervalType;
957
+ }, params?: RequestParams) => Promise<AmountHistory>;
958
+ };
959
+ infos: {
925
960
  /**
926
- * @description Get address information
961
+ * @description Get explorer informations
927
962
  *
928
- * @tags Addresses
929
- * @name GetAddressesAddress
930
- * @request GET:/addresses/{address}
963
+ * @tags Infos
964
+ * @name GetInfos
965
+ * @request GET:/infos
931
966
  */
932
- getAddressesAddress: (address: string, params?: RequestParams) => Promise<AddressInfo>;
967
+ getInfos: (params?: RequestParams) => Promise<ExplorerInfo>;
933
968
  /**
934
- * @description Get public key of p2pkh addresses, the address needs to have at least one input.
969
+ * @description List latest height for each chain
935
970
  *
936
- * @tags Addresses
937
- * @name GetAddressesAddressPublicKey
938
- * @request GET:/addresses/{address}/public-key
971
+ * @tags Infos
972
+ * @name GetInfosHeights
973
+ * @request GET:/infos/heights
939
974
  */
940
- getAddressesAddressPublicKey: (address: string, params?: RequestParams) => Promise<string>;
941
- };
942
- infos: {
975
+ getInfosHeights: (params?: RequestParams) => Promise<PerChainHeight[]>;
943
976
  /**
944
977
  * @description Get token supply list
945
978
  *
@@ -962,30 +995,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
962
995
  */
963
996
  limit?: number;
964
997
  }, params?: RequestParams) => Promise<TokenSupply[]>;
965
- /**
966
- * @description Get the ALPH locked supply
967
- *
968
- * @tags Infos
969
- * @name GetInfosSupplyLockedAlph
970
- * @request GET:/infos/supply/locked-alph
971
- */
972
- getInfosSupplyLockedAlph: (params?: RequestParams) => Promise<number>;
973
- /**
974
- * @description Get explorer informations
975
- *
976
- * @tags Infos
977
- * @name GetInfos
978
- * @request GET:/infos
979
- */
980
- getInfos: (params?: RequestParams) => Promise<ExplorerInfo>;
981
- /**
982
- * @description Get the ALPH circulating supply
983
- *
984
- * @tags Infos
985
- * @name GetInfosSupplyCirculatingAlph
986
- * @request GET:/infos/supply/circulating-alph
987
- */
988
- getInfosSupplyCirculatingAlph: (params?: RequestParams) => Promise<number>;
989
998
  /**
990
999
  * @description Get the ALPH total supply
991
1000
  *
@@ -995,13 +1004,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
995
1004
  */
996
1005
  getInfosSupplyTotalAlph: (params?: RequestParams) => Promise<number>;
997
1006
  /**
998
- * @description Get the total number of transactions
1007
+ * @description Get the ALPH circulating supply
999
1008
  *
1000
1009
  * @tags Infos
1001
- * @name GetInfosTotalTransactions
1002
- * @request GET:/infos/total-transactions
1010
+ * @name GetInfosSupplyCirculatingAlph
1011
+ * @request GET:/infos/supply/circulating-alph
1003
1012
  */
1004
- getInfosTotalTransactions: (params?: RequestParams) => Promise<number>;
1013
+ getInfosSupplyCirculatingAlph: (params?: RequestParams) => Promise<number>;
1005
1014
  /**
1006
1015
  * @description Get the ALPH reserved supply
1007
1016
  *
@@ -1011,13 +1020,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1011
1020
  */
1012
1021
  getInfosSupplyReservedAlph: (params?: RequestParams) => Promise<number>;
1013
1022
  /**
1014
- * @description List latest height for each chain
1023
+ * @description Get the ALPH locked supply
1015
1024
  *
1016
1025
  * @tags Infos
1017
- * @name GetInfosHeights
1018
- * @request GET:/infos/heights
1026
+ * @name GetInfosSupplyLockedAlph
1027
+ * @request GET:/infos/supply/locked-alph
1019
1028
  */
1020
- getInfosHeights: (params?: RequestParams) => Promise<PerChainHeight[]>;
1029
+ getInfosSupplyLockedAlph: (params?: RequestParams) => Promise<number>;
1030
+ /**
1031
+ * @description Get the total number of transactions
1032
+ *
1033
+ * @tags Infos
1034
+ * @name GetInfosTotalTransactions
1035
+ * @request GET:/infos/total-transactions
1036
+ */
1037
+ getInfosTotalTransactions: (params?: RequestParams) => Promise<number>;
1021
1038
  /**
1022
1039
  * @description Get the average block time for each chain
1023
1040
  *
@@ -1027,106 +1044,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1027
1044
  */
1028
1045
  getInfosAverageBlockTimes: (params?: RequestParams) => Promise<PerChainDuration[]>;
1029
1046
  };
1030
- utils: {
1031
- /**
1032
- * @description Perform a sanity check
1033
- *
1034
- * @tags Utils
1035
- * @name PutUtilsSanityCheck
1036
- * @request PUT:/utils/sanity-check
1037
- */
1038
- putUtilsSanityCheck: (params?: RequestParams) => Promise<void>;
1039
- /**
1040
- * @description Update global log level, accepted: TRACE, DEBUG, INFO, WARN, ERROR
1041
- *
1042
- * @tags Utils
1043
- * @name PutUtilsUpdateGlobalLoglevel
1044
- * @request PUT:/utils/update-global-loglevel
1045
- */
1046
- putUtilsUpdateGlobalLoglevel: (data: 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR', params?: RequestParams) => Promise<void>;
1047
- /**
1048
- * @description Update logback values
1049
- *
1050
- * @tags Utils
1051
- * @name PutUtilsUpdateLogConfig
1052
- * @request PUT:/utils/update-log-config
1053
- */
1054
- putUtilsUpdateLogConfig: (data?: LogbackValue[], params?: RequestParams) => Promise<void>;
1055
- };
1056
- tokens: {
1057
- /**
1058
- * @description Return metadata for the given fungible tokens, if metadata doesn't exist or token isn't a fungible, it won't be in the output list
1059
- *
1060
- * @tags Tokens
1061
- * @name PostTokensFungibleMetadata
1062
- * @request POST:/tokens/fungible-metadata
1063
- */
1064
- postTokensFungibleMetadata: (data?: string[], params?: RequestParams) => Promise<FungibleTokenMetadata[]>;
1065
- /**
1066
- * @description List given tokens information
1067
- *
1068
- * @tags Tokens
1069
- * @name PostTokens
1070
- * @request POST:/tokens
1071
- */
1072
- postTokens: (data?: string[], params?: RequestParams) => Promise<TokenInfo[]>;
1073
- /**
1074
- * @description List token information
1075
- *
1076
- * @tags Tokens
1077
- * @name GetTokens
1078
- * @request GET:/tokens
1079
- */
1080
- getTokens: (query?: {
1081
- /**
1082
- * Page number
1083
- * @format int32
1084
- * @min 1
1085
- */
1086
- page?: number;
1087
- /**
1088
- * Number of items per page
1089
- * @format int32
1090
- * @min 0
1091
- * @max 100
1092
- */
1093
- limit?: number;
1094
- /**
1095
- * fungible, non-fungible, non-standard or any interface id in hex-string format, e.g: 0001
1096
- * @format string
1097
- */
1098
- 'interface-id'?: TokenStdInterfaceId | string;
1099
- }, params?: RequestParams) => Promise<TokenInfo[]>;
1100
- /**
1101
- * @description Get a sorted list of top addresses by {token_id} balance. Updates once per day.
1102
- *
1103
- * @tags Tokens
1104
- * @name GetTokensHoldersTokenTokenId
1105
- * @request GET:/tokens/holders/token/{token_id}
1106
- */
1107
- getTokensHoldersTokenTokenId: (tokenId: string, query?: {
1108
- /**
1109
- * Page number
1110
- * @format int32
1111
- * @min 1
1112
- */
1113
- page?: number;
1114
- /**
1115
- * Number of items per page
1116
- * @format int32
1117
- * @min 0
1118
- * @max 100
1119
- */
1120
- limit?: number;
1121
- }, params?: RequestParams) => Promise<HolderInfo[]>;
1047
+ mempool: {
1122
1048
  /**
1123
- * @description List token transactions
1049
+ * @description list mempool transactions
1124
1050
  *
1125
- * @tags Tokens
1126
- * @name GetTokensTokenIdTransactions
1127
- * @request GET:/tokens/{token_id}/transactions
1051
+ * @tags Mempool
1052
+ * @name GetMempoolTransactions
1053
+ * @request GET:/mempool/transactions
1128
1054
  */
1129
- getTokensTokenIdTransactions: (tokenId: string, query?: {
1055
+ getMempoolTransactions: (query?: {
1130
1056
  /**
1131
1057
  * Page number
1132
1058
  * @format int32
@@ -1140,23 +1066,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1140
1066
  * @max 100
1141
1067
  */
1142
1068
  limit?: number;
1143
- }, params?: RequestParams) => Promise<Transaction[]>;
1144
- /**
1145
- * @description Return metadata for the given nft collection addresses, if metadata doesn't exist or address isn't a nft collection, it won't be in the output list
1146
- *
1147
- * @tags Tokens
1148
- * @name PostTokensNftCollectionMetadata
1149
- * @request POST:/tokens/nft-collection-metadata
1150
- */
1151
- postTokensNftCollectionMetadata: (data?: string[], params?: RequestParams) => Promise<NFTCollectionMetadata[]>;
1069
+ }, params?: RequestParams) => Promise<MempoolTransaction[]>;
1070
+ };
1071
+ tokens: {
1152
1072
  /**
1153
- * @description List token addresses
1073
+ * @description List token information
1154
1074
  *
1155
1075
  * @tags Tokens
1156
- * @name GetTokensTokenIdAddresses
1157
- * @request GET:/tokens/{token_id}/addresses
1076
+ * @name GetTokens
1077
+ * @request GET:/tokens
1158
1078
  */
1159
- getTokensTokenIdAddresses: (tokenId: string, query?: {
1079
+ getTokens: (query?: {
1160
1080
  /**
1161
1081
  * Page number
1162
1082
  * @format int32
@@ -1170,69 +1090,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1170
1090
  * @max 100
1171
1091
  */
1172
1092
  limit?: number;
1173
- }, params?: RequestParams) => Promise<string[]>;
1174
- /**
1175
- * @description Get a sorted list of top addresses by ALPH balance. Updates once per day.
1176
- *
1177
- * @tags Tokens
1178
- * @name GetTokensHoldersAlph
1179
- * @request GET:/tokens/holders/alph
1180
- */
1181
- getTokensHoldersAlph: (query?: {
1182
- /**
1183
- * Page number
1184
- * @format int32
1185
- * @min 1
1186
- */
1187
- page?: number;
1188
1093
  /**
1189
- * Number of items per page
1190
- * @format int32
1191
- * @min 0
1192
- * @max 100
1094
+ * fungible, non-fungible, non-standard or any interface id in hex-string format, e.g: 0001
1095
+ * @format string
1193
1096
  */
1194
- limit?: number;
1195
- }, params?: RequestParams) => Promise<HolderInfo[]>;
1196
- /**
1197
- * @description Return metadata for the given nft tokens, if metadata doesn't exist or token isn't a nft, it won't be in the output list
1198
- *
1199
- * @tags Tokens
1200
- * @name PostTokensNftMetadata
1201
- * @request POST:/tokens/nft-metadata
1202
- */
1203
- postTokensNftMetadata: (data?: string[], params?: RequestParams) => Promise<NFTMetadata[]>;
1204
- };
1205
- market: {
1206
- /**
1207
- * No description
1208
- *
1209
- * @tags Market
1210
- * @name PostMarketPrices
1211
- * @request POST:/market/prices
1212
- */
1213
- postMarketPrices: (query: {
1214
- currency: string;
1215
- }, data?: string[], params?: RequestParams) => Promise<number[]>;
1097
+ 'interface-id'?: TokenStdInterfaceId | string;
1098
+ }, params?: RequestParams) => Promise<TokenInfo[]>;
1216
1099
  /**
1217
- * No description
1100
+ * @description List given tokens information
1218
1101
  *
1219
- * @tags Market
1220
- * @name GetMarketPricesSymbolCharts
1221
- * @request GET:/market/prices/{symbol}/charts
1102
+ * @tags Tokens
1103
+ * @name PostTokens
1104
+ * @request POST:/tokens
1222
1105
  */
1223
- getMarketPricesSymbolCharts: (symbol: string, query: {
1224
- currency: string;
1225
- }, params?: RequestParams) => Promise<TimedPrices>;
1226
- };
1227
- blocks: {
1106
+ postTokens: (data?: string[], params?: RequestParams) => Promise<TokenInfo[]>;
1228
1107
  /**
1229
- * @description Get block's transactions
1108
+ * @description List token transactions
1230
1109
  *
1231
- * @tags Blocks
1232
- * @name GetBlocksBlockHashTransactions
1233
- * @request GET:/blocks/{block_hash}/transactions
1110
+ * @tags Tokens
1111
+ * @name GetTokensTokenIdTransactions
1112
+ * @request GET:/tokens/{token_id}/transactions
1234
1113
  */
1235
- getBlocksBlockHashTransactions: (blockHash: string, query?: {
1114
+ getTokensTokenIdTransactions: (tokenId: string, query?: {
1236
1115
  /**
1237
1116
  * Page number
1238
1117
  * @format int32
@@ -1248,21 +1127,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1248
1127
  limit?: number;
1249
1128
  }, params?: RequestParams) => Promise<Transaction[]>;
1250
1129
  /**
1251
- * @description Get a block with hash
1252
- *
1253
- * @tags Blocks
1254
- * @name GetBlocksBlockHash
1255
- * @request GET:/blocks/{block_hash}
1256
- */
1257
- getBlocksBlockHash: (blockHash: string, params?: RequestParams) => Promise<BlockEntry>;
1258
- /**
1259
- * @description List latest blocks
1130
+ * @description List token addresses
1260
1131
  *
1261
- * @tags Blocks
1262
- * @name GetBlocks
1263
- * @request GET:/blocks
1132
+ * @tags Tokens
1133
+ * @name GetTokensTokenIdAddresses
1134
+ * @request GET:/tokens/{token_id}/addresses
1264
1135
  */
1265
- getBlocks: (query?: {
1136
+ getTokensTokenIdAddresses: (tokenId: string, query?: {
1266
1137
  /**
1267
1138
  * Page number
1268
1139
  * @format int32
@@ -1276,37 +1147,39 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1276
1147
  * @max 100
1277
1148
  */
1278
1149
  limit?: number;
1279
- /** Reverse pagination */
1280
- reverse?: boolean;
1281
- }, params?: RequestParams) => Promise<ListBlocks>;
1282
- };
1283
- transactions: {
1150
+ }, params?: RequestParams) => Promise<string[]>;
1284
1151
  /**
1285
- * @description Get a transaction with hash
1152
+ * @description Return metadata for the given fungible tokens, if metadata doesn't exist or token isn't a fungible, it won't be in the output list
1286
1153
  *
1287
- * @tags Transactions
1288
- * @name GetTransactionsTransactionHash
1289
- * @request GET:/transactions/{transaction_hash}
1154
+ * @tags Tokens
1155
+ * @name PostTokensFungibleMetadata
1156
+ * @request POST:/tokens/fungible-metadata
1290
1157
  */
1291
- getTransactionsTransactionHash: (transactionHash: string, params?: RequestParams) => Promise<AcceptedTransaction | PendingTransaction>;
1292
- };
1293
- contractEvents: {
1158
+ postTokensFungibleMetadata: (data?: string[], params?: RequestParams) => Promise<FungibleTokenMetadata[]>;
1294
1159
  /**
1295
- * @description Get contract events by transaction id
1160
+ * @description Return metadata for the given nft tokens, if metadata doesn't exist or token isn't a nft, it won't be in the output list
1296
1161
  *
1297
- * @tags Contract events
1298
- * @name GetContractEventsTransactionIdTransactionId
1299
- * @request GET:/contract-events/transaction-id/{transaction_id}
1162
+ * @tags Tokens
1163
+ * @name PostTokensNftMetadata
1164
+ * @request POST:/tokens/nft-metadata
1300
1165
  */
1301
- getContractEventsTransactionIdTransactionId: (transactionId: string, params?: RequestParams) => Promise<Event[]>;
1166
+ postTokensNftMetadata: (data?: string[], params?: RequestParams) => Promise<NFTMetadata[]>;
1302
1167
  /**
1303
- * @description Get contract events by contract address
1168
+ * @description Return metadata for the given nft collection addresses, if metadata doesn't exist or address isn't a nft collection, it won't be in the output list
1304
1169
  *
1305
- * @tags Contract events
1306
- * @name GetContractEventsContractAddressContractAddress
1307
- * @request GET:/contract-events/contract-address/{contract_address}
1170
+ * @tags Tokens
1171
+ * @name PostTokensNftCollectionMetadata
1172
+ * @request POST:/tokens/nft-collection-metadata
1308
1173
  */
1309
- getContractEventsContractAddressContractAddress: (contractAddress: string, query?: {
1174
+ postTokensNftCollectionMetadata: (data?: string[], params?: RequestParams) => Promise<NFTCollectionMetadata[]>;
1175
+ /**
1176
+ * @description Get a sorted list of top addresses by ALPH balance. Updates once per day.
1177
+ *
1178
+ * @tags Tokens
1179
+ * @name GetTokensHoldersAlph
1180
+ * @request GET:/tokens/holders/alph
1181
+ */
1182
+ getTokensHoldersAlph: (query?: {
1310
1183
  /**
1311
1184
  * Page number
1312
1185
  * @format int32
@@ -1320,15 +1193,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1320
1193
  * @max 100
1321
1194
  */
1322
1195
  limit?: number;
1323
- }, params?: RequestParams) => Promise<Event[]>;
1196
+ }, params?: RequestParams) => Promise<HolderInfo[]>;
1324
1197
  /**
1325
- * @description Get contract events by contract and input addresses
1198
+ * @description Get a sorted list of top addresses by {token_id} balance. Updates once per day.
1326
1199
  *
1327
- * @tags Contract events
1328
- * @name GetContractEventsContractAddressContractAddressInputAddressInputAddress
1329
- * @request GET:/contract-events/contract-address/{contract_address}/input-address/{input_address}
1200
+ * @tags Tokens
1201
+ * @name GetTokensHoldersTokenTokenId
1202
+ * @request GET:/tokens/holders/token/{token_id}
1330
1203
  */
1331
- getContractEventsContractAddressContractAddressInputAddressInputAddress: (contractAddress: string, inputAddress: string, query?: {
1204
+ getTokensHoldersTokenTokenId: (tokenId: string, query?: {
1332
1205
  /**
1333
1206
  * Page number
1334
1207
  * @format int32
@@ -1342,18 +1215,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1342
1215
  * @max 100
1343
1216
  */
1344
1217
  limit?: number;
1345
- }, params?: RequestParams) => Promise<Event[]>;
1218
+ }, params?: RequestParams) => Promise<HolderInfo[]>;
1346
1219
  };
1347
1220
  charts: {
1348
1221
  /**
1349
1222
  * @description `interval-type` query param: hourly, daily
1350
1223
  *
1351
1224
  * @tags Charts
1352
- * @name GetChartsTransactionsCountPerChain
1353
- * @summary Get transaction count history per chain
1354
- * @request GET:/charts/transactions-count-per-chain
1225
+ * @name GetChartsHashrates
1226
+ * @summary Get hashrate chart in H/s
1227
+ * @request GET:/charts/hashrates
1355
1228
  */
1356
- getChartsTransactionsCountPerChain: (query: {
1229
+ getChartsHashrates: (query: {
1357
1230
  /**
1358
1231
  * @format int64
1359
1232
  * @min 0
@@ -1365,7 +1238,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1365
1238
  */
1366
1239
  toTs: number;
1367
1240
  'interval-type': IntervalType;
1368
- }, params?: RequestParams) => Promise<PerChainTimedCount[]>;
1241
+ }, params?: RequestParams) => Promise<Hashrate[]>;
1369
1242
  /**
1370
1243
  * @description `interval-type` query param: hourly, daily
1371
1244
  *
@@ -1391,11 +1264,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1391
1264
  * @description `interval-type` query param: hourly, daily
1392
1265
  *
1393
1266
  * @tags Charts
1394
- * @name GetChartsHashrates
1395
- * @summary Get hashrate chart in H/s
1396
- * @request GET:/charts/hashrates
1267
+ * @name GetChartsTransactionsCountPerChain
1268
+ * @summary Get transaction count history per chain
1269
+ * @request GET:/charts/transactions-count-per-chain
1397
1270
  */
1398
- getChartsHashrates: (query: {
1271
+ getChartsTransactionsCountPerChain: (query: {
1399
1272
  /**
1400
1273
  * @format int64
1401
1274
  * @min 0
@@ -1407,17 +1280,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1407
1280
  */
1408
1281
  toTs: number;
1409
1282
  'interval-type': IntervalType;
1410
- }, params?: RequestParams) => Promise<Hashrate[]>;
1283
+ }, params?: RequestParams) => Promise<PerChainTimedCount[]>;
1411
1284
  };
1412
- mempool: {
1285
+ contractEvents: {
1413
1286
  /**
1414
- * @description list mempool transactions
1287
+ * @description Get contract events by transaction id
1415
1288
  *
1416
- * @tags Mempool
1417
- * @name GetMempoolTransactions
1418
- * @request GET:/mempool/transactions
1289
+ * @tags Contract events
1290
+ * @name GetContractEventsTransactionIdTransactionId
1291
+ * @request GET:/contract-events/transaction-id/{transaction_id}
1419
1292
  */
1420
- getMempoolTransactions: (query?: {
1293
+ getContractEventsTransactionIdTransactionId: (transactionId: string, params?: RequestParams) => Promise<Event[]>;
1294
+ /**
1295
+ * @description Get contract events by contract address
1296
+ *
1297
+ * @tags Contract events
1298
+ * @name GetContractEventsContractAddressContractAddress
1299
+ * @request GET:/contract-events/contract-address/{contract_address}
1300
+ */
1301
+ getContractEventsContractAddressContractAddress: (contractAddress: string, query?: {
1421
1302
  /**
1422
1303
  * Page number
1423
1304
  * @format int32
@@ -1431,7 +1312,117 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
1431
1312
  * @max 100
1432
1313
  */
1433
1314
  limit?: number;
1434
- }, params?: RequestParams) => Promise<MempoolTransaction[]>;
1315
+ }, params?: RequestParams) => Promise<Event[]>;
1316
+ /**
1317
+ * @description Get contract events by contract and input addresses
1318
+ *
1319
+ * @tags Contract events
1320
+ * @name GetContractEventsContractAddressContractAddressInputAddressInputAddress
1321
+ * @request GET:/contract-events/contract-address/{contract_address}/input-address/{input_address}
1322
+ */
1323
+ getContractEventsContractAddressContractAddressInputAddressInputAddress: (contractAddress: string, inputAddress: string, query?: {
1324
+ /**
1325
+ * Page number
1326
+ * @format int32
1327
+ * @min 1
1328
+ */
1329
+ page?: number;
1330
+ /**
1331
+ * Number of items per page
1332
+ * @format int32
1333
+ * @min 0
1334
+ * @max 100
1335
+ */
1336
+ limit?: number;
1337
+ }, params?: RequestParams) => Promise<Event[]>;
1338
+ };
1339
+ contracts: {
1340
+ /**
1341
+ * @description Get contract liveness
1342
+ *
1343
+ * @tags Contracts
1344
+ * @name GetContractsContractAddressCurrentLiveness
1345
+ * @request GET:/contracts/{contract_address}/current-liveness
1346
+ */
1347
+ getContractsContractAddressCurrentLiveness: (contractAddress: string, params?: RequestParams) => Promise<ContractLiveness>;
1348
+ /**
1349
+ * @description Get contract parent address if exist
1350
+ *
1351
+ * @tags Contracts
1352
+ * @name GetContractsContractAddressParent
1353
+ * @request GET:/contracts/{contract_address}/parent
1354
+ */
1355
+ getContractsContractAddressParent: (contractAddress: string, params?: RequestParams) => Promise<ContractParent>;
1356
+ /**
1357
+ * @description Get sub contract addresses
1358
+ *
1359
+ * @tags Contracts
1360
+ * @name GetContractsContractAddressSubContracts
1361
+ * @request GET:/contracts/{contract_address}/sub-contracts
1362
+ */
1363
+ getContractsContractAddressSubContracts: (contractAddress: string, query?: {
1364
+ /**
1365
+ * Page number
1366
+ * @format int32
1367
+ * @min 1
1368
+ */
1369
+ page?: number;
1370
+ /**
1371
+ * Number of items per page
1372
+ * @format int32
1373
+ * @min 0
1374
+ * @max 100
1375
+ */
1376
+ limit?: number;
1377
+ }, params?: RequestParams) => Promise<SubContracts>;
1378
+ };
1379
+ market: {
1380
+ /**
1381
+ * No description
1382
+ *
1383
+ * @tags Market
1384
+ * @name PostMarketPrices
1385
+ * @request POST:/market/prices
1386
+ */
1387
+ postMarketPrices: (query: {
1388
+ currency: string;
1389
+ }, data?: string[], params?: RequestParams) => Promise<number[]>;
1390
+ /**
1391
+ * No description
1392
+ *
1393
+ * @tags Market
1394
+ * @name GetMarketPricesSymbolCharts
1395
+ * @request GET:/market/prices/{symbol}/charts
1396
+ */
1397
+ getMarketPricesSymbolCharts: (symbol: string, query: {
1398
+ currency: string;
1399
+ }, params?: RequestParams) => Promise<TimedPrices>;
1400
+ };
1401
+ utils: {
1402
+ /**
1403
+ * @description Perform a sanity check
1404
+ *
1405
+ * @tags Utils
1406
+ * @name PutUtilsSanityCheck
1407
+ * @request PUT:/utils/sanity-check
1408
+ */
1409
+ putUtilsSanityCheck: (params?: RequestParams) => Promise<void>;
1410
+ /**
1411
+ * @description Update global log level, accepted: TRACE, DEBUG, INFO, WARN, ERROR
1412
+ *
1413
+ * @tags Utils
1414
+ * @name PutUtilsUpdateGlobalLoglevel
1415
+ * @request PUT:/utils/update-global-loglevel
1416
+ */
1417
+ putUtilsUpdateGlobalLoglevel: (data: 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR', params?: RequestParams) => Promise<void>;
1418
+ /**
1419
+ * @description Update logback values
1420
+ *
1421
+ * @tags Utils
1422
+ * @name PutUtilsUpdateLogConfig
1423
+ * @request PUT:/utils/update-log-config
1424
+ */
1425
+ putUtilsUpdateLogConfig: (data?: LogbackValue[], params?: RequestParams) => Promise<void>;
1435
1426
  };
1436
1427
  }
1437
1428
  export {};