@gainsnetwork/sdk 0.2.33-rc1 → 0.2.34-rc1
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/lib/constants.js +2 -2
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +312 -673
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +538 -1443
- package/lib/contracts/utils/pairs.js +4 -4
- package/lib/trade/fees/index.js +2 -3
- package/lib/trade/types.d.ts +2 -9
- package/package.json +1 -1
- package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +0 -1911
- package/lib/contracts/types/generated/GFarmTradingStorageV5.js +0 -2
- package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +0 -1067
- package/lib/contracts/types/generated/GNSBorrowingFees.js +0 -2
- package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +0 -533
- package/lib/contracts/types/generated/GNSNftRewardsV6.js +0 -2
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +0 -613
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +0 -2
- package/lib/contracts/types/generated/GNSTrading.d.ts +0 -758
- package/lib/contracts/types/generated/GNSTrading.js +0 -2
- package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +0 -875
- package/lib/contracts/types/generated/GNSTradingCallbacks.js +0 -2
- package/lib/contracts/types/generated/GNSTradingStorage.d.ts +0 -1387
- package/lib/contracts/types/generated/GNSTradingStorage.js +0 -2
- package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +0 -83
- package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +0 -2691
- package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +0 -124
- package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +0 -1784
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +0 -100
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +0 -1116
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +0 -100
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +0 -1003
- package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +0 -113
- package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +0 -1428
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +0 -96
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +0 -2241
- package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +0 -95
- package/lib/contracts/types/generated/factories/GNSTrading__factory.js +0 -1071
|
@@ -112,11 +112,6 @@ const _abi = [
|
|
|
112
112
|
name: "Paused",
|
|
113
113
|
type: "error",
|
|
114
114
|
},
|
|
115
|
-
{
|
|
116
|
-
inputs: [],
|
|
117
|
-
name: "UnsupportedChain",
|
|
118
|
-
type: "error",
|
|
119
|
-
},
|
|
120
115
|
{
|
|
121
116
|
inputs: [],
|
|
122
117
|
name: "WrongAccess",
|
|
@@ -203,11 +198,6 @@ const _abi = [
|
|
|
203
198
|
name: "gnsStaking",
|
|
204
199
|
type: "address",
|
|
205
200
|
},
|
|
206
|
-
{
|
|
207
|
-
internalType: "address",
|
|
208
|
-
name: "treasury",
|
|
209
|
-
type: "address",
|
|
210
|
-
},
|
|
211
201
|
],
|
|
212
202
|
indexed: false,
|
|
213
203
|
internalType: "struct IAddressStore.Addresses",
|
|
@@ -217,7 +207,7 @@ const _abi = [
|
|
|
217
207
|
],
|
|
218
208
|
name: "AddressesUpdated",
|
|
219
209
|
type: "event",
|
|
220
|
-
signature: "
|
|
210
|
+
signature: "0xe4f1f9461410dada4f4b49a4b363bdf35e6069fb5a0cea4b1147c32affbd954a",
|
|
221
211
|
},
|
|
222
212
|
{
|
|
223
213
|
anonymous: false,
|
|
@@ -413,11 +403,6 @@ const _abi = [
|
|
|
413
403
|
name: "gnsStaking",
|
|
414
404
|
type: "address",
|
|
415
405
|
},
|
|
416
|
-
{
|
|
417
|
-
internalType: "address",
|
|
418
|
-
name: "treasury",
|
|
419
|
-
type: "address",
|
|
420
|
-
},
|
|
421
406
|
],
|
|
422
407
|
internalType: "struct IAddressStore.Addresses",
|
|
423
408
|
name: "",
|
|
@@ -457,37 +442,7 @@ const _abi = [
|
|
|
457
442
|
inputs: [
|
|
458
443
|
{
|
|
459
444
|
internalType: "address",
|
|
460
|
-
name: "
|
|
461
|
-
type: "address",
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
internalType: "enum IAddressStore.Role",
|
|
465
|
-
name: "_roleA",
|
|
466
|
-
type: "uint8",
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
internalType: "enum IAddressStore.Role",
|
|
470
|
-
name: "_roleB",
|
|
471
|
-
type: "uint8",
|
|
472
|
-
},
|
|
473
|
-
],
|
|
474
|
-
name: "hasRoles",
|
|
475
|
-
outputs: [
|
|
476
|
-
{
|
|
477
|
-
internalType: "bool",
|
|
478
|
-
name: "",
|
|
479
|
-
type: "bool",
|
|
480
|
-
},
|
|
481
|
-
],
|
|
482
|
-
stateMutability: "view",
|
|
483
|
-
type: "function",
|
|
484
|
-
signature: "0xb9c97229",
|
|
485
|
-
},
|
|
486
|
-
{
|
|
487
|
-
inputs: [
|
|
488
|
-
{
|
|
489
|
-
internalType: "address",
|
|
490
|
-
name: "_govTimelock",
|
|
445
|
+
name: "_rolesManager",
|
|
491
446
|
type: "address",
|
|
492
447
|
},
|
|
493
448
|
],
|
|
@@ -596,42 +551,15 @@ const _abi = [
|
|
|
596
551
|
type: "uint256",
|
|
597
552
|
},
|
|
598
553
|
{
|
|
599
|
-
components: [
|
|
600
|
-
{
|
|
601
|
-
internalType: "uint40",
|
|
602
|
-
name: "totalPositionSizeFeeP",
|
|
603
|
-
type: "uint40",
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
internalType: "uint40",
|
|
607
|
-
name: "totalLiqCollateralFeeP",
|
|
608
|
-
type: "uint40",
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
internalType: "uint40",
|
|
612
|
-
name: "oraclePositionSizeFeeP",
|
|
613
|
-
type: "uint40",
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
internalType: "uint32",
|
|
617
|
-
name: "minPositionSizeUsd",
|
|
618
|
-
type: "uint32",
|
|
619
|
-
},
|
|
620
|
-
{
|
|
621
|
-
internalType: "uint104",
|
|
622
|
-
name: "__placeholder",
|
|
623
|
-
type: "uint104",
|
|
624
|
-
},
|
|
625
|
-
],
|
|
626
554
|
indexed: false,
|
|
627
|
-
internalType: "
|
|
628
|
-
name: "
|
|
629
|
-
type: "
|
|
555
|
+
internalType: "string",
|
|
556
|
+
name: "name",
|
|
557
|
+
type: "string",
|
|
630
558
|
},
|
|
631
559
|
],
|
|
632
560
|
name: "FeeAdded",
|
|
633
561
|
type: "event",
|
|
634
|
-
signature: "
|
|
562
|
+
signature: "0x482049823c85e038e099fe4f2b901487c4800def71c9a3f5bae2de8381ec54f6",
|
|
635
563
|
},
|
|
636
564
|
{
|
|
637
565
|
anonymous: false,
|
|
@@ -642,89 +570,10 @@ const _abi = [
|
|
|
642
570
|
name: "index",
|
|
643
571
|
type: "uint256",
|
|
644
572
|
},
|
|
645
|
-
{
|
|
646
|
-
components: [
|
|
647
|
-
{
|
|
648
|
-
internalType: "uint40",
|
|
649
|
-
name: "totalPositionSizeFeeP",
|
|
650
|
-
type: "uint40",
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
internalType: "uint40",
|
|
654
|
-
name: "totalLiqCollateralFeeP",
|
|
655
|
-
type: "uint40",
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
internalType: "uint40",
|
|
659
|
-
name: "oraclePositionSizeFeeP",
|
|
660
|
-
type: "uint40",
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
internalType: "uint32",
|
|
664
|
-
name: "minPositionSizeUsd",
|
|
665
|
-
type: "uint32",
|
|
666
|
-
},
|
|
667
|
-
{
|
|
668
|
-
internalType: "uint104",
|
|
669
|
-
name: "__placeholder",
|
|
670
|
-
type: "uint104",
|
|
671
|
-
},
|
|
672
|
-
],
|
|
673
|
-
indexed: false,
|
|
674
|
-
internalType: "struct IPairsStorage.FeeGroup",
|
|
675
|
-
name: "feeGroup",
|
|
676
|
-
type: "tuple",
|
|
677
|
-
},
|
|
678
573
|
],
|
|
679
574
|
name: "FeeUpdated",
|
|
680
575
|
type: "event",
|
|
681
|
-
signature: "
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
anonymous: false,
|
|
685
|
-
inputs: [
|
|
686
|
-
{
|
|
687
|
-
components: [
|
|
688
|
-
{
|
|
689
|
-
internalType: "uint24",
|
|
690
|
-
name: "referralFeeP",
|
|
691
|
-
type: "uint24",
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
internalType: "uint24",
|
|
695
|
-
name: "govFeeP",
|
|
696
|
-
type: "uint24",
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
internalType: "uint24",
|
|
700
|
-
name: "triggerOrderFeeP",
|
|
701
|
-
type: "uint24",
|
|
702
|
-
},
|
|
703
|
-
{
|
|
704
|
-
internalType: "uint24",
|
|
705
|
-
name: "gnsOtcFeeP",
|
|
706
|
-
type: "uint24",
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
internalType: "uint24",
|
|
710
|
-
name: "gTokenFeeP",
|
|
711
|
-
type: "uint24",
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
internalType: "uint136",
|
|
715
|
-
name: "__placeholder",
|
|
716
|
-
type: "uint136",
|
|
717
|
-
},
|
|
718
|
-
],
|
|
719
|
-
indexed: false,
|
|
720
|
-
internalType: "struct IPairsStorage.GlobalTradeFeeParams",
|
|
721
|
-
name: "feeParams",
|
|
722
|
-
type: "tuple",
|
|
723
|
-
},
|
|
724
|
-
],
|
|
725
|
-
name: "GlobalTradeFeeParamsUpdated",
|
|
726
|
-
type: "event",
|
|
727
|
-
signature: "0xbbd4d37e525bc0d0bf80d0c56879b81ebcccbe7bfd22e484e19eb0f369c011a4",
|
|
576
|
+
signature: "0x8c4d35e54a3f2ef1134138fd8ea3daee6a3c89e10d2665996babdf70261e2c76",
|
|
728
577
|
},
|
|
729
578
|
{
|
|
730
579
|
anonymous: false,
|
|
@@ -872,32 +721,37 @@ const _abi = [
|
|
|
872
721
|
{
|
|
873
722
|
components: [
|
|
874
723
|
{
|
|
875
|
-
internalType: "
|
|
876
|
-
name: "
|
|
877
|
-
type: "
|
|
724
|
+
internalType: "string",
|
|
725
|
+
name: "name",
|
|
726
|
+
type: "string",
|
|
878
727
|
},
|
|
879
728
|
{
|
|
880
|
-
internalType: "
|
|
881
|
-
name: "
|
|
882
|
-
type: "
|
|
729
|
+
internalType: "uint256",
|
|
730
|
+
name: "openFeeP",
|
|
731
|
+
type: "uint256",
|
|
883
732
|
},
|
|
884
733
|
{
|
|
885
|
-
internalType: "
|
|
886
|
-
name: "
|
|
887
|
-
type: "
|
|
734
|
+
internalType: "uint256",
|
|
735
|
+
name: "closeFeeP",
|
|
736
|
+
type: "uint256",
|
|
888
737
|
},
|
|
889
738
|
{
|
|
890
|
-
internalType: "
|
|
891
|
-
name: "
|
|
892
|
-
type: "
|
|
739
|
+
internalType: "uint256",
|
|
740
|
+
name: "oracleFeeP",
|
|
741
|
+
type: "uint256",
|
|
893
742
|
},
|
|
894
743
|
{
|
|
895
|
-
internalType: "
|
|
896
|
-
name: "
|
|
897
|
-
type: "
|
|
744
|
+
internalType: "uint256",
|
|
745
|
+
name: "triggerOrderFeeP",
|
|
746
|
+
type: "uint256",
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
internalType: "uint256",
|
|
750
|
+
name: "minPositionSizeUsd",
|
|
751
|
+
type: "uint256",
|
|
898
752
|
},
|
|
899
753
|
],
|
|
900
|
-
internalType: "struct IPairsStorage.
|
|
754
|
+
internalType: "struct IPairsStorage.Fee[]",
|
|
901
755
|
name: "_fees",
|
|
902
756
|
type: "tuple[]",
|
|
903
757
|
},
|
|
@@ -906,7 +760,7 @@ const _abi = [
|
|
|
906
760
|
outputs: [],
|
|
907
761
|
stateMutability: "nonpayable",
|
|
908
762
|
type: "function",
|
|
909
|
-
signature: "
|
|
763
|
+
signature: "0x0c00b94a",
|
|
910
764
|
},
|
|
911
765
|
{
|
|
912
766
|
inputs: [
|
|
@@ -1025,32 +879,37 @@ const _abi = [
|
|
|
1025
879
|
{
|
|
1026
880
|
components: [
|
|
1027
881
|
{
|
|
1028
|
-
internalType: "
|
|
1029
|
-
name: "
|
|
1030
|
-
type: "
|
|
882
|
+
internalType: "string",
|
|
883
|
+
name: "name",
|
|
884
|
+
type: "string",
|
|
1031
885
|
},
|
|
1032
886
|
{
|
|
1033
|
-
internalType: "
|
|
1034
|
-
name: "
|
|
1035
|
-
type: "
|
|
887
|
+
internalType: "uint256",
|
|
888
|
+
name: "openFeeP",
|
|
889
|
+
type: "uint256",
|
|
1036
890
|
},
|
|
1037
891
|
{
|
|
1038
|
-
internalType: "
|
|
1039
|
-
name: "
|
|
1040
|
-
type: "
|
|
892
|
+
internalType: "uint256",
|
|
893
|
+
name: "closeFeeP",
|
|
894
|
+
type: "uint256",
|
|
1041
895
|
},
|
|
1042
896
|
{
|
|
1043
|
-
internalType: "
|
|
1044
|
-
name: "
|
|
1045
|
-
type: "
|
|
897
|
+
internalType: "uint256",
|
|
898
|
+
name: "oracleFeeP",
|
|
899
|
+
type: "uint256",
|
|
1046
900
|
},
|
|
1047
901
|
{
|
|
1048
|
-
internalType: "
|
|
1049
|
-
name: "
|
|
1050
|
-
type: "
|
|
902
|
+
internalType: "uint256",
|
|
903
|
+
name: "triggerOrderFeeP",
|
|
904
|
+
type: "uint256",
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
internalType: "uint256",
|
|
908
|
+
name: "minPositionSizeUsd",
|
|
909
|
+
type: "uint256",
|
|
1051
910
|
},
|
|
1052
911
|
],
|
|
1053
|
-
internalType: "struct IPairsStorage.
|
|
912
|
+
internalType: "struct IPairsStorage.Fee",
|
|
1054
913
|
name: "",
|
|
1055
914
|
type: "tuple",
|
|
1056
915
|
},
|
|
@@ -1087,52 +946,6 @@ const _abi = [
|
|
|
1087
946
|
type: "function",
|
|
1088
947
|
signature: "0x678b3fb0",
|
|
1089
948
|
},
|
|
1090
|
-
{
|
|
1091
|
-
inputs: [],
|
|
1092
|
-
name: "getGlobalTradeFeeParams",
|
|
1093
|
-
outputs: [
|
|
1094
|
-
{
|
|
1095
|
-
components: [
|
|
1096
|
-
{
|
|
1097
|
-
internalType: "uint24",
|
|
1098
|
-
name: "referralFeeP",
|
|
1099
|
-
type: "uint24",
|
|
1100
|
-
},
|
|
1101
|
-
{
|
|
1102
|
-
internalType: "uint24",
|
|
1103
|
-
name: "govFeeP",
|
|
1104
|
-
type: "uint24",
|
|
1105
|
-
},
|
|
1106
|
-
{
|
|
1107
|
-
internalType: "uint24",
|
|
1108
|
-
name: "triggerOrderFeeP",
|
|
1109
|
-
type: "uint24",
|
|
1110
|
-
},
|
|
1111
|
-
{
|
|
1112
|
-
internalType: "uint24",
|
|
1113
|
-
name: "gnsOtcFeeP",
|
|
1114
|
-
type: "uint24",
|
|
1115
|
-
},
|
|
1116
|
-
{
|
|
1117
|
-
internalType: "uint24",
|
|
1118
|
-
name: "gTokenFeeP",
|
|
1119
|
-
type: "uint24",
|
|
1120
|
-
},
|
|
1121
|
-
{
|
|
1122
|
-
internalType: "uint136",
|
|
1123
|
-
name: "__placeholder",
|
|
1124
|
-
type: "uint136",
|
|
1125
|
-
},
|
|
1126
|
-
],
|
|
1127
|
-
internalType: "struct IPairsStorage.GlobalTradeFeeParams",
|
|
1128
|
-
name: "",
|
|
1129
|
-
type: "tuple",
|
|
1130
|
-
},
|
|
1131
|
-
],
|
|
1132
|
-
stateMutability: "view",
|
|
1133
|
-
type: "function",
|
|
1134
|
-
signature: "0x48fc3ef3",
|
|
1135
|
-
},
|
|
1136
949
|
{
|
|
1137
950
|
inputs: [
|
|
1138
951
|
{
|
|
@@ -1324,52 +1137,6 @@ const _abi = [
|
|
|
1324
1137
|
type: "function",
|
|
1325
1138
|
signature: "0x85d4390e",
|
|
1326
1139
|
},
|
|
1327
|
-
{
|
|
1328
|
-
inputs: [
|
|
1329
|
-
{
|
|
1330
|
-
components: [
|
|
1331
|
-
{
|
|
1332
|
-
internalType: "uint24",
|
|
1333
|
-
name: "referralFeeP",
|
|
1334
|
-
type: "uint24",
|
|
1335
|
-
},
|
|
1336
|
-
{
|
|
1337
|
-
internalType: "uint24",
|
|
1338
|
-
name: "govFeeP",
|
|
1339
|
-
type: "uint24",
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
internalType: "uint24",
|
|
1343
|
-
name: "triggerOrderFeeP",
|
|
1344
|
-
type: "uint24",
|
|
1345
|
-
},
|
|
1346
|
-
{
|
|
1347
|
-
internalType: "uint24",
|
|
1348
|
-
name: "gnsOtcFeeP",
|
|
1349
|
-
type: "uint24",
|
|
1350
|
-
},
|
|
1351
|
-
{
|
|
1352
|
-
internalType: "uint24",
|
|
1353
|
-
name: "gTokenFeeP",
|
|
1354
|
-
type: "uint24",
|
|
1355
|
-
},
|
|
1356
|
-
{
|
|
1357
|
-
internalType: "uint136",
|
|
1358
|
-
name: "__placeholder",
|
|
1359
|
-
type: "uint136",
|
|
1360
|
-
},
|
|
1361
|
-
],
|
|
1362
|
-
internalType: "struct IPairsStorage.GlobalTradeFeeParams",
|
|
1363
|
-
name: "_tradeFeeParams",
|
|
1364
|
-
type: "tuple",
|
|
1365
|
-
},
|
|
1366
|
-
],
|
|
1367
|
-
name: "initializeNewFees",
|
|
1368
|
-
outputs: [],
|
|
1369
|
-
stateMutability: "nonpayable",
|
|
1370
|
-
type: "function",
|
|
1371
|
-
signature: "0xc85ac748",
|
|
1372
|
-
},
|
|
1373
1140
|
{
|
|
1374
1141
|
inputs: [
|
|
1375
1142
|
{
|
|
@@ -1423,7 +1190,7 @@ const _abi = [
|
|
|
1423
1190
|
type: "uint256",
|
|
1424
1191
|
},
|
|
1425
1192
|
],
|
|
1426
|
-
name: "
|
|
1193
|
+
name: "pairCloseFeeP",
|
|
1427
1194
|
outputs: [
|
|
1428
1195
|
{
|
|
1429
1196
|
internalType: "uint256",
|
|
@@ -1433,7 +1200,7 @@ const _abi = [
|
|
|
1433
1200
|
],
|
|
1434
1201
|
stateMutability: "view",
|
|
1435
1202
|
type: "function",
|
|
1436
|
-
signature: "
|
|
1203
|
+
signature: "0x836a341a",
|
|
1437
1204
|
},
|
|
1438
1205
|
{
|
|
1439
1206
|
inputs: [
|
|
@@ -1443,7 +1210,27 @@ const _abi = [
|
|
|
1443
1210
|
type: "uint256",
|
|
1444
1211
|
},
|
|
1445
1212
|
],
|
|
1446
|
-
name: "
|
|
1213
|
+
name: "pairCustomMaxLeverage",
|
|
1214
|
+
outputs: [
|
|
1215
|
+
{
|
|
1216
|
+
internalType: "uint256",
|
|
1217
|
+
name: "",
|
|
1218
|
+
type: "uint256",
|
|
1219
|
+
},
|
|
1220
|
+
],
|
|
1221
|
+
stateMutability: "view",
|
|
1222
|
+
type: "function",
|
|
1223
|
+
signature: "0x24a96865",
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
inputs: [
|
|
1227
|
+
{
|
|
1228
|
+
internalType: "uint256",
|
|
1229
|
+
name: "_pairIndex",
|
|
1230
|
+
type: "uint256",
|
|
1231
|
+
},
|
|
1232
|
+
],
|
|
1233
|
+
name: "pairJob",
|
|
1447
1234
|
outputs: [
|
|
1448
1235
|
{
|
|
1449
1236
|
internalType: "string",
|
|
@@ -1548,7 +1335,7 @@ const _abi = [
|
|
|
1548
1335
|
type: "uint256",
|
|
1549
1336
|
},
|
|
1550
1337
|
],
|
|
1551
|
-
name: "
|
|
1338
|
+
name: "pairOpenFeeP",
|
|
1552
1339
|
outputs: [
|
|
1553
1340
|
{
|
|
1554
1341
|
internalType: "uint256",
|
|
@@ -1558,7 +1345,7 @@ const _abi = [
|
|
|
1558
1345
|
],
|
|
1559
1346
|
stateMutability: "view",
|
|
1560
1347
|
type: "function",
|
|
1561
|
-
signature: "
|
|
1348
|
+
signature: "0x8251135b",
|
|
1562
1349
|
},
|
|
1563
1350
|
{
|
|
1564
1351
|
inputs: [
|
|
@@ -1568,7 +1355,7 @@ const _abi = [
|
|
|
1568
1355
|
type: "uint256",
|
|
1569
1356
|
},
|
|
1570
1357
|
],
|
|
1571
|
-
name: "
|
|
1358
|
+
name: "pairOracleFeeP",
|
|
1572
1359
|
outputs: [
|
|
1573
1360
|
{
|
|
1574
1361
|
internalType: "uint256",
|
|
@@ -1578,7 +1365,7 @@ const _abi = [
|
|
|
1578
1365
|
],
|
|
1579
1366
|
stateMutability: "view",
|
|
1580
1367
|
type: "function",
|
|
1581
|
-
signature: "
|
|
1368
|
+
signature: "0xf7acbabd",
|
|
1582
1369
|
},
|
|
1583
1370
|
{
|
|
1584
1371
|
inputs: [
|
|
@@ -1588,7 +1375,7 @@ const _abi = [
|
|
|
1588
1375
|
type: "uint256",
|
|
1589
1376
|
},
|
|
1590
1377
|
],
|
|
1591
|
-
name: "
|
|
1378
|
+
name: "pairSpreadP",
|
|
1592
1379
|
outputs: [
|
|
1593
1380
|
{
|
|
1594
1381
|
internalType: "uint256",
|
|
@@ -1598,7 +1385,7 @@ const _abi = [
|
|
|
1598
1385
|
],
|
|
1599
1386
|
stateMutability: "view",
|
|
1600
1387
|
type: "function",
|
|
1601
|
-
signature: "
|
|
1388
|
+
signature: "0xa1d54e9b",
|
|
1602
1389
|
},
|
|
1603
1390
|
{
|
|
1604
1391
|
inputs: [
|
|
@@ -1608,7 +1395,7 @@ const _abi = [
|
|
|
1608
1395
|
type: "uint256",
|
|
1609
1396
|
},
|
|
1610
1397
|
],
|
|
1611
|
-
name: "
|
|
1398
|
+
name: "pairTriggerOrderFeeP",
|
|
1612
1399
|
outputs: [
|
|
1613
1400
|
{
|
|
1614
1401
|
internalType: "uint256",
|
|
@@ -1618,7 +1405,7 @@ const _abi = [
|
|
|
1618
1405
|
],
|
|
1619
1406
|
stateMutability: "view",
|
|
1620
1407
|
type: "function",
|
|
1621
|
-
signature: "
|
|
1408
|
+
signature: "0xe74aff72",
|
|
1622
1409
|
},
|
|
1623
1410
|
{
|
|
1624
1411
|
inputs: [
|
|
@@ -1695,64 +1482,156 @@ const _abi = [
|
|
|
1695
1482
|
signature: "0xb91ac788",
|
|
1696
1483
|
},
|
|
1697
1484
|
{
|
|
1698
|
-
inputs: [
|
|
1699
|
-
name: "pairsCount",
|
|
1700
|
-
outputs: [
|
|
1485
|
+
inputs: [
|
|
1701
1486
|
{
|
|
1702
1487
|
internalType: "uint256",
|
|
1703
|
-
name: "",
|
|
1488
|
+
name: "_index",
|
|
1704
1489
|
type: "uint256",
|
|
1705
1490
|
},
|
|
1706
1491
|
],
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
signature: "0xb81b2b71",
|
|
1710
|
-
},
|
|
1711
|
-
{
|
|
1712
|
-
inputs: [
|
|
1492
|
+
name: "pairsBackend",
|
|
1493
|
+
outputs: [
|
|
1713
1494
|
{
|
|
1714
1495
|
components: [
|
|
1715
1496
|
{
|
|
1716
|
-
internalType: "
|
|
1717
|
-
name: "
|
|
1718
|
-
type: "
|
|
1497
|
+
internalType: "string",
|
|
1498
|
+
name: "from",
|
|
1499
|
+
type: "string",
|
|
1719
1500
|
},
|
|
1720
1501
|
{
|
|
1721
|
-
internalType: "
|
|
1722
|
-
name: "
|
|
1723
|
-
type: "
|
|
1502
|
+
internalType: "string",
|
|
1503
|
+
name: "to",
|
|
1504
|
+
type: "string",
|
|
1724
1505
|
},
|
|
1725
1506
|
{
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1507
|
+
components: [
|
|
1508
|
+
{
|
|
1509
|
+
internalType: "address",
|
|
1510
|
+
name: "feed1",
|
|
1511
|
+
type: "address",
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
internalType: "address",
|
|
1515
|
+
name: "feed2",
|
|
1516
|
+
type: "address",
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
internalType: "enum IPairsStorage.FeedCalculation",
|
|
1520
|
+
name: "feedCalculation",
|
|
1521
|
+
type: "uint8",
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
internalType: "uint256",
|
|
1525
|
+
name: "maxDeviationP",
|
|
1526
|
+
type: "uint256",
|
|
1527
|
+
},
|
|
1528
|
+
],
|
|
1529
|
+
internalType: "struct IPairsStorage.Feed",
|
|
1530
|
+
name: "feed",
|
|
1531
|
+
type: "tuple",
|
|
1729
1532
|
},
|
|
1730
1533
|
{
|
|
1731
|
-
internalType: "
|
|
1732
|
-
name: "
|
|
1733
|
-
type: "
|
|
1534
|
+
internalType: "uint256",
|
|
1535
|
+
name: "spreadP",
|
|
1536
|
+
type: "uint256",
|
|
1734
1537
|
},
|
|
1735
1538
|
{
|
|
1736
|
-
internalType: "
|
|
1737
|
-
name: "
|
|
1738
|
-
type: "
|
|
1539
|
+
internalType: "uint256",
|
|
1540
|
+
name: "groupIndex",
|
|
1541
|
+
type: "uint256",
|
|
1739
1542
|
},
|
|
1740
1543
|
{
|
|
1741
|
-
internalType: "
|
|
1742
|
-
name: "
|
|
1743
|
-
type: "
|
|
1544
|
+
internalType: "uint256",
|
|
1545
|
+
name: "feeIndex",
|
|
1546
|
+
type: "uint256",
|
|
1547
|
+
},
|
|
1548
|
+
],
|
|
1549
|
+
internalType: "struct IPairsStorage.Pair",
|
|
1550
|
+
name: "",
|
|
1551
|
+
type: "tuple",
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
components: [
|
|
1555
|
+
{
|
|
1556
|
+
internalType: "string",
|
|
1557
|
+
name: "name",
|
|
1558
|
+
type: "string",
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
internalType: "bytes32",
|
|
1562
|
+
name: "job",
|
|
1563
|
+
type: "bytes32",
|
|
1564
|
+
},
|
|
1565
|
+
{
|
|
1566
|
+
internalType: "uint256",
|
|
1567
|
+
name: "minLeverage",
|
|
1568
|
+
type: "uint256",
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
internalType: "uint256",
|
|
1572
|
+
name: "maxLeverage",
|
|
1573
|
+
type: "uint256",
|
|
1574
|
+
},
|
|
1575
|
+
],
|
|
1576
|
+
internalType: "struct IPairsStorage.Group",
|
|
1577
|
+
name: "",
|
|
1578
|
+
type: "tuple",
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
components: [
|
|
1582
|
+
{
|
|
1583
|
+
internalType: "string",
|
|
1584
|
+
name: "name",
|
|
1585
|
+
type: "string",
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
internalType: "uint256",
|
|
1589
|
+
name: "openFeeP",
|
|
1590
|
+
type: "uint256",
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
internalType: "uint256",
|
|
1594
|
+
name: "closeFeeP",
|
|
1595
|
+
type: "uint256",
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
internalType: "uint256",
|
|
1599
|
+
name: "oracleFeeP",
|
|
1600
|
+
type: "uint256",
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
internalType: "uint256",
|
|
1604
|
+
name: "triggerOrderFeeP",
|
|
1605
|
+
type: "uint256",
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
internalType: "uint256",
|
|
1609
|
+
name: "minPositionSizeUsd",
|
|
1610
|
+
type: "uint256",
|
|
1744
1611
|
},
|
|
1745
1612
|
],
|
|
1746
|
-
internalType: "struct IPairsStorage.
|
|
1747
|
-
name: "
|
|
1613
|
+
internalType: "struct IPairsStorage.Fee",
|
|
1614
|
+
name: "",
|
|
1748
1615
|
type: "tuple",
|
|
1749
1616
|
},
|
|
1750
1617
|
],
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1618
|
+
stateMutability: "view",
|
|
1619
|
+
type: "function",
|
|
1620
|
+
signature: "0x9567dccf",
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
inputs: [],
|
|
1624
|
+
name: "pairsCount",
|
|
1625
|
+
outputs: [
|
|
1626
|
+
{
|
|
1627
|
+
internalType: "uint256",
|
|
1628
|
+
name: "",
|
|
1629
|
+
type: "uint256",
|
|
1630
|
+
},
|
|
1631
|
+
],
|
|
1632
|
+
stateMutability: "view",
|
|
1754
1633
|
type: "function",
|
|
1755
|
-
signature: "
|
|
1634
|
+
signature: "0xb81b2b71",
|
|
1756
1635
|
},
|
|
1757
1636
|
{
|
|
1758
1637
|
inputs: [
|
|
@@ -1829,32 +1708,37 @@ const _abi = [
|
|
|
1829
1708
|
{
|
|
1830
1709
|
components: [
|
|
1831
1710
|
{
|
|
1832
|
-
internalType: "
|
|
1833
|
-
name: "
|
|
1834
|
-
type: "
|
|
1711
|
+
internalType: "string",
|
|
1712
|
+
name: "name",
|
|
1713
|
+
type: "string",
|
|
1835
1714
|
},
|
|
1836
1715
|
{
|
|
1837
|
-
internalType: "
|
|
1838
|
-
name: "
|
|
1839
|
-
type: "
|
|
1716
|
+
internalType: "uint256",
|
|
1717
|
+
name: "openFeeP",
|
|
1718
|
+
type: "uint256",
|
|
1840
1719
|
},
|
|
1841
1720
|
{
|
|
1842
|
-
internalType: "
|
|
1843
|
-
name: "
|
|
1844
|
-
type: "
|
|
1721
|
+
internalType: "uint256",
|
|
1722
|
+
name: "closeFeeP",
|
|
1723
|
+
type: "uint256",
|
|
1845
1724
|
},
|
|
1846
1725
|
{
|
|
1847
|
-
internalType: "
|
|
1848
|
-
name: "
|
|
1849
|
-
type: "
|
|
1726
|
+
internalType: "uint256",
|
|
1727
|
+
name: "oracleFeeP",
|
|
1728
|
+
type: "uint256",
|
|
1850
1729
|
},
|
|
1851
1730
|
{
|
|
1852
|
-
internalType: "
|
|
1853
|
-
name: "
|
|
1854
|
-
type: "
|
|
1731
|
+
internalType: "uint256",
|
|
1732
|
+
name: "triggerOrderFeeP",
|
|
1733
|
+
type: "uint256",
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
internalType: "uint256",
|
|
1737
|
+
name: "minPositionSizeUsd",
|
|
1738
|
+
type: "uint256",
|
|
1855
1739
|
},
|
|
1856
1740
|
],
|
|
1857
|
-
internalType: "struct IPairsStorage.
|
|
1741
|
+
internalType: "struct IPairsStorage.Fee[]",
|
|
1858
1742
|
name: "_fees",
|
|
1859
1743
|
type: "tuple[]",
|
|
1860
1744
|
},
|
|
@@ -1863,7 +1747,7 @@ const _abi = [
|
|
|
1863
1747
|
outputs: [],
|
|
1864
1748
|
stateMutability: "nonpayable",
|
|
1865
1749
|
type: "function",
|
|
1866
|
-
signature: "
|
|
1750
|
+
signature: "0xe57f6759",
|
|
1867
1751
|
},
|
|
1868
1752
|
{
|
|
1869
1753
|
inputs: [
|
|
@@ -2283,7 +2167,7 @@ const _abi = [
|
|
|
2283
2167
|
},
|
|
2284
2168
|
{
|
|
2285
2169
|
internalType: "uint256",
|
|
2286
|
-
name: "
|
|
2170
|
+
name: "_pairOpenFeeP",
|
|
2287
2171
|
type: "uint256",
|
|
2288
2172
|
},
|
|
2289
2173
|
{
|
|
@@ -2293,7 +2177,13 @@ const _abi = [
|
|
|
2293
2177
|
},
|
|
2294
2178
|
],
|
|
2295
2179
|
name: "distributeReferralReward",
|
|
2296
|
-
outputs: [
|
|
2180
|
+
outputs: [
|
|
2181
|
+
{
|
|
2182
|
+
internalType: "uint256",
|
|
2183
|
+
name: "",
|
|
2184
|
+
type: "uint256",
|
|
2185
|
+
},
|
|
2186
|
+
],
|
|
2297
2187
|
stateMutability: "nonpayable",
|
|
2298
2188
|
type: "function",
|
|
2299
2189
|
signature: "0xfa3c8dbf",
|
|
@@ -2364,6 +2254,20 @@ const _abi = [
|
|
|
2364
2254
|
type: "function",
|
|
2365
2255
|
signature: "0x97436b5f",
|
|
2366
2256
|
},
|
|
2257
|
+
{
|
|
2258
|
+
inputs: [],
|
|
2259
|
+
name: "getReferralsOpenFeeP",
|
|
2260
|
+
outputs: [
|
|
2261
|
+
{
|
|
2262
|
+
internalType: "uint256",
|
|
2263
|
+
name: "",
|
|
2264
|
+
type: "uint256",
|
|
2265
|
+
},
|
|
2266
|
+
],
|
|
2267
|
+
stateMutability: "view",
|
|
2268
|
+
type: "function",
|
|
2269
|
+
signature: "0x06350917",
|
|
2270
|
+
},
|
|
2367
2271
|
{
|
|
2368
2272
|
inputs: [],
|
|
2369
2273
|
name: "getReferralsStartReferrerFeeP",
|
|
@@ -2452,12 +2356,17 @@ const _abi = [
|
|
|
2452
2356
|
{
|
|
2453
2357
|
inputs: [
|
|
2454
2358
|
{
|
|
2455
|
-
internalType: "
|
|
2456
|
-
name: "
|
|
2457
|
-
type: "
|
|
2359
|
+
internalType: "uint256",
|
|
2360
|
+
name: "_pairOpenFeeP",
|
|
2361
|
+
type: "uint256",
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
internalType: "uint256",
|
|
2365
|
+
name: "_volumeReferredUsd",
|
|
2366
|
+
type: "uint256",
|
|
2458
2367
|
},
|
|
2459
2368
|
],
|
|
2460
|
-
name: "
|
|
2369
|
+
name: "getReferrerFeeP",
|
|
2461
2370
|
outputs: [
|
|
2462
2371
|
{
|
|
2463
2372
|
internalType: "uint256",
|
|
@@ -2467,7 +2376,7 @@ const _abi = [
|
|
|
2467
2376
|
],
|
|
2468
2377
|
stateMutability: "view",
|
|
2469
2378
|
type: "function",
|
|
2470
|
-
signature: "
|
|
2379
|
+
signature: "0x4e583b31",
|
|
2471
2380
|
},
|
|
2472
2381
|
{
|
|
2473
2382
|
inputs: [
|
|
@@ -2561,6 +2470,11 @@ const _abi = [
|
|
|
2561
2470
|
name: "_startReferrerFeeP",
|
|
2562
2471
|
type: "uint256",
|
|
2563
2472
|
},
|
|
2473
|
+
{
|
|
2474
|
+
internalType: "uint256",
|
|
2475
|
+
name: "_openFeeP",
|
|
2476
|
+
type: "uint256",
|
|
2477
|
+
},
|
|
2564
2478
|
{
|
|
2565
2479
|
internalType: "uint256",
|
|
2566
2480
|
name: "_targetVolumeUsd",
|
|
@@ -2571,7 +2485,7 @@ const _abi = [
|
|
|
2571
2485
|
outputs: [],
|
|
2572
2486
|
stateMutability: "nonpayable",
|
|
2573
2487
|
type: "function",
|
|
2574
|
-
signature: "
|
|
2488
|
+
signature: "0xc8b0d710",
|
|
2575
2489
|
},
|
|
2576
2490
|
{
|
|
2577
2491
|
inputs: [
|
|
@@ -2634,6 +2548,20 @@ const _abi = [
|
|
|
2634
2548
|
type: "function",
|
|
2635
2549
|
signature: "0x97365b74",
|
|
2636
2550
|
},
|
|
2551
|
+
{
|
|
2552
|
+
inputs: [
|
|
2553
|
+
{
|
|
2554
|
+
internalType: "uint256",
|
|
2555
|
+
name: "_value",
|
|
2556
|
+
type: "uint256",
|
|
2557
|
+
},
|
|
2558
|
+
],
|
|
2559
|
+
name: "updateReferralsOpenFeeP",
|
|
2560
|
+
outputs: [],
|
|
2561
|
+
stateMutability: "nonpayable",
|
|
2562
|
+
type: "function",
|
|
2563
|
+
signature: "0xdfed4fcb",
|
|
2564
|
+
},
|
|
2637
2565
|
{
|
|
2638
2566
|
inputs: [
|
|
2639
2567
|
{
|
|
@@ -2695,11 +2623,6 @@ const _abi = [
|
|
|
2695
2623
|
type: "function",
|
|
2696
2624
|
signature: "0x507cd8de",
|
|
2697
2625
|
},
|
|
2698
|
-
{
|
|
2699
|
-
inputs: [],
|
|
2700
|
-
name: "PointsOverflow",
|
|
2701
|
-
type: "error",
|
|
2702
|
-
},
|
|
2703
2626
|
{
|
|
2704
2627
|
inputs: [],
|
|
2705
2628
|
name: "WrongFeeTier",
|
|
@@ -2903,110 +2826,28 @@ const _abi = [
|
|
|
2903
2826
|
type: "address",
|
|
2904
2827
|
},
|
|
2905
2828
|
{
|
|
2906
|
-
indexed:
|
|
2829
|
+
indexed: false,
|
|
2907
2830
|
internalType: "uint32",
|
|
2908
|
-
name: "
|
|
2831
|
+
name: "fromDay",
|
|
2909
2832
|
type: "uint32",
|
|
2910
2833
|
},
|
|
2911
2834
|
{
|
|
2912
2835
|
indexed: false,
|
|
2913
|
-
internalType: "
|
|
2914
|
-
name: "
|
|
2915
|
-
type: "
|
|
2836
|
+
internalType: "uint32",
|
|
2837
|
+
name: "toDay",
|
|
2838
|
+
type: "uint32",
|
|
2916
2839
|
},
|
|
2917
2840
|
{
|
|
2918
2841
|
indexed: false,
|
|
2919
2842
|
internalType: "uint224",
|
|
2920
|
-
name: "
|
|
2843
|
+
name: "expiredPoints",
|
|
2921
2844
|
type: "uint224",
|
|
2922
2845
|
},
|
|
2923
2846
|
],
|
|
2924
|
-
name: "
|
|
2925
|
-
type: "event",
|
|
2926
|
-
signature: "0xf050ee240db213d72ebabd2f46c0d3270c8206c02d51e074d447c4ca20bd7a6f",
|
|
2927
|
-
},
|
|
2928
|
-
{
|
|
2929
|
-
anonymous: false,
|
|
2930
|
-
inputs: [
|
|
2931
|
-
{
|
|
2932
|
-
indexed: true,
|
|
2933
|
-
internalType: "address",
|
|
2934
|
-
name: "trader",
|
|
2935
|
-
type: "address",
|
|
2936
|
-
},
|
|
2937
|
-
{
|
|
2938
|
-
indexed: false,
|
|
2939
|
-
internalType: "uint32",
|
|
2940
|
-
name: "fromDay",
|
|
2941
|
-
type: "uint32",
|
|
2942
|
-
},
|
|
2943
|
-
{
|
|
2944
|
-
indexed: false,
|
|
2945
|
-
internalType: "uint32",
|
|
2946
|
-
name: "toDay",
|
|
2947
|
-
type: "uint32",
|
|
2948
|
-
},
|
|
2949
|
-
{
|
|
2950
|
-
indexed: false,
|
|
2951
|
-
internalType: "uint224",
|
|
2952
|
-
name: "expiredPoints",
|
|
2953
|
-
type: "uint224",
|
|
2954
|
-
},
|
|
2955
|
-
],
|
|
2956
|
-
name: "TraderTrailingPointsExpired",
|
|
2847
|
+
name: "TraderTrailingPointsExpired",
|
|
2957
2848
|
type: "event",
|
|
2958
2849
|
signature: "0x964f0f6a92f6d7eedbff7670a2e850f5511e59321724a9dbef638c8068b7527b",
|
|
2959
2850
|
},
|
|
2960
|
-
{
|
|
2961
|
-
anonymous: false,
|
|
2962
|
-
inputs: [
|
|
2963
|
-
{
|
|
2964
|
-
indexed: true,
|
|
2965
|
-
internalType: "address",
|
|
2966
|
-
name: "trader",
|
|
2967
|
-
type: "address",
|
|
2968
|
-
},
|
|
2969
|
-
{
|
|
2970
|
-
indexed: true,
|
|
2971
|
-
internalType: "uint32",
|
|
2972
|
-
name: "day",
|
|
2973
|
-
type: "uint32",
|
|
2974
|
-
},
|
|
2975
|
-
{
|
|
2976
|
-
indexed: false,
|
|
2977
|
-
internalType: "uint224",
|
|
2978
|
-
name: "points",
|
|
2979
|
-
type: "uint224",
|
|
2980
|
-
},
|
|
2981
|
-
],
|
|
2982
|
-
name: "TraderUnclaimedPointsClaimed",
|
|
2983
|
-
type: "event",
|
|
2984
|
-
signature: "0x8b1dd1669c243ea81885b90c31d292a58996045d48bd261b3aea98a09cd66f1e",
|
|
2985
|
-
},
|
|
2986
|
-
{
|
|
2987
|
-
inputs: [
|
|
2988
|
-
{
|
|
2989
|
-
internalType: "address[]",
|
|
2990
|
-
name: "_traders",
|
|
2991
|
-
type: "address[]",
|
|
2992
|
-
},
|
|
2993
|
-
{
|
|
2994
|
-
internalType: "enum IFeeTiers.CreditType[]",
|
|
2995
|
-
name: "_creditTypes",
|
|
2996
|
-
type: "uint8[]",
|
|
2997
|
-
},
|
|
2998
|
-
{
|
|
2999
|
-
internalType: "uint224[]",
|
|
3000
|
-
name: "_points",
|
|
3001
|
-
type: "uint224[]",
|
|
3002
|
-
},
|
|
3003
|
-
],
|
|
3004
|
-
name: "addTradersUnclaimedPoints",
|
|
3005
|
-
outputs: [],
|
|
3006
|
-
stateMutability: "nonpayable",
|
|
3007
|
-
type: "function",
|
|
3008
|
-
signature: "0xb61ce13b",
|
|
3009
|
-
},
|
|
3010
2851
|
{
|
|
3011
2852
|
inputs: [
|
|
3012
2853
|
{
|
|
@@ -3199,26 +3040,6 @@ const _abi = [
|
|
|
3199
3040
|
type: "function",
|
|
3200
3041
|
signature: "0x508cbfbe",
|
|
3201
3042
|
},
|
|
3202
|
-
{
|
|
3203
|
-
inputs: [
|
|
3204
|
-
{
|
|
3205
|
-
internalType: "address",
|
|
3206
|
-
name: "_trader",
|
|
3207
|
-
type: "address",
|
|
3208
|
-
},
|
|
3209
|
-
],
|
|
3210
|
-
name: "getTraderUnclaimedPoints",
|
|
3211
|
-
outputs: [
|
|
3212
|
-
{
|
|
3213
|
-
internalType: "uint224",
|
|
3214
|
-
name: "",
|
|
3215
|
-
type: "uint224",
|
|
3216
|
-
},
|
|
3217
|
-
],
|
|
3218
|
-
stateMutability: "view",
|
|
3219
|
-
type: "function",
|
|
3220
|
-
signature: "0x84e3ebe2",
|
|
3221
|
-
},
|
|
3222
3043
|
{
|
|
3223
3044
|
inputs: [
|
|
3224
3045
|
{
|
|
@@ -3395,60 +3216,6 @@ const _abi = [
|
|
|
3395
3216
|
type: "event",
|
|
3396
3217
|
signature: "0x2742ec28d0252b4477106a77a10b04e1c1ecd2b568c7168d56c3a3154d3a3122",
|
|
3397
3218
|
},
|
|
3398
|
-
{
|
|
3399
|
-
anonymous: false,
|
|
3400
|
-
inputs: [
|
|
3401
|
-
{
|
|
3402
|
-
indexed: true,
|
|
3403
|
-
internalType: "uint256",
|
|
3404
|
-
name: "pairIndex",
|
|
3405
|
-
type: "uint256",
|
|
3406
|
-
},
|
|
3407
|
-
{
|
|
3408
|
-
indexed: false,
|
|
3409
|
-
internalType: "bool",
|
|
3410
|
-
name: "exemptAfterProtectionCloseFactor",
|
|
3411
|
-
type: "bool",
|
|
3412
|
-
},
|
|
3413
|
-
],
|
|
3414
|
-
name: "ExemptAfterProtectionCloseFactorUpdated",
|
|
3415
|
-
type: "event",
|
|
3416
|
-
signature: "0xd5c6c8f00fcf1cd1dcccec431caee897386371cb8c3ec99d177b49ca8b38de7a",
|
|
3417
|
-
},
|
|
3418
|
-
{
|
|
3419
|
-
anonymous: false,
|
|
3420
|
-
inputs: [
|
|
3421
|
-
{
|
|
3422
|
-
indexed: true,
|
|
3423
|
-
internalType: "uint256",
|
|
3424
|
-
name: "pairIndex",
|
|
3425
|
-
type: "uint256",
|
|
3426
|
-
},
|
|
3427
|
-
{
|
|
3428
|
-
indexed: false,
|
|
3429
|
-
internalType: "bool",
|
|
3430
|
-
name: "exemptOnOpen",
|
|
3431
|
-
type: "bool",
|
|
3432
|
-
},
|
|
3433
|
-
],
|
|
3434
|
-
name: "ExemptOnOpenUpdated",
|
|
3435
|
-
type: "event",
|
|
3436
|
-
signature: "0x194d4896e74b7ec72619871dc3ed535210aa9f76fa7b42822b6980a8585938ca",
|
|
3437
|
-
},
|
|
3438
|
-
{
|
|
3439
|
-
anonymous: false,
|
|
3440
|
-
inputs: [
|
|
3441
|
-
{
|
|
3442
|
-
indexed: true,
|
|
3443
|
-
internalType: "uint40",
|
|
3444
|
-
name: "negPnlCumulVolMultiplier",
|
|
3445
|
-
type: "uint40",
|
|
3446
|
-
},
|
|
3447
|
-
],
|
|
3448
|
-
name: "NegPnlCumulVolMultiplierUpdated",
|
|
3449
|
-
type: "event",
|
|
3450
|
-
signature: "0x6d53c6510943113652968162063328b13689dc76c9927ac79a6706ae6eaf8212",
|
|
3451
|
-
},
|
|
3452
3219
|
{
|
|
3453
3220
|
anonymous: false,
|
|
3454
3221
|
inputs: [
|
|
@@ -3599,11 +3366,6 @@ const _abi = [
|
|
|
3599
3366
|
name: "open",
|
|
3600
3367
|
type: "bool",
|
|
3601
3368
|
},
|
|
3602
|
-
{
|
|
3603
|
-
internalType: "bool",
|
|
3604
|
-
name: "isPnlPositive",
|
|
3605
|
-
type: "bool",
|
|
3606
|
-
},
|
|
3607
3369
|
{
|
|
3608
3370
|
internalType: "uint128",
|
|
3609
3371
|
name: "openInterestUsd",
|
|
@@ -3618,7 +3380,7 @@ const _abi = [
|
|
|
3618
3380
|
],
|
|
3619
3381
|
name: "PriceImpactOpenInterestAdded",
|
|
3620
3382
|
type: "event",
|
|
3621
|
-
signature: "
|
|
3383
|
+
signature: "0xcca5358ade10271036cf22898f07ad681f9dd7fc3e861da5fc31319c4b890ad4",
|
|
3622
3384
|
},
|
|
3623
3385
|
{
|
|
3624
3386
|
anonymous: false,
|
|
@@ -3688,26 +3450,6 @@ const _abi = [
|
|
|
3688
3450
|
type: "event",
|
|
3689
3451
|
signature: "0x471eb2788149a10519cea684f0149db7c6af0e5fa1182f06b50c5420fe95d12a",
|
|
3690
3452
|
},
|
|
3691
|
-
{
|
|
3692
|
-
anonymous: false,
|
|
3693
|
-
inputs: [
|
|
3694
|
-
{
|
|
3695
|
-
indexed: false,
|
|
3696
|
-
internalType: "address",
|
|
3697
|
-
name: "trader",
|
|
3698
|
-
type: "address",
|
|
3699
|
-
},
|
|
3700
|
-
{
|
|
3701
|
-
indexed: false,
|
|
3702
|
-
internalType: "bool",
|
|
3703
|
-
name: "whitelisted",
|
|
3704
|
-
type: "bool",
|
|
3705
|
-
},
|
|
3706
|
-
],
|
|
3707
|
-
name: "ProtectionCloseFactorWhitelistUpdated",
|
|
3708
|
-
type: "event",
|
|
3709
|
-
signature: "0xb97e27f523fc23750f9d24f12010b9c513c301db9022d0ce8e27a50d9f426383",
|
|
3710
|
-
},
|
|
3711
3453
|
{
|
|
3712
3454
|
inputs: [
|
|
3713
3455
|
{
|
|
@@ -3730,31 +3472,12 @@ const _abi = [
|
|
|
3730
3472
|
name: "_open",
|
|
3731
3473
|
type: "bool",
|
|
3732
3474
|
},
|
|
3733
|
-
{
|
|
3734
|
-
internalType: "bool",
|
|
3735
|
-
name: "_isPnlPositive",
|
|
3736
|
-
type: "bool",
|
|
3737
|
-
},
|
|
3738
3475
|
],
|
|
3739
3476
|
name: "addPriceImpactOpenInterest",
|
|
3740
3477
|
outputs: [],
|
|
3741
3478
|
stateMutability: "nonpayable",
|
|
3742
3479
|
type: "function",
|
|
3743
|
-
signature: "
|
|
3744
|
-
},
|
|
3745
|
-
{
|
|
3746
|
-
inputs: [],
|
|
3747
|
-
name: "getNegPnlCumulVolMultiplier",
|
|
3748
|
-
outputs: [
|
|
3749
|
-
{
|
|
3750
|
-
internalType: "uint48",
|
|
3751
|
-
name: "",
|
|
3752
|
-
type: "uint48",
|
|
3753
|
-
},
|
|
3754
|
-
],
|
|
3755
|
-
stateMutability: "view",
|
|
3756
|
-
type: "function",
|
|
3757
|
-
signature: "0xc1681679",
|
|
3480
|
+
signature: "0x23ce624b",
|
|
3758
3481
|
},
|
|
3759
3482
|
{
|
|
3760
3483
|
inputs: [
|
|
@@ -3963,19 +3686,9 @@ const _abi = [
|
|
|
3963
3686
|
type: "uint40",
|
|
3964
3687
|
},
|
|
3965
3688
|
{
|
|
3966
|
-
internalType: "
|
|
3967
|
-
name: "exemptOnOpen",
|
|
3968
|
-
type: "bool",
|
|
3969
|
-
},
|
|
3970
|
-
{
|
|
3971
|
-
internalType: "bool",
|
|
3972
|
-
name: "exemptAfterProtectionCloseFactor",
|
|
3973
|
-
type: "bool",
|
|
3974
|
-
},
|
|
3975
|
-
{
|
|
3976
|
-
internalType: "uint128",
|
|
3689
|
+
internalType: "uint144",
|
|
3977
3690
|
name: "__placeholder",
|
|
3978
|
-
type: "
|
|
3691
|
+
type: "uint144",
|
|
3979
3692
|
},
|
|
3980
3693
|
],
|
|
3981
3694
|
internalType: "struct IPriceImpact.PairFactors[]",
|
|
@@ -4014,31 +3727,6 @@ const _abi = [
|
|
|
4014
3727
|
},
|
|
4015
3728
|
{
|
|
4016
3729
|
inputs: [
|
|
4017
|
-
{
|
|
4018
|
-
internalType: "address",
|
|
4019
|
-
name: "_trader",
|
|
4020
|
-
type: "address",
|
|
4021
|
-
},
|
|
4022
|
-
],
|
|
4023
|
-
name: "getProtectionCloseFactorWhitelist",
|
|
4024
|
-
outputs: [
|
|
4025
|
-
{
|
|
4026
|
-
internalType: "bool",
|
|
4027
|
-
name: "",
|
|
4028
|
-
type: "bool",
|
|
4029
|
-
},
|
|
4030
|
-
],
|
|
4031
|
-
stateMutability: "view",
|
|
4032
|
-
type: "function",
|
|
4033
|
-
signature: "0x2aa8f882",
|
|
4034
|
-
},
|
|
4035
|
-
{
|
|
4036
|
-
inputs: [
|
|
4037
|
-
{
|
|
4038
|
-
internalType: "address",
|
|
4039
|
-
name: "_trader",
|
|
4040
|
-
type: "address",
|
|
4041
|
-
},
|
|
4042
3730
|
{
|
|
4043
3731
|
internalType: "uint256",
|
|
4044
3732
|
name: "_marketPrice",
|
|
@@ -4095,21 +3783,7 @@ const _abi = [
|
|
|
4095
3783
|
],
|
|
4096
3784
|
stateMutability: "view",
|
|
4097
3785
|
type: "function",
|
|
4098
|
-
signature: "
|
|
4099
|
-
},
|
|
4100
|
-
{
|
|
4101
|
-
inputs: [
|
|
4102
|
-
{
|
|
4103
|
-
internalType: "uint40",
|
|
4104
|
-
name: "_negPnlCumulVolMultiplier",
|
|
4105
|
-
type: "uint40",
|
|
4106
|
-
},
|
|
4107
|
-
],
|
|
4108
|
-
name: "initializeNegPnlCumulVolMultiplier",
|
|
4109
|
-
outputs: [],
|
|
4110
|
-
stateMutability: "nonpayable",
|
|
4111
|
-
type: "function",
|
|
4112
|
-
signature: "0xe551bcbf",
|
|
3786
|
+
signature: "0xdd5ef6f1",
|
|
4113
3787
|
},
|
|
4114
3788
|
{
|
|
4115
3789
|
inputs: [
|
|
@@ -4181,106 +3855,54 @@ const _abi = [
|
|
|
4181
3855
|
{
|
|
4182
3856
|
inputs: [
|
|
4183
3857
|
{
|
|
4184
|
-
internalType: "
|
|
4185
|
-
name: "
|
|
4186
|
-
type: "
|
|
3858
|
+
internalType: "uint256[]",
|
|
3859
|
+
name: "_indices",
|
|
3860
|
+
type: "uint256[]",
|
|
4187
3861
|
},
|
|
4188
3862
|
{
|
|
4189
|
-
internalType: "
|
|
4190
|
-
name: "
|
|
4191
|
-
type: "
|
|
3863
|
+
internalType: "uint128[]",
|
|
3864
|
+
name: "_depthsAboveUsd",
|
|
3865
|
+
type: "uint128[]",
|
|
3866
|
+
},
|
|
3867
|
+
{
|
|
3868
|
+
internalType: "uint128[]",
|
|
3869
|
+
name: "_depthsBelowUsd",
|
|
3870
|
+
type: "uint128[]",
|
|
4192
3871
|
},
|
|
4193
3872
|
],
|
|
4194
|
-
name: "
|
|
3873
|
+
name: "setPairDepths",
|
|
4195
3874
|
outputs: [],
|
|
4196
3875
|
stateMutability: "nonpayable",
|
|
4197
3876
|
type: "function",
|
|
4198
|
-
signature: "
|
|
3877
|
+
signature: "0x6474b399",
|
|
4199
3878
|
},
|
|
4200
3879
|
{
|
|
4201
3880
|
inputs: [
|
|
4202
3881
|
{
|
|
4203
|
-
internalType: "
|
|
4204
|
-
name: "
|
|
4205
|
-
type: "
|
|
4206
|
-
},
|
|
4207
|
-
{
|
|
4208
|
-
internalType: "bool[]",
|
|
4209
|
-
name: "_exemptOnOpen",
|
|
4210
|
-
type: "bool[]",
|
|
3882
|
+
internalType: "uint48",
|
|
3883
|
+
name: "_newWindowsCount",
|
|
3884
|
+
type: "uint48",
|
|
4211
3885
|
},
|
|
4212
3886
|
],
|
|
4213
|
-
name: "
|
|
3887
|
+
name: "setPriceImpactWindowsCount",
|
|
4214
3888
|
outputs: [],
|
|
4215
3889
|
stateMutability: "nonpayable",
|
|
4216
3890
|
type: "function",
|
|
4217
|
-
signature: "
|
|
3891
|
+
signature: "0x10751b4f",
|
|
4218
3892
|
},
|
|
4219
3893
|
{
|
|
4220
3894
|
inputs: [
|
|
4221
3895
|
{
|
|
4222
|
-
internalType: "
|
|
4223
|
-
name: "
|
|
4224
|
-
type: "
|
|
3896
|
+
internalType: "uint48",
|
|
3897
|
+
name: "_newWindowsDuration",
|
|
3898
|
+
type: "uint48",
|
|
4225
3899
|
},
|
|
4226
3900
|
],
|
|
4227
|
-
name: "
|
|
3901
|
+
name: "setPriceImpactWindowsDuration",
|
|
4228
3902
|
outputs: [],
|
|
4229
3903
|
stateMutability: "nonpayable",
|
|
4230
3904
|
type: "function",
|
|
4231
|
-
signature: "
|
|
4232
|
-
},
|
|
4233
|
-
{
|
|
4234
|
-
inputs: [
|
|
4235
|
-
{
|
|
4236
|
-
internalType: "uint256[]",
|
|
4237
|
-
name: "_indices",
|
|
4238
|
-
type: "uint256[]",
|
|
4239
|
-
},
|
|
4240
|
-
{
|
|
4241
|
-
internalType: "uint128[]",
|
|
4242
|
-
name: "_depthsAboveUsd",
|
|
4243
|
-
type: "uint128[]",
|
|
4244
|
-
},
|
|
4245
|
-
{
|
|
4246
|
-
internalType: "uint128[]",
|
|
4247
|
-
name: "_depthsBelowUsd",
|
|
4248
|
-
type: "uint128[]",
|
|
4249
|
-
},
|
|
4250
|
-
],
|
|
4251
|
-
name: "setPairDepths",
|
|
4252
|
-
outputs: [],
|
|
4253
|
-
stateMutability: "nonpayable",
|
|
4254
|
-
type: "function",
|
|
4255
|
-
signature: "0x6474b399",
|
|
4256
|
-
},
|
|
4257
|
-
{
|
|
4258
|
-
inputs: [
|
|
4259
|
-
{
|
|
4260
|
-
internalType: "uint48",
|
|
4261
|
-
name: "_newWindowsCount",
|
|
4262
|
-
type: "uint48",
|
|
4263
|
-
},
|
|
4264
|
-
],
|
|
4265
|
-
name: "setPriceImpactWindowsCount",
|
|
4266
|
-
outputs: [],
|
|
4267
|
-
stateMutability: "nonpayable",
|
|
4268
|
-
type: "function",
|
|
4269
|
-
signature: "0x10751b4f",
|
|
4270
|
-
},
|
|
4271
|
-
{
|
|
4272
|
-
inputs: [
|
|
4273
|
-
{
|
|
4274
|
-
internalType: "uint48",
|
|
4275
|
-
name: "_newWindowsDuration",
|
|
4276
|
-
type: "uint48",
|
|
4277
|
-
},
|
|
4278
|
-
],
|
|
4279
|
-
name: "setPriceImpactWindowsDuration",
|
|
4280
|
-
outputs: [],
|
|
4281
|
-
stateMutability: "nonpayable",
|
|
4282
|
-
type: "function",
|
|
4283
|
-
signature: "0x39b0fc82",
|
|
3905
|
+
signature: "0x39b0fc82",
|
|
4284
3906
|
},
|
|
4285
3907
|
{
|
|
4286
3908
|
inputs: [
|
|
@@ -4301,25 +3923,6 @@ const _abi = [
|
|
|
4301
3923
|
type: "function",
|
|
4302
3924
|
signature: "0x2a4cde4a",
|
|
4303
3925
|
},
|
|
4304
|
-
{
|
|
4305
|
-
inputs: [
|
|
4306
|
-
{
|
|
4307
|
-
internalType: "address[]",
|
|
4308
|
-
name: "_traders",
|
|
4309
|
-
type: "address[]",
|
|
4310
|
-
},
|
|
4311
|
-
{
|
|
4312
|
-
internalType: "bool[]",
|
|
4313
|
-
name: "_whitelisted",
|
|
4314
|
-
type: "bool[]",
|
|
4315
|
-
},
|
|
4316
|
-
],
|
|
4317
|
-
name: "setProtectionCloseFactorWhitelist",
|
|
4318
|
-
outputs: [],
|
|
4319
|
-
stateMutability: "nonpayable",
|
|
4320
|
-
type: "function",
|
|
4321
|
-
signature: "0xd8762abb",
|
|
4322
|
-
},
|
|
4323
3926
|
{
|
|
4324
3927
|
inputs: [
|
|
4325
3928
|
{
|
|
@@ -4479,16 +4082,22 @@ const _abi = [
|
|
|
4479
4082
|
anonymous: false,
|
|
4480
4083
|
inputs: [
|
|
4481
4084
|
{
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4085
|
+
components: [
|
|
4086
|
+
{
|
|
4087
|
+
internalType: "address",
|
|
4088
|
+
name: "user",
|
|
4089
|
+
type: "address",
|
|
4090
|
+
},
|
|
4091
|
+
{
|
|
4092
|
+
internalType: "uint32",
|
|
4093
|
+
name: "index",
|
|
4094
|
+
type: "uint32",
|
|
4095
|
+
},
|
|
4096
|
+
],
|
|
4097
|
+
indexed: false,
|
|
4098
|
+
internalType: "struct ITradingStorage.Id",
|
|
4099
|
+
name: "tradeId",
|
|
4100
|
+
type: "tuple",
|
|
4492
4101
|
},
|
|
4493
4102
|
{
|
|
4494
4103
|
indexed: false,
|
|
@@ -4517,7 +4126,7 @@ const _abi = [
|
|
|
4517
4126
|
],
|
|
4518
4127
|
name: "OpenOrderDetailsUpdated",
|
|
4519
4128
|
type: "event",
|
|
4520
|
-
signature: "
|
|
4129
|
+
signature: "0x57166866105b85933cf7d2f84637e524028a4ca84133309f14b2ce0dfc113498",
|
|
4521
4130
|
},
|
|
4522
4131
|
{
|
|
4523
4132
|
anonymous: false,
|
|
@@ -4667,42 +4276,48 @@ const _abi = [
|
|
|
4667
4276
|
anonymous: false,
|
|
4668
4277
|
inputs: [
|
|
4669
4278
|
{
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4279
|
+
components: [
|
|
4280
|
+
{
|
|
4281
|
+
internalType: "address",
|
|
4282
|
+
name: "user",
|
|
4283
|
+
type: "address",
|
|
4284
|
+
},
|
|
4285
|
+
{
|
|
4286
|
+
internalType: "uint32",
|
|
4287
|
+
name: "index",
|
|
4288
|
+
type: "uint32",
|
|
4289
|
+
},
|
|
4290
|
+
],
|
|
4682
4291
|
indexed: false,
|
|
4683
|
-
internalType: "
|
|
4684
|
-
name: "
|
|
4685
|
-
type: "
|
|
4292
|
+
internalType: "struct ITradingStorage.Id",
|
|
4293
|
+
name: "tradeId",
|
|
4294
|
+
type: "tuple",
|
|
4686
4295
|
},
|
|
4687
4296
|
],
|
|
4688
4297
|
name: "TradeClosed",
|
|
4689
4298
|
type: "event",
|
|
4690
|
-
signature: "
|
|
4299
|
+
signature: "0xedf2f9a86d6e2127c61aaaeb10a282ee4e0aa89ea19c7db37df80fece027a493",
|
|
4691
4300
|
},
|
|
4692
4301
|
{
|
|
4693
4302
|
anonymous: false,
|
|
4694
4303
|
inputs: [
|
|
4695
4304
|
{
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4305
|
+
components: [
|
|
4306
|
+
{
|
|
4307
|
+
internalType: "address",
|
|
4308
|
+
name: "user",
|
|
4309
|
+
type: "address",
|
|
4310
|
+
},
|
|
4311
|
+
{
|
|
4312
|
+
internalType: "uint32",
|
|
4313
|
+
name: "index",
|
|
4314
|
+
type: "uint32",
|
|
4315
|
+
},
|
|
4316
|
+
],
|
|
4317
|
+
indexed: false,
|
|
4318
|
+
internalType: "struct ITradingStorage.Id",
|
|
4319
|
+
name: "tradeId",
|
|
4320
|
+
type: "tuple",
|
|
4706
4321
|
},
|
|
4707
4322
|
{
|
|
4708
4323
|
indexed: false,
|
|
@@ -4713,22 +4328,28 @@ const _abi = [
|
|
|
4713
4328
|
],
|
|
4714
4329
|
name: "TradeCollateralUpdated",
|
|
4715
4330
|
type: "event",
|
|
4716
|
-
signature: "
|
|
4331
|
+
signature: "0xce228a7b1b8e239798e94cb2ba581d57501692fc1d29719a891125f1f393826d",
|
|
4717
4332
|
},
|
|
4718
4333
|
{
|
|
4719
4334
|
anonymous: false,
|
|
4720
4335
|
inputs: [
|
|
4721
4336
|
{
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4337
|
+
components: [
|
|
4338
|
+
{
|
|
4339
|
+
internalType: "address",
|
|
4340
|
+
name: "user",
|
|
4341
|
+
type: "address",
|
|
4342
|
+
},
|
|
4343
|
+
{
|
|
4344
|
+
internalType: "uint32",
|
|
4345
|
+
name: "index",
|
|
4346
|
+
type: "uint32",
|
|
4347
|
+
},
|
|
4348
|
+
],
|
|
4349
|
+
indexed: false,
|
|
4350
|
+
internalType: "struct ITradingStorage.Id",
|
|
4351
|
+
name: "tradeId",
|
|
4352
|
+
type: "tuple",
|
|
4732
4353
|
},
|
|
4733
4354
|
{
|
|
4734
4355
|
indexed: false,
|
|
@@ -4739,22 +4360,28 @@ const _abi = [
|
|
|
4739
4360
|
],
|
|
4740
4361
|
name: "TradeMaxClosingSlippagePUpdated",
|
|
4741
4362
|
type: "event",
|
|
4742
|
-
signature: "
|
|
4363
|
+
signature: "0xb34e0065c48018b4a48b78c4729fd9ffd1968c59d6532e600c4afb42ce093da1",
|
|
4743
4364
|
},
|
|
4744
4365
|
{
|
|
4745
4366
|
anonymous: false,
|
|
4746
4367
|
inputs: [
|
|
4747
4368
|
{
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4369
|
+
components: [
|
|
4370
|
+
{
|
|
4371
|
+
internalType: "address",
|
|
4372
|
+
name: "user",
|
|
4373
|
+
type: "address",
|
|
4374
|
+
},
|
|
4375
|
+
{
|
|
4376
|
+
internalType: "uint32",
|
|
4377
|
+
name: "index",
|
|
4378
|
+
type: "uint32",
|
|
4379
|
+
},
|
|
4380
|
+
],
|
|
4381
|
+
indexed: false,
|
|
4382
|
+
internalType: "struct ITradingStorage.Id",
|
|
4383
|
+
name: "tradeId",
|
|
4384
|
+
type: "tuple",
|
|
4758
4385
|
},
|
|
4759
4386
|
{
|
|
4760
4387
|
indexed: false,
|
|
@@ -4792,31 +4419,31 @@ const _abi = [
|
|
|
4792
4419
|
name: "isPartialIncrease",
|
|
4793
4420
|
type: "bool",
|
|
4794
4421
|
},
|
|
4795
|
-
{
|
|
4796
|
-
indexed: false,
|
|
4797
|
-
internalType: "bool",
|
|
4798
|
-
name: "isPnlPositive",
|
|
4799
|
-
type: "bool",
|
|
4800
|
-
},
|
|
4801
4422
|
],
|
|
4802
4423
|
name: "TradePositionUpdated",
|
|
4803
4424
|
type: "event",
|
|
4804
|
-
signature: "
|
|
4425
|
+
signature: "0x3890801c6f1ea37e9eb6aaae6cb1e57eeb8fe67e3af47b2533ff1fc4d1031ede",
|
|
4805
4426
|
},
|
|
4806
4427
|
{
|
|
4807
4428
|
anonymous: false,
|
|
4808
4429
|
inputs: [
|
|
4809
4430
|
{
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4431
|
+
components: [
|
|
4432
|
+
{
|
|
4433
|
+
internalType: "address",
|
|
4434
|
+
name: "user",
|
|
4435
|
+
type: "address",
|
|
4436
|
+
},
|
|
4437
|
+
{
|
|
4438
|
+
internalType: "uint32",
|
|
4439
|
+
name: "index",
|
|
4440
|
+
type: "uint32",
|
|
4441
|
+
},
|
|
4442
|
+
],
|
|
4443
|
+
indexed: false,
|
|
4444
|
+
internalType: "struct ITradingStorage.Id",
|
|
4445
|
+
name: "tradeId",
|
|
4446
|
+
type: "tuple",
|
|
4820
4447
|
},
|
|
4821
4448
|
{
|
|
4822
4449
|
indexed: false,
|
|
@@ -4827,23 +4454,11 @@ const _abi = [
|
|
|
4827
4454
|
],
|
|
4828
4455
|
name: "TradeSlUpdated",
|
|
4829
4456
|
type: "event",
|
|
4830
|
-
signature: "
|
|
4457
|
+
signature: "0x38f5d5d40d9c4a41aa03d21461f1b07aa6b4ef035fb9d21f02d53a82c712a002",
|
|
4831
4458
|
},
|
|
4832
4459
|
{
|
|
4833
4460
|
anonymous: false,
|
|
4834
4461
|
inputs: [
|
|
4835
|
-
{
|
|
4836
|
-
indexed: true,
|
|
4837
|
-
internalType: "address",
|
|
4838
|
-
name: "user",
|
|
4839
|
-
type: "address",
|
|
4840
|
-
},
|
|
4841
|
-
{
|
|
4842
|
-
indexed: true,
|
|
4843
|
-
internalType: "uint32",
|
|
4844
|
-
name: "index",
|
|
4845
|
-
type: "uint32",
|
|
4846
|
-
},
|
|
4847
4462
|
{
|
|
4848
4463
|
components: [
|
|
4849
4464
|
{
|
|
@@ -5006,33 +4621,39 @@ const _abi = [
|
|
|
5006
4621
|
],
|
|
5007
4622
|
name: "TradeStored",
|
|
5008
4623
|
type: "event",
|
|
5009
|
-
signature: "
|
|
4624
|
+
signature: "0xb4c8599e992aeeb8f86e02eaee1061646ddf10a354b91f1daa776eb4595387a3",
|
|
5010
4625
|
},
|
|
5011
4626
|
{
|
|
5012
4627
|
anonymous: false,
|
|
5013
4628
|
inputs: [
|
|
5014
4629
|
{
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
indexed: false,
|
|
5028
|
-
internalType: "
|
|
4630
|
+
components: [
|
|
4631
|
+
{
|
|
4632
|
+
internalType: "address",
|
|
4633
|
+
name: "user",
|
|
4634
|
+
type: "address",
|
|
4635
|
+
},
|
|
4636
|
+
{
|
|
4637
|
+
internalType: "uint32",
|
|
4638
|
+
name: "index",
|
|
4639
|
+
type: "uint32",
|
|
4640
|
+
},
|
|
4641
|
+
],
|
|
4642
|
+
indexed: false,
|
|
4643
|
+
internalType: "struct ITradingStorage.Id",
|
|
4644
|
+
name: "tradeId",
|
|
4645
|
+
type: "tuple",
|
|
4646
|
+
},
|
|
4647
|
+
{
|
|
4648
|
+
indexed: false,
|
|
4649
|
+
internalType: "uint64",
|
|
5029
4650
|
name: "newTp",
|
|
5030
4651
|
type: "uint64",
|
|
5031
4652
|
},
|
|
5032
4653
|
],
|
|
5033
4654
|
name: "TradeTpUpdated",
|
|
5034
4655
|
type: "event",
|
|
5035
|
-
signature: "
|
|
4656
|
+
signature: "0x3d045f25e6a6757ae5ca79ce5d28d84d69713804353a02c521d6a5352c0f9e20",
|
|
5036
4657
|
},
|
|
5037
4658
|
{
|
|
5038
4659
|
anonymous: false,
|
|
@@ -5112,17 +4733,12 @@ const _abi = [
|
|
|
5112
4733
|
name: "_tradeId",
|
|
5113
4734
|
type: "tuple",
|
|
5114
4735
|
},
|
|
5115
|
-
{
|
|
5116
|
-
internalType: "bool",
|
|
5117
|
-
name: "_isPnlPositive",
|
|
5118
|
-
type: "bool",
|
|
5119
|
-
},
|
|
5120
4736
|
],
|
|
5121
4737
|
name: "closeTrade",
|
|
5122
4738
|
outputs: [],
|
|
5123
4739
|
stateMutability: "nonpayable",
|
|
5124
4740
|
type: "function",
|
|
5125
|
-
signature: "
|
|
4741
|
+
signature: "0x8583909b",
|
|
5126
4742
|
},
|
|
5127
4743
|
{
|
|
5128
4744
|
inputs: [
|
|
@@ -5253,140 +4869,6 @@ const _abi = [
|
|
|
5253
4869
|
type: "function",
|
|
5254
4870
|
signature: "0x2d11445f",
|
|
5255
4871
|
},
|
|
5256
|
-
{
|
|
5257
|
-
inputs: [
|
|
5258
|
-
{
|
|
5259
|
-
internalType: "address[]",
|
|
5260
|
-
name: "_traders",
|
|
5261
|
-
type: "address[]",
|
|
5262
|
-
},
|
|
5263
|
-
{
|
|
5264
|
-
internalType: "uint256",
|
|
5265
|
-
name: "_offset",
|
|
5266
|
-
type: "uint256",
|
|
5267
|
-
},
|
|
5268
|
-
{
|
|
5269
|
-
internalType: "uint256",
|
|
5270
|
-
name: "_limit",
|
|
5271
|
-
type: "uint256",
|
|
5272
|
-
},
|
|
5273
|
-
],
|
|
5274
|
-
name: "getAllPendingOrdersForTraders",
|
|
5275
|
-
outputs: [
|
|
5276
|
-
{
|
|
5277
|
-
components: [
|
|
5278
|
-
{
|
|
5279
|
-
components: [
|
|
5280
|
-
{
|
|
5281
|
-
internalType: "address",
|
|
5282
|
-
name: "user",
|
|
5283
|
-
type: "address",
|
|
5284
|
-
},
|
|
5285
|
-
{
|
|
5286
|
-
internalType: "uint32",
|
|
5287
|
-
name: "index",
|
|
5288
|
-
type: "uint32",
|
|
5289
|
-
},
|
|
5290
|
-
{
|
|
5291
|
-
internalType: "uint16",
|
|
5292
|
-
name: "pairIndex",
|
|
5293
|
-
type: "uint16",
|
|
5294
|
-
},
|
|
5295
|
-
{
|
|
5296
|
-
internalType: "uint24",
|
|
5297
|
-
name: "leverage",
|
|
5298
|
-
type: "uint24",
|
|
5299
|
-
},
|
|
5300
|
-
{
|
|
5301
|
-
internalType: "bool",
|
|
5302
|
-
name: "long",
|
|
5303
|
-
type: "bool",
|
|
5304
|
-
},
|
|
5305
|
-
{
|
|
5306
|
-
internalType: "bool",
|
|
5307
|
-
name: "isOpen",
|
|
5308
|
-
type: "bool",
|
|
5309
|
-
},
|
|
5310
|
-
{
|
|
5311
|
-
internalType: "uint8",
|
|
5312
|
-
name: "collateralIndex",
|
|
5313
|
-
type: "uint8",
|
|
5314
|
-
},
|
|
5315
|
-
{
|
|
5316
|
-
internalType: "enum ITradingStorage.TradeType",
|
|
5317
|
-
name: "tradeType",
|
|
5318
|
-
type: "uint8",
|
|
5319
|
-
},
|
|
5320
|
-
{
|
|
5321
|
-
internalType: "uint120",
|
|
5322
|
-
name: "collateralAmount",
|
|
5323
|
-
type: "uint120",
|
|
5324
|
-
},
|
|
5325
|
-
{
|
|
5326
|
-
internalType: "uint64",
|
|
5327
|
-
name: "openPrice",
|
|
5328
|
-
type: "uint64",
|
|
5329
|
-
},
|
|
5330
|
-
{
|
|
5331
|
-
internalType: "uint64",
|
|
5332
|
-
name: "tp",
|
|
5333
|
-
type: "uint64",
|
|
5334
|
-
},
|
|
5335
|
-
{
|
|
5336
|
-
internalType: "uint64",
|
|
5337
|
-
name: "sl",
|
|
5338
|
-
type: "uint64",
|
|
5339
|
-
},
|
|
5340
|
-
{
|
|
5341
|
-
internalType: "uint192",
|
|
5342
|
-
name: "__placeholder",
|
|
5343
|
-
type: "uint192",
|
|
5344
|
-
},
|
|
5345
|
-
],
|
|
5346
|
-
internalType: "struct ITradingStorage.Trade",
|
|
5347
|
-
name: "trade",
|
|
5348
|
-
type: "tuple",
|
|
5349
|
-
},
|
|
5350
|
-
{
|
|
5351
|
-
internalType: "address",
|
|
5352
|
-
name: "user",
|
|
5353
|
-
type: "address",
|
|
5354
|
-
},
|
|
5355
|
-
{
|
|
5356
|
-
internalType: "uint32",
|
|
5357
|
-
name: "index",
|
|
5358
|
-
type: "uint32",
|
|
5359
|
-
},
|
|
5360
|
-
{
|
|
5361
|
-
internalType: "bool",
|
|
5362
|
-
name: "isOpen",
|
|
5363
|
-
type: "bool",
|
|
5364
|
-
},
|
|
5365
|
-
{
|
|
5366
|
-
internalType: "enum ITradingStorage.PendingOrderType",
|
|
5367
|
-
name: "orderType",
|
|
5368
|
-
type: "uint8",
|
|
5369
|
-
},
|
|
5370
|
-
{
|
|
5371
|
-
internalType: "uint32",
|
|
5372
|
-
name: "createdBlock",
|
|
5373
|
-
type: "uint32",
|
|
5374
|
-
},
|
|
5375
|
-
{
|
|
5376
|
-
internalType: "uint16",
|
|
5377
|
-
name: "maxSlippageP",
|
|
5378
|
-
type: "uint16",
|
|
5379
|
-
},
|
|
5380
|
-
],
|
|
5381
|
-
internalType: "struct ITradingStorage.PendingOrder[]",
|
|
5382
|
-
name: "",
|
|
5383
|
-
type: "tuple[]",
|
|
5384
|
-
},
|
|
5385
|
-
],
|
|
5386
|
-
stateMutability: "view",
|
|
5387
|
-
type: "function",
|
|
5388
|
-
signature: "0x28eb002f",
|
|
5389
|
-
},
|
|
5390
4872
|
{
|
|
5391
4873
|
inputs: [
|
|
5392
4874
|
{
|
|
@@ -5459,83 +4941,6 @@ const _abi = [
|
|
|
5459
4941
|
type: "function",
|
|
5460
4942
|
signature: "0xeb50287f",
|
|
5461
4943
|
},
|
|
5462
|
-
{
|
|
5463
|
-
inputs: [
|
|
5464
|
-
{
|
|
5465
|
-
internalType: "address[]",
|
|
5466
|
-
name: "_traders",
|
|
5467
|
-
type: "address[]",
|
|
5468
|
-
},
|
|
5469
|
-
{
|
|
5470
|
-
internalType: "uint256",
|
|
5471
|
-
name: "_offset",
|
|
5472
|
-
type: "uint256",
|
|
5473
|
-
},
|
|
5474
|
-
{
|
|
5475
|
-
internalType: "uint256",
|
|
5476
|
-
name: "_limit",
|
|
5477
|
-
type: "uint256",
|
|
5478
|
-
},
|
|
5479
|
-
],
|
|
5480
|
-
name: "getAllTradeInfosForTraders",
|
|
5481
|
-
outputs: [
|
|
5482
|
-
{
|
|
5483
|
-
components: [
|
|
5484
|
-
{
|
|
5485
|
-
internalType: "uint32",
|
|
5486
|
-
name: "createdBlock",
|
|
5487
|
-
type: "uint32",
|
|
5488
|
-
},
|
|
5489
|
-
{
|
|
5490
|
-
internalType: "uint32",
|
|
5491
|
-
name: "tpLastUpdatedBlock",
|
|
5492
|
-
type: "uint32",
|
|
5493
|
-
},
|
|
5494
|
-
{
|
|
5495
|
-
internalType: "uint32",
|
|
5496
|
-
name: "slLastUpdatedBlock",
|
|
5497
|
-
type: "uint32",
|
|
5498
|
-
},
|
|
5499
|
-
{
|
|
5500
|
-
internalType: "uint16",
|
|
5501
|
-
name: "maxSlippageP",
|
|
5502
|
-
type: "uint16",
|
|
5503
|
-
},
|
|
5504
|
-
{
|
|
5505
|
-
internalType: "uint48",
|
|
5506
|
-
name: "lastOiUpdateTs",
|
|
5507
|
-
type: "uint48",
|
|
5508
|
-
},
|
|
5509
|
-
{
|
|
5510
|
-
internalType: "uint48",
|
|
5511
|
-
name: "collateralPriceUsd",
|
|
5512
|
-
type: "uint48",
|
|
5513
|
-
},
|
|
5514
|
-
{
|
|
5515
|
-
internalType: "enum ITradingStorage.ContractsVersion",
|
|
5516
|
-
name: "contractsVersion",
|
|
5517
|
-
type: "uint8",
|
|
5518
|
-
},
|
|
5519
|
-
{
|
|
5520
|
-
internalType: "uint32",
|
|
5521
|
-
name: "lastPosIncreaseBlock",
|
|
5522
|
-
type: "uint32",
|
|
5523
|
-
},
|
|
5524
|
-
{
|
|
5525
|
-
internalType: "uint8",
|
|
5526
|
-
name: "__placeholder",
|
|
5527
|
-
type: "uint8",
|
|
5528
|
-
},
|
|
5529
|
-
],
|
|
5530
|
-
internalType: "struct ITradingStorage.TradeInfo[]",
|
|
5531
|
-
name: "",
|
|
5532
|
-
type: "tuple[]",
|
|
5533
|
-
},
|
|
5534
|
-
],
|
|
5535
|
-
stateMutability: "view",
|
|
5536
|
-
type: "function",
|
|
5537
|
-
signature: "0x01e87cb0",
|
|
5538
|
-
},
|
|
5539
4944
|
{
|
|
5540
4945
|
inputs: [
|
|
5541
4946
|
{
|
|
@@ -5628,103 +5033,6 @@ const _abi = [
|
|
|
5628
5033
|
type: "function",
|
|
5629
5034
|
signature: "0xdffd8a1f",
|
|
5630
5035
|
},
|
|
5631
|
-
{
|
|
5632
|
-
inputs: [
|
|
5633
|
-
{
|
|
5634
|
-
internalType: "address[]",
|
|
5635
|
-
name: "_traders",
|
|
5636
|
-
type: "address[]",
|
|
5637
|
-
},
|
|
5638
|
-
{
|
|
5639
|
-
internalType: "uint256",
|
|
5640
|
-
name: "_offset",
|
|
5641
|
-
type: "uint256",
|
|
5642
|
-
},
|
|
5643
|
-
{
|
|
5644
|
-
internalType: "uint256",
|
|
5645
|
-
name: "_limit",
|
|
5646
|
-
type: "uint256",
|
|
5647
|
-
},
|
|
5648
|
-
],
|
|
5649
|
-
name: "getAllTradesForTraders",
|
|
5650
|
-
outputs: [
|
|
5651
|
-
{
|
|
5652
|
-
components: [
|
|
5653
|
-
{
|
|
5654
|
-
internalType: "address",
|
|
5655
|
-
name: "user",
|
|
5656
|
-
type: "address",
|
|
5657
|
-
},
|
|
5658
|
-
{
|
|
5659
|
-
internalType: "uint32",
|
|
5660
|
-
name: "index",
|
|
5661
|
-
type: "uint32",
|
|
5662
|
-
},
|
|
5663
|
-
{
|
|
5664
|
-
internalType: "uint16",
|
|
5665
|
-
name: "pairIndex",
|
|
5666
|
-
type: "uint16",
|
|
5667
|
-
},
|
|
5668
|
-
{
|
|
5669
|
-
internalType: "uint24",
|
|
5670
|
-
name: "leverage",
|
|
5671
|
-
type: "uint24",
|
|
5672
|
-
},
|
|
5673
|
-
{
|
|
5674
|
-
internalType: "bool",
|
|
5675
|
-
name: "long",
|
|
5676
|
-
type: "bool",
|
|
5677
|
-
},
|
|
5678
|
-
{
|
|
5679
|
-
internalType: "bool",
|
|
5680
|
-
name: "isOpen",
|
|
5681
|
-
type: "bool",
|
|
5682
|
-
},
|
|
5683
|
-
{
|
|
5684
|
-
internalType: "uint8",
|
|
5685
|
-
name: "collateralIndex",
|
|
5686
|
-
type: "uint8",
|
|
5687
|
-
},
|
|
5688
|
-
{
|
|
5689
|
-
internalType: "enum ITradingStorage.TradeType",
|
|
5690
|
-
name: "tradeType",
|
|
5691
|
-
type: "uint8",
|
|
5692
|
-
},
|
|
5693
|
-
{
|
|
5694
|
-
internalType: "uint120",
|
|
5695
|
-
name: "collateralAmount",
|
|
5696
|
-
type: "uint120",
|
|
5697
|
-
},
|
|
5698
|
-
{
|
|
5699
|
-
internalType: "uint64",
|
|
5700
|
-
name: "openPrice",
|
|
5701
|
-
type: "uint64",
|
|
5702
|
-
},
|
|
5703
|
-
{
|
|
5704
|
-
internalType: "uint64",
|
|
5705
|
-
name: "tp",
|
|
5706
|
-
type: "uint64",
|
|
5707
|
-
},
|
|
5708
|
-
{
|
|
5709
|
-
internalType: "uint64",
|
|
5710
|
-
name: "sl",
|
|
5711
|
-
type: "uint64",
|
|
5712
|
-
},
|
|
5713
|
-
{
|
|
5714
|
-
internalType: "uint192",
|
|
5715
|
-
name: "__placeholder",
|
|
5716
|
-
type: "uint192",
|
|
5717
|
-
},
|
|
5718
|
-
],
|
|
5719
|
-
internalType: "struct ITradingStorage.Trade[]",
|
|
5720
|
-
name: "",
|
|
5721
|
-
type: "tuple[]",
|
|
5722
|
-
},
|
|
5723
|
-
],
|
|
5724
|
-
stateMutability: "view",
|
|
5725
|
-
type: "function",
|
|
5726
|
-
signature: "0x33ea7f74",
|
|
5727
|
-
},
|
|
5728
5036
|
{
|
|
5729
5037
|
inputs: [
|
|
5730
5038
|
{
|
|
@@ -5777,63 +5085,6 @@ const _abi = [
|
|
|
5777
5085
|
type: "function",
|
|
5778
5086
|
signature: "0xc2b96e65",
|
|
5779
5087
|
},
|
|
5780
|
-
{
|
|
5781
|
-
inputs: [
|
|
5782
|
-
{
|
|
5783
|
-
internalType: "address[]",
|
|
5784
|
-
name: "_traders",
|
|
5785
|
-
type: "address[]",
|
|
5786
|
-
},
|
|
5787
|
-
{
|
|
5788
|
-
internalType: "uint256",
|
|
5789
|
-
name: "_offset",
|
|
5790
|
-
type: "uint256",
|
|
5791
|
-
},
|
|
5792
|
-
{
|
|
5793
|
-
internalType: "uint256",
|
|
5794
|
-
name: "_limit",
|
|
5795
|
-
type: "uint256",
|
|
5796
|
-
},
|
|
5797
|
-
],
|
|
5798
|
-
name: "getAllTradesLiquidationParamsForTraders",
|
|
5799
|
-
outputs: [
|
|
5800
|
-
{
|
|
5801
|
-
components: [
|
|
5802
|
-
{
|
|
5803
|
-
internalType: "uint40",
|
|
5804
|
-
name: "maxLiqSpreadP",
|
|
5805
|
-
type: "uint40",
|
|
5806
|
-
},
|
|
5807
|
-
{
|
|
5808
|
-
internalType: "uint40",
|
|
5809
|
-
name: "startLiqThresholdP",
|
|
5810
|
-
type: "uint40",
|
|
5811
|
-
},
|
|
5812
|
-
{
|
|
5813
|
-
internalType: "uint40",
|
|
5814
|
-
name: "endLiqThresholdP",
|
|
5815
|
-
type: "uint40",
|
|
5816
|
-
},
|
|
5817
|
-
{
|
|
5818
|
-
internalType: "uint24",
|
|
5819
|
-
name: "startLeverage",
|
|
5820
|
-
type: "uint24",
|
|
5821
|
-
},
|
|
5822
|
-
{
|
|
5823
|
-
internalType: "uint24",
|
|
5824
|
-
name: "endLeverage",
|
|
5825
|
-
type: "uint24",
|
|
5826
|
-
},
|
|
5827
|
-
],
|
|
5828
|
-
internalType: "struct IPairsStorage.GroupLiquidationParams[]",
|
|
5829
|
-
name: "",
|
|
5830
|
-
type: "tuple[]",
|
|
5831
|
-
},
|
|
5832
|
-
],
|
|
5833
|
-
stateMutability: "view",
|
|
5834
|
-
type: "function",
|
|
5835
|
-
signature: "0x556e838f",
|
|
5836
|
-
},
|
|
5837
5088
|
{
|
|
5838
5089
|
inputs: [
|
|
5839
5090
|
{
|
|
@@ -5944,66 +5195,24 @@ const _abi = [
|
|
|
5944
5195
|
},
|
|
5945
5196
|
{
|
|
5946
5197
|
inputs: [],
|
|
5947
|
-
name: "getCollateralsCount",
|
|
5948
|
-
outputs: [
|
|
5949
|
-
{
|
|
5950
|
-
internalType: "uint8",
|
|
5951
|
-
name: "",
|
|
5952
|
-
type: "uint8",
|
|
5953
|
-
},
|
|
5954
|
-
],
|
|
5955
|
-
stateMutability: "view",
|
|
5956
|
-
type: "function",
|
|
5957
|
-
signature: "0xa3e15d09",
|
|
5958
|
-
},
|
|
5959
|
-
{
|
|
5960
|
-
inputs: [
|
|
5961
|
-
{
|
|
5962
|
-
internalType: "address",
|
|
5963
|
-
name: "_trader",
|
|
5964
|
-
type: "address",
|
|
5965
|
-
},
|
|
5966
|
-
{
|
|
5967
|
-
internalType: "enum ITradingStorage.CounterType",
|
|
5968
|
-
name: "_type",
|
|
5969
|
-
type: "uint8",
|
|
5970
|
-
},
|
|
5971
|
-
],
|
|
5972
|
-
name: "getCounters",
|
|
5973
|
-
outputs: [
|
|
5974
|
-
{
|
|
5975
|
-
components: [
|
|
5976
|
-
{
|
|
5977
|
-
internalType: "uint32",
|
|
5978
|
-
name: "currentIndex",
|
|
5979
|
-
type: "uint32",
|
|
5980
|
-
},
|
|
5981
|
-
{
|
|
5982
|
-
internalType: "uint32",
|
|
5983
|
-
name: "openCount",
|
|
5984
|
-
type: "uint32",
|
|
5985
|
-
},
|
|
5986
|
-
{
|
|
5987
|
-
internalType: "uint192",
|
|
5988
|
-
name: "__placeholder",
|
|
5989
|
-
type: "uint192",
|
|
5990
|
-
},
|
|
5991
|
-
],
|
|
5992
|
-
internalType: "struct ITradingStorage.Counter",
|
|
5198
|
+
name: "getCollateralsCount",
|
|
5199
|
+
outputs: [
|
|
5200
|
+
{
|
|
5201
|
+
internalType: "uint8",
|
|
5993
5202
|
name: "",
|
|
5994
|
-
type: "
|
|
5203
|
+
type: "uint8",
|
|
5995
5204
|
},
|
|
5996
5205
|
],
|
|
5997
5206
|
stateMutability: "view",
|
|
5998
5207
|
type: "function",
|
|
5999
|
-
signature: "
|
|
5208
|
+
signature: "0xa3e15d09",
|
|
6000
5209
|
},
|
|
6001
5210
|
{
|
|
6002
5211
|
inputs: [
|
|
6003
5212
|
{
|
|
6004
|
-
internalType: "address
|
|
6005
|
-
name: "
|
|
6006
|
-
type: "address
|
|
5213
|
+
internalType: "address",
|
|
5214
|
+
name: "_trader",
|
|
5215
|
+
type: "address",
|
|
6007
5216
|
},
|
|
6008
5217
|
{
|
|
6009
5218
|
internalType: "enum ITradingStorage.CounterType",
|
|
@@ -6011,7 +5220,7 @@ const _abi = [
|
|
|
6011
5220
|
type: "uint8",
|
|
6012
5221
|
},
|
|
6013
5222
|
],
|
|
6014
|
-
name: "
|
|
5223
|
+
name: "getCounters",
|
|
6015
5224
|
outputs: [
|
|
6016
5225
|
{
|
|
6017
5226
|
components: [
|
|
@@ -6031,14 +5240,14 @@ const _abi = [
|
|
|
6031
5240
|
type: "uint192",
|
|
6032
5241
|
},
|
|
6033
5242
|
],
|
|
6034
|
-
internalType: "struct ITradingStorage.Counter
|
|
5243
|
+
internalType: "struct ITradingStorage.Counter",
|
|
6035
5244
|
name: "",
|
|
6036
|
-
type: "tuple
|
|
5245
|
+
type: "tuple",
|
|
6037
5246
|
},
|
|
6038
5247
|
],
|
|
6039
5248
|
stateMutability: "view",
|
|
6040
5249
|
type: "function",
|
|
6041
|
-
signature: "
|
|
5250
|
+
signature: "0x0212f0d6",
|
|
6042
5251
|
},
|
|
6043
5252
|
{
|
|
6044
5253
|
inputs: [],
|
|
@@ -6699,20 +5908,6 @@ const _abi = [
|
|
|
6699
5908
|
type: "function",
|
|
6700
5909
|
signature: "0x0e503724",
|
|
6701
5910
|
},
|
|
6702
|
-
{
|
|
6703
|
-
inputs: [],
|
|
6704
|
-
name: "getTradersCount",
|
|
6705
|
-
outputs: [
|
|
6706
|
-
{
|
|
6707
|
-
internalType: "uint256",
|
|
6708
|
-
name: "",
|
|
6709
|
-
type: "uint256",
|
|
6710
|
-
},
|
|
6711
|
-
],
|
|
6712
|
-
stateMutability: "view",
|
|
6713
|
-
type: "function",
|
|
6714
|
-
signature: "0x32080d60",
|
|
6715
|
-
},
|
|
6716
5911
|
{
|
|
6717
5912
|
inputs: [
|
|
6718
5913
|
{
|
|
@@ -7544,17 +6739,12 @@ const _abi = [
|
|
|
7544
6739
|
name: "_isPartialIncrease",
|
|
7545
6740
|
type: "bool",
|
|
7546
6741
|
},
|
|
7547
|
-
{
|
|
7548
|
-
internalType: "bool",
|
|
7549
|
-
name: "_isPnlPositive",
|
|
7550
|
-
type: "bool",
|
|
7551
|
-
},
|
|
7552
6742
|
],
|
|
7553
6743
|
name: "updateTradePosition",
|
|
7554
6744
|
outputs: [],
|
|
7555
6745
|
stateMutability: "nonpayable",
|
|
7556
6746
|
type: "function",
|
|
7557
|
-
signature: "
|
|
6747
|
+
signature: "0x72570e24",
|
|
7558
6748
|
},
|
|
7559
6749
|
{
|
|
7560
6750
|
inputs: [
|
|
@@ -7995,7 +7185,7 @@ const _abi = [
|
|
|
7995
7185
|
type: "uint16",
|
|
7996
7186
|
},
|
|
7997
7187
|
{
|
|
7998
|
-
indexed:
|
|
7188
|
+
indexed: false,
|
|
7999
7189
|
internalType: "uint32",
|
|
8000
7190
|
name: "index",
|
|
8001
7191
|
type: "uint32",
|
|
@@ -8051,13 +7241,13 @@ const _abi = [
|
|
|
8051
7241
|
type: "address",
|
|
8052
7242
|
},
|
|
8053
7243
|
{
|
|
8054
|
-
indexed:
|
|
7244
|
+
indexed: true,
|
|
8055
7245
|
internalType: "uint256",
|
|
8056
7246
|
name: "pairIndex",
|
|
8057
7247
|
type: "uint256",
|
|
8058
7248
|
},
|
|
8059
7249
|
{
|
|
8060
|
-
indexed:
|
|
7250
|
+
indexed: false,
|
|
8061
7251
|
internalType: "uint256",
|
|
8062
7252
|
name: "index",
|
|
8063
7253
|
type: "uint256",
|
|
@@ -8065,7 +7255,7 @@ const _abi = [
|
|
|
8065
7255
|
{
|
|
8066
7256
|
indexed: false,
|
|
8067
7257
|
internalType: "uint256",
|
|
8068
|
-
name: "
|
|
7258
|
+
name: "marketPrice",
|
|
8069
7259
|
type: "uint256",
|
|
8070
7260
|
},
|
|
8071
7261
|
{
|
|
@@ -8141,7 +7331,7 @@ const _abi = [
|
|
|
8141
7331
|
type: "uint256",
|
|
8142
7332
|
},
|
|
8143
7333
|
{
|
|
8144
|
-
indexed:
|
|
7334
|
+
indexed: false,
|
|
8145
7335
|
internalType: "uint256",
|
|
8146
7336
|
name: "index",
|
|
8147
7337
|
type: "uint256",
|
|
@@ -8257,7 +7447,7 @@ const _abi = [
|
|
|
8257
7447
|
type: "uint16",
|
|
8258
7448
|
},
|
|
8259
7449
|
{
|
|
8260
|
-
indexed:
|
|
7450
|
+
indexed: false,
|
|
8261
7451
|
internalType: "uint32",
|
|
8262
7452
|
name: "index",
|
|
8263
7453
|
type: "uint32",
|
|
@@ -8283,7 +7473,7 @@ const _abi = [
|
|
|
8283
7473
|
type: "uint16",
|
|
8284
7474
|
},
|
|
8285
7475
|
{
|
|
8286
|
-
indexed:
|
|
7476
|
+
indexed: false,
|
|
8287
7477
|
internalType: "uint32",
|
|
8288
7478
|
name: "index",
|
|
8289
7479
|
type: "uint32",
|
|
@@ -8333,7 +7523,7 @@ const _abi = [
|
|
|
8333
7523
|
type: "uint16",
|
|
8334
7524
|
},
|
|
8335
7525
|
{
|
|
8336
|
-
indexed:
|
|
7526
|
+
indexed: false,
|
|
8337
7527
|
internalType: "uint32",
|
|
8338
7528
|
name: "index",
|
|
8339
7529
|
type: "uint32",
|
|
@@ -8383,13 +7573,13 @@ const _abi = [
|
|
|
8383
7573
|
type: "address",
|
|
8384
7574
|
},
|
|
8385
7575
|
{
|
|
8386
|
-
indexed:
|
|
7576
|
+
indexed: true,
|
|
8387
7577
|
internalType: "uint256",
|
|
8388
7578
|
name: "pairIndex",
|
|
8389
7579
|
type: "uint256",
|
|
8390
7580
|
},
|
|
8391
7581
|
{
|
|
8392
|
-
indexed:
|
|
7582
|
+
indexed: false,
|
|
8393
7583
|
internalType: "uint256",
|
|
8394
7584
|
name: "index",
|
|
8395
7585
|
type: "uint256",
|
|
@@ -8403,7 +7593,7 @@ const _abi = [
|
|
|
8403
7593
|
{
|
|
8404
7594
|
indexed: false,
|
|
8405
7595
|
internalType: "uint256",
|
|
8406
|
-
name: "
|
|
7596
|
+
name: "marketPrice",
|
|
8407
7597
|
type: "uint256",
|
|
8408
7598
|
},
|
|
8409
7599
|
{
|
|
@@ -8458,7 +7648,12 @@ const _abi = [
|
|
|
8458
7648
|
},
|
|
8459
7649
|
{
|
|
8460
7650
|
internalType: "uint256",
|
|
8461
|
-
name: "
|
|
7651
|
+
name: "vaultFeeCollateral",
|
|
7652
|
+
type: "uint256",
|
|
7653
|
+
},
|
|
7654
|
+
{
|
|
7655
|
+
internalType: "uint256",
|
|
7656
|
+
name: "gnsStakingFeeCollateral",
|
|
8462
7657
|
type: "uint256",
|
|
8463
7658
|
},
|
|
8464
7659
|
{
|
|
@@ -8490,7 +7685,7 @@ const _abi = [
|
|
|
8490
7685
|
],
|
|
8491
7686
|
name: "PositionSizeDecreaseExecuted",
|
|
8492
7687
|
type: "event",
|
|
8493
|
-
signature: "
|
|
7688
|
+
signature: "0xe74b50af866d7f8e3577bc959bf73a2690841f0abce22ab0cfb1b1c84122a7d7",
|
|
8494
7689
|
},
|
|
8495
7690
|
{
|
|
8496
7691
|
anonymous: false,
|
|
@@ -8532,13 +7727,13 @@ const _abi = [
|
|
|
8532
7727
|
type: "address",
|
|
8533
7728
|
},
|
|
8534
7729
|
{
|
|
8535
|
-
indexed:
|
|
7730
|
+
indexed: true,
|
|
8536
7731
|
internalType: "uint256",
|
|
8537
7732
|
name: "pairIndex",
|
|
8538
7733
|
type: "uint256",
|
|
8539
7734
|
},
|
|
8540
7735
|
{
|
|
8541
|
-
indexed:
|
|
7736
|
+
indexed: false,
|
|
8542
7737
|
internalType: "uint256",
|
|
8543
7738
|
name: "index",
|
|
8544
7739
|
type: "uint256",
|
|
@@ -8552,7 +7747,7 @@ const _abi = [
|
|
|
8552
7747
|
{
|
|
8553
7748
|
indexed: false,
|
|
8554
7749
|
internalType: "uint256",
|
|
8555
|
-
name: "
|
|
7750
|
+
name: "marketPrice",
|
|
8556
7751
|
type: "uint256",
|
|
8557
7752
|
},
|
|
8558
7753
|
{
|
|
@@ -8680,7 +7875,7 @@ const _abi = [
|
|
|
8680
7875
|
type: "uint256",
|
|
8681
7876
|
},
|
|
8682
7877
|
{
|
|
8683
|
-
indexed:
|
|
7878
|
+
indexed: false,
|
|
8684
7879
|
internalType: "uint256",
|
|
8685
7880
|
name: "index",
|
|
8686
7881
|
type: "uint256",
|
|
@@ -9364,12 +8559,6 @@ const _abi = [
|
|
|
9364
8559
|
name: "trader",
|
|
9365
8560
|
type: "address",
|
|
9366
8561
|
},
|
|
9367
|
-
{
|
|
9368
|
-
indexed: true,
|
|
9369
|
-
internalType: "uint32",
|
|
9370
|
-
name: "index",
|
|
9371
|
-
type: "uint32",
|
|
9372
|
-
},
|
|
9373
8562
|
{
|
|
9374
8563
|
indexed: true,
|
|
9375
8564
|
internalType: "uint8",
|
|
@@ -9385,7 +8574,7 @@ const _abi = [
|
|
|
9385
8574
|
],
|
|
9386
8575
|
name: "BorrowingFeeCharged",
|
|
9387
8576
|
type: "event",
|
|
9388
|
-
signature: "
|
|
8577
|
+
signature: "0x2aac04047becf1d92defe3c1ee644bdd7b50ae634a7e5ebfca84c2be3fc63344",
|
|
9389
8578
|
},
|
|
9390
8579
|
{
|
|
9391
8580
|
anonymous: false,
|
|
@@ -9435,9 +8624,9 @@ const _abi = [
|
|
|
9435
8624
|
type: "uint256",
|
|
9436
8625
|
},
|
|
9437
8626
|
],
|
|
9438
|
-
name: "
|
|
8627
|
+
name: "GnsStakingFeeCharged",
|
|
9439
8628
|
type: "event",
|
|
9440
|
-
signature: "
|
|
8629
|
+
signature: "0x8e4c272f039ef17bb8cb5a5bc5d6f0cebf9c5037dceae9528bb05b0c4f5a7b80",
|
|
9441
8630
|
},
|
|
9442
8631
|
{
|
|
9443
8632
|
anonymous: false,
|
|
@@ -9486,24 +8675,6 @@ const _abi = [
|
|
|
9486
8675
|
name: "orderId",
|
|
9487
8676
|
type: "tuple",
|
|
9488
8677
|
},
|
|
9489
|
-
{
|
|
9490
|
-
indexed: true,
|
|
9491
|
-
internalType: "address",
|
|
9492
|
-
name: "user",
|
|
9493
|
-
type: "address",
|
|
9494
|
-
},
|
|
9495
|
-
{
|
|
9496
|
-
indexed: true,
|
|
9497
|
-
internalType: "uint32",
|
|
9498
|
-
name: "index",
|
|
9499
|
-
type: "uint32",
|
|
9500
|
-
},
|
|
9501
|
-
{
|
|
9502
|
-
indexed: true,
|
|
9503
|
-
internalType: "uint32",
|
|
9504
|
-
name: "limitIndex",
|
|
9505
|
-
type: "uint32",
|
|
9506
|
-
},
|
|
9507
8678
|
{
|
|
9508
8679
|
components: [
|
|
9509
8680
|
{
|
|
@@ -9578,7 +8749,7 @@ const _abi = [
|
|
|
9578
8749
|
type: "tuple",
|
|
9579
8750
|
},
|
|
9580
8751
|
{
|
|
9581
|
-
indexed:
|
|
8752
|
+
indexed: true,
|
|
9582
8753
|
internalType: "address",
|
|
9583
8754
|
name: "triggerCaller",
|
|
9584
8755
|
type: "address",
|
|
@@ -9592,19 +8763,7 @@ const _abi = [
|
|
|
9592
8763
|
{
|
|
9593
8764
|
indexed: false,
|
|
9594
8765
|
internalType: "uint256",
|
|
9595
|
-
name: "
|
|
9596
|
-
type: "uint256",
|
|
9597
|
-
},
|
|
9598
|
-
{
|
|
9599
|
-
indexed: false,
|
|
9600
|
-
internalType: "uint256",
|
|
9601
|
-
name: "marketPrice",
|
|
9602
|
-
type: "uint256",
|
|
9603
|
-
},
|
|
9604
|
-
{
|
|
9605
|
-
indexed: false,
|
|
9606
|
-
internalType: "uint256",
|
|
9607
|
-
name: "liqPrice",
|
|
8766
|
+
name: "price",
|
|
9608
8767
|
type: "uint256",
|
|
9609
8768
|
},
|
|
9610
8769
|
{
|
|
@@ -9640,7 +8799,7 @@ const _abi = [
|
|
|
9640
8799
|
],
|
|
9641
8800
|
name: "LimitExecuted",
|
|
9642
8801
|
type: "event",
|
|
9643
|
-
signature: "
|
|
8802
|
+
signature: "0xc10f67c0e22c53149183a414c16a62334103432a2c48b839a057cd9bd5fdeb99",
|
|
9644
8803
|
},
|
|
9645
8804
|
{
|
|
9646
8805
|
anonymous: false,
|
|
@@ -9676,7 +8835,7 @@ const _abi = [
|
|
|
9676
8835
|
type: "uint256",
|
|
9677
8836
|
},
|
|
9678
8837
|
{
|
|
9679
|
-
indexed:
|
|
8838
|
+
indexed: false,
|
|
9680
8839
|
internalType: "uint256",
|
|
9681
8840
|
name: "index",
|
|
9682
8841
|
type: "uint256",
|
|
@@ -9713,18 +8872,6 @@ const _abi = [
|
|
|
9713
8872
|
name: "orderId",
|
|
9714
8873
|
type: "tuple",
|
|
9715
8874
|
},
|
|
9716
|
-
{
|
|
9717
|
-
indexed: true,
|
|
9718
|
-
internalType: "address",
|
|
9719
|
-
name: "user",
|
|
9720
|
-
type: "address",
|
|
9721
|
-
},
|
|
9722
|
-
{
|
|
9723
|
-
indexed: true,
|
|
9724
|
-
internalType: "uint32",
|
|
9725
|
-
name: "index",
|
|
9726
|
-
type: "uint32",
|
|
9727
|
-
},
|
|
9728
8875
|
{
|
|
9729
8876
|
components: [
|
|
9730
8877
|
{
|
|
@@ -9806,21 +8953,9 @@ const _abi = [
|
|
|
9806
8953
|
},
|
|
9807
8954
|
{
|
|
9808
8955
|
indexed: false,
|
|
9809
|
-
internalType: "
|
|
9810
|
-
name: "
|
|
9811
|
-
type: "
|
|
9812
|
-
},
|
|
9813
|
-
{
|
|
9814
|
-
indexed: false,
|
|
9815
|
-
internalType: "uint256",
|
|
9816
|
-
name: "marketPrice",
|
|
9817
|
-
type: "uint256",
|
|
9818
|
-
},
|
|
9819
|
-
{
|
|
9820
|
-
indexed: false,
|
|
9821
|
-
internalType: "uint256",
|
|
9822
|
-
name: "liqPrice",
|
|
9823
|
-
type: "uint256",
|
|
8956
|
+
internalType: "uint64",
|
|
8957
|
+
name: "price",
|
|
8958
|
+
type: "uint64",
|
|
9824
8959
|
},
|
|
9825
8960
|
{
|
|
9826
8961
|
indexed: false,
|
|
@@ -9849,7 +8984,7 @@ const _abi = [
|
|
|
9849
8984
|
],
|
|
9850
8985
|
name: "MarketExecuted",
|
|
9851
8986
|
type: "event",
|
|
9852
|
-
signature: "
|
|
8987
|
+
signature: "0xbbd5cfa7b4ec0d44d4155fcaad32af9cf7e65799d6b8b08f233b930de7bcd9a8",
|
|
9853
8988
|
},
|
|
9854
8989
|
{
|
|
9855
8990
|
anonymous: false,
|
|
@@ -10371,20 +9506,6 @@ const _abi = [
|
|
|
10371
9506
|
type: "function",
|
|
10372
9507
|
signature: "0xec98ec83",
|
|
10373
9508
|
},
|
|
10374
|
-
{
|
|
10375
|
-
inputs: [
|
|
10376
|
-
{
|
|
10377
|
-
internalType: "address",
|
|
10378
|
-
name: "_treasury",
|
|
10379
|
-
type: "address",
|
|
10380
|
-
},
|
|
10381
|
-
],
|
|
10382
|
-
name: "initializeTreasuryAddress",
|
|
10383
|
-
outputs: [],
|
|
10384
|
-
stateMutability: "nonpayable",
|
|
10385
|
-
type: "function",
|
|
10386
|
-
signature: "0x63a21e54",
|
|
10387
|
-
},
|
|
10388
9509
|
{
|
|
10389
9510
|
inputs: [
|
|
10390
9511
|
{
|
|
@@ -10501,20 +9622,6 @@ const _abi = [
|
|
|
10501
9622
|
type: "function",
|
|
10502
9623
|
signature: "0x92dd2940",
|
|
10503
9624
|
},
|
|
10504
|
-
{
|
|
10505
|
-
inputs: [
|
|
10506
|
-
{
|
|
10507
|
-
internalType: "address",
|
|
10508
|
-
name: "_treasury",
|
|
10509
|
-
type: "address",
|
|
10510
|
-
},
|
|
10511
|
-
],
|
|
10512
|
-
name: "updateTreasuryAddress",
|
|
10513
|
-
outputs: [],
|
|
10514
|
-
stateMutability: "nonpayable",
|
|
10515
|
-
type: "function",
|
|
10516
|
-
signature: "0x841e4561",
|
|
10517
|
-
},
|
|
10518
9625
|
{
|
|
10519
9626
|
inputs: [
|
|
10520
9627
|
{
|
|
@@ -10650,6 +9757,16 @@ const _abi = [
|
|
|
10650
9757
|
},
|
|
10651
9758
|
{
|
|
10652
9759
|
components: [
|
|
9760
|
+
{
|
|
9761
|
+
internalType: "uint256",
|
|
9762
|
+
name: "positionSizeCollateral",
|
|
9763
|
+
type: "uint256",
|
|
9764
|
+
},
|
|
9765
|
+
{
|
|
9766
|
+
internalType: "uint256",
|
|
9767
|
+
name: "gnsPriceCollateral",
|
|
9768
|
+
type: "uint256",
|
|
9769
|
+
},
|
|
10653
9770
|
{
|
|
10654
9771
|
internalType: "int256",
|
|
10655
9772
|
name: "profitP",
|
|
@@ -10670,6 +9787,26 @@ const _abi = [
|
|
|
10670
9787
|
name: "amountSentToTrader",
|
|
10671
9788
|
type: "uint256",
|
|
10672
9789
|
},
|
|
9790
|
+
{
|
|
9791
|
+
internalType: "uint256",
|
|
9792
|
+
name: "reward1",
|
|
9793
|
+
type: "uint256",
|
|
9794
|
+
},
|
|
9795
|
+
{
|
|
9796
|
+
internalType: "uint256",
|
|
9797
|
+
name: "reward2",
|
|
9798
|
+
type: "uint256",
|
|
9799
|
+
},
|
|
9800
|
+
{
|
|
9801
|
+
internalType: "uint256",
|
|
9802
|
+
name: "reward3",
|
|
9803
|
+
type: "uint256",
|
|
9804
|
+
},
|
|
9805
|
+
{
|
|
9806
|
+
internalType: "uint128",
|
|
9807
|
+
name: "collateralPrecisionDelta",
|
|
9808
|
+
type: "uint128",
|
|
9809
|
+
},
|
|
10673
9810
|
{
|
|
10674
9811
|
internalType: "uint256",
|
|
10675
9812
|
name: "collateralPriceUsd",
|
|
@@ -10682,22 +9819,17 @@ const _abi = [
|
|
|
10682
9819
|
},
|
|
10683
9820
|
{
|
|
10684
9821
|
internalType: "uint256",
|
|
10685
|
-
name: "
|
|
9822
|
+
name: "closingFeeCollateral",
|
|
10686
9823
|
type: "uint256",
|
|
10687
9824
|
},
|
|
10688
9825
|
{
|
|
10689
9826
|
internalType: "uint256",
|
|
10690
|
-
name: "
|
|
9827
|
+
name: "triggerFeeCollateral",
|
|
10691
9828
|
type: "uint256",
|
|
10692
9829
|
},
|
|
10693
|
-
{
|
|
10694
|
-
internalType: "uint32",
|
|
10695
|
-
name: "limitIndex",
|
|
10696
|
-
type: "uint32",
|
|
10697
|
-
},
|
|
10698
9830
|
{
|
|
10699
9831
|
internalType: "uint256",
|
|
10700
|
-
name: "
|
|
9832
|
+
name: "collateralLeftInStorage",
|
|
10701
9833
|
type: "uint256",
|
|
10702
9834
|
},
|
|
10703
9835
|
],
|
|
@@ -10705,6 +9837,11 @@ const _abi = [
|
|
|
10705
9837
|
name: "v",
|
|
10706
9838
|
type: "tuple",
|
|
10707
9839
|
},
|
|
9840
|
+
{
|
|
9841
|
+
internalType: "uint256",
|
|
9842
|
+
name: "priceImpactP",
|
|
9843
|
+
type: "uint256",
|
|
9844
|
+
},
|
|
10708
9845
|
],
|
|
10709
9846
|
stateMutability: "view",
|
|
10710
9847
|
type: "function",
|
|
@@ -10830,61 +9967,19 @@ const _abi = [
|
|
|
10830
9967
|
type: "uint8",
|
|
10831
9968
|
},
|
|
10832
9969
|
{
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
name: "liqPrice",
|
|
10847
|
-
type: "uint256",
|
|
10848
|
-
},
|
|
10849
|
-
{
|
|
10850
|
-
internalType: "uint256",
|
|
10851
|
-
name: "amountSentToTrader",
|
|
10852
|
-
type: "uint256",
|
|
10853
|
-
},
|
|
10854
|
-
{
|
|
10855
|
-
internalType: "uint256",
|
|
10856
|
-
name: "collateralPriceUsd",
|
|
10857
|
-
type: "uint256",
|
|
10858
|
-
},
|
|
10859
|
-
{
|
|
10860
|
-
internalType: "bool",
|
|
10861
|
-
name: "exactExecution",
|
|
10862
|
-
type: "bool",
|
|
10863
|
-
},
|
|
10864
|
-
{
|
|
10865
|
-
internalType: "uint256",
|
|
10866
|
-
name: "collateralLeftInStorage",
|
|
10867
|
-
type: "uint256",
|
|
10868
|
-
},
|
|
10869
|
-
{
|
|
10870
|
-
internalType: "uint256",
|
|
10871
|
-
name: "oraclePrice",
|
|
10872
|
-
type: "uint256",
|
|
10873
|
-
},
|
|
10874
|
-
{
|
|
10875
|
-
internalType: "uint32",
|
|
10876
|
-
name: "limitIndex",
|
|
10877
|
-
type: "uint32",
|
|
10878
|
-
},
|
|
10879
|
-
{
|
|
10880
|
-
internalType: "uint256",
|
|
10881
|
-
name: "priceImpactP",
|
|
10882
|
-
type: "uint256",
|
|
10883
|
-
},
|
|
10884
|
-
],
|
|
10885
|
-
internalType: "struct ITradingCallbacks.Values",
|
|
10886
|
-
name: "v",
|
|
10887
|
-
type: "tuple",
|
|
9970
|
+
internalType: "uint256",
|
|
9971
|
+
name: "priceImpactP",
|
|
9972
|
+
type: "uint256",
|
|
9973
|
+
},
|
|
9974
|
+
{
|
|
9975
|
+
internalType: "uint256",
|
|
9976
|
+
name: "priceAfterImpact",
|
|
9977
|
+
type: "uint256",
|
|
9978
|
+
},
|
|
9979
|
+
{
|
|
9980
|
+
internalType: "bool",
|
|
9981
|
+
name: "exactExecution",
|
|
9982
|
+
type: "bool",
|
|
10888
9983
|
},
|
|
10889
9984
|
],
|
|
10890
9985
|
stateMutability: "view",
|