@alephium/web3 0.44.0 → 1.0.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.
@@ -9,6 +9,7 @@
9
9
  * ---------------------------------------------------------------
10
10
  */
11
11
 
12
+ /** AddressBalance */
12
13
  export interface AddressBalance {
13
14
  /** @format address */
14
15
  address: string
@@ -23,6 +24,7 @@ export interface AddressBalance {
23
24
  warning?: string
24
25
  }
25
26
 
27
+ /** AddressInfo */
26
28
  export interface AddressInfo {
27
29
  /** @format address */
28
30
  address: string
@@ -33,18 +35,21 @@ export interface AddressInfo {
33
35
  path: string
34
36
  }
35
37
 
38
+ /** Addresses */
36
39
  export interface Addresses {
37
40
  /** @format address */
38
41
  activeAddress: string
39
42
  addresses: AddressInfo[]
40
43
  }
41
44
 
45
+ /** AssetInput */
42
46
  export interface AssetInput {
43
47
  outputRef: OutputRef
44
48
  /** @format hex-string */
45
49
  unlockScript: string
46
50
  }
47
51
 
52
+ /** AssetOutput */
48
53
  export interface AssetOutput {
49
54
  /** @format int32 */
50
55
  hint: number
@@ -62,16 +67,19 @@ export interface AssetOutput {
62
67
  type: string
63
68
  }
64
69
 
70
+ /** AssetState */
65
71
  export interface AssetState {
66
72
  /** @format uint256 */
67
73
  attoAlphAmount: string
68
74
  tokens?: Token[]
69
75
  }
70
76
 
77
+ /** BadRequest */
71
78
  export interface BadRequest {
72
79
  detail: string
73
80
  }
74
81
 
82
+ /** Balance */
75
83
  export interface Balance {
76
84
  /** @format uint256 */
77
85
  balance: string
@@ -88,6 +96,7 @@ export interface Balance {
88
96
  warning?: string
89
97
  }
90
98
 
99
+ /** Balances */
91
100
  export interface Balances {
92
101
  /** @format uint256 */
93
102
  totalBalance: string
@@ -96,22 +105,26 @@ export interface Balances {
96
105
  balances: AddressBalance[]
97
106
  }
98
107
 
108
+ /** Ban */
99
109
  export interface Ban {
100
110
  peers: string[]
101
111
  type: string
102
112
  }
103
113
 
114
+ /** Banned */
104
115
  export interface Banned {
105
116
  /** @format int64 */
106
117
  until: number
107
118
  type: string
108
119
  }
109
120
 
121
+ /** BlockAndEvents */
110
122
  export interface BlockAndEvents {
111
123
  block: BlockEntry
112
124
  events: ContractEventByBlockHash[]
113
125
  }
114
126
 
127
+ /** BlockEntry */
115
128
  export interface BlockEntry {
116
129
  /** @format block-hash */
117
130
  hash: string
@@ -134,8 +147,10 @@ export interface BlockEntry {
134
147
  txsHash: string
135
148
  /** @format hex-string */
136
149
  target: string
150
+ ghostUncles: GhostUncleBlockEntry[]
137
151
  }
138
152
 
153
+ /** BlockHeaderEntry */
139
154
  export interface BlockHeaderEntry {
140
155
  /** @format block-hash */
141
156
  hash: string
@@ -150,14 +165,17 @@ export interface BlockHeaderEntry {
150
165
  deps: string[]
151
166
  }
152
167
 
168
+ /** BlocksAndEventsPerTimeStampRange */
153
169
  export interface BlocksAndEventsPerTimeStampRange {
154
170
  blocksAndEvents: BlockAndEvents[][]
155
171
  }
156
172
 
173
+ /** BlocksPerTimeStampRange */
157
174
  export interface BlocksPerTimeStampRange {
158
175
  blocks: BlockEntry[][]
159
176
  }
160
177
 
178
+ /** BrokerInfo */
161
179
  export interface BrokerInfo {
162
180
  /** @format clique-id */
163
181
  cliqueId: string
@@ -173,6 +191,7 @@ export interface BrokerInfo {
173
191
  }
174
192
  }
175
193
 
194
+ /** BuildDeployContractTx */
176
195
  export interface BuildDeployContractTx {
177
196
  /** @format hex-string */
178
197
  fromPublicKey: string
@@ -195,6 +214,7 @@ export interface BuildDeployContractTx {
195
214
  targetBlockHash?: string
196
215
  }
197
216
 
217
+ /** BuildDeployContractTxResult */
198
218
  export interface BuildDeployContractTxResult {
199
219
  /** @format int32 */
200
220
  fromGroup: number
@@ -211,6 +231,7 @@ export interface BuildDeployContractTxResult {
211
231
  contractAddress: string
212
232
  }
213
233
 
234
+ /** BuildExecuteScriptTx */
214
235
  export interface BuildExecuteScriptTx {
215
236
  /** @format hex-string */
216
237
  fromPublicKey: string
@@ -229,6 +250,7 @@ export interface BuildExecuteScriptTx {
229
250
  targetBlockHash?: string
230
251
  }
231
252
 
253
+ /** BuildExecuteScriptTxResult */
232
254
  export interface BuildExecuteScriptTxResult {
233
255
  /** @format int32 */
234
256
  fromGroup: number
@@ -243,11 +265,13 @@ export interface BuildExecuteScriptTxResult {
243
265
  txId: string
244
266
  }
245
267
 
268
+ /** BuildInfo */
246
269
  export interface BuildInfo {
247
270
  releaseVersion: string
248
271
  commit: string
249
272
  }
250
273
 
274
+ /** BuildMultiAddressesTransaction */
251
275
  export interface BuildMultiAddressesTransaction {
252
276
  from: Source[]
253
277
  /** @format uint256 */
@@ -256,6 +280,7 @@ export interface BuildMultiAddressesTransaction {
256
280
  targetBlockHash?: string
257
281
  }
258
282
 
283
+ /** BuildMultisig */
259
284
  export interface BuildMultisig {
260
285
  /** @format address */
261
286
  fromAddress: string
@@ -267,17 +292,20 @@ export interface BuildMultisig {
267
292
  gasPrice?: string
268
293
  }
269
294
 
295
+ /** BuildMultisigAddress */
270
296
  export interface BuildMultisigAddress {
271
297
  keys: string[]
272
298
  /** @format int32 */
273
299
  mrequired: number
274
300
  }
275
301
 
302
+ /** BuildMultisigAddressResult */
276
303
  export interface BuildMultisigAddressResult {
277
304
  /** @format address */
278
305
  address: string
279
306
  }
280
307
 
308
+ /** BuildSweepAddressTransactions */
281
309
  export interface BuildSweepAddressTransactions {
282
310
  /** @format public-key */
283
311
  fromPublicKey: string
@@ -295,6 +323,7 @@ export interface BuildSweepAddressTransactions {
295
323
  targetBlockHash?: string
296
324
  }
297
325
 
326
+ /** BuildSweepAddressTransactionsResult */
298
327
  export interface BuildSweepAddressTransactionsResult {
299
328
  unsignedTxs: SweepAddressTransaction[]
300
329
  /** @format int32 */
@@ -303,6 +332,7 @@ export interface BuildSweepAddressTransactionsResult {
303
332
  toGroup: number
304
333
  }
305
334
 
335
+ /** BuildSweepMultisig */
306
336
  export interface BuildSweepMultisig {
307
337
  /** @format address */
308
338
  fromAddress: string
@@ -323,6 +353,7 @@ export interface BuildSweepMultisig {
323
353
  targetBlockHash?: string
324
354
  }
325
355
 
356
+ /** BuildTransaction */
326
357
  export interface BuildTransaction {
327
358
  /** @format hex-string */
328
359
  fromPublicKey: string
@@ -338,6 +369,7 @@ export interface BuildTransaction {
338
369
  targetBlockHash?: string
339
370
  }
340
371
 
372
+ /** BuildTransactionResult */
341
373
  export interface BuildTransactionResult {
342
374
  unsignedTx: string
343
375
  /** @format gas */
@@ -352,6 +384,7 @@ export interface BuildTransactionResult {
352
384
  toGroup: number
353
385
  }
354
386
 
387
+ /** CallContract */
355
388
  export interface CallContract {
356
389
  /** @format int32 */
357
390
  group: number
@@ -370,13 +403,16 @@ export interface CallContract {
370
403
  inputAssets?: TestInputAsset[]
371
404
  }
372
405
 
406
+ /** CallContractFailed */
373
407
  export interface CallContractFailed {
374
408
  error: string
375
409
  type: string
376
410
  }
377
411
 
412
+ /** CallContractResult */
378
413
  export type CallContractResult = CallContractFailed | CallContractSucceeded
379
414
 
415
+ /** CallContractSucceeded */
380
416
  export interface CallContractSucceeded {
381
417
  returns: Val[]
382
418
  /** @format int32 */
@@ -389,11 +425,13 @@ export interface CallContractSucceeded {
389
425
  type: string
390
426
  }
391
427
 
428
+ /** ChainInfo */
392
429
  export interface ChainInfo {
393
430
  /** @format int32 */
394
431
  currentHeight: number
395
432
  }
396
433
 
434
+ /** ChainParams */
397
435
  export interface ChainParams {
398
436
  networkId: number
399
437
  /** @format int32 */
@@ -404,11 +442,13 @@ export interface ChainParams {
404
442
  groups: number
405
443
  }
406
444
 
445
+ /** ChangeActiveAddress */
407
446
  export interface ChangeActiveAddress {
408
447
  /** @format address */
409
448
  address: string
410
449
  }
411
450
 
451
+ /** CompileContractResult */
412
452
  export interface CompileContractResult {
413
453
  version: string
414
454
  name: string
@@ -428,12 +468,14 @@ export interface CompileContractResult {
428
468
  stdInterfaceId?: string
429
469
  }
430
470
 
471
+ /** CompileProjectResult */
431
472
  export interface CompileProjectResult {
432
473
  contracts: CompileContractResult[]
433
474
  scripts: CompileScriptResult[]
434
475
  structs?: StructSig[]
435
476
  }
436
477
 
478
+ /** CompileScriptResult */
437
479
  export interface CompileScriptResult {
438
480
  version: string
439
481
  name: string
@@ -444,6 +486,7 @@ export interface CompileScriptResult {
444
486
  warnings: string[]
445
487
  }
446
488
 
489
+ /** CompilerOptions */
447
490
  export interface CompilerOptions {
448
491
  ignoreUnusedConstantsWarnings?: boolean
449
492
  ignoreUnusedVariablesWarnings?: boolean
@@ -453,6 +496,7 @@ export interface CompilerOptions {
453
496
  ignoreCheckExternalCallerWarnings?: boolean
454
497
  }
455
498
 
499
+ /** Confirmed */
456
500
  export interface Confirmed {
457
501
  /** @format block-hash */
458
502
  blockHash: string
@@ -467,16 +511,19 @@ export interface Confirmed {
467
511
  type: string
468
512
  }
469
513
 
514
+ /** Constant */
470
515
  export interface Constant {
471
516
  name: string
472
517
  value: Val
473
518
  }
474
519
 
520
+ /** Contract */
475
521
  export interface Contract {
476
522
  code: string
477
523
  compilerOptions?: CompilerOptions
478
524
  }
479
525
 
526
+ /** ContractEvent */
480
527
  export interface ContractEvent {
481
528
  /** @format block-hash */
482
529
  blockHash: string
@@ -487,6 +534,7 @@ export interface ContractEvent {
487
534
  fields: Val[]
488
535
  }
489
536
 
537
+ /** ContractEventByBlockHash */
490
538
  export interface ContractEventByBlockHash {
491
539
  /** @format 32-byte-hash */
492
540
  txId: string
@@ -497,6 +545,7 @@ export interface ContractEventByBlockHash {
497
545
  fields: Val[]
498
546
  }
499
547
 
548
+ /** ContractEventByTxId */
500
549
  export interface ContractEventByTxId {
501
550
  /** @format block-hash */
502
551
  blockHash: string
@@ -507,20 +556,24 @@ export interface ContractEventByTxId {
507
556
  fields: Val[]
508
557
  }
509
558
 
559
+ /** ContractEvents */
510
560
  export interface ContractEvents {
511
561
  events: ContractEvent[]
512
562
  /** @format int32 */
513
563
  nextStart: number
514
564
  }
515
565
 
566
+ /** ContractEventsByBlockHash */
516
567
  export interface ContractEventsByBlockHash {
517
568
  events: ContractEventByBlockHash[]
518
569
  }
519
570
 
571
+ /** ContractEventsByTxId */
520
572
  export interface ContractEventsByTxId {
521
573
  events: ContractEventByTxId[]
522
574
  }
523
575
 
576
+ /** ContractOutput */
524
577
  export interface ContractOutput {
525
578
  /** @format int32 */
526
579
  hint: number
@@ -534,6 +587,7 @@ export interface ContractOutput {
534
587
  type: string
535
588
  }
536
589
 
590
+ /** ContractState */
537
591
  export interface ContractState {
538
592
  /** @format address */
539
593
  address: string
@@ -548,16 +602,19 @@ export interface ContractState {
548
602
  asset: AssetState
549
603
  }
550
604
 
605
+ /** DebugMessage */
551
606
  export interface DebugMessage {
552
607
  /** @format address */
553
608
  contractAddress: string
554
609
  message: string
555
610
  }
556
611
 
612
+ /** DecodeUnsignedTx */
557
613
  export interface DecodeUnsignedTx {
558
614
  unsignedTx: string
559
615
  }
560
616
 
617
+ /** DecodeUnsignedTxResult */
561
618
  export interface DecodeUnsignedTxResult {
562
619
  /** @format int32 */
563
620
  fromGroup: number
@@ -566,6 +623,7 @@ export interface DecodeUnsignedTxResult {
566
623
  unsignedTx: UnsignedTx
567
624
  }
568
625
 
626
+ /** Destination */
569
627
  export interface Destination {
570
628
  /** @format address */
571
629
  address: string
@@ -578,30 +636,36 @@ export interface Destination {
578
636
  message?: string
579
637
  }
580
638
 
639
+ /** DiscoveryAction */
581
640
  export type DiscoveryAction = Reachable | Unreachable
582
641
 
642
+ /** Enum */
583
643
  export interface Enum {
584
644
  name: string
585
645
  fields: EnumField[]
586
646
  }
587
647
 
648
+ /** EnumField */
588
649
  export interface EnumField {
589
650
  name: string
590
651
  value: Val
591
652
  }
592
653
 
654
+ /** EventSig */
593
655
  export interface EventSig {
594
656
  name: string
595
657
  fieldNames: string[]
596
658
  fieldTypes: string[]
597
659
  }
598
660
 
661
+ /** FieldsSig */
599
662
  export interface FieldsSig {
600
663
  names: string[]
601
664
  types: string[]
602
665
  isMutable: boolean[]
603
666
  }
604
667
 
668
+ /** FixedAssetOutput */
605
669
  export interface FixedAssetOutput {
606
670
  /** @format int32 */
607
671
  hint: number
@@ -618,6 +682,7 @@ export interface FixedAssetOutput {
618
682
  message: string
619
683
  }
620
684
 
685
+ /** FunctionSig */
621
686
  export interface FunctionSig {
622
687
  name: string
623
688
  usePreapprovedAssets: boolean
@@ -629,15 +694,26 @@ export interface FunctionSig {
629
694
  returnTypes: string[]
630
695
  }
631
696
 
697
+ /** GhostUncleBlockEntry */
698
+ export interface GhostUncleBlockEntry {
699
+ /** @format block-hash */
700
+ blockHash: string
701
+ /** @format address */
702
+ miner: string
703
+ }
704
+
705
+ /** Group */
632
706
  export interface Group {
633
707
  /** @format int32 */
634
708
  group: number
635
709
  }
636
710
 
711
+ /** HashesAtHeight */
637
712
  export interface HashesAtHeight {
638
713
  headers: string[]
639
714
  }
640
715
 
716
+ /** InterCliquePeerInfo */
641
717
  export interface InterCliquePeerInfo {
642
718
  /** @format clique-id */
643
719
  cliqueId: string
@@ -655,19 +731,23 @@ export interface InterCliquePeerInfo {
655
731
  clientVersion: string
656
732
  }
657
733
 
734
+ /** InternalServerError */
658
735
  export interface InternalServerError {
659
736
  detail: string
660
737
  }
661
738
 
739
+ /** MapsSig */
662
740
  export interface MapsSig {
663
741
  names: string[]
664
742
  types: string[]
665
743
  }
666
744
 
745
+ /** MemPooled */
667
746
  export interface MemPooled {
668
747
  type: string
669
748
  }
670
749
 
750
+ /** MempoolTransactions */
671
751
  export interface MempoolTransactions {
672
752
  /** @format int32 */
673
753
  fromGroup: number
@@ -676,24 +756,30 @@ export interface MempoolTransactions {
676
756
  transactions: TransactionTemplate[]
677
757
  }
678
758
 
759
+ /** MinerAddresses */
679
760
  export interface MinerAddresses {
680
761
  addresses: string[]
681
762
  }
682
763
 
764
+ /** MinerAddressesInfo */
683
765
  export interface MinerAddressesInfo {
684
766
  addresses: AddressInfo[]
685
767
  }
686
768
 
769
+ /** MisbehaviorAction */
687
770
  export type MisbehaviorAction = Ban | Unban
688
771
 
772
+ /** MultipleCallContract */
689
773
  export interface MultipleCallContract {
690
774
  calls: CallContract[]
691
775
  }
692
776
 
777
+ /** MultipleCallContractResult */
693
778
  export interface MultipleCallContractResult {
694
779
  results: CallContractResult[]
695
780
  }
696
781
 
782
+ /** NodeInfo */
697
783
  export interface NodeInfo {
698
784
  buildInfo: BuildInfo
699
785
  upnp: boolean
@@ -705,18 +791,22 @@ export interface NodeInfo {
705
791
  }
706
792
  }
707
793
 
794
+ /** NodeVersion */
708
795
  export interface NodeVersion {
709
796
  /** @format semver */
710
797
  version: string
711
798
  }
712
799
 
800
+ /** NotFound */
713
801
  export interface NotFound {
714
802
  detail: string
715
803
  resource: string
716
804
  }
717
805
 
806
+ /** Output */
718
807
  export type Output = AssetOutput | ContractOutput
719
808
 
809
+ /** OutputRef */
720
810
  export interface OutputRef {
721
811
  /** @format int32 */
722
812
  hint: number
@@ -724,6 +814,7 @@ export interface OutputRef {
724
814
  key: string
725
815
  }
726
816
 
817
+ /** PeerAddress */
727
818
  export interface PeerAddress {
728
819
  /** @format inet-address */
729
820
  address: string
@@ -735,48 +826,58 @@ export interface PeerAddress {
735
826
  minerApiPort: number
736
827
  }
737
828
 
829
+ /** PeerMisbehavior */
738
830
  export interface PeerMisbehavior {
739
831
  /** @format inet-address */
740
832
  peer: string
741
833
  status: PeerStatus
742
834
  }
743
835
 
836
+ /** PeerStatus */
744
837
  export type PeerStatus = Banned | Penalty
745
838
 
839
+ /** Penalty */
746
840
  export interface Penalty {
747
841
  /** @format int32 */
748
842
  value: number
749
843
  type: string
750
844
  }
751
845
 
846
+ /** Project */
752
847
  export interface Project {
753
848
  code: string
754
849
  compilerOptions?: CompilerOptions
755
850
  }
756
851
 
852
+ /** Reachable */
757
853
  export interface Reachable {
758
854
  peers: string[]
759
855
  type: string
760
856
  }
761
857
 
858
+ /** Result */
762
859
  export interface Result {
763
860
  /** @format bigint */
764
861
  hashrate: string
765
862
  }
766
863
 
864
+ /** RevealMnemonic */
767
865
  export interface RevealMnemonic {
768
866
  password: string
769
867
  }
770
868
 
869
+ /** RevealMnemonicResult */
771
870
  export interface RevealMnemonicResult {
772
871
  mnemonic: string
773
872
  }
774
873
 
874
+ /** Script */
775
875
  export interface Script {
776
876
  code: string
777
877
  compilerOptions?: CompilerOptions
778
878
  }
779
879
 
880
+ /** SelfClique */
780
881
  export interface SelfClique {
781
882
  /** @format clique-id */
782
883
  cliqueId: string
@@ -785,19 +886,24 @@ export interface SelfClique {
785
886
  synced: boolean
786
887
  }
787
888
 
889
+ /** ServiceUnavailable */
788
890
  export interface ServiceUnavailable {
789
891
  detail: string
790
892
  }
791
893
 
894
+ /** Sign */
792
895
  export interface Sign {
896
+ /** @format 32-byte-hash */
793
897
  data: string
794
898
  }
795
899
 
900
+ /** SignResult */
796
901
  export interface SignResult {
797
902
  /** @format signature */
798
903
  signature: string
799
904
  }
800
905
 
906
+ /** Source */
801
907
  export interface Source {
802
908
  /** @format hex-string */
803
909
  fromPublicKey: string
@@ -809,6 +915,7 @@ export interface Source {
809
915
  utxos?: OutputRef[]
810
916
  }
811
917
 
918
+ /** StructSig */
812
919
  export interface StructSig {
813
920
  name: string
814
921
  fieldNames: string[]
@@ -816,17 +923,20 @@ export interface StructSig {
816
923
  isMutable: boolean[]
817
924
  }
818
925
 
926
+ /** SubmitMultisig */
819
927
  export interface SubmitMultisig {
820
928
  unsignedTx: string
821
929
  signatures: string[]
822
930
  }
823
931
 
932
+ /** SubmitTransaction */
824
933
  export interface SubmitTransaction {
825
934
  unsignedTx: string
826
935
  /** @format signature */
827
936
  signature: string
828
937
  }
829
938
 
939
+ /** SubmitTxResult */
830
940
  export interface SubmitTxResult {
831
941
  /** @format 32-byte-hash */
832
942
  txId: string
@@ -836,6 +946,7 @@ export interface SubmitTxResult {
836
946
  toGroup: number
837
947
  }
838
948
 
949
+ /** Sweep */
839
950
  export interface Sweep {
840
951
  /** @format address */
841
952
  toAddress: string
@@ -851,6 +962,7 @@ export interface Sweep {
851
962
  targetBlockHash?: string
852
963
  }
853
964
 
965
+ /** SweepAddressTransaction */
854
966
  export interface SweepAddressTransaction {
855
967
  /** @format 32-byte-hash */
856
968
  txId: string
@@ -861,11 +973,13 @@ export interface SweepAddressTransaction {
861
973
  gasPrice: string
862
974
  }
863
975
 
976
+ /** TargetToHashrate */
864
977
  export interface TargetToHashrate {
865
978
  /** @format hex-string */
866
979
  target: string
867
980
  }
868
981
 
982
+ /** TestContract */
869
983
  export interface TestContract {
870
984
  /** @format int32 */
871
985
  group?: number
@@ -891,6 +1005,7 @@ export interface TestContract {
891
1005
  inputAssets?: TestInputAsset[]
892
1006
  }
893
1007
 
1008
+ /** TestContractResult */
894
1009
  export interface TestContractResult {
895
1010
  /** @format address */
896
1011
  address: string
@@ -906,12 +1021,14 @@ export interface TestContractResult {
906
1021
  debugMessages: DebugMessage[]
907
1022
  }
908
1023
 
1024
+ /** TestInputAsset */
909
1025
  export interface TestInputAsset {
910
1026
  /** @format address */
911
1027
  address: string
912
1028
  asset: AssetState
913
1029
  }
914
1030
 
1031
+ /** Token */
915
1032
  export interface Token {
916
1033
  /** @format 32-byte-hash */
917
1034
  id: string
@@ -919,6 +1036,7 @@ export interface Token {
919
1036
  amount: string
920
1037
  }
921
1038
 
1039
+ /** Transaction */
922
1040
  export interface Transaction {
923
1041
  unsigned: UnsignedTx
924
1042
  scriptExecutionOk: boolean
@@ -928,12 +1046,14 @@ export interface Transaction {
928
1046
  scriptSignatures: string[]
929
1047
  }
930
1048
 
1049
+ /** TransactionTemplate */
931
1050
  export interface TransactionTemplate {
932
1051
  unsigned: UnsignedTx
933
1052
  inputSignatures: string[]
934
1053
  scriptSignatures: string[]
935
1054
  }
936
1055
 
1056
+ /** Transfer */
937
1057
  export interface Transfer {
938
1058
  destinations: Destination[]
939
1059
  /** @format gas */
@@ -944,6 +1064,7 @@ export interface Transfer {
944
1064
  utxosLimit?: number
945
1065
  }
946
1066
 
1067
+ /** TransferResult */
947
1068
  export interface TransferResult {
948
1069
  /** @format 32-byte-hash */
949
1070
  txId: string
@@ -953,16 +1074,20 @@ export interface TransferResult {
953
1074
  toGroup: number
954
1075
  }
955
1076
 
1077
+ /** TransferResults */
956
1078
  export interface TransferResults {
957
1079
  results: TransferResult[]
958
1080
  }
959
1081
 
1082
+ /** TxNotFound */
960
1083
  export interface TxNotFound {
961
1084
  type: string
962
1085
  }
963
1086
 
1087
+ /** TxStatus */
964
1088
  export type TxStatus = Confirmed | MemPooled | TxNotFound
965
1089
 
1090
+ /** UTXO */
966
1091
  export interface UTXO {
967
1092
  ref: OutputRef
968
1093
  /** @format uint256 */
@@ -974,25 +1099,30 @@ export interface UTXO {
974
1099
  additionalData?: string
975
1100
  }
976
1101
 
1102
+ /** UTXOs */
977
1103
  export interface UTXOs {
978
1104
  utxos: UTXO[]
979
1105
  warning?: string
980
1106
  }
981
1107
 
1108
+ /** Unauthorized */
982
1109
  export interface Unauthorized {
983
1110
  detail: string
984
1111
  }
985
1112
 
1113
+ /** Unban */
986
1114
  export interface Unban {
987
1115
  peers: string[]
988
1116
  type: string
989
1117
  }
990
1118
 
1119
+ /** Unreachable */
991
1120
  export interface Unreachable {
992
1121
  peers: string[]
993
1122
  type: string
994
1123
  }
995
1124
 
1125
+ /** UnsignedTx */
996
1126
  export interface UnsignedTx {
997
1127
  /** @format 32-byte-hash */
998
1128
  txId: string
@@ -1008,42 +1138,50 @@ export interface UnsignedTx {
1008
1138
  fixedOutputs: FixedAssetOutput[]
1009
1139
  }
1010
1140
 
1141
+ /** Val */
1011
1142
  export type Val = ValAddress | ValArray | ValBool | ValByteVec | ValI256 | ValU256
1012
1143
 
1144
+ /** ValAddress */
1013
1145
  export interface ValAddress {
1014
1146
  /** @format address */
1015
1147
  value: string
1016
1148
  type: string
1017
1149
  }
1018
1150
 
1151
+ /** ValArray */
1019
1152
  export interface ValArray {
1020
1153
  value: Val[]
1021
1154
  type: string
1022
1155
  }
1023
1156
 
1157
+ /** ValBool */
1024
1158
  export interface ValBool {
1025
1159
  value: boolean
1026
1160
  type: string
1027
1161
  }
1028
1162
 
1163
+ /** ValByteVec */
1029
1164
  export interface ValByteVec {
1030
1165
  /** @format hex-string */
1031
1166
  value: string
1032
1167
  type: string
1033
1168
  }
1034
1169
 
1170
+ /** ValI256 */
1035
1171
  export interface ValI256 {
1036
1172
  /** @format bigint */
1037
1173
  value: string
1038
1174
  type: string
1039
1175
  }
1040
1176
 
1177
+ /** ValU256 */
1041
1178
  export interface ValU256 {
1042
1179
  /** @format uint256 */
1043
1180
  value: string
1044
1181
  type: string
1045
1182
  }
1046
1183
 
1184
+ /** VerifySignature */
1047
1185
  export interface VerifySignature {
1048
1186
  /** @format hex-string */
1049
1187
  data: string
@@ -1053,6 +1191,7 @@ export interface VerifySignature {
1053
1191
  publicKey: string
1054
1192
  }
1055
1193
 
1194
+ /** WalletCreation */
1056
1195
  export interface WalletCreation {
1057
1196
  password: string
1058
1197
  walletName: string
@@ -1061,15 +1200,18 @@ export interface WalletCreation {
1061
1200
  mnemonicSize?: number
1062
1201
  }
1063
1202
 
1203
+ /** WalletCreationResult */
1064
1204
  export interface WalletCreationResult {
1065
1205
  walletName: string
1066
1206
  mnemonic: string
1067
1207
  }
1068
1208
 
1209
+ /** WalletDeletion */
1069
1210
  export interface WalletDeletion {
1070
1211
  password: string
1071
1212
  }
1072
1213
 
1214
+ /** WalletRestore */
1073
1215
  export interface WalletRestore {
1074
1216
  password: string
1075
1217
  mnemonic: string
@@ -1078,15 +1220,18 @@ export interface WalletRestore {
1078
1220
  mnemonicPassphrase?: string
1079
1221
  }
1080
1222
 
1223
+ /** WalletRestoreResult */
1081
1224
  export interface WalletRestoreResult {
1082
1225
  walletName: string
1083
1226
  }
1084
1227
 
1228
+ /** WalletStatus */
1085
1229
  export interface WalletStatus {
1086
1230
  walletName: string
1087
1231
  locked: boolean
1088
1232
  }
1089
1233
 
1234
+ /** WalletUnlock */
1090
1235
  export interface WalletUnlock {
1091
1236
  password: string
1092
1237
  mnemonicPassphrase?: string
@@ -1306,7 +1451,7 @@ export class HttpClient<SecurityDataType = unknown> {
1306
1451
 
1307
1452
  /**
1308
1453
  * @title Alephium API
1309
- * @version 2.14.0
1454
+ * @version 3.1.0
1310
1455
  * @baseUrl ../
1311
1456
  */
1312
1457
  export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
@@ -1979,6 +2124,22 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1979
2124
  ...params
1980
2125
  }).then(convertHttpResponse),
1981
2126
 
2127
+ /**
2128
+ * No description
2129
+ *
2130
+ * @tags Blockflow
2131
+ * @name GetBlockflowMainChainBlockByGhostUncleGhostUncleHash
2132
+ * @summary Get a mainchain block by ghost uncle hash
2133
+ * @request GET:/blockflow/main-chain-block-by-ghost-uncle/{ghost_uncle_hash}
2134
+ */
2135
+ getBlockflowMainChainBlockByGhostUncleGhostUncleHash: (ghostUncleHash: string, params: RequestParams = {}) =>
2136
+ this.request<BlockEntry, BadRequest | Unauthorized | NotFound | InternalServerError | ServiceUnavailable>({
2137
+ path: `/blockflow/main-chain-block-by-ghost-uncle/${ghostUncleHash}`,
2138
+ method: 'GET',
2139
+ format: 'json',
2140
+ ...params
2141
+ }).then(convertHttpResponse),
2142
+
1982
2143
  /**
1983
2144
  * No description
1984
2145
  *