@super-protocol/sdk-js 0.9.0-beta.2 → 0.10.0-beta.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/build/contracts/app.json
CHANGED
|
@@ -3318,6 +3318,31 @@
|
|
|
3318
3318
|
"name": "OrderAwaitingPaymentChanged",
|
|
3319
3319
|
"type": "event"
|
|
3320
3320
|
},
|
|
3321
|
+
{
|
|
3322
|
+
"anonymous": false,
|
|
3323
|
+
"inputs": [
|
|
3324
|
+
{
|
|
3325
|
+
"indexed": true,
|
|
3326
|
+
"internalType": "address",
|
|
3327
|
+
"name": "consumer",
|
|
3328
|
+
"type": "address"
|
|
3329
|
+
},
|
|
3330
|
+
{
|
|
3331
|
+
"indexed": true,
|
|
3332
|
+
"internalType": "uint256",
|
|
3333
|
+
"name": "orderId",
|
|
3334
|
+
"type": "uint256"
|
|
3335
|
+
},
|
|
3336
|
+
{
|
|
3337
|
+
"indexed": false,
|
|
3338
|
+
"internalType": "uint256",
|
|
3339
|
+
"name": "change",
|
|
3340
|
+
"type": "uint256"
|
|
3341
|
+
}
|
|
3342
|
+
],
|
|
3343
|
+
"name": "OrderChangedWithdrawn",
|
|
3344
|
+
"type": "event"
|
|
3345
|
+
},
|
|
3321
3346
|
{
|
|
3322
3347
|
"anonymous": false,
|
|
3323
3348
|
"inputs": [
|
|
@@ -3349,6 +3374,31 @@
|
|
|
3349
3374
|
"name": "OrderCreated",
|
|
3350
3375
|
"type": "event"
|
|
3351
3376
|
},
|
|
3377
|
+
{
|
|
3378
|
+
"anonymous": false,
|
|
3379
|
+
"inputs": [
|
|
3380
|
+
{
|
|
3381
|
+
"indexed": true,
|
|
3382
|
+
"internalType": "address",
|
|
3383
|
+
"name": "consumer",
|
|
3384
|
+
"type": "address"
|
|
3385
|
+
},
|
|
3386
|
+
{
|
|
3387
|
+
"indexed": true,
|
|
3388
|
+
"internalType": "uint256",
|
|
3389
|
+
"name": "orderId",
|
|
3390
|
+
"type": "uint256"
|
|
3391
|
+
},
|
|
3392
|
+
{
|
|
3393
|
+
"indexed": false,
|
|
3394
|
+
"internalType": "uint256",
|
|
3395
|
+
"name": "amount",
|
|
3396
|
+
"type": "uint256"
|
|
3397
|
+
}
|
|
3398
|
+
],
|
|
3399
|
+
"name": "OrderDepositRefilled",
|
|
3400
|
+
"type": "event"
|
|
3401
|
+
},
|
|
3352
3402
|
{
|
|
3353
3403
|
"anonymous": false,
|
|
3354
3404
|
"inputs": [
|
|
@@ -3418,6 +3468,31 @@
|
|
|
3418
3468
|
"name": "OrderPriceUpdated",
|
|
3419
3469
|
"type": "event"
|
|
3420
3470
|
},
|
|
3471
|
+
{
|
|
3472
|
+
"anonymous": false,
|
|
3473
|
+
"inputs": [
|
|
3474
|
+
{
|
|
3475
|
+
"indexed": true,
|
|
3476
|
+
"internalType": "address",
|
|
3477
|
+
"name": "tokenReceiver",
|
|
3478
|
+
"type": "address"
|
|
3479
|
+
},
|
|
3480
|
+
{
|
|
3481
|
+
"indexed": true,
|
|
3482
|
+
"internalType": "uint256",
|
|
3483
|
+
"name": "orderId",
|
|
3484
|
+
"type": "uint256"
|
|
3485
|
+
},
|
|
3486
|
+
{
|
|
3487
|
+
"indexed": false,
|
|
3488
|
+
"internalType": "uint256",
|
|
3489
|
+
"name": "profit",
|
|
3490
|
+
"type": "uint256"
|
|
3491
|
+
}
|
|
3492
|
+
],
|
|
3493
|
+
"name": "OrderProfitWithdrawn",
|
|
3494
|
+
"type": "event"
|
|
3495
|
+
},
|
|
3421
3496
|
{
|
|
3422
3497
|
"anonymous": false,
|
|
3423
3498
|
"inputs": [
|
|
@@ -3594,94 +3669,6 @@
|
|
|
3594
3669
|
"stateMutability": "nonpayable",
|
|
3595
3670
|
"type": "function"
|
|
3596
3671
|
},
|
|
3597
|
-
{
|
|
3598
|
-
"inputs": [
|
|
3599
|
-
{
|
|
3600
|
-
"internalType": "address",
|
|
3601
|
-
"name": "consumer",
|
|
3602
|
-
"type": "address"
|
|
3603
|
-
},
|
|
3604
|
-
{
|
|
3605
|
-
"components": [
|
|
3606
|
-
{
|
|
3607
|
-
"internalType": "uint256",
|
|
3608
|
-
"name": "offerId",
|
|
3609
|
-
"type": "uint256"
|
|
3610
|
-
},
|
|
3611
|
-
{
|
|
3612
|
-
"internalType": "string",
|
|
3613
|
-
"name": "resultPublicKey",
|
|
3614
|
-
"type": "string"
|
|
3615
|
-
},
|
|
3616
|
-
{
|
|
3617
|
-
"internalType": "string",
|
|
3618
|
-
"name": "encryptedRequirements",
|
|
3619
|
-
"type": "string"
|
|
3620
|
-
},
|
|
3621
|
-
{
|
|
3622
|
-
"internalType": "string",
|
|
3623
|
-
"name": "encryptedArgs",
|
|
3624
|
-
"type": "string"
|
|
3625
|
-
},
|
|
3626
|
-
{
|
|
3627
|
-
"internalType": "enum OrderStatus",
|
|
3628
|
-
"name": "status",
|
|
3629
|
-
"type": "uint8"
|
|
3630
|
-
},
|
|
3631
|
-
{
|
|
3632
|
-
"components": [
|
|
3633
|
-
{
|
|
3634
|
-
"internalType": "uint256",
|
|
3635
|
-
"name": "slots",
|
|
3636
|
-
"type": "uint256"
|
|
3637
|
-
},
|
|
3638
|
-
{
|
|
3639
|
-
"internalType": "uint256[]",
|
|
3640
|
-
"name": "inputOffers",
|
|
3641
|
-
"type": "uint256[]"
|
|
3642
|
-
},
|
|
3643
|
-
{
|
|
3644
|
-
"internalType": "uint256[]",
|
|
3645
|
-
"name": "selectedOffers",
|
|
3646
|
-
"type": "uint256[]"
|
|
3647
|
-
}
|
|
3648
|
-
],
|
|
3649
|
-
"internalType": "struct OrderArgs",
|
|
3650
|
-
"name": "args",
|
|
3651
|
-
"type": "tuple"
|
|
3652
|
-
}
|
|
3653
|
-
],
|
|
3654
|
-
"internalType": "struct OrderInfo",
|
|
3655
|
-
"name": "info",
|
|
3656
|
-
"type": "tuple"
|
|
3657
|
-
},
|
|
3658
|
-
{
|
|
3659
|
-
"internalType": "uint256",
|
|
3660
|
-
"name": "holdDeposit",
|
|
3661
|
-
"type": "uint256"
|
|
3662
|
-
},
|
|
3663
|
-
{
|
|
3664
|
-
"internalType": "bool",
|
|
3665
|
-
"name": "suspended",
|
|
3666
|
-
"type": "bool"
|
|
3667
|
-
},
|
|
3668
|
-
{
|
|
3669
|
-
"internalType": "bytes32",
|
|
3670
|
-
"name": "externalId",
|
|
3671
|
-
"type": "bytes32"
|
|
3672
|
-
}
|
|
3673
|
-
],
|
|
3674
|
-
"name": "createOrderByApp",
|
|
3675
|
-
"outputs": [
|
|
3676
|
-
{
|
|
3677
|
-
"internalType": "uint256",
|
|
3678
|
-
"name": "",
|
|
3679
|
-
"type": "uint256"
|
|
3680
|
-
}
|
|
3681
|
-
],
|
|
3682
|
-
"stateMutability": "nonpayable",
|
|
3683
|
-
"type": "function"
|
|
3684
|
-
},
|
|
3685
3672
|
{
|
|
3686
3673
|
"inputs": [
|
|
3687
3674
|
{
|
|
@@ -3780,14 +3767,55 @@
|
|
|
3780
3767
|
{
|
|
3781
3768
|
"inputs": [
|
|
3782
3769
|
{
|
|
3783
|
-
"internalType": "
|
|
3784
|
-
"name": "
|
|
3785
|
-
"type": "
|
|
3786
|
-
}
|
|
3770
|
+
"internalType": "uint256",
|
|
3771
|
+
"name": "orderId",
|
|
3772
|
+
"type": "uint256"
|
|
3773
|
+
}
|
|
3774
|
+
],
|
|
3775
|
+
"name": "getAwaitingPayment",
|
|
3776
|
+
"outputs": [
|
|
3777
|
+
{
|
|
3778
|
+
"internalType": "bool",
|
|
3779
|
+
"name": "",
|
|
3780
|
+
"type": "bool"
|
|
3781
|
+
}
|
|
3782
|
+
],
|
|
3783
|
+
"stateMutability": "view",
|
|
3784
|
+
"type": "function"
|
|
3785
|
+
},
|
|
3786
|
+
{
|
|
3787
|
+
"inputs": [
|
|
3787
3788
|
{
|
|
3788
3789
|
"internalType": "uint256",
|
|
3789
|
-
"name": "
|
|
3790
|
+
"name": "orderId",
|
|
3791
|
+
"type": "uint256"
|
|
3792
|
+
}
|
|
3793
|
+
],
|
|
3794
|
+
"name": "getDepositSpent",
|
|
3795
|
+
"outputs": [
|
|
3796
|
+
{
|
|
3797
|
+
"internalType": "uint256",
|
|
3798
|
+
"name": "",
|
|
3799
|
+
"type": "uint256"
|
|
3800
|
+
}
|
|
3801
|
+
],
|
|
3802
|
+
"stateMutability": "view",
|
|
3803
|
+
"type": "function"
|
|
3804
|
+
},
|
|
3805
|
+
{
|
|
3806
|
+
"inputs": [
|
|
3807
|
+
{
|
|
3808
|
+
"internalType": "uint256",
|
|
3809
|
+
"name": "orderId",
|
|
3790
3810
|
"type": "uint256"
|
|
3811
|
+
}
|
|
3812
|
+
],
|
|
3813
|
+
"name": "getOrder",
|
|
3814
|
+
"outputs": [
|
|
3815
|
+
{
|
|
3816
|
+
"internalType": "address",
|
|
3817
|
+
"name": "",
|
|
3818
|
+
"type": "address"
|
|
3791
3819
|
},
|
|
3792
3820
|
{
|
|
3793
3821
|
"components": [
|
|
@@ -3840,41 +3868,28 @@
|
|
|
3840
3868
|
}
|
|
3841
3869
|
],
|
|
3842
3870
|
"internalType": "struct OrderInfo",
|
|
3843
|
-
"name": "
|
|
3871
|
+
"name": "",
|
|
3844
3872
|
"type": "tuple"
|
|
3845
3873
|
},
|
|
3846
3874
|
{
|
|
3847
3875
|
"components": [
|
|
3848
3876
|
{
|
|
3849
|
-
"internalType": "
|
|
3850
|
-
"name": "
|
|
3851
|
-
"type": "
|
|
3852
|
-
},
|
|
3853
|
-
{
|
|
3854
|
-
"internalType": "bytes32",
|
|
3855
|
-
"name": "externalId",
|
|
3856
|
-
"type": "bytes32"
|
|
3877
|
+
"internalType": "string",
|
|
3878
|
+
"name": "encryptedResult",
|
|
3879
|
+
"type": "string"
|
|
3857
3880
|
},
|
|
3858
3881
|
{
|
|
3859
3882
|
"internalType": "uint256",
|
|
3860
|
-
"name": "
|
|
3883
|
+
"name": "orderPrice",
|
|
3861
3884
|
"type": "uint256"
|
|
3862
3885
|
}
|
|
3863
3886
|
],
|
|
3864
|
-
"internalType": "struct
|
|
3865
|
-
"name": "params",
|
|
3866
|
-
"type": "tuple"
|
|
3867
|
-
}
|
|
3868
|
-
],
|
|
3869
|
-
"name": "createSubOrderByApp",
|
|
3870
|
-
"outputs": [
|
|
3871
|
-
{
|
|
3872
|
-
"internalType": "uint256",
|
|
3887
|
+
"internalType": "struct OrderResult",
|
|
3873
3888
|
"name": "",
|
|
3874
|
-
"type": "
|
|
3889
|
+
"type": "tuple"
|
|
3875
3890
|
}
|
|
3876
3891
|
],
|
|
3877
|
-
"stateMutability": "
|
|
3892
|
+
"stateMutability": "view",
|
|
3878
3893
|
"type": "function"
|
|
3879
3894
|
},
|
|
3880
3895
|
{
|
|
@@ -3885,9 +3900,15 @@
|
|
|
3885
3900
|
"type": "uint256"
|
|
3886
3901
|
}
|
|
3887
3902
|
],
|
|
3888
|
-
"name": "
|
|
3889
|
-
"outputs": [
|
|
3890
|
-
|
|
3903
|
+
"name": "getOrderChangeWithdrawn",
|
|
3904
|
+
"outputs": [
|
|
3905
|
+
{
|
|
3906
|
+
"internalType": "bool",
|
|
3907
|
+
"name": "",
|
|
3908
|
+
"type": "bool"
|
|
3909
|
+
}
|
|
3910
|
+
],
|
|
3911
|
+
"stateMutability": "view",
|
|
3891
3912
|
"type": "function"
|
|
3892
3913
|
},
|
|
3893
3914
|
{
|
|
@@ -3896,16 +3917,17 @@
|
|
|
3896
3917
|
"internalType": "uint256",
|
|
3897
3918
|
"name": "orderId",
|
|
3898
3919
|
"type": "uint256"
|
|
3899
|
-
},
|
|
3900
|
-
{
|
|
3901
|
-
"internalType": "bool",
|
|
3902
|
-
"name": "value",
|
|
3903
|
-
"type": "bool"
|
|
3904
3920
|
}
|
|
3905
3921
|
],
|
|
3906
|
-
"name": "
|
|
3907
|
-
"outputs": [
|
|
3908
|
-
|
|
3922
|
+
"name": "getOrderHoldDeposit",
|
|
3923
|
+
"outputs": [
|
|
3924
|
+
{
|
|
3925
|
+
"internalType": "uint256",
|
|
3926
|
+
"name": "",
|
|
3927
|
+
"type": "uint256"
|
|
3928
|
+
}
|
|
3929
|
+
],
|
|
3930
|
+
"stateMutability": "view",
|
|
3909
3931
|
"type": "function"
|
|
3910
3932
|
},
|
|
3911
3933
|
{
|
|
@@ -3914,16 +3936,39 @@
|
|
|
3914
3936
|
"internalType": "uint256",
|
|
3915
3937
|
"name": "orderId",
|
|
3916
3938
|
"type": "uint256"
|
|
3917
|
-
}
|
|
3939
|
+
}
|
|
3940
|
+
],
|
|
3941
|
+
"name": "getOrderOrigins",
|
|
3942
|
+
"outputs": [
|
|
3918
3943
|
{
|
|
3919
|
-
"
|
|
3920
|
-
|
|
3921
|
-
|
|
3944
|
+
"components": [
|
|
3945
|
+
{
|
|
3946
|
+
"internalType": "uint256",
|
|
3947
|
+
"name": "createdDate",
|
|
3948
|
+
"type": "uint256"
|
|
3949
|
+
},
|
|
3950
|
+
{
|
|
3951
|
+
"internalType": "address",
|
|
3952
|
+
"name": "createdBy",
|
|
3953
|
+
"type": "address"
|
|
3954
|
+
},
|
|
3955
|
+
{
|
|
3956
|
+
"internalType": "uint256",
|
|
3957
|
+
"name": "modifiedDate",
|
|
3958
|
+
"type": "uint256"
|
|
3959
|
+
},
|
|
3960
|
+
{
|
|
3961
|
+
"internalType": "address",
|
|
3962
|
+
"name": "modifiedBy",
|
|
3963
|
+
"type": "address"
|
|
3964
|
+
}
|
|
3965
|
+
],
|
|
3966
|
+
"internalType": "struct Origins",
|
|
3967
|
+
"name": "",
|
|
3968
|
+
"type": "tuple"
|
|
3922
3969
|
}
|
|
3923
3970
|
],
|
|
3924
|
-
"
|
|
3925
|
-
"outputs": [],
|
|
3926
|
-
"stateMutability": "nonpayable",
|
|
3971
|
+
"stateMutability": "view",
|
|
3927
3972
|
"type": "function"
|
|
3928
3973
|
},
|
|
3929
3974
|
{
|
|
@@ -3934,27 +3979,15 @@
|
|
|
3934
3979
|
"type": "uint256"
|
|
3935
3980
|
}
|
|
3936
3981
|
],
|
|
3937
|
-
"name": "
|
|
3938
|
-
"outputs": [
|
|
3939
|
-
"stateMutability": "nonpayable",
|
|
3940
|
-
"type": "function"
|
|
3941
|
-
},
|
|
3942
|
-
{
|
|
3943
|
-
"inputs": [
|
|
3944
|
-
{
|
|
3945
|
-
"internalType": "address",
|
|
3946
|
-
"name": "sender",
|
|
3947
|
-
"type": "address"
|
|
3948
|
-
},
|
|
3982
|
+
"name": "getOrderParentOrder",
|
|
3983
|
+
"outputs": [
|
|
3949
3984
|
{
|
|
3950
3985
|
"internalType": "uint256",
|
|
3951
|
-
"name": "
|
|
3986
|
+
"name": "",
|
|
3952
3987
|
"type": "uint256"
|
|
3953
3988
|
}
|
|
3954
3989
|
],
|
|
3955
|
-
"
|
|
3956
|
-
"outputs": [],
|
|
3957
|
-
"stateMutability": "nonpayable",
|
|
3990
|
+
"stateMutability": "view",
|
|
3958
3991
|
"type": "function"
|
|
3959
3992
|
},
|
|
3960
3993
|
{
|
|
@@ -3963,16 +3996,17 @@
|
|
|
3963
3996
|
"internalType": "uint256",
|
|
3964
3997
|
"name": "orderId",
|
|
3965
3998
|
"type": "uint256"
|
|
3966
|
-
}
|
|
3999
|
+
}
|
|
4000
|
+
],
|
|
4001
|
+
"name": "getOrderPrice",
|
|
4002
|
+
"outputs": [
|
|
3967
4003
|
{
|
|
3968
4004
|
"internalType": "uint256",
|
|
3969
|
-
"name": "
|
|
4005
|
+
"name": "",
|
|
3970
4006
|
"type": "uint256"
|
|
3971
4007
|
}
|
|
3972
4008
|
],
|
|
3973
|
-
"
|
|
3974
|
-
"outputs": [],
|
|
3975
|
-
"stateMutability": "nonpayable",
|
|
4009
|
+
"stateMutability": "view",
|
|
3976
4010
|
"type": "function"
|
|
3977
4011
|
},
|
|
3978
4012
|
{
|
|
@@ -3981,92 +4015,88 @@
|
|
|
3981
4015
|
"internalType": "uint256",
|
|
3982
4016
|
"name": "orderId",
|
|
3983
4017
|
"type": "uint256"
|
|
3984
|
-
}
|
|
4018
|
+
}
|
|
4019
|
+
],
|
|
4020
|
+
"name": "getOrderProfitWithdrawn",
|
|
4021
|
+
"outputs": [
|
|
3985
4022
|
{
|
|
3986
|
-
"internalType": "
|
|
3987
|
-
"name": "
|
|
3988
|
-
"type": "
|
|
4023
|
+
"internalType": "bool",
|
|
4024
|
+
"name": "",
|
|
4025
|
+
"type": "bool"
|
|
3989
4026
|
}
|
|
3990
4027
|
],
|
|
3991
|
-
"
|
|
3992
|
-
"outputs": [],
|
|
3993
|
-
"stateMutability": "nonpayable",
|
|
4028
|
+
"stateMutability": "view",
|
|
3994
4029
|
"type": "function"
|
|
3995
4030
|
},
|
|
3996
4031
|
{
|
|
3997
|
-
"anonymous": false,
|
|
3998
4032
|
"inputs": [
|
|
3999
4033
|
{
|
|
4000
|
-
"indexed": true,
|
|
4001
|
-
"internalType": "address",
|
|
4002
|
-
"name": "consumer",
|
|
4003
|
-
"type": "address"
|
|
4004
|
-
},
|
|
4005
|
-
{
|
|
4006
|
-
"indexed": true,
|
|
4007
4034
|
"internalType": "uint256",
|
|
4008
4035
|
"name": "orderId",
|
|
4009
4036
|
"type": "uint256"
|
|
4010
|
-
}
|
|
4037
|
+
}
|
|
4038
|
+
],
|
|
4039
|
+
"name": "getOrderSubOrders",
|
|
4040
|
+
"outputs": [
|
|
4041
|
+
{
|
|
4042
|
+
"internalType": "uint256[]",
|
|
4043
|
+
"name": "",
|
|
4044
|
+
"type": "uint256[]"
|
|
4045
|
+
}
|
|
4046
|
+
],
|
|
4047
|
+
"stateMutability": "view",
|
|
4048
|
+
"type": "function"
|
|
4049
|
+
},
|
|
4050
|
+
{
|
|
4051
|
+
"inputs": [],
|
|
4052
|
+
"name": "getOrdersCount",
|
|
4053
|
+
"outputs": [
|
|
4011
4054
|
{
|
|
4012
|
-
"indexed": false,
|
|
4013
4055
|
"internalType": "uint256",
|
|
4014
|
-
"name": "
|
|
4056
|
+
"name": "",
|
|
4015
4057
|
"type": "uint256"
|
|
4016
4058
|
}
|
|
4017
4059
|
],
|
|
4018
|
-
"
|
|
4019
|
-
"type": "
|
|
4060
|
+
"stateMutability": "view",
|
|
4061
|
+
"type": "function"
|
|
4020
4062
|
},
|
|
4021
4063
|
{
|
|
4022
|
-
"anonymous": false,
|
|
4023
4064
|
"inputs": [
|
|
4024
4065
|
{
|
|
4025
|
-
"indexed": true,
|
|
4026
|
-
"internalType": "address",
|
|
4027
|
-
"name": "consumer",
|
|
4028
|
-
"type": "address"
|
|
4029
|
-
},
|
|
4030
|
-
{
|
|
4031
|
-
"indexed": true,
|
|
4032
4066
|
"internalType": "uint256",
|
|
4033
4067
|
"name": "orderId",
|
|
4034
4068
|
"type": "uint256"
|
|
4035
|
-
}
|
|
4069
|
+
}
|
|
4070
|
+
],
|
|
4071
|
+
"name": "getStartDate",
|
|
4072
|
+
"outputs": [
|
|
4036
4073
|
{
|
|
4037
|
-
"indexed": false,
|
|
4038
4074
|
"internalType": "uint256",
|
|
4039
|
-
"name": "
|
|
4075
|
+
"name": "",
|
|
4040
4076
|
"type": "uint256"
|
|
4041
4077
|
}
|
|
4042
4078
|
],
|
|
4043
|
-
"
|
|
4044
|
-
"type": "
|
|
4079
|
+
"stateMutability": "view",
|
|
4080
|
+
"type": "function"
|
|
4045
4081
|
},
|
|
4046
4082
|
{
|
|
4047
|
-
"anonymous": false,
|
|
4048
4083
|
"inputs": [
|
|
4049
4084
|
{
|
|
4050
|
-
"indexed": true,
|
|
4051
|
-
"internalType": "address",
|
|
4052
|
-
"name": "tokenReceiver",
|
|
4053
|
-
"type": "address"
|
|
4054
|
-
},
|
|
4055
|
-
{
|
|
4056
|
-
"indexed": true,
|
|
4057
4085
|
"internalType": "uint256",
|
|
4058
4086
|
"name": "orderId",
|
|
4059
4087
|
"type": "uint256"
|
|
4060
|
-
}
|
|
4088
|
+
}
|
|
4089
|
+
],
|
|
4090
|
+
"name": "isOrderCompleted",
|
|
4091
|
+
"outputs": [
|
|
4061
4092
|
{
|
|
4062
|
-
"
|
|
4063
|
-
"
|
|
4064
|
-
"
|
|
4065
|
-
"type": "uint256"
|
|
4093
|
+
"internalType": "bool",
|
|
4094
|
+
"name": "",
|
|
4095
|
+
"type": "bool"
|
|
4066
4096
|
}
|
|
4067
4097
|
],
|
|
4068
|
-
"
|
|
4069
|
-
"type": "
|
|
4098
|
+
"stateMutability": "view",
|
|
4099
|
+
"type": "function"
|
|
4070
4100
|
},
|
|
4071
4101
|
{
|
|
4072
4102
|
"inputs": [
|
|
@@ -4074,16 +4104,17 @@
|
|
|
4074
4104
|
"internalType": "uint256",
|
|
4075
4105
|
"name": "orderId",
|
|
4076
4106
|
"type": "uint256"
|
|
4077
|
-
}
|
|
4107
|
+
}
|
|
4108
|
+
],
|
|
4109
|
+
"name": "isOrderStarted",
|
|
4110
|
+
"outputs": [
|
|
4078
4111
|
{
|
|
4079
|
-
"internalType": "
|
|
4080
|
-
"name": "
|
|
4081
|
-
"type": "
|
|
4112
|
+
"internalType": "bool",
|
|
4113
|
+
"name": "",
|
|
4114
|
+
"type": "bool"
|
|
4082
4115
|
}
|
|
4083
4116
|
],
|
|
4084
|
-
"
|
|
4085
|
-
"outputs": [],
|
|
4086
|
-
"stateMutability": "nonpayable",
|
|
4117
|
+
"stateMutability": "view",
|
|
4087
4118
|
"type": "function"
|
|
4088
4119
|
},
|
|
4089
4120
|
{
|
|
@@ -4094,9 +4125,15 @@
|
|
|
4094
4125
|
"type": "uint256"
|
|
4095
4126
|
}
|
|
4096
4127
|
],
|
|
4097
|
-
"name": "
|
|
4098
|
-
"outputs": [
|
|
4099
|
-
|
|
4128
|
+
"name": "isOrderValid",
|
|
4129
|
+
"outputs": [
|
|
4130
|
+
{
|
|
4131
|
+
"internalType": "bool",
|
|
4132
|
+
"name": "",
|
|
4133
|
+
"type": "bool"
|
|
4134
|
+
}
|
|
4135
|
+
],
|
|
4136
|
+
"stateMutability": "view",
|
|
4100
4137
|
"type": "function"
|
|
4101
4138
|
},
|
|
4102
4139
|
{
|
|
@@ -4107,7 +4144,7 @@
|
|
|
4107
4144
|
"type": "uint256"
|
|
4108
4145
|
}
|
|
4109
4146
|
],
|
|
4110
|
-
"name": "
|
|
4147
|
+
"name": "processOrder",
|
|
4111
4148
|
"outputs": [],
|
|
4112
4149
|
"stateMutability": "nonpayable",
|
|
4113
4150
|
"type": "function"
|
|
@@ -4118,17 +4155,16 @@
|
|
|
4118
4155
|
"internalType": "uint256",
|
|
4119
4156
|
"name": "orderId",
|
|
4120
4157
|
"type": "uint256"
|
|
4121
|
-
}
|
|
4122
|
-
],
|
|
4123
|
-
"name": "calculateTotalDepositSpent",
|
|
4124
|
-
"outputs": [
|
|
4158
|
+
},
|
|
4125
4159
|
{
|
|
4126
4160
|
"internalType": "uint256",
|
|
4127
|
-
"name": "
|
|
4161
|
+
"name": "amount",
|
|
4128
4162
|
"type": "uint256"
|
|
4129
4163
|
}
|
|
4130
4164
|
],
|
|
4131
|
-
"
|
|
4165
|
+
"name": "refillOrder",
|
|
4166
|
+
"outputs": [],
|
|
4167
|
+
"stateMutability": "nonpayable",
|
|
4132
4168
|
"type": "function"
|
|
4133
4169
|
},
|
|
4134
4170
|
{
|
|
@@ -4137,17 +4173,16 @@
|
|
|
4137
4173
|
"internalType": "uint256",
|
|
4138
4174
|
"name": "orderId",
|
|
4139
4175
|
"type": "uint256"
|
|
4140
|
-
}
|
|
4141
|
-
],
|
|
4142
|
-
"name": "calculateTotalDepositUnspent",
|
|
4143
|
-
"outputs": [
|
|
4176
|
+
},
|
|
4144
4177
|
{
|
|
4145
|
-
"internalType": "
|
|
4146
|
-
"name": "
|
|
4147
|
-
"type": "
|
|
4178
|
+
"internalType": "bool",
|
|
4179
|
+
"name": "value",
|
|
4180
|
+
"type": "bool"
|
|
4148
4181
|
}
|
|
4149
4182
|
],
|
|
4150
|
-
"
|
|
4183
|
+
"name": "setAwaitingPayment",
|
|
4184
|
+
"outputs": [],
|
|
4185
|
+
"stateMutability": "nonpayable",
|
|
4151
4186
|
"type": "function"
|
|
4152
4187
|
},
|
|
4153
4188
|
{
|
|
@@ -4156,17 +4191,16 @@
|
|
|
4156
4191
|
"internalType": "uint256",
|
|
4157
4192
|
"name": "orderId",
|
|
4158
4193
|
"type": "uint256"
|
|
4159
|
-
}
|
|
4160
|
-
],
|
|
4161
|
-
"name": "calculateTotalHoldDeposit",
|
|
4162
|
-
"outputs": [
|
|
4194
|
+
},
|
|
4163
4195
|
{
|
|
4164
4196
|
"internalType": "uint256",
|
|
4165
|
-
"name": "
|
|
4197
|
+
"name": "value",
|
|
4166
4198
|
"type": "uint256"
|
|
4167
4199
|
}
|
|
4168
4200
|
],
|
|
4169
|
-
"
|
|
4201
|
+
"name": "setDepositSpent",
|
|
4202
|
+
"outputs": [],
|
|
4203
|
+
"stateMutability": "nonpayable",
|
|
4170
4204
|
"type": "function"
|
|
4171
4205
|
},
|
|
4172
4206
|
{
|
|
@@ -4177,15 +4211,9 @@
|
|
|
4177
4211
|
"type": "uint256"
|
|
4178
4212
|
}
|
|
4179
4213
|
],
|
|
4180
|
-
"name": "
|
|
4181
|
-
"outputs": [
|
|
4182
|
-
|
|
4183
|
-
"internalType": "bool",
|
|
4184
|
-
"name": "",
|
|
4185
|
-
"type": "bool"
|
|
4186
|
-
}
|
|
4187
|
-
],
|
|
4188
|
-
"stateMutability": "view",
|
|
4214
|
+
"name": "startOrder",
|
|
4215
|
+
"outputs": [],
|
|
4216
|
+
"stateMutability": "nonpayable",
|
|
4189
4217
|
"type": "function"
|
|
4190
4218
|
},
|
|
4191
4219
|
{
|
|
@@ -4194,17 +4222,16 @@
|
|
|
4194
4222
|
"internalType": "uint256",
|
|
4195
4223
|
"name": "orderId",
|
|
4196
4224
|
"type": "uint256"
|
|
4197
|
-
}
|
|
4198
|
-
],
|
|
4199
|
-
"name": "getDepositSpent",
|
|
4200
|
-
"outputs": [
|
|
4225
|
+
},
|
|
4201
4226
|
{
|
|
4202
4227
|
"internalType": "uint256",
|
|
4203
|
-
"name": "",
|
|
4228
|
+
"name": "orderPrice",
|
|
4204
4229
|
"type": "uint256"
|
|
4205
4230
|
}
|
|
4206
4231
|
],
|
|
4207
|
-
"
|
|
4232
|
+
"name": "updateOrderPrice",
|
|
4233
|
+
"outputs": [],
|
|
4234
|
+
"stateMutability": "nonpayable",
|
|
4208
4235
|
"type": "function"
|
|
4209
4236
|
},
|
|
4210
4237
|
{
|
|
@@ -4213,294 +4240,16 @@
|
|
|
4213
4240
|
"internalType": "uint256",
|
|
4214
4241
|
"name": "orderId",
|
|
4215
4242
|
"type": "uint256"
|
|
4216
|
-
}
|
|
4217
|
-
],
|
|
4218
|
-
"name": "getOrder",
|
|
4219
|
-
"outputs": [
|
|
4220
|
-
{
|
|
4221
|
-
"internalType": "address",
|
|
4222
|
-
"name": "",
|
|
4223
|
-
"type": "address"
|
|
4224
|
-
},
|
|
4225
|
-
{
|
|
4226
|
-
"components": [
|
|
4227
|
-
{
|
|
4228
|
-
"internalType": "uint256",
|
|
4229
|
-
"name": "offerId",
|
|
4230
|
-
"type": "uint256"
|
|
4231
|
-
},
|
|
4232
|
-
{
|
|
4233
|
-
"internalType": "string",
|
|
4234
|
-
"name": "resultPublicKey",
|
|
4235
|
-
"type": "string"
|
|
4236
|
-
},
|
|
4237
|
-
{
|
|
4238
|
-
"internalType": "string",
|
|
4239
|
-
"name": "encryptedRequirements",
|
|
4240
|
-
"type": "string"
|
|
4241
|
-
},
|
|
4242
|
-
{
|
|
4243
|
-
"internalType": "string",
|
|
4244
|
-
"name": "encryptedArgs",
|
|
4245
|
-
"type": "string"
|
|
4246
|
-
},
|
|
4247
|
-
{
|
|
4248
|
-
"internalType": "enum OrderStatus",
|
|
4249
|
-
"name": "status",
|
|
4250
|
-
"type": "uint8"
|
|
4251
|
-
},
|
|
4252
|
-
{
|
|
4253
|
-
"components": [
|
|
4254
|
-
{
|
|
4255
|
-
"internalType": "uint256",
|
|
4256
|
-
"name": "slots",
|
|
4257
|
-
"type": "uint256"
|
|
4258
|
-
},
|
|
4259
|
-
{
|
|
4260
|
-
"internalType": "uint256[]",
|
|
4261
|
-
"name": "inputOffers",
|
|
4262
|
-
"type": "uint256[]"
|
|
4263
|
-
},
|
|
4264
|
-
{
|
|
4265
|
-
"internalType": "uint256[]",
|
|
4266
|
-
"name": "selectedOffers",
|
|
4267
|
-
"type": "uint256[]"
|
|
4268
|
-
}
|
|
4269
|
-
],
|
|
4270
|
-
"internalType": "struct OrderArgs",
|
|
4271
|
-
"name": "args",
|
|
4272
|
-
"type": "tuple"
|
|
4273
|
-
}
|
|
4274
|
-
],
|
|
4275
|
-
"internalType": "struct OrderInfo",
|
|
4276
|
-
"name": "",
|
|
4277
|
-
"type": "tuple"
|
|
4278
4243
|
},
|
|
4279
4244
|
{
|
|
4280
|
-
"
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
"name": "encryptedResult",
|
|
4284
|
-
"type": "string"
|
|
4285
|
-
},
|
|
4286
|
-
{
|
|
4287
|
-
"internalType": "uint256",
|
|
4288
|
-
"name": "orderPrice",
|
|
4289
|
-
"type": "uint256"
|
|
4290
|
-
}
|
|
4291
|
-
],
|
|
4292
|
-
"internalType": "struct OrderResult",
|
|
4293
|
-
"name": "",
|
|
4294
|
-
"type": "tuple"
|
|
4295
|
-
}
|
|
4296
|
-
],
|
|
4297
|
-
"stateMutability": "view",
|
|
4298
|
-
"type": "function"
|
|
4299
|
-
},
|
|
4300
|
-
{
|
|
4301
|
-
"inputs": [
|
|
4302
|
-
{
|
|
4303
|
-
"internalType": "uint256",
|
|
4304
|
-
"name": "orderId",
|
|
4305
|
-
"type": "uint256"
|
|
4306
|
-
}
|
|
4307
|
-
],
|
|
4308
|
-
"name": "getOrderChangeWithdrawn",
|
|
4309
|
-
"outputs": [
|
|
4310
|
-
{
|
|
4311
|
-
"internalType": "bool",
|
|
4312
|
-
"name": "",
|
|
4313
|
-
"type": "bool"
|
|
4314
|
-
}
|
|
4315
|
-
],
|
|
4316
|
-
"stateMutability": "view",
|
|
4317
|
-
"type": "function"
|
|
4318
|
-
},
|
|
4319
|
-
{
|
|
4320
|
-
"inputs": [
|
|
4321
|
-
{
|
|
4322
|
-
"internalType": "uint256",
|
|
4323
|
-
"name": "orderId",
|
|
4324
|
-
"type": "uint256"
|
|
4325
|
-
}
|
|
4326
|
-
],
|
|
4327
|
-
"name": "getOrderHoldDeposit",
|
|
4328
|
-
"outputs": [
|
|
4329
|
-
{
|
|
4330
|
-
"internalType": "uint256",
|
|
4331
|
-
"name": "",
|
|
4332
|
-
"type": "uint256"
|
|
4333
|
-
}
|
|
4334
|
-
],
|
|
4335
|
-
"stateMutability": "view",
|
|
4336
|
-
"type": "function"
|
|
4337
|
-
},
|
|
4338
|
-
{
|
|
4339
|
-
"inputs": [
|
|
4340
|
-
{
|
|
4341
|
-
"internalType": "uint256",
|
|
4342
|
-
"name": "orderId",
|
|
4343
|
-
"type": "uint256"
|
|
4344
|
-
}
|
|
4345
|
-
],
|
|
4346
|
-
"name": "getOrderOrigins",
|
|
4347
|
-
"outputs": [
|
|
4348
|
-
{
|
|
4349
|
-
"components": [
|
|
4350
|
-
{
|
|
4351
|
-
"internalType": "uint256",
|
|
4352
|
-
"name": "createdDate",
|
|
4353
|
-
"type": "uint256"
|
|
4354
|
-
},
|
|
4355
|
-
{
|
|
4356
|
-
"internalType": "address",
|
|
4357
|
-
"name": "createdBy",
|
|
4358
|
-
"type": "address"
|
|
4359
|
-
},
|
|
4360
|
-
{
|
|
4361
|
-
"internalType": "uint256",
|
|
4362
|
-
"name": "modifiedDate",
|
|
4363
|
-
"type": "uint256"
|
|
4364
|
-
},
|
|
4365
|
-
{
|
|
4366
|
-
"internalType": "address",
|
|
4367
|
-
"name": "modifiedBy",
|
|
4368
|
-
"type": "address"
|
|
4369
|
-
}
|
|
4370
|
-
],
|
|
4371
|
-
"internalType": "struct Origins",
|
|
4372
|
-
"name": "",
|
|
4373
|
-
"type": "tuple"
|
|
4374
|
-
}
|
|
4375
|
-
],
|
|
4376
|
-
"stateMutability": "view",
|
|
4377
|
-
"type": "function"
|
|
4378
|
-
},
|
|
4379
|
-
{
|
|
4380
|
-
"inputs": [
|
|
4381
|
-
{
|
|
4382
|
-
"internalType": "uint256",
|
|
4383
|
-
"name": "orderId",
|
|
4384
|
-
"type": "uint256"
|
|
4385
|
-
}
|
|
4386
|
-
],
|
|
4387
|
-
"name": "getOrderParentOrder",
|
|
4388
|
-
"outputs": [
|
|
4389
|
-
{
|
|
4390
|
-
"internalType": "uint256",
|
|
4391
|
-
"name": "",
|
|
4392
|
-
"type": "uint256"
|
|
4393
|
-
}
|
|
4394
|
-
],
|
|
4395
|
-
"stateMutability": "view",
|
|
4396
|
-
"type": "function"
|
|
4397
|
-
},
|
|
4398
|
-
{
|
|
4399
|
-
"inputs": [
|
|
4400
|
-
{
|
|
4401
|
-
"internalType": "uint256",
|
|
4402
|
-
"name": "orderId",
|
|
4403
|
-
"type": "uint256"
|
|
4404
|
-
}
|
|
4405
|
-
],
|
|
4406
|
-
"name": "getOrderPrice",
|
|
4407
|
-
"outputs": [
|
|
4408
|
-
{
|
|
4409
|
-
"internalType": "uint256",
|
|
4410
|
-
"name": "",
|
|
4411
|
-
"type": "uint256"
|
|
4412
|
-
}
|
|
4413
|
-
],
|
|
4414
|
-
"stateMutability": "view",
|
|
4415
|
-
"type": "function"
|
|
4416
|
-
},
|
|
4417
|
-
{
|
|
4418
|
-
"inputs": [
|
|
4419
|
-
{
|
|
4420
|
-
"internalType": "uint256",
|
|
4421
|
-
"name": "orderId",
|
|
4422
|
-
"type": "uint256"
|
|
4423
|
-
}
|
|
4424
|
-
],
|
|
4425
|
-
"name": "getOrderProfitWithdrawn",
|
|
4426
|
-
"outputs": [
|
|
4427
|
-
{
|
|
4428
|
-
"internalType": "bool",
|
|
4429
|
-
"name": "",
|
|
4430
|
-
"type": "bool"
|
|
4431
|
-
}
|
|
4432
|
-
],
|
|
4433
|
-
"stateMutability": "view",
|
|
4434
|
-
"type": "function"
|
|
4435
|
-
},
|
|
4436
|
-
{
|
|
4437
|
-
"inputs": [
|
|
4438
|
-
{
|
|
4439
|
-
"internalType": "uint256",
|
|
4440
|
-
"name": "orderId",
|
|
4441
|
-
"type": "uint256"
|
|
4442
|
-
}
|
|
4443
|
-
],
|
|
4444
|
-
"name": "getOrderSubOrders",
|
|
4445
|
-
"outputs": [
|
|
4446
|
-
{
|
|
4447
|
-
"internalType": "uint256[]",
|
|
4448
|
-
"name": "",
|
|
4449
|
-
"type": "uint256[]"
|
|
4450
|
-
}
|
|
4451
|
-
],
|
|
4452
|
-
"stateMutability": "view",
|
|
4453
|
-
"type": "function"
|
|
4454
|
-
},
|
|
4455
|
-
{
|
|
4456
|
-
"inputs": [],
|
|
4457
|
-
"name": "getOrdersCount",
|
|
4458
|
-
"outputs": [
|
|
4459
|
-
{
|
|
4460
|
-
"internalType": "uint256",
|
|
4461
|
-
"name": "",
|
|
4462
|
-
"type": "uint256"
|
|
4463
|
-
}
|
|
4464
|
-
],
|
|
4465
|
-
"stateMutability": "view",
|
|
4466
|
-
"type": "function"
|
|
4467
|
-
},
|
|
4468
|
-
{
|
|
4469
|
-
"inputs": [
|
|
4470
|
-
{
|
|
4471
|
-
"internalType": "uint256",
|
|
4472
|
-
"name": "orderId",
|
|
4473
|
-
"type": "uint256"
|
|
4474
|
-
}
|
|
4475
|
-
],
|
|
4476
|
-
"name": "getStartDate",
|
|
4477
|
-
"outputs": [
|
|
4478
|
-
{
|
|
4479
|
-
"internalType": "uint256",
|
|
4480
|
-
"name": "",
|
|
4481
|
-
"type": "uint256"
|
|
4482
|
-
}
|
|
4483
|
-
],
|
|
4484
|
-
"stateMutability": "view",
|
|
4485
|
-
"type": "function"
|
|
4486
|
-
},
|
|
4487
|
-
{
|
|
4488
|
-
"inputs": [
|
|
4489
|
-
{
|
|
4490
|
-
"internalType": "uint256",
|
|
4491
|
-
"name": "orderId",
|
|
4492
|
-
"type": "uint256"
|
|
4493
|
-
}
|
|
4494
|
-
],
|
|
4495
|
-
"name": "isOrderCompleted",
|
|
4496
|
-
"outputs": [
|
|
4497
|
-
{
|
|
4498
|
-
"internalType": "bool",
|
|
4499
|
-
"name": "",
|
|
4500
|
-
"type": "bool"
|
|
4245
|
+
"internalType": "string",
|
|
4246
|
+
"name": "encryptedResult",
|
|
4247
|
+
"type": "string"
|
|
4501
4248
|
}
|
|
4502
4249
|
],
|
|
4503
|
-
"
|
|
4250
|
+
"name": "updateOrderResult",
|
|
4251
|
+
"outputs": [],
|
|
4252
|
+
"stateMutability": "nonpayable",
|
|
4504
4253
|
"type": "function"
|
|
4505
4254
|
},
|
|
4506
4255
|
{
|
|
@@ -4511,15 +4260,9 @@
|
|
|
4511
4260
|
"type": "uint256"
|
|
4512
4261
|
}
|
|
4513
4262
|
],
|
|
4514
|
-
"name": "
|
|
4515
|
-
"outputs": [
|
|
4516
|
-
|
|
4517
|
-
"internalType": "bool",
|
|
4518
|
-
"name": "",
|
|
4519
|
-
"type": "bool"
|
|
4520
|
-
}
|
|
4521
|
-
],
|
|
4522
|
-
"stateMutability": "view",
|
|
4263
|
+
"name": "withdrawChange",
|
|
4264
|
+
"outputs": [],
|
|
4265
|
+
"stateMutability": "nonpayable",
|
|
4523
4266
|
"type": "function"
|
|
4524
4267
|
},
|
|
4525
4268
|
{
|
|
@@ -4530,15 +4273,9 @@
|
|
|
4530
4273
|
"type": "uint256"
|
|
4531
4274
|
}
|
|
4532
4275
|
],
|
|
4533
|
-
"name": "
|
|
4534
|
-
"outputs": [
|
|
4535
|
-
|
|
4536
|
-
"internalType": "bool",
|
|
4537
|
-
"name": "",
|
|
4538
|
-
"type": "bool"
|
|
4539
|
-
}
|
|
4540
|
-
],
|
|
4541
|
-
"stateMutability": "view",
|
|
4276
|
+
"name": "withdrawProfit",
|
|
4277
|
+
"outputs": [],
|
|
4278
|
+
"stateMutability": "nonpayable",
|
|
4542
4279
|
"type": "function"
|
|
4543
4280
|
},
|
|
4544
4281
|
{
|
|
@@ -7596,11 +7333,6 @@
|
|
|
7596
7333
|
},
|
|
7597
7334
|
{
|
|
7598
7335
|
"inputs": [
|
|
7599
|
-
{
|
|
7600
|
-
"internalType": "address",
|
|
7601
|
-
"name": "consumer",
|
|
7602
|
-
"type": "address"
|
|
7603
|
-
},
|
|
7604
7336
|
{
|
|
7605
7337
|
"components": [
|
|
7606
7338
|
{
|
|
@@ -7671,7 +7403,7 @@
|
|
|
7671
7403
|
"type": "bytes32"
|
|
7672
7404
|
}
|
|
7673
7405
|
],
|
|
7674
|
-
"name": "
|
|
7406
|
+
"name": "createOrder",
|
|
7675
7407
|
"outputs": [
|
|
7676
7408
|
{
|
|
7677
7409
|
"internalType": "uint256",
|
|
@@ -7684,11 +7416,6 @@
|
|
|
7684
7416
|
},
|
|
7685
7417
|
{
|
|
7686
7418
|
"inputs": [
|
|
7687
|
-
{
|
|
7688
|
-
"internalType": "address",
|
|
7689
|
-
"name": "consumer",
|
|
7690
|
-
"type": "address"
|
|
7691
|
-
},
|
|
7692
7419
|
{
|
|
7693
7420
|
"internalType": "uint256",
|
|
7694
7421
|
"name": "parentOrderId",
|
|
@@ -7754,170 +7481,24 @@
|
|
|
7754
7481
|
"internalType": "bool",
|
|
7755
7482
|
"name": "blockParentOrder",
|
|
7756
7483
|
"type": "bool"
|
|
7757
|
-
},
|
|
7758
|
-
{
|
|
7759
|
-
"internalType": "bytes32",
|
|
7760
|
-
"name": "externalId",
|
|
7761
|
-
"type": "bytes32"
|
|
7762
|
-
},
|
|
7763
|
-
{
|
|
7764
|
-
"internalType": "uint256",
|
|
7765
|
-
"name": "holdSum",
|
|
7766
|
-
"type": "uint256"
|
|
7767
|
-
}
|
|
7768
|
-
],
|
|
7769
|
-
"internalType": "struct SubOrderParams",
|
|
7770
|
-
"name": "params",
|
|
7771
|
-
"type": "tuple"
|
|
7772
|
-
}
|
|
7773
|
-
],
|
|
7774
|
-
"name": "createSubOrderByApp",
|
|
7775
|
-
"outputs": [
|
|
7776
|
-
{
|
|
7777
|
-
"internalType": "uint256",
|
|
7778
|
-
"name": "",
|
|
7779
|
-
"type": "uint256"
|
|
7780
|
-
}
|
|
7781
|
-
],
|
|
7782
|
-
"stateMutability": "nonpayable",
|
|
7783
|
-
"type": "function"
|
|
7784
|
-
},
|
|
7785
|
-
{
|
|
7786
|
-
"inputs": [
|
|
7787
|
-
{
|
|
7788
|
-
"internalType": "uint256",
|
|
7789
|
-
"name": "orderId",
|
|
7790
|
-
"type": "uint256"
|
|
7791
|
-
}
|
|
7792
|
-
],
|
|
7793
|
-
"name": "getOrder",
|
|
7794
|
-
"outputs": [
|
|
7795
|
-
{
|
|
7796
|
-
"internalType": "address",
|
|
7797
|
-
"name": "",
|
|
7798
|
-
"type": "address"
|
|
7799
|
-
},
|
|
7800
|
-
{
|
|
7801
|
-
"components": [
|
|
7802
|
-
{
|
|
7803
|
-
"internalType": "uint256",
|
|
7804
|
-
"name": "offerId",
|
|
7805
|
-
"type": "uint256"
|
|
7806
|
-
},
|
|
7807
|
-
{
|
|
7808
|
-
"internalType": "string",
|
|
7809
|
-
"name": "resultPublicKey",
|
|
7810
|
-
"type": "string"
|
|
7811
|
-
},
|
|
7812
|
-
{
|
|
7813
|
-
"internalType": "string",
|
|
7814
|
-
"name": "encryptedRequirements",
|
|
7815
|
-
"type": "string"
|
|
7816
|
-
},
|
|
7817
|
-
{
|
|
7818
|
-
"internalType": "string",
|
|
7819
|
-
"name": "encryptedArgs",
|
|
7820
|
-
"type": "string"
|
|
7821
|
-
},
|
|
7822
|
-
{
|
|
7823
|
-
"internalType": "enum OrderStatus",
|
|
7824
|
-
"name": "status",
|
|
7825
|
-
"type": "uint8"
|
|
7826
|
-
},
|
|
7827
|
-
{
|
|
7828
|
-
"components": [
|
|
7829
|
-
{
|
|
7830
|
-
"internalType": "uint256",
|
|
7831
|
-
"name": "slots",
|
|
7832
|
-
"type": "uint256"
|
|
7833
|
-
},
|
|
7834
|
-
{
|
|
7835
|
-
"internalType": "uint256[]",
|
|
7836
|
-
"name": "inputOffers",
|
|
7837
|
-
"type": "uint256[]"
|
|
7838
|
-
},
|
|
7839
|
-
{
|
|
7840
|
-
"internalType": "uint256[]",
|
|
7841
|
-
"name": "selectedOffers",
|
|
7842
|
-
"type": "uint256[]"
|
|
7843
|
-
}
|
|
7844
|
-
],
|
|
7845
|
-
"internalType": "struct OrderArgs",
|
|
7846
|
-
"name": "args",
|
|
7847
|
-
"type": "tuple"
|
|
7848
|
-
}
|
|
7849
|
-
],
|
|
7850
|
-
"internalType": "struct OrderInfo",
|
|
7851
|
-
"name": "",
|
|
7852
|
-
"type": "tuple"
|
|
7853
|
-
},
|
|
7854
|
-
{
|
|
7855
|
-
"components": [
|
|
7856
|
-
{
|
|
7857
|
-
"internalType": "string",
|
|
7858
|
-
"name": "encryptedResult",
|
|
7859
|
-
"type": "string"
|
|
7860
|
-
},
|
|
7861
|
-
{
|
|
7862
|
-
"internalType": "uint256",
|
|
7863
|
-
"name": "orderPrice",
|
|
7864
|
-
"type": "uint256"
|
|
7865
|
-
}
|
|
7866
|
-
],
|
|
7867
|
-
"internalType": "struct OrderResult",
|
|
7868
|
-
"name": "",
|
|
7869
|
-
"type": "tuple"
|
|
7870
|
-
}
|
|
7871
|
-
],
|
|
7872
|
-
"stateMutability": "view",
|
|
7873
|
-
"type": "function"
|
|
7874
|
-
},
|
|
7875
|
-
{
|
|
7876
|
-
"inputs": [
|
|
7877
|
-
{
|
|
7878
|
-
"internalType": "address",
|
|
7879
|
-
"name": "consumer",
|
|
7880
|
-
"type": "address"
|
|
7881
|
-
},
|
|
7882
|
-
{
|
|
7883
|
-
"internalType": "uint256",
|
|
7884
|
-
"name": "orderId",
|
|
7885
|
-
"type": "uint256"
|
|
7886
|
-
}
|
|
7887
|
-
],
|
|
7888
|
-
"name": "startOrderByApp",
|
|
7889
|
-
"outputs": [],
|
|
7890
|
-
"stateMutability": "nonpayable",
|
|
7891
|
-
"type": "function"
|
|
7892
|
-
},
|
|
7893
|
-
{
|
|
7894
|
-
"inputs": [
|
|
7895
|
-
{
|
|
7896
|
-
"internalType": "uint256",
|
|
7897
|
-
"name": "orderId",
|
|
7898
|
-
"type": "uint256"
|
|
7899
|
-
}
|
|
7900
|
-
],
|
|
7901
|
-
"name": "getAwaitingPayment",
|
|
7902
|
-
"outputs": [
|
|
7903
|
-
{
|
|
7904
|
-
"internalType": "bool",
|
|
7905
|
-
"name": "",
|
|
7906
|
-
"type": "bool"
|
|
7907
|
-
}
|
|
7908
|
-
],
|
|
7909
|
-
"stateMutability": "view",
|
|
7910
|
-
"type": "function"
|
|
7911
|
-
},
|
|
7912
|
-
{
|
|
7913
|
-
"inputs": [
|
|
7914
|
-
{
|
|
7915
|
-
"internalType": "uint256",
|
|
7916
|
-
"name": "orderId",
|
|
7917
|
-
"type": "uint256"
|
|
7484
|
+
},
|
|
7485
|
+
{
|
|
7486
|
+
"internalType": "bytes32",
|
|
7487
|
+
"name": "externalId",
|
|
7488
|
+
"type": "bytes32"
|
|
7489
|
+
},
|
|
7490
|
+
{
|
|
7491
|
+
"internalType": "uint256",
|
|
7492
|
+
"name": "holdSum",
|
|
7493
|
+
"type": "uint256"
|
|
7494
|
+
}
|
|
7495
|
+
],
|
|
7496
|
+
"internalType": "struct SubOrderParams",
|
|
7497
|
+
"name": "params",
|
|
7498
|
+
"type": "tuple"
|
|
7918
7499
|
}
|
|
7919
7500
|
],
|
|
7920
|
-
"name": "
|
|
7501
|
+
"name": "createSubOrder",
|
|
7921
7502
|
"outputs": [
|
|
7922
7503
|
{
|
|
7923
7504
|
"internalType": "uint256",
|
|
@@ -7925,7 +7506,7 @@
|
|
|
7925
7506
|
"type": "uint256"
|
|
7926
7507
|
}
|
|
7927
7508
|
],
|
|
7928
|
-
"stateMutability": "
|
|
7509
|
+
"stateMutability": "nonpayable",
|
|
7929
7510
|
"type": "function"
|
|
7930
7511
|
},
|
|
7931
7512
|
{
|
|
@@ -8026,240 +7607,9 @@
|
|
|
8026
7607
|
"type": "uint256"
|
|
8027
7608
|
}
|
|
8028
7609
|
],
|
|
8029
|
-
"name": "
|
|
8030
|
-
"outputs": [
|
|
8031
|
-
|
|
8032
|
-
"internalType": "bool",
|
|
8033
|
-
"name": "",
|
|
8034
|
-
"type": "bool"
|
|
8035
|
-
}
|
|
8036
|
-
],
|
|
8037
|
-
"stateMutability": "view",
|
|
8038
|
-
"type": "function"
|
|
8039
|
-
},
|
|
8040
|
-
{
|
|
8041
|
-
"inputs": [
|
|
8042
|
-
{
|
|
8043
|
-
"internalType": "uint256",
|
|
8044
|
-
"name": "orderId",
|
|
8045
|
-
"type": "uint256"
|
|
8046
|
-
}
|
|
8047
|
-
],
|
|
8048
|
-
"name": "getOrderHoldDeposit",
|
|
8049
|
-
"outputs": [
|
|
8050
|
-
{
|
|
8051
|
-
"internalType": "uint256",
|
|
8052
|
-
"name": "",
|
|
8053
|
-
"type": "uint256"
|
|
8054
|
-
}
|
|
8055
|
-
],
|
|
8056
|
-
"stateMutability": "view",
|
|
8057
|
-
"type": "function"
|
|
8058
|
-
},
|
|
8059
|
-
{
|
|
8060
|
-
"inputs": [
|
|
8061
|
-
{
|
|
8062
|
-
"internalType": "uint256",
|
|
8063
|
-
"name": "orderId",
|
|
8064
|
-
"type": "uint256"
|
|
8065
|
-
}
|
|
8066
|
-
],
|
|
8067
|
-
"name": "getOrderOrigins",
|
|
8068
|
-
"outputs": [
|
|
8069
|
-
{
|
|
8070
|
-
"components": [
|
|
8071
|
-
{
|
|
8072
|
-
"internalType": "uint256",
|
|
8073
|
-
"name": "createdDate",
|
|
8074
|
-
"type": "uint256"
|
|
8075
|
-
},
|
|
8076
|
-
{
|
|
8077
|
-
"internalType": "address",
|
|
8078
|
-
"name": "createdBy",
|
|
8079
|
-
"type": "address"
|
|
8080
|
-
},
|
|
8081
|
-
{
|
|
8082
|
-
"internalType": "uint256",
|
|
8083
|
-
"name": "modifiedDate",
|
|
8084
|
-
"type": "uint256"
|
|
8085
|
-
},
|
|
8086
|
-
{
|
|
8087
|
-
"internalType": "address",
|
|
8088
|
-
"name": "modifiedBy",
|
|
8089
|
-
"type": "address"
|
|
8090
|
-
}
|
|
8091
|
-
],
|
|
8092
|
-
"internalType": "struct Origins",
|
|
8093
|
-
"name": "",
|
|
8094
|
-
"type": "tuple"
|
|
8095
|
-
}
|
|
8096
|
-
],
|
|
8097
|
-
"stateMutability": "view",
|
|
8098
|
-
"type": "function"
|
|
8099
|
-
},
|
|
8100
|
-
{
|
|
8101
|
-
"inputs": [
|
|
8102
|
-
{
|
|
8103
|
-
"internalType": "uint256",
|
|
8104
|
-
"name": "orderId",
|
|
8105
|
-
"type": "uint256"
|
|
8106
|
-
}
|
|
8107
|
-
],
|
|
8108
|
-
"name": "getOrderParentOrder",
|
|
8109
|
-
"outputs": [
|
|
8110
|
-
{
|
|
8111
|
-
"internalType": "uint256",
|
|
8112
|
-
"name": "",
|
|
8113
|
-
"type": "uint256"
|
|
8114
|
-
}
|
|
8115
|
-
],
|
|
8116
|
-
"stateMutability": "view",
|
|
8117
|
-
"type": "function"
|
|
8118
|
-
},
|
|
8119
|
-
{
|
|
8120
|
-
"inputs": [
|
|
8121
|
-
{
|
|
8122
|
-
"internalType": "uint256",
|
|
8123
|
-
"name": "orderId",
|
|
8124
|
-
"type": "uint256"
|
|
8125
|
-
}
|
|
8126
|
-
],
|
|
8127
|
-
"name": "getOrderPrice",
|
|
8128
|
-
"outputs": [
|
|
8129
|
-
{
|
|
8130
|
-
"internalType": "uint256",
|
|
8131
|
-
"name": "",
|
|
8132
|
-
"type": "uint256"
|
|
8133
|
-
}
|
|
8134
|
-
],
|
|
8135
|
-
"stateMutability": "view",
|
|
8136
|
-
"type": "function"
|
|
8137
|
-
},
|
|
8138
|
-
{
|
|
8139
|
-
"inputs": [
|
|
8140
|
-
{
|
|
8141
|
-
"internalType": "uint256",
|
|
8142
|
-
"name": "orderId",
|
|
8143
|
-
"type": "uint256"
|
|
8144
|
-
}
|
|
8145
|
-
],
|
|
8146
|
-
"name": "getOrderProfitWithdrawn",
|
|
8147
|
-
"outputs": [
|
|
8148
|
-
{
|
|
8149
|
-
"internalType": "bool",
|
|
8150
|
-
"name": "",
|
|
8151
|
-
"type": "bool"
|
|
8152
|
-
}
|
|
8153
|
-
],
|
|
8154
|
-
"stateMutability": "view",
|
|
8155
|
-
"type": "function"
|
|
8156
|
-
},
|
|
8157
|
-
{
|
|
8158
|
-
"inputs": [
|
|
8159
|
-
{
|
|
8160
|
-
"internalType": "uint256",
|
|
8161
|
-
"name": "orderId",
|
|
8162
|
-
"type": "uint256"
|
|
8163
|
-
}
|
|
8164
|
-
],
|
|
8165
|
-
"name": "getOrderSubOrders",
|
|
8166
|
-
"outputs": [
|
|
8167
|
-
{
|
|
8168
|
-
"internalType": "uint256[]",
|
|
8169
|
-
"name": "",
|
|
8170
|
-
"type": "uint256[]"
|
|
8171
|
-
}
|
|
8172
|
-
],
|
|
8173
|
-
"stateMutability": "view",
|
|
8174
|
-
"type": "function"
|
|
8175
|
-
},
|
|
8176
|
-
{
|
|
8177
|
-
"inputs": [],
|
|
8178
|
-
"name": "getOrdersCount",
|
|
8179
|
-
"outputs": [
|
|
8180
|
-
{
|
|
8181
|
-
"internalType": "uint256",
|
|
8182
|
-
"name": "",
|
|
8183
|
-
"type": "uint256"
|
|
8184
|
-
}
|
|
8185
|
-
],
|
|
8186
|
-
"stateMutability": "view",
|
|
8187
|
-
"type": "function"
|
|
8188
|
-
},
|
|
8189
|
-
{
|
|
8190
|
-
"inputs": [
|
|
8191
|
-
{
|
|
8192
|
-
"internalType": "uint256",
|
|
8193
|
-
"name": "orderId",
|
|
8194
|
-
"type": "uint256"
|
|
8195
|
-
}
|
|
8196
|
-
],
|
|
8197
|
-
"name": "getStartDate",
|
|
8198
|
-
"outputs": [
|
|
8199
|
-
{
|
|
8200
|
-
"internalType": "uint256",
|
|
8201
|
-
"name": "",
|
|
8202
|
-
"type": "uint256"
|
|
8203
|
-
}
|
|
8204
|
-
],
|
|
8205
|
-
"stateMutability": "view",
|
|
8206
|
-
"type": "function"
|
|
8207
|
-
},
|
|
8208
|
-
{
|
|
8209
|
-
"inputs": [
|
|
8210
|
-
{
|
|
8211
|
-
"internalType": "uint256",
|
|
8212
|
-
"name": "orderId",
|
|
8213
|
-
"type": "uint256"
|
|
8214
|
-
}
|
|
8215
|
-
],
|
|
8216
|
-
"name": "isOrderCompleted",
|
|
8217
|
-
"outputs": [
|
|
8218
|
-
{
|
|
8219
|
-
"internalType": "bool",
|
|
8220
|
-
"name": "",
|
|
8221
|
-
"type": "bool"
|
|
8222
|
-
}
|
|
8223
|
-
],
|
|
8224
|
-
"stateMutability": "view",
|
|
8225
|
-
"type": "function"
|
|
8226
|
-
},
|
|
8227
|
-
{
|
|
8228
|
-
"inputs": [
|
|
8229
|
-
{
|
|
8230
|
-
"internalType": "uint256",
|
|
8231
|
-
"name": "orderId",
|
|
8232
|
-
"type": "uint256"
|
|
8233
|
-
}
|
|
8234
|
-
],
|
|
8235
|
-
"name": "isOrderStarted",
|
|
8236
|
-
"outputs": [
|
|
8237
|
-
{
|
|
8238
|
-
"internalType": "bool",
|
|
8239
|
-
"name": "",
|
|
8240
|
-
"type": "bool"
|
|
8241
|
-
}
|
|
8242
|
-
],
|
|
8243
|
-
"stateMutability": "view",
|
|
8244
|
-
"type": "function"
|
|
8245
|
-
},
|
|
8246
|
-
{
|
|
8247
|
-
"inputs": [
|
|
8248
|
-
{
|
|
8249
|
-
"internalType": "uint256",
|
|
8250
|
-
"name": "orderId",
|
|
8251
|
-
"type": "uint256"
|
|
8252
|
-
}
|
|
8253
|
-
],
|
|
8254
|
-
"name": "isOrderValid",
|
|
8255
|
-
"outputs": [
|
|
8256
|
-
{
|
|
8257
|
-
"internalType": "bool",
|
|
8258
|
-
"name": "",
|
|
8259
|
-
"type": "bool"
|
|
8260
|
-
}
|
|
8261
|
-
],
|
|
8262
|
-
"stateMutability": "view",
|
|
7610
|
+
"name": "startOrder",
|
|
7611
|
+
"outputs": [],
|
|
7612
|
+
"stateMutability": "nonpayable",
|
|
8263
7613
|
"type": "function"
|
|
8264
7614
|
},
|
|
8265
7615
|
{
|