@alephium/web3 0.1.0-rc.3 → 0.1.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/dev/user.conf +1 -0
- package/dist/alephium-web3.min.js.map +1 -1
- package/dist/src/api/api-alephium.d.ts +73 -4
- package/dist/src/api/api-alephium.js +1 -1
- package/dist/src/api/api-explorer.d.ts +33 -6
- package/package.json +3 -3
- package/src/api/api-alephium.ts +109 -4
- package/src/api/api-explorer.ts +50 -6
- package/templates/base/package.json +1 -1
- package/templates/react/package.json +1 -1
|
@@ -31,6 +31,7 @@ export interface AssetInput {
|
|
|
31
31
|
unlockScript: string;
|
|
32
32
|
}
|
|
33
33
|
export interface AssetOutput {
|
|
34
|
+
/** @format int32 */
|
|
34
35
|
hint: number;
|
|
35
36
|
/** @format 32-byte-hash */
|
|
36
37
|
key: string;
|
|
@@ -62,6 +63,7 @@ export interface Balance {
|
|
|
62
63
|
lockedBalance: string;
|
|
63
64
|
/** @format x.x ALPH */
|
|
64
65
|
lockedBalanceHint: string;
|
|
66
|
+
/** @format int32 */
|
|
65
67
|
utxoNum: number;
|
|
66
68
|
warning?: string;
|
|
67
69
|
}
|
|
@@ -86,8 +88,11 @@ export interface BlockEntry {
|
|
|
86
88
|
hash: string;
|
|
87
89
|
/** @format int64 */
|
|
88
90
|
timestamp: number;
|
|
91
|
+
/** @format int32 */
|
|
89
92
|
chainFrom: number;
|
|
93
|
+
/** @format int32 */
|
|
90
94
|
chainTo: number;
|
|
95
|
+
/** @format int32 */
|
|
91
96
|
height: number;
|
|
92
97
|
deps: string[];
|
|
93
98
|
transactions: Transaction[];
|
|
@@ -106,18 +111,26 @@ export interface BlockHeaderEntry {
|
|
|
106
111
|
hash: string;
|
|
107
112
|
/** @format int64 */
|
|
108
113
|
timestamp: number;
|
|
114
|
+
/** @format int32 */
|
|
109
115
|
chainFrom: number;
|
|
116
|
+
/** @format int32 */
|
|
110
117
|
chainTo: number;
|
|
118
|
+
/** @format int32 */
|
|
111
119
|
height: number;
|
|
112
120
|
deps: string[];
|
|
113
121
|
}
|
|
114
122
|
export interface BrokerInfo {
|
|
115
123
|
/** @format clique-id */
|
|
116
124
|
cliqueId: string;
|
|
125
|
+
/** @format int32 */
|
|
117
126
|
brokerId: number;
|
|
127
|
+
/** @format int32 */
|
|
118
128
|
brokerNum: number;
|
|
119
129
|
/** @format inet-socket-address */
|
|
120
|
-
address:
|
|
130
|
+
address: {
|
|
131
|
+
addr: string;
|
|
132
|
+
port: number;
|
|
133
|
+
};
|
|
121
134
|
}
|
|
122
135
|
export interface BuildDeployContractTx {
|
|
123
136
|
/** @format public-key */
|
|
@@ -135,7 +148,9 @@ export interface BuildDeployContractTx {
|
|
|
135
148
|
gasPrice?: string;
|
|
136
149
|
}
|
|
137
150
|
export interface BuildDeployContractTxResult {
|
|
151
|
+
/** @format int32 */
|
|
138
152
|
fromGroup: number;
|
|
153
|
+
/** @format int32 */
|
|
139
154
|
toGroup: number;
|
|
140
155
|
unsignedTx: string;
|
|
141
156
|
/** @format gas */
|
|
@@ -161,7 +176,9 @@ export interface BuildExecuteScriptTx {
|
|
|
161
176
|
gasPrice?: string;
|
|
162
177
|
}
|
|
163
178
|
export interface BuildExecuteScriptTxResult {
|
|
179
|
+
/** @format int32 */
|
|
164
180
|
fromGroup: number;
|
|
181
|
+
/** @format int32 */
|
|
165
182
|
toGroup: number;
|
|
166
183
|
unsignedTx: string;
|
|
167
184
|
/** @format gas */
|
|
@@ -187,6 +204,7 @@ export interface BuildMultisig {
|
|
|
187
204
|
}
|
|
188
205
|
export interface BuildMultisigAddress {
|
|
189
206
|
keys: string[];
|
|
207
|
+
/** @format int32 */
|
|
190
208
|
mrequired: number;
|
|
191
209
|
}
|
|
192
210
|
export interface BuildMultisigAddressResult {
|
|
@@ -207,7 +225,9 @@ export interface BuildSweepAddressTransactions {
|
|
|
207
225
|
}
|
|
208
226
|
export interface BuildSweepAddressTransactionsResult {
|
|
209
227
|
unsignedTxs: SweepAddressTransaction[];
|
|
228
|
+
/** @format int32 */
|
|
210
229
|
fromGroup: number;
|
|
230
|
+
/** @format int32 */
|
|
211
231
|
toGroup: number;
|
|
212
232
|
}
|
|
213
233
|
export interface BuildTransaction {
|
|
@@ -228,10 +248,13 @@ export interface BuildTransactionResult {
|
|
|
228
248
|
gasPrice: string;
|
|
229
249
|
/** @format 32-byte-hash */
|
|
230
250
|
txId: string;
|
|
251
|
+
/** @format int32 */
|
|
231
252
|
fromGroup: number;
|
|
253
|
+
/** @format int32 */
|
|
232
254
|
toGroup: number;
|
|
233
255
|
}
|
|
234
256
|
export interface CallContract {
|
|
257
|
+
/** @format int32 */
|
|
235
258
|
group: number;
|
|
236
259
|
/** @format block-hash */
|
|
237
260
|
worldStateBlockHash?: string;
|
|
@@ -239,6 +262,7 @@ export interface CallContract {
|
|
|
239
262
|
txId?: string;
|
|
240
263
|
/** @format address */
|
|
241
264
|
address: string;
|
|
265
|
+
/** @format int32 */
|
|
242
266
|
methodIndex: number;
|
|
243
267
|
args?: Val[];
|
|
244
268
|
existingContracts?: string[];
|
|
@@ -246,6 +270,7 @@ export interface CallContract {
|
|
|
246
270
|
}
|
|
247
271
|
export interface CallContractResult {
|
|
248
272
|
returns: Val[];
|
|
273
|
+
/** @format int32 */
|
|
249
274
|
gasUsed: number;
|
|
250
275
|
contracts: ContractState[];
|
|
251
276
|
txInputs: string[];
|
|
@@ -253,12 +278,16 @@ export interface CallContractResult {
|
|
|
253
278
|
events: ContractEventByTxId[];
|
|
254
279
|
}
|
|
255
280
|
export interface ChainInfo {
|
|
281
|
+
/** @format int32 */
|
|
256
282
|
currentHeight: number;
|
|
257
283
|
}
|
|
258
284
|
export interface ChainParams {
|
|
259
285
|
networkId: number;
|
|
286
|
+
/** @format int32 */
|
|
260
287
|
numZerosAtLeastInHash: number;
|
|
288
|
+
/** @format int32 */
|
|
261
289
|
groupNumPerBroker: number;
|
|
290
|
+
/** @format int32 */
|
|
262
291
|
groups: number;
|
|
263
292
|
}
|
|
264
293
|
export interface ChangeActiveAddress {
|
|
@@ -281,9 +310,13 @@ export interface CompileScriptResult {
|
|
|
281
310
|
export interface Confirmed {
|
|
282
311
|
/** @format block-hash */
|
|
283
312
|
blockHash: string;
|
|
313
|
+
/** @format int32 */
|
|
284
314
|
txIndex: number;
|
|
315
|
+
/** @format int32 */
|
|
285
316
|
chainConfirmations: number;
|
|
317
|
+
/** @format int32 */
|
|
286
318
|
fromGroupConfirmations: number;
|
|
319
|
+
/** @format int32 */
|
|
287
320
|
toGroupConfirmations: number;
|
|
288
321
|
type: string;
|
|
289
322
|
}
|
|
@@ -295,6 +328,7 @@ export interface ContractEvent {
|
|
|
295
328
|
blockHash: string;
|
|
296
329
|
/** @format 32-byte-hash */
|
|
297
330
|
txId: string;
|
|
331
|
+
/** @format int32 */
|
|
298
332
|
eventIndex: number;
|
|
299
333
|
fields: Val[];
|
|
300
334
|
}
|
|
@@ -303,18 +337,22 @@ export interface ContractEventByTxId {
|
|
|
303
337
|
blockHash: string;
|
|
304
338
|
/** @format address */
|
|
305
339
|
contractAddress: string;
|
|
340
|
+
/** @format int32 */
|
|
306
341
|
eventIndex: number;
|
|
307
342
|
fields: Val[];
|
|
308
343
|
}
|
|
309
344
|
export interface ContractEvents {
|
|
310
345
|
events: ContractEvent[];
|
|
346
|
+
/** @format int32 */
|
|
311
347
|
nextStart: number;
|
|
312
348
|
}
|
|
313
349
|
export interface ContractEventsByTxId {
|
|
314
350
|
events: ContractEventByTxId[];
|
|
351
|
+
/** @format int32 */
|
|
315
352
|
nextStart: number;
|
|
316
353
|
}
|
|
317
354
|
export interface ContractOutput {
|
|
355
|
+
/** @format int32 */
|
|
318
356
|
hint: number;
|
|
319
357
|
/** @format 32-byte-hash */
|
|
320
358
|
key: string;
|
|
@@ -341,7 +379,9 @@ export interface DecodeUnsignedTx {
|
|
|
341
379
|
unsignedTx: string;
|
|
342
380
|
}
|
|
343
381
|
export interface DecodeUnsignedTxResult {
|
|
382
|
+
/** @format int32 */
|
|
344
383
|
fromGroup: number;
|
|
384
|
+
/** @format int32 */
|
|
345
385
|
toGroup: number;
|
|
346
386
|
unsignedTx: UnsignedTx;
|
|
347
387
|
}
|
|
@@ -372,6 +412,7 @@ export interface FieldsSig {
|
|
|
372
412
|
types: string[];
|
|
373
413
|
}
|
|
374
414
|
export interface FixedAssetOutput {
|
|
415
|
+
/** @format int32 */
|
|
375
416
|
hint: number;
|
|
376
417
|
/** @format 32-byte-hash */
|
|
377
418
|
key: string;
|
|
@@ -393,6 +434,7 @@ export interface FunctionSig {
|
|
|
393
434
|
returnTypes: string[];
|
|
394
435
|
}
|
|
395
436
|
export interface Group {
|
|
437
|
+
/** @format int32 */
|
|
396
438
|
group: number;
|
|
397
439
|
}
|
|
398
440
|
export interface HashesAtHeight {
|
|
@@ -401,10 +443,15 @@ export interface HashesAtHeight {
|
|
|
401
443
|
export interface InterCliquePeerInfo {
|
|
402
444
|
/** @format clique-id */
|
|
403
445
|
cliqueId: string;
|
|
446
|
+
/** @format int32 */
|
|
404
447
|
brokerId: number;
|
|
448
|
+
/** @format int32 */
|
|
405
449
|
groupNumPerBroker: number;
|
|
406
450
|
/** @format inet-socket-address */
|
|
407
|
-
address:
|
|
451
|
+
address: {
|
|
452
|
+
addr: string;
|
|
453
|
+
port: number;
|
|
454
|
+
};
|
|
408
455
|
isSynced: boolean;
|
|
409
456
|
clientVersion: string;
|
|
410
457
|
}
|
|
@@ -425,7 +472,10 @@ export interface NodeInfo {
|
|
|
425
472
|
buildInfo: BuildInfo;
|
|
426
473
|
upnp: boolean;
|
|
427
474
|
/** @format inet-socket-address */
|
|
428
|
-
externalAddress?:
|
|
475
|
+
externalAddress?: {
|
|
476
|
+
addr: string;
|
|
477
|
+
port: number;
|
|
478
|
+
};
|
|
429
479
|
}
|
|
430
480
|
export interface NodeVersion {
|
|
431
481
|
version: ReleaseVersion;
|
|
@@ -436,6 +486,7 @@ export interface NotFound {
|
|
|
436
486
|
}
|
|
437
487
|
export declare type Output = AssetOutput | ContractOutput;
|
|
438
488
|
export interface OutputRef {
|
|
489
|
+
/** @format int32 */
|
|
439
490
|
hint: number;
|
|
440
491
|
/** @format 32-byte-hash */
|
|
441
492
|
key: string;
|
|
@@ -443,8 +494,11 @@ export interface OutputRef {
|
|
|
443
494
|
export interface PeerAddress {
|
|
444
495
|
/** @format inet-address */
|
|
445
496
|
address: string;
|
|
497
|
+
/** @format int32 */
|
|
446
498
|
restPort: number;
|
|
499
|
+
/** @format int32 */
|
|
447
500
|
wsPort: number;
|
|
501
|
+
/** @format int32 */
|
|
448
502
|
minerApiPort: number;
|
|
449
503
|
}
|
|
450
504
|
export interface PeerMisbehavior {
|
|
@@ -454,6 +508,7 @@ export interface PeerMisbehavior {
|
|
|
454
508
|
}
|
|
455
509
|
export declare type PeerStatus = Banned | Penalty;
|
|
456
510
|
export interface Penalty {
|
|
511
|
+
/** @format int32 */
|
|
457
512
|
value: number;
|
|
458
513
|
type: string;
|
|
459
514
|
}
|
|
@@ -462,8 +517,11 @@ export interface Reachable {
|
|
|
462
517
|
type: string;
|
|
463
518
|
}
|
|
464
519
|
export interface ReleaseVersion {
|
|
520
|
+
/** @format int32 */
|
|
465
521
|
major: number;
|
|
522
|
+
/** @format int32 */
|
|
466
523
|
minor: number;
|
|
524
|
+
/** @format int32 */
|
|
467
525
|
patch: number;
|
|
468
526
|
}
|
|
469
527
|
export interface RevealMnemonic {
|
|
@@ -504,7 +562,9 @@ export interface SubmitTransaction {
|
|
|
504
562
|
export interface SubmitTxResult {
|
|
505
563
|
/** @format 32-byte-hash */
|
|
506
564
|
txId: string;
|
|
565
|
+
/** @format int32 */
|
|
507
566
|
fromGroup: number;
|
|
567
|
+
/** @format int32 */
|
|
508
568
|
toGroup: number;
|
|
509
569
|
}
|
|
510
570
|
export interface Sweep {
|
|
@@ -516,6 +576,7 @@ export interface Sweep {
|
|
|
516
576
|
gasAmount?: number;
|
|
517
577
|
/** @format uint256 */
|
|
518
578
|
gasPrice?: string;
|
|
579
|
+
/** @format int32 */
|
|
519
580
|
utxosLimit?: number;
|
|
520
581
|
}
|
|
521
582
|
export interface SweepAddressTransaction {
|
|
@@ -528,6 +589,7 @@ export interface SweepAddressTransaction {
|
|
|
528
589
|
gasPrice: string;
|
|
529
590
|
}
|
|
530
591
|
export interface TestContract {
|
|
592
|
+
/** @format int32 */
|
|
531
593
|
group?: number;
|
|
532
594
|
/** @format block-hash */
|
|
533
595
|
blockHash?: string;
|
|
@@ -539,6 +601,7 @@ export interface TestContract {
|
|
|
539
601
|
bytecode: string;
|
|
540
602
|
initialFields?: Val[];
|
|
541
603
|
initialAsset?: AssetState;
|
|
604
|
+
/** @format int32 */
|
|
542
605
|
methodIndex?: number;
|
|
543
606
|
args?: Val[];
|
|
544
607
|
existingContracts?: ContractState[];
|
|
@@ -550,6 +613,7 @@ export interface TestContractResult {
|
|
|
550
613
|
/** @format 32-byte-hash */
|
|
551
614
|
codeHash: string;
|
|
552
615
|
returns: Val[];
|
|
616
|
+
/** @format int32 */
|
|
553
617
|
gasUsed: number;
|
|
554
618
|
contracts: ContractState[];
|
|
555
619
|
txInputs: string[];
|
|
@@ -586,6 +650,7 @@ export interface Transfer {
|
|
|
586
650
|
gas?: number;
|
|
587
651
|
/** @format uint256 */
|
|
588
652
|
gasPrice?: string;
|
|
653
|
+
/** @format int32 */
|
|
589
654
|
utxosLimit?: number;
|
|
590
655
|
}
|
|
591
656
|
export interface TransferResult {
|
|
@@ -625,7 +690,9 @@ export interface Unban {
|
|
|
625
690
|
type: string;
|
|
626
691
|
}
|
|
627
692
|
export interface UnconfirmedTransactions {
|
|
693
|
+
/** @format int32 */
|
|
628
694
|
fromGroup: number;
|
|
695
|
+
/** @format int32 */
|
|
629
696
|
toGroup: number;
|
|
630
697
|
unconfirmedTransactions: TransactionTemplate[];
|
|
631
698
|
}
|
|
@@ -640,6 +707,7 @@ export interface UnsignedTx {
|
|
|
640
707
|
networkId: number;
|
|
641
708
|
/** @format script */
|
|
642
709
|
scriptOpt?: string;
|
|
710
|
+
/** @format int32 */
|
|
643
711
|
gasAmount: number;
|
|
644
712
|
/** @format uint256 */
|
|
645
713
|
gasPrice: string;
|
|
@@ -666,6 +734,7 @@ export interface ValByteVec {
|
|
|
666
734
|
type: string;
|
|
667
735
|
}
|
|
668
736
|
export interface ValI256 {
|
|
737
|
+
/** @format bigint */
|
|
669
738
|
value: string;
|
|
670
739
|
type: string;
|
|
671
740
|
}
|
|
@@ -774,7 +843,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
774
843
|
}
|
|
775
844
|
/**
|
|
776
845
|
* @title Alephium API
|
|
777
|
-
* @version 1.4.
|
|
846
|
+
* @version 1.4.2
|
|
778
847
|
* @baseUrl {protocol}://{host}:{port}
|
|
779
848
|
*/
|
|
780
849
|
export declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
@@ -9,30 +9,39 @@ export interface AddressInfo {
|
|
|
9
9
|
balance: string;
|
|
10
10
|
/** @format uint256 */
|
|
11
11
|
lockedBalance: string;
|
|
12
|
+
/** @format int32 */
|
|
12
13
|
txNumber: number;
|
|
13
14
|
}
|
|
14
15
|
export interface BadRequest {
|
|
15
16
|
detail: string;
|
|
16
17
|
}
|
|
17
18
|
export interface BlockEntryLite {
|
|
19
|
+
/** @format block-hash */
|
|
18
20
|
hash: string;
|
|
19
21
|
/** @format int64 */
|
|
20
22
|
timestamp: number;
|
|
23
|
+
/** @format int32 */
|
|
21
24
|
chainFrom: number;
|
|
25
|
+
/** @format int32 */
|
|
22
26
|
chainTo: number;
|
|
27
|
+
/** @format int32 */
|
|
23
28
|
height: number;
|
|
29
|
+
/** @format int32 */
|
|
24
30
|
txNumber: number;
|
|
25
31
|
mainChain: boolean;
|
|
26
32
|
/** @format bigint */
|
|
27
33
|
hashRate: string;
|
|
28
34
|
}
|
|
29
35
|
export interface ConfirmedTransaction {
|
|
36
|
+
/** @format 32-byte-hash */
|
|
30
37
|
hash: string;
|
|
38
|
+
/** @format block-hash */
|
|
31
39
|
blockHash: string;
|
|
32
40
|
/** @format int64 */
|
|
33
41
|
timestamp: number;
|
|
34
42
|
inputs?: Input[];
|
|
35
43
|
outputs?: Output[];
|
|
44
|
+
/** @format int32 */
|
|
36
45
|
gasAmount: number;
|
|
37
46
|
/** @format uint256 */
|
|
38
47
|
gasPrice: string;
|
|
@@ -45,12 +54,13 @@ export interface ExplorerInfo {
|
|
|
45
54
|
export interface Hashrate {
|
|
46
55
|
/** @format int64 */
|
|
47
56
|
timestamp: number;
|
|
48
|
-
hashrate:
|
|
49
|
-
value:
|
|
57
|
+
hashrate: number;
|
|
58
|
+
value: number;
|
|
50
59
|
}
|
|
51
60
|
export interface Input {
|
|
52
61
|
outputRef: OutputRef;
|
|
53
62
|
unlockScript?: string;
|
|
63
|
+
/** @format 32-byte-hash */
|
|
54
64
|
txHashRef: string;
|
|
55
65
|
address: string;
|
|
56
66
|
/** @format uint256 */
|
|
@@ -60,6 +70,7 @@ export interface InternalServerError {
|
|
|
60
70
|
detail: string;
|
|
61
71
|
}
|
|
62
72
|
export interface ListBlocks {
|
|
73
|
+
/** @format int32 */
|
|
63
74
|
total: number;
|
|
64
75
|
blocks?: BlockEntryLite[];
|
|
65
76
|
}
|
|
@@ -68,6 +79,7 @@ export interface NotFound {
|
|
|
68
79
|
resource: string;
|
|
69
80
|
}
|
|
70
81
|
export interface Output {
|
|
82
|
+
/** @format int32 */
|
|
71
83
|
hint: number;
|
|
72
84
|
/** @format 32-byte-hash */
|
|
73
85
|
key: string;
|
|
@@ -76,21 +88,27 @@ export interface Output {
|
|
|
76
88
|
address: string;
|
|
77
89
|
/** @format int64 */
|
|
78
90
|
lockTime?: number;
|
|
91
|
+
/** @format 32-byte-hash */
|
|
79
92
|
spent?: string;
|
|
80
93
|
}
|
|
81
94
|
export interface OutputRef {
|
|
95
|
+
/** @format int32 */
|
|
82
96
|
hint: number;
|
|
83
97
|
/** @format 32-byte-hash */
|
|
84
98
|
key: string;
|
|
85
99
|
}
|
|
86
100
|
export interface PerChainCount {
|
|
101
|
+
/** @format int32 */
|
|
87
102
|
chainFrom: number;
|
|
103
|
+
/** @format int32 */
|
|
88
104
|
chainTo: number;
|
|
89
105
|
/** @format int64 */
|
|
90
106
|
count: number;
|
|
91
107
|
}
|
|
92
108
|
export interface PerChainDuration {
|
|
109
|
+
/** @format int32 */
|
|
93
110
|
chainFrom: number;
|
|
111
|
+
/** @format int32 */
|
|
94
112
|
chainTo: number;
|
|
95
113
|
/** @format int64 */
|
|
96
114
|
duration: number;
|
|
@@ -98,7 +116,9 @@ export interface PerChainDuration {
|
|
|
98
116
|
value: number;
|
|
99
117
|
}
|
|
100
118
|
export interface PerChainHeight {
|
|
119
|
+
/** @format int32 */
|
|
101
120
|
chainFrom: number;
|
|
121
|
+
/** @format int32 */
|
|
102
122
|
chainTo: number;
|
|
103
123
|
/** @format int64 */
|
|
104
124
|
height: number;
|
|
@@ -134,12 +154,15 @@ export interface TokenSupply {
|
|
|
134
154
|
maximum: string;
|
|
135
155
|
}
|
|
136
156
|
export interface Transaction {
|
|
157
|
+
/** @format 32-byte-hash */
|
|
137
158
|
hash: string;
|
|
159
|
+
/** @format block-hash */
|
|
138
160
|
blockHash: string;
|
|
139
161
|
/** @format int64 */
|
|
140
162
|
timestamp: number;
|
|
141
163
|
inputs?: Input[];
|
|
142
164
|
outputs?: Output[];
|
|
165
|
+
/** @format int32 */
|
|
143
166
|
gasAmount: number;
|
|
144
167
|
/** @format uint256 */
|
|
145
168
|
gasPrice: string;
|
|
@@ -160,11 +183,15 @@ export interface Unauthorized {
|
|
|
160
183
|
detail: string;
|
|
161
184
|
}
|
|
162
185
|
export interface UnconfirmedTransaction {
|
|
186
|
+
/** @format 32-byte-hash */
|
|
163
187
|
hash: string;
|
|
188
|
+
/** @format int32 */
|
|
164
189
|
chainFrom: number;
|
|
190
|
+
/** @format int32 */
|
|
165
191
|
chainTo: number;
|
|
166
192
|
inputs?: UInput[];
|
|
167
193
|
outputs?: UOutput[];
|
|
194
|
+
/** @format int32 */
|
|
168
195
|
gasAmount: number;
|
|
169
196
|
/** @format uint256 */
|
|
170
197
|
gasPrice: string;
|
|
@@ -351,7 +378,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
351
378
|
* @name GetInfosSupplyTotalAlph
|
|
352
379
|
* @request GET:/infos/supply/total-alph
|
|
353
380
|
*/
|
|
354
|
-
getInfosSupplyTotalAlph: (params?: RequestParams) => Promise<
|
|
381
|
+
getInfosSupplyTotalAlph: (params?: RequestParams) => Promise<number>;
|
|
355
382
|
/**
|
|
356
383
|
* @description Get the ALPH circulating supply
|
|
357
384
|
*
|
|
@@ -359,7 +386,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
359
386
|
* @name GetInfosSupplyCirculatingAlph
|
|
360
387
|
* @request GET:/infos/supply/circulating-alph
|
|
361
388
|
*/
|
|
362
|
-
getInfosSupplyCirculatingAlph: (params?: RequestParams) => Promise<
|
|
389
|
+
getInfosSupplyCirculatingAlph: (params?: RequestParams) => Promise<number>;
|
|
363
390
|
/**
|
|
364
391
|
* @description Get the ALPH reserved supply
|
|
365
392
|
*
|
|
@@ -367,7 +394,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
367
394
|
* @name GetInfosSupplyReservedAlph
|
|
368
395
|
* @request GET:/infos/supply/reserved-alph
|
|
369
396
|
*/
|
|
370
|
-
getInfosSupplyReservedAlph: (params?: RequestParams) => Promise<
|
|
397
|
+
getInfosSupplyReservedAlph: (params?: RequestParams) => Promise<number>;
|
|
371
398
|
/**
|
|
372
399
|
* @description Get the ALPH locked supply
|
|
373
400
|
*
|
|
@@ -375,7 +402,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
375
402
|
* @name GetInfosSupplyLockedAlph
|
|
376
403
|
* @request GET:/infos/supply/locked-alph
|
|
377
404
|
*/
|
|
378
|
-
getInfosSupplyLockedAlph: (params?: RequestParams) => Promise<
|
|
405
|
+
getInfosSupplyLockedAlph: (params?: RequestParams) => Promise<number>;
|
|
379
406
|
/**
|
|
380
407
|
* @description Get the total number of transactions
|
|
381
408
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alephium/web3",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "A JS/TS library to interact with the Alephium platform",
|
|
5
5
|
"license": "GPL",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"author": "Alephium dev <dev@alephium.org>",
|
|
29
29
|
"config": {
|
|
30
|
-
"alephium_version": "1.4.
|
|
31
|
-
"explorer_backend_version": "1.7.0
|
|
30
|
+
"alephium_version": "1.4.2",
|
|
31
|
+
"explorer_backend_version": "1.7.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "rm -rf dist/* && npx tsc --build . && webpack",
|