@gainsnetwork/sdk 0.2.12-rc4 → 0.2.12
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.d.ts +0 -1
- package/lib/constants.js +2 -3
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.d.ts +979 -0
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.js +2 -0
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +1058 -0
- package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.js +2 -0
- package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +412 -892
- package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +911 -0
- package/lib/contracts/types/generated/GNSPairInfosV6_1.js +2 -0
- package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +660 -0
- package/lib/contracts/types/generated/GNSPairsStorageV6.js +2 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.d.ts +806 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.js +2 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.d.ts +821 -0
- package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.js +2 -0
- package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +1838 -0
- package/lib/contracts/types/generated/GTokenV6_3_2.js +2 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.d.ts +88 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.js +1654 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +113 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +1742 -0
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +94 -0
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +852 -2130
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +98 -0
- package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +1485 -0
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +117 -0
- package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +1265 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.d.ts +82 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.js +1273 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +82 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +1326 -0
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +110 -0
- package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +2682 -0
- package/lib/contracts/utils/openLimitOrders.d.ts +8 -0
- package/lib/contracts/utils/openLimitOrders.js +88 -0
- package/lib/contracts/utils/openTrades.js +2 -11
- package/lib/contracts/utils/pairs.d.ts +0 -1
- package/lib/contracts/utils/pairs.js +1 -18
- package/lib/markets/forex.js +2 -2
- package/lib/trade/liquidation.d.ts +2 -7
- package/lib/trade/liquidation.js +3 -34
- package/lib/trade/openLimitOrder.d.ts +2 -0
- package/lib/trade/openLimitOrder.js +23 -0
- package/lib/trade/pnl.d.ts +2 -2
- package/lib/trade/pnl.js +2 -4
- package/lib/trade/spread.d.ts +2 -13
- package/lib/trade/spread.js +8 -54
- package/lib/trade/types.d.ts +1 -10
- package/package.json +1 -1
|
@@ -57,11 +57,6 @@ const _abi = [
|
|
|
57
57
|
name: "InitializationFunctionReverted",
|
|
58
58
|
type: "error",
|
|
59
59
|
},
|
|
60
|
-
{
|
|
61
|
-
inputs: [],
|
|
62
|
-
name: "InsufficientBalance",
|
|
63
|
-
type: "error",
|
|
64
|
-
},
|
|
65
60
|
{
|
|
66
61
|
inputs: [],
|
|
67
62
|
name: "InvalidAddresses",
|
|
@@ -320,6 +315,7 @@ const _abi = [
|
|
|
320
315
|
],
|
|
321
316
|
stateMutability: "view",
|
|
322
317
|
type: "function",
|
|
318
|
+
constant: true,
|
|
323
319
|
signature: "0xcdffacc6",
|
|
324
320
|
},
|
|
325
321
|
{
|
|
@@ -334,6 +330,7 @@ const _abi = [
|
|
|
334
330
|
],
|
|
335
331
|
stateMutability: "view",
|
|
336
332
|
type: "function",
|
|
333
|
+
constant: true,
|
|
337
334
|
signature: "0x52ef6b2c",
|
|
338
335
|
},
|
|
339
336
|
{
|
|
@@ -354,6 +351,7 @@ const _abi = [
|
|
|
354
351
|
],
|
|
355
352
|
stateMutability: "view",
|
|
356
353
|
type: "function",
|
|
354
|
+
constant: true,
|
|
357
355
|
signature: "0xadfca15e",
|
|
358
356
|
},
|
|
359
357
|
{
|
|
@@ -380,6 +378,7 @@ const _abi = [
|
|
|
380
378
|
],
|
|
381
379
|
stateMutability: "view",
|
|
382
380
|
type: "function",
|
|
381
|
+
constant: true,
|
|
383
382
|
signature: "0x7a0ed627",
|
|
384
383
|
},
|
|
385
384
|
{
|
|
@@ -406,6 +405,7 @@ const _abi = [
|
|
|
406
405
|
],
|
|
407
406
|
stateMutability: "view",
|
|
408
407
|
type: "function",
|
|
408
|
+
constant: true,
|
|
409
409
|
signature: "0xa39fac12",
|
|
410
410
|
},
|
|
411
411
|
{
|
|
@@ -431,6 +431,7 @@ const _abi = [
|
|
|
431
431
|
],
|
|
432
432
|
stateMutability: "view",
|
|
433
433
|
type: "function",
|
|
434
|
+
constant: true,
|
|
434
435
|
signature: "0x95a8c58d",
|
|
435
436
|
},
|
|
436
437
|
{
|
|
@@ -471,16 +472,6 @@ const _abi = [
|
|
|
471
472
|
type: "function",
|
|
472
473
|
signature: "0x101e6503",
|
|
473
474
|
},
|
|
474
|
-
{
|
|
475
|
-
inputs: [],
|
|
476
|
-
name: "EndLeverageTooHigh",
|
|
477
|
-
type: "error",
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
inputs: [],
|
|
481
|
-
name: "EndLiqThresholdTooLow",
|
|
482
|
-
type: "error",
|
|
483
|
-
},
|
|
484
475
|
{
|
|
485
476
|
inputs: [],
|
|
486
477
|
name: "FeeNotListed",
|
|
@@ -491,11 +482,6 @@ const _abi = [
|
|
|
491
482
|
name: "GroupNotListed",
|
|
492
483
|
type: "error",
|
|
493
484
|
},
|
|
494
|
-
{
|
|
495
|
-
inputs: [],
|
|
496
|
-
name: "MaxLiqSpreadPTooHigh",
|
|
497
|
-
type: "error",
|
|
498
|
-
},
|
|
499
485
|
{
|
|
500
486
|
inputs: [],
|
|
501
487
|
name: "PairAlreadyListed",
|
|
@@ -506,16 +492,6 @@ const _abi = [
|
|
|
506
492
|
name: "PairNotListed",
|
|
507
493
|
type: "error",
|
|
508
494
|
},
|
|
509
|
-
{
|
|
510
|
-
inputs: [],
|
|
511
|
-
name: "StartLeverageTooLow",
|
|
512
|
-
type: "error",
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
inputs: [],
|
|
516
|
-
name: "StartLiqThresholdTooHigh",
|
|
517
|
-
type: "error",
|
|
518
|
-
},
|
|
519
495
|
{
|
|
520
496
|
inputs: [],
|
|
521
497
|
name: "WrongFees",
|
|
@@ -526,16 +502,6 @@ const _abi = [
|
|
|
526
502
|
name: "WrongLeverages",
|
|
527
503
|
type: "error",
|
|
528
504
|
},
|
|
529
|
-
{
|
|
530
|
-
inputs: [],
|
|
531
|
-
name: "WrongLiqParamsLeverages",
|
|
532
|
-
type: "error",
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
inputs: [],
|
|
536
|
-
name: "WrongLiqParamsThresholds",
|
|
537
|
-
type: "error",
|
|
538
|
-
},
|
|
539
505
|
{
|
|
540
506
|
anonymous: false,
|
|
541
507
|
inputs: [
|
|
@@ -590,53 +556,6 @@ const _abi = [
|
|
|
590
556
|
type: "event",
|
|
591
557
|
signature: "0xaf17de8e82beccc440012117a600dc37e26925225d0f1ee192fc107eb3dcbca4",
|
|
592
558
|
},
|
|
593
|
-
{
|
|
594
|
-
anonymous: false,
|
|
595
|
-
inputs: [
|
|
596
|
-
{
|
|
597
|
-
indexed: false,
|
|
598
|
-
internalType: "uint256",
|
|
599
|
-
name: "index",
|
|
600
|
-
type: "uint256",
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
components: [
|
|
604
|
-
{
|
|
605
|
-
internalType: "uint40",
|
|
606
|
-
name: "maxLiqSpreadP",
|
|
607
|
-
type: "uint40",
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
internalType: "uint64",
|
|
611
|
-
name: "startLiqThresholdP",
|
|
612
|
-
type: "uint64",
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
internalType: "uint64",
|
|
616
|
-
name: "endLiqThresholdP",
|
|
617
|
-
type: "uint64",
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
internalType: "uint24",
|
|
621
|
-
name: "startLeverage",
|
|
622
|
-
type: "uint24",
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
internalType: "uint24",
|
|
626
|
-
name: "endLeverage",
|
|
627
|
-
type: "uint24",
|
|
628
|
-
},
|
|
629
|
-
],
|
|
630
|
-
indexed: false,
|
|
631
|
-
internalType: "struct IPairsStorage.GroupLiquidationParams",
|
|
632
|
-
name: "params",
|
|
633
|
-
type: "tuple",
|
|
634
|
-
},
|
|
635
|
-
],
|
|
636
|
-
name: "GroupLiquidationParamsUpdated",
|
|
637
|
-
type: "event",
|
|
638
|
-
signature: "0x52bf41e4c95a813ed559a6c8bd01fa75e1ef80e29720fae8a1c1691bce4519aa",
|
|
639
|
-
},
|
|
640
559
|
{
|
|
641
560
|
anonymous: false,
|
|
642
561
|
inputs: [
|
|
@@ -911,6 +830,7 @@ const _abi = [
|
|
|
911
830
|
],
|
|
912
831
|
stateMutability: "view",
|
|
913
832
|
type: "function",
|
|
833
|
+
constant: true,
|
|
914
834
|
signature: "0x4acc79ed",
|
|
915
835
|
},
|
|
916
836
|
{
|
|
@@ -925,6 +845,7 @@ const _abi = [
|
|
|
925
845
|
],
|
|
926
846
|
stateMutability: "view",
|
|
927
847
|
type: "function",
|
|
848
|
+
constant: true,
|
|
928
849
|
signature: "0x658de48a",
|
|
929
850
|
},
|
|
930
851
|
{
|
|
@@ -939,102 +860,9 @@ const _abi = [
|
|
|
939
860
|
],
|
|
940
861
|
stateMutability: "view",
|
|
941
862
|
type: "function",
|
|
863
|
+
constant: true,
|
|
942
864
|
signature: "0x678b3fb0",
|
|
943
865
|
},
|
|
944
|
-
{
|
|
945
|
-
inputs: [
|
|
946
|
-
{
|
|
947
|
-
internalType: "uint256",
|
|
948
|
-
name: "_groupIndex",
|
|
949
|
-
type: "uint256",
|
|
950
|
-
},
|
|
951
|
-
],
|
|
952
|
-
name: "getGroupLiquidationParams",
|
|
953
|
-
outputs: [
|
|
954
|
-
{
|
|
955
|
-
components: [
|
|
956
|
-
{
|
|
957
|
-
internalType: "uint40",
|
|
958
|
-
name: "maxLiqSpreadP",
|
|
959
|
-
type: "uint40",
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
internalType: "uint64",
|
|
963
|
-
name: "startLiqThresholdP",
|
|
964
|
-
type: "uint64",
|
|
965
|
-
},
|
|
966
|
-
{
|
|
967
|
-
internalType: "uint64",
|
|
968
|
-
name: "endLiqThresholdP",
|
|
969
|
-
type: "uint64",
|
|
970
|
-
},
|
|
971
|
-
{
|
|
972
|
-
internalType: "uint24",
|
|
973
|
-
name: "startLeverage",
|
|
974
|
-
type: "uint24",
|
|
975
|
-
},
|
|
976
|
-
{
|
|
977
|
-
internalType: "uint24",
|
|
978
|
-
name: "endLeverage",
|
|
979
|
-
type: "uint24",
|
|
980
|
-
},
|
|
981
|
-
],
|
|
982
|
-
internalType: "struct IPairsStorage.GroupLiquidationParams",
|
|
983
|
-
name: "",
|
|
984
|
-
type: "tuple",
|
|
985
|
-
},
|
|
986
|
-
],
|
|
987
|
-
stateMutability: "view",
|
|
988
|
-
type: "function",
|
|
989
|
-
signature: "0x3572929c",
|
|
990
|
-
},
|
|
991
|
-
{
|
|
992
|
-
inputs: [
|
|
993
|
-
{
|
|
994
|
-
internalType: "uint256",
|
|
995
|
-
name: "_pairIndex",
|
|
996
|
-
type: "uint256",
|
|
997
|
-
},
|
|
998
|
-
],
|
|
999
|
-
name: "getPairLiquidationParams",
|
|
1000
|
-
outputs: [
|
|
1001
|
-
{
|
|
1002
|
-
components: [
|
|
1003
|
-
{
|
|
1004
|
-
internalType: "uint40",
|
|
1005
|
-
name: "maxLiqSpreadP",
|
|
1006
|
-
type: "uint40",
|
|
1007
|
-
},
|
|
1008
|
-
{
|
|
1009
|
-
internalType: "uint64",
|
|
1010
|
-
name: "startLiqThresholdP",
|
|
1011
|
-
type: "uint64",
|
|
1012
|
-
},
|
|
1013
|
-
{
|
|
1014
|
-
internalType: "uint64",
|
|
1015
|
-
name: "endLiqThresholdP",
|
|
1016
|
-
type: "uint64",
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
internalType: "uint24",
|
|
1020
|
-
name: "startLeverage",
|
|
1021
|
-
type: "uint24",
|
|
1022
|
-
},
|
|
1023
|
-
{
|
|
1024
|
-
internalType: "uint24",
|
|
1025
|
-
name: "endLeverage",
|
|
1026
|
-
type: "uint24",
|
|
1027
|
-
},
|
|
1028
|
-
],
|
|
1029
|
-
internalType: "struct IPairsStorage.GroupLiquidationParams",
|
|
1030
|
-
name: "",
|
|
1031
|
-
type: "tuple",
|
|
1032
|
-
},
|
|
1033
|
-
],
|
|
1034
|
-
stateMutability: "view",
|
|
1035
|
-
type: "function",
|
|
1036
|
-
signature: "0x6633ced6",
|
|
1037
|
-
},
|
|
1038
866
|
{
|
|
1039
867
|
inputs: [
|
|
1040
868
|
{
|
|
@@ -1075,6 +903,7 @@ const _abi = [
|
|
|
1075
903
|
],
|
|
1076
904
|
stateMutability: "view",
|
|
1077
905
|
type: "function",
|
|
906
|
+
constant: true,
|
|
1078
907
|
signature: "0x96324bd4",
|
|
1079
908
|
},
|
|
1080
909
|
{
|
|
@@ -1089,49 +918,9 @@ const _abi = [
|
|
|
1089
918
|
],
|
|
1090
919
|
stateMutability: "view",
|
|
1091
920
|
type: "function",
|
|
921
|
+
constant: true,
|
|
1092
922
|
signature: "0x885e2750",
|
|
1093
923
|
},
|
|
1094
|
-
{
|
|
1095
|
-
inputs: [
|
|
1096
|
-
{
|
|
1097
|
-
components: [
|
|
1098
|
-
{
|
|
1099
|
-
internalType: "uint40",
|
|
1100
|
-
name: "maxLiqSpreadP",
|
|
1101
|
-
type: "uint40",
|
|
1102
|
-
},
|
|
1103
|
-
{
|
|
1104
|
-
internalType: "uint64",
|
|
1105
|
-
name: "startLiqThresholdP",
|
|
1106
|
-
type: "uint64",
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
internalType: "uint64",
|
|
1110
|
-
name: "endLiqThresholdP",
|
|
1111
|
-
type: "uint64",
|
|
1112
|
-
},
|
|
1113
|
-
{
|
|
1114
|
-
internalType: "uint24",
|
|
1115
|
-
name: "startLeverage",
|
|
1116
|
-
type: "uint24",
|
|
1117
|
-
},
|
|
1118
|
-
{
|
|
1119
|
-
internalType: "uint24",
|
|
1120
|
-
name: "endLeverage",
|
|
1121
|
-
type: "uint24",
|
|
1122
|
-
},
|
|
1123
|
-
],
|
|
1124
|
-
internalType: "struct IPairsStorage.GroupLiquidationParams[]",
|
|
1125
|
-
name: "_groupLiquidationParams",
|
|
1126
|
-
type: "tuple[]",
|
|
1127
|
-
},
|
|
1128
|
-
],
|
|
1129
|
-
name: "initializeGroupLiquidationParams",
|
|
1130
|
-
outputs: [],
|
|
1131
|
-
stateMutability: "nonpayable",
|
|
1132
|
-
type: "function",
|
|
1133
|
-
signature: "0xda13028a",
|
|
1134
|
-
},
|
|
1135
924
|
{
|
|
1136
925
|
inputs: [
|
|
1137
926
|
{
|
|
@@ -1150,6 +939,7 @@ const _abi = [
|
|
|
1150
939
|
],
|
|
1151
940
|
stateMutability: "view",
|
|
1152
941
|
type: "function",
|
|
942
|
+
constant: true,
|
|
1153
943
|
signature: "0x281b7ead",
|
|
1154
944
|
},
|
|
1155
945
|
{
|
|
@@ -1175,6 +965,7 @@ const _abi = [
|
|
|
1175
965
|
],
|
|
1176
966
|
stateMutability: "view",
|
|
1177
967
|
type: "function",
|
|
968
|
+
constant: true,
|
|
1178
969
|
signature: "0x1628bfeb",
|
|
1179
970
|
},
|
|
1180
971
|
{
|
|
@@ -1195,6 +986,7 @@ const _abi = [
|
|
|
1195
986
|
],
|
|
1196
987
|
stateMutability: "view",
|
|
1197
988
|
type: "function",
|
|
989
|
+
constant: true,
|
|
1198
990
|
signature: "0x836a341a",
|
|
1199
991
|
},
|
|
1200
992
|
{
|
|
@@ -1215,6 +1007,7 @@ const _abi = [
|
|
|
1215
1007
|
],
|
|
1216
1008
|
stateMutability: "view",
|
|
1217
1009
|
type: "function",
|
|
1010
|
+
constant: true,
|
|
1218
1011
|
signature: "0x24a96865",
|
|
1219
1012
|
},
|
|
1220
1013
|
{
|
|
@@ -1240,6 +1033,7 @@ const _abi = [
|
|
|
1240
1033
|
],
|
|
1241
1034
|
stateMutability: "view",
|
|
1242
1035
|
type: "function",
|
|
1036
|
+
constant: true,
|
|
1243
1037
|
signature: "0x302f81fc",
|
|
1244
1038
|
},
|
|
1245
1039
|
{
|
|
@@ -1260,28 +1054,9 @@ const _abi = [
|
|
|
1260
1054
|
],
|
|
1261
1055
|
stateMutability: "view",
|
|
1262
1056
|
type: "function",
|
|
1057
|
+
constant: true,
|
|
1263
1058
|
signature: "0x281b693c",
|
|
1264
1059
|
},
|
|
1265
|
-
{
|
|
1266
|
-
inputs: [
|
|
1267
|
-
{
|
|
1268
|
-
internalType: "uint256",
|
|
1269
|
-
name: "_pairIndex",
|
|
1270
|
-
type: "uint256",
|
|
1271
|
-
},
|
|
1272
|
-
],
|
|
1273
|
-
name: "pairMinFeeUsd",
|
|
1274
|
-
outputs: [
|
|
1275
|
-
{
|
|
1276
|
-
internalType: "uint256",
|
|
1277
|
-
name: "",
|
|
1278
|
-
type: "uint256",
|
|
1279
|
-
},
|
|
1280
|
-
],
|
|
1281
|
-
stateMutability: "view",
|
|
1282
|
-
type: "function",
|
|
1283
|
-
signature: "0x8078bfbe",
|
|
1284
|
-
},
|
|
1285
1060
|
{
|
|
1286
1061
|
inputs: [
|
|
1287
1062
|
{
|
|
@@ -1300,6 +1075,7 @@ const _abi = [
|
|
|
1300
1075
|
],
|
|
1301
1076
|
stateMutability: "view",
|
|
1302
1077
|
type: "function",
|
|
1078
|
+
constant: true,
|
|
1303
1079
|
signature: "0x59a992d0",
|
|
1304
1080
|
},
|
|
1305
1081
|
{
|
|
@@ -1320,6 +1096,7 @@ const _abi = [
|
|
|
1320
1096
|
],
|
|
1321
1097
|
stateMutability: "view",
|
|
1322
1098
|
type: "function",
|
|
1099
|
+
constant: true,
|
|
1323
1100
|
signature: "0x5e26ff4e",
|
|
1324
1101
|
},
|
|
1325
1102
|
{
|
|
@@ -1340,6 +1117,7 @@ const _abi = [
|
|
|
1340
1117
|
],
|
|
1341
1118
|
stateMutability: "view",
|
|
1342
1119
|
type: "function",
|
|
1120
|
+
constant: true,
|
|
1343
1121
|
signature: "0x8251135b",
|
|
1344
1122
|
},
|
|
1345
1123
|
{
|
|
@@ -1360,6 +1138,7 @@ const _abi = [
|
|
|
1360
1138
|
],
|
|
1361
1139
|
stateMutability: "view",
|
|
1362
1140
|
type: "function",
|
|
1141
|
+
constant: true,
|
|
1363
1142
|
signature: "0xf7acbabd",
|
|
1364
1143
|
},
|
|
1365
1144
|
{
|
|
@@ -1380,6 +1159,7 @@ const _abi = [
|
|
|
1380
1159
|
],
|
|
1381
1160
|
stateMutability: "view",
|
|
1382
1161
|
type: "function",
|
|
1162
|
+
constant: true,
|
|
1383
1163
|
signature: "0xa1d54e9b",
|
|
1384
1164
|
},
|
|
1385
1165
|
{
|
|
@@ -1400,6 +1180,7 @@ const _abi = [
|
|
|
1400
1180
|
],
|
|
1401
1181
|
stateMutability: "view",
|
|
1402
1182
|
type: "function",
|
|
1183
|
+
constant: true,
|
|
1403
1184
|
signature: "0xe74aff72",
|
|
1404
1185
|
},
|
|
1405
1186
|
{
|
|
@@ -1474,6 +1255,7 @@ const _abi = [
|
|
|
1474
1255
|
],
|
|
1475
1256
|
stateMutability: "view",
|
|
1476
1257
|
type: "function",
|
|
1258
|
+
constant: true,
|
|
1477
1259
|
signature: "0xb91ac788",
|
|
1478
1260
|
},
|
|
1479
1261
|
{
|
|
@@ -1612,6 +1394,7 @@ const _abi = [
|
|
|
1612
1394
|
],
|
|
1613
1395
|
stateMutability: "view",
|
|
1614
1396
|
type: "function",
|
|
1397
|
+
constant: true,
|
|
1615
1398
|
signature: "0x9567dccf",
|
|
1616
1399
|
},
|
|
1617
1400
|
{
|
|
@@ -1626,54 +1409,9 @@ const _abi = [
|
|
|
1626
1409
|
],
|
|
1627
1410
|
stateMutability: "view",
|
|
1628
1411
|
type: "function",
|
|
1412
|
+
constant: true,
|
|
1629
1413
|
signature: "0xb81b2b71",
|
|
1630
1414
|
},
|
|
1631
|
-
{
|
|
1632
|
-
inputs: [
|
|
1633
|
-
{
|
|
1634
|
-
internalType: "uint256",
|
|
1635
|
-
name: "_groupIndex",
|
|
1636
|
-
type: "uint256",
|
|
1637
|
-
},
|
|
1638
|
-
{
|
|
1639
|
-
components: [
|
|
1640
|
-
{
|
|
1641
|
-
internalType: "uint40",
|
|
1642
|
-
name: "maxLiqSpreadP",
|
|
1643
|
-
type: "uint40",
|
|
1644
|
-
},
|
|
1645
|
-
{
|
|
1646
|
-
internalType: "uint64",
|
|
1647
|
-
name: "startLiqThresholdP",
|
|
1648
|
-
type: "uint64",
|
|
1649
|
-
},
|
|
1650
|
-
{
|
|
1651
|
-
internalType: "uint64",
|
|
1652
|
-
name: "endLiqThresholdP",
|
|
1653
|
-
type: "uint64",
|
|
1654
|
-
},
|
|
1655
|
-
{
|
|
1656
|
-
internalType: "uint24",
|
|
1657
|
-
name: "startLeverage",
|
|
1658
|
-
type: "uint24",
|
|
1659
|
-
},
|
|
1660
|
-
{
|
|
1661
|
-
internalType: "uint24",
|
|
1662
|
-
name: "endLeverage",
|
|
1663
|
-
type: "uint24",
|
|
1664
|
-
},
|
|
1665
|
-
],
|
|
1666
|
-
internalType: "struct IPairsStorage.GroupLiquidationParams",
|
|
1667
|
-
name: "_params",
|
|
1668
|
-
type: "tuple",
|
|
1669
|
-
},
|
|
1670
|
-
],
|
|
1671
|
-
name: "setGroupLiquidationParams",
|
|
1672
|
-
outputs: [],
|
|
1673
|
-
stateMutability: "nonpayable",
|
|
1674
|
-
type: "function",
|
|
1675
|
-
signature: "0x8eb657f6",
|
|
1676
|
-
},
|
|
1677
1415
|
{
|
|
1678
1416
|
inputs: [
|
|
1679
1417
|
{
|
|
@@ -2233,6 +1971,7 @@ const _abi = [
|
|
|
2233
1971
|
],
|
|
2234
1972
|
stateMutability: "view",
|
|
2235
1973
|
type: "function",
|
|
1974
|
+
constant: true,
|
|
2236
1975
|
signature: "0x92e67406",
|
|
2237
1976
|
},
|
|
2238
1977
|
{
|
|
@@ -2247,6 +1986,7 @@ const _abi = [
|
|
|
2247
1986
|
],
|
|
2248
1987
|
stateMutability: "view",
|
|
2249
1988
|
type: "function",
|
|
1989
|
+
constant: true,
|
|
2250
1990
|
signature: "0x97436b5f",
|
|
2251
1991
|
},
|
|
2252
1992
|
{
|
|
@@ -2261,6 +2001,7 @@ const _abi = [
|
|
|
2261
2001
|
],
|
|
2262
2002
|
stateMutability: "view",
|
|
2263
2003
|
type: "function",
|
|
2004
|
+
constant: true,
|
|
2264
2005
|
signature: "0x06350917",
|
|
2265
2006
|
},
|
|
2266
2007
|
{
|
|
@@ -2275,6 +2016,7 @@ const _abi = [
|
|
|
2275
2016
|
],
|
|
2276
2017
|
stateMutability: "view",
|
|
2277
2018
|
type: "function",
|
|
2019
|
+
constant: true,
|
|
2278
2020
|
signature: "0x843b9e5d",
|
|
2279
2021
|
},
|
|
2280
2022
|
{
|
|
@@ -2289,6 +2031,7 @@ const _abi = [
|
|
|
2289
2031
|
],
|
|
2290
2032
|
stateMutability: "view",
|
|
2291
2033
|
type: "function",
|
|
2034
|
+
constant: true,
|
|
2292
2035
|
signature: "0x71159fd1",
|
|
2293
2036
|
},
|
|
2294
2037
|
{
|
|
@@ -2346,6 +2089,7 @@ const _abi = [
|
|
|
2346
2089
|
],
|
|
2347
2090
|
stateMutability: "view",
|
|
2348
2091
|
type: "function",
|
|
2092
|
+
constant: true,
|
|
2349
2093
|
signature: "0xcbe0f32e",
|
|
2350
2094
|
},
|
|
2351
2095
|
{
|
|
@@ -2371,6 +2115,7 @@ const _abi = [
|
|
|
2371
2115
|
],
|
|
2372
2116
|
stateMutability: "view",
|
|
2373
2117
|
type: "function",
|
|
2118
|
+
constant: true,
|
|
2374
2119
|
signature: "0x4e583b31",
|
|
2375
2120
|
},
|
|
2376
2121
|
{
|
|
@@ -2391,6 +2136,7 @@ const _abi = [
|
|
|
2391
2136
|
],
|
|
2392
2137
|
stateMutability: "view",
|
|
2393
2138
|
type: "function",
|
|
2139
|
+
constant: true,
|
|
2394
2140
|
signature: "0xa73a3e35",
|
|
2395
2141
|
},
|
|
2396
2142
|
{
|
|
@@ -2411,6 +2157,7 @@ const _abi = [
|
|
|
2411
2157
|
],
|
|
2412
2158
|
stateMutability: "view",
|
|
2413
2159
|
type: "function",
|
|
2160
|
+
constant: true,
|
|
2414
2161
|
signature: "0x036787e5",
|
|
2415
2162
|
},
|
|
2416
2163
|
{
|
|
@@ -2431,6 +2178,7 @@ const _abi = [
|
|
|
2431
2178
|
],
|
|
2432
2179
|
stateMutability: "view",
|
|
2433
2180
|
type: "function",
|
|
2181
|
+
constant: true,
|
|
2434
2182
|
signature: "0x46dbf572",
|
|
2435
2183
|
},
|
|
2436
2184
|
{
|
|
@@ -2451,6 +2199,7 @@ const _abi = [
|
|
|
2451
2199
|
],
|
|
2452
2200
|
stateMutability: "view",
|
|
2453
2201
|
type: "function",
|
|
2202
|
+
constant: true,
|
|
2454
2203
|
signature: "0x32a7b732",
|
|
2455
2204
|
},
|
|
2456
2205
|
{
|
|
@@ -2834,6 +2583,7 @@ const _abi = [
|
|
|
2834
2583
|
],
|
|
2835
2584
|
stateMutability: "view",
|
|
2836
2585
|
type: "function",
|
|
2586
|
+
constant: true,
|
|
2837
2587
|
signature: "0x4f09a236",
|
|
2838
2588
|
},
|
|
2839
2589
|
{
|
|
@@ -2866,6 +2616,7 @@ const _abi = [
|
|
|
2866
2616
|
],
|
|
2867
2617
|
stateMutability: "view",
|
|
2868
2618
|
type: "function",
|
|
2619
|
+
constant: true,
|
|
2869
2620
|
signature: "0xeccea3e2",
|
|
2870
2621
|
},
|
|
2871
2622
|
{
|
|
@@ -2880,6 +2631,7 @@ const _abi = [
|
|
|
2880
2631
|
],
|
|
2881
2632
|
stateMutability: "view",
|
|
2882
2633
|
type: "function",
|
|
2634
|
+
constant: true,
|
|
2883
2635
|
signature: "0xa89db8e5",
|
|
2884
2636
|
},
|
|
2885
2637
|
{
|
|
@@ -2917,6 +2669,7 @@ const _abi = [
|
|
|
2917
2669
|
],
|
|
2918
2670
|
stateMutability: "view",
|
|
2919
2671
|
type: "function",
|
|
2672
|
+
constant: true,
|
|
2920
2673
|
signature: "0x794d8520",
|
|
2921
2674
|
},
|
|
2922
2675
|
{
|
|
@@ -2949,6 +2702,7 @@ const _abi = [
|
|
|
2949
2702
|
],
|
|
2950
2703
|
stateMutability: "view",
|
|
2951
2704
|
type: "function",
|
|
2705
|
+
constant: true,
|
|
2952
2706
|
signature: "0xacbaaf33",
|
|
2953
2707
|
},
|
|
2954
2708
|
{
|
|
@@ -2969,6 +2723,7 @@ const _abi = [
|
|
|
2969
2723
|
],
|
|
2970
2724
|
stateMutability: "view",
|
|
2971
2725
|
type: "function",
|
|
2726
|
+
constant: true,
|
|
2972
2727
|
signature: "0x31ca4887",
|
|
2973
2728
|
},
|
|
2974
2729
|
{
|
|
@@ -3211,16 +2966,6 @@ const _abi = [
|
|
|
3211
2966
|
inputs: [
|
|
3212
2967
|
{
|
|
3213
2968
|
components: [
|
|
3214
|
-
{
|
|
3215
|
-
internalType: "address",
|
|
3216
|
-
name: "trader",
|
|
3217
|
-
type: "address",
|
|
3218
|
-
},
|
|
3219
|
-
{
|
|
3220
|
-
internalType: "uint32",
|
|
3221
|
-
name: "index",
|
|
3222
|
-
type: "uint32",
|
|
3223
|
-
},
|
|
3224
2969
|
{
|
|
3225
2970
|
internalType: "uint48",
|
|
3226
2971
|
name: "windowsDuration",
|
|
@@ -3252,16 +2997,10 @@ const _abi = [
|
|
|
3252
2997
|
name: "oiWindowUpdate",
|
|
3253
2998
|
type: "tuple",
|
|
3254
2999
|
},
|
|
3255
|
-
{
|
|
3256
|
-
indexed: false,
|
|
3257
|
-
internalType: "bool",
|
|
3258
|
-
name: "isPartial",
|
|
3259
|
-
type: "bool",
|
|
3260
|
-
},
|
|
3261
3000
|
],
|
|
3262
3001
|
name: "PriceImpactOpenInterestAdded",
|
|
3263
3002
|
type: "event",
|
|
3264
|
-
signature: "
|
|
3003
|
+
signature: "0xb8b5cf1c4a93075d32b38049f7ad65e6608d90f232123dd65d55a5ed06988cb5",
|
|
3265
3004
|
},
|
|
3266
3005
|
{
|
|
3267
3006
|
anonymous: false,
|
|
@@ -3269,19 +3008,9 @@ const _abi = [
|
|
|
3269
3008
|
{
|
|
3270
3009
|
components: [
|
|
3271
3010
|
{
|
|
3272
|
-
internalType: "
|
|
3273
|
-
name: "
|
|
3274
|
-
type: "
|
|
3275
|
-
},
|
|
3276
|
-
{
|
|
3277
|
-
internalType: "uint32",
|
|
3278
|
-
name: "index",
|
|
3279
|
-
type: "uint32",
|
|
3280
|
-
},
|
|
3281
|
-
{
|
|
3282
|
-
internalType: "uint48",
|
|
3283
|
-
name: "windowsDuration",
|
|
3284
|
-
type: "uint48",
|
|
3011
|
+
internalType: "uint48",
|
|
3012
|
+
name: "windowsDuration",
|
|
3013
|
+
type: "uint48",
|
|
3285
3014
|
},
|
|
3286
3015
|
{
|
|
3287
3016
|
internalType: "uint256",
|
|
@@ -3318,7 +3047,7 @@ const _abi = [
|
|
|
3318
3047
|
],
|
|
3319
3048
|
name: "PriceImpactOpenInterestRemoved",
|
|
3320
3049
|
type: "event",
|
|
3321
|
-
signature: "
|
|
3050
|
+
signature: "0xde1fe3df38229b603f1a7a96f1ac6159116b2a48dada12998a226039786f7ca6",
|
|
3322
3051
|
},
|
|
3323
3052
|
{
|
|
3324
3053
|
anonymous: false,
|
|
@@ -3349,62 +3078,28 @@ const _abi = [
|
|
|
3349
3078
|
signature: "0x5c4b755bc1cf4bae3a95cfc185b1e390e2289a97933671d8a098a4131b020664",
|
|
3350
3079
|
},
|
|
3351
3080
|
{
|
|
3352
|
-
anonymous: false,
|
|
3353
|
-
inputs: [
|
|
3354
|
-
{
|
|
3355
|
-
indexed: false,
|
|
3356
|
-
internalType: "uint24",
|
|
3357
|
-
name: "protectionCloseFactorBlocks",
|
|
3358
|
-
type: "uint24",
|
|
3359
|
-
},
|
|
3360
|
-
],
|
|
3361
|
-
name: "ProtectionCloseFactorBlocksUpdated",
|
|
3362
|
-
type: "event",
|
|
3363
|
-
signature: "0xbb1ab3cb7b05f44cea93ff3a0ea17c517fa0a0c1a6aab8d78b996128d2b0199f",
|
|
3364
|
-
},
|
|
3365
|
-
{
|
|
3366
|
-
anonymous: false,
|
|
3367
3081
|
inputs: [
|
|
3368
3082
|
{
|
|
3369
|
-
indexed: true,
|
|
3370
3083
|
internalType: "uint256",
|
|
3371
|
-
name: "
|
|
3084
|
+
name: "_openInterestUsd",
|
|
3372
3085
|
type: "uint256",
|
|
3373
3086
|
},
|
|
3374
3087
|
{
|
|
3375
|
-
indexed: false,
|
|
3376
3088
|
internalType: "uint256",
|
|
3377
|
-
name: "
|
|
3089
|
+
name: "_pairIndex",
|
|
3378
3090
|
type: "uint256",
|
|
3379
3091
|
},
|
|
3380
|
-
],
|
|
3381
|
-
name: "ProtectionCloseFactorUpdated",
|
|
3382
|
-
type: "event",
|
|
3383
|
-
signature: "0x91702eff4d91af5aaa0a65e6c7cd5893e9e354b77f408789116e6f18054bb611",
|
|
3384
|
-
},
|
|
3385
|
-
{
|
|
3386
|
-
inputs: [
|
|
3387
|
-
{
|
|
3388
|
-
internalType: "address",
|
|
3389
|
-
name: "_trader",
|
|
3390
|
-
type: "address",
|
|
3391
|
-
},
|
|
3392
|
-
{
|
|
3393
|
-
internalType: "uint32",
|
|
3394
|
-
name: "_index",
|
|
3395
|
-
type: "uint32",
|
|
3396
|
-
},
|
|
3397
3092
|
{
|
|
3398
|
-
internalType: "
|
|
3399
|
-
name: "
|
|
3400
|
-
type: "
|
|
3093
|
+
internalType: "bool",
|
|
3094
|
+
name: "_long",
|
|
3095
|
+
type: "bool",
|
|
3401
3096
|
},
|
|
3402
3097
|
],
|
|
3403
3098
|
name: "addPriceImpactOpenInterest",
|
|
3404
3099
|
outputs: [],
|
|
3405
3100
|
stateMutability: "nonpayable",
|
|
3406
3101
|
type: "function",
|
|
3407
|
-
signature: "
|
|
3102
|
+
signature: "0x96839490",
|
|
3408
3103
|
},
|
|
3409
3104
|
{
|
|
3410
3105
|
inputs: [
|
|
@@ -3446,6 +3141,7 @@ const _abi = [
|
|
|
3446
3141
|
],
|
|
3447
3142
|
stateMutability: "view",
|
|
3448
3143
|
type: "function",
|
|
3144
|
+
constant: true,
|
|
3449
3145
|
signature: "0x823ef2ac",
|
|
3450
3146
|
},
|
|
3451
3147
|
{
|
|
@@ -3488,6 +3184,7 @@ const _abi = [
|
|
|
3488
3184
|
],
|
|
3489
3185
|
stateMutability: "view",
|
|
3490
3186
|
type: "function",
|
|
3187
|
+
constant: true,
|
|
3491
3188
|
signature: "0x0d12f7cb",
|
|
3492
3189
|
},
|
|
3493
3190
|
{
|
|
@@ -3519,6 +3216,7 @@ const _abi = [
|
|
|
3519
3216
|
],
|
|
3520
3217
|
stateMutability: "view",
|
|
3521
3218
|
type: "function",
|
|
3219
|
+
constant: true,
|
|
3522
3220
|
signature: "0xb56df676",
|
|
3523
3221
|
},
|
|
3524
3222
|
{
|
|
@@ -3551,6 +3249,7 @@ const _abi = [
|
|
|
3551
3249
|
],
|
|
3552
3250
|
stateMutability: "view",
|
|
3553
3251
|
type: "function",
|
|
3252
|
+
constant: true,
|
|
3554
3253
|
signature: "0x375bb2bb",
|
|
3555
3254
|
},
|
|
3556
3255
|
{
|
|
@@ -3583,6 +3282,7 @@ const _abi = [
|
|
|
3583
3282
|
],
|
|
3584
3283
|
stateMutability: "view",
|
|
3585
3284
|
type: "function",
|
|
3285
|
+
constant: true,
|
|
3586
3286
|
signature: "0x0d569f27",
|
|
3587
3287
|
},
|
|
3588
3288
|
{
|
|
@@ -3608,72 +3308,14 @@ const _abi = [
|
|
|
3608
3308
|
],
|
|
3609
3309
|
stateMutability: "view",
|
|
3610
3310
|
type: "function",
|
|
3311
|
+
constant: true,
|
|
3611
3312
|
signature: "0xb6d92b02",
|
|
3612
3313
|
},
|
|
3613
|
-
{
|
|
3614
|
-
inputs: [],
|
|
3615
|
-
name: "getProtectionCloseFactorBlocks",
|
|
3616
|
-
outputs: [
|
|
3617
|
-
{
|
|
3618
|
-
internalType: "uint24",
|
|
3619
|
-
name: "",
|
|
3620
|
-
type: "uint24",
|
|
3621
|
-
},
|
|
3622
|
-
],
|
|
3623
|
-
stateMutability: "view",
|
|
3624
|
-
type: "function",
|
|
3625
|
-
signature: "0xa7059886",
|
|
3626
|
-
},
|
|
3627
|
-
{
|
|
3628
|
-
inputs: [
|
|
3629
|
-
{
|
|
3630
|
-
internalType: "uint256[]",
|
|
3631
|
-
name: "_indices",
|
|
3632
|
-
type: "uint256[]",
|
|
3633
|
-
},
|
|
3634
|
-
],
|
|
3635
|
-
name: "getProtectionCloseFactors",
|
|
3636
|
-
outputs: [
|
|
3637
|
-
{
|
|
3638
|
-
internalType: "uint256[]",
|
|
3639
|
-
name: "",
|
|
3640
|
-
type: "uint256[]",
|
|
3641
|
-
},
|
|
3642
|
-
],
|
|
3643
|
-
stateMutability: "view",
|
|
3644
|
-
type: "function",
|
|
3645
|
-
signature: "0xf33fc605",
|
|
3646
|
-
},
|
|
3647
|
-
{
|
|
3648
|
-
inputs: [
|
|
3649
|
-
{
|
|
3650
|
-
internalType: "address",
|
|
3651
|
-
name: "_trader",
|
|
3652
|
-
type: "address",
|
|
3653
|
-
},
|
|
3654
|
-
{
|
|
3655
|
-
internalType: "uint32",
|
|
3656
|
-
name: "_index",
|
|
3657
|
-
type: "uint32",
|
|
3658
|
-
},
|
|
3659
|
-
],
|
|
3660
|
-
name: "getTradeLastWindowOiUsd",
|
|
3661
|
-
outputs: [
|
|
3662
|
-
{
|
|
3663
|
-
internalType: "uint128",
|
|
3664
|
-
name: "",
|
|
3665
|
-
type: "uint128",
|
|
3666
|
-
},
|
|
3667
|
-
],
|
|
3668
|
-
stateMutability: "view",
|
|
3669
|
-
type: "function",
|
|
3670
|
-
signature: "0x273064f2",
|
|
3671
|
-
},
|
|
3672
3314
|
{
|
|
3673
3315
|
inputs: [
|
|
3674
3316
|
{
|
|
3675
3317
|
internalType: "uint256",
|
|
3676
|
-
name: "
|
|
3318
|
+
name: "_openPrice",
|
|
3677
3319
|
type: "uint256",
|
|
3678
3320
|
},
|
|
3679
3321
|
{
|
|
@@ -3691,21 +3333,6 @@ const _abi = [
|
|
|
3691
3333
|
name: "_tradeOpenInterestUsd",
|
|
3692
3334
|
type: "uint256",
|
|
3693
3335
|
},
|
|
3694
|
-
{
|
|
3695
|
-
internalType: "bool",
|
|
3696
|
-
name: "_isPnlPositive",
|
|
3697
|
-
type: "bool",
|
|
3698
|
-
},
|
|
3699
|
-
{
|
|
3700
|
-
internalType: "bool",
|
|
3701
|
-
name: "_open",
|
|
3702
|
-
type: "bool",
|
|
3703
|
-
},
|
|
3704
|
-
{
|
|
3705
|
-
internalType: "uint256",
|
|
3706
|
-
name: "_createdBlock",
|
|
3707
|
-
type: "uint256",
|
|
3708
|
-
},
|
|
3709
3336
|
],
|
|
3710
3337
|
name: "getTradePriceImpact",
|
|
3711
3338
|
outputs: [
|
|
@@ -3722,44 +3349,8 @@ const _abi = [
|
|
|
3722
3349
|
],
|
|
3723
3350
|
stateMutability: "view",
|
|
3724
3351
|
type: "function",
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
{
|
|
3728
|
-
inputs: [
|
|
3729
|
-
{
|
|
3730
|
-
internalType: "address",
|
|
3731
|
-
name: "_trader",
|
|
3732
|
-
type: "address",
|
|
3733
|
-
},
|
|
3734
|
-
{
|
|
3735
|
-
internalType: "uint32",
|
|
3736
|
-
name: "_index",
|
|
3737
|
-
type: "uint32",
|
|
3738
|
-
},
|
|
3739
|
-
],
|
|
3740
|
-
name: "getTradePriceImpactInfo",
|
|
3741
|
-
outputs: [
|
|
3742
|
-
{
|
|
3743
|
-
components: [
|
|
3744
|
-
{
|
|
3745
|
-
internalType: "uint128",
|
|
3746
|
-
name: "lastWindowOiUsd",
|
|
3747
|
-
type: "uint128",
|
|
3748
|
-
},
|
|
3749
|
-
{
|
|
3750
|
-
internalType: "uint128",
|
|
3751
|
-
name: "__placeholder",
|
|
3752
|
-
type: "uint128",
|
|
3753
|
-
},
|
|
3754
|
-
],
|
|
3755
|
-
internalType: "struct IPriceImpact.TradePriceImpactInfo",
|
|
3756
|
-
name: "",
|
|
3757
|
-
type: "tuple",
|
|
3758
|
-
},
|
|
3759
|
-
],
|
|
3760
|
-
stateMutability: "view",
|
|
3761
|
-
type: "function",
|
|
3762
|
-
signature: "0xc3248367",
|
|
3352
|
+
constant: true,
|
|
3353
|
+
signature: "0x7ea95f32",
|
|
3763
3354
|
},
|
|
3764
3355
|
{
|
|
3765
3356
|
inputs: [
|
|
@@ -3783,40 +3374,31 @@ const _abi = [
|
|
|
3783
3374
|
{
|
|
3784
3375
|
inputs: [
|
|
3785
3376
|
{
|
|
3786
|
-
internalType: "
|
|
3787
|
-
name: "
|
|
3788
|
-
type: "
|
|
3377
|
+
internalType: "uint256",
|
|
3378
|
+
name: "_openInterestUsd",
|
|
3379
|
+
type: "uint256",
|
|
3789
3380
|
},
|
|
3790
|
-
],
|
|
3791
|
-
name: "initializeProtectionCloseFactorBlocks",
|
|
3792
|
-
outputs: [],
|
|
3793
|
-
stateMutability: "nonpayable",
|
|
3794
|
-
type: "function",
|
|
3795
|
-
signature: "0x0420f323",
|
|
3796
|
-
},
|
|
3797
|
-
{
|
|
3798
|
-
inputs: [
|
|
3799
3381
|
{
|
|
3800
|
-
internalType: "
|
|
3801
|
-
name: "
|
|
3802
|
-
type: "
|
|
3382
|
+
internalType: "uint256",
|
|
3383
|
+
name: "_pairIndex",
|
|
3384
|
+
type: "uint256",
|
|
3803
3385
|
},
|
|
3804
3386
|
{
|
|
3805
|
-
internalType: "
|
|
3806
|
-
name: "
|
|
3807
|
-
type: "
|
|
3387
|
+
internalType: "bool",
|
|
3388
|
+
name: "_long",
|
|
3389
|
+
type: "bool",
|
|
3808
3390
|
},
|
|
3809
3391
|
{
|
|
3810
|
-
internalType: "
|
|
3811
|
-
name: "
|
|
3812
|
-
type: "
|
|
3392
|
+
internalType: "uint48",
|
|
3393
|
+
name: "_addTs",
|
|
3394
|
+
type: "uint48",
|
|
3813
3395
|
},
|
|
3814
3396
|
],
|
|
3815
3397
|
name: "removePriceImpactOpenInterest",
|
|
3816
3398
|
outputs: [],
|
|
3817
3399
|
stateMutability: "nonpayable",
|
|
3818
3400
|
type: "function",
|
|
3819
|
-
signature: "
|
|
3401
|
+
signature: "0xd01c9202",
|
|
3820
3402
|
},
|
|
3821
3403
|
{
|
|
3822
3404
|
inputs: [
|
|
@@ -3870,39 +3452,6 @@ const _abi = [
|
|
|
3870
3452
|
type: "function",
|
|
3871
3453
|
signature: "0x39b0fc82",
|
|
3872
3454
|
},
|
|
3873
|
-
{
|
|
3874
|
-
inputs: [
|
|
3875
|
-
{
|
|
3876
|
-
internalType: "uint24",
|
|
3877
|
-
name: "_protectionCloseFactorBlocks",
|
|
3878
|
-
type: "uint24",
|
|
3879
|
-
},
|
|
3880
|
-
],
|
|
3881
|
-
name: "setProtectionCloseFactorBlocks",
|
|
3882
|
-
outputs: [],
|
|
3883
|
-
stateMutability: "nonpayable",
|
|
3884
|
-
type: "function",
|
|
3885
|
-
signature: "0xb63280b2",
|
|
3886
|
-
},
|
|
3887
|
-
{
|
|
3888
|
-
inputs: [
|
|
3889
|
-
{
|
|
3890
|
-
internalType: "uint16[]",
|
|
3891
|
-
name: "_pairIndices",
|
|
3892
|
-
type: "uint16[]",
|
|
3893
|
-
},
|
|
3894
|
-
{
|
|
3895
|
-
internalType: "uint256[]",
|
|
3896
|
-
name: "_protectionCloseFactors",
|
|
3897
|
-
type: "uint256[]",
|
|
3898
|
-
},
|
|
3899
|
-
],
|
|
3900
|
-
name: "setProtectionCloseFactors",
|
|
3901
|
-
outputs: [],
|
|
3902
|
-
stateMutability: "nonpayable",
|
|
3903
|
-
type: "function",
|
|
3904
|
-
signature: "0x928ca2f0",
|
|
3905
|
-
},
|
|
3906
3455
|
{
|
|
3907
3456
|
inputs: [],
|
|
3908
3457
|
name: "CollateralAlreadyActive",
|
|
@@ -3923,6 +3472,16 @@ const _abi = [
|
|
|
3923
3472
|
name: "MissingCollaterals",
|
|
3924
3473
|
type: "error",
|
|
3925
3474
|
},
|
|
3475
|
+
{
|
|
3476
|
+
inputs: [],
|
|
3477
|
+
name: "NoSl",
|
|
3478
|
+
type: "error",
|
|
3479
|
+
},
|
|
3480
|
+
{
|
|
3481
|
+
inputs: [],
|
|
3482
|
+
name: "NoTp",
|
|
3483
|
+
type: "error",
|
|
3484
|
+
},
|
|
3926
3485
|
{
|
|
3927
3486
|
inputs: [],
|
|
3928
3487
|
name: "TradeInfoCollateralPriceUsdZero",
|
|
@@ -4312,30 +3871,6 @@ const _abi = [
|
|
|
4312
3871
|
name: "tradeId",
|
|
4313
3872
|
type: "tuple",
|
|
4314
3873
|
},
|
|
4315
|
-
{
|
|
4316
|
-
indexed: false,
|
|
4317
|
-
internalType: "uint120",
|
|
4318
|
-
name: "collateralAmount",
|
|
4319
|
-
type: "uint120",
|
|
4320
|
-
},
|
|
4321
|
-
{
|
|
4322
|
-
indexed: false,
|
|
4323
|
-
internalType: "uint24",
|
|
4324
|
-
name: "leverage",
|
|
4325
|
-
type: "uint24",
|
|
4326
|
-
},
|
|
4327
|
-
{
|
|
4328
|
-
indexed: false,
|
|
4329
|
-
internalType: "uint64",
|
|
4330
|
-
name: "openPrice",
|
|
4331
|
-
type: "uint64",
|
|
4332
|
-
},
|
|
4333
|
-
{
|
|
4334
|
-
indexed: false,
|
|
4335
|
-
internalType: "uint64",
|
|
4336
|
-
name: "newTp",
|
|
4337
|
-
type: "uint64",
|
|
4338
|
-
},
|
|
4339
3874
|
{
|
|
4340
3875
|
indexed: false,
|
|
4341
3876
|
internalType: "uint64",
|
|
@@ -4343,41 +3878,9 @@ const _abi = [
|
|
|
4343
3878
|
type: "uint64",
|
|
4344
3879
|
},
|
|
4345
3880
|
],
|
|
4346
|
-
name: "
|
|
3881
|
+
name: "TradeSlUpdated",
|
|
4347
3882
|
type: "event",
|
|
4348
|
-
signature: "
|
|
4349
|
-
},
|
|
4350
|
-
{
|
|
4351
|
-
anonymous: false,
|
|
4352
|
-
inputs: [
|
|
4353
|
-
{
|
|
4354
|
-
components: [
|
|
4355
|
-
{
|
|
4356
|
-
internalType: "address",
|
|
4357
|
-
name: "user",
|
|
4358
|
-
type: "address",
|
|
4359
|
-
},
|
|
4360
|
-
{
|
|
4361
|
-
internalType: "uint32",
|
|
4362
|
-
name: "index",
|
|
4363
|
-
type: "uint32",
|
|
4364
|
-
},
|
|
4365
|
-
],
|
|
4366
|
-
indexed: false,
|
|
4367
|
-
internalType: "struct ITradingStorage.Id",
|
|
4368
|
-
name: "tradeId",
|
|
4369
|
-
type: "tuple",
|
|
4370
|
-
},
|
|
4371
|
-
{
|
|
4372
|
-
indexed: false,
|
|
4373
|
-
internalType: "uint64",
|
|
4374
|
-
name: "newSl",
|
|
4375
|
-
type: "uint64",
|
|
4376
|
-
},
|
|
4377
|
-
],
|
|
4378
|
-
name: "TradeSlUpdated",
|
|
4379
|
-
type: "event",
|
|
4380
|
-
signature: "0x38f5d5d40d9c4a41aa03d21461f1b07aa6b4ef035fb9d21f02d53a82c712a002",
|
|
3883
|
+
signature: "0x38f5d5d40d9c4a41aa03d21461f1b07aa6b4ef035fb9d21f02d53a82c712a002",
|
|
4381
3884
|
},
|
|
4382
3885
|
{
|
|
4383
3886
|
anonymous: false,
|
|
@@ -4498,43 +4001,10 @@ const _abi = [
|
|
|
4498
4001
|
name: "tradeInfo",
|
|
4499
4002
|
type: "tuple",
|
|
4500
4003
|
},
|
|
4501
|
-
{
|
|
4502
|
-
components: [
|
|
4503
|
-
{
|
|
4504
|
-
internalType: "uint40",
|
|
4505
|
-
name: "maxLiqSpreadP",
|
|
4506
|
-
type: "uint40",
|
|
4507
|
-
},
|
|
4508
|
-
{
|
|
4509
|
-
internalType: "uint64",
|
|
4510
|
-
name: "startLiqThresholdP",
|
|
4511
|
-
type: "uint64",
|
|
4512
|
-
},
|
|
4513
|
-
{
|
|
4514
|
-
internalType: "uint64",
|
|
4515
|
-
name: "endLiqThresholdP",
|
|
4516
|
-
type: "uint64",
|
|
4517
|
-
},
|
|
4518
|
-
{
|
|
4519
|
-
internalType: "uint24",
|
|
4520
|
-
name: "startLeverage",
|
|
4521
|
-
type: "uint24",
|
|
4522
|
-
},
|
|
4523
|
-
{
|
|
4524
|
-
internalType: "uint24",
|
|
4525
|
-
name: "endLeverage",
|
|
4526
|
-
type: "uint24",
|
|
4527
|
-
},
|
|
4528
|
-
],
|
|
4529
|
-
indexed: false,
|
|
4530
|
-
internalType: "struct IPairsStorage.GroupLiquidationParams",
|
|
4531
|
-
name: "liquidationParams",
|
|
4532
|
-
type: "tuple",
|
|
4533
|
-
},
|
|
4534
4004
|
],
|
|
4535
4005
|
name: "TradeStored",
|
|
4536
4006
|
type: "event",
|
|
4537
|
-
signature: "
|
|
4007
|
+
signature: "0xc7bc74b68a1f77466e2402a7ce12e5b172bdeef942334e0df67d522309257b90",
|
|
4538
4008
|
},
|
|
4539
4009
|
{
|
|
4540
4010
|
anonymous: false,
|
|
@@ -4780,6 +4250,7 @@ const _abi = [
|
|
|
4780
4250
|
],
|
|
4781
4251
|
stateMutability: "view",
|
|
4782
4252
|
type: "function",
|
|
4253
|
+
constant: true,
|
|
4783
4254
|
signature: "0x2d11445f",
|
|
4784
4255
|
},
|
|
4785
4256
|
{
|
|
@@ -4842,6 +4313,7 @@ const _abi = [
|
|
|
4842
4313
|
],
|
|
4843
4314
|
stateMutability: "view",
|
|
4844
4315
|
type: "function",
|
|
4316
|
+
constant: true,
|
|
4845
4317
|
signature: "0xeb50287f",
|
|
4846
4318
|
},
|
|
4847
4319
|
{
|
|
@@ -4934,60 +4406,9 @@ const _abi = [
|
|
|
4934
4406
|
],
|
|
4935
4407
|
stateMutability: "view",
|
|
4936
4408
|
type: "function",
|
|
4409
|
+
constant: true,
|
|
4937
4410
|
signature: "0xdffd8a1f",
|
|
4938
4411
|
},
|
|
4939
|
-
{
|
|
4940
|
-
inputs: [
|
|
4941
|
-
{
|
|
4942
|
-
internalType: "uint256",
|
|
4943
|
-
name: "_offset",
|
|
4944
|
-
type: "uint256",
|
|
4945
|
-
},
|
|
4946
|
-
{
|
|
4947
|
-
internalType: "uint256",
|
|
4948
|
-
name: "_limit",
|
|
4949
|
-
type: "uint256",
|
|
4950
|
-
},
|
|
4951
|
-
],
|
|
4952
|
-
name: "getAllTradesLiquidationParams",
|
|
4953
|
-
outputs: [
|
|
4954
|
-
{
|
|
4955
|
-
components: [
|
|
4956
|
-
{
|
|
4957
|
-
internalType: "uint40",
|
|
4958
|
-
name: "maxLiqSpreadP",
|
|
4959
|
-
type: "uint40",
|
|
4960
|
-
},
|
|
4961
|
-
{
|
|
4962
|
-
internalType: "uint64",
|
|
4963
|
-
name: "startLiqThresholdP",
|
|
4964
|
-
type: "uint64",
|
|
4965
|
-
},
|
|
4966
|
-
{
|
|
4967
|
-
internalType: "uint64",
|
|
4968
|
-
name: "endLiqThresholdP",
|
|
4969
|
-
type: "uint64",
|
|
4970
|
-
},
|
|
4971
|
-
{
|
|
4972
|
-
internalType: "uint24",
|
|
4973
|
-
name: "startLeverage",
|
|
4974
|
-
type: "uint24",
|
|
4975
|
-
},
|
|
4976
|
-
{
|
|
4977
|
-
internalType: "uint24",
|
|
4978
|
-
name: "endLeverage",
|
|
4979
|
-
type: "uint24",
|
|
4980
|
-
},
|
|
4981
|
-
],
|
|
4982
|
-
internalType: "struct IPairsStorage.GroupLiquidationParams[]",
|
|
4983
|
-
name: "",
|
|
4984
|
-
type: "tuple[]",
|
|
4985
|
-
},
|
|
4986
|
-
],
|
|
4987
|
-
stateMutability: "view",
|
|
4988
|
-
type: "function",
|
|
4989
|
-
signature: "0xc2b96e65",
|
|
4990
|
-
},
|
|
4991
4412
|
{
|
|
4992
4413
|
inputs: [
|
|
4993
4414
|
{
|
|
@@ -5033,6 +4454,7 @@ const _abi = [
|
|
|
5033
4454
|
],
|
|
5034
4455
|
stateMutability: "view",
|
|
5035
4456
|
type: "function",
|
|
4457
|
+
constant: true,
|
|
5036
4458
|
signature: "0xbb33a55b",
|
|
5037
4459
|
},
|
|
5038
4460
|
{
|
|
@@ -5053,6 +4475,7 @@ const _abi = [
|
|
|
5053
4475
|
],
|
|
5054
4476
|
stateMutability: "view",
|
|
5055
4477
|
type: "function",
|
|
4478
|
+
constant: true,
|
|
5056
4479
|
signature: "0x5c3ed7c3",
|
|
5057
4480
|
},
|
|
5058
4481
|
{
|
|
@@ -5094,6 +4517,7 @@ const _abi = [
|
|
|
5094
4517
|
],
|
|
5095
4518
|
stateMutability: "view",
|
|
5096
4519
|
type: "function",
|
|
4520
|
+
constant: true,
|
|
5097
4521
|
signature: "0x78b92636",
|
|
5098
4522
|
},
|
|
5099
4523
|
{
|
|
@@ -5108,6 +4532,7 @@ const _abi = [
|
|
|
5108
4532
|
],
|
|
5109
4533
|
stateMutability: "view",
|
|
5110
4534
|
type: "function",
|
|
4535
|
+
constant: true,
|
|
5111
4536
|
signature: "0xa3e15d09",
|
|
5112
4537
|
},
|
|
5113
4538
|
{
|
|
@@ -5150,6 +4575,7 @@ const _abi = [
|
|
|
5150
4575
|
],
|
|
5151
4576
|
stateMutability: "view",
|
|
5152
4577
|
type: "function",
|
|
4578
|
+
constant: true,
|
|
5153
4579
|
signature: "0x0212f0d6",
|
|
5154
4580
|
},
|
|
5155
4581
|
{
|
|
@@ -5170,8 +4596,30 @@ const _abi = [
|
|
|
5170
4596
|
],
|
|
5171
4597
|
stateMutability: "view",
|
|
5172
4598
|
type: "function",
|
|
4599
|
+
constant: true,
|
|
5173
4600
|
signature: "0x6a0aff41",
|
|
5174
4601
|
},
|
|
4602
|
+
{
|
|
4603
|
+
inputs: [
|
|
4604
|
+
{
|
|
4605
|
+
internalType: "enum ITradingStorage.TradeType",
|
|
4606
|
+
name: "_tradeType",
|
|
4607
|
+
type: "uint8",
|
|
4608
|
+
},
|
|
4609
|
+
],
|
|
4610
|
+
name: "getPendingOpenOrderType",
|
|
4611
|
+
outputs: [
|
|
4612
|
+
{
|
|
4613
|
+
internalType: "enum ITradingStorage.PendingOrderType",
|
|
4614
|
+
name: "",
|
|
4615
|
+
type: "uint8",
|
|
4616
|
+
},
|
|
4617
|
+
],
|
|
4618
|
+
stateMutability: "pure",
|
|
4619
|
+
type: "function",
|
|
4620
|
+
constant: true,
|
|
4621
|
+
signature: "0xc8157967",
|
|
4622
|
+
},
|
|
5175
4623
|
{
|
|
5176
4624
|
inputs: [
|
|
5177
4625
|
{
|
|
@@ -5306,6 +4754,7 @@ const _abi = [
|
|
|
5306
4754
|
],
|
|
5307
4755
|
stateMutability: "view",
|
|
5308
4756
|
type: "function",
|
|
4757
|
+
constant: true,
|
|
5309
4758
|
signature: "0xc6e729bb",
|
|
5310
4759
|
},
|
|
5311
4760
|
{
|
|
@@ -5430,8 +4879,45 @@ const _abi = [
|
|
|
5430
4879
|
],
|
|
5431
4880
|
stateMutability: "view",
|
|
5432
4881
|
type: "function",
|
|
4882
|
+
constant: true,
|
|
5433
4883
|
signature: "0x4c73cb25",
|
|
5434
4884
|
},
|
|
4885
|
+
{
|
|
4886
|
+
inputs: [
|
|
4887
|
+
{
|
|
4888
|
+
internalType: "uint64",
|
|
4889
|
+
name: "_openPrice",
|
|
4890
|
+
type: "uint64",
|
|
4891
|
+
},
|
|
4892
|
+
{
|
|
4893
|
+
internalType: "uint64",
|
|
4894
|
+
name: "_currentPrice",
|
|
4895
|
+
type: "uint64",
|
|
4896
|
+
},
|
|
4897
|
+
{
|
|
4898
|
+
internalType: "bool",
|
|
4899
|
+
name: "_long",
|
|
4900
|
+
type: "bool",
|
|
4901
|
+
},
|
|
4902
|
+
{
|
|
4903
|
+
internalType: "uint24",
|
|
4904
|
+
name: "_leverage",
|
|
4905
|
+
type: "uint24",
|
|
4906
|
+
},
|
|
4907
|
+
],
|
|
4908
|
+
name: "getPnlPercent",
|
|
4909
|
+
outputs: [
|
|
4910
|
+
{
|
|
4911
|
+
internalType: "int256",
|
|
4912
|
+
name: "",
|
|
4913
|
+
type: "int256",
|
|
4914
|
+
},
|
|
4915
|
+
],
|
|
4916
|
+
stateMutability: "pure",
|
|
4917
|
+
type: "function",
|
|
4918
|
+
constant: true,
|
|
4919
|
+
signature: "0xb19962e5",
|
|
4920
|
+
},
|
|
5435
4921
|
{
|
|
5436
4922
|
inputs: [
|
|
5437
4923
|
{
|
|
@@ -5522,6 +5008,7 @@ const _abi = [
|
|
|
5522
5008
|
],
|
|
5523
5009
|
stateMutability: "view",
|
|
5524
5010
|
type: "function",
|
|
5011
|
+
constant: true,
|
|
5525
5012
|
signature: "0x15878e07",
|
|
5526
5013
|
},
|
|
5527
5014
|
{
|
|
@@ -5584,6 +5071,7 @@ const _abi = [
|
|
|
5584
5071
|
],
|
|
5585
5072
|
stateMutability: "view",
|
|
5586
5073
|
type: "function",
|
|
5074
|
+
constant: true,
|
|
5587
5075
|
signature: "0x75cd812d",
|
|
5588
5076
|
},
|
|
5589
5077
|
{
|
|
@@ -5641,60 +5129,9 @@ const _abi = [
|
|
|
5641
5129
|
],
|
|
5642
5130
|
stateMutability: "view",
|
|
5643
5131
|
type: "function",
|
|
5132
|
+
constant: true,
|
|
5644
5133
|
signature: "0x0d1e3c94",
|
|
5645
5134
|
},
|
|
5646
|
-
{
|
|
5647
|
-
inputs: [
|
|
5648
|
-
{
|
|
5649
|
-
internalType: "address",
|
|
5650
|
-
name: "_trader",
|
|
5651
|
-
type: "address",
|
|
5652
|
-
},
|
|
5653
|
-
{
|
|
5654
|
-
internalType: "uint32",
|
|
5655
|
-
name: "_index",
|
|
5656
|
-
type: "uint32",
|
|
5657
|
-
},
|
|
5658
|
-
],
|
|
5659
|
-
name: "getTradeLiquidationParams",
|
|
5660
|
-
outputs: [
|
|
5661
|
-
{
|
|
5662
|
-
components: [
|
|
5663
|
-
{
|
|
5664
|
-
internalType: "uint40",
|
|
5665
|
-
name: "maxLiqSpreadP",
|
|
5666
|
-
type: "uint40",
|
|
5667
|
-
},
|
|
5668
|
-
{
|
|
5669
|
-
internalType: "uint64",
|
|
5670
|
-
name: "startLiqThresholdP",
|
|
5671
|
-
type: "uint64",
|
|
5672
|
-
},
|
|
5673
|
-
{
|
|
5674
|
-
internalType: "uint64",
|
|
5675
|
-
name: "endLiqThresholdP",
|
|
5676
|
-
type: "uint64",
|
|
5677
|
-
},
|
|
5678
|
-
{
|
|
5679
|
-
internalType: "uint24",
|
|
5680
|
-
name: "startLeverage",
|
|
5681
|
-
type: "uint24",
|
|
5682
|
-
},
|
|
5683
|
-
{
|
|
5684
|
-
internalType: "uint24",
|
|
5685
|
-
name: "endLeverage",
|
|
5686
|
-
type: "uint24",
|
|
5687
|
-
},
|
|
5688
|
-
],
|
|
5689
|
-
internalType: "struct IPairsStorage.GroupLiquidationParams",
|
|
5690
|
-
name: "",
|
|
5691
|
-
type: "tuple",
|
|
5692
|
-
},
|
|
5693
|
-
],
|
|
5694
|
-
stateMutability: "view",
|
|
5695
|
-
type: "function",
|
|
5696
|
-
signature: "0x28dc892f",
|
|
5697
|
-
},
|
|
5698
5135
|
{
|
|
5699
5136
|
inputs: [
|
|
5700
5137
|
{
|
|
@@ -5730,6 +5167,7 @@ const _abi = [
|
|
|
5730
5167
|
],
|
|
5731
5168
|
stateMutability: "view",
|
|
5732
5169
|
type: "function",
|
|
5170
|
+
constant: true,
|
|
5733
5171
|
signature: "0x067e84dd",
|
|
5734
5172
|
},
|
|
5735
5173
|
{
|
|
@@ -5750,6 +5188,7 @@ const _abi = [
|
|
|
5750
5188
|
],
|
|
5751
5189
|
stateMutability: "view",
|
|
5752
5190
|
type: "function",
|
|
5191
|
+
constant: true,
|
|
5753
5192
|
signature: "0xbed8d2da",
|
|
5754
5193
|
},
|
|
5755
5194
|
{
|
|
@@ -5775,6 +5214,7 @@ const _abi = [
|
|
|
5775
5214
|
],
|
|
5776
5215
|
stateMutability: "view",
|
|
5777
5216
|
type: "function",
|
|
5217
|
+
constant: true,
|
|
5778
5218
|
signature: "0x0e503724",
|
|
5779
5219
|
},
|
|
5780
5220
|
{
|
|
@@ -5862,55 +5302,9 @@ const _abi = [
|
|
|
5862
5302
|
],
|
|
5863
5303
|
stateMutability: "view",
|
|
5864
5304
|
type: "function",
|
|
5305
|
+
constant: true,
|
|
5865
5306
|
signature: "0x4bfad7c0",
|
|
5866
5307
|
},
|
|
5867
|
-
{
|
|
5868
|
-
inputs: [
|
|
5869
|
-
{
|
|
5870
|
-
internalType: "address",
|
|
5871
|
-
name: "_trader",
|
|
5872
|
-
type: "address",
|
|
5873
|
-
},
|
|
5874
|
-
],
|
|
5875
|
-
name: "getTradesLiquidationParams",
|
|
5876
|
-
outputs: [
|
|
5877
|
-
{
|
|
5878
|
-
components: [
|
|
5879
|
-
{
|
|
5880
|
-
internalType: "uint40",
|
|
5881
|
-
name: "maxLiqSpreadP",
|
|
5882
|
-
type: "uint40",
|
|
5883
|
-
},
|
|
5884
|
-
{
|
|
5885
|
-
internalType: "uint64",
|
|
5886
|
-
name: "startLiqThresholdP",
|
|
5887
|
-
type: "uint64",
|
|
5888
|
-
},
|
|
5889
|
-
{
|
|
5890
|
-
internalType: "uint64",
|
|
5891
|
-
name: "endLiqThresholdP",
|
|
5892
|
-
type: "uint64",
|
|
5893
|
-
},
|
|
5894
|
-
{
|
|
5895
|
-
internalType: "uint24",
|
|
5896
|
-
name: "startLeverage",
|
|
5897
|
-
type: "uint24",
|
|
5898
|
-
},
|
|
5899
|
-
{
|
|
5900
|
-
internalType: "uint24",
|
|
5901
|
-
name: "endLeverage",
|
|
5902
|
-
type: "uint24",
|
|
5903
|
-
},
|
|
5904
|
-
],
|
|
5905
|
-
internalType: "struct IPairsStorage.GroupLiquidationParams[]",
|
|
5906
|
-
name: "",
|
|
5907
|
-
type: "tuple[]",
|
|
5908
|
-
},
|
|
5909
|
-
],
|
|
5910
|
-
stateMutability: "view",
|
|
5911
|
-
type: "function",
|
|
5912
|
-
signature: "0xf7746f3c",
|
|
5913
|
-
},
|
|
5914
5308
|
{
|
|
5915
5309
|
inputs: [],
|
|
5916
5310
|
name: "getTradingActivated",
|
|
@@ -5923,6 +5317,7 @@ const _abi = [
|
|
|
5923
5317
|
],
|
|
5924
5318
|
stateMutability: "view",
|
|
5925
5319
|
type: "function",
|
|
5320
|
+
constant: true,
|
|
5926
5321
|
signature: "0x4115c122",
|
|
5927
5322
|
},
|
|
5928
5323
|
{
|
|
@@ -5972,6 +5367,7 @@ const _abi = [
|
|
|
5972
5367
|
],
|
|
5973
5368
|
stateMutability: "view",
|
|
5974
5369
|
type: "function",
|
|
5370
|
+
constant: true,
|
|
5975
5371
|
signature: "0x4d140218",
|
|
5976
5372
|
},
|
|
5977
5373
|
{
|
|
@@ -5992,6 +5388,7 @@ const _abi = [
|
|
|
5992
5388
|
],
|
|
5993
5389
|
stateMutability: "view",
|
|
5994
5390
|
type: "function",
|
|
5391
|
+
constant: true,
|
|
5995
5392
|
signature: "0x1d2ffb42",
|
|
5996
5393
|
},
|
|
5997
5394
|
{
|
|
@@ -6528,47 +5925,6 @@ const _abi = [
|
|
|
6528
5925
|
type: "function",
|
|
6529
5926
|
signature: "0x5a68200d",
|
|
6530
5927
|
},
|
|
6531
|
-
{
|
|
6532
|
-
inputs: [
|
|
6533
|
-
{
|
|
6534
|
-
components: [
|
|
6535
|
-
{
|
|
6536
|
-
internalType: "address",
|
|
6537
|
-
name: "user",
|
|
6538
|
-
type: "address",
|
|
6539
|
-
},
|
|
6540
|
-
{
|
|
6541
|
-
internalType: "uint32",
|
|
6542
|
-
name: "index",
|
|
6543
|
-
type: "uint32",
|
|
6544
|
-
},
|
|
6545
|
-
],
|
|
6546
|
-
internalType: "struct ITradingStorage.Id",
|
|
6547
|
-
name: "_tradeId",
|
|
6548
|
-
type: "tuple",
|
|
6549
|
-
},
|
|
6550
|
-
{
|
|
6551
|
-
internalType: "uint120",
|
|
6552
|
-
name: "_collateralAmount",
|
|
6553
|
-
type: "uint120",
|
|
6554
|
-
},
|
|
6555
|
-
{
|
|
6556
|
-
internalType: "uint24",
|
|
6557
|
-
name: "_leverage",
|
|
6558
|
-
type: "uint24",
|
|
6559
|
-
},
|
|
6560
|
-
{
|
|
6561
|
-
internalType: "uint64",
|
|
6562
|
-
name: "_openPrice",
|
|
6563
|
-
type: "uint64",
|
|
6564
|
-
},
|
|
6565
|
-
],
|
|
6566
|
-
name: "updateTradePosition",
|
|
6567
|
-
outputs: [],
|
|
6568
|
-
stateMutability: "nonpayable",
|
|
6569
|
-
type: "function",
|
|
6570
|
-
signature: "0x7281d8f8",
|
|
6571
|
-
},
|
|
6572
5928
|
{
|
|
6573
5929
|
inputs: [
|
|
6574
5930
|
{
|
|
@@ -6755,6 +6111,7 @@ const _abi = [
|
|
|
6755
6111
|
],
|
|
6756
6112
|
stateMutability: "view",
|
|
6757
6113
|
type: "function",
|
|
6114
|
+
constant: true,
|
|
6758
6115
|
signature: "0x9fd0bdad",
|
|
6759
6116
|
},
|
|
6760
6117
|
{
|
|
@@ -6769,6 +6126,7 @@ const _abi = [
|
|
|
6769
6126
|
],
|
|
6770
6127
|
stateMutability: "view",
|
|
6771
6128
|
type: "function",
|
|
6129
|
+
constant: true,
|
|
6772
6130
|
signature: "0x1187f9bd",
|
|
6773
6131
|
},
|
|
6774
6132
|
{
|
|
@@ -6789,6 +6147,7 @@ const _abi = [
|
|
|
6789
6147
|
],
|
|
6790
6148
|
stateMutability: "view",
|
|
6791
6149
|
type: "function",
|
|
6150
|
+
constant: true,
|
|
6792
6151
|
signature: "0x8765f772",
|
|
6793
6152
|
},
|
|
6794
6153
|
{
|
|
@@ -6821,7 +6180,12 @@ const _abi = [
|
|
|
6821
6180
|
},
|
|
6822
6181
|
{
|
|
6823
6182
|
inputs: [],
|
|
6824
|
-
name: "
|
|
6183
|
+
name: "AboveGroupMaxOi",
|
|
6184
|
+
type: "error",
|
|
6185
|
+
},
|
|
6186
|
+
{
|
|
6187
|
+
inputs: [],
|
|
6188
|
+
name: "AbovePairMaxOi",
|
|
6825
6189
|
type: "error",
|
|
6826
6190
|
},
|
|
6827
6191
|
{
|
|
@@ -6831,18 +6195,12 @@ const _abi = [
|
|
|
6831
6195
|
},
|
|
6832
6196
|
{
|
|
6833
6197
|
inputs: [],
|
|
6834
|
-
name: "
|
|
6198
|
+
name: "BelowMinPositionSizeUsd",
|
|
6835
6199
|
type: "error",
|
|
6836
6200
|
},
|
|
6837
6201
|
{
|
|
6838
|
-
inputs: [
|
|
6839
|
-
|
|
6840
|
-
internalType: "enum ITradingStorage.PendingOrderType",
|
|
6841
|
-
name: "",
|
|
6842
|
-
type: "uint8",
|
|
6843
|
-
},
|
|
6844
|
-
],
|
|
6845
|
-
name: "ConflictingPendingOrder",
|
|
6202
|
+
inputs: [],
|
|
6203
|
+
name: "CollateralNotActive",
|
|
6846
6204
|
type: "error",
|
|
6847
6205
|
},
|
|
6848
6206
|
{
|
|
@@ -6855,41 +6213,11 @@ const _abi = [
|
|
|
6855
6213
|
name: "DelegatedActionNotAllowed",
|
|
6856
6214
|
type: "error",
|
|
6857
6215
|
},
|
|
6858
|
-
{
|
|
6859
|
-
inputs: [],
|
|
6860
|
-
name: "InsufficientCollateral",
|
|
6861
|
-
type: "error",
|
|
6862
|
-
},
|
|
6863
|
-
{
|
|
6864
|
-
inputs: [],
|
|
6865
|
-
name: "InvalidDecreasePositionSizeInput",
|
|
6866
|
-
type: "error",
|
|
6867
|
-
},
|
|
6868
|
-
{
|
|
6869
|
-
inputs: [],
|
|
6870
|
-
name: "InvalidIncreasePositionSizeInput",
|
|
6871
|
-
type: "error",
|
|
6872
|
-
},
|
|
6873
|
-
{
|
|
6874
|
-
inputs: [],
|
|
6875
|
-
name: "NewPositionSizeSmaller",
|
|
6876
|
-
type: "error",
|
|
6877
|
-
},
|
|
6878
6216
|
{
|
|
6879
6217
|
inputs: [],
|
|
6880
6218
|
name: "NoOrder",
|
|
6881
6219
|
type: "error",
|
|
6882
6220
|
},
|
|
6883
|
-
{
|
|
6884
|
-
inputs: [],
|
|
6885
|
-
name: "NoSl",
|
|
6886
|
-
type: "error",
|
|
6887
|
-
},
|
|
6888
|
-
{
|
|
6889
|
-
inputs: [],
|
|
6890
|
-
name: "NoTp",
|
|
6891
|
-
type: "error",
|
|
6892
|
-
},
|
|
6893
6221
|
{
|
|
6894
6222
|
inputs: [],
|
|
6895
6223
|
name: "NoTrade",
|
|
@@ -7023,164 +6351,6 @@ const _abi = [
|
|
|
7023
6351
|
type: "event",
|
|
7024
6352
|
signature: "0x051ed9aeed13c97b879c0dd2b13c76171e2760abe3d62bca140dc70b39bd86f1",
|
|
7025
6353
|
},
|
|
7026
|
-
{
|
|
7027
|
-
anonymous: false,
|
|
7028
|
-
inputs: [
|
|
7029
|
-
{
|
|
7030
|
-
components: [
|
|
7031
|
-
{
|
|
7032
|
-
internalType: "address",
|
|
7033
|
-
name: "user",
|
|
7034
|
-
type: "address",
|
|
7035
|
-
},
|
|
7036
|
-
{
|
|
7037
|
-
internalType: "uint32",
|
|
7038
|
-
name: "index",
|
|
7039
|
-
type: "uint32",
|
|
7040
|
-
},
|
|
7041
|
-
],
|
|
7042
|
-
indexed: false,
|
|
7043
|
-
internalType: "struct ITradingStorage.Id",
|
|
7044
|
-
name: "orderId",
|
|
7045
|
-
type: "tuple",
|
|
7046
|
-
},
|
|
7047
|
-
{
|
|
7048
|
-
indexed: false,
|
|
7049
|
-
internalType: "bool",
|
|
7050
|
-
name: "isIncrease",
|
|
7051
|
-
type: "bool",
|
|
7052
|
-
},
|
|
7053
|
-
{
|
|
7054
|
-
indexed: false,
|
|
7055
|
-
internalType: "enum ITradingCallbacks.CancelReason",
|
|
7056
|
-
name: "cancelReason",
|
|
7057
|
-
type: "uint8",
|
|
7058
|
-
},
|
|
7059
|
-
{
|
|
7060
|
-
indexed: true,
|
|
7061
|
-
internalType: "uint8",
|
|
7062
|
-
name: "collateralIndex",
|
|
7063
|
-
type: "uint8",
|
|
7064
|
-
},
|
|
7065
|
-
{
|
|
7066
|
-
indexed: true,
|
|
7067
|
-
internalType: "address",
|
|
7068
|
-
name: "trader",
|
|
7069
|
-
type: "address",
|
|
7070
|
-
},
|
|
7071
|
-
{
|
|
7072
|
-
indexed: true,
|
|
7073
|
-
internalType: "uint256",
|
|
7074
|
-
name: "pairIndex",
|
|
7075
|
-
type: "uint256",
|
|
7076
|
-
},
|
|
7077
|
-
{
|
|
7078
|
-
indexed: false,
|
|
7079
|
-
internalType: "uint256",
|
|
7080
|
-
name: "index",
|
|
7081
|
-
type: "uint256",
|
|
7082
|
-
},
|
|
7083
|
-
{
|
|
7084
|
-
indexed: false,
|
|
7085
|
-
internalType: "uint256",
|
|
7086
|
-
name: "marketPrice",
|
|
7087
|
-
type: "uint256",
|
|
7088
|
-
},
|
|
7089
|
-
{
|
|
7090
|
-
indexed: false,
|
|
7091
|
-
internalType: "uint256",
|
|
7092
|
-
name: "collateralDelta",
|
|
7093
|
-
type: "uint256",
|
|
7094
|
-
},
|
|
7095
|
-
{
|
|
7096
|
-
components: [
|
|
7097
|
-
{
|
|
7098
|
-
internalType: "uint256",
|
|
7099
|
-
name: "newLeverage",
|
|
7100
|
-
type: "uint256",
|
|
7101
|
-
},
|
|
7102
|
-
{
|
|
7103
|
-
internalType: "uint256",
|
|
7104
|
-
name: "newCollateralAmount",
|
|
7105
|
-
type: "uint256",
|
|
7106
|
-
},
|
|
7107
|
-
{
|
|
7108
|
-
internalType: "uint256",
|
|
7109
|
-
name: "liqPrice",
|
|
7110
|
-
type: "uint256",
|
|
7111
|
-
},
|
|
7112
|
-
{
|
|
7113
|
-
internalType: "uint256",
|
|
7114
|
-
name: "govFeeCollateral",
|
|
7115
|
-
type: "uint256",
|
|
7116
|
-
},
|
|
7117
|
-
],
|
|
7118
|
-
indexed: false,
|
|
7119
|
-
internalType: "struct IUpdateLeverage.UpdateLeverageValues",
|
|
7120
|
-
name: "values",
|
|
7121
|
-
type: "tuple",
|
|
7122
|
-
},
|
|
7123
|
-
],
|
|
7124
|
-
name: "LeverageUpdateExecuted",
|
|
7125
|
-
type: "event",
|
|
7126
|
-
signature: "0xd377bf540561d2182d611090b46189834f8bb72f02121dc896866c06e02e6655",
|
|
7127
|
-
},
|
|
7128
|
-
{
|
|
7129
|
-
anonymous: false,
|
|
7130
|
-
inputs: [
|
|
7131
|
-
{
|
|
7132
|
-
components: [
|
|
7133
|
-
{
|
|
7134
|
-
internalType: "address",
|
|
7135
|
-
name: "user",
|
|
7136
|
-
type: "address",
|
|
7137
|
-
},
|
|
7138
|
-
{
|
|
7139
|
-
internalType: "uint32",
|
|
7140
|
-
name: "index",
|
|
7141
|
-
type: "uint32",
|
|
7142
|
-
},
|
|
7143
|
-
],
|
|
7144
|
-
indexed: false,
|
|
7145
|
-
internalType: "struct ITradingStorage.Id",
|
|
7146
|
-
name: "orderId",
|
|
7147
|
-
type: "tuple",
|
|
7148
|
-
},
|
|
7149
|
-
{
|
|
7150
|
-
indexed: true,
|
|
7151
|
-
internalType: "address",
|
|
7152
|
-
name: "trader",
|
|
7153
|
-
type: "address",
|
|
7154
|
-
},
|
|
7155
|
-
{
|
|
7156
|
-
indexed: true,
|
|
7157
|
-
internalType: "uint256",
|
|
7158
|
-
name: "pairIndex",
|
|
7159
|
-
type: "uint256",
|
|
7160
|
-
},
|
|
7161
|
-
{
|
|
7162
|
-
indexed: false,
|
|
7163
|
-
internalType: "uint256",
|
|
7164
|
-
name: "index",
|
|
7165
|
-
type: "uint256",
|
|
7166
|
-
},
|
|
7167
|
-
{
|
|
7168
|
-
indexed: false,
|
|
7169
|
-
internalType: "bool",
|
|
7170
|
-
name: "isIncrease",
|
|
7171
|
-
type: "bool",
|
|
7172
|
-
},
|
|
7173
|
-
{
|
|
7174
|
-
indexed: false,
|
|
7175
|
-
internalType: "uint256",
|
|
7176
|
-
name: "newLeverage",
|
|
7177
|
-
type: "uint256",
|
|
7178
|
-
},
|
|
7179
|
-
],
|
|
7180
|
-
name: "LeverageUpdateInitiated",
|
|
7181
|
-
type: "event",
|
|
7182
|
-
signature: "0xf4181f0fa2e1d3cda20bb810e0427d87916eb5dac8c73a7f779ae13e55ec578f",
|
|
7183
|
-
},
|
|
7184
6354
|
{
|
|
7185
6355
|
anonymous: false,
|
|
7186
6356
|
inputs: [
|
|
@@ -7382,18 +6552,6 @@ const _abi = [
|
|
|
7382
6552
|
name: "orderId",
|
|
7383
6553
|
type: "tuple",
|
|
7384
6554
|
},
|
|
7385
|
-
{
|
|
7386
|
-
indexed: false,
|
|
7387
|
-
internalType: "enum ITradingCallbacks.CancelReason",
|
|
7388
|
-
name: "cancelReason",
|
|
7389
|
-
type: "uint8",
|
|
7390
|
-
},
|
|
7391
|
-
{
|
|
7392
|
-
indexed: true,
|
|
7393
|
-
internalType: "uint8",
|
|
7394
|
-
name: "collateralIndex",
|
|
7395
|
-
type: "uint8",
|
|
7396
|
-
},
|
|
7397
6555
|
{
|
|
7398
6556
|
indexed: true,
|
|
7399
6557
|
internalType: "address",
|
|
@@ -7402,344 +6560,57 @@ const _abi = [
|
|
|
7402
6560
|
},
|
|
7403
6561
|
{
|
|
7404
6562
|
indexed: true,
|
|
7405
|
-
internalType: "
|
|
6563
|
+
internalType: "uint16",
|
|
7406
6564
|
name: "pairIndex",
|
|
7407
|
-
type: "
|
|
7408
|
-
},
|
|
7409
|
-
{
|
|
7410
|
-
indexed: false,
|
|
7411
|
-
internalType: "uint256",
|
|
7412
|
-
name: "index",
|
|
7413
|
-
type: "uint256",
|
|
6565
|
+
type: "uint16",
|
|
7414
6566
|
},
|
|
7415
6567
|
{
|
|
7416
6568
|
indexed: false,
|
|
7417
6569
|
internalType: "bool",
|
|
7418
|
-
name: "
|
|
6570
|
+
name: "byPassesLinkCost",
|
|
7419
6571
|
type: "bool",
|
|
7420
6572
|
},
|
|
6573
|
+
],
|
|
6574
|
+
name: "TriggerOrderInitiated",
|
|
6575
|
+
type: "event",
|
|
6576
|
+
signature: "0x1472b674eddef9a7145c9353c62f5c03cfcf54556c14c3a0ebbf394da6e0c9ea",
|
|
6577
|
+
},
|
|
6578
|
+
{
|
|
6579
|
+
inputs: [
|
|
7421
6580
|
{
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
type: "uint256",
|
|
7426
|
-
},
|
|
7427
|
-
{
|
|
7428
|
-
indexed: false,
|
|
7429
|
-
internalType: "uint256",
|
|
7430
|
-
name: "collateralPriceUsd",
|
|
7431
|
-
type: "uint256",
|
|
7432
|
-
},
|
|
7433
|
-
{
|
|
7434
|
-
indexed: false,
|
|
7435
|
-
internalType: "uint256",
|
|
7436
|
-
name: "collateralDelta",
|
|
7437
|
-
type: "uint256",
|
|
6581
|
+
internalType: "uint32",
|
|
6582
|
+
name: "_index",
|
|
6583
|
+
type: "uint32",
|
|
7438
6584
|
},
|
|
6585
|
+
],
|
|
6586
|
+
name: "cancelOpenOrder",
|
|
6587
|
+
outputs: [],
|
|
6588
|
+
stateMutability: "nonpayable",
|
|
6589
|
+
type: "function",
|
|
6590
|
+
signature: "0x85886333",
|
|
6591
|
+
},
|
|
6592
|
+
{
|
|
6593
|
+
inputs: [
|
|
7439
6594
|
{
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
type: "uint256",
|
|
6595
|
+
internalType: "uint32",
|
|
6596
|
+
name: "_index",
|
|
6597
|
+
type: "uint32",
|
|
7444
6598
|
},
|
|
6599
|
+
],
|
|
6600
|
+
name: "closeTradeMarket",
|
|
6601
|
+
outputs: [],
|
|
6602
|
+
stateMutability: "nonpayable",
|
|
6603
|
+
type: "function",
|
|
6604
|
+
signature: "0xbdb340cd",
|
|
6605
|
+
},
|
|
6606
|
+
{
|
|
6607
|
+
inputs: [
|
|
7445
6608
|
{
|
|
7446
6609
|
components: [
|
|
7447
6610
|
{
|
|
7448
|
-
internalType: "
|
|
7449
|
-
name: "
|
|
7450
|
-
type: "
|
|
7451
|
-
},
|
|
7452
|
-
{
|
|
7453
|
-
internalType: "uint256",
|
|
7454
|
-
name: "existingPositionSizeCollateral",
|
|
7455
|
-
type: "uint256",
|
|
7456
|
-
},
|
|
7457
|
-
{
|
|
7458
|
-
internalType: "uint256",
|
|
7459
|
-
name: "existingLiqPrice",
|
|
7460
|
-
type: "uint256",
|
|
7461
|
-
},
|
|
7462
|
-
{
|
|
7463
|
-
internalType: "uint256",
|
|
7464
|
-
name: "priceAfterImpact",
|
|
7465
|
-
type: "uint256",
|
|
7466
|
-
},
|
|
7467
|
-
{
|
|
7468
|
-
internalType: "int256",
|
|
7469
|
-
name: "existingPnlCollateral",
|
|
7470
|
-
type: "int256",
|
|
7471
|
-
},
|
|
7472
|
-
{
|
|
7473
|
-
internalType: "uint256",
|
|
7474
|
-
name: "borrowingFeeCollateral",
|
|
7475
|
-
type: "uint256",
|
|
7476
|
-
},
|
|
7477
|
-
{
|
|
7478
|
-
internalType: "uint256",
|
|
7479
|
-
name: "vaultFeeCollateral",
|
|
7480
|
-
type: "uint256",
|
|
7481
|
-
},
|
|
7482
|
-
{
|
|
7483
|
-
internalType: "uint256",
|
|
7484
|
-
name: "gnsStakingFeeCollateral",
|
|
7485
|
-
type: "uint256",
|
|
7486
|
-
},
|
|
7487
|
-
{
|
|
7488
|
-
internalType: "int256",
|
|
7489
|
-
name: "availableCollateralInDiamond",
|
|
7490
|
-
type: "int256",
|
|
7491
|
-
},
|
|
7492
|
-
{
|
|
7493
|
-
internalType: "int256",
|
|
7494
|
-
name: "collateralSentToTrader",
|
|
7495
|
-
type: "int256",
|
|
7496
|
-
},
|
|
7497
|
-
{
|
|
7498
|
-
internalType: "uint120",
|
|
7499
|
-
name: "newCollateralAmount",
|
|
7500
|
-
type: "uint120",
|
|
7501
|
-
},
|
|
7502
|
-
{
|
|
7503
|
-
internalType: "uint24",
|
|
7504
|
-
name: "newLeverage",
|
|
7505
|
-
type: "uint24",
|
|
7506
|
-
},
|
|
7507
|
-
],
|
|
7508
|
-
indexed: false,
|
|
7509
|
-
internalType: "struct IUpdatePositionSize.DecreasePositionSizeValues",
|
|
7510
|
-
name: "values",
|
|
7511
|
-
type: "tuple",
|
|
7512
|
-
},
|
|
7513
|
-
],
|
|
7514
|
-
name: "PositionSizeDecreaseExecuted",
|
|
7515
|
-
type: "event",
|
|
7516
|
-
signature: "0xe74b50af866d7f8e3577bc959bf73a2690841f0abce22ab0cfb1b1c84122a7d7",
|
|
7517
|
-
},
|
|
7518
|
-
{
|
|
7519
|
-
anonymous: false,
|
|
7520
|
-
inputs: [
|
|
7521
|
-
{
|
|
7522
|
-
components: [
|
|
7523
|
-
{
|
|
7524
|
-
internalType: "address",
|
|
7525
|
-
name: "user",
|
|
7526
|
-
type: "address",
|
|
7527
|
-
},
|
|
7528
|
-
{
|
|
7529
|
-
internalType: "uint32",
|
|
7530
|
-
name: "index",
|
|
7531
|
-
type: "uint32",
|
|
7532
|
-
},
|
|
7533
|
-
],
|
|
7534
|
-
indexed: false,
|
|
7535
|
-
internalType: "struct ITradingStorage.Id",
|
|
7536
|
-
name: "orderId",
|
|
7537
|
-
type: "tuple",
|
|
7538
|
-
},
|
|
7539
|
-
{
|
|
7540
|
-
indexed: false,
|
|
7541
|
-
internalType: "enum ITradingCallbacks.CancelReason",
|
|
7542
|
-
name: "cancelReason",
|
|
7543
|
-
type: "uint8",
|
|
7544
|
-
},
|
|
7545
|
-
{
|
|
7546
|
-
indexed: true,
|
|
7547
|
-
internalType: "uint8",
|
|
7548
|
-
name: "collateralIndex",
|
|
7549
|
-
type: "uint8",
|
|
7550
|
-
},
|
|
7551
|
-
{
|
|
7552
|
-
indexed: true,
|
|
7553
|
-
internalType: "address",
|
|
7554
|
-
name: "trader",
|
|
7555
|
-
type: "address",
|
|
7556
|
-
},
|
|
7557
|
-
{
|
|
7558
|
-
indexed: true,
|
|
7559
|
-
internalType: "uint256",
|
|
7560
|
-
name: "pairIndex",
|
|
7561
|
-
type: "uint256",
|
|
7562
|
-
},
|
|
7563
|
-
{
|
|
7564
|
-
indexed: false,
|
|
7565
|
-
internalType: "uint256",
|
|
7566
|
-
name: "index",
|
|
7567
|
-
type: "uint256",
|
|
7568
|
-
},
|
|
7569
|
-
{
|
|
7570
|
-
indexed: false,
|
|
7571
|
-
internalType: "bool",
|
|
7572
|
-
name: "long",
|
|
7573
|
-
type: "bool",
|
|
7574
|
-
},
|
|
7575
|
-
{
|
|
7576
|
-
indexed: false,
|
|
7577
|
-
internalType: "uint256",
|
|
7578
|
-
name: "marketPrice",
|
|
7579
|
-
type: "uint256",
|
|
7580
|
-
},
|
|
7581
|
-
{
|
|
7582
|
-
indexed: false,
|
|
7583
|
-
internalType: "uint256",
|
|
7584
|
-
name: "collateralPriceUsd",
|
|
7585
|
-
type: "uint256",
|
|
7586
|
-
},
|
|
7587
|
-
{
|
|
7588
|
-
indexed: false,
|
|
7589
|
-
internalType: "uint256",
|
|
7590
|
-
name: "collateralDelta",
|
|
7591
|
-
type: "uint256",
|
|
7592
|
-
},
|
|
7593
|
-
{
|
|
7594
|
-
indexed: false,
|
|
7595
|
-
internalType: "uint256",
|
|
7596
|
-
name: "leverageDelta",
|
|
7597
|
-
type: "uint256",
|
|
7598
|
-
},
|
|
7599
|
-
{
|
|
7600
|
-
components: [
|
|
7601
|
-
{
|
|
7602
|
-
internalType: "uint256",
|
|
7603
|
-
name: "positionSizeCollateralDelta",
|
|
7604
|
-
type: "uint256",
|
|
7605
|
-
},
|
|
7606
|
-
{
|
|
7607
|
-
internalType: "uint256",
|
|
7608
|
-
name: "existingPositionSizeCollateral",
|
|
7609
|
-
type: "uint256",
|
|
7610
|
-
},
|
|
7611
|
-
{
|
|
7612
|
-
internalType: "uint256",
|
|
7613
|
-
name: "newPositionSizeCollateral",
|
|
7614
|
-
type: "uint256",
|
|
7615
|
-
},
|
|
7616
|
-
{
|
|
7617
|
-
internalType: "uint256",
|
|
7618
|
-
name: "newCollateralAmount",
|
|
7619
|
-
type: "uint256",
|
|
7620
|
-
},
|
|
7621
|
-
{
|
|
7622
|
-
internalType: "uint256",
|
|
7623
|
-
name: "newLeverage",
|
|
7624
|
-
type: "uint256",
|
|
7625
|
-
},
|
|
7626
|
-
{
|
|
7627
|
-
internalType: "uint256",
|
|
7628
|
-
name: "priceAfterImpact",
|
|
7629
|
-
type: "uint256",
|
|
7630
|
-
},
|
|
7631
|
-
{
|
|
7632
|
-
internalType: "int256",
|
|
7633
|
-
name: "existingPnlCollateral",
|
|
7634
|
-
type: "int256",
|
|
7635
|
-
},
|
|
7636
|
-
{
|
|
7637
|
-
internalType: "uint256",
|
|
7638
|
-
name: "newOpenPrice",
|
|
7639
|
-
type: "uint256",
|
|
7640
|
-
},
|
|
7641
|
-
{
|
|
7642
|
-
internalType: "uint256",
|
|
7643
|
-
name: "borrowingFeeCollateral",
|
|
7644
|
-
type: "uint256",
|
|
7645
|
-
},
|
|
7646
|
-
{
|
|
7647
|
-
internalType: "uint256",
|
|
7648
|
-
name: "openingFeesCollateral",
|
|
7649
|
-
type: "uint256",
|
|
7650
|
-
},
|
|
7651
|
-
{
|
|
7652
|
-
internalType: "uint256",
|
|
7653
|
-
name: "existingLiqPrice",
|
|
7654
|
-
type: "uint256",
|
|
7655
|
-
},
|
|
7656
|
-
{
|
|
7657
|
-
internalType: "uint256",
|
|
7658
|
-
name: "newLiqPrice",
|
|
7659
|
-
type: "uint256",
|
|
7660
|
-
},
|
|
7661
|
-
],
|
|
7662
|
-
indexed: false,
|
|
7663
|
-
internalType: "struct IUpdatePositionSize.IncreasePositionSizeValues",
|
|
7664
|
-
name: "values",
|
|
7665
|
-
type: "tuple",
|
|
7666
|
-
},
|
|
7667
|
-
],
|
|
7668
|
-
name: "PositionSizeIncreaseExecuted",
|
|
7669
|
-
type: "event",
|
|
7670
|
-
signature: "0xf09a9c949c4bd4cbe75b424bea11c683c3ae55e7cdb8321c3ec37e01af72c8d5",
|
|
7671
|
-
},
|
|
7672
|
-
{
|
|
7673
|
-
anonymous: false,
|
|
7674
|
-
inputs: [
|
|
7675
|
-
{
|
|
7676
|
-
components: [
|
|
7677
|
-
{
|
|
7678
|
-
internalType: "address",
|
|
7679
|
-
name: "user",
|
|
7680
|
-
type: "address",
|
|
7681
|
-
},
|
|
7682
|
-
{
|
|
7683
|
-
internalType: "uint32",
|
|
7684
|
-
name: "index",
|
|
7685
|
-
type: "uint32",
|
|
7686
|
-
},
|
|
7687
|
-
],
|
|
7688
|
-
indexed: false,
|
|
7689
|
-
internalType: "struct ITradingStorage.Id",
|
|
7690
|
-
name: "orderId",
|
|
7691
|
-
type: "tuple",
|
|
7692
|
-
},
|
|
7693
|
-
{
|
|
7694
|
-
indexed: true,
|
|
7695
|
-
internalType: "address",
|
|
7696
|
-
name: "trader",
|
|
7697
|
-
type: "address",
|
|
7698
|
-
},
|
|
7699
|
-
{
|
|
7700
|
-
indexed: true,
|
|
7701
|
-
internalType: "uint256",
|
|
7702
|
-
name: "pairIndex",
|
|
7703
|
-
type: "uint256",
|
|
7704
|
-
},
|
|
7705
|
-
{
|
|
7706
|
-
indexed: false,
|
|
7707
|
-
internalType: "uint256",
|
|
7708
|
-
name: "index",
|
|
7709
|
-
type: "uint256",
|
|
7710
|
-
},
|
|
7711
|
-
{
|
|
7712
|
-
indexed: false,
|
|
7713
|
-
internalType: "bool",
|
|
7714
|
-
name: "isIncrease",
|
|
7715
|
-
type: "bool",
|
|
7716
|
-
},
|
|
7717
|
-
{
|
|
7718
|
-
indexed: false,
|
|
7719
|
-
internalType: "uint256",
|
|
7720
|
-
name: "collateralDelta",
|
|
7721
|
-
type: "uint256",
|
|
7722
|
-
},
|
|
7723
|
-
{
|
|
7724
|
-
indexed: false,
|
|
7725
|
-
internalType: "uint256",
|
|
7726
|
-
name: "leverageDelta",
|
|
7727
|
-
type: "uint256",
|
|
7728
|
-
},
|
|
7729
|
-
],
|
|
7730
|
-
name: "PositionSizeUpdateInitiated",
|
|
7731
|
-
type: "event",
|
|
7732
|
-
signature: "0xef86ff293bce1d37f4b09f9c27b48f752d86a9fde1109f1bd8b806e05e7bada5",
|
|
7733
|
-
},
|
|
7734
|
-
{
|
|
7735
|
-
anonymous: false,
|
|
7736
|
-
inputs: [
|
|
7737
|
-
{
|
|
7738
|
-
components: [
|
|
7739
|
-
{
|
|
7740
|
-
internalType: "address",
|
|
7741
|
-
name: "user",
|
|
7742
|
-
type: "address",
|
|
6611
|
+
internalType: "address",
|
|
6612
|
+
name: "user",
|
|
6613
|
+
type: "address",
|
|
7743
6614
|
},
|
|
7744
6615
|
{
|
|
7745
6616
|
internalType: "uint32",
|
|
@@ -7747,99 +6618,16 @@ const _abi = [
|
|
|
7747
6618
|
type: "uint32",
|
|
7748
6619
|
},
|
|
7749
6620
|
],
|
|
7750
|
-
indexed: false,
|
|
7751
6621
|
internalType: "struct ITradingStorage.Id",
|
|
7752
|
-
name: "
|
|
6622
|
+
name: "_orderId",
|
|
7753
6623
|
type: "tuple",
|
|
7754
6624
|
},
|
|
7755
|
-
{
|
|
7756
|
-
indexed: true,
|
|
7757
|
-
internalType: "address",
|
|
7758
|
-
name: "trader",
|
|
7759
|
-
type: "address",
|
|
7760
|
-
},
|
|
7761
|
-
{
|
|
7762
|
-
indexed: true,
|
|
7763
|
-
internalType: "uint16",
|
|
7764
|
-
name: "pairIndex",
|
|
7765
|
-
type: "uint16",
|
|
7766
|
-
},
|
|
7767
|
-
{
|
|
7768
|
-
indexed: false,
|
|
7769
|
-
internalType: "bool",
|
|
7770
|
-
name: "byPassesLinkCost",
|
|
7771
|
-
type: "bool",
|
|
7772
|
-
},
|
|
7773
|
-
],
|
|
7774
|
-
name: "TriggerOrderInitiated",
|
|
7775
|
-
type: "event",
|
|
7776
|
-
signature: "0x1472b674eddef9a7145c9353c62f5c03cfcf54556c14c3a0ebbf394da6e0c9ea",
|
|
7777
|
-
},
|
|
7778
|
-
{
|
|
7779
|
-
inputs: [
|
|
7780
|
-
{
|
|
7781
|
-
internalType: "uint32",
|
|
7782
|
-
name: "_index",
|
|
7783
|
-
type: "uint32",
|
|
7784
|
-
},
|
|
7785
|
-
],
|
|
7786
|
-
name: "cancelOpenOrder",
|
|
7787
|
-
outputs: [],
|
|
7788
|
-
stateMutability: "nonpayable",
|
|
7789
|
-
type: "function",
|
|
7790
|
-
signature: "0x85886333",
|
|
7791
|
-
},
|
|
7792
|
-
{
|
|
7793
|
-
inputs: [
|
|
7794
|
-
{
|
|
7795
|
-
internalType: "uint32",
|
|
7796
|
-
name: "_orderIndex",
|
|
7797
|
-
type: "uint32",
|
|
7798
|
-
},
|
|
7799
|
-
],
|
|
7800
|
-
name: "cancelOrderAfterTimeout",
|
|
7801
|
-
outputs: [],
|
|
7802
|
-
stateMutability: "nonpayable",
|
|
7803
|
-
type: "function",
|
|
7804
|
-
signature: "0xb6919540",
|
|
7805
|
-
},
|
|
7806
|
-
{
|
|
7807
|
-
inputs: [
|
|
7808
|
-
{
|
|
7809
|
-
internalType: "uint32",
|
|
7810
|
-
name: "_index",
|
|
7811
|
-
type: "uint32",
|
|
7812
|
-
},
|
|
7813
6625
|
],
|
|
7814
|
-
name: "
|
|
6626
|
+
name: "closeTradeMarketTimeout",
|
|
7815
6627
|
outputs: [],
|
|
7816
6628
|
stateMutability: "nonpayable",
|
|
7817
6629
|
type: "function",
|
|
7818
|
-
signature: "
|
|
7819
|
-
},
|
|
7820
|
-
{
|
|
7821
|
-
inputs: [
|
|
7822
|
-
{
|
|
7823
|
-
internalType: "uint32",
|
|
7824
|
-
name: "_index",
|
|
7825
|
-
type: "uint32",
|
|
7826
|
-
},
|
|
7827
|
-
{
|
|
7828
|
-
internalType: "uint120",
|
|
7829
|
-
name: "_collateralDelta",
|
|
7830
|
-
type: "uint120",
|
|
7831
|
-
},
|
|
7832
|
-
{
|
|
7833
|
-
internalType: "uint24",
|
|
7834
|
-
name: "_leverageDelta",
|
|
7835
|
-
type: "uint24",
|
|
7836
|
-
},
|
|
7837
|
-
],
|
|
7838
|
-
name: "decreasePositionSize",
|
|
7839
|
-
outputs: [],
|
|
7840
|
-
stateMutability: "nonpayable",
|
|
7841
|
-
type: "function",
|
|
7842
|
-
signature: "0x69f6bde1",
|
|
6630
|
+
signature: "0x03537a5f",
|
|
7843
6631
|
},
|
|
7844
6632
|
{
|
|
7845
6633
|
inputs: [
|
|
@@ -7884,6 +6672,7 @@ const _abi = [
|
|
|
7884
6672
|
],
|
|
7885
6673
|
stateMutability: "view",
|
|
7886
6674
|
type: "function",
|
|
6675
|
+
constant: true,
|
|
7887
6676
|
signature: "0x85898e08",
|
|
7888
6677
|
},
|
|
7889
6678
|
{
|
|
@@ -7898,6 +6687,7 @@ const _abi = [
|
|
|
7898
6687
|
],
|
|
7899
6688
|
stateMutability: "view",
|
|
7900
6689
|
type: "function",
|
|
6690
|
+
constant: true,
|
|
7901
6691
|
signature: "0xa4bdee80",
|
|
7902
6692
|
},
|
|
7903
6693
|
{
|
|
@@ -7918,6 +6708,7 @@ const _abi = [
|
|
|
7918
6708
|
],
|
|
7919
6709
|
stateMutability: "view",
|
|
7920
6710
|
type: "function",
|
|
6711
|
+
constant: true,
|
|
7921
6712
|
signature: "0x4aac6480",
|
|
7922
6713
|
},
|
|
7923
6714
|
{
|
|
@@ -7932,42 +6723,9 @@ const _abi = [
|
|
|
7932
6723
|
],
|
|
7933
6724
|
stateMutability: "view",
|
|
7934
6725
|
type: "function",
|
|
6726
|
+
constant: true,
|
|
7935
6727
|
signature: "0x1d9478b6",
|
|
7936
6728
|
},
|
|
7937
|
-
{
|
|
7938
|
-
inputs: [
|
|
7939
|
-
{
|
|
7940
|
-
internalType: "uint32",
|
|
7941
|
-
name: "_index",
|
|
7942
|
-
type: "uint32",
|
|
7943
|
-
},
|
|
7944
|
-
{
|
|
7945
|
-
internalType: "uint120",
|
|
7946
|
-
name: "_collateralDelta",
|
|
7947
|
-
type: "uint120",
|
|
7948
|
-
},
|
|
7949
|
-
{
|
|
7950
|
-
internalType: "uint24",
|
|
7951
|
-
name: "_leverageDelta",
|
|
7952
|
-
type: "uint24",
|
|
7953
|
-
},
|
|
7954
|
-
{
|
|
7955
|
-
internalType: "uint64",
|
|
7956
|
-
name: "_expectedPrice",
|
|
7957
|
-
type: "uint64",
|
|
7958
|
-
},
|
|
7959
|
-
{
|
|
7960
|
-
internalType: "uint16",
|
|
7961
|
-
name: "_maxSlippageP",
|
|
7962
|
-
type: "uint16",
|
|
7963
|
-
},
|
|
7964
|
-
],
|
|
7965
|
-
name: "increasePositionSize",
|
|
7966
|
-
outputs: [],
|
|
7967
|
-
stateMutability: "nonpayable",
|
|
7968
|
-
type: "function",
|
|
7969
|
-
signature: "0x24058ad3",
|
|
7970
|
-
},
|
|
7971
6729
|
{
|
|
7972
6730
|
inputs: [
|
|
7973
6731
|
{
|
|
@@ -8005,6 +6763,7 @@ const _abi = [
|
|
|
8005
6763
|
],
|
|
8006
6764
|
stateMutability: "view",
|
|
8007
6765
|
type: "function",
|
|
6766
|
+
constant: true,
|
|
8008
6767
|
signature: "0x84e93347",
|
|
8009
6768
|
},
|
|
8010
6769
|
{
|
|
@@ -8098,6 +6857,32 @@ const _abi = [
|
|
|
8098
6857
|
type: "function",
|
|
8099
6858
|
signature: "0x4465c3e4",
|
|
8100
6859
|
},
|
|
6860
|
+
{
|
|
6861
|
+
inputs: [
|
|
6862
|
+
{
|
|
6863
|
+
components: [
|
|
6864
|
+
{
|
|
6865
|
+
internalType: "address",
|
|
6866
|
+
name: "user",
|
|
6867
|
+
type: "address",
|
|
6868
|
+
},
|
|
6869
|
+
{
|
|
6870
|
+
internalType: "uint32",
|
|
6871
|
+
name: "index",
|
|
6872
|
+
type: "uint32",
|
|
6873
|
+
},
|
|
6874
|
+
],
|
|
6875
|
+
internalType: "struct ITradingStorage.Id",
|
|
6876
|
+
name: "_orderId",
|
|
6877
|
+
type: "tuple",
|
|
6878
|
+
},
|
|
6879
|
+
],
|
|
6880
|
+
name: "openTradeMarketTimeout",
|
|
6881
|
+
outputs: [],
|
|
6882
|
+
stateMutability: "nonpayable",
|
|
6883
|
+
type: "function",
|
|
6884
|
+
signature: "0x0cff665e",
|
|
6885
|
+
},
|
|
8101
6886
|
{
|
|
8102
6887
|
inputs: [
|
|
8103
6888
|
{
|
|
@@ -8187,6 +6972,7 @@ const _abi = [
|
|
|
8187
6972
|
outputs: [],
|
|
8188
6973
|
stateMutability: "payable",
|
|
8189
6974
|
type: "function",
|
|
6975
|
+
payable: true,
|
|
8190
6976
|
signature: "0x080e83e1",
|
|
8191
6977
|
},
|
|
8192
6978
|
{
|
|
@@ -8242,26 +7028,7 @@ const _abi = [
|
|
|
8242
7028
|
outputs: [],
|
|
8243
7029
|
stateMutability: "nonpayable",
|
|
8244
7030
|
type: "function",
|
|
8245
|
-
signature: "0x9bf1584e",
|
|
8246
|
-
},
|
|
8247
|
-
{
|
|
8248
|
-
inputs: [
|
|
8249
|
-
{
|
|
8250
|
-
internalType: "uint32",
|
|
8251
|
-
name: "_index",
|
|
8252
|
-
type: "uint32",
|
|
8253
|
-
},
|
|
8254
|
-
{
|
|
8255
|
-
internalType: "uint24",
|
|
8256
|
-
name: "_newLeverage",
|
|
8257
|
-
type: "uint24",
|
|
8258
|
-
},
|
|
8259
|
-
],
|
|
8260
|
-
name: "updateLeverage",
|
|
8261
|
-
outputs: [],
|
|
8262
|
-
stateMutability: "nonpayable",
|
|
8263
|
-
type: "function",
|
|
8264
|
-
signature: "0x0bce9aaa",
|
|
7031
|
+
signature: "0x9bf1584e",
|
|
8265
7032
|
},
|
|
8266
7033
|
{
|
|
8267
7034
|
inputs: [
|
|
@@ -9025,64 +7792,6 @@ const _abi = [
|
|
|
9025
7792
|
type: "function",
|
|
9026
7793
|
signature: "0x4b0b5629",
|
|
9027
7794
|
},
|
|
9028
|
-
{
|
|
9029
|
-
inputs: [
|
|
9030
|
-
{
|
|
9031
|
-
components: [
|
|
9032
|
-
{
|
|
9033
|
-
components: [
|
|
9034
|
-
{
|
|
9035
|
-
internalType: "address",
|
|
9036
|
-
name: "user",
|
|
9037
|
-
type: "address",
|
|
9038
|
-
},
|
|
9039
|
-
{
|
|
9040
|
-
internalType: "uint32",
|
|
9041
|
-
name: "index",
|
|
9042
|
-
type: "uint32",
|
|
9043
|
-
},
|
|
9044
|
-
],
|
|
9045
|
-
internalType: "struct ITradingStorage.Id",
|
|
9046
|
-
name: "orderId",
|
|
9047
|
-
type: "tuple",
|
|
9048
|
-
},
|
|
9049
|
-
{
|
|
9050
|
-
internalType: "uint256",
|
|
9051
|
-
name: "spreadP",
|
|
9052
|
-
type: "uint256",
|
|
9053
|
-
},
|
|
9054
|
-
{
|
|
9055
|
-
internalType: "uint64",
|
|
9056
|
-
name: "price",
|
|
9057
|
-
type: "uint64",
|
|
9058
|
-
},
|
|
9059
|
-
{
|
|
9060
|
-
internalType: "uint64",
|
|
9061
|
-
name: "open",
|
|
9062
|
-
type: "uint64",
|
|
9063
|
-
},
|
|
9064
|
-
{
|
|
9065
|
-
internalType: "uint64",
|
|
9066
|
-
name: "high",
|
|
9067
|
-
type: "uint64",
|
|
9068
|
-
},
|
|
9069
|
-
{
|
|
9070
|
-
internalType: "uint64",
|
|
9071
|
-
name: "low",
|
|
9072
|
-
type: "uint64",
|
|
9073
|
-
},
|
|
9074
|
-
],
|
|
9075
|
-
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
9076
|
-
name: "_a",
|
|
9077
|
-
type: "tuple",
|
|
9078
|
-
},
|
|
9079
|
-
],
|
|
9080
|
-
name: "decreasePositionSizeMarketCallback",
|
|
9081
|
-
outputs: [],
|
|
9082
|
-
stateMutability: "nonpayable",
|
|
9083
|
-
type: "function",
|
|
9084
|
-
signature: "0xe1d88718",
|
|
9085
|
-
},
|
|
9086
7795
|
{
|
|
9087
7796
|
inputs: [
|
|
9088
7797
|
{
|
|
@@ -9217,6 +7926,7 @@ const _abi = [
|
|
|
9217
7926
|
],
|
|
9218
7927
|
stateMutability: "view",
|
|
9219
7928
|
type: "function",
|
|
7929
|
+
constant: true,
|
|
9220
7930
|
signature: "0x2c6fe6d1",
|
|
9221
7931
|
},
|
|
9222
7932
|
{
|
|
@@ -9231,66 +7941,9 @@ const _abi = [
|
|
|
9231
7941
|
],
|
|
9232
7942
|
stateMutability: "view",
|
|
9233
7943
|
type: "function",
|
|
7944
|
+
constant: true,
|
|
9234
7945
|
signature: "0xa5b26e46",
|
|
9235
7946
|
},
|
|
9236
|
-
{
|
|
9237
|
-
inputs: [
|
|
9238
|
-
{
|
|
9239
|
-
components: [
|
|
9240
|
-
{
|
|
9241
|
-
components: [
|
|
9242
|
-
{
|
|
9243
|
-
internalType: "address",
|
|
9244
|
-
name: "user",
|
|
9245
|
-
type: "address",
|
|
9246
|
-
},
|
|
9247
|
-
{
|
|
9248
|
-
internalType: "uint32",
|
|
9249
|
-
name: "index",
|
|
9250
|
-
type: "uint32",
|
|
9251
|
-
},
|
|
9252
|
-
],
|
|
9253
|
-
internalType: "struct ITradingStorage.Id",
|
|
9254
|
-
name: "orderId",
|
|
9255
|
-
type: "tuple",
|
|
9256
|
-
},
|
|
9257
|
-
{
|
|
9258
|
-
internalType: "uint256",
|
|
9259
|
-
name: "spreadP",
|
|
9260
|
-
type: "uint256",
|
|
9261
|
-
},
|
|
9262
|
-
{
|
|
9263
|
-
internalType: "uint64",
|
|
9264
|
-
name: "price",
|
|
9265
|
-
type: "uint64",
|
|
9266
|
-
},
|
|
9267
|
-
{
|
|
9268
|
-
internalType: "uint64",
|
|
9269
|
-
name: "open",
|
|
9270
|
-
type: "uint64",
|
|
9271
|
-
},
|
|
9272
|
-
{
|
|
9273
|
-
internalType: "uint64",
|
|
9274
|
-
name: "high",
|
|
9275
|
-
type: "uint64",
|
|
9276
|
-
},
|
|
9277
|
-
{
|
|
9278
|
-
internalType: "uint64",
|
|
9279
|
-
name: "low",
|
|
9280
|
-
type: "uint64",
|
|
9281
|
-
},
|
|
9282
|
-
],
|
|
9283
|
-
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
9284
|
-
name: "_a",
|
|
9285
|
-
type: "tuple",
|
|
9286
|
-
},
|
|
9287
|
-
],
|
|
9288
|
-
name: "increasePositionSizeMarketCallback",
|
|
9289
|
-
outputs: [],
|
|
9290
|
-
stateMutability: "nonpayable",
|
|
9291
|
-
type: "function",
|
|
9292
|
-
signature: "0x10d8e754",
|
|
9293
|
-
},
|
|
9294
7947
|
{
|
|
9295
7948
|
inputs: [
|
|
9296
7949
|
{
|
|
@@ -9363,64 +8016,6 @@ const _abi = [
|
|
|
9363
8016
|
type: "function",
|
|
9364
8017
|
signature: "0x13ebc2c6",
|
|
9365
8018
|
},
|
|
9366
|
-
{
|
|
9367
|
-
inputs: [
|
|
9368
|
-
{
|
|
9369
|
-
components: [
|
|
9370
|
-
{
|
|
9371
|
-
components: [
|
|
9372
|
-
{
|
|
9373
|
-
internalType: "address",
|
|
9374
|
-
name: "user",
|
|
9375
|
-
type: "address",
|
|
9376
|
-
},
|
|
9377
|
-
{
|
|
9378
|
-
internalType: "uint32",
|
|
9379
|
-
name: "index",
|
|
9380
|
-
type: "uint32",
|
|
9381
|
-
},
|
|
9382
|
-
],
|
|
9383
|
-
internalType: "struct ITradingStorage.Id",
|
|
9384
|
-
name: "orderId",
|
|
9385
|
-
type: "tuple",
|
|
9386
|
-
},
|
|
9387
|
-
{
|
|
9388
|
-
internalType: "uint256",
|
|
9389
|
-
name: "spreadP",
|
|
9390
|
-
type: "uint256",
|
|
9391
|
-
},
|
|
9392
|
-
{
|
|
9393
|
-
internalType: "uint64",
|
|
9394
|
-
name: "price",
|
|
9395
|
-
type: "uint64",
|
|
9396
|
-
},
|
|
9397
|
-
{
|
|
9398
|
-
internalType: "uint64",
|
|
9399
|
-
name: "open",
|
|
9400
|
-
type: "uint64",
|
|
9401
|
-
},
|
|
9402
|
-
{
|
|
9403
|
-
internalType: "uint64",
|
|
9404
|
-
name: "high",
|
|
9405
|
-
type: "uint64",
|
|
9406
|
-
},
|
|
9407
|
-
{
|
|
9408
|
-
internalType: "uint64",
|
|
9409
|
-
name: "low",
|
|
9410
|
-
type: "uint64",
|
|
9411
|
-
},
|
|
9412
|
-
],
|
|
9413
|
-
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
9414
|
-
name: "_a",
|
|
9415
|
-
type: "tuple",
|
|
9416
|
-
},
|
|
9417
|
-
],
|
|
9418
|
-
name: "updateLeverageCallback",
|
|
9419
|
-
outputs: [],
|
|
9420
|
-
stateMutability: "nonpayable",
|
|
9421
|
-
type: "function",
|
|
9422
|
-
signature: "0x92dd2940",
|
|
9423
|
-
},
|
|
9424
8019
|
{
|
|
9425
8020
|
inputs: [
|
|
9426
8021
|
{
|
|
@@ -9598,12 +8193,6 @@ const _abi = [
|
|
|
9598
8193
|
name: "index",
|
|
9599
8194
|
type: "uint32",
|
|
9600
8195
|
},
|
|
9601
|
-
{
|
|
9602
|
-
indexed: false,
|
|
9603
|
-
internalType: "bool",
|
|
9604
|
-
name: "long",
|
|
9605
|
-
type: "bool",
|
|
9606
|
-
},
|
|
9607
8196
|
{
|
|
9608
8197
|
indexed: false,
|
|
9609
8198
|
internalType: "uint64",
|
|
@@ -9619,7 +8208,7 @@ const _abi = [
|
|
|
9619
8208
|
],
|
|
9620
8209
|
name: "BorrowingInitialAccFeesStored",
|
|
9621
8210
|
type: "event",
|
|
9622
|
-
signature: "
|
|
8211
|
+
signature: "0x0630d8200c5131fd33e89f6e386588553026397795e46cfc6736e4af82f4e6d9",
|
|
9623
8212
|
},
|
|
9624
8213
|
{
|
|
9625
8214
|
anonymous: false,
|
|
@@ -9959,6 +8548,7 @@ const _abi = [
|
|
|
9959
8548
|
],
|
|
9960
8549
|
stateMutability: "view",
|
|
9961
8550
|
type: "function",
|
|
8551
|
+
constant: true,
|
|
9962
8552
|
signature: "0x48da5b38",
|
|
9963
8553
|
},
|
|
9964
8554
|
{
|
|
@@ -10011,6 +8601,7 @@ const _abi = [
|
|
|
10011
8601
|
],
|
|
10012
8602
|
stateMutability: "view",
|
|
10013
8603
|
type: "function",
|
|
8604
|
+
constant: true,
|
|
10014
8605
|
signature: "0xfff24740",
|
|
10015
8606
|
},
|
|
10016
8607
|
{
|
|
@@ -10058,6 +8649,7 @@ const _abi = [
|
|
|
10058
8649
|
],
|
|
10059
8650
|
stateMutability: "view",
|
|
10060
8651
|
type: "function",
|
|
8652
|
+
constant: true,
|
|
10061
8653
|
signature: "0x13a9baae",
|
|
10062
8654
|
},
|
|
10063
8655
|
{
|
|
@@ -10098,6 +8690,7 @@ const _abi = [
|
|
|
10098
8690
|
],
|
|
10099
8691
|
stateMutability: "view",
|
|
10100
8692
|
type: "function",
|
|
8693
|
+
constant: true,
|
|
10101
8694
|
signature: "0xd2b9099a",
|
|
10102
8695
|
},
|
|
10103
8696
|
{
|
|
@@ -10177,6 +8770,7 @@ const _abi = [
|
|
|
10177
8770
|
],
|
|
10178
8771
|
stateMutability: "view",
|
|
10179
8772
|
type: "function",
|
|
8773
|
+
constant: true,
|
|
10180
8774
|
signature: "0xfbbf9740",
|
|
10181
8775
|
},
|
|
10182
8776
|
{
|
|
@@ -10229,6 +8823,7 @@ const _abi = [
|
|
|
10229
8823
|
],
|
|
10230
8824
|
stateMutability: "view",
|
|
10231
8825
|
type: "function",
|
|
8826
|
+
constant: true,
|
|
10232
8827
|
signature: "0xab6192ed",
|
|
10233
8828
|
},
|
|
10234
8829
|
{
|
|
@@ -10281,6 +8876,7 @@ const _abi = [
|
|
|
10281
8876
|
],
|
|
10282
8877
|
stateMutability: "view",
|
|
10283
8878
|
type: "function",
|
|
8879
|
+
constant: true,
|
|
10284
8880
|
signature: "0x5d5bf24d",
|
|
10285
8881
|
},
|
|
10286
8882
|
{
|
|
@@ -10306,6 +8902,7 @@ const _abi = [
|
|
|
10306
8902
|
],
|
|
10307
8903
|
stateMutability: "view",
|
|
10308
8904
|
type: "function",
|
|
8905
|
+
constant: true,
|
|
10309
8906
|
signature: "0xe6a6633f",
|
|
10310
8907
|
},
|
|
10311
8908
|
{
|
|
@@ -10378,6 +8975,7 @@ const _abi = [
|
|
|
10378
8975
|
],
|
|
10379
8976
|
stateMutability: "view",
|
|
10380
8977
|
type: "function",
|
|
8978
|
+
constant: true,
|
|
10381
8979
|
signature: "0xfd03e048",
|
|
10382
8980
|
},
|
|
10383
8981
|
{
|
|
@@ -10425,6 +9023,7 @@ const _abi = [
|
|
|
10425
9023
|
],
|
|
10426
9024
|
stateMutability: "view",
|
|
10427
9025
|
type: "function",
|
|
9026
|
+
constant: true,
|
|
10428
9027
|
signature: "0x0077b57e",
|
|
10429
9028
|
},
|
|
10430
9029
|
{
|
|
@@ -10465,6 +9064,7 @@ const _abi = [
|
|
|
10465
9064
|
],
|
|
10466
9065
|
stateMutability: "view",
|
|
10467
9066
|
type: "function",
|
|
9067
|
+
constant: true,
|
|
10468
9068
|
signature: "0x0c7be6ca",
|
|
10469
9069
|
},
|
|
10470
9070
|
{
|
|
@@ -10490,6 +9090,7 @@ const _abi = [
|
|
|
10490
9090
|
],
|
|
10491
9091
|
stateMutability: "view",
|
|
10492
9092
|
type: "function",
|
|
9093
|
+
constant: true,
|
|
10493
9094
|
signature: "0x5667b5c0",
|
|
10494
9095
|
},
|
|
10495
9096
|
{
|
|
@@ -10515,6 +9116,7 @@ const _abi = [
|
|
|
10515
9116
|
],
|
|
10516
9117
|
stateMutability: "view",
|
|
10517
9118
|
type: "function",
|
|
9119
|
+
constant: true,
|
|
10518
9120
|
signature: "0x274d1278",
|
|
10519
9121
|
},
|
|
10520
9122
|
{
|
|
@@ -10545,6 +9147,7 @@ const _abi = [
|
|
|
10545
9147
|
],
|
|
10546
9148
|
stateMutability: "view",
|
|
10547
9149
|
type: "function",
|
|
9150
|
+
constant: true,
|
|
10548
9151
|
signature: "0xeb2ea3a2",
|
|
10549
9152
|
},
|
|
10550
9153
|
{
|
|
@@ -10575,6 +9178,7 @@ const _abi = [
|
|
|
10575
9178
|
],
|
|
10576
9179
|
stateMutability: "view",
|
|
10577
9180
|
type: "function",
|
|
9181
|
+
constant: true,
|
|
10578
9182
|
signature: "0xf6f7c948",
|
|
10579
9183
|
},
|
|
10580
9184
|
{
|
|
@@ -10632,6 +9236,7 @@ const _abi = [
|
|
|
10632
9236
|
],
|
|
10633
9237
|
stateMutability: "view",
|
|
10634
9238
|
type: "function",
|
|
9239
|
+
constant: true,
|
|
10635
9240
|
signature: "0x0804db93",
|
|
10636
9241
|
},
|
|
10637
9242
|
{
|
|
@@ -10674,14 +9279,9 @@ const _abi = [
|
|
|
10674
9279
|
type: "uint256",
|
|
10675
9280
|
},
|
|
10676
9281
|
{
|
|
10677
|
-
internalType: "
|
|
9282
|
+
internalType: "uint24",
|
|
10678
9283
|
name: "leverage",
|
|
10679
|
-
type: "
|
|
10680
|
-
},
|
|
10681
|
-
{
|
|
10682
|
-
internalType: "bool",
|
|
10683
|
-
name: "useBorrowingFees",
|
|
10684
|
-
type: "bool",
|
|
9284
|
+
type: "uint24",
|
|
10685
9285
|
},
|
|
10686
9286
|
],
|
|
10687
9287
|
internalType: "struct IBorrowingFees.LiqPriceInput",
|
|
@@ -10699,7 +9299,8 @@ const _abi = [
|
|
|
10699
9299
|
],
|
|
10700
9300
|
stateMutability: "view",
|
|
10701
9301
|
type: "function",
|
|
10702
|
-
|
|
9302
|
+
constant: true,
|
|
9303
|
+
signature: "0x30b3c31f",
|
|
10703
9304
|
},
|
|
10704
9305
|
{
|
|
10705
9306
|
inputs: [
|
|
@@ -10745,40 +9346,6 @@ const _abi = [
|
|
|
10745
9346
|
type: "function",
|
|
10746
9347
|
signature: "0xfc79e929",
|
|
10747
9348
|
},
|
|
10748
|
-
{
|
|
10749
|
-
inputs: [
|
|
10750
|
-
{
|
|
10751
|
-
internalType: "uint8",
|
|
10752
|
-
name: "_collateralIndex",
|
|
10753
|
-
type: "uint8",
|
|
10754
|
-
},
|
|
10755
|
-
{
|
|
10756
|
-
internalType: "address",
|
|
10757
|
-
name: "_trader",
|
|
10758
|
-
type: "address",
|
|
10759
|
-
},
|
|
10760
|
-
{
|
|
10761
|
-
internalType: "uint16",
|
|
10762
|
-
name: "_pairIndex",
|
|
10763
|
-
type: "uint16",
|
|
10764
|
-
},
|
|
10765
|
-
{
|
|
10766
|
-
internalType: "uint32",
|
|
10767
|
-
name: "_index",
|
|
10768
|
-
type: "uint32",
|
|
10769
|
-
},
|
|
10770
|
-
{
|
|
10771
|
-
internalType: "bool",
|
|
10772
|
-
name: "_long",
|
|
10773
|
-
type: "bool",
|
|
10774
|
-
},
|
|
10775
|
-
],
|
|
10776
|
-
name: "resetTradeBorrowingFees",
|
|
10777
|
-
outputs: [],
|
|
10778
|
-
stateMutability: "nonpayable",
|
|
10779
|
-
type: "function",
|
|
10780
|
-
signature: "0x4fa72788",
|
|
10781
|
-
},
|
|
10782
9349
|
{
|
|
10783
9350
|
inputs: [
|
|
10784
9351
|
{
|
|
@@ -10986,6 +9553,7 @@ const _abi = [
|
|
|
10986
9553
|
],
|
|
10987
9554
|
stateMutability: "view",
|
|
10988
9555
|
type: "function",
|
|
9556
|
+
constant: true,
|
|
10989
9557
|
signature: "0x801c7961",
|
|
10990
9558
|
},
|
|
10991
9559
|
{
|
|
@@ -10993,11 +9561,6 @@ const _abi = [
|
|
|
10993
9561
|
name: "InvalidCandle",
|
|
10994
9562
|
type: "error",
|
|
10995
9563
|
},
|
|
10996
|
-
{
|
|
10997
|
-
inputs: [],
|
|
10998
|
-
name: "InvalidPoolType",
|
|
10999
|
-
type: "error",
|
|
11000
|
-
},
|
|
11001
9564
|
{
|
|
11002
9565
|
inputs: [],
|
|
11003
9566
|
name: "OracleAlreadyListed",
|
|
@@ -11068,7 +9631,7 @@ const _abi = [
|
|
|
11068
9631
|
{
|
|
11069
9632
|
components: [
|
|
11070
9633
|
{
|
|
11071
|
-
internalType: "contract
|
|
9634
|
+
internalType: "contract IUniswapV3Pool",
|
|
11072
9635
|
name: "pool",
|
|
11073
9636
|
type: "address",
|
|
11074
9637
|
},
|
|
@@ -11078,25 +9641,20 @@ const _abi = [
|
|
|
11078
9641
|
type: "bool",
|
|
11079
9642
|
},
|
|
11080
9643
|
{
|
|
11081
|
-
internalType: "
|
|
11082
|
-
name: "poolType",
|
|
11083
|
-
type: "uint8",
|
|
11084
|
-
},
|
|
11085
|
-
{
|
|
11086
|
-
internalType: "uint80",
|
|
9644
|
+
internalType: "uint88",
|
|
11087
9645
|
name: "__placeholder",
|
|
11088
|
-
type: "
|
|
9646
|
+
type: "uint88",
|
|
11089
9647
|
},
|
|
11090
9648
|
],
|
|
11091
9649
|
indexed: false,
|
|
11092
|
-
internalType: "struct IPriceAggregator.
|
|
9650
|
+
internalType: "struct IPriceAggregator.UniV3PoolInfo",
|
|
11093
9651
|
name: "newValue",
|
|
11094
9652
|
type: "tuple",
|
|
11095
9653
|
},
|
|
11096
9654
|
],
|
|
11097
|
-
name: "
|
|
9655
|
+
name: "CollateralGnsUniV3PoolUpdated",
|
|
11098
9656
|
type: "event",
|
|
11099
|
-
signature: "
|
|
9657
|
+
signature: "0x1edbae8d78eb52b7442e21be32c837a2c2521fd9d806d1f469f2c9e8f469ab75",
|
|
11100
9658
|
},
|
|
11101
9659
|
{
|
|
11102
9660
|
anonymous: false,
|
|
@@ -11359,23 +9917,11 @@ const _abi = [
|
|
|
11359
9917
|
anonymous: false,
|
|
11360
9918
|
inputs: [
|
|
11361
9919
|
{
|
|
11362
|
-
indexed:
|
|
9920
|
+
indexed: false,
|
|
11363
9921
|
internalType: "uint8",
|
|
11364
9922
|
name: "collateralIndex",
|
|
11365
9923
|
type: "uint8",
|
|
11366
9924
|
},
|
|
11367
|
-
{
|
|
11368
|
-
indexed: true,
|
|
11369
|
-
internalType: "address",
|
|
11370
|
-
name: "trader",
|
|
11371
|
-
type: "address",
|
|
11372
|
-
},
|
|
11373
|
-
{
|
|
11374
|
-
indexed: true,
|
|
11375
|
-
internalType: "uint256",
|
|
11376
|
-
name: "pairIndex",
|
|
11377
|
-
type: "uint256",
|
|
11378
|
-
},
|
|
11379
9925
|
{
|
|
11380
9926
|
components: [
|
|
11381
9927
|
{
|
|
@@ -11395,29 +9941,29 @@ const _abi = [
|
|
|
11395
9941
|
type: "tuple",
|
|
11396
9942
|
},
|
|
11397
9943
|
{
|
|
11398
|
-
indexed:
|
|
9944
|
+
indexed: true,
|
|
11399
9945
|
internalType: "enum ITradingStorage.PendingOrderType",
|
|
11400
9946
|
name: "orderType",
|
|
11401
9947
|
type: "uint8",
|
|
11402
9948
|
},
|
|
11403
9949
|
{
|
|
11404
|
-
indexed:
|
|
9950
|
+
indexed: true,
|
|
11405
9951
|
internalType: "uint256",
|
|
11406
|
-
name: "
|
|
9952
|
+
name: "pairIndex",
|
|
11407
9953
|
type: "uint256",
|
|
11408
9954
|
},
|
|
11409
9955
|
{
|
|
11410
|
-
indexed:
|
|
11411
|
-
internalType: "bool",
|
|
11412
|
-
name: "isLookback",
|
|
11413
|
-
type: "bool",
|
|
11414
|
-
},
|
|
11415
|
-
{
|
|
11416
|
-
indexed: false,
|
|
9956
|
+
indexed: true,
|
|
11417
9957
|
internalType: "bytes32",
|
|
11418
9958
|
name: "job",
|
|
11419
9959
|
type: "bytes32",
|
|
11420
9960
|
},
|
|
9961
|
+
{
|
|
9962
|
+
indexed: false,
|
|
9963
|
+
internalType: "uint256",
|
|
9964
|
+
name: "nodesCount",
|
|
9965
|
+
type: "uint256",
|
|
9966
|
+
},
|
|
11421
9967
|
{
|
|
11422
9968
|
indexed: false,
|
|
11423
9969
|
internalType: "uint256",
|
|
@@ -11427,13 +9973,19 @@ const _abi = [
|
|
|
11427
9973
|
{
|
|
11428
9974
|
indexed: false,
|
|
11429
9975
|
internalType: "uint256",
|
|
11430
|
-
name: "
|
|
9976
|
+
name: "fromBlock",
|
|
11431
9977
|
type: "uint256",
|
|
11432
9978
|
},
|
|
9979
|
+
{
|
|
9980
|
+
indexed: false,
|
|
9981
|
+
internalType: "bool",
|
|
9982
|
+
name: "isLookback",
|
|
9983
|
+
type: "bool",
|
|
9984
|
+
},
|
|
11433
9985
|
],
|
|
11434
9986
|
name: "PriceRequested",
|
|
11435
9987
|
type: "event",
|
|
11436
|
-
signature: "
|
|
9988
|
+
signature: "0xff0844642ee620558da9bd3e51a00e4e70e563b544dd6ef6529fd4068eea8dc9",
|
|
11437
9989
|
},
|
|
11438
9990
|
{
|
|
11439
9991
|
anonymous: false,
|
|
@@ -11566,6 +10118,7 @@ const _abi = [
|
|
|
11566
10118
|
],
|
|
11567
10119
|
stateMutability: "view",
|
|
11568
10120
|
type: "function",
|
|
10121
|
+
constant: true,
|
|
11569
10122
|
signature: "0x165d35e1",
|
|
11570
10123
|
},
|
|
11571
10124
|
{
|
|
@@ -11591,6 +10144,7 @@ const _abi = [
|
|
|
11591
10144
|
],
|
|
11592
10145
|
stateMutability: "view",
|
|
11593
10146
|
type: "function",
|
|
10147
|
+
constant: true,
|
|
11594
10148
|
signature: "0x36f6def7",
|
|
11595
10149
|
},
|
|
11596
10150
|
{
|
|
@@ -11601,12 +10155,12 @@ const _abi = [
|
|
|
11601
10155
|
type: "uint8",
|
|
11602
10156
|
},
|
|
11603
10157
|
],
|
|
11604
|
-
name: "
|
|
10158
|
+
name: "getCollateralGnsUniV3Pool",
|
|
11605
10159
|
outputs: [
|
|
11606
10160
|
{
|
|
11607
10161
|
components: [
|
|
11608
10162
|
{
|
|
11609
|
-
internalType: "contract
|
|
10163
|
+
internalType: "contract IUniswapV3Pool",
|
|
11610
10164
|
name: "pool",
|
|
11611
10165
|
type: "address",
|
|
11612
10166
|
},
|
|
@@ -11616,24 +10170,20 @@ const _abi = [
|
|
|
11616
10170
|
type: "bool",
|
|
11617
10171
|
},
|
|
11618
10172
|
{
|
|
11619
|
-
internalType: "
|
|
11620
|
-
name: "poolType",
|
|
11621
|
-
type: "uint8",
|
|
11622
|
-
},
|
|
11623
|
-
{
|
|
11624
|
-
internalType: "uint80",
|
|
10173
|
+
internalType: "uint88",
|
|
11625
10174
|
name: "__placeholder",
|
|
11626
|
-
type: "
|
|
10175
|
+
type: "uint88",
|
|
11627
10176
|
},
|
|
11628
10177
|
],
|
|
11629
|
-
internalType: "struct IPriceAggregator.
|
|
10178
|
+
internalType: "struct IPriceAggregator.UniV3PoolInfo",
|
|
11630
10179
|
name: "",
|
|
11631
10180
|
type: "tuple",
|
|
11632
10181
|
},
|
|
11633
10182
|
],
|
|
11634
10183
|
stateMutability: "view",
|
|
11635
10184
|
type: "function",
|
|
11636
|
-
|
|
10185
|
+
constant: true,
|
|
10186
|
+
signature: "0xd1d80eb8",
|
|
11637
10187
|
},
|
|
11638
10188
|
{
|
|
11639
10189
|
inputs: [
|
|
@@ -11653,6 +10203,7 @@ const _abi = [
|
|
|
11653
10203
|
],
|
|
11654
10204
|
stateMutability: "view",
|
|
11655
10205
|
type: "function",
|
|
10206
|
+
constant: true,
|
|
11656
10207
|
signature: "0xbbb4e3f9",
|
|
11657
10208
|
},
|
|
11658
10209
|
{
|
|
@@ -11673,6 +10224,7 @@ const _abi = [
|
|
|
11673
10224
|
],
|
|
11674
10225
|
stateMutability: "view",
|
|
11675
10226
|
type: "function",
|
|
10227
|
+
constant: true,
|
|
11676
10228
|
signature: "0x9641c1f5",
|
|
11677
10229
|
},
|
|
11678
10230
|
{
|
|
@@ -11693,6 +10245,7 @@ const _abi = [
|
|
|
11693
10245
|
],
|
|
11694
10246
|
stateMutability: "view",
|
|
11695
10247
|
type: "function",
|
|
10248
|
+
constant: true,
|
|
11696
10249
|
signature: "0x1de109d2",
|
|
11697
10250
|
},
|
|
11698
10251
|
{
|
|
@@ -11713,6 +10266,7 @@ const _abi = [
|
|
|
11713
10266
|
],
|
|
11714
10267
|
stateMutability: "view",
|
|
11715
10268
|
type: "function",
|
|
10269
|
+
constant: true,
|
|
11716
10270
|
signature: "0xa91fa361",
|
|
11717
10271
|
},
|
|
11718
10272
|
{
|
|
@@ -11733,6 +10287,7 @@ const _abi = [
|
|
|
11733
10287
|
],
|
|
11734
10288
|
stateMutability: "view",
|
|
11735
10289
|
type: "function",
|
|
10290
|
+
constant: true,
|
|
11736
10291
|
signature: "0x891e656c",
|
|
11737
10292
|
},
|
|
11738
10293
|
{
|
|
@@ -11747,6 +10302,7 @@ const _abi = [
|
|
|
11747
10302
|
],
|
|
11748
10303
|
stateMutability: "view",
|
|
11749
10304
|
type: "function",
|
|
10305
|
+
constant: true,
|
|
11750
10306
|
signature: "0xf4b0664d",
|
|
11751
10307
|
},
|
|
11752
10308
|
{
|
|
@@ -11756,11 +10312,6 @@ const _abi = [
|
|
|
11756
10312
|
name: "_collateralIndex",
|
|
11757
10313
|
type: "uint8",
|
|
11758
10314
|
},
|
|
11759
|
-
{
|
|
11760
|
-
internalType: "address",
|
|
11761
|
-
name: "_trader",
|
|
11762
|
-
type: "address",
|
|
11763
|
-
},
|
|
11764
10315
|
{
|
|
11765
10316
|
internalType: "uint16",
|
|
11766
10317
|
name: "_pairIndex",
|
|
@@ -11782,7 +10333,8 @@ const _abi = [
|
|
|
11782
10333
|
],
|
|
11783
10334
|
stateMutability: "view",
|
|
11784
10335
|
type: "function",
|
|
11785
|
-
|
|
10336
|
+
constant: true,
|
|
10337
|
+
signature: "0x9cf0cc0e",
|
|
11786
10338
|
},
|
|
11787
10339
|
{
|
|
11788
10340
|
inputs: [],
|
|
@@ -11796,6 +10348,7 @@ const _abi = [
|
|
|
11796
10348
|
],
|
|
11797
10349
|
stateMutability: "view",
|
|
11798
10350
|
type: "function",
|
|
10351
|
+
constant: true,
|
|
11799
10352
|
signature: "0xb144bbf0",
|
|
11800
10353
|
},
|
|
11801
10354
|
{
|
|
@@ -11810,6 +10363,7 @@ const _abi = [
|
|
|
11810
10363
|
],
|
|
11811
10364
|
stateMutability: "view",
|
|
11812
10365
|
type: "function",
|
|
10366
|
+
constant: true,
|
|
11813
10367
|
signature: "0x8e667ac8",
|
|
11814
10368
|
},
|
|
11815
10369
|
{
|
|
@@ -11824,6 +10378,7 @@ const _abi = [
|
|
|
11824
10378
|
],
|
|
11825
10379
|
stateMutability: "view",
|
|
11826
10380
|
type: "function",
|
|
10381
|
+
constant: true,
|
|
11827
10382
|
signature: "0x69b53230",
|
|
11828
10383
|
},
|
|
11829
10384
|
{
|
|
@@ -11844,6 +10399,7 @@ const _abi = [
|
|
|
11844
10399
|
],
|
|
11845
10400
|
stateMutability: "view",
|
|
11846
10401
|
type: "function",
|
|
10402
|
+
constant: true,
|
|
11847
10403
|
signature: "0x10a9de60",
|
|
11848
10404
|
},
|
|
11849
10405
|
{
|
|
@@ -11858,6 +10414,7 @@ const _abi = [
|
|
|
11858
10414
|
],
|
|
11859
10415
|
stateMutability: "view",
|
|
11860
10416
|
type: "function",
|
|
10417
|
+
constant: true,
|
|
11861
10418
|
signature: "0x40884c52",
|
|
11862
10419
|
},
|
|
11863
10420
|
{
|
|
@@ -11878,6 +10435,7 @@ const _abi = [
|
|
|
11878
10435
|
],
|
|
11879
10436
|
stateMutability: "view",
|
|
11880
10437
|
type: "function",
|
|
10438
|
+
constant: true,
|
|
11881
10439
|
signature: "0x88b12d55",
|
|
11882
10440
|
},
|
|
11883
10441
|
{
|
|
@@ -11887,11 +10445,6 @@ const _abi = [
|
|
|
11887
10445
|
name: "_collateralIndex",
|
|
11888
10446
|
type: "uint8",
|
|
11889
10447
|
},
|
|
11890
|
-
{
|
|
11891
|
-
internalType: "address",
|
|
11892
|
-
name: "_trader",
|
|
11893
|
-
type: "address",
|
|
11894
|
-
},
|
|
11895
10448
|
{
|
|
11896
10449
|
internalType: "uint16",
|
|
11897
10450
|
name: "_pairIndex",
|
|
@@ -11934,7 +10487,7 @@ const _abi = [
|
|
|
11934
10487
|
outputs: [],
|
|
11935
10488
|
stateMutability: "nonpayable",
|
|
11936
10489
|
type: "function",
|
|
11937
|
-
signature: "
|
|
10490
|
+
signature: "0xf51d0dc0",
|
|
11938
10491
|
},
|
|
11939
10492
|
{
|
|
11940
10493
|
inputs: [
|
|
@@ -11986,6 +10539,7 @@ const _abi = [
|
|
|
11986
10539
|
],
|
|
11987
10540
|
stateMutability: "view",
|
|
11988
10541
|
type: "function",
|
|
10542
|
+
constant: true,
|
|
11989
10543
|
signature: "0x7d0fcd1e",
|
|
11990
10544
|
},
|
|
11991
10545
|
{
|
|
@@ -12040,389 +10594,656 @@ const _abi = [
|
|
|
12040
10594
|
],
|
|
12041
10595
|
stateMutability: "view",
|
|
12042
10596
|
type: "function",
|
|
12043
|
-
|
|
10597
|
+
constant: true,
|
|
10598
|
+
signature: "0x9f62038f",
|
|
10599
|
+
},
|
|
10600
|
+
{
|
|
10601
|
+
inputs: [],
|
|
10602
|
+
name: "getRequestCount",
|
|
10603
|
+
outputs: [
|
|
10604
|
+
{
|
|
10605
|
+
internalType: "uint256",
|
|
10606
|
+
name: "",
|
|
10607
|
+
type: "uint256",
|
|
10608
|
+
},
|
|
10609
|
+
],
|
|
10610
|
+
stateMutability: "view",
|
|
10611
|
+
type: "function",
|
|
10612
|
+
constant: true,
|
|
10613
|
+
signature: "0x3fad1834",
|
|
10614
|
+
},
|
|
10615
|
+
{
|
|
10616
|
+
inputs: [],
|
|
10617
|
+
name: "getTwapInterval",
|
|
10618
|
+
outputs: [
|
|
10619
|
+
{
|
|
10620
|
+
internalType: "uint24",
|
|
10621
|
+
name: "",
|
|
10622
|
+
type: "uint24",
|
|
10623
|
+
},
|
|
10624
|
+
],
|
|
10625
|
+
stateMutability: "view",
|
|
10626
|
+
type: "function",
|
|
10627
|
+
constant: true,
|
|
10628
|
+
signature: "0x3e742e3b",
|
|
10629
|
+
},
|
|
10630
|
+
{
|
|
10631
|
+
inputs: [
|
|
10632
|
+
{
|
|
10633
|
+
internalType: "uint8",
|
|
10634
|
+
name: "_collateralIndex",
|
|
10635
|
+
type: "uint8",
|
|
10636
|
+
},
|
|
10637
|
+
{
|
|
10638
|
+
internalType: "uint256",
|
|
10639
|
+
name: "_collateralValue",
|
|
10640
|
+
type: "uint256",
|
|
10641
|
+
},
|
|
10642
|
+
],
|
|
10643
|
+
name: "getUsdNormalizedValue",
|
|
10644
|
+
outputs: [
|
|
10645
|
+
{
|
|
10646
|
+
internalType: "uint256",
|
|
10647
|
+
name: "",
|
|
10648
|
+
type: "uint256",
|
|
10649
|
+
},
|
|
10650
|
+
],
|
|
10651
|
+
stateMutability: "view",
|
|
10652
|
+
type: "function",
|
|
10653
|
+
constant: true,
|
|
10654
|
+
signature: "0xbbad411a",
|
|
10655
|
+
},
|
|
10656
|
+
{
|
|
10657
|
+
inputs: [
|
|
10658
|
+
{
|
|
10659
|
+
internalType: "address",
|
|
10660
|
+
name: "_linkToken",
|
|
10661
|
+
type: "address",
|
|
10662
|
+
},
|
|
10663
|
+
{
|
|
10664
|
+
internalType: "contract IChainlinkFeed",
|
|
10665
|
+
name: "_linkUsdPriceFeed",
|
|
10666
|
+
type: "address",
|
|
10667
|
+
},
|
|
10668
|
+
{
|
|
10669
|
+
internalType: "uint24",
|
|
10670
|
+
name: "_twapInterval",
|
|
10671
|
+
type: "uint24",
|
|
10672
|
+
},
|
|
10673
|
+
{
|
|
10674
|
+
internalType: "uint8",
|
|
10675
|
+
name: "_minAnswers",
|
|
10676
|
+
type: "uint8",
|
|
10677
|
+
},
|
|
10678
|
+
{
|
|
10679
|
+
internalType: "address[]",
|
|
10680
|
+
name: "_nodes",
|
|
10681
|
+
type: "address[]",
|
|
10682
|
+
},
|
|
10683
|
+
{
|
|
10684
|
+
internalType: "bytes32[2]",
|
|
10685
|
+
name: "_jobIds",
|
|
10686
|
+
type: "bytes32[2]",
|
|
10687
|
+
},
|
|
10688
|
+
{
|
|
10689
|
+
internalType: "uint8[]",
|
|
10690
|
+
name: "_collateralIndices",
|
|
10691
|
+
type: "uint8[]",
|
|
10692
|
+
},
|
|
10693
|
+
{
|
|
10694
|
+
internalType: "contract IUniswapV3Pool[]",
|
|
10695
|
+
name: "_gnsCollateralUniV3Pools",
|
|
10696
|
+
type: "address[]",
|
|
10697
|
+
},
|
|
10698
|
+
{
|
|
10699
|
+
internalType: "contract IChainlinkFeed[]",
|
|
10700
|
+
name: "_collateralUsdPriceFeeds",
|
|
10701
|
+
type: "address[]",
|
|
10702
|
+
},
|
|
10703
|
+
],
|
|
10704
|
+
name: "initializePriceAggregator",
|
|
10705
|
+
outputs: [],
|
|
10706
|
+
stateMutability: "nonpayable",
|
|
10707
|
+
type: "function",
|
|
10708
|
+
signature: "0x488b411a",
|
|
10709
|
+
},
|
|
10710
|
+
{
|
|
10711
|
+
inputs: [
|
|
10712
|
+
{
|
|
10713
|
+
internalType: "uint256",
|
|
10714
|
+
name: "_index",
|
|
10715
|
+
type: "uint256",
|
|
10716
|
+
},
|
|
10717
|
+
],
|
|
10718
|
+
name: "removeOracle",
|
|
10719
|
+
outputs: [],
|
|
10720
|
+
stateMutability: "nonpayable",
|
|
10721
|
+
type: "function",
|
|
10722
|
+
signature: "0x80935dbf",
|
|
10723
|
+
},
|
|
10724
|
+
{
|
|
10725
|
+
inputs: [
|
|
10726
|
+
{
|
|
10727
|
+
internalType: "uint256",
|
|
10728
|
+
name: "_index",
|
|
10729
|
+
type: "uint256",
|
|
10730
|
+
},
|
|
10731
|
+
{
|
|
10732
|
+
internalType: "address",
|
|
10733
|
+
name: "_a",
|
|
10734
|
+
type: "address",
|
|
10735
|
+
},
|
|
10736
|
+
],
|
|
10737
|
+
name: "replaceOracle",
|
|
10738
|
+
outputs: [],
|
|
10739
|
+
stateMutability: "nonpayable",
|
|
10740
|
+
type: "function",
|
|
10741
|
+
signature: "0x25e589cd",
|
|
10742
|
+
},
|
|
10743
|
+
{
|
|
10744
|
+
inputs: [
|
|
10745
|
+
{
|
|
10746
|
+
internalType: "bytes32",
|
|
10747
|
+
name: "_jobId",
|
|
10748
|
+
type: "bytes32",
|
|
10749
|
+
},
|
|
10750
|
+
],
|
|
10751
|
+
name: "setLimitJobId",
|
|
10752
|
+
outputs: [],
|
|
10753
|
+
stateMutability: "nonpayable",
|
|
10754
|
+
type: "function",
|
|
10755
|
+
signature: "0xe0bb91c2",
|
|
10756
|
+
},
|
|
10757
|
+
{
|
|
10758
|
+
inputs: [
|
|
10759
|
+
{
|
|
10760
|
+
internalType: "bytes32",
|
|
10761
|
+
name: "_jobId",
|
|
10762
|
+
type: "bytes32",
|
|
10763
|
+
},
|
|
10764
|
+
],
|
|
10765
|
+
name: "setMarketJobId",
|
|
10766
|
+
outputs: [],
|
|
10767
|
+
stateMutability: "nonpayable",
|
|
10768
|
+
type: "function",
|
|
10769
|
+
signature: "0x85f276b8",
|
|
10770
|
+
},
|
|
10771
|
+
{
|
|
10772
|
+
inputs: [
|
|
10773
|
+
{
|
|
10774
|
+
internalType: "uint8",
|
|
10775
|
+
name: "_collateralIndex",
|
|
10776
|
+
type: "uint8",
|
|
10777
|
+
},
|
|
10778
|
+
{
|
|
10779
|
+
internalType: "contract IUniswapV3Pool",
|
|
10780
|
+
name: "_uniV3Pool",
|
|
10781
|
+
type: "address",
|
|
10782
|
+
},
|
|
10783
|
+
],
|
|
10784
|
+
name: "updateCollateralGnsUniV3Pool",
|
|
10785
|
+
outputs: [],
|
|
10786
|
+
stateMutability: "nonpayable",
|
|
10787
|
+
type: "function",
|
|
10788
|
+
signature: "0xea06d1bd",
|
|
10789
|
+
},
|
|
10790
|
+
{
|
|
10791
|
+
inputs: [
|
|
10792
|
+
{
|
|
10793
|
+
internalType: "uint8",
|
|
10794
|
+
name: "_collateralIndex",
|
|
10795
|
+
type: "uint8",
|
|
10796
|
+
},
|
|
10797
|
+
{
|
|
10798
|
+
internalType: "contract IChainlinkFeed",
|
|
10799
|
+
name: "_value",
|
|
10800
|
+
type: "address",
|
|
10801
|
+
},
|
|
10802
|
+
],
|
|
10803
|
+
name: "updateCollateralUsdPriceFeed",
|
|
10804
|
+
outputs: [],
|
|
10805
|
+
stateMutability: "nonpayable",
|
|
10806
|
+
type: "function",
|
|
10807
|
+
signature: "0xc07d2844",
|
|
10808
|
+
},
|
|
10809
|
+
{
|
|
10810
|
+
inputs: [
|
|
10811
|
+
{
|
|
10812
|
+
internalType: "contract IChainlinkFeed",
|
|
10813
|
+
name: "_value",
|
|
10814
|
+
type: "address",
|
|
10815
|
+
},
|
|
10816
|
+
],
|
|
10817
|
+
name: "updateLinkUsdPriceFeed",
|
|
10818
|
+
outputs: [],
|
|
10819
|
+
stateMutability: "nonpayable",
|
|
10820
|
+
type: "function",
|
|
10821
|
+
signature: "0x5beda778",
|
|
10822
|
+
},
|
|
10823
|
+
{
|
|
10824
|
+
inputs: [
|
|
10825
|
+
{
|
|
10826
|
+
internalType: "uint8",
|
|
10827
|
+
name: "_value",
|
|
10828
|
+
type: "uint8",
|
|
10829
|
+
},
|
|
10830
|
+
],
|
|
10831
|
+
name: "updateMinAnswers",
|
|
10832
|
+
outputs: [],
|
|
10833
|
+
stateMutability: "nonpayable",
|
|
10834
|
+
type: "function",
|
|
10835
|
+
signature: "0x44eb8ba6",
|
|
12044
10836
|
},
|
|
12045
10837
|
{
|
|
12046
|
-
inputs: [
|
|
12047
|
-
name: "getRequestCount",
|
|
12048
|
-
outputs: [
|
|
10838
|
+
inputs: [
|
|
12049
10839
|
{
|
|
12050
|
-
internalType: "
|
|
12051
|
-
name: "",
|
|
12052
|
-
type: "
|
|
10840
|
+
internalType: "uint24",
|
|
10841
|
+
name: "_twapInterval",
|
|
10842
|
+
type: "uint24",
|
|
12053
10843
|
},
|
|
12054
10844
|
],
|
|
12055
|
-
|
|
10845
|
+
name: "updateTwapInterval",
|
|
10846
|
+
outputs: [],
|
|
10847
|
+
stateMutability: "nonpayable",
|
|
12056
10848
|
type: "function",
|
|
12057
|
-
signature: "
|
|
10849
|
+
signature: "0xb166a495",
|
|
12058
10850
|
},
|
|
12059
10851
|
{
|
|
12060
10852
|
inputs: [],
|
|
12061
|
-
name: "
|
|
12062
|
-
|
|
10853
|
+
name: "Incomplete",
|
|
10854
|
+
type: "error",
|
|
10855
|
+
},
|
|
10856
|
+
{
|
|
10857
|
+
inputs: [],
|
|
10858
|
+
name: "InvalidCollateral",
|
|
10859
|
+
type: "error",
|
|
10860
|
+
},
|
|
10861
|
+
{
|
|
10862
|
+
inputs: [],
|
|
10863
|
+
name: "InvalidMaxIndex",
|
|
10864
|
+
type: "error",
|
|
10865
|
+
},
|
|
10866
|
+
{
|
|
10867
|
+
inputs: [],
|
|
10868
|
+
name: "StateAlreadyCopied",
|
|
10869
|
+
type: "error",
|
|
10870
|
+
},
|
|
10871
|
+
{
|
|
10872
|
+
inputs: [],
|
|
10873
|
+
name: "TradingNotPaused",
|
|
10874
|
+
type: "error",
|
|
10875
|
+
},
|
|
10876
|
+
{
|
|
10877
|
+
inputs: [],
|
|
10878
|
+
name: "UnknownChain",
|
|
10879
|
+
type: "error",
|
|
10880
|
+
},
|
|
10881
|
+
{
|
|
10882
|
+
anonymous: false,
|
|
10883
|
+
inputs: [
|
|
12063
10884
|
{
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
10885
|
+
indexed: false,
|
|
10886
|
+
internalType: "uint8",
|
|
10887
|
+
name: "collateralIndex",
|
|
10888
|
+
type: "uint8",
|
|
10889
|
+
},
|
|
10890
|
+
{
|
|
10891
|
+
indexed: false,
|
|
10892
|
+
internalType: "uint16",
|
|
10893
|
+
name: "groupsCount",
|
|
10894
|
+
type: "uint16",
|
|
12067
10895
|
},
|
|
12068
10896
|
],
|
|
12069
|
-
|
|
12070
|
-
type: "
|
|
12071
|
-
signature: "
|
|
10897
|
+
name: "BorrowingFeesGroupsCopied",
|
|
10898
|
+
type: "event",
|
|
10899
|
+
signature: "0x1b43c788d4b7cc12f87bcc2d82bb79af4e020b6ce5873073dd03aeeb260f9193",
|
|
12072
10900
|
},
|
|
12073
10901
|
{
|
|
10902
|
+
anonymous: false,
|
|
12074
10903
|
inputs: [
|
|
12075
10904
|
{
|
|
10905
|
+
indexed: false,
|
|
12076
10906
|
internalType: "uint8",
|
|
12077
|
-
name: "
|
|
10907
|
+
name: "collateralIndex",
|
|
12078
10908
|
type: "uint8",
|
|
12079
10909
|
},
|
|
12080
10910
|
{
|
|
10911
|
+
indexed: false,
|
|
12081
10912
|
internalType: "uint256",
|
|
12082
|
-
name: "
|
|
10913
|
+
name: "pairsCount",
|
|
12083
10914
|
type: "uint256",
|
|
12084
10915
|
},
|
|
12085
10916
|
],
|
|
12086
|
-
name: "
|
|
12087
|
-
|
|
10917
|
+
name: "BorrowingFeesPairOisCopied",
|
|
10918
|
+
type: "event",
|
|
10919
|
+
signature: "0x8140b9f8c050d5c619189c1086a0b71e37f7a64570832aa99630e213bc573db3",
|
|
10920
|
+
},
|
|
10921
|
+
{
|
|
10922
|
+
anonymous: false,
|
|
10923
|
+
inputs: [
|
|
10924
|
+
{
|
|
10925
|
+
indexed: false,
|
|
10926
|
+
internalType: "uint8",
|
|
10927
|
+
name: "collateralIndex",
|
|
10928
|
+
type: "uint8",
|
|
10929
|
+
},
|
|
12088
10930
|
{
|
|
10931
|
+
indexed: false,
|
|
12089
10932
|
internalType: "uint256",
|
|
12090
|
-
name: "",
|
|
10933
|
+
name: "pairsCount",
|
|
12091
10934
|
type: "uint256",
|
|
12092
10935
|
},
|
|
12093
10936
|
],
|
|
12094
|
-
|
|
12095
|
-
type: "
|
|
12096
|
-
signature: "
|
|
10937
|
+
name: "BorrowingFeesPairsCopied",
|
|
10938
|
+
type: "event",
|
|
10939
|
+
signature: "0x8d288d49f0d1e6f6c794cbf2878b79d58f15aea64cba568a9eb161f220ce4e9c",
|
|
12097
10940
|
},
|
|
12098
10941
|
{
|
|
10942
|
+
anonymous: false,
|
|
12099
10943
|
inputs: [
|
|
12100
10944
|
{
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
10945
|
+
indexed: false,
|
|
10946
|
+
internalType: "uint8",
|
|
10947
|
+
name: "collateralIndex",
|
|
10948
|
+
type: "uint8",
|
|
12104
10949
|
},
|
|
12105
10950
|
{
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
10951
|
+
indexed: false,
|
|
10952
|
+
internalType: "uint256",
|
|
10953
|
+
name: "balance",
|
|
10954
|
+
type: "uint256",
|
|
12109
10955
|
},
|
|
12110
10956
|
{
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
10957
|
+
indexed: false,
|
|
10958
|
+
internalType: "uint256",
|
|
10959
|
+
name: "govFees",
|
|
10960
|
+
type: "uint256",
|
|
12114
10961
|
},
|
|
10962
|
+
],
|
|
10963
|
+
name: "CollateralTransferred",
|
|
10964
|
+
type: "event",
|
|
10965
|
+
signature: "0x9c480fe4b458d282b357cd084719069ad52a0f61b3cad1a5404cad84275df95d",
|
|
10966
|
+
},
|
|
10967
|
+
{
|
|
10968
|
+
anonymous: false,
|
|
10969
|
+
inputs: [
|
|
12115
10970
|
{
|
|
10971
|
+
indexed: false,
|
|
12116
10972
|
internalType: "uint8",
|
|
12117
|
-
name: "
|
|
10973
|
+
name: "collateralIndex",
|
|
12118
10974
|
type: "uint8",
|
|
12119
10975
|
},
|
|
12120
10976
|
{
|
|
12121
|
-
|
|
12122
|
-
|
|
12123
|
-
|
|
10977
|
+
indexed: false,
|
|
10978
|
+
internalType: "address",
|
|
10979
|
+
name: "trader",
|
|
10980
|
+
type: "address",
|
|
12124
10981
|
},
|
|
12125
10982
|
{
|
|
12126
|
-
|
|
12127
|
-
|
|
12128
|
-
|
|
10983
|
+
indexed: false,
|
|
10984
|
+
internalType: "uint256",
|
|
10985
|
+
name: "pairIndex",
|
|
10986
|
+
type: "uint256",
|
|
12129
10987
|
},
|
|
12130
10988
|
{
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
10989
|
+
indexed: false,
|
|
10990
|
+
internalType: "uint256",
|
|
10991
|
+
name: "index",
|
|
10992
|
+
type: "uint256",
|
|
12134
10993
|
},
|
|
10994
|
+
],
|
|
10995
|
+
name: "LegacyLimitOrderSkipped",
|
|
10996
|
+
type: "event",
|
|
10997
|
+
signature: "0xe2db30bf307122de186fe744495a674e475b322106bcd2258de1ec674a72204f",
|
|
10998
|
+
},
|
|
10999
|
+
{
|
|
11000
|
+
anonymous: false,
|
|
11001
|
+
inputs: [
|
|
12135
11002
|
{
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
|
|
12140
|
-
type: "address",
|
|
12141
|
-
},
|
|
12142
|
-
{
|
|
12143
|
-
internalType: "enum IPriceAggregator.PoolType",
|
|
12144
|
-
name: "poolType",
|
|
12145
|
-
type: "uint8",
|
|
12146
|
-
},
|
|
12147
|
-
],
|
|
12148
|
-
internalType: "struct IPriceAggregator.LiquidityPoolInput[]",
|
|
12149
|
-
name: "_gnsCollateralLiquidityPools",
|
|
12150
|
-
type: "tuple[]",
|
|
11003
|
+
indexed: false,
|
|
11004
|
+
internalType: "uint8",
|
|
11005
|
+
name: "collateralIndex",
|
|
11006
|
+
type: "uint8",
|
|
12151
11007
|
},
|
|
12152
11008
|
{
|
|
12153
|
-
|
|
12154
|
-
|
|
12155
|
-
|
|
11009
|
+
indexed: false,
|
|
11010
|
+
internalType: "uint256",
|
|
11011
|
+
name: "fromIndex",
|
|
11012
|
+
type: "uint256",
|
|
11013
|
+
},
|
|
11014
|
+
{
|
|
11015
|
+
indexed: false,
|
|
11016
|
+
internalType: "uint256",
|
|
11017
|
+
name: "toIndex",
|
|
11018
|
+
type: "uint256",
|
|
12156
11019
|
},
|
|
12157
11020
|
],
|
|
12158
|
-
name: "
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
type: "function",
|
|
12162
|
-
signature: "0xf1dd8b66",
|
|
11021
|
+
name: "LimitsCopied",
|
|
11022
|
+
type: "event",
|
|
11023
|
+
signature: "0x964a4bb7d7d1ffdcfef28a704276aaaf213b8f4661869e1da12a78f7aafb7ece",
|
|
12163
11024
|
},
|
|
12164
11025
|
{
|
|
11026
|
+
anonymous: false,
|
|
12165
11027
|
inputs: [
|
|
12166
11028
|
{
|
|
12167
|
-
|
|
12168
|
-
|
|
12169
|
-
|
|
11029
|
+
indexed: false,
|
|
11030
|
+
internalType: "uint8",
|
|
11031
|
+
name: "collateralIndex",
|
|
11032
|
+
type: "uint8",
|
|
12170
11033
|
},
|
|
12171
11034
|
],
|
|
12172
|
-
name: "
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
type: "function",
|
|
12176
|
-
signature: "0x80935dbf",
|
|
11035
|
+
name: "MarkedAsDone",
|
|
11036
|
+
type: "event",
|
|
11037
|
+
signature: "0x3fc951e21ca09685afb9ddb09ddc070bcc0a4df5a83e30e9d89c8d8dfae44e9b",
|
|
12177
11038
|
},
|
|
12178
11039
|
{
|
|
11040
|
+
anonymous: false,
|
|
12179
11041
|
inputs: [
|
|
12180
11042
|
{
|
|
11043
|
+
indexed: false,
|
|
11044
|
+
internalType: "uint8",
|
|
11045
|
+
name: "collateralIndex",
|
|
11046
|
+
type: "uint8",
|
|
11047
|
+
},
|
|
11048
|
+
{
|
|
11049
|
+
indexed: false,
|
|
12181
11050
|
internalType: "uint256",
|
|
12182
|
-
name: "
|
|
11051
|
+
name: "pairIndex",
|
|
12183
11052
|
type: "uint256",
|
|
12184
11053
|
},
|
|
12185
11054
|
{
|
|
12186
|
-
|
|
12187
|
-
|
|
12188
|
-
|
|
11055
|
+
indexed: false,
|
|
11056
|
+
internalType: "uint256",
|
|
11057
|
+
name: "tradersCount",
|
|
11058
|
+
type: "uint256",
|
|
12189
11059
|
},
|
|
12190
11060
|
],
|
|
12191
|
-
name: "
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
type: "function",
|
|
12195
|
-
signature: "0x25e589cd",
|
|
11061
|
+
name: "PairTradesCopied",
|
|
11062
|
+
type: "event",
|
|
11063
|
+
signature: "0x7b6ebdacba0b68936d0a6c968dcb4b94361854c8bbbb9cbf7c4089b21309e1ac",
|
|
12196
11064
|
},
|
|
12197
11065
|
{
|
|
11066
|
+
anonymous: false,
|
|
12198
11067
|
inputs: [
|
|
12199
11068
|
{
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
11069
|
+
indexed: false,
|
|
11070
|
+
internalType: "uint8",
|
|
11071
|
+
name: "collateralIndex",
|
|
11072
|
+
type: "uint8",
|
|
12203
11073
|
},
|
|
12204
|
-
],
|
|
12205
|
-
name: "setLimitJobId",
|
|
12206
|
-
outputs: [],
|
|
12207
|
-
stateMutability: "nonpayable",
|
|
12208
|
-
type: "function",
|
|
12209
|
-
signature: "0xe0bb91c2",
|
|
12210
|
-
},
|
|
12211
|
-
{
|
|
12212
|
-
inputs: [
|
|
12213
11074
|
{
|
|
12214
|
-
|
|
12215
|
-
|
|
12216
|
-
|
|
11075
|
+
indexed: false,
|
|
11076
|
+
internalType: "address",
|
|
11077
|
+
name: "trader",
|
|
11078
|
+
type: "address",
|
|
11079
|
+
},
|
|
11080
|
+
{
|
|
11081
|
+
indexed: false,
|
|
11082
|
+
internalType: "uint256",
|
|
11083
|
+
name: "pairIndex",
|
|
11084
|
+
type: "uint256",
|
|
11085
|
+
},
|
|
11086
|
+
{
|
|
11087
|
+
indexed: false,
|
|
11088
|
+
internalType: "uint256",
|
|
11089
|
+
name: "prevIndex",
|
|
11090
|
+
type: "uint256",
|
|
11091
|
+
},
|
|
11092
|
+
{
|
|
11093
|
+
indexed: false,
|
|
11094
|
+
internalType: "uint256",
|
|
11095
|
+
name: "newIndex",
|
|
11096
|
+
type: "uint256",
|
|
12217
11097
|
},
|
|
12218
11098
|
],
|
|
12219
|
-
name: "
|
|
12220
|
-
|
|
12221
|
-
|
|
12222
|
-
type: "function",
|
|
12223
|
-
signature: "0x85f276b8",
|
|
11099
|
+
name: "TradeCopied",
|
|
11100
|
+
type: "event",
|
|
11101
|
+
signature: "0x9a2e687f2e96cb6af8f2dc868ea2def2f6e7ceae23735aae78c25c8ab0c8a81b",
|
|
12224
11102
|
},
|
|
12225
11103
|
{
|
|
11104
|
+
anonymous: false,
|
|
12226
11105
|
inputs: [
|
|
12227
11106
|
{
|
|
11107
|
+
indexed: false,
|
|
12228
11108
|
internalType: "uint8",
|
|
12229
|
-
name: "
|
|
11109
|
+
name: "collateralIndex",
|
|
12230
11110
|
type: "uint8",
|
|
12231
11111
|
},
|
|
12232
11112
|
{
|
|
12233
|
-
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
type: "address",
|
|
12238
|
-
},
|
|
12239
|
-
{
|
|
12240
|
-
internalType: "enum IPriceAggregator.PoolType",
|
|
12241
|
-
name: "poolType",
|
|
12242
|
-
type: "uint8",
|
|
12243
|
-
},
|
|
12244
|
-
],
|
|
12245
|
-
internalType: "struct IPriceAggregator.LiquidityPoolInput",
|
|
12246
|
-
name: "_liquidityPoolInput",
|
|
12247
|
-
type: "tuple",
|
|
11113
|
+
indexed: false,
|
|
11114
|
+
internalType: "uint256",
|
|
11115
|
+
name: "tradersCount",
|
|
11116
|
+
type: "uint256",
|
|
12248
11117
|
},
|
|
12249
11118
|
],
|
|
12250
|
-
name: "
|
|
12251
|
-
|
|
12252
|
-
|
|
12253
|
-
type: "function",
|
|
12254
|
-
signature: "0x2caa6f8a",
|
|
11119
|
+
name: "TraderDelegationsCopied",
|
|
11120
|
+
type: "event",
|
|
11121
|
+
signature: "0x0b9649501e0355375bdfcd349c799126512858a0791e564ebadee948941c799d",
|
|
12255
11122
|
},
|
|
12256
11123
|
{
|
|
11124
|
+
anonymous: false,
|
|
12257
11125
|
inputs: [
|
|
12258
11126
|
{
|
|
11127
|
+
indexed: false,
|
|
12259
11128
|
internalType: "uint8",
|
|
12260
|
-
name: "
|
|
11129
|
+
name: "collateralIndex",
|
|
12261
11130
|
type: "uint8",
|
|
12262
11131
|
},
|
|
12263
11132
|
{
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
11133
|
+
indexed: false,
|
|
11134
|
+
internalType: "uint16",
|
|
11135
|
+
name: "fromPairIndex",
|
|
11136
|
+
type: "uint16",
|
|
11137
|
+
},
|
|
11138
|
+
{
|
|
11139
|
+
indexed: false,
|
|
11140
|
+
internalType: "uint16",
|
|
11141
|
+
name: "toPairIndex",
|
|
11142
|
+
type: "uint16",
|
|
12267
11143
|
},
|
|
12268
11144
|
],
|
|
12269
|
-
name: "
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
type: "function",
|
|
12273
|
-
signature: "0xc07d2844",
|
|
11145
|
+
name: "TradesCopied",
|
|
11146
|
+
type: "event",
|
|
11147
|
+
signature: "0xbed7a2543d6e2b6b127e58a1c8224d7e8e2b05db57afeaafdcd3bf5e98a25c5b",
|
|
12274
11148
|
},
|
|
12275
11149
|
{
|
|
12276
11150
|
inputs: [
|
|
12277
11151
|
{
|
|
12278
|
-
internalType: "
|
|
12279
|
-
name: "
|
|
12280
|
-
type: "
|
|
11152
|
+
internalType: "uint8",
|
|
11153
|
+
name: "_collateralIndex",
|
|
11154
|
+
type: "uint8",
|
|
11155
|
+
},
|
|
11156
|
+
{
|
|
11157
|
+
internalType: "address[]",
|
|
11158
|
+
name: "_traders",
|
|
11159
|
+
type: "address[]",
|
|
12281
11160
|
},
|
|
12282
11161
|
],
|
|
12283
|
-
name: "
|
|
11162
|
+
name: "copyAllState",
|
|
12284
11163
|
outputs: [],
|
|
12285
11164
|
stateMutability: "nonpayable",
|
|
12286
11165
|
type: "function",
|
|
12287
|
-
signature: "
|
|
11166
|
+
signature: "0x16d6761c",
|
|
12288
11167
|
},
|
|
12289
11168
|
{
|
|
12290
11169
|
inputs: [
|
|
12291
11170
|
{
|
|
12292
11171
|
internalType: "uint8",
|
|
12293
|
-
name: "
|
|
11172
|
+
name: "_collateralIndex",
|
|
12294
11173
|
type: "uint8",
|
|
12295
11174
|
},
|
|
12296
11175
|
],
|
|
12297
|
-
name: "
|
|
11176
|
+
name: "copyBorrowingFeesGroups",
|
|
12298
11177
|
outputs: [],
|
|
12299
11178
|
stateMutability: "nonpayable",
|
|
12300
11179
|
type: "function",
|
|
12301
|
-
signature: "
|
|
11180
|
+
signature: "0xbb28454e",
|
|
12302
11181
|
},
|
|
12303
11182
|
{
|
|
12304
11183
|
inputs: [
|
|
12305
11184
|
{
|
|
12306
|
-
internalType: "
|
|
12307
|
-
name: "
|
|
12308
|
-
type: "
|
|
11185
|
+
internalType: "uint8",
|
|
11186
|
+
name: "_collateralIndex",
|
|
11187
|
+
type: "uint8",
|
|
12309
11188
|
},
|
|
12310
11189
|
],
|
|
12311
|
-
name: "
|
|
11190
|
+
name: "copyBorrowingFeesPairs",
|
|
12312
11191
|
outputs: [],
|
|
12313
11192
|
stateMutability: "nonpayable",
|
|
12314
11193
|
type: "function",
|
|
12315
|
-
signature: "
|
|
12316
|
-
},
|
|
12317
|
-
{
|
|
12318
|
-
inputs: [],
|
|
12319
|
-
name: "InvalidShareSum",
|
|
12320
|
-
type: "error",
|
|
11194
|
+
signature: "0xf1234caa",
|
|
12321
11195
|
},
|
|
12322
11196
|
{
|
|
12323
|
-
anonymous: false,
|
|
12324
11197
|
inputs: [
|
|
12325
11198
|
{
|
|
12326
|
-
indexed: true,
|
|
12327
11199
|
internalType: "uint8",
|
|
12328
|
-
name: "
|
|
11200
|
+
name: "_collateralIndex",
|
|
12329
11201
|
type: "uint8",
|
|
12330
11202
|
},
|
|
12331
11203
|
{
|
|
12332
|
-
indexed: false,
|
|
12333
11204
|
internalType: "uint256",
|
|
12334
|
-
name: "
|
|
11205
|
+
name: "_maxIndex",
|
|
12335
11206
|
type: "uint256",
|
|
12336
11207
|
},
|
|
12337
11208
|
],
|
|
12338
|
-
name: "
|
|
12339
|
-
|
|
12340
|
-
|
|
11209
|
+
name: "copyLimits",
|
|
11210
|
+
outputs: [],
|
|
11211
|
+
stateMutability: "nonpayable",
|
|
11212
|
+
type: "function",
|
|
11213
|
+
signature: "0xa2da5cba",
|
|
12341
11214
|
},
|
|
12342
11215
|
{
|
|
12343
|
-
anonymous: false,
|
|
12344
11216
|
inputs: [
|
|
12345
11217
|
{
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
name: "gnsTreasury",
|
|
12350
|
-
type: "address",
|
|
12351
|
-
},
|
|
12352
|
-
{
|
|
12353
|
-
internalType: "uint64",
|
|
12354
|
-
name: "treasuryShareP",
|
|
12355
|
-
type: "uint64",
|
|
12356
|
-
},
|
|
12357
|
-
{
|
|
12358
|
-
internalType: "uint64",
|
|
12359
|
-
name: "stakingShareP",
|
|
12360
|
-
type: "uint64",
|
|
12361
|
-
},
|
|
12362
|
-
{
|
|
12363
|
-
internalType: "uint64",
|
|
12364
|
-
name: "burnShareP",
|
|
12365
|
-
type: "uint64",
|
|
12366
|
-
},
|
|
12367
|
-
{
|
|
12368
|
-
internalType: "uint64",
|
|
12369
|
-
name: "premiumP",
|
|
12370
|
-
type: "uint64",
|
|
12371
|
-
},
|
|
12372
|
-
],
|
|
12373
|
-
indexed: false,
|
|
12374
|
-
internalType: "struct IOtc.OtcConfig",
|
|
12375
|
-
name: "config",
|
|
12376
|
-
type: "tuple",
|
|
11218
|
+
internalType: "uint8",
|
|
11219
|
+
name: "_collateralIndex",
|
|
11220
|
+
type: "uint8",
|
|
12377
11221
|
},
|
|
12378
11222
|
],
|
|
12379
|
-
name: "
|
|
12380
|
-
|
|
12381
|
-
|
|
11223
|
+
name: "copyPairOis",
|
|
11224
|
+
outputs: [],
|
|
11225
|
+
stateMutability: "nonpayable",
|
|
11226
|
+
type: "function",
|
|
11227
|
+
signature: "0xb9fa5364",
|
|
12382
11228
|
},
|
|
12383
11229
|
{
|
|
12384
|
-
anonymous: false,
|
|
12385
11230
|
inputs: [
|
|
12386
11231
|
{
|
|
12387
|
-
indexed: true,
|
|
12388
11232
|
internalType: "uint8",
|
|
12389
|
-
name: "
|
|
11233
|
+
name: "_collateralIndex",
|
|
12390
11234
|
type: "uint8",
|
|
12391
11235
|
},
|
|
12392
11236
|
{
|
|
12393
|
-
|
|
12394
|
-
|
|
12395
|
-
|
|
12396
|
-
type: "uint256",
|
|
12397
|
-
},
|
|
12398
|
-
{
|
|
12399
|
-
indexed: false,
|
|
12400
|
-
internalType: "uint256",
|
|
12401
|
-
name: "gnsPriceCollateral",
|
|
12402
|
-
type: "uint256",
|
|
12403
|
-
},
|
|
12404
|
-
{
|
|
12405
|
-
indexed: false,
|
|
12406
|
-
internalType: "uint256",
|
|
12407
|
-
name: "treasuryAmountGns",
|
|
12408
|
-
type: "uint256",
|
|
12409
|
-
},
|
|
12410
|
-
{
|
|
12411
|
-
indexed: false,
|
|
12412
|
-
internalType: "uint256",
|
|
12413
|
-
name: "stakingAmountGns",
|
|
12414
|
-
type: "uint256",
|
|
12415
|
-
},
|
|
12416
|
-
{
|
|
12417
|
-
indexed: false,
|
|
12418
|
-
internalType: "uint256",
|
|
12419
|
-
name: "burnAmountGns",
|
|
12420
|
-
type: "uint256",
|
|
11237
|
+
internalType: "address[]",
|
|
11238
|
+
name: "_traders",
|
|
11239
|
+
type: "address[]",
|
|
12421
11240
|
},
|
|
12422
11241
|
],
|
|
12423
|
-
name: "
|
|
12424
|
-
|
|
12425
|
-
|
|
11242
|
+
name: "copyTraderDelegations",
|
|
11243
|
+
outputs: [],
|
|
11244
|
+
stateMutability: "nonpayable",
|
|
11245
|
+
type: "function",
|
|
11246
|
+
signature: "0x2041cb92",
|
|
12426
11247
|
},
|
|
12427
11248
|
{
|
|
12428
11249
|
inputs: [
|
|
@@ -12432,16 +11253,16 @@ const _abi = [
|
|
|
12432
11253
|
type: "uint8",
|
|
12433
11254
|
},
|
|
12434
11255
|
{
|
|
12435
|
-
internalType: "
|
|
12436
|
-
name: "
|
|
12437
|
-
type: "
|
|
11256
|
+
internalType: "uint16",
|
|
11257
|
+
name: "_maxPairIndex",
|
|
11258
|
+
type: "uint16",
|
|
12438
11259
|
},
|
|
12439
11260
|
],
|
|
12440
|
-
name: "
|
|
11261
|
+
name: "copyTrades",
|
|
12441
11262
|
outputs: [],
|
|
12442
11263
|
stateMutability: "nonpayable",
|
|
12443
11264
|
type: "function",
|
|
12444
|
-
signature: "
|
|
11265
|
+
signature: "0xf3828168",
|
|
12445
11266
|
},
|
|
12446
11267
|
{
|
|
12447
11268
|
inputs: [
|
|
@@ -12450,59 +11271,23 @@ const _abi = [
|
|
|
12450
11271
|
name: "_collateralIndex",
|
|
12451
11272
|
type: "uint8",
|
|
12452
11273
|
},
|
|
12453
|
-
],
|
|
12454
|
-
name: "getOtcBalance",
|
|
12455
|
-
outputs: [
|
|
12456
11274
|
{
|
|
12457
|
-
internalType: "
|
|
12458
|
-
name: "",
|
|
12459
|
-
type: "
|
|
11275
|
+
internalType: "enum ITradingStateCopy.COPY_STAGE",
|
|
11276
|
+
name: "_stage",
|
|
11277
|
+
type: "uint8",
|
|
12460
11278
|
},
|
|
12461
11279
|
],
|
|
12462
|
-
|
|
12463
|
-
type: "function",
|
|
12464
|
-
signature: "0x2b08f467",
|
|
12465
|
-
},
|
|
12466
|
-
{
|
|
12467
|
-
inputs: [],
|
|
12468
|
-
name: "getOtcConfig",
|
|
11280
|
+
name: "getCollateralStageState",
|
|
12469
11281
|
outputs: [
|
|
12470
11282
|
{
|
|
12471
|
-
|
|
12472
|
-
{
|
|
12473
|
-
internalType: "address",
|
|
12474
|
-
name: "gnsTreasury",
|
|
12475
|
-
type: "address",
|
|
12476
|
-
},
|
|
12477
|
-
{
|
|
12478
|
-
internalType: "uint64",
|
|
12479
|
-
name: "treasuryShareP",
|
|
12480
|
-
type: "uint64",
|
|
12481
|
-
},
|
|
12482
|
-
{
|
|
12483
|
-
internalType: "uint64",
|
|
12484
|
-
name: "stakingShareP",
|
|
12485
|
-
type: "uint64",
|
|
12486
|
-
},
|
|
12487
|
-
{
|
|
12488
|
-
internalType: "uint64",
|
|
12489
|
-
name: "burnShareP",
|
|
12490
|
-
type: "uint64",
|
|
12491
|
-
},
|
|
12492
|
-
{
|
|
12493
|
-
internalType: "uint64",
|
|
12494
|
-
name: "premiumP",
|
|
12495
|
-
type: "uint64",
|
|
12496
|
-
},
|
|
12497
|
-
],
|
|
12498
|
-
internalType: "struct IOtc.OtcConfig",
|
|
11283
|
+
internalType: "bool",
|
|
12499
11284
|
name: "",
|
|
12500
|
-
type: "
|
|
11285
|
+
type: "bool",
|
|
12501
11286
|
},
|
|
12502
11287
|
],
|
|
12503
11288
|
stateMutability: "view",
|
|
12504
11289
|
type: "function",
|
|
12505
|
-
signature: "
|
|
11290
|
+
signature: "0x3298c266",
|
|
12506
11291
|
},
|
|
12507
11292
|
{
|
|
12508
11293
|
inputs: [
|
|
@@ -12512,58 +11297,27 @@ const _abi = [
|
|
|
12512
11297
|
type: "uint8",
|
|
12513
11298
|
},
|
|
12514
11299
|
],
|
|
12515
|
-
name: "
|
|
11300
|
+
name: "getCollateralState",
|
|
12516
11301
|
outputs: [
|
|
11302
|
+
{
|
|
11303
|
+
internalType: "enum ITradingStateCopy.COPY_STATE",
|
|
11304
|
+
name: "",
|
|
11305
|
+
type: "uint8",
|
|
11306
|
+
},
|
|
12517
11307
|
{
|
|
12518
11308
|
internalType: "uint256",
|
|
12519
11309
|
name: "",
|
|
12520
11310
|
type: "uint256",
|
|
12521
11311
|
},
|
|
12522
|
-
],
|
|
12523
|
-
stateMutability: "view",
|
|
12524
|
-
type: "function",
|
|
12525
|
-
signature: "0xa98113e0",
|
|
12526
|
-
},
|
|
12527
|
-
{
|
|
12528
|
-
inputs: [
|
|
12529
11312
|
{
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
|
|
12533
|
-
name: "gnsTreasury",
|
|
12534
|
-
type: "address",
|
|
12535
|
-
},
|
|
12536
|
-
{
|
|
12537
|
-
internalType: "uint64",
|
|
12538
|
-
name: "treasuryShareP",
|
|
12539
|
-
type: "uint64",
|
|
12540
|
-
},
|
|
12541
|
-
{
|
|
12542
|
-
internalType: "uint64",
|
|
12543
|
-
name: "stakingShareP",
|
|
12544
|
-
type: "uint64",
|
|
12545
|
-
},
|
|
12546
|
-
{
|
|
12547
|
-
internalType: "uint64",
|
|
12548
|
-
name: "burnShareP",
|
|
12549
|
-
type: "uint64",
|
|
12550
|
-
},
|
|
12551
|
-
{
|
|
12552
|
-
internalType: "uint64",
|
|
12553
|
-
name: "premiumP",
|
|
12554
|
-
type: "uint64",
|
|
12555
|
-
},
|
|
12556
|
-
],
|
|
12557
|
-
internalType: "struct IOtc.OtcConfig",
|
|
12558
|
-
name: "_config",
|
|
12559
|
-
type: "tuple",
|
|
11313
|
+
internalType: "uint16",
|
|
11314
|
+
name: "",
|
|
11315
|
+
type: "uint16",
|
|
12560
11316
|
},
|
|
12561
11317
|
],
|
|
12562
|
-
|
|
12563
|
-
outputs: [],
|
|
12564
|
-
stateMutability: "nonpayable",
|
|
11318
|
+
stateMutability: "view",
|
|
12565
11319
|
type: "function",
|
|
12566
|
-
signature: "
|
|
11320
|
+
signature: "0xcf4bb1a9",
|
|
12567
11321
|
},
|
|
12568
11322
|
{
|
|
12569
11323
|
inputs: [
|
|
@@ -12572,58 +11326,26 @@ const _abi = [
|
|
|
12572
11326
|
name: "_collateralIndex",
|
|
12573
11327
|
type: "uint8",
|
|
12574
11328
|
},
|
|
12575
|
-
{
|
|
12576
|
-
internalType: "uint256",
|
|
12577
|
-
name: "_collateralAmount",
|
|
12578
|
-
type: "uint256",
|
|
12579
|
-
},
|
|
12580
11329
|
],
|
|
12581
|
-
name: "
|
|
11330
|
+
name: "markAsDone",
|
|
12582
11331
|
outputs: [],
|
|
12583
11332
|
stateMutability: "nonpayable",
|
|
12584
11333
|
type: "function",
|
|
12585
|
-
signature: "
|
|
11334
|
+
signature: "0xd7a5d283",
|
|
12586
11335
|
},
|
|
12587
11336
|
{
|
|
12588
11337
|
inputs: [
|
|
12589
11338
|
{
|
|
12590
|
-
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
name: "gnsTreasury",
|
|
12594
|
-
type: "address",
|
|
12595
|
-
},
|
|
12596
|
-
{
|
|
12597
|
-
internalType: "uint64",
|
|
12598
|
-
name: "treasuryShareP",
|
|
12599
|
-
type: "uint64",
|
|
12600
|
-
},
|
|
12601
|
-
{
|
|
12602
|
-
internalType: "uint64",
|
|
12603
|
-
name: "stakingShareP",
|
|
12604
|
-
type: "uint64",
|
|
12605
|
-
},
|
|
12606
|
-
{
|
|
12607
|
-
internalType: "uint64",
|
|
12608
|
-
name: "burnShareP",
|
|
12609
|
-
type: "uint64",
|
|
12610
|
-
},
|
|
12611
|
-
{
|
|
12612
|
-
internalType: "uint64",
|
|
12613
|
-
name: "premiumP",
|
|
12614
|
-
type: "uint64",
|
|
12615
|
-
},
|
|
12616
|
-
],
|
|
12617
|
-
internalType: "struct IOtc.OtcConfig",
|
|
12618
|
-
name: "_config",
|
|
12619
|
-
type: "tuple",
|
|
11339
|
+
internalType: "uint8",
|
|
11340
|
+
name: "_collateralIndex",
|
|
11341
|
+
type: "uint8",
|
|
12620
11342
|
},
|
|
12621
11343
|
],
|
|
12622
|
-
name: "
|
|
11344
|
+
name: "transferBalance",
|
|
12623
11345
|
outputs: [],
|
|
12624
11346
|
stateMutability: "nonpayable",
|
|
12625
11347
|
type: "function",
|
|
12626
|
-
signature: "
|
|
11348
|
+
signature: "0xf01162c3",
|
|
12627
11349
|
},
|
|
12628
11350
|
];
|
|
12629
11351
|
class GNSMultiCollatDiamond__factory {
|