-
Notifications
You must be signed in to change notification settings - Fork 169
/
openapi.yaml
6678 lines (6421 loc) · 192 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: "3.0.2"
info:
version: "5.0.22"
title: Ergo Node API
description: API docs for Ergo Node. Models are shared between all Ergo products
contact:
name: Ergo Platform Team
email: ergoplatform@protonmail.com
url: https://ergoplatform.org
license:
name: CC0 1.0 Universal
url: https://raw.githubusercontent.com/ergoplatform/ergo/master/LICENSE
servers:
- url: /
description: Local full node
- url: http://213.239.193.208:9053
description: Known public node
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: api_key
schemas:
# Objects
ErgoTransactionInput:
type: object
required:
- boxId
- spendingProof
properties:
boxId:
$ref: '#/components/schemas/TransactionBoxId'
spendingProof:
$ref: '#/components/schemas/SpendingProof'
ErgoTransactionDataInput:
type: object
required:
- boxId
properties:
boxId:
$ref: '#/components/schemas/TransactionBoxId'
ErgoTransactionUnsignedInput:
type: object
required:
- boxId
properties:
boxId:
$ref: '#/components/schemas/TransactionBoxId'
extension:
type: object
additionalProperties:
$ref: '#/components/schemas/SValue'
example:
'1': 'a2aed72ff1b139f35d1ad2938cb44c9848a34d4dcfd6d8ab717ebde40a7304f2541cf628ffc8b5c496e6161eba3f169c6dd440704b1719e0'
SpendingProof:
description: Spending proof for transaction input
type: object
required:
- proofBytes
- extension
properties:
proofBytes:
$ref: '#/components/schemas/SpendingProofBytes'
extension:
type: object
description: Variables to be put into context
additionalProperties:
$ref: '#/components/schemas/SValue'
example:
'1': 'a2aed72ff1b139f35d1ad2938cb44c9848a34d4dcfd6d8ab717ebde40a7304f2541cf628ffc8b5c496e6161eba3f169c6dd440704b1719e0'
SerializedBox:
type: object
required:
- boxId
- bytes
properties:
boxId:
$ref: '#/components/schemas/TransactionBoxId'
bytes:
$ref: '#/components/schemas/HexString'
ScriptBytes:
type: object
required:
- bytes
properties:
bytes:
$ref: '#/components/schemas/HexString'
SnapshotsInfo:
type: object
required:
- availableManifests
properties:
availableManifests:
description: Map of available manifests height -> manifestId
type: array
items:
type: object
ErgoTransactionOutput:
type: object
required:
- value
- ergoTree
- additionalRegisters
- creationHeight
properties:
boxId:
$ref: '#/components/schemas/TransactionBoxId'
value:
description: Amount of Ergo token
type: integer
format: int64
minimum: 0
example: 147
ergoTree:
$ref: '#/components/schemas/ErgoTree'
creationHeight:
description: Height the output was created at
type: integer
format: int32
example: 9149
assets:
description: Assets list in the transaction
type: array
items:
$ref: '#/components/schemas/Asset'
additionalRegisters:
$ref: '#/components/schemas/Registers'
transactionId:
$ref: '#/components/schemas/TransactionId'
index:
description: Index in the transaction outputs
type: integer
format: int32
WalletBox:
type: object
required:
- box
- confirmationsNum
- address
- creationTransaction
- onchain
- creationOutIndex
- spendingTransaction
- spendingHeight
- inclusionHeight
- spent
- scans
properties:
box:
$ref: '#/components/schemas/ErgoTransactionOutput'
confirmationsNum:
description: Number of confirmations, if the box is included into the blockchain
type: integer
format: int32
minimum: 0
example: 147
nullable: true
address:
$ref: '#/components/schemas/ErgoAddress'
creationTransaction:
description: Transaction which created the box
$ref: '#/components/schemas/ModifierId'
spendingTransaction:
description: Transaction which created the box
nullable: true
$ref: '#/components/schemas/ModifierId'
spendingHeight:
description: The height the box was spent at
type: integer
format: int32
minimum: 0
example: 147
nullable: true
inclusionHeight:
description: The height the transaction containing the box was included in a block at
type: integer
format: int32
minimum: 0
example: 147
onchain:
description: A flag signalling whether the box is created on main chain
type: boolean
example: true
spent:
description: A flag signalling whether the box was spent
type: boolean
example: false
creationOutIndex:
description: An index of a box in the creating transaction
type: integer
format: int32
example: 2
scans:
description: Scan identifiers the box relates to
type: array
items:
type: integer
example: 1
default: 1
BalanceInfo:
type: object
description: Balance information
required:
- nanoErgs
- tokens
properties:
nanoErgs:
type: integer
format: int64
description: Balance of nanoERGs
tokens:
type: array
description: Balance of tokens
items:
type: object
properties:
tokenId:
$ref: '#/components/schemas/ModifierId'
description: Identifier of the token
amount:
type: integer
format: int64
description: Amount of the token
decimals:
type: integer
description: Number of decimals of the token
name:
type: string
description: Name of the token, if any
IndexedErgoBox:
allOf:
- $ref: '#/components/schemas/ErgoTransactionOutput'
- type: object
description: Box indexed with extra information
required:
- address
- spentTransactionId
- spendingHeight
- inclusionHeight
- globalIndex
properties:
address:
$ref: '#/components/schemas/ErgoAddress'
spentTransactionId:
description: Transaction which spent the box
nullable: true
$ref: '#/components/schemas/ModifierId'
spendingHeight:
description: The height the box was spent at
type: integer
format: int32
minimum: 0
example: 147
nullable: true
inclusionHeight:
description: The height the transaction containing the box was included in a block at
type: integer
format: int32
minimum: 0
example: 147
globalIndex:
description: Global index of the output in the blockchain
type: integer
format: int64
minimum: 0
example: 83927
IndexedToken:
type: object
description: Token indexed with extra information
required:
- id
- boxId
- emissionAmount
- name
- description
- decimals
properties:
id:
description: Id of the token
$ref: '#/components/schemas/ModifierId'
boxId:
description: Id of the box that created the token
$ref: '#/components/schemas/ModifierId'
emissionAmount:
description: The total supply of the token
type: integer
format: int64
minimum: 1
example: 3500000
name:
description: The name of the token
type: string
description:
description: The description of the token
type: string
decimals:
description: The number of decimals the token supports
type: integer
format: int32
minimum: 0
example: 8
UnsignedErgoTransaction:
type: object
description: Unsigned Ergo transaction
required:
- inputs
- dataInputs
- outputs
properties:
id:
$ref: '#/components/schemas/TransactionId'
inputs:
description: Unsigned inputs of the transaction
type: array
items:
$ref: '#/components/schemas/ErgoTransactionUnsignedInput'
dataInputs:
description: Data inputs of the transaction
type: array
items:
$ref: '#/components/schemas/ErgoTransactionDataInput'
outputs:
description: Outputs of the transaction
type: array
items:
$ref: '#/components/schemas/ErgoTransactionOutput'
ErgoTransaction:
type: object
description: ErgoTransaction is an atomic operation which changes UTXO state.
required:
- inputs
- dataInputs
- outputs
properties:
id:
description: Id of the transaction
$ref: '#/components/schemas/TransactionId'
inputs:
description: Inputs, that will be spent by this transaction
type: array
items:
$ref: '#/components/schemas/ErgoTransactionInput'
dataInputs:
description: Read-only inputs, that are not going to be spent by transaction.
type: array
items:
$ref: '#/components/schemas/ErgoTransactionDataInput'
outputs:
description: Outputs of the transaction, i.e. box candidates to be created by this transaction.
type: array
items:
$ref: '#/components/schemas/ErgoTransactionOutput'
size:
description: Size of ErgoTransaction in bytes
type: integer
format: int32
WalletTransaction:
type: object
description: Transaction augmented with some useful information
required:
- inputs
- dataInputs
- outputs
- inclusionHeight
- numConfirmations
- scans
properties:
id:
$ref: '#/components/schemas/TransactionId'
inputs:
description: Transaction inputs
type: array
items:
$ref: '#/components/schemas/ErgoTransactionInput'
dataInputs:
description: Transaction data inputs
type: array
items:
$ref: '#/components/schemas/ErgoTransactionDataInput'
outputs:
description: Transaction outputs
type: array
items:
$ref: '#/components/schemas/ErgoTransactionOutput'
inclusionHeight:
description: Height of a block the transaction was included in
type: integer
format: int32
example: 20998
numConfirmations:
description: Number of transaction confirmations
type: integer
format: int32
example: 20998
scans:
description: Scan identifiers the transaction relates to
type: array
items:
type: integer
example: 1
default: 1
size:
description: Size in bytes
type: integer
format: int32
IndexedErgoTransaction:
type: object
description: Transaction indexed with extra information
required:
- id
- inputs
- dataInputs
- outputs
- inclusionHeight
- numConfirmations
- blockId
- timestamp
- index
- globalIndex
- size
properties:
id:
$ref: '#/components/schemas/TransactionId'
inputs:
description: Transaction inputs
type: array
items:
$ref: '#/components/schemas/IndexedErgoBox'
dataInputs:
description: Transaction data inputs
type: array
items:
$ref: '#/components/schemas/ErgoTransactionDataInput'
outputs:
description: Transaction outputs
type: array
items:
$ref: '#/components/schemas/IndexedErgoBox'
inclusionHeight:
description: Height of a block the transaction was included in
type: integer
format: int32
example: 20998
numConfirmations:
description: Number of transaction confirmations
type: integer
format: int32
example: 20998
blockId:
description: Id of the block the transaction was included in
allOf:
- $ref: '#/components/schemas/ModifierId'
timestamp:
$ref: '#/components/schemas/Timestamp'
index:
description: index of the transaction in the block it was included in
type: integer
format: int32
example: 3
globalIndex:
description: Global index of the transaction in the blockchain
type: integer
format: int64
example: 3565445
size:
description: Size in bytes
type: integer
format: int32
ErgoAddress:
description: Encoded Ergo Address
type: string
example: '3WwbzW6u8hKWBcL1W7kNVMr25s2UHfSBnYtwSHvrRQt7DdPuoXrt'
RewardAddress:
type: object
required:
- rewardAddress
properties:
rewardAddress:
$ref: '#/components/schemas/ErgoAddress'
RewardPubKey:
type: object
required:
- rewardPubkey
properties:
rewardPubkey:
type: string
example: '02a7955281885bf0f0ca4a48678848cad8dc5b328ce8bc1d4481d041c98e891ff3'
DlogSecret:
description: Hex-encoded big-endian 256-bits secret exponent
type: string
example: '433080ff80d0d52d7f8bfffff47f00807f44f680000949b800007f7f7ff1017f'
DhtSecret:
description: Hex-encoded big-endian 256-bits secret exponent "w" along with generators "g", "h", and group
elements "u", "v", such as g^w = u, h^w = v
type: object
required:
- secret
- g
- h
- u
- v
properties:
secret:
description: Hex-encoded big-endian 256-bits secret exponent
type: string
example: '433080ff80d0d52d7f8bfffff47f00807f44f680000949b800007f7f7ff1017f'
g:
description: Hex-encoded "g" generator for the Diffie-Hellman tuple (secp256k1 curve point)
type: string
example: '02a7955281885bf0f0ca4a48678848cad8dc5b328ce8bc1d4481d041c98e891ff3'
h:
description: Hex-encoded "h" generator for the Diffie-Hellman tuple (secp256k1 curve point)
type: string
example: '02a7955281885bf0f0ca4a48678848cad8dc5b328ce8bc1d4481d041c98e891ff3'
u:
description: Hex-encoded "u" group element of the Diffie-Hellman tuple (secp256k1 curve point)
type: string
example: '02a7955281885bf0f0ca4a48678848cad8dc5b328ce8bc1d4481d041c98e891ff3'
v:
description: Hex-encoded "v" group element of the Diffie-Hellman tuple (secp256k1 curve point)
type: string
example: '02a7955281885bf0f0ca4a48678848cad8dc5b328ce8bc1d4481d041c98e891ff3'
TransactionSigningRequest:
description: A request to sign a transaction with secrets provided
type: object
required:
- tx
- secrets
properties:
tx:
description: Unsigned transaction to sign
type: object
$ref: '#/components/schemas/UnsignedErgoTransaction'
inputsRaw:
description: Optional list of inputs to be used in serialized form
type: array
items:
type: string
description: hex-encoded serialized box bytes
dataInputsRaw:
description: Optional list of inputs to be used in serialized form
type: array
items:
type: string
description: hex-encoded serialized box bytes
hints:
description: Optional list of hints used for signing
$ref: '#/components/schemas/TransactionHintsBag'
secrets:
description: Secrets used for signing
type: object
properties:
dlog:
description: Sequence of secret exponents (DLOG secrets)
type: array
items:
$ref: '#/components/schemas/DlogSecret'
dht:
description: Sequence of secret Diffie-Hellman tuple exponents (DHT secrets)
type: array
items:
$ref: '#/components/schemas/DhtSecret'
AddressHolder:
description: Holds encoded ErgoAddress
type: object
required:
- address
properties:
address:
$ref: '#/components/schemas/ErgoAddress'
BoxesRequestHolder:
description: Holds request for wallet boxes
type: object
required:
- targetAssets
- targetBalance
properties:
targetAssets:
description: Target assets
type: array
items:
description: Pair of TokenId and Long
type: array
minItems: 2
maxItems: 2
items:
description: TokenId or Long
anyOf:
- description: TokenId
type: string
- description: Long
type: integer
targetBalance:
description: Target balance
type: integer
format: int64
RequestsHolder:
description: Holds many transaction requests and transaction fee
type: object
required:
- requests
properties:
requests:
description: Sequence of transaction requests
type: array
items:
anyOf:
- $ref: '#/components/schemas/PaymentRequest'
- $ref: '#/components/schemas/BurnTokensRequest'
- $ref: '#/components/schemas/AssetIssueRequest'
fee:
description: Transaction fee
type: integer
format: int64
example: 1000000
inputsRaw:
description: List of inputs to be used in serialized form
type: array
items:
type: string
description: hex-encoded serialized box bytes
dataInputsRaw:
description: List of data inputs to be used in serialized form
type: array
items:
type: string
description: hex-encoded serialized box bytes
SourceHolder:
type: object
required:
- source
properties:
source:
description: Sigma source to be compiled
type: string
ErgoLikeTransaction:
type: object
required:
- id
- inputs
- dataInputs
- outputs
properties:
id:
type: object
$ref: '#/components/schemas/ModifierId'
inputs:
type: array
items:
$ref: '#/components/schemas/ErgoTransactionInput'
dataInputs:
type: array
items:
$ref: '#/components/schemas/ErgoTransactionDataInput'
outputs:
type: array
items:
$ref: '#/components/schemas/ErgoTransactionOutput'
SigmaHeader:
type: object
description: Block header format used for sigma ErgoLikeContext
required:
- timestamp
- version
- adProofsRoot
- stateRoot
- transactionsRoot
- nBits
- extensionHash
- height
- parentId
- votes
properties:
id:
$ref: '#/components/schemas/ModifierId'
timestamp:
$ref: '#/components/schemas/Timestamp'
version:
$ref: '#/components/schemas/Version'
adProofsRoot:
$ref: '#/components/schemas/Digest32'
adProofsId:
$ref: '#/components/schemas/ModifierId'
stateRoot:
$ref: '#/components/schemas/AvlTreeData'
transactionsRoot:
$ref: '#/components/schemas/Digest32'
transactionsId:
$ref: '#/components/schemas/ModifierId'
nBits:
type: integer
format: int64
minimum: 0
example: 19857408
extensionHash:
$ref: '#/components/schemas/Digest32'
extensionRoot:
$ref: '#/components/schemas/Digest32'
extensionId:
$ref: '#/components/schemas/ModifierId'
height:
type: integer
format: int32
minimum: 0
example: 667
size:
type: integer
format: int32
minimum: 0
example: 667
parentId:
$ref: '#/components/schemas/ModifierId'
powSolutions:
$ref: '#/components/schemas/PowSolutions'
votes:
$ref: '#/components/schemas/Votes'
minerPk:
type: string
example: "0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"
powOnetimePk:
type: string
example: "0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"
powNonce:
$ref: '#/components/schemas/Digest32'
powDistance:
type: number
description: sigma.BigInt
example: 123456789
PreHeader:
type: object
required:
- timestamp
- version
- nBits
- height
- parentId
- votes
properties:
timestamp:
$ref: '#/components/schemas/Timestamp'
version:
$ref: '#/components/schemas/Version'
nBits:
type: integer
format: int64
minimum: 0
example: 19857408
height:
type: integer
format: int32
minimum: 0
example: 667
parentId:
$ref: '#/components/schemas/ModifierId'
votes:
$ref: '#/components/schemas/Votes'
minerPk:
type: string
example: "0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"
AvlTreeData:
required:
- digest
properties:
digest:
$ref: '#/components/schemas/Digest32'
treeFlags:
type: integer
format: int32
keyLength:
type: integer
format: int32
valueLength:
type: integer
format: int32
nullable: true
ErgoLikeContext:
required:
- lastBlockUtxoRoot
- headers
- preHeader
- dataBoxes
- boxesToSpend
- spendingTransaction
- selfIndex
- extension
- validationSettings
- costLimit
- initCost
properties:
lastBlockUtxoRoot:
type: object
description: state root before current block application
$ref: '#/components/schemas/AvlTreeData'
headers:
type: array
description: fixed number of last block headers in descending order (first header is the newest one)
items:
$ref: '#/components/schemas/SigmaHeader'
preHeader:
type: object
description: fields of block header with the current `spendingTransaction`, that can be predicted by a miner before its formation
$ref: '#/components/schemas/PreHeader'
dataBoxes:
type: array
description: boxes, that corresponds to id's of `spendingTransaction.dataInputs`
items:
type: ErgoBox
$ref: '#/components/schemas/ErgoTransactionOutput'
boxesToSpend:
type: array
description: boxes, that corresponds to id's of `spendingTransaction.inputs`
items:
type: ErgoBox
$ref: '#/components/schemas/ErgoTransactionOutput'
spendingTransaction:
type: object
description: transaction that contains `self` box
$ref: '#/components/schemas/ErgoLikeTransaction'
selfIndex:
type: integer
format: int64
description: index of the box in `boxesToSpend` that contains the script we're evaluating
extension:
type: object
description: prover-defined key-value pairs, that may be used inside a script
validationSettings:
type: string
description: validation parameters passed to Interpreter.verify to detect soft-fork conditions
example: "10e8070001e9070001ea070001eb070001ec070001ed070001ee070001ef070001f0070001f1070001f2070001f3070001f4070001f5070001f6070001f7070001"
costLimit:
type: integer
format: int64
description: hard limit on accumulated execution cost, if exceeded lead to CostLimitException to be thrown
initCost:
type: integer
format: int64
description: initial value of execution cost already accumulated before Interpreter.verify is called
ExecuteScript:
type: object
required:
- script
- namedConstants
- context
properties:
script:
description: Sigma script to be executed
type: string
namedConstants:
description: Environment for compiler
type: object
nullable: true
context:
description: Interpreter context
type: object
nullable: true
$ref: '#/components/schemas/ErgoLikeContext'
SigmaBoolean:
description: Algebraic data type of sigma proposition expressions
required:
- op
properties:
op:
type: integer
description: Sigma opCode
format: int8
h:
$ref: '#/components/schemas/HexString'
g:
$ref: '#/components/schemas/HexString'
u:
$ref: '#/components/schemas/HexString'
v:
$ref: '#/components/schemas/HexString'
condition:
type: boolean
SigmaBooleanAndPredicate:
allOf:
- $ref: '#/components/schemas/SigmaBoolean'
- type: object
- required:
- args
- properties:
args:
type: array
items:
$ref: '#/components/schemas/SigmaBoolean'
SigmaBooleanOrPredicate:
allOf:
- $ref: '#/components/schemas/SigmaBoolean'
- type: object
- required:
- args
- properties:
args:
type: array
items:
$ref: '#/components/schemas/SigmaBoolean'
SigmaBooleanThresholdPredicate:
allOf:
- $ref: '#/components/schemas/SigmaBoolean'
- type: object
- required:
- args
- properties:
args:
type: array
items:
$ref: '#/components/schemas/SigmaBoolean'
CryptoResult:
description: Result of executeWithContext request (reduceToCrypto)
type: object
required:
- value
- cost
properties:
value:
description: value of SigmaProp type which represents a statement verifiable via sigma protocol
$ref: '#/components/schemas/SigmaBoolean'
cost:
description: Estimated cost of contract execution
type: integer
format: int64
example:
value:
op: -45
condition: true
cost: 10
ScanningPredicate:
type: object
required:
- predicate
properties:
predicate:
type: string
ContainsPredicate:
allOf:
- $ref: '#/components/schemas/ScanningPredicate'
- type: object
- required:
- bytes
- properties:
register:
type: string
bytes:
type: string
EqualsPredicate:
allOf:
- $ref: '#/components/schemas/ScanningPredicate'
- type: object
- required:
- bytes
- properties:
register:
type: string