@super-protocol/sdk-js 0.10.0-beta.0 → 0.10.1-beta.2
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 +1375 -607
- package/package.json +1 -1
package/build/contracts/app.json
CHANGED
|
@@ -3318,31 +3318,6 @@
|
|
|
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
|
-
},
|
|
3346
3321
|
{
|
|
3347
3322
|
"anonymous": false,
|
|
3348
3323
|
"inputs": [
|
|
@@ -3374,31 +3349,6 @@
|
|
|
3374
3349
|
"name": "OrderCreated",
|
|
3375
3350
|
"type": "event"
|
|
3376
3351
|
},
|
|
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
|
-
},
|
|
3402
3352
|
{
|
|
3403
3353
|
"anonymous": false,
|
|
3404
3354
|
"inputs": [
|
|
@@ -3468,31 +3418,6 @@
|
|
|
3468
3418
|
"name": "OrderPriceUpdated",
|
|
3469
3419
|
"type": "event"
|
|
3470
3420
|
},
|
|
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
|
-
},
|
|
3496
3421
|
{
|
|
3497
3422
|
"anonymous": false,
|
|
3498
3423
|
"inputs": [
|
|
@@ -3563,6 +3488,24 @@
|
|
|
3563
3488
|
"stateMutability": "nonpayable",
|
|
3564
3489
|
"type": "function"
|
|
3565
3490
|
},
|
|
3491
|
+
{
|
|
3492
|
+
"inputs": [
|
|
3493
|
+
{
|
|
3494
|
+
"internalType": "address",
|
|
3495
|
+
"name": "consumer",
|
|
3496
|
+
"type": "address"
|
|
3497
|
+
},
|
|
3498
|
+
{
|
|
3499
|
+
"internalType": "uint256",
|
|
3500
|
+
"name": "orderId",
|
|
3501
|
+
"type": "uint256"
|
|
3502
|
+
}
|
|
3503
|
+
],
|
|
3504
|
+
"name": "cancelOrderByApp",
|
|
3505
|
+
"outputs": [],
|
|
3506
|
+
"stateMutability": "nonpayable",
|
|
3507
|
+
"type": "function"
|
|
3508
|
+
},
|
|
3566
3509
|
{
|
|
3567
3510
|
"inputs": [
|
|
3568
3511
|
{
|
|
@@ -3636,6 +3579,11 @@
|
|
|
3636
3579
|
"internalType": "struct OrderArgs",
|
|
3637
3580
|
"name": "args",
|
|
3638
3581
|
"type": "tuple"
|
|
3582
|
+
},
|
|
3583
|
+
{
|
|
3584
|
+
"internalType": "bytes32",
|
|
3585
|
+
"name": "externalId",
|
|
3586
|
+
"type": "bytes32"
|
|
3639
3587
|
}
|
|
3640
3588
|
],
|
|
3641
3589
|
"internalType": "struct OrderInfo",
|
|
@@ -3651,11 +3599,6 @@
|
|
|
3651
3599
|
"internalType": "bool",
|
|
3652
3600
|
"name": "suspended",
|
|
3653
3601
|
"type": "bool"
|
|
3654
|
-
},
|
|
3655
|
-
{
|
|
3656
|
-
"internalType": "bytes32",
|
|
3657
|
-
"name": "externalId",
|
|
3658
|
-
"type": "bytes32"
|
|
3659
3602
|
}
|
|
3660
3603
|
],
|
|
3661
3604
|
"name": "createOrder",
|
|
@@ -3672,9 +3615,9 @@
|
|
|
3672
3615
|
{
|
|
3673
3616
|
"inputs": [
|
|
3674
3617
|
{
|
|
3675
|
-
"internalType": "
|
|
3676
|
-
"name": "
|
|
3677
|
-
"type": "
|
|
3618
|
+
"internalType": "address",
|
|
3619
|
+
"name": "consumer",
|
|
3620
|
+
"type": "address"
|
|
3678
3621
|
},
|
|
3679
3622
|
{
|
|
3680
3623
|
"components": [
|
|
@@ -3724,74 +3667,29 @@
|
|
|
3724
3667
|
"internalType": "struct OrderArgs",
|
|
3725
3668
|
"name": "args",
|
|
3726
3669
|
"type": "tuple"
|
|
3727
|
-
}
|
|
3728
|
-
],
|
|
3729
|
-
"internalType": "struct OrderInfo",
|
|
3730
|
-
"name": "suborderInfo",
|
|
3731
|
-
"type": "tuple"
|
|
3732
|
-
},
|
|
3733
|
-
{
|
|
3734
|
-
"components": [
|
|
3735
|
-
{
|
|
3736
|
-
"internalType": "bool",
|
|
3737
|
-
"name": "blockParentOrder",
|
|
3738
|
-
"type": "bool"
|
|
3739
3670
|
},
|
|
3740
3671
|
{
|
|
3741
3672
|
"internalType": "bytes32",
|
|
3742
3673
|
"name": "externalId",
|
|
3743
3674
|
"type": "bytes32"
|
|
3744
|
-
},
|
|
3745
|
-
{
|
|
3746
|
-
"internalType": "uint256",
|
|
3747
|
-
"name": "holdSum",
|
|
3748
|
-
"type": "uint256"
|
|
3749
3675
|
}
|
|
3750
3676
|
],
|
|
3751
|
-
"internalType": "struct
|
|
3752
|
-
"name": "
|
|
3677
|
+
"internalType": "struct OrderInfo",
|
|
3678
|
+
"name": "info",
|
|
3753
3679
|
"type": "tuple"
|
|
3754
|
-
}
|
|
3755
|
-
],
|
|
3756
|
-
"name": "createSubOrder",
|
|
3757
|
-
"outputs": [
|
|
3758
|
-
{
|
|
3759
|
-
"internalType": "uint256",
|
|
3760
|
-
"name": "",
|
|
3761
|
-
"type": "uint256"
|
|
3762
|
-
}
|
|
3763
|
-
],
|
|
3764
|
-
"stateMutability": "nonpayable",
|
|
3765
|
-
"type": "function"
|
|
3766
|
-
},
|
|
3767
|
-
{
|
|
3768
|
-
"inputs": [
|
|
3680
|
+
},
|
|
3769
3681
|
{
|
|
3770
3682
|
"internalType": "uint256",
|
|
3771
|
-
"name": "
|
|
3683
|
+
"name": "holdDeposit",
|
|
3772
3684
|
"type": "uint256"
|
|
3773
|
-
}
|
|
3774
|
-
],
|
|
3775
|
-
"name": "getAwaitingPayment",
|
|
3776
|
-
"outputs": [
|
|
3685
|
+
},
|
|
3777
3686
|
{
|
|
3778
3687
|
"internalType": "bool",
|
|
3779
|
-
"name": "",
|
|
3688
|
+
"name": "suspended",
|
|
3780
3689
|
"type": "bool"
|
|
3781
3690
|
}
|
|
3782
3691
|
],
|
|
3783
|
-
"
|
|
3784
|
-
"type": "function"
|
|
3785
|
-
},
|
|
3786
|
-
{
|
|
3787
|
-
"inputs": [
|
|
3788
|
-
{
|
|
3789
|
-
"internalType": "uint256",
|
|
3790
|
-
"name": "orderId",
|
|
3791
|
-
"type": "uint256"
|
|
3792
|
-
}
|
|
3793
|
-
],
|
|
3794
|
-
"name": "getDepositSpent",
|
|
3692
|
+
"name": "createOrderByApp",
|
|
3795
3693
|
"outputs": [
|
|
3796
3694
|
{
|
|
3797
3695
|
"internalType": "uint256",
|
|
@@ -3799,23 +3697,15 @@
|
|
|
3799
3697
|
"type": "uint256"
|
|
3800
3698
|
}
|
|
3801
3699
|
],
|
|
3802
|
-
"stateMutability": "
|
|
3700
|
+
"stateMutability": "nonpayable",
|
|
3803
3701
|
"type": "function"
|
|
3804
3702
|
},
|
|
3805
3703
|
{
|
|
3806
3704
|
"inputs": [
|
|
3807
3705
|
{
|
|
3808
3706
|
"internalType": "uint256",
|
|
3809
|
-
"name": "
|
|
3707
|
+
"name": "parentOrderId",
|
|
3810
3708
|
"type": "uint256"
|
|
3811
|
-
}
|
|
3812
|
-
],
|
|
3813
|
-
"name": "getOrder",
|
|
3814
|
-
"outputs": [
|
|
3815
|
-
{
|
|
3816
|
-
"internalType": "address",
|
|
3817
|
-
"name": "",
|
|
3818
|
-
"type": "address"
|
|
3819
3709
|
},
|
|
3820
3710
|
{
|
|
3821
3711
|
"components": [
|
|
@@ -3865,61 +3755,36 @@
|
|
|
3865
3755
|
"internalType": "struct OrderArgs",
|
|
3866
3756
|
"name": "args",
|
|
3867
3757
|
"type": "tuple"
|
|
3758
|
+
},
|
|
3759
|
+
{
|
|
3760
|
+
"internalType": "bytes32",
|
|
3761
|
+
"name": "externalId",
|
|
3762
|
+
"type": "bytes32"
|
|
3868
3763
|
}
|
|
3869
3764
|
],
|
|
3870
3765
|
"internalType": "struct OrderInfo",
|
|
3871
|
-
"name": "",
|
|
3766
|
+
"name": "suborderInfo",
|
|
3872
3767
|
"type": "tuple"
|
|
3873
3768
|
},
|
|
3874
3769
|
{
|
|
3875
3770
|
"components": [
|
|
3876
3771
|
{
|
|
3877
|
-
"internalType": "
|
|
3878
|
-
"name": "
|
|
3879
|
-
"type": "
|
|
3772
|
+
"internalType": "bool",
|
|
3773
|
+
"name": "blockParentOrder",
|
|
3774
|
+
"type": "bool"
|
|
3880
3775
|
},
|
|
3881
3776
|
{
|
|
3882
3777
|
"internalType": "uint256",
|
|
3883
|
-
"name": "
|
|
3778
|
+
"name": "holdSum",
|
|
3884
3779
|
"type": "uint256"
|
|
3885
3780
|
}
|
|
3886
3781
|
],
|
|
3887
|
-
"internalType": "struct
|
|
3888
|
-
"name": "",
|
|
3782
|
+
"internalType": "struct SubOrderParams",
|
|
3783
|
+
"name": "params",
|
|
3889
3784
|
"type": "tuple"
|
|
3890
3785
|
}
|
|
3891
3786
|
],
|
|
3892
|
-
"
|
|
3893
|
-
"type": "function"
|
|
3894
|
-
},
|
|
3895
|
-
{
|
|
3896
|
-
"inputs": [
|
|
3897
|
-
{
|
|
3898
|
-
"internalType": "uint256",
|
|
3899
|
-
"name": "orderId",
|
|
3900
|
-
"type": "uint256"
|
|
3901
|
-
}
|
|
3902
|
-
],
|
|
3903
|
-
"name": "getOrderChangeWithdrawn",
|
|
3904
|
-
"outputs": [
|
|
3905
|
-
{
|
|
3906
|
-
"internalType": "bool",
|
|
3907
|
-
"name": "",
|
|
3908
|
-
"type": "bool"
|
|
3909
|
-
}
|
|
3910
|
-
],
|
|
3911
|
-
"stateMutability": "view",
|
|
3912
|
-
"type": "function"
|
|
3913
|
-
},
|
|
3914
|
-
{
|
|
3915
|
-
"inputs": [
|
|
3916
|
-
{
|
|
3917
|
-
"internalType": "uint256",
|
|
3918
|
-
"name": "orderId",
|
|
3919
|
-
"type": "uint256"
|
|
3920
|
-
}
|
|
3921
|
-
],
|
|
3922
|
-
"name": "getOrderHoldDeposit",
|
|
3787
|
+
"name": "createSubOrder",
|
|
3923
3788
|
"outputs": [
|
|
3924
3789
|
{
|
|
3925
3790
|
"internalType": "uint256",
|
|
@@ -3927,59 +3792,99 @@
|
|
|
3927
3792
|
"type": "uint256"
|
|
3928
3793
|
}
|
|
3929
3794
|
],
|
|
3930
|
-
"stateMutability": "
|
|
3795
|
+
"stateMutability": "nonpayable",
|
|
3931
3796
|
"type": "function"
|
|
3932
3797
|
},
|
|
3933
3798
|
{
|
|
3934
3799
|
"inputs": [
|
|
3800
|
+
{
|
|
3801
|
+
"internalType": "address",
|
|
3802
|
+
"name": "sender",
|
|
3803
|
+
"type": "address"
|
|
3804
|
+
},
|
|
3935
3805
|
{
|
|
3936
3806
|
"internalType": "uint256",
|
|
3937
|
-
"name": "
|
|
3807
|
+
"name": "parentOrderId",
|
|
3938
3808
|
"type": "uint256"
|
|
3939
|
-
}
|
|
3940
|
-
],
|
|
3941
|
-
"name": "getOrderOrigins",
|
|
3942
|
-
"outputs": [
|
|
3809
|
+
},
|
|
3943
3810
|
{
|
|
3944
3811
|
"components": [
|
|
3945
3812
|
{
|
|
3946
3813
|
"internalType": "uint256",
|
|
3947
|
-
"name": "
|
|
3814
|
+
"name": "offerId",
|
|
3948
3815
|
"type": "uint256"
|
|
3949
3816
|
},
|
|
3950
3817
|
{
|
|
3951
|
-
"internalType": "
|
|
3952
|
-
"name": "
|
|
3953
|
-
"type": "
|
|
3818
|
+
"internalType": "string",
|
|
3819
|
+
"name": "resultPublicKey",
|
|
3820
|
+
"type": "string"
|
|
3954
3821
|
},
|
|
3955
3822
|
{
|
|
3956
|
-
"internalType": "
|
|
3957
|
-
"name": "
|
|
3958
|
-
"type": "
|
|
3823
|
+
"internalType": "string",
|
|
3824
|
+
"name": "encryptedRequirements",
|
|
3825
|
+
"type": "string"
|
|
3959
3826
|
},
|
|
3960
3827
|
{
|
|
3961
|
-
"internalType": "
|
|
3962
|
-
"name": "
|
|
3963
|
-
"type": "
|
|
3828
|
+
"internalType": "string",
|
|
3829
|
+
"name": "encryptedArgs",
|
|
3830
|
+
"type": "string"
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
"internalType": "enum OrderStatus",
|
|
3834
|
+
"name": "status",
|
|
3835
|
+
"type": "uint8"
|
|
3836
|
+
},
|
|
3837
|
+
{
|
|
3838
|
+
"components": [
|
|
3839
|
+
{
|
|
3840
|
+
"internalType": "uint256",
|
|
3841
|
+
"name": "slots",
|
|
3842
|
+
"type": "uint256"
|
|
3843
|
+
},
|
|
3844
|
+
{
|
|
3845
|
+
"internalType": "uint256[]",
|
|
3846
|
+
"name": "inputOffers",
|
|
3847
|
+
"type": "uint256[]"
|
|
3848
|
+
},
|
|
3849
|
+
{
|
|
3850
|
+
"internalType": "uint256[]",
|
|
3851
|
+
"name": "selectedOffers",
|
|
3852
|
+
"type": "uint256[]"
|
|
3853
|
+
}
|
|
3854
|
+
],
|
|
3855
|
+
"internalType": "struct OrderArgs",
|
|
3856
|
+
"name": "args",
|
|
3857
|
+
"type": "tuple"
|
|
3858
|
+
},
|
|
3859
|
+
{
|
|
3860
|
+
"internalType": "bytes32",
|
|
3861
|
+
"name": "externalId",
|
|
3862
|
+
"type": "bytes32"
|
|
3964
3863
|
}
|
|
3965
3864
|
],
|
|
3966
|
-
"internalType": "struct
|
|
3967
|
-
"name": "",
|
|
3865
|
+
"internalType": "struct OrderInfo",
|
|
3866
|
+
"name": "suborderInfo",
|
|
3968
3867
|
"type": "tuple"
|
|
3969
|
-
}
|
|
3970
|
-
],
|
|
3971
|
-
"stateMutability": "view",
|
|
3972
|
-
"type": "function"
|
|
3973
|
-
},
|
|
3974
|
-
{
|
|
3975
|
-
"inputs": [
|
|
3868
|
+
},
|
|
3976
3869
|
{
|
|
3977
|
-
"
|
|
3978
|
-
|
|
3979
|
-
|
|
3870
|
+
"components": [
|
|
3871
|
+
{
|
|
3872
|
+
"internalType": "bool",
|
|
3873
|
+
"name": "blockParentOrder",
|
|
3874
|
+
"type": "bool"
|
|
3875
|
+
},
|
|
3876
|
+
{
|
|
3877
|
+
"internalType": "uint256",
|
|
3878
|
+
"name": "holdSum",
|
|
3879
|
+
"type": "uint256"
|
|
3880
|
+
}
|
|
3881
|
+
],
|
|
3882
|
+
"internalType": "struct SubOrderParams",
|
|
3883
|
+
"name": "params",
|
|
3884
|
+
"type": "tuple"
|
|
3980
3885
|
}
|
|
3981
3886
|
],
|
|
3982
|
-
"name": "
|
|
3887
|
+
"name": "createSubOrderByApp",
|
|
3983
3888
|
"outputs": [
|
|
3984
3889
|
{
|
|
3985
3890
|
"internalType": "uint256",
|
|
@@ -3987,7 +3892,7 @@
|
|
|
3987
3892
|
"type": "uint256"
|
|
3988
3893
|
}
|
|
3989
3894
|
],
|
|
3990
|
-
"stateMutability": "
|
|
3895
|
+
"stateMutability": "nonpayable",
|
|
3991
3896
|
"type": "function"
|
|
3992
3897
|
},
|
|
3993
3898
|
{
|
|
@@ -3998,15 +3903,9 @@
|
|
|
3998
3903
|
"type": "uint256"
|
|
3999
3904
|
}
|
|
4000
3905
|
],
|
|
4001
|
-
"name": "
|
|
4002
|
-
"outputs": [
|
|
4003
|
-
|
|
4004
|
-
"internalType": "uint256",
|
|
4005
|
-
"name": "",
|
|
4006
|
-
"type": "uint256"
|
|
4007
|
-
}
|
|
4008
|
-
],
|
|
4009
|
-
"stateMutability": "view",
|
|
3906
|
+
"name": "processOrder",
|
|
3907
|
+
"outputs": [],
|
|
3908
|
+
"stateMutability": "nonpayable",
|
|
4010
3909
|
"type": "function"
|
|
4011
3910
|
},
|
|
4012
3911
|
{
|
|
@@ -4015,17 +3914,16 @@
|
|
|
4015
3914
|
"internalType": "uint256",
|
|
4016
3915
|
"name": "orderId",
|
|
4017
3916
|
"type": "uint256"
|
|
4018
|
-
}
|
|
4019
|
-
],
|
|
4020
|
-
"name": "getOrderProfitWithdrawn",
|
|
4021
|
-
"outputs": [
|
|
3917
|
+
},
|
|
4022
3918
|
{
|
|
4023
3919
|
"internalType": "bool",
|
|
4024
|
-
"name": "",
|
|
3920
|
+
"name": "value",
|
|
4025
3921
|
"type": "bool"
|
|
4026
3922
|
}
|
|
4027
3923
|
],
|
|
4028
|
-
"
|
|
3924
|
+
"name": "setAwaitingPayment",
|
|
3925
|
+
"outputs": [],
|
|
3926
|
+
"stateMutability": "nonpayable",
|
|
4029
3927
|
"type": "function"
|
|
4030
3928
|
},
|
|
4031
3929
|
{
|
|
@@ -4034,30 +3932,16 @@
|
|
|
4034
3932
|
"internalType": "uint256",
|
|
4035
3933
|
"name": "orderId",
|
|
4036
3934
|
"type": "uint256"
|
|
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": [
|
|
3935
|
+
},
|
|
4054
3936
|
{
|
|
4055
3937
|
"internalType": "uint256",
|
|
4056
|
-
"name": "",
|
|
3938
|
+
"name": "value",
|
|
4057
3939
|
"type": "uint256"
|
|
4058
3940
|
}
|
|
4059
3941
|
],
|
|
4060
|
-
"
|
|
3942
|
+
"name": "setDepositSpent",
|
|
3943
|
+
"outputs": [],
|
|
3944
|
+
"stateMutability": "nonpayable",
|
|
4061
3945
|
"type": "function"
|
|
4062
3946
|
},
|
|
4063
3947
|
{
|
|
@@ -4068,34 +3952,27 @@
|
|
|
4068
3952
|
"type": "uint256"
|
|
4069
3953
|
}
|
|
4070
3954
|
],
|
|
4071
|
-
"name": "
|
|
4072
|
-
"outputs": [
|
|
4073
|
-
|
|
4074
|
-
"internalType": "uint256",
|
|
4075
|
-
"name": "",
|
|
4076
|
-
"type": "uint256"
|
|
4077
|
-
}
|
|
4078
|
-
],
|
|
4079
|
-
"stateMutability": "view",
|
|
3955
|
+
"name": "startOrder",
|
|
3956
|
+
"outputs": [],
|
|
3957
|
+
"stateMutability": "nonpayable",
|
|
4080
3958
|
"type": "function"
|
|
4081
3959
|
},
|
|
4082
3960
|
{
|
|
4083
3961
|
"inputs": [
|
|
3962
|
+
{
|
|
3963
|
+
"internalType": "address",
|
|
3964
|
+
"name": "sender",
|
|
3965
|
+
"type": "address"
|
|
3966
|
+
},
|
|
4084
3967
|
{
|
|
4085
3968
|
"internalType": "uint256",
|
|
4086
3969
|
"name": "orderId",
|
|
4087
3970
|
"type": "uint256"
|
|
4088
3971
|
}
|
|
4089
3972
|
],
|
|
4090
|
-
"name": "
|
|
4091
|
-
"outputs": [
|
|
4092
|
-
|
|
4093
|
-
"internalType": "bool",
|
|
4094
|
-
"name": "",
|
|
4095
|
-
"type": "bool"
|
|
4096
|
-
}
|
|
4097
|
-
],
|
|
4098
|
-
"stateMutability": "view",
|
|
3973
|
+
"name": "startOrderByApp",
|
|
3974
|
+
"outputs": [],
|
|
3975
|
+
"stateMutability": "nonpayable",
|
|
4099
3976
|
"type": "function"
|
|
4100
3977
|
},
|
|
4101
3978
|
{
|
|
@@ -4104,17 +3981,16 @@
|
|
|
4104
3981
|
"internalType": "uint256",
|
|
4105
3982
|
"name": "orderId",
|
|
4106
3983
|
"type": "uint256"
|
|
4107
|
-
}
|
|
4108
|
-
],
|
|
4109
|
-
"name": "isOrderStarted",
|
|
4110
|
-
"outputs": [
|
|
3984
|
+
},
|
|
4111
3985
|
{
|
|
4112
|
-
"internalType": "
|
|
4113
|
-
"name": "",
|
|
4114
|
-
"type": "
|
|
3986
|
+
"internalType": "uint256",
|
|
3987
|
+
"name": "orderPrice",
|
|
3988
|
+
"type": "uint256"
|
|
4115
3989
|
}
|
|
4116
3990
|
],
|
|
4117
|
-
"
|
|
3991
|
+
"name": "updateOrderPrice",
|
|
3992
|
+
"outputs": [],
|
|
3993
|
+
"stateMutability": "nonpayable",
|
|
4118
3994
|
"type": "function"
|
|
4119
3995
|
},
|
|
4120
3996
|
{
|
|
@@ -4123,67 +3999,92 @@
|
|
|
4123
3999
|
"internalType": "uint256",
|
|
4124
4000
|
"name": "orderId",
|
|
4125
4001
|
"type": "uint256"
|
|
4126
|
-
}
|
|
4127
|
-
],
|
|
4128
|
-
"name": "isOrderValid",
|
|
4129
|
-
"outputs": [
|
|
4002
|
+
},
|
|
4130
4003
|
{
|
|
4131
|
-
"internalType": "
|
|
4132
|
-
"name": "",
|
|
4133
|
-
"type": "
|
|
4004
|
+
"internalType": "string",
|
|
4005
|
+
"name": "encryptedResult",
|
|
4006
|
+
"type": "string"
|
|
4134
4007
|
}
|
|
4135
4008
|
],
|
|
4136
|
-
"
|
|
4009
|
+
"name": "updateOrderResult",
|
|
4010
|
+
"outputs": [],
|
|
4011
|
+
"stateMutability": "nonpayable",
|
|
4137
4012
|
"type": "function"
|
|
4138
4013
|
},
|
|
4139
4014
|
{
|
|
4015
|
+
"anonymous": false,
|
|
4140
4016
|
"inputs": [
|
|
4141
4017
|
{
|
|
4018
|
+
"indexed": true,
|
|
4019
|
+
"internalType": "address",
|
|
4020
|
+
"name": "consumer",
|
|
4021
|
+
"type": "address"
|
|
4022
|
+
},
|
|
4023
|
+
{
|
|
4024
|
+
"indexed": true,
|
|
4142
4025
|
"internalType": "uint256",
|
|
4143
4026
|
"name": "orderId",
|
|
4144
4027
|
"type": "uint256"
|
|
4028
|
+
},
|
|
4029
|
+
{
|
|
4030
|
+
"indexed": false,
|
|
4031
|
+
"internalType": "uint256",
|
|
4032
|
+
"name": "change",
|
|
4033
|
+
"type": "uint256"
|
|
4145
4034
|
}
|
|
4146
4035
|
],
|
|
4147
|
-
"name": "
|
|
4148
|
-
"
|
|
4149
|
-
"stateMutability": "nonpayable",
|
|
4150
|
-
"type": "function"
|
|
4036
|
+
"name": "OrderChangedWithdrawn",
|
|
4037
|
+
"type": "event"
|
|
4151
4038
|
},
|
|
4152
4039
|
{
|
|
4040
|
+
"anonymous": false,
|
|
4153
4041
|
"inputs": [
|
|
4154
4042
|
{
|
|
4043
|
+
"indexed": true,
|
|
4044
|
+
"internalType": "address",
|
|
4045
|
+
"name": "consumer",
|
|
4046
|
+
"type": "address"
|
|
4047
|
+
},
|
|
4048
|
+
{
|
|
4049
|
+
"indexed": true,
|
|
4155
4050
|
"internalType": "uint256",
|
|
4156
4051
|
"name": "orderId",
|
|
4157
4052
|
"type": "uint256"
|
|
4158
4053
|
},
|
|
4159
4054
|
{
|
|
4055
|
+
"indexed": false,
|
|
4160
4056
|
"internalType": "uint256",
|
|
4161
4057
|
"name": "amount",
|
|
4162
4058
|
"type": "uint256"
|
|
4163
4059
|
}
|
|
4164
4060
|
],
|
|
4165
|
-
"name": "
|
|
4166
|
-
"
|
|
4167
|
-
"stateMutability": "nonpayable",
|
|
4168
|
-
"type": "function"
|
|
4061
|
+
"name": "OrderDepositRefilled",
|
|
4062
|
+
"type": "event"
|
|
4169
4063
|
},
|
|
4170
4064
|
{
|
|
4065
|
+
"anonymous": false,
|
|
4171
4066
|
"inputs": [
|
|
4172
4067
|
{
|
|
4068
|
+
"indexed": true,
|
|
4069
|
+
"internalType": "address",
|
|
4070
|
+
"name": "tokenReceiver",
|
|
4071
|
+
"type": "address"
|
|
4072
|
+
},
|
|
4073
|
+
{
|
|
4074
|
+
"indexed": true,
|
|
4173
4075
|
"internalType": "uint256",
|
|
4174
4076
|
"name": "orderId",
|
|
4175
4077
|
"type": "uint256"
|
|
4176
4078
|
},
|
|
4177
4079
|
{
|
|
4178
|
-
"
|
|
4179
|
-
"
|
|
4180
|
-
"
|
|
4080
|
+
"indexed": false,
|
|
4081
|
+
"internalType": "uint256",
|
|
4082
|
+
"name": "profit",
|
|
4083
|
+
"type": "uint256"
|
|
4181
4084
|
}
|
|
4182
4085
|
],
|
|
4183
|
-
"name": "
|
|
4184
|
-
"
|
|
4185
|
-
"stateMutability": "nonpayable",
|
|
4186
|
-
"type": "function"
|
|
4086
|
+
"name": "OrderProfitWithdrawn",
|
|
4087
|
+
"type": "event"
|
|
4187
4088
|
},
|
|
4188
4089
|
{
|
|
4189
4090
|
"inputs": [
|
|
@@ -4194,11 +4095,11 @@
|
|
|
4194
4095
|
},
|
|
4195
4096
|
{
|
|
4196
4097
|
"internalType": "uint256",
|
|
4197
|
-
"name": "
|
|
4098
|
+
"name": "amount",
|
|
4198
4099
|
"type": "uint256"
|
|
4199
4100
|
}
|
|
4200
4101
|
],
|
|
4201
|
-
"name": "
|
|
4102
|
+
"name": "refillOrder",
|
|
4202
4103
|
"outputs": [],
|
|
4203
4104
|
"stateMutability": "nonpayable",
|
|
4204
4105
|
"type": "function"
|
|
@@ -4211,7 +4112,7 @@
|
|
|
4211
4112
|
"type": "uint256"
|
|
4212
4113
|
}
|
|
4213
4114
|
],
|
|
4214
|
-
"name": "
|
|
4115
|
+
"name": "withdrawChange",
|
|
4215
4116
|
"outputs": [],
|
|
4216
4117
|
"stateMutability": "nonpayable",
|
|
4217
4118
|
"type": "function"
|
|
@@ -4219,17 +4120,17 @@
|
|
|
4219
4120
|
{
|
|
4220
4121
|
"inputs": [
|
|
4221
4122
|
{
|
|
4222
|
-
"internalType": "
|
|
4223
|
-
"name": "
|
|
4224
|
-
"type": "
|
|
4123
|
+
"internalType": "address",
|
|
4124
|
+
"name": "consumer",
|
|
4125
|
+
"type": "address"
|
|
4225
4126
|
},
|
|
4226
4127
|
{
|
|
4227
4128
|
"internalType": "uint256",
|
|
4228
|
-
"name": "
|
|
4129
|
+
"name": "orderId",
|
|
4229
4130
|
"type": "uint256"
|
|
4230
4131
|
}
|
|
4231
4132
|
],
|
|
4232
|
-
"name": "
|
|
4133
|
+
"name": "withdrawChangeByApp",
|
|
4233
4134
|
"outputs": [],
|
|
4234
4135
|
"stateMutability": "nonpayable",
|
|
4235
4136
|
"type": "function"
|
|
@@ -4240,14 +4141,9 @@
|
|
|
4240
4141
|
"internalType": "uint256",
|
|
4241
4142
|
"name": "orderId",
|
|
4242
4143
|
"type": "uint256"
|
|
4243
|
-
},
|
|
4244
|
-
{
|
|
4245
|
-
"internalType": "string",
|
|
4246
|
-
"name": "encryptedResult",
|
|
4247
|
-
"type": "string"
|
|
4248
4144
|
}
|
|
4249
4145
|
],
|
|
4250
|
-
"name": "
|
|
4146
|
+
"name": "withdrawProfit",
|
|
4251
4147
|
"outputs": [],
|
|
4252
4148
|
"stateMutability": "nonpayable",
|
|
4253
4149
|
"type": "function"
|
|
@@ -4260,121 +4156,88 @@
|
|
|
4260
4156
|
"type": "uint256"
|
|
4261
4157
|
}
|
|
4262
4158
|
],
|
|
4263
|
-
"name": "
|
|
4264
|
-
"outputs": [
|
|
4265
|
-
"stateMutability": "nonpayable",
|
|
4266
|
-
"type": "function"
|
|
4267
|
-
},
|
|
4268
|
-
{
|
|
4269
|
-
"inputs": [
|
|
4159
|
+
"name": "calculateTotalDepositSpent",
|
|
4160
|
+
"outputs": [
|
|
4270
4161
|
{
|
|
4271
4162
|
"internalType": "uint256",
|
|
4272
|
-
"name": "
|
|
4163
|
+
"name": "depositSpent",
|
|
4273
4164
|
"type": "uint256"
|
|
4274
4165
|
}
|
|
4275
4166
|
],
|
|
4276
|
-
"
|
|
4277
|
-
"outputs": [],
|
|
4278
|
-
"stateMutability": "nonpayable",
|
|
4167
|
+
"stateMutability": "view",
|
|
4279
4168
|
"type": "function"
|
|
4280
4169
|
},
|
|
4281
4170
|
{
|
|
4282
|
-
"anonymous": false,
|
|
4283
4171
|
"inputs": [
|
|
4284
4172
|
{
|
|
4285
|
-
"
|
|
4286
|
-
"
|
|
4287
|
-
"
|
|
4288
|
-
"type": "address"
|
|
4173
|
+
"internalType": "uint256",
|
|
4174
|
+
"name": "orderId",
|
|
4175
|
+
"type": "uint256"
|
|
4289
4176
|
}
|
|
4290
4177
|
],
|
|
4291
|
-
"name": "
|
|
4292
|
-
"
|
|
4293
|
-
},
|
|
4294
|
-
{
|
|
4295
|
-
"anonymous": false,
|
|
4296
|
-
"inputs": [
|
|
4178
|
+
"name": "calculateTotalDepositUnspent",
|
|
4179
|
+
"outputs": [
|
|
4297
4180
|
{
|
|
4298
|
-
"
|
|
4299
|
-
"
|
|
4300
|
-
"
|
|
4301
|
-
"type": "address"
|
|
4181
|
+
"internalType": "uint256",
|
|
4182
|
+
"name": "depositUnspent",
|
|
4183
|
+
"type": "uint256"
|
|
4302
4184
|
}
|
|
4303
4185
|
],
|
|
4304
|
-
"
|
|
4305
|
-
"type": "
|
|
4186
|
+
"stateMutability": "view",
|
|
4187
|
+
"type": "function"
|
|
4306
4188
|
},
|
|
4307
4189
|
{
|
|
4308
|
-
"anonymous": false,
|
|
4309
4190
|
"inputs": [
|
|
4310
4191
|
{
|
|
4311
|
-
"indexed": true,
|
|
4312
|
-
"internalType": "address",
|
|
4313
|
-
"name": "auth",
|
|
4314
|
-
"type": "address"
|
|
4315
|
-
},
|
|
4316
|
-
{
|
|
4317
|
-
"indexed": false,
|
|
4318
4192
|
"internalType": "uint256",
|
|
4319
|
-
"name": "
|
|
4193
|
+
"name": "orderId",
|
|
4320
4194
|
"type": "uint256"
|
|
4321
4195
|
}
|
|
4322
4196
|
],
|
|
4323
|
-
"name": "
|
|
4324
|
-
"
|
|
4325
|
-
},
|
|
4326
|
-
{
|
|
4327
|
-
"anonymous": false,
|
|
4328
|
-
"inputs": [
|
|
4329
|
-
{
|
|
4330
|
-
"indexed": true,
|
|
4331
|
-
"internalType": "address",
|
|
4332
|
-
"name": "auth",
|
|
4333
|
-
"type": "address"
|
|
4334
|
-
},
|
|
4197
|
+
"name": "calculateTotalHoldDeposit",
|
|
4198
|
+
"outputs": [
|
|
4335
4199
|
{
|
|
4336
|
-
"indexed": false,
|
|
4337
4200
|
"internalType": "uint256",
|
|
4338
|
-
"name": "
|
|
4201
|
+
"name": "holdDeposit",
|
|
4339
4202
|
"type": "uint256"
|
|
4340
4203
|
}
|
|
4341
4204
|
],
|
|
4342
|
-
"
|
|
4343
|
-
"type": "
|
|
4205
|
+
"stateMutability": "view",
|
|
4206
|
+
"type": "function"
|
|
4344
4207
|
},
|
|
4345
4208
|
{
|
|
4346
|
-
"anonymous": false,
|
|
4347
4209
|
"inputs": [
|
|
4348
4210
|
{
|
|
4349
|
-
"indexed": true,
|
|
4350
|
-
"internalType": "address",
|
|
4351
|
-
"name": "auth",
|
|
4352
|
-
"type": "address"
|
|
4353
|
-
},
|
|
4354
|
-
{
|
|
4355
|
-
"indexed": false,
|
|
4356
4211
|
"internalType": "uint256",
|
|
4357
|
-
"name": "
|
|
4212
|
+
"name": "orderId",
|
|
4358
4213
|
"type": "uint256"
|
|
4359
4214
|
}
|
|
4360
4215
|
],
|
|
4361
|
-
"name": "
|
|
4362
|
-
"
|
|
4216
|
+
"name": "getAwaitingPayment",
|
|
4217
|
+
"outputs": [
|
|
4218
|
+
{
|
|
4219
|
+
"internalType": "bool",
|
|
4220
|
+
"name": "",
|
|
4221
|
+
"type": "bool"
|
|
4222
|
+
}
|
|
4223
|
+
],
|
|
4224
|
+
"stateMutability": "view",
|
|
4225
|
+
"type": "function"
|
|
4363
4226
|
},
|
|
4364
4227
|
{
|
|
4365
4228
|
"inputs": [
|
|
4366
4229
|
{
|
|
4367
|
-
"internalType": "
|
|
4368
|
-
"name": "
|
|
4369
|
-
"type": "
|
|
4230
|
+
"internalType": "uint256",
|
|
4231
|
+
"name": "orderId",
|
|
4232
|
+
"type": "uint256"
|
|
4370
4233
|
}
|
|
4371
4234
|
],
|
|
4372
|
-
"name": "
|
|
4235
|
+
"name": "getDepositSpent",
|
|
4373
4236
|
"outputs": [
|
|
4374
4237
|
{
|
|
4375
|
-
"internalType": "
|
|
4238
|
+
"internalType": "uint256",
|
|
4376
4239
|
"name": "",
|
|
4377
|
-
"type": "
|
|
4240
|
+
"type": "uint256"
|
|
4378
4241
|
}
|
|
4379
4242
|
],
|
|
4380
4243
|
"stateMutability": "view",
|
|
@@ -4383,42 +4246,91 @@
|
|
|
4383
4246
|
{
|
|
4384
4247
|
"inputs": [
|
|
4385
4248
|
{
|
|
4386
|
-
"internalType": "
|
|
4387
|
-
"name": "
|
|
4388
|
-
"type": "
|
|
4249
|
+
"internalType": "uint256",
|
|
4250
|
+
"name": "orderId",
|
|
4251
|
+
"type": "uint256"
|
|
4389
4252
|
}
|
|
4390
4253
|
],
|
|
4391
|
-
"name": "
|
|
4254
|
+
"name": "getOrder",
|
|
4392
4255
|
"outputs": [
|
|
4256
|
+
{
|
|
4257
|
+
"internalType": "address",
|
|
4258
|
+
"name": "",
|
|
4259
|
+
"type": "address"
|
|
4260
|
+
},
|
|
4393
4261
|
{
|
|
4394
4262
|
"components": [
|
|
4395
4263
|
{
|
|
4396
|
-
"internalType": "
|
|
4397
|
-
"name": "
|
|
4398
|
-
"type": "
|
|
4264
|
+
"internalType": "uint256",
|
|
4265
|
+
"name": "offerId",
|
|
4266
|
+
"type": "uint256"
|
|
4399
4267
|
},
|
|
4400
4268
|
{
|
|
4401
|
-
"internalType": "
|
|
4402
|
-
"name": "
|
|
4403
|
-
"type": "
|
|
4269
|
+
"internalType": "string",
|
|
4270
|
+
"name": "resultPublicKey",
|
|
4271
|
+
"type": "string"
|
|
4404
4272
|
},
|
|
4405
4273
|
{
|
|
4406
4274
|
"internalType": "string",
|
|
4407
|
-
"name": "
|
|
4275
|
+
"name": "encryptedRequirements",
|
|
4408
4276
|
"type": "string"
|
|
4409
4277
|
},
|
|
4410
4278
|
{
|
|
4411
4279
|
"internalType": "string",
|
|
4412
|
-
"name": "
|
|
4280
|
+
"name": "encryptedArgs",
|
|
4413
4281
|
"type": "string"
|
|
4414
4282
|
},
|
|
4283
|
+
{
|
|
4284
|
+
"internalType": "enum OrderStatus",
|
|
4285
|
+
"name": "status",
|
|
4286
|
+
"type": "uint8"
|
|
4287
|
+
},
|
|
4288
|
+
{
|
|
4289
|
+
"components": [
|
|
4290
|
+
{
|
|
4291
|
+
"internalType": "uint256",
|
|
4292
|
+
"name": "slots",
|
|
4293
|
+
"type": "uint256"
|
|
4294
|
+
},
|
|
4295
|
+
{
|
|
4296
|
+
"internalType": "uint256[]",
|
|
4297
|
+
"name": "inputOffers",
|
|
4298
|
+
"type": "uint256[]"
|
|
4299
|
+
},
|
|
4300
|
+
{
|
|
4301
|
+
"internalType": "uint256[]",
|
|
4302
|
+
"name": "selectedOffers",
|
|
4303
|
+
"type": "uint256[]"
|
|
4304
|
+
}
|
|
4305
|
+
],
|
|
4306
|
+
"internalType": "struct OrderArgs",
|
|
4307
|
+
"name": "args",
|
|
4308
|
+
"type": "tuple"
|
|
4309
|
+
},
|
|
4310
|
+
{
|
|
4311
|
+
"internalType": "bytes32",
|
|
4312
|
+
"name": "externalId",
|
|
4313
|
+
"type": "bytes32"
|
|
4314
|
+
}
|
|
4315
|
+
],
|
|
4316
|
+
"internalType": "struct OrderInfo",
|
|
4317
|
+
"name": "",
|
|
4318
|
+
"type": "tuple"
|
|
4319
|
+
},
|
|
4320
|
+
{
|
|
4321
|
+
"components": [
|
|
4415
4322
|
{
|
|
4416
4323
|
"internalType": "string",
|
|
4417
|
-
"name": "
|
|
4324
|
+
"name": "encryptedResult",
|
|
4418
4325
|
"type": "string"
|
|
4326
|
+
},
|
|
4327
|
+
{
|
|
4328
|
+
"internalType": "uint256",
|
|
4329
|
+
"name": "orderPrice",
|
|
4330
|
+
"type": "uint256"
|
|
4419
4331
|
}
|
|
4420
4332
|
],
|
|
4421
|
-
"internalType": "struct
|
|
4333
|
+
"internalType": "struct OrderResult",
|
|
4422
4334
|
"name": "",
|
|
4423
4335
|
"type": "tuple"
|
|
4424
4336
|
}
|
|
@@ -4429,12 +4341,50 @@
|
|
|
4429
4341
|
{
|
|
4430
4342
|
"inputs": [
|
|
4431
4343
|
{
|
|
4432
|
-
"internalType": "
|
|
4433
|
-
"name": "
|
|
4434
|
-
"type": "
|
|
4344
|
+
"internalType": "uint256",
|
|
4345
|
+
"name": "orderId",
|
|
4346
|
+
"type": "uint256"
|
|
4435
4347
|
}
|
|
4436
4348
|
],
|
|
4437
|
-
"name": "
|
|
4349
|
+
"name": "getOrderChangeWithdrawn",
|
|
4350
|
+
"outputs": [
|
|
4351
|
+
{
|
|
4352
|
+
"internalType": "bool",
|
|
4353
|
+
"name": "",
|
|
4354
|
+
"type": "bool"
|
|
4355
|
+
}
|
|
4356
|
+
],
|
|
4357
|
+
"stateMutability": "view",
|
|
4358
|
+
"type": "function"
|
|
4359
|
+
},
|
|
4360
|
+
{
|
|
4361
|
+
"inputs": [
|
|
4362
|
+
{
|
|
4363
|
+
"internalType": "uint256",
|
|
4364
|
+
"name": "orderId",
|
|
4365
|
+
"type": "uint256"
|
|
4366
|
+
}
|
|
4367
|
+
],
|
|
4368
|
+
"name": "getOrderHoldDeposit",
|
|
4369
|
+
"outputs": [
|
|
4370
|
+
{
|
|
4371
|
+
"internalType": "uint256",
|
|
4372
|
+
"name": "",
|
|
4373
|
+
"type": "uint256"
|
|
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": "getOrderOrigins",
|
|
4438
4388
|
"outputs": [
|
|
4439
4389
|
{
|
|
4440
4390
|
"components": [
|
|
@@ -4470,12 +4420,12 @@
|
|
|
4470
4420
|
{
|
|
4471
4421
|
"inputs": [
|
|
4472
4422
|
{
|
|
4473
|
-
"internalType": "
|
|
4474
|
-
"name": "
|
|
4475
|
-
"type": "
|
|
4423
|
+
"internalType": "uint256",
|
|
4424
|
+
"name": "orderId",
|
|
4425
|
+
"type": "uint256"
|
|
4476
4426
|
}
|
|
4477
4427
|
],
|
|
4478
|
-
"name": "
|
|
4428
|
+
"name": "getOrderParentOrder",
|
|
4479
4429
|
"outputs": [
|
|
4480
4430
|
{
|
|
4481
4431
|
"internalType": "uint256",
|
|
@@ -4489,17 +4439,17 @@
|
|
|
4489
4439
|
{
|
|
4490
4440
|
"inputs": [
|
|
4491
4441
|
{
|
|
4492
|
-
"internalType": "
|
|
4493
|
-
"name": "
|
|
4494
|
-
"type": "
|
|
4442
|
+
"internalType": "uint256",
|
|
4443
|
+
"name": "orderId",
|
|
4444
|
+
"type": "uint256"
|
|
4495
4445
|
}
|
|
4496
4446
|
],
|
|
4497
|
-
"name": "
|
|
4447
|
+
"name": "getOrderPrice",
|
|
4498
4448
|
"outputs": [
|
|
4499
4449
|
{
|
|
4500
|
-
"internalType": "
|
|
4450
|
+
"internalType": "uint256",
|
|
4501
4451
|
"name": "",
|
|
4502
|
-
"type": "
|
|
4452
|
+
"type": "uint256"
|
|
4503
4453
|
}
|
|
4504
4454
|
],
|
|
4505
4455
|
"stateMutability": "view",
|
|
@@ -4508,30 +4458,36 @@
|
|
|
4508
4458
|
{
|
|
4509
4459
|
"inputs": [
|
|
4510
4460
|
{
|
|
4511
|
-
"internalType": "
|
|
4512
|
-
"name": "
|
|
4513
|
-
"type": "
|
|
4461
|
+
"internalType": "uint256",
|
|
4462
|
+
"name": "orderId",
|
|
4463
|
+
"type": "uint256"
|
|
4514
4464
|
}
|
|
4515
4465
|
],
|
|
4516
|
-
"name": "
|
|
4466
|
+
"name": "getOrderProfitWithdrawn",
|
|
4517
4467
|
"outputs": [
|
|
4518
4468
|
{
|
|
4519
|
-
"internalType": "
|
|
4469
|
+
"internalType": "bool",
|
|
4520
4470
|
"name": "",
|
|
4521
|
-
"type": "
|
|
4471
|
+
"type": "bool"
|
|
4522
4472
|
}
|
|
4523
4473
|
],
|
|
4524
4474
|
"stateMutability": "view",
|
|
4525
4475
|
"type": "function"
|
|
4526
4476
|
},
|
|
4527
4477
|
{
|
|
4528
|
-
"inputs": [
|
|
4529
|
-
|
|
4478
|
+
"inputs": [
|
|
4479
|
+
{
|
|
4480
|
+
"internalType": "uint256",
|
|
4481
|
+
"name": "orderId",
|
|
4482
|
+
"type": "uint256"
|
|
4483
|
+
}
|
|
4484
|
+
],
|
|
4485
|
+
"name": "getOrderSubOrders",
|
|
4530
4486
|
"outputs": [
|
|
4531
4487
|
{
|
|
4532
|
-
"internalType": "
|
|
4488
|
+
"internalType": "uint256[]",
|
|
4533
4489
|
"name": "",
|
|
4534
|
-
"type": "
|
|
4490
|
+
"type": "uint256[]"
|
|
4535
4491
|
}
|
|
4536
4492
|
],
|
|
4537
4493
|
"stateMutability": "view",
|
|
@@ -4539,7 +4495,7 @@
|
|
|
4539
4495
|
},
|
|
4540
4496
|
{
|
|
4541
4497
|
"inputs": [],
|
|
4542
|
-
"name": "
|
|
4498
|
+
"name": "getOrdersCount",
|
|
4543
4499
|
"outputs": [
|
|
4544
4500
|
{
|
|
4545
4501
|
"internalType": "uint256",
|
|
@@ -4553,25 +4509,31 @@
|
|
|
4553
4509
|
{
|
|
4554
4510
|
"inputs": [
|
|
4555
4511
|
{
|
|
4556
|
-
"internalType": "
|
|
4557
|
-
"name": "
|
|
4558
|
-
"type": "
|
|
4512
|
+
"internalType": "uint256",
|
|
4513
|
+
"name": "orderId",
|
|
4514
|
+
"type": "uint256"
|
|
4559
4515
|
}
|
|
4560
4516
|
],
|
|
4561
|
-
"name": "
|
|
4562
|
-
"outputs": [
|
|
4563
|
-
|
|
4517
|
+
"name": "getStartDate",
|
|
4518
|
+
"outputs": [
|
|
4519
|
+
{
|
|
4520
|
+
"internalType": "uint256",
|
|
4521
|
+
"name": "",
|
|
4522
|
+
"type": "uint256"
|
|
4523
|
+
}
|
|
4524
|
+
],
|
|
4525
|
+
"stateMutability": "view",
|
|
4564
4526
|
"type": "function"
|
|
4565
4527
|
},
|
|
4566
4528
|
{
|
|
4567
4529
|
"inputs": [
|
|
4568
4530
|
{
|
|
4569
|
-
"internalType": "
|
|
4570
|
-
"name": "
|
|
4571
|
-
"type": "
|
|
4531
|
+
"internalType": "uint256",
|
|
4532
|
+
"name": "orderId",
|
|
4533
|
+
"type": "uint256"
|
|
4572
4534
|
}
|
|
4573
4535
|
],
|
|
4574
|
-
"name": "
|
|
4536
|
+
"name": "isOrderCompleted",
|
|
4575
4537
|
"outputs": [
|
|
4576
4538
|
{
|
|
4577
4539
|
"internalType": "bool",
|
|
@@ -4582,221 +4544,126 @@
|
|
|
4582
4544
|
"stateMutability": "view",
|
|
4583
4545
|
"type": "function"
|
|
4584
4546
|
},
|
|
4585
|
-
{
|
|
4586
|
-
"inputs": [
|
|
4587
|
-
{
|
|
4588
|
-
"components": [
|
|
4589
|
-
{
|
|
4590
|
-
"internalType": "address",
|
|
4591
|
-
"name": "tokenReceiver",
|
|
4592
|
-
"type": "address"
|
|
4593
|
-
},
|
|
4594
|
-
{
|
|
4595
|
-
"internalType": "address",
|
|
4596
|
-
"name": "actionAccount",
|
|
4597
|
-
"type": "address"
|
|
4598
|
-
},
|
|
4599
|
-
{
|
|
4600
|
-
"internalType": "string",
|
|
4601
|
-
"name": "name",
|
|
4602
|
-
"type": "string"
|
|
4603
|
-
},
|
|
4604
|
-
{
|
|
4605
|
-
"internalType": "string",
|
|
4606
|
-
"name": "description",
|
|
4607
|
-
"type": "string"
|
|
4608
|
-
},
|
|
4609
|
-
{
|
|
4610
|
-
"internalType": "string",
|
|
4611
|
-
"name": "metadata",
|
|
4612
|
-
"type": "string"
|
|
4613
|
-
}
|
|
4614
|
-
],
|
|
4615
|
-
"internalType": "struct ProviderInfo",
|
|
4616
|
-
"name": "info",
|
|
4617
|
-
"type": "tuple"
|
|
4618
|
-
}
|
|
4619
|
-
],
|
|
4620
|
-
"name": "modifyProvider",
|
|
4621
|
-
"outputs": [],
|
|
4622
|
-
"stateMutability": "nonpayable",
|
|
4623
|
-
"type": "function"
|
|
4624
|
-
},
|
|
4625
4547
|
{
|
|
4626
4548
|
"inputs": [
|
|
4627
4549
|
{
|
|
4628
4550
|
"internalType": "uint256",
|
|
4629
|
-
"name": "
|
|
4551
|
+
"name": "orderId",
|
|
4630
4552
|
"type": "uint256"
|
|
4631
4553
|
}
|
|
4632
4554
|
],
|
|
4633
|
-
"name": "
|
|
4634
|
-
"outputs": [
|
|
4635
|
-
"stateMutability": "nonpayable",
|
|
4636
|
-
"type": "function"
|
|
4637
|
-
},
|
|
4638
|
-
{
|
|
4639
|
-
"inputs": [
|
|
4555
|
+
"name": "isOrderStarted",
|
|
4556
|
+
"outputs": [
|
|
4640
4557
|
{
|
|
4641
|
-
"
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
"name": "tokenReceiver",
|
|
4645
|
-
"type": "address"
|
|
4646
|
-
},
|
|
4647
|
-
{
|
|
4648
|
-
"internalType": "address",
|
|
4649
|
-
"name": "actionAccount",
|
|
4650
|
-
"type": "address"
|
|
4651
|
-
},
|
|
4652
|
-
{
|
|
4653
|
-
"internalType": "string",
|
|
4654
|
-
"name": "name",
|
|
4655
|
-
"type": "string"
|
|
4656
|
-
},
|
|
4657
|
-
{
|
|
4658
|
-
"internalType": "string",
|
|
4659
|
-
"name": "description",
|
|
4660
|
-
"type": "string"
|
|
4661
|
-
},
|
|
4662
|
-
{
|
|
4663
|
-
"internalType": "string",
|
|
4664
|
-
"name": "metadata",
|
|
4665
|
-
"type": "string"
|
|
4666
|
-
}
|
|
4667
|
-
],
|
|
4668
|
-
"internalType": "struct ProviderInfo",
|
|
4669
|
-
"name": "info",
|
|
4670
|
-
"type": "tuple"
|
|
4558
|
+
"internalType": "bool",
|
|
4559
|
+
"name": "",
|
|
4560
|
+
"type": "bool"
|
|
4671
4561
|
}
|
|
4672
4562
|
],
|
|
4673
|
-
"
|
|
4674
|
-
"outputs": [],
|
|
4675
|
-
"stateMutability": "nonpayable",
|
|
4563
|
+
"stateMutability": "view",
|
|
4676
4564
|
"type": "function"
|
|
4677
4565
|
},
|
|
4678
4566
|
{
|
|
4679
4567
|
"inputs": [
|
|
4680
4568
|
{
|
|
4681
4569
|
"internalType": "uint256",
|
|
4682
|
-
"name": "
|
|
4570
|
+
"name": "orderId",
|
|
4683
4571
|
"type": "uint256"
|
|
4684
4572
|
}
|
|
4685
4573
|
],
|
|
4686
|
-
"name": "
|
|
4687
|
-
"outputs": [
|
|
4688
|
-
|
|
4574
|
+
"name": "isOrderValid",
|
|
4575
|
+
"outputs": [
|
|
4576
|
+
{
|
|
4577
|
+
"internalType": "bool",
|
|
4578
|
+
"name": "",
|
|
4579
|
+
"type": "bool"
|
|
4580
|
+
}
|
|
4581
|
+
],
|
|
4582
|
+
"stateMutability": "view",
|
|
4689
4583
|
"type": "function"
|
|
4690
4584
|
},
|
|
4691
4585
|
{
|
|
4586
|
+
"anonymous": false,
|
|
4692
4587
|
"inputs": [
|
|
4693
4588
|
{
|
|
4589
|
+
"indexed": true,
|
|
4694
4590
|
"internalType": "address",
|
|
4695
|
-
"name": "
|
|
4591
|
+
"name": "auth",
|
|
4696
4592
|
"type": "address"
|
|
4697
|
-
},
|
|
4698
|
-
{
|
|
4699
|
-
"internalType": "uint256",
|
|
4700
|
-
"name": "offerId",
|
|
4701
|
-
"type": "uint256"
|
|
4702
|
-
},
|
|
4703
|
-
{
|
|
4704
|
-
"internalType": "enum OfferType",
|
|
4705
|
-
"name": "offerType",
|
|
4706
|
-
"type": "uint8"
|
|
4707
4593
|
}
|
|
4708
4594
|
],
|
|
4709
|
-
"name": "
|
|
4710
|
-
"
|
|
4711
|
-
"stateMutability": "nonpayable",
|
|
4712
|
-
"type": "function"
|
|
4595
|
+
"name": "ProviderModified",
|
|
4596
|
+
"type": "event"
|
|
4713
4597
|
},
|
|
4714
4598
|
{
|
|
4599
|
+
"anonymous": false,
|
|
4715
4600
|
"inputs": [
|
|
4716
4601
|
{
|
|
4602
|
+
"indexed": true,
|
|
4717
4603
|
"internalType": "address",
|
|
4718
|
-
"name": "
|
|
4604
|
+
"name": "auth",
|
|
4719
4605
|
"type": "address"
|
|
4720
4606
|
}
|
|
4721
4607
|
],
|
|
4722
|
-
"name": "
|
|
4723
|
-
"
|
|
4724
|
-
"stateMutability": "nonpayable",
|
|
4725
|
-
"type": "function"
|
|
4608
|
+
"name": "ProviderRegistered",
|
|
4609
|
+
"type": "event"
|
|
4726
4610
|
},
|
|
4727
4611
|
{
|
|
4612
|
+
"anonymous": false,
|
|
4728
4613
|
"inputs": [
|
|
4729
4614
|
{
|
|
4615
|
+
"indexed": true,
|
|
4730
4616
|
"internalType": "address",
|
|
4731
|
-
"name": "
|
|
4617
|
+
"name": "auth",
|
|
4732
4618
|
"type": "address"
|
|
4733
|
-
}
|
|
4734
|
-
],
|
|
4735
|
-
"name": "getProviderOffersState",
|
|
4736
|
-
"outputs": [
|
|
4619
|
+
},
|
|
4737
4620
|
{
|
|
4738
|
-
"
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
"type": "uint256"
|
|
4743
|
-
},
|
|
4744
|
-
{
|
|
4745
|
-
"internalType": "uint256",
|
|
4746
|
-
"name": "valueEnabled",
|
|
4747
|
-
"type": "uint256"
|
|
4748
|
-
},
|
|
4749
|
-
{
|
|
4750
|
-
"internalType": "uint256",
|
|
4751
|
-
"name": "lastDisabledAfter",
|
|
4752
|
-
"type": "uint256"
|
|
4753
|
-
}
|
|
4754
|
-
],
|
|
4755
|
-
"internalType": "struct ProviderOffersState",
|
|
4756
|
-
"name": "",
|
|
4757
|
-
"type": "tuple"
|
|
4621
|
+
"indexed": false,
|
|
4622
|
+
"internalType": "uint256",
|
|
4623
|
+
"name": "amount",
|
|
4624
|
+
"type": "uint256"
|
|
4758
4625
|
}
|
|
4759
4626
|
],
|
|
4760
|
-
"
|
|
4761
|
-
"type": "
|
|
4627
|
+
"name": "ProviderSecurityDepoRefilled",
|
|
4628
|
+
"type": "event"
|
|
4762
4629
|
},
|
|
4763
4630
|
{
|
|
4631
|
+
"anonymous": false,
|
|
4764
4632
|
"inputs": [
|
|
4765
4633
|
{
|
|
4634
|
+
"indexed": true,
|
|
4766
4635
|
"internalType": "address",
|
|
4767
|
-
"name": "
|
|
4636
|
+
"name": "auth",
|
|
4768
4637
|
"type": "address"
|
|
4769
|
-
}
|
|
4770
|
-
],
|
|
4771
|
-
"name": "getProviderRecentlyEnabledTeeOffersCount",
|
|
4772
|
-
"outputs": [
|
|
4638
|
+
},
|
|
4773
4639
|
{
|
|
4640
|
+
"indexed": false,
|
|
4774
4641
|
"internalType": "uint256",
|
|
4775
|
-
"name": "",
|
|
4642
|
+
"name": "amount",
|
|
4776
4643
|
"type": "uint256"
|
|
4777
4644
|
}
|
|
4778
4645
|
],
|
|
4779
|
-
"
|
|
4780
|
-
"type": "
|
|
4646
|
+
"name": "ProviderSecurityDepoUnlocked",
|
|
4647
|
+
"type": "event"
|
|
4781
4648
|
},
|
|
4782
4649
|
{
|
|
4650
|
+
"anonymous": false,
|
|
4783
4651
|
"inputs": [
|
|
4784
4652
|
{
|
|
4653
|
+
"indexed": true,
|
|
4785
4654
|
"internalType": "address",
|
|
4786
|
-
"name": "
|
|
4655
|
+
"name": "auth",
|
|
4787
4656
|
"type": "address"
|
|
4788
|
-
}
|
|
4789
|
-
],
|
|
4790
|
-
"name": "getProviderRecentlyEnabledValueOffersCount",
|
|
4791
|
-
"outputs": [
|
|
4657
|
+
},
|
|
4792
4658
|
{
|
|
4659
|
+
"indexed": false,
|
|
4793
4660
|
"internalType": "uint256",
|
|
4794
|
-
"name": "",
|
|
4661
|
+
"name": "newViolationRate",
|
|
4795
4662
|
"type": "uint256"
|
|
4796
4663
|
}
|
|
4797
4664
|
],
|
|
4798
|
-
"
|
|
4799
|
-
"type": "
|
|
4665
|
+
"name": "ProviderViolationRateIncremented",
|
|
4666
|
+
"type": "event"
|
|
4800
4667
|
},
|
|
4801
4668
|
{
|
|
4802
4669
|
"inputs": [
|
|
@@ -4804,19 +4671,14 @@
|
|
|
4804
4671
|
"internalType": "address",
|
|
4805
4672
|
"name": "providerAuth",
|
|
4806
4673
|
"type": "address"
|
|
4807
|
-
},
|
|
4808
|
-
{
|
|
4809
|
-
"internalType": "uint256",
|
|
4810
|
-
"name": "additional",
|
|
4811
|
-
"type": "uint256"
|
|
4812
4674
|
}
|
|
4813
4675
|
],
|
|
4814
|
-
"name": "
|
|
4676
|
+
"name": "getProviderActionAccount",
|
|
4815
4677
|
"outputs": [
|
|
4816
4678
|
{
|
|
4817
|
-
"internalType": "
|
|
4679
|
+
"internalType": "address",
|
|
4818
4680
|
"name": "",
|
|
4819
|
-
"type": "
|
|
4681
|
+
"type": "address"
|
|
4820
4682
|
}
|
|
4821
4683
|
],
|
|
4822
4684
|
"stateMutability": "view",
|
|
@@ -4830,11 +4692,453 @@
|
|
|
4830
4692
|
"type": "address"
|
|
4831
4693
|
}
|
|
4832
4694
|
],
|
|
4833
|
-
"name": "
|
|
4695
|
+
"name": "getProviderInfo",
|
|
4834
4696
|
"outputs": [
|
|
4835
4697
|
{
|
|
4836
|
-
"
|
|
4837
|
-
|
|
4698
|
+
"components": [
|
|
4699
|
+
{
|
|
4700
|
+
"internalType": "address",
|
|
4701
|
+
"name": "tokenReceiver",
|
|
4702
|
+
"type": "address"
|
|
4703
|
+
},
|
|
4704
|
+
{
|
|
4705
|
+
"internalType": "address",
|
|
4706
|
+
"name": "actionAccount",
|
|
4707
|
+
"type": "address"
|
|
4708
|
+
},
|
|
4709
|
+
{
|
|
4710
|
+
"internalType": "string",
|
|
4711
|
+
"name": "name",
|
|
4712
|
+
"type": "string"
|
|
4713
|
+
},
|
|
4714
|
+
{
|
|
4715
|
+
"internalType": "string",
|
|
4716
|
+
"name": "description",
|
|
4717
|
+
"type": "string"
|
|
4718
|
+
},
|
|
4719
|
+
{
|
|
4720
|
+
"internalType": "string",
|
|
4721
|
+
"name": "metadata",
|
|
4722
|
+
"type": "string"
|
|
4723
|
+
}
|
|
4724
|
+
],
|
|
4725
|
+
"internalType": "struct ProviderInfo",
|
|
4726
|
+
"name": "",
|
|
4727
|
+
"type": "tuple"
|
|
4728
|
+
}
|
|
4729
|
+
],
|
|
4730
|
+
"stateMutability": "view",
|
|
4731
|
+
"type": "function"
|
|
4732
|
+
},
|
|
4733
|
+
{
|
|
4734
|
+
"inputs": [
|
|
4735
|
+
{
|
|
4736
|
+
"internalType": "address",
|
|
4737
|
+
"name": "providerAuth",
|
|
4738
|
+
"type": "address"
|
|
4739
|
+
}
|
|
4740
|
+
],
|
|
4741
|
+
"name": "getProviderOrigins",
|
|
4742
|
+
"outputs": [
|
|
4743
|
+
{
|
|
4744
|
+
"components": [
|
|
4745
|
+
{
|
|
4746
|
+
"internalType": "uint256",
|
|
4747
|
+
"name": "createdDate",
|
|
4748
|
+
"type": "uint256"
|
|
4749
|
+
},
|
|
4750
|
+
{
|
|
4751
|
+
"internalType": "address",
|
|
4752
|
+
"name": "createdBy",
|
|
4753
|
+
"type": "address"
|
|
4754
|
+
},
|
|
4755
|
+
{
|
|
4756
|
+
"internalType": "uint256",
|
|
4757
|
+
"name": "modifiedDate",
|
|
4758
|
+
"type": "uint256"
|
|
4759
|
+
},
|
|
4760
|
+
{
|
|
4761
|
+
"internalType": "address",
|
|
4762
|
+
"name": "modifiedBy",
|
|
4763
|
+
"type": "address"
|
|
4764
|
+
}
|
|
4765
|
+
],
|
|
4766
|
+
"internalType": "struct Origins",
|
|
4767
|
+
"name": "",
|
|
4768
|
+
"type": "tuple"
|
|
4769
|
+
}
|
|
4770
|
+
],
|
|
4771
|
+
"stateMutability": "view",
|
|
4772
|
+
"type": "function"
|
|
4773
|
+
},
|
|
4774
|
+
{
|
|
4775
|
+
"inputs": [
|
|
4776
|
+
{
|
|
4777
|
+
"internalType": "address",
|
|
4778
|
+
"name": "providerAuth",
|
|
4779
|
+
"type": "address"
|
|
4780
|
+
}
|
|
4781
|
+
],
|
|
4782
|
+
"name": "getProviderSecurityDeposit",
|
|
4783
|
+
"outputs": [
|
|
4784
|
+
{
|
|
4785
|
+
"internalType": "uint256",
|
|
4786
|
+
"name": "",
|
|
4787
|
+
"type": "uint256"
|
|
4788
|
+
}
|
|
4789
|
+
],
|
|
4790
|
+
"stateMutability": "view",
|
|
4791
|
+
"type": "function"
|
|
4792
|
+
},
|
|
4793
|
+
{
|
|
4794
|
+
"inputs": [
|
|
4795
|
+
{
|
|
4796
|
+
"internalType": "address",
|
|
4797
|
+
"name": "providerAuth",
|
|
4798
|
+
"type": "address"
|
|
4799
|
+
}
|
|
4800
|
+
],
|
|
4801
|
+
"name": "getProviderTokenReceiver",
|
|
4802
|
+
"outputs": [
|
|
4803
|
+
{
|
|
4804
|
+
"internalType": "address",
|
|
4805
|
+
"name": "",
|
|
4806
|
+
"type": "address"
|
|
4807
|
+
}
|
|
4808
|
+
],
|
|
4809
|
+
"stateMutability": "view",
|
|
4810
|
+
"type": "function"
|
|
4811
|
+
},
|
|
4812
|
+
{
|
|
4813
|
+
"inputs": [
|
|
4814
|
+
{
|
|
4815
|
+
"internalType": "address",
|
|
4816
|
+
"name": "providerAuth",
|
|
4817
|
+
"type": "address"
|
|
4818
|
+
}
|
|
4819
|
+
],
|
|
4820
|
+
"name": "getProviderViolationRate",
|
|
4821
|
+
"outputs": [
|
|
4822
|
+
{
|
|
4823
|
+
"internalType": "uint256",
|
|
4824
|
+
"name": "",
|
|
4825
|
+
"type": "uint256"
|
|
4826
|
+
}
|
|
4827
|
+
],
|
|
4828
|
+
"stateMutability": "view",
|
|
4829
|
+
"type": "function"
|
|
4830
|
+
},
|
|
4831
|
+
{
|
|
4832
|
+
"inputs": [],
|
|
4833
|
+
"name": "getProvidersAuths",
|
|
4834
|
+
"outputs": [
|
|
4835
|
+
{
|
|
4836
|
+
"internalType": "address[]",
|
|
4837
|
+
"name": "",
|
|
4838
|
+
"type": "address[]"
|
|
4839
|
+
}
|
|
4840
|
+
],
|
|
4841
|
+
"stateMutability": "view",
|
|
4842
|
+
"type": "function"
|
|
4843
|
+
},
|
|
4844
|
+
{
|
|
4845
|
+
"inputs": [],
|
|
4846
|
+
"name": "getProvidersCount",
|
|
4847
|
+
"outputs": [
|
|
4848
|
+
{
|
|
4849
|
+
"internalType": "uint256",
|
|
4850
|
+
"name": "",
|
|
4851
|
+
"type": "uint256"
|
|
4852
|
+
}
|
|
4853
|
+
],
|
|
4854
|
+
"stateMutability": "view",
|
|
4855
|
+
"type": "function"
|
|
4856
|
+
},
|
|
4857
|
+
{
|
|
4858
|
+
"inputs": [
|
|
4859
|
+
{
|
|
4860
|
+
"internalType": "address",
|
|
4861
|
+
"name": "providerAuth",
|
|
4862
|
+
"type": "address"
|
|
4863
|
+
}
|
|
4864
|
+
],
|
|
4865
|
+
"name": "incrProviderViolationRate",
|
|
4866
|
+
"outputs": [],
|
|
4867
|
+
"stateMutability": "nonpayable",
|
|
4868
|
+
"type": "function"
|
|
4869
|
+
},
|
|
4870
|
+
{
|
|
4871
|
+
"inputs": [
|
|
4872
|
+
{
|
|
4873
|
+
"internalType": "address",
|
|
4874
|
+
"name": "providerAuth",
|
|
4875
|
+
"type": "address"
|
|
4876
|
+
}
|
|
4877
|
+
],
|
|
4878
|
+
"name": "isProviderRegistered",
|
|
4879
|
+
"outputs": [
|
|
4880
|
+
{
|
|
4881
|
+
"internalType": "bool",
|
|
4882
|
+
"name": "",
|
|
4883
|
+
"type": "bool"
|
|
4884
|
+
}
|
|
4885
|
+
],
|
|
4886
|
+
"stateMutability": "view",
|
|
4887
|
+
"type": "function"
|
|
4888
|
+
},
|
|
4889
|
+
{
|
|
4890
|
+
"inputs": [
|
|
4891
|
+
{
|
|
4892
|
+
"components": [
|
|
4893
|
+
{
|
|
4894
|
+
"internalType": "address",
|
|
4895
|
+
"name": "tokenReceiver",
|
|
4896
|
+
"type": "address"
|
|
4897
|
+
},
|
|
4898
|
+
{
|
|
4899
|
+
"internalType": "address",
|
|
4900
|
+
"name": "actionAccount",
|
|
4901
|
+
"type": "address"
|
|
4902
|
+
},
|
|
4903
|
+
{
|
|
4904
|
+
"internalType": "string",
|
|
4905
|
+
"name": "name",
|
|
4906
|
+
"type": "string"
|
|
4907
|
+
},
|
|
4908
|
+
{
|
|
4909
|
+
"internalType": "string",
|
|
4910
|
+
"name": "description",
|
|
4911
|
+
"type": "string"
|
|
4912
|
+
},
|
|
4913
|
+
{
|
|
4914
|
+
"internalType": "string",
|
|
4915
|
+
"name": "metadata",
|
|
4916
|
+
"type": "string"
|
|
4917
|
+
}
|
|
4918
|
+
],
|
|
4919
|
+
"internalType": "struct ProviderInfo",
|
|
4920
|
+
"name": "info",
|
|
4921
|
+
"type": "tuple"
|
|
4922
|
+
}
|
|
4923
|
+
],
|
|
4924
|
+
"name": "modifyProvider",
|
|
4925
|
+
"outputs": [],
|
|
4926
|
+
"stateMutability": "nonpayable",
|
|
4927
|
+
"type": "function"
|
|
4928
|
+
},
|
|
4929
|
+
{
|
|
4930
|
+
"inputs": [
|
|
4931
|
+
{
|
|
4932
|
+
"internalType": "uint256",
|
|
4933
|
+
"name": "amount",
|
|
4934
|
+
"type": "uint256"
|
|
4935
|
+
}
|
|
4936
|
+
],
|
|
4937
|
+
"name": "refillProviderSecurityDepo",
|
|
4938
|
+
"outputs": [],
|
|
4939
|
+
"stateMutability": "nonpayable",
|
|
4940
|
+
"type": "function"
|
|
4941
|
+
},
|
|
4942
|
+
{
|
|
4943
|
+
"inputs": [
|
|
4944
|
+
{
|
|
4945
|
+
"components": [
|
|
4946
|
+
{
|
|
4947
|
+
"internalType": "address",
|
|
4948
|
+
"name": "tokenReceiver",
|
|
4949
|
+
"type": "address"
|
|
4950
|
+
},
|
|
4951
|
+
{
|
|
4952
|
+
"internalType": "address",
|
|
4953
|
+
"name": "actionAccount",
|
|
4954
|
+
"type": "address"
|
|
4955
|
+
},
|
|
4956
|
+
{
|
|
4957
|
+
"internalType": "string",
|
|
4958
|
+
"name": "name",
|
|
4959
|
+
"type": "string"
|
|
4960
|
+
},
|
|
4961
|
+
{
|
|
4962
|
+
"internalType": "string",
|
|
4963
|
+
"name": "description",
|
|
4964
|
+
"type": "string"
|
|
4965
|
+
},
|
|
4966
|
+
{
|
|
4967
|
+
"internalType": "string",
|
|
4968
|
+
"name": "metadata",
|
|
4969
|
+
"type": "string"
|
|
4970
|
+
}
|
|
4971
|
+
],
|
|
4972
|
+
"internalType": "struct ProviderInfo",
|
|
4973
|
+
"name": "info",
|
|
4974
|
+
"type": "tuple"
|
|
4975
|
+
}
|
|
4976
|
+
],
|
|
4977
|
+
"name": "registerProvider",
|
|
4978
|
+
"outputs": [],
|
|
4979
|
+
"stateMutability": "nonpayable",
|
|
4980
|
+
"type": "function"
|
|
4981
|
+
},
|
|
4982
|
+
{
|
|
4983
|
+
"inputs": [
|
|
4984
|
+
{
|
|
4985
|
+
"internalType": "uint256",
|
|
4986
|
+
"name": "amount",
|
|
4987
|
+
"type": "uint256"
|
|
4988
|
+
}
|
|
4989
|
+
],
|
|
4990
|
+
"name": "returnProviderSecurityDepo",
|
|
4991
|
+
"outputs": [],
|
|
4992
|
+
"stateMutability": "nonpayable",
|
|
4993
|
+
"type": "function"
|
|
4994
|
+
},
|
|
4995
|
+
{
|
|
4996
|
+
"inputs": [
|
|
4997
|
+
{
|
|
4998
|
+
"internalType": "address",
|
|
4999
|
+
"name": "providerAuth",
|
|
5000
|
+
"type": "address"
|
|
5001
|
+
},
|
|
5002
|
+
{
|
|
5003
|
+
"internalType": "uint256",
|
|
5004
|
+
"name": "offerId",
|
|
5005
|
+
"type": "uint256"
|
|
5006
|
+
},
|
|
5007
|
+
{
|
|
5008
|
+
"internalType": "enum OfferType",
|
|
5009
|
+
"name": "offerType",
|
|
5010
|
+
"type": "uint8"
|
|
5011
|
+
}
|
|
5012
|
+
],
|
|
5013
|
+
"name": "addProviderOffer",
|
|
5014
|
+
"outputs": [],
|
|
5015
|
+
"stateMutability": "nonpayable",
|
|
5016
|
+
"type": "function"
|
|
5017
|
+
},
|
|
5018
|
+
{
|
|
5019
|
+
"inputs": [
|
|
5020
|
+
{
|
|
5021
|
+
"internalType": "address",
|
|
5022
|
+
"name": "providerAuth",
|
|
5023
|
+
"type": "address"
|
|
5024
|
+
}
|
|
5025
|
+
],
|
|
5026
|
+
"name": "gcProviderOffers",
|
|
5027
|
+
"outputs": [],
|
|
5028
|
+
"stateMutability": "nonpayable",
|
|
5029
|
+
"type": "function"
|
|
5030
|
+
},
|
|
5031
|
+
{
|
|
5032
|
+
"inputs": [
|
|
5033
|
+
{
|
|
5034
|
+
"internalType": "address",
|
|
5035
|
+
"name": "providerAuth",
|
|
5036
|
+
"type": "address"
|
|
5037
|
+
}
|
|
5038
|
+
],
|
|
5039
|
+
"name": "getProviderOffersState",
|
|
5040
|
+
"outputs": [
|
|
5041
|
+
{
|
|
5042
|
+
"components": [
|
|
5043
|
+
{
|
|
5044
|
+
"internalType": "uint256",
|
|
5045
|
+
"name": "teeEnabled",
|
|
5046
|
+
"type": "uint256"
|
|
5047
|
+
},
|
|
5048
|
+
{
|
|
5049
|
+
"internalType": "uint256",
|
|
5050
|
+
"name": "valueEnabled",
|
|
5051
|
+
"type": "uint256"
|
|
5052
|
+
},
|
|
5053
|
+
{
|
|
5054
|
+
"internalType": "uint256",
|
|
5055
|
+
"name": "lastDisabledAfter",
|
|
5056
|
+
"type": "uint256"
|
|
5057
|
+
}
|
|
5058
|
+
],
|
|
5059
|
+
"internalType": "struct ProviderOffersState",
|
|
5060
|
+
"name": "",
|
|
5061
|
+
"type": "tuple"
|
|
5062
|
+
}
|
|
5063
|
+
],
|
|
5064
|
+
"stateMutability": "view",
|
|
5065
|
+
"type": "function"
|
|
5066
|
+
},
|
|
5067
|
+
{
|
|
5068
|
+
"inputs": [
|
|
5069
|
+
{
|
|
5070
|
+
"internalType": "address",
|
|
5071
|
+
"name": "providerAuth",
|
|
5072
|
+
"type": "address"
|
|
5073
|
+
}
|
|
5074
|
+
],
|
|
5075
|
+
"name": "getProviderRecentlyEnabledTeeOffersCount",
|
|
5076
|
+
"outputs": [
|
|
5077
|
+
{
|
|
5078
|
+
"internalType": "uint256",
|
|
5079
|
+
"name": "",
|
|
5080
|
+
"type": "uint256"
|
|
5081
|
+
}
|
|
5082
|
+
],
|
|
5083
|
+
"stateMutability": "view",
|
|
5084
|
+
"type": "function"
|
|
5085
|
+
},
|
|
5086
|
+
{
|
|
5087
|
+
"inputs": [
|
|
5088
|
+
{
|
|
5089
|
+
"internalType": "address",
|
|
5090
|
+
"name": "providerAuth",
|
|
5091
|
+
"type": "address"
|
|
5092
|
+
}
|
|
5093
|
+
],
|
|
5094
|
+
"name": "getProviderRecentlyEnabledValueOffersCount",
|
|
5095
|
+
"outputs": [
|
|
5096
|
+
{
|
|
5097
|
+
"internalType": "uint256",
|
|
5098
|
+
"name": "",
|
|
5099
|
+
"type": "uint256"
|
|
5100
|
+
}
|
|
5101
|
+
],
|
|
5102
|
+
"stateMutability": "view",
|
|
5103
|
+
"type": "function"
|
|
5104
|
+
},
|
|
5105
|
+
{
|
|
5106
|
+
"inputs": [
|
|
5107
|
+
{
|
|
5108
|
+
"internalType": "address",
|
|
5109
|
+
"name": "providerAuth",
|
|
5110
|
+
"type": "address"
|
|
5111
|
+
},
|
|
5112
|
+
{
|
|
5113
|
+
"internalType": "uint256",
|
|
5114
|
+
"name": "additional",
|
|
5115
|
+
"type": "uint256"
|
|
5116
|
+
}
|
|
5117
|
+
],
|
|
5118
|
+
"name": "getProviderRequiredSecDepo",
|
|
5119
|
+
"outputs": [
|
|
5120
|
+
{
|
|
5121
|
+
"internalType": "uint256",
|
|
5122
|
+
"name": "",
|
|
5123
|
+
"type": "uint256"
|
|
5124
|
+
}
|
|
5125
|
+
],
|
|
5126
|
+
"stateMutability": "view",
|
|
5127
|
+
"type": "function"
|
|
5128
|
+
},
|
|
5129
|
+
{
|
|
5130
|
+
"inputs": [
|
|
5131
|
+
{
|
|
5132
|
+
"internalType": "address",
|
|
5133
|
+
"name": "providerAuth",
|
|
5134
|
+
"type": "address"
|
|
5135
|
+
}
|
|
5136
|
+
],
|
|
5137
|
+
"name": "getProviderTeeOffers",
|
|
5138
|
+
"outputs": [
|
|
5139
|
+
{
|
|
5140
|
+
"internalType": "uint256[]",
|
|
5141
|
+
"name": "",
|
|
4838
5142
|
"type": "uint256[]"
|
|
4839
5143
|
}
|
|
4840
5144
|
],
|
|
@@ -5657,6 +5961,19 @@
|
|
|
5657
5961
|
"name": "WorkflowCreated",
|
|
5658
5962
|
"type": "event"
|
|
5659
5963
|
},
|
|
5964
|
+
{
|
|
5965
|
+
"inputs": [
|
|
5966
|
+
{
|
|
5967
|
+
"internalType": "uint256",
|
|
5968
|
+
"name": "parentOrderId",
|
|
5969
|
+
"type": "uint256"
|
|
5970
|
+
}
|
|
5971
|
+
],
|
|
5972
|
+
"name": "cancelWorkflow",
|
|
5973
|
+
"outputs": [],
|
|
5974
|
+
"stateMutability": "nonpayable",
|
|
5975
|
+
"type": "function"
|
|
5976
|
+
},
|
|
5660
5977
|
{
|
|
5661
5978
|
"inputs": [
|
|
5662
5979
|
{
|
|
@@ -5707,6 +6024,11 @@
|
|
|
5707
6024
|
"internalType": "struct OrderArgs",
|
|
5708
6025
|
"name": "args",
|
|
5709
6026
|
"type": "tuple"
|
|
6027
|
+
},
|
|
6028
|
+
{
|
|
6029
|
+
"internalType": "bytes32",
|
|
6030
|
+
"name": "externalId",
|
|
6031
|
+
"type": "bytes32"
|
|
5710
6032
|
}
|
|
5711
6033
|
],
|
|
5712
6034
|
"internalType": "struct OrderInfo",
|
|
@@ -5718,11 +6040,6 @@
|
|
|
5718
6040
|
"name": "holdDeposit",
|
|
5719
6041
|
"type": "uint256"
|
|
5720
6042
|
},
|
|
5721
|
-
{
|
|
5722
|
-
"internalType": "bytes32",
|
|
5723
|
-
"name": "externalId",
|
|
5724
|
-
"type": "bytes32"
|
|
5725
|
-
},
|
|
5726
6043
|
{
|
|
5727
6044
|
"components": [
|
|
5728
6045
|
{
|
|
@@ -5771,6 +6088,11 @@
|
|
|
5771
6088
|
"internalType": "struct OrderArgs",
|
|
5772
6089
|
"name": "args",
|
|
5773
6090
|
"type": "tuple"
|
|
6091
|
+
},
|
|
6092
|
+
{
|
|
6093
|
+
"internalType": "bytes32",
|
|
6094
|
+
"name": "externalId",
|
|
6095
|
+
"type": "bytes32"
|
|
5774
6096
|
}
|
|
5775
6097
|
],
|
|
5776
6098
|
"internalType": "struct OrderInfo[]",
|
|
@@ -5783,6 +6105,19 @@
|
|
|
5783
6105
|
"stateMutability": "nonpayable",
|
|
5784
6106
|
"type": "function"
|
|
5785
6107
|
},
|
|
6108
|
+
{
|
|
6109
|
+
"inputs": [
|
|
6110
|
+
{
|
|
6111
|
+
"internalType": "uint256",
|
|
6112
|
+
"name": "parentOrderId",
|
|
6113
|
+
"type": "uint256"
|
|
6114
|
+
}
|
|
6115
|
+
],
|
|
6116
|
+
"name": "withdrawWorkflowChange",
|
|
6117
|
+
"outputs": [],
|
|
6118
|
+
"stateMutability": "nonpayable",
|
|
6119
|
+
"type": "function"
|
|
6120
|
+
},
|
|
5786
6121
|
{
|
|
5787
6122
|
"anonymous": false,
|
|
5788
6123
|
"inputs": [
|
|
@@ -7333,6 +7668,29 @@
|
|
|
7333
7668
|
},
|
|
7334
7669
|
{
|
|
7335
7670
|
"inputs": [
|
|
7671
|
+
{
|
|
7672
|
+
"internalType": "address",
|
|
7673
|
+
"name": "consumer",
|
|
7674
|
+
"type": "address"
|
|
7675
|
+
},
|
|
7676
|
+
{
|
|
7677
|
+
"internalType": "uint256",
|
|
7678
|
+
"name": "orderId",
|
|
7679
|
+
"type": "uint256"
|
|
7680
|
+
}
|
|
7681
|
+
],
|
|
7682
|
+
"name": "cancelOrderByApp",
|
|
7683
|
+
"outputs": [],
|
|
7684
|
+
"stateMutability": "nonpayable",
|
|
7685
|
+
"type": "function"
|
|
7686
|
+
},
|
|
7687
|
+
{
|
|
7688
|
+
"inputs": [
|
|
7689
|
+
{
|
|
7690
|
+
"internalType": "address",
|
|
7691
|
+
"name": "consumer",
|
|
7692
|
+
"type": "address"
|
|
7693
|
+
},
|
|
7336
7694
|
{
|
|
7337
7695
|
"components": [
|
|
7338
7696
|
{
|
|
@@ -7381,6 +7739,11 @@
|
|
|
7381
7739
|
"internalType": "struct OrderArgs",
|
|
7382
7740
|
"name": "args",
|
|
7383
7741
|
"type": "tuple"
|
|
7742
|
+
},
|
|
7743
|
+
{
|
|
7744
|
+
"internalType": "bytes32",
|
|
7745
|
+
"name": "externalId",
|
|
7746
|
+
"type": "bytes32"
|
|
7384
7747
|
}
|
|
7385
7748
|
],
|
|
7386
7749
|
"internalType": "struct OrderInfo",
|
|
@@ -7396,14 +7759,9 @@
|
|
|
7396
7759
|
"internalType": "bool",
|
|
7397
7760
|
"name": "suspended",
|
|
7398
7761
|
"type": "bool"
|
|
7399
|
-
},
|
|
7400
|
-
{
|
|
7401
|
-
"internalType": "bytes32",
|
|
7402
|
-
"name": "externalId",
|
|
7403
|
-
"type": "bytes32"
|
|
7404
7762
|
}
|
|
7405
7763
|
],
|
|
7406
|
-
"name": "
|
|
7764
|
+
"name": "createOrderByApp",
|
|
7407
7765
|
"outputs": [
|
|
7408
7766
|
{
|
|
7409
7767
|
"internalType": "uint256",
|
|
@@ -7416,6 +7774,11 @@
|
|
|
7416
7774
|
},
|
|
7417
7775
|
{
|
|
7418
7776
|
"inputs": [
|
|
7777
|
+
{
|
|
7778
|
+
"internalType": "address",
|
|
7779
|
+
"name": "consumer",
|
|
7780
|
+
"type": "address"
|
|
7781
|
+
},
|
|
7419
7782
|
{
|
|
7420
7783
|
"internalType": "uint256",
|
|
7421
7784
|
"name": "parentOrderId",
|
|
@@ -7469,6 +7832,11 @@
|
|
|
7469
7832
|
"internalType": "struct OrderArgs",
|
|
7470
7833
|
"name": "args",
|
|
7471
7834
|
"type": "tuple"
|
|
7835
|
+
},
|
|
7836
|
+
{
|
|
7837
|
+
"internalType": "bytes32",
|
|
7838
|
+
"name": "externalId",
|
|
7839
|
+
"type": "bytes32"
|
|
7472
7840
|
}
|
|
7473
7841
|
],
|
|
7474
7842
|
"internalType": "struct OrderInfo",
|
|
@@ -7482,23 +7850,187 @@
|
|
|
7482
7850
|
"name": "blockParentOrder",
|
|
7483
7851
|
"type": "bool"
|
|
7484
7852
|
},
|
|
7853
|
+
{
|
|
7854
|
+
"internalType": "uint256",
|
|
7855
|
+
"name": "holdSum",
|
|
7856
|
+
"type": "uint256"
|
|
7857
|
+
}
|
|
7858
|
+
],
|
|
7859
|
+
"internalType": "struct SubOrderParams",
|
|
7860
|
+
"name": "params",
|
|
7861
|
+
"type": "tuple"
|
|
7862
|
+
}
|
|
7863
|
+
],
|
|
7864
|
+
"name": "createSubOrderByApp",
|
|
7865
|
+
"outputs": [
|
|
7866
|
+
{
|
|
7867
|
+
"internalType": "uint256",
|
|
7868
|
+
"name": "",
|
|
7869
|
+
"type": "uint256"
|
|
7870
|
+
}
|
|
7871
|
+
],
|
|
7872
|
+
"stateMutability": "nonpayable",
|
|
7873
|
+
"type": "function"
|
|
7874
|
+
},
|
|
7875
|
+
{
|
|
7876
|
+
"inputs": [
|
|
7877
|
+
{
|
|
7878
|
+
"internalType": "uint256",
|
|
7879
|
+
"name": "orderId",
|
|
7880
|
+
"type": "uint256"
|
|
7881
|
+
}
|
|
7882
|
+
],
|
|
7883
|
+
"name": "getOrder",
|
|
7884
|
+
"outputs": [
|
|
7885
|
+
{
|
|
7886
|
+
"internalType": "address",
|
|
7887
|
+
"name": "",
|
|
7888
|
+
"type": "address"
|
|
7889
|
+
},
|
|
7890
|
+
{
|
|
7891
|
+
"components": [
|
|
7892
|
+
{
|
|
7893
|
+
"internalType": "uint256",
|
|
7894
|
+
"name": "offerId",
|
|
7895
|
+
"type": "uint256"
|
|
7896
|
+
},
|
|
7897
|
+
{
|
|
7898
|
+
"internalType": "string",
|
|
7899
|
+
"name": "resultPublicKey",
|
|
7900
|
+
"type": "string"
|
|
7901
|
+
},
|
|
7902
|
+
{
|
|
7903
|
+
"internalType": "string",
|
|
7904
|
+
"name": "encryptedRequirements",
|
|
7905
|
+
"type": "string"
|
|
7906
|
+
},
|
|
7907
|
+
{
|
|
7908
|
+
"internalType": "string",
|
|
7909
|
+
"name": "encryptedArgs",
|
|
7910
|
+
"type": "string"
|
|
7911
|
+
},
|
|
7912
|
+
{
|
|
7913
|
+
"internalType": "enum OrderStatus",
|
|
7914
|
+
"name": "status",
|
|
7915
|
+
"type": "uint8"
|
|
7916
|
+
},
|
|
7917
|
+
{
|
|
7918
|
+
"components": [
|
|
7919
|
+
{
|
|
7920
|
+
"internalType": "uint256",
|
|
7921
|
+
"name": "slots",
|
|
7922
|
+
"type": "uint256"
|
|
7923
|
+
},
|
|
7924
|
+
{
|
|
7925
|
+
"internalType": "uint256[]",
|
|
7926
|
+
"name": "inputOffers",
|
|
7927
|
+
"type": "uint256[]"
|
|
7928
|
+
},
|
|
7929
|
+
{
|
|
7930
|
+
"internalType": "uint256[]",
|
|
7931
|
+
"name": "selectedOffers",
|
|
7932
|
+
"type": "uint256[]"
|
|
7933
|
+
}
|
|
7934
|
+
],
|
|
7935
|
+
"internalType": "struct OrderArgs",
|
|
7936
|
+
"name": "args",
|
|
7937
|
+
"type": "tuple"
|
|
7938
|
+
},
|
|
7485
7939
|
{
|
|
7486
7940
|
"internalType": "bytes32",
|
|
7487
7941
|
"name": "externalId",
|
|
7488
7942
|
"type": "bytes32"
|
|
7943
|
+
}
|
|
7944
|
+
],
|
|
7945
|
+
"internalType": "struct OrderInfo",
|
|
7946
|
+
"name": "",
|
|
7947
|
+
"type": "tuple"
|
|
7948
|
+
},
|
|
7949
|
+
{
|
|
7950
|
+
"components": [
|
|
7951
|
+
{
|
|
7952
|
+
"internalType": "string",
|
|
7953
|
+
"name": "encryptedResult",
|
|
7954
|
+
"type": "string"
|
|
7489
7955
|
},
|
|
7490
7956
|
{
|
|
7491
7957
|
"internalType": "uint256",
|
|
7492
|
-
"name": "
|
|
7958
|
+
"name": "orderPrice",
|
|
7493
7959
|
"type": "uint256"
|
|
7494
7960
|
}
|
|
7495
7961
|
],
|
|
7496
|
-
"internalType": "struct
|
|
7497
|
-
"name": "
|
|
7962
|
+
"internalType": "struct OrderResult",
|
|
7963
|
+
"name": "",
|
|
7498
7964
|
"type": "tuple"
|
|
7499
7965
|
}
|
|
7500
7966
|
],
|
|
7501
|
-
"
|
|
7967
|
+
"stateMutability": "view",
|
|
7968
|
+
"type": "function"
|
|
7969
|
+
},
|
|
7970
|
+
{
|
|
7971
|
+
"inputs": [
|
|
7972
|
+
{
|
|
7973
|
+
"internalType": "address",
|
|
7974
|
+
"name": "consumer",
|
|
7975
|
+
"type": "address"
|
|
7976
|
+
},
|
|
7977
|
+
{
|
|
7978
|
+
"internalType": "uint256",
|
|
7979
|
+
"name": "orderId",
|
|
7980
|
+
"type": "uint256"
|
|
7981
|
+
}
|
|
7982
|
+
],
|
|
7983
|
+
"name": "startOrderByApp",
|
|
7984
|
+
"outputs": [],
|
|
7985
|
+
"stateMutability": "nonpayable",
|
|
7986
|
+
"type": "function"
|
|
7987
|
+
},
|
|
7988
|
+
{
|
|
7989
|
+
"inputs": [
|
|
7990
|
+
{
|
|
7991
|
+
"internalType": "address",
|
|
7992
|
+
"name": "sender",
|
|
7993
|
+
"type": "address"
|
|
7994
|
+
},
|
|
7995
|
+
{
|
|
7996
|
+
"internalType": "uint256",
|
|
7997
|
+
"name": "orderId",
|
|
7998
|
+
"type": "uint256"
|
|
7999
|
+
}
|
|
8000
|
+
],
|
|
8001
|
+
"name": "withdrawChangeByApp",
|
|
8002
|
+
"outputs": [],
|
|
8003
|
+
"stateMutability": "nonpayable",
|
|
8004
|
+
"type": "function"
|
|
8005
|
+
},
|
|
8006
|
+
{
|
|
8007
|
+
"inputs": [
|
|
8008
|
+
{
|
|
8009
|
+
"internalType": "uint256",
|
|
8010
|
+
"name": "orderId",
|
|
8011
|
+
"type": "uint256"
|
|
8012
|
+
}
|
|
8013
|
+
],
|
|
8014
|
+
"name": "getAwaitingPayment",
|
|
8015
|
+
"outputs": [
|
|
8016
|
+
{
|
|
8017
|
+
"internalType": "bool",
|
|
8018
|
+
"name": "",
|
|
8019
|
+
"type": "bool"
|
|
8020
|
+
}
|
|
8021
|
+
],
|
|
8022
|
+
"stateMutability": "view",
|
|
8023
|
+
"type": "function"
|
|
8024
|
+
},
|
|
8025
|
+
{
|
|
8026
|
+
"inputs": [
|
|
8027
|
+
{
|
|
8028
|
+
"internalType": "uint256",
|
|
8029
|
+
"name": "orderId",
|
|
8030
|
+
"type": "uint256"
|
|
8031
|
+
}
|
|
8032
|
+
],
|
|
8033
|
+
"name": "getDepositSpent",
|
|
7502
8034
|
"outputs": [
|
|
7503
8035
|
{
|
|
7504
8036
|
"internalType": "uint256",
|
|
@@ -7506,7 +8038,7 @@
|
|
|
7506
8038
|
"type": "uint256"
|
|
7507
8039
|
}
|
|
7508
8040
|
],
|
|
7509
|
-
"stateMutability": "
|
|
8041
|
+
"stateMutability": "view",
|
|
7510
8042
|
"type": "function"
|
|
7511
8043
|
},
|
|
7512
8044
|
{
|
|
@@ -7572,6 +8104,11 @@
|
|
|
7572
8104
|
"internalType": "struct OrderArgs",
|
|
7573
8105
|
"name": "args",
|
|
7574
8106
|
"type": "tuple"
|
|
8107
|
+
},
|
|
8108
|
+
{
|
|
8109
|
+
"internalType": "bytes32",
|
|
8110
|
+
"name": "externalId",
|
|
8111
|
+
"type": "bytes32"
|
|
7575
8112
|
}
|
|
7576
8113
|
],
|
|
7577
8114
|
"internalType": "struct OrderInfo",
|
|
@@ -7607,9 +8144,240 @@
|
|
|
7607
8144
|
"type": "uint256"
|
|
7608
8145
|
}
|
|
7609
8146
|
],
|
|
7610
|
-
"name": "
|
|
7611
|
-
"outputs": [
|
|
7612
|
-
|
|
8147
|
+
"name": "getOrderChangeWithdrawn",
|
|
8148
|
+
"outputs": [
|
|
8149
|
+
{
|
|
8150
|
+
"internalType": "bool",
|
|
8151
|
+
"name": "",
|
|
8152
|
+
"type": "bool"
|
|
8153
|
+
}
|
|
8154
|
+
],
|
|
8155
|
+
"stateMutability": "view",
|
|
8156
|
+
"type": "function"
|
|
8157
|
+
},
|
|
8158
|
+
{
|
|
8159
|
+
"inputs": [
|
|
8160
|
+
{
|
|
8161
|
+
"internalType": "uint256",
|
|
8162
|
+
"name": "orderId",
|
|
8163
|
+
"type": "uint256"
|
|
8164
|
+
}
|
|
8165
|
+
],
|
|
8166
|
+
"name": "getOrderHoldDeposit",
|
|
8167
|
+
"outputs": [
|
|
8168
|
+
{
|
|
8169
|
+
"internalType": "uint256",
|
|
8170
|
+
"name": "",
|
|
8171
|
+
"type": "uint256"
|
|
8172
|
+
}
|
|
8173
|
+
],
|
|
8174
|
+
"stateMutability": "view",
|
|
8175
|
+
"type": "function"
|
|
8176
|
+
},
|
|
8177
|
+
{
|
|
8178
|
+
"inputs": [
|
|
8179
|
+
{
|
|
8180
|
+
"internalType": "uint256",
|
|
8181
|
+
"name": "orderId",
|
|
8182
|
+
"type": "uint256"
|
|
8183
|
+
}
|
|
8184
|
+
],
|
|
8185
|
+
"name": "getOrderOrigins",
|
|
8186
|
+
"outputs": [
|
|
8187
|
+
{
|
|
8188
|
+
"components": [
|
|
8189
|
+
{
|
|
8190
|
+
"internalType": "uint256",
|
|
8191
|
+
"name": "createdDate",
|
|
8192
|
+
"type": "uint256"
|
|
8193
|
+
},
|
|
8194
|
+
{
|
|
8195
|
+
"internalType": "address",
|
|
8196
|
+
"name": "createdBy",
|
|
8197
|
+
"type": "address"
|
|
8198
|
+
},
|
|
8199
|
+
{
|
|
8200
|
+
"internalType": "uint256",
|
|
8201
|
+
"name": "modifiedDate",
|
|
8202
|
+
"type": "uint256"
|
|
8203
|
+
},
|
|
8204
|
+
{
|
|
8205
|
+
"internalType": "address",
|
|
8206
|
+
"name": "modifiedBy",
|
|
8207
|
+
"type": "address"
|
|
8208
|
+
}
|
|
8209
|
+
],
|
|
8210
|
+
"internalType": "struct Origins",
|
|
8211
|
+
"name": "",
|
|
8212
|
+
"type": "tuple"
|
|
8213
|
+
}
|
|
8214
|
+
],
|
|
8215
|
+
"stateMutability": "view",
|
|
8216
|
+
"type": "function"
|
|
8217
|
+
},
|
|
8218
|
+
{
|
|
8219
|
+
"inputs": [
|
|
8220
|
+
{
|
|
8221
|
+
"internalType": "uint256",
|
|
8222
|
+
"name": "orderId",
|
|
8223
|
+
"type": "uint256"
|
|
8224
|
+
}
|
|
8225
|
+
],
|
|
8226
|
+
"name": "getOrderParentOrder",
|
|
8227
|
+
"outputs": [
|
|
8228
|
+
{
|
|
8229
|
+
"internalType": "uint256",
|
|
8230
|
+
"name": "",
|
|
8231
|
+
"type": "uint256"
|
|
8232
|
+
}
|
|
8233
|
+
],
|
|
8234
|
+
"stateMutability": "view",
|
|
8235
|
+
"type": "function"
|
|
8236
|
+
},
|
|
8237
|
+
{
|
|
8238
|
+
"inputs": [
|
|
8239
|
+
{
|
|
8240
|
+
"internalType": "uint256",
|
|
8241
|
+
"name": "orderId",
|
|
8242
|
+
"type": "uint256"
|
|
8243
|
+
}
|
|
8244
|
+
],
|
|
8245
|
+
"name": "getOrderPrice",
|
|
8246
|
+
"outputs": [
|
|
8247
|
+
{
|
|
8248
|
+
"internalType": "uint256",
|
|
8249
|
+
"name": "",
|
|
8250
|
+
"type": "uint256"
|
|
8251
|
+
}
|
|
8252
|
+
],
|
|
8253
|
+
"stateMutability": "view",
|
|
8254
|
+
"type": "function"
|
|
8255
|
+
},
|
|
8256
|
+
{
|
|
8257
|
+
"inputs": [
|
|
8258
|
+
{
|
|
8259
|
+
"internalType": "uint256",
|
|
8260
|
+
"name": "orderId",
|
|
8261
|
+
"type": "uint256"
|
|
8262
|
+
}
|
|
8263
|
+
],
|
|
8264
|
+
"name": "getOrderProfitWithdrawn",
|
|
8265
|
+
"outputs": [
|
|
8266
|
+
{
|
|
8267
|
+
"internalType": "bool",
|
|
8268
|
+
"name": "",
|
|
8269
|
+
"type": "bool"
|
|
8270
|
+
}
|
|
8271
|
+
],
|
|
8272
|
+
"stateMutability": "view",
|
|
8273
|
+
"type": "function"
|
|
8274
|
+
},
|
|
8275
|
+
{
|
|
8276
|
+
"inputs": [
|
|
8277
|
+
{
|
|
8278
|
+
"internalType": "uint256",
|
|
8279
|
+
"name": "orderId",
|
|
8280
|
+
"type": "uint256"
|
|
8281
|
+
}
|
|
8282
|
+
],
|
|
8283
|
+
"name": "getOrderSubOrders",
|
|
8284
|
+
"outputs": [
|
|
8285
|
+
{
|
|
8286
|
+
"internalType": "uint256[]",
|
|
8287
|
+
"name": "",
|
|
8288
|
+
"type": "uint256[]"
|
|
8289
|
+
}
|
|
8290
|
+
],
|
|
8291
|
+
"stateMutability": "view",
|
|
8292
|
+
"type": "function"
|
|
8293
|
+
},
|
|
8294
|
+
{
|
|
8295
|
+
"inputs": [],
|
|
8296
|
+
"name": "getOrdersCount",
|
|
8297
|
+
"outputs": [
|
|
8298
|
+
{
|
|
8299
|
+
"internalType": "uint256",
|
|
8300
|
+
"name": "",
|
|
8301
|
+
"type": "uint256"
|
|
8302
|
+
}
|
|
8303
|
+
],
|
|
8304
|
+
"stateMutability": "view",
|
|
8305
|
+
"type": "function"
|
|
8306
|
+
},
|
|
8307
|
+
{
|
|
8308
|
+
"inputs": [
|
|
8309
|
+
{
|
|
8310
|
+
"internalType": "uint256",
|
|
8311
|
+
"name": "orderId",
|
|
8312
|
+
"type": "uint256"
|
|
8313
|
+
}
|
|
8314
|
+
],
|
|
8315
|
+
"name": "getStartDate",
|
|
8316
|
+
"outputs": [
|
|
8317
|
+
{
|
|
8318
|
+
"internalType": "uint256",
|
|
8319
|
+
"name": "",
|
|
8320
|
+
"type": "uint256"
|
|
8321
|
+
}
|
|
8322
|
+
],
|
|
8323
|
+
"stateMutability": "view",
|
|
8324
|
+
"type": "function"
|
|
8325
|
+
},
|
|
8326
|
+
{
|
|
8327
|
+
"inputs": [
|
|
8328
|
+
{
|
|
8329
|
+
"internalType": "uint256",
|
|
8330
|
+
"name": "orderId",
|
|
8331
|
+
"type": "uint256"
|
|
8332
|
+
}
|
|
8333
|
+
],
|
|
8334
|
+
"name": "isOrderCompleted",
|
|
8335
|
+
"outputs": [
|
|
8336
|
+
{
|
|
8337
|
+
"internalType": "bool",
|
|
8338
|
+
"name": "",
|
|
8339
|
+
"type": "bool"
|
|
8340
|
+
}
|
|
8341
|
+
],
|
|
8342
|
+
"stateMutability": "view",
|
|
8343
|
+
"type": "function"
|
|
8344
|
+
},
|
|
8345
|
+
{
|
|
8346
|
+
"inputs": [
|
|
8347
|
+
{
|
|
8348
|
+
"internalType": "uint256",
|
|
8349
|
+
"name": "orderId",
|
|
8350
|
+
"type": "uint256"
|
|
8351
|
+
}
|
|
8352
|
+
],
|
|
8353
|
+
"name": "isOrderStarted",
|
|
8354
|
+
"outputs": [
|
|
8355
|
+
{
|
|
8356
|
+
"internalType": "bool",
|
|
8357
|
+
"name": "",
|
|
8358
|
+
"type": "bool"
|
|
8359
|
+
}
|
|
8360
|
+
],
|
|
8361
|
+
"stateMutability": "view",
|
|
8362
|
+
"type": "function"
|
|
8363
|
+
},
|
|
8364
|
+
{
|
|
8365
|
+
"inputs": [
|
|
8366
|
+
{
|
|
8367
|
+
"internalType": "uint256",
|
|
8368
|
+
"name": "orderId",
|
|
8369
|
+
"type": "uint256"
|
|
8370
|
+
}
|
|
8371
|
+
],
|
|
8372
|
+
"name": "isOrderValid",
|
|
8373
|
+
"outputs": [
|
|
8374
|
+
{
|
|
8375
|
+
"internalType": "bool",
|
|
8376
|
+
"name": "",
|
|
8377
|
+
"type": "bool"
|
|
8378
|
+
}
|
|
8379
|
+
],
|
|
8380
|
+
"stateMutability": "view",
|
|
7613
8381
|
"type": "function"
|
|
7614
8382
|
},
|
|
7615
8383
|
{
|