@gainsnetwork/sdk 1.4.0-rc1 → 1.4.2-rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/backend/globalTrades/index.js +10 -10
- package/lib/backend/tradingVariables/converter.js +57 -57
- package/lib/backend/tradingVariables/index.js +6 -7
- package/lib/constants.js +2 -2
- package/lib/contracts/addresses.js +4 -1
- package/lib/contracts/index.d.ts +1 -1
- package/lib/contracts/index.js +3 -3
- package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +1911 -0
- package/lib/contracts/types/generated/GFarmTradingStorageV5.js +2 -0
- package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +1067 -0
- package/lib/contracts/types/generated/GNSBorrowingFees.js +2 -0
- 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 +386 -260
- package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +533 -0
- package/lib/contracts/types/generated/GNSNftRewardsV6.js +2 -0
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +613 -0
- package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +2 -0
- 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/GNSTrading.d.ts +758 -0
- package/lib/contracts/types/generated/GNSTrading.js +2 -0
- package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +875 -0
- package/lib/contracts/types/generated/GNSTradingCallbacks.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/GNSTradingStorage.d.ts +1387 -0
- package/lib/contracts/types/generated/GNSTradingStorage.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/GFarmTradingStorageV5__factory.d.ts +83 -0
- package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +2691 -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/GNSBorrowingFees__factory.d.ts +124 -0
- package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +1784 -0
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +2 -10
- package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +1621 -219
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +100 -0
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +1116 -0
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +100 -0
- package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +1003 -0
- 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/GNSTradingCallbacks__factory.d.ts +113 -0
- package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +1428 -0
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +96 -0
- package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +2241 -0
- package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +95 -0
- package/lib/contracts/types/generated/factories/GNSTrading__factory.js +1071 -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/borrowingFees.js +9 -20
- package/lib/contracts/utils/openTrades.js +11 -20
- package/lib/contracts/utils/pairs.js +12 -21
- package/lib/markets/forex.js +1 -1
- package/lib/markets/leverage/builder.js +2 -2
- package/lib/markets/oi/fetcher.d.ts +58 -0
- package/lib/markets/oi/fetcher.js +181 -0
- package/lib/markets/oi/validation.d.ts +80 -0
- package/lib/markets/oi/validation.js +172 -0
- package/lib/markets/price/index.d.ts +1 -0
- package/lib/markets/price/index.js +1 -0
- package/lib/markets/price/signedPrices.d.ts +36 -0
- package/lib/markets/price/signedPrices.js +181 -0
- package/lib/markets/price/types.d.ts +27 -0
- package/lib/pricing/depthBands/converter.d.ts +65 -0
- package/lib/pricing/depthBands/converter.js +155 -0
- package/lib/pricing/depthBands/decoder.d.ts +32 -0
- package/lib/pricing/depthBands/decoder.js +109 -0
- package/lib/pricing/depthBands/encoder.d.ts +19 -0
- package/lib/pricing/depthBands/encoder.js +105 -0
- package/lib/pricing/depthBands/index.d.ts +8 -0
- package/lib/pricing/depthBands/index.js +26 -0
- package/lib/pricing/depthBands/types.d.ts +49 -0
- package/lib/pricing/depthBands/types.js +10 -0
- package/lib/pricing/depthBands/validator.d.ts +22 -0
- package/lib/pricing/depthBands/validator.js +113 -0
- package/lib/pricing/depthBands.d.ts +39 -0
- package/lib/pricing/depthBands.js +94 -0
- package/lib/pricing/index.d.ts +4 -0
- package/lib/pricing/index.js +20 -0
- package/lib/trade/effectiveLeverage/builder.d.ts +23 -0
- package/lib/trade/effectiveLeverage/builder.js +30 -0
- package/lib/trade/fees/borrowing/builder.js +2 -3
- package/lib/trade/fees/borrowing/converter.js +5 -1
- package/lib/trade/fees/borrowing/index.js +5 -5
- package/lib/trade/fees/borrowingV2/builder.js +3 -4
- package/lib/trade/fees/borrowingV2/converter.js +1 -1
- package/lib/trade/fees/borrowingV2/fetcher.js +26 -32
- package/lib/trade/fees/borrowingV2/index.js +3 -3
- package/lib/trade/fees/converter.js +22 -22
- package/lib/trade/fees/fundingFees/builder.js +6 -7
- package/lib/trade/fees/fundingFees/converter.js +1 -1
- package/lib/trade/fees/fundingFees/fetcher.js +16 -25
- package/lib/trade/fees/fundingFees/index.js +2 -3
- package/lib/trade/fees/holdingFees/index.d.ts +46 -0
- package/lib/trade/fees/holdingFees/index.js +105 -0
- package/lib/trade/fees/holdingFees/types.d.ts +23 -0
- package/lib/trade/fees/holdingFees/types.js +5 -0
- package/lib/trade/fees/tiers/index.js +1 -2
- package/lib/trade/fees/trading/holdingFees.d.ts +28 -0
- package/lib/trade/fees/trading/holdingFees.js +66 -0
- package/lib/trade/fees/trading/holdingFeesStructured.d.ts +28 -0
- package/lib/trade/fees/trading/holdingFeesStructured.js +66 -0
- package/lib/trade/fees/trading/index.js +5 -3
- package/lib/trade/liquidation/builder.js +1 -2
- package/lib/trade/liquidation/index.js +4 -6
- package/lib/trade/oiWindows.js +1 -2
- package/lib/trade/pnl/builder.js +1 -2
- package/lib/trade/pnl/converter.js +1 -1
- package/lib/trade/pnl/index.js +4 -7
- package/lib/trade/priceImpact/close/builder.js +1 -2
- package/lib/trade/priceImpact/close/index.js +4 -1
- package/lib/trade/priceImpact/cumulVol/builder.js +18 -10
- package/lib/trade/priceImpact/cumulVol/index.js +21 -16
- package/lib/trade/priceImpact/cumulVol/types.d.ts +11 -0
- package/lib/trade/priceImpact/cumulVol/types.js +2 -0
- package/lib/trade/priceImpact/open/builder.js +1 -2
- package/lib/trade/priceImpact/open/index.js +4 -1
- package/lib/trade/priceImpact/skew/builder.js +2 -3
- package/lib/trade/priceImpact/skew/converter.js +1 -1
- package/lib/trade/priceImpact/skew/fetcher.js +24 -33
- package/package.json +2 -2
- package/lib/trade/liquidation.d.ts +0 -12
- package/lib/trade/liquidation.js +0 -55
- package/lib/trade/pnl.d.ts +0 -10
- package/lib/trade/pnl.js +0 -33
|
@@ -6,11 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.GNSMultiCollatDiamond__factory = void 0;
|
|
7
7
|
const ethers_1 = require("ethers");
|
|
8
8
|
const _abi = [
|
|
9
|
-
{
|
|
10
|
-
inputs: [],
|
|
11
|
-
stateMutability: "nonpayable",
|
|
12
|
-
type: "constructor",
|
|
13
|
-
},
|
|
14
9
|
{
|
|
15
10
|
inputs: [],
|
|
16
11
|
name: "AboveMax",
|
|
@@ -1146,6 +1141,31 @@ const _abi = [
|
|
|
1146
1141
|
type: "function",
|
|
1147
1142
|
signature: "0x678b3fb0",
|
|
1148
1143
|
},
|
|
1144
|
+
{
|
|
1145
|
+
inputs: [
|
|
1146
|
+
{
|
|
1147
|
+
internalType: "uint16",
|
|
1148
|
+
name: "_pairIndex",
|
|
1149
|
+
type: "uint16",
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
internalType: "bool",
|
|
1153
|
+
name: "_isCounterTrade",
|
|
1154
|
+
type: "bool",
|
|
1155
|
+
},
|
|
1156
|
+
],
|
|
1157
|
+
name: "getEffectiveTotalPositionSizeFeeP",
|
|
1158
|
+
outputs: [
|
|
1159
|
+
{
|
|
1160
|
+
internalType: "uint256",
|
|
1161
|
+
name: "",
|
|
1162
|
+
type: "uint256",
|
|
1163
|
+
},
|
|
1164
|
+
],
|
|
1165
|
+
stateMutability: "view",
|
|
1166
|
+
type: "function",
|
|
1167
|
+
signature: "0xace26965",
|
|
1168
|
+
},
|
|
1149
1169
|
{
|
|
1150
1170
|
inputs: [],
|
|
1151
1171
|
name: "getGlobalTradeFeeParams",
|
|
@@ -6978,6 +6998,36 @@ const _abi = [
|
|
|
6978
6998
|
type: "function",
|
|
6979
6999
|
signature: "0x78a70ec6",
|
|
6980
7000
|
},
|
|
7001
|
+
{
|
|
7002
|
+
inputs: [
|
|
7003
|
+
{
|
|
7004
|
+
internalType: "address",
|
|
7005
|
+
name: "_trader",
|
|
7006
|
+
type: "address",
|
|
7007
|
+
},
|
|
7008
|
+
{
|
|
7009
|
+
internalType: "uint32",
|
|
7010
|
+
name: "_index",
|
|
7011
|
+
type: "uint32",
|
|
7012
|
+
},
|
|
7013
|
+
{
|
|
7014
|
+
internalType: "enum ITradingStorage.PendingOrderType",
|
|
7015
|
+
name: "_orderType",
|
|
7016
|
+
type: "uint8",
|
|
7017
|
+
},
|
|
7018
|
+
],
|
|
7019
|
+
name: "getLookbackFromBlock",
|
|
7020
|
+
outputs: [
|
|
7021
|
+
{
|
|
7022
|
+
internalType: "uint32",
|
|
7023
|
+
name: "",
|
|
7024
|
+
type: "uint32",
|
|
7025
|
+
},
|
|
7026
|
+
],
|
|
7027
|
+
stateMutability: "view",
|
|
7028
|
+
type: "function",
|
|
7029
|
+
signature: "0x2b7d6e9d",
|
|
7030
|
+
},
|
|
6981
7031
|
{
|
|
6982
7032
|
inputs: [
|
|
6983
7033
|
{
|
|
@@ -8645,6 +8695,102 @@ const _abi = [
|
|
|
8645
8695
|
type: "function",
|
|
8646
8696
|
signature: "0xb78f4b36",
|
|
8647
8697
|
},
|
|
8698
|
+
{
|
|
8699
|
+
inputs: [
|
|
8700
|
+
{
|
|
8701
|
+
components: [
|
|
8702
|
+
{
|
|
8703
|
+
internalType: "address",
|
|
8704
|
+
name: "user",
|
|
8705
|
+
type: "address",
|
|
8706
|
+
},
|
|
8707
|
+
{
|
|
8708
|
+
internalType: "uint32",
|
|
8709
|
+
name: "index",
|
|
8710
|
+
type: "uint32",
|
|
8711
|
+
},
|
|
8712
|
+
{
|
|
8713
|
+
internalType: "uint16",
|
|
8714
|
+
name: "pairIndex",
|
|
8715
|
+
type: "uint16",
|
|
8716
|
+
},
|
|
8717
|
+
{
|
|
8718
|
+
internalType: "uint24",
|
|
8719
|
+
name: "leverage",
|
|
8720
|
+
type: "uint24",
|
|
8721
|
+
},
|
|
8722
|
+
{
|
|
8723
|
+
internalType: "bool",
|
|
8724
|
+
name: "long",
|
|
8725
|
+
type: "bool",
|
|
8726
|
+
},
|
|
8727
|
+
{
|
|
8728
|
+
internalType: "bool",
|
|
8729
|
+
name: "isOpen",
|
|
8730
|
+
type: "bool",
|
|
8731
|
+
},
|
|
8732
|
+
{
|
|
8733
|
+
internalType: "uint8",
|
|
8734
|
+
name: "collateralIndex",
|
|
8735
|
+
type: "uint8",
|
|
8736
|
+
},
|
|
8737
|
+
{
|
|
8738
|
+
internalType: "enum ITradingStorage.TradeType",
|
|
8739
|
+
name: "tradeType",
|
|
8740
|
+
type: "uint8",
|
|
8741
|
+
},
|
|
8742
|
+
{
|
|
8743
|
+
internalType: "uint120",
|
|
8744
|
+
name: "collateralAmount",
|
|
8745
|
+
type: "uint120",
|
|
8746
|
+
},
|
|
8747
|
+
{
|
|
8748
|
+
internalType: "uint64",
|
|
8749
|
+
name: "openPrice",
|
|
8750
|
+
type: "uint64",
|
|
8751
|
+
},
|
|
8752
|
+
{
|
|
8753
|
+
internalType: "uint64",
|
|
8754
|
+
name: "tp",
|
|
8755
|
+
type: "uint64",
|
|
8756
|
+
},
|
|
8757
|
+
{
|
|
8758
|
+
internalType: "uint64",
|
|
8759
|
+
name: "sl",
|
|
8760
|
+
type: "uint64",
|
|
8761
|
+
},
|
|
8762
|
+
{
|
|
8763
|
+
internalType: "bool",
|
|
8764
|
+
name: "isCounterTrade",
|
|
8765
|
+
type: "bool",
|
|
8766
|
+
},
|
|
8767
|
+
{
|
|
8768
|
+
internalType: "uint160",
|
|
8769
|
+
name: "positionSizeToken",
|
|
8770
|
+
type: "uint160",
|
|
8771
|
+
},
|
|
8772
|
+
{
|
|
8773
|
+
internalType: "uint24",
|
|
8774
|
+
name: "__placeholder",
|
|
8775
|
+
type: "uint24",
|
|
8776
|
+
},
|
|
8777
|
+
],
|
|
8778
|
+
internalType: "struct ITradingStorage.Trade",
|
|
8779
|
+
name: "_trade",
|
|
8780
|
+
type: "tuple",
|
|
8781
|
+
},
|
|
8782
|
+
{
|
|
8783
|
+
internalType: "enum ITradingStorage.PendingOrderType",
|
|
8784
|
+
name: "_orderType",
|
|
8785
|
+
type: "uint8",
|
|
8786
|
+
},
|
|
8787
|
+
],
|
|
8788
|
+
name: "validateOpenTradeOrder",
|
|
8789
|
+
outputs: [],
|
|
8790
|
+
stateMutability: "pure",
|
|
8791
|
+
type: "function",
|
|
8792
|
+
signature: "0x63f58b1a",
|
|
8793
|
+
},
|
|
8648
8794
|
{
|
|
8649
8795
|
inputs: [],
|
|
8650
8796
|
name: "NoPendingTriggerRewards",
|
|
@@ -8925,6 +9071,11 @@ const _abi = [
|
|
|
8925
9071
|
name: "WaitTimeout",
|
|
8926
9072
|
type: "error",
|
|
8927
9073
|
},
|
|
9074
|
+
{
|
|
9075
|
+
inputs: [],
|
|
9076
|
+
name: "WrongFromBlock",
|
|
9077
|
+
type: "error",
|
|
9078
|
+
},
|
|
8928
9079
|
{
|
|
8929
9080
|
inputs: [],
|
|
8930
9081
|
name: "WrongLeverage",
|
|
@@ -10564,6 +10715,89 @@ const _abi = [
|
|
|
10564
10715
|
type: "function",
|
|
10565
10716
|
signature: "0xeb9359aa",
|
|
10566
10717
|
},
|
|
10718
|
+
{
|
|
10719
|
+
inputs: [
|
|
10720
|
+
{
|
|
10721
|
+
internalType: "uint256",
|
|
10722
|
+
name: "_packed",
|
|
10723
|
+
type: "uint256",
|
|
10724
|
+
},
|
|
10725
|
+
{
|
|
10726
|
+
components: [
|
|
10727
|
+
{
|
|
10728
|
+
internalType: "uint8",
|
|
10729
|
+
name: "signerId",
|
|
10730
|
+
type: "uint8",
|
|
10731
|
+
},
|
|
10732
|
+
{
|
|
10733
|
+
internalType: "uint32",
|
|
10734
|
+
name: "expiryTs",
|
|
10735
|
+
type: "uint32",
|
|
10736
|
+
},
|
|
10737
|
+
{
|
|
10738
|
+
internalType: "bool",
|
|
10739
|
+
name: "isLookback",
|
|
10740
|
+
type: "bool",
|
|
10741
|
+
},
|
|
10742
|
+
{
|
|
10743
|
+
internalType: "uint32",
|
|
10744
|
+
name: "fromBlock",
|
|
10745
|
+
type: "uint32",
|
|
10746
|
+
},
|
|
10747
|
+
{
|
|
10748
|
+
internalType: "bytes",
|
|
10749
|
+
name: "signature",
|
|
10750
|
+
type: "bytes",
|
|
10751
|
+
},
|
|
10752
|
+
{
|
|
10753
|
+
internalType: "uint16[]",
|
|
10754
|
+
name: "pairIndices",
|
|
10755
|
+
type: "uint16[]",
|
|
10756
|
+
},
|
|
10757
|
+
{
|
|
10758
|
+
components: [
|
|
10759
|
+
{
|
|
10760
|
+
internalType: "uint56",
|
|
10761
|
+
name: "open",
|
|
10762
|
+
type: "uint56",
|
|
10763
|
+
},
|
|
10764
|
+
{
|
|
10765
|
+
internalType: "uint56",
|
|
10766
|
+
name: "high",
|
|
10767
|
+
type: "uint56",
|
|
10768
|
+
},
|
|
10769
|
+
{
|
|
10770
|
+
internalType: "uint56",
|
|
10771
|
+
name: "low",
|
|
10772
|
+
type: "uint56",
|
|
10773
|
+
},
|
|
10774
|
+
{
|
|
10775
|
+
internalType: "uint56",
|
|
10776
|
+
name: "current",
|
|
10777
|
+
type: "uint56",
|
|
10778
|
+
},
|
|
10779
|
+
{
|
|
10780
|
+
internalType: "uint32",
|
|
10781
|
+
name: "ts",
|
|
10782
|
+
type: "uint32",
|
|
10783
|
+
},
|
|
10784
|
+
],
|
|
10785
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
10786
|
+
name: "prices",
|
|
10787
|
+
type: "tuple[]",
|
|
10788
|
+
},
|
|
10789
|
+
],
|
|
10790
|
+
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
10791
|
+
name: "_signedPairPrices",
|
|
10792
|
+
type: "tuple[]",
|
|
10793
|
+
},
|
|
10794
|
+
],
|
|
10795
|
+
name: "triggerOrderWithSignatures",
|
|
10796
|
+
outputs: [],
|
|
10797
|
+
stateMutability: "nonpayable",
|
|
10798
|
+
type: "function",
|
|
10799
|
+
signature: "0xc7e2b2a9",
|
|
10800
|
+
},
|
|
10567
10801
|
{
|
|
10568
10802
|
inputs: [
|
|
10569
10803
|
{
|
|
@@ -12041,58 +12275,348 @@ const _abi = [
|
|
|
12041
12275
|
name: "_a",
|
|
12042
12276
|
type: "tuple",
|
|
12043
12277
|
},
|
|
12044
|
-
],
|
|
12045
|
-
name: "executeTriggerOpenOrderCallback",
|
|
12046
|
-
outputs: [],
|
|
12047
|
-
stateMutability: "nonpayable",
|
|
12048
|
-
type: "function",
|
|
12049
|
-
signature: "0x5578478f",
|
|
12050
|
-
},
|
|
12051
|
-
{
|
|
12052
|
-
inputs: [
|
|
12053
|
-
{
|
|
12054
|
-
internalType: "uint8",
|
|
12055
|
-
name: "_collateralIndex",
|
|
12056
|
-
type: "uint8",
|
|
12057
|
-
},
|
|
12058
|
-
],
|
|
12059
|
-
name: "getPendingGovFeesCollateral",
|
|
12060
|
-
outputs: [
|
|
12061
|
-
{
|
|
12062
|
-
internalType: "uint256",
|
|
12063
|
-
name: "",
|
|
12064
|
-
type: "uint256",
|
|
12065
|
-
},
|
|
12066
|
-
],
|
|
12067
|
-
stateMutability: "view",
|
|
12068
|
-
type: "function",
|
|
12069
|
-
signature: "0x2c6fe6d1",
|
|
12070
|
-
},
|
|
12071
|
-
{
|
|
12072
|
-
inputs: [],
|
|
12073
|
-
name: "getVaultClosingFeeP",
|
|
12074
|
-
outputs: [
|
|
12075
|
-
{
|
|
12076
|
-
internalType: "uint8",
|
|
12077
|
-
name: "",
|
|
12078
|
-
type: "uint8",
|
|
12079
|
-
},
|
|
12080
|
-
],
|
|
12081
|
-
stateMutability: "view",
|
|
12082
|
-
type: "function",
|
|
12083
|
-
signature: "0xa5b26e46",
|
|
12084
|
-
},
|
|
12085
|
-
{
|
|
12086
|
-
inputs: [
|
|
12087
12278
|
{
|
|
12088
12279
|
components: [
|
|
12089
12280
|
{
|
|
12090
|
-
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
|
|
12094
|
-
|
|
12095
|
-
|
|
12281
|
+
internalType: "address",
|
|
12282
|
+
name: "user",
|
|
12283
|
+
type: "address",
|
|
12284
|
+
},
|
|
12285
|
+
{
|
|
12286
|
+
internalType: "uint32",
|
|
12287
|
+
name: "index",
|
|
12288
|
+
type: "uint32",
|
|
12289
|
+
},
|
|
12290
|
+
{
|
|
12291
|
+
internalType: "uint16",
|
|
12292
|
+
name: "pairIndex",
|
|
12293
|
+
type: "uint16",
|
|
12294
|
+
},
|
|
12295
|
+
{
|
|
12296
|
+
internalType: "uint24",
|
|
12297
|
+
name: "leverage",
|
|
12298
|
+
type: "uint24",
|
|
12299
|
+
},
|
|
12300
|
+
{
|
|
12301
|
+
internalType: "bool",
|
|
12302
|
+
name: "long",
|
|
12303
|
+
type: "bool",
|
|
12304
|
+
},
|
|
12305
|
+
{
|
|
12306
|
+
internalType: "bool",
|
|
12307
|
+
name: "isOpen",
|
|
12308
|
+
type: "bool",
|
|
12309
|
+
},
|
|
12310
|
+
{
|
|
12311
|
+
internalType: "uint8",
|
|
12312
|
+
name: "collateralIndex",
|
|
12313
|
+
type: "uint8",
|
|
12314
|
+
},
|
|
12315
|
+
{
|
|
12316
|
+
internalType: "enum ITradingStorage.TradeType",
|
|
12317
|
+
name: "tradeType",
|
|
12318
|
+
type: "uint8",
|
|
12319
|
+
},
|
|
12320
|
+
{
|
|
12321
|
+
internalType: "uint120",
|
|
12322
|
+
name: "collateralAmount",
|
|
12323
|
+
type: "uint120",
|
|
12324
|
+
},
|
|
12325
|
+
{
|
|
12326
|
+
internalType: "uint64",
|
|
12327
|
+
name: "openPrice",
|
|
12328
|
+
type: "uint64",
|
|
12329
|
+
},
|
|
12330
|
+
{
|
|
12331
|
+
internalType: "uint64",
|
|
12332
|
+
name: "tp",
|
|
12333
|
+
type: "uint64",
|
|
12334
|
+
},
|
|
12335
|
+
{
|
|
12336
|
+
internalType: "uint64",
|
|
12337
|
+
name: "sl",
|
|
12338
|
+
type: "uint64",
|
|
12339
|
+
},
|
|
12340
|
+
{
|
|
12341
|
+
internalType: "bool",
|
|
12342
|
+
name: "isCounterTrade",
|
|
12343
|
+
type: "bool",
|
|
12344
|
+
},
|
|
12345
|
+
{
|
|
12346
|
+
internalType: "uint160",
|
|
12347
|
+
name: "positionSizeToken",
|
|
12348
|
+
type: "uint160",
|
|
12349
|
+
},
|
|
12350
|
+
{
|
|
12351
|
+
internalType: "uint24",
|
|
12352
|
+
name: "__placeholder",
|
|
12353
|
+
type: "uint24",
|
|
12354
|
+
},
|
|
12355
|
+
],
|
|
12356
|
+
internalType: "struct ITradingStorage.Trade",
|
|
12357
|
+
name: "_trade",
|
|
12358
|
+
type: "tuple",
|
|
12359
|
+
},
|
|
12360
|
+
{
|
|
12361
|
+
internalType: "enum ITradingStorage.PendingOrderType",
|
|
12362
|
+
name: "_orderType",
|
|
12363
|
+
type: "uint8",
|
|
12364
|
+
},
|
|
12365
|
+
{
|
|
12366
|
+
internalType: "address",
|
|
12367
|
+
name: "_initiator",
|
|
12368
|
+
type: "address",
|
|
12369
|
+
},
|
|
12370
|
+
],
|
|
12371
|
+
name: "executeTriggerCloseOrderCallbackDirect",
|
|
12372
|
+
outputs: [],
|
|
12373
|
+
stateMutability: "nonpayable",
|
|
12374
|
+
type: "function",
|
|
12375
|
+
signature: "0x33575269",
|
|
12376
|
+
},
|
|
12377
|
+
{
|
|
12378
|
+
inputs: [
|
|
12379
|
+
{
|
|
12380
|
+
components: [
|
|
12381
|
+
{
|
|
12382
|
+
components: [
|
|
12383
|
+
{
|
|
12384
|
+
internalType: "address",
|
|
12385
|
+
name: "user",
|
|
12386
|
+
type: "address",
|
|
12387
|
+
},
|
|
12388
|
+
{
|
|
12389
|
+
internalType: "uint32",
|
|
12390
|
+
name: "index",
|
|
12391
|
+
type: "uint32",
|
|
12392
|
+
},
|
|
12393
|
+
],
|
|
12394
|
+
internalType: "struct ITradingStorage.Id",
|
|
12395
|
+
name: "orderId",
|
|
12396
|
+
type: "tuple",
|
|
12397
|
+
},
|
|
12398
|
+
{
|
|
12399
|
+
internalType: "uint64",
|
|
12400
|
+
name: "open",
|
|
12401
|
+
type: "uint64",
|
|
12402
|
+
},
|
|
12403
|
+
{
|
|
12404
|
+
internalType: "uint64",
|
|
12405
|
+
name: "high",
|
|
12406
|
+
type: "uint64",
|
|
12407
|
+
},
|
|
12408
|
+
{
|
|
12409
|
+
internalType: "uint64",
|
|
12410
|
+
name: "low",
|
|
12411
|
+
type: "uint64",
|
|
12412
|
+
},
|
|
12413
|
+
{
|
|
12414
|
+
internalType: "uint64",
|
|
12415
|
+
name: "current",
|
|
12416
|
+
type: "uint64",
|
|
12417
|
+
},
|
|
12418
|
+
],
|
|
12419
|
+
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
12420
|
+
name: "_a",
|
|
12421
|
+
type: "tuple",
|
|
12422
|
+
},
|
|
12423
|
+
],
|
|
12424
|
+
name: "executeTriggerOpenOrderCallback",
|
|
12425
|
+
outputs: [],
|
|
12426
|
+
stateMutability: "nonpayable",
|
|
12427
|
+
type: "function",
|
|
12428
|
+
signature: "0x5578478f",
|
|
12429
|
+
},
|
|
12430
|
+
{
|
|
12431
|
+
inputs: [
|
|
12432
|
+
{
|
|
12433
|
+
components: [
|
|
12434
|
+
{
|
|
12435
|
+
components: [
|
|
12436
|
+
{
|
|
12437
|
+
internalType: "address",
|
|
12438
|
+
name: "user",
|
|
12439
|
+
type: "address",
|
|
12440
|
+
},
|
|
12441
|
+
{
|
|
12442
|
+
internalType: "uint32",
|
|
12443
|
+
name: "index",
|
|
12444
|
+
type: "uint32",
|
|
12445
|
+
},
|
|
12446
|
+
],
|
|
12447
|
+
internalType: "struct ITradingStorage.Id",
|
|
12448
|
+
name: "orderId",
|
|
12449
|
+
type: "tuple",
|
|
12450
|
+
},
|
|
12451
|
+
{
|
|
12452
|
+
internalType: "uint64",
|
|
12453
|
+
name: "open",
|
|
12454
|
+
type: "uint64",
|
|
12455
|
+
},
|
|
12456
|
+
{
|
|
12457
|
+
internalType: "uint64",
|
|
12458
|
+
name: "high",
|
|
12459
|
+
type: "uint64",
|
|
12460
|
+
},
|
|
12461
|
+
{
|
|
12462
|
+
internalType: "uint64",
|
|
12463
|
+
name: "low",
|
|
12464
|
+
type: "uint64",
|
|
12465
|
+
},
|
|
12466
|
+
{
|
|
12467
|
+
internalType: "uint64",
|
|
12468
|
+
name: "current",
|
|
12469
|
+
type: "uint64",
|
|
12470
|
+
},
|
|
12471
|
+
],
|
|
12472
|
+
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
12473
|
+
name: "_a",
|
|
12474
|
+
type: "tuple",
|
|
12475
|
+
},
|
|
12476
|
+
{
|
|
12477
|
+
components: [
|
|
12478
|
+
{
|
|
12479
|
+
internalType: "address",
|
|
12480
|
+
name: "user",
|
|
12481
|
+
type: "address",
|
|
12482
|
+
},
|
|
12483
|
+
{
|
|
12484
|
+
internalType: "uint32",
|
|
12485
|
+
name: "index",
|
|
12486
|
+
type: "uint32",
|
|
12487
|
+
},
|
|
12488
|
+
{
|
|
12489
|
+
internalType: "uint16",
|
|
12490
|
+
name: "pairIndex",
|
|
12491
|
+
type: "uint16",
|
|
12492
|
+
},
|
|
12493
|
+
{
|
|
12494
|
+
internalType: "uint24",
|
|
12495
|
+
name: "leverage",
|
|
12496
|
+
type: "uint24",
|
|
12497
|
+
},
|
|
12498
|
+
{
|
|
12499
|
+
internalType: "bool",
|
|
12500
|
+
name: "long",
|
|
12501
|
+
type: "bool",
|
|
12502
|
+
},
|
|
12503
|
+
{
|
|
12504
|
+
internalType: "bool",
|
|
12505
|
+
name: "isOpen",
|
|
12506
|
+
type: "bool",
|
|
12507
|
+
},
|
|
12508
|
+
{
|
|
12509
|
+
internalType: "uint8",
|
|
12510
|
+
name: "collateralIndex",
|
|
12511
|
+
type: "uint8",
|
|
12512
|
+
},
|
|
12513
|
+
{
|
|
12514
|
+
internalType: "enum ITradingStorage.TradeType",
|
|
12515
|
+
name: "tradeType",
|
|
12516
|
+
type: "uint8",
|
|
12517
|
+
},
|
|
12518
|
+
{
|
|
12519
|
+
internalType: "uint120",
|
|
12520
|
+
name: "collateralAmount",
|
|
12521
|
+
type: "uint120",
|
|
12522
|
+
},
|
|
12523
|
+
{
|
|
12524
|
+
internalType: "uint64",
|
|
12525
|
+
name: "openPrice",
|
|
12526
|
+
type: "uint64",
|
|
12527
|
+
},
|
|
12528
|
+
{
|
|
12529
|
+
internalType: "uint64",
|
|
12530
|
+
name: "tp",
|
|
12531
|
+
type: "uint64",
|
|
12532
|
+
},
|
|
12533
|
+
{
|
|
12534
|
+
internalType: "uint64",
|
|
12535
|
+
name: "sl",
|
|
12536
|
+
type: "uint64",
|
|
12537
|
+
},
|
|
12538
|
+
{
|
|
12539
|
+
internalType: "bool",
|
|
12540
|
+
name: "isCounterTrade",
|
|
12541
|
+
type: "bool",
|
|
12542
|
+
},
|
|
12543
|
+
{
|
|
12544
|
+
internalType: "uint160",
|
|
12545
|
+
name: "positionSizeToken",
|
|
12546
|
+
type: "uint160",
|
|
12547
|
+
},
|
|
12548
|
+
{
|
|
12549
|
+
internalType: "uint24",
|
|
12550
|
+
name: "__placeholder",
|
|
12551
|
+
type: "uint24",
|
|
12552
|
+
},
|
|
12553
|
+
],
|
|
12554
|
+
internalType: "struct ITradingStorage.Trade",
|
|
12555
|
+
name: "_trade",
|
|
12556
|
+
type: "tuple",
|
|
12557
|
+
},
|
|
12558
|
+
{
|
|
12559
|
+
internalType: "enum ITradingStorage.PendingOrderType",
|
|
12560
|
+
name: "_orderType",
|
|
12561
|
+
type: "uint8",
|
|
12562
|
+
},
|
|
12563
|
+
{
|
|
12564
|
+
internalType: "address",
|
|
12565
|
+
name: "_initiator",
|
|
12566
|
+
type: "address",
|
|
12567
|
+
},
|
|
12568
|
+
],
|
|
12569
|
+
name: "executeTriggerOpenOrderCallbackDirect",
|
|
12570
|
+
outputs: [],
|
|
12571
|
+
stateMutability: "nonpayable",
|
|
12572
|
+
type: "function",
|
|
12573
|
+
signature: "0x9d7ef759",
|
|
12574
|
+
},
|
|
12575
|
+
{
|
|
12576
|
+
inputs: [
|
|
12577
|
+
{
|
|
12578
|
+
internalType: "uint8",
|
|
12579
|
+
name: "_collateralIndex",
|
|
12580
|
+
type: "uint8",
|
|
12581
|
+
},
|
|
12582
|
+
],
|
|
12583
|
+
name: "getPendingGovFeesCollateral",
|
|
12584
|
+
outputs: [
|
|
12585
|
+
{
|
|
12586
|
+
internalType: "uint256",
|
|
12587
|
+
name: "",
|
|
12588
|
+
type: "uint256",
|
|
12589
|
+
},
|
|
12590
|
+
],
|
|
12591
|
+
stateMutability: "view",
|
|
12592
|
+
type: "function",
|
|
12593
|
+
signature: "0x2c6fe6d1",
|
|
12594
|
+
},
|
|
12595
|
+
{
|
|
12596
|
+
inputs: [],
|
|
12597
|
+
name: "getVaultClosingFeeP",
|
|
12598
|
+
outputs: [
|
|
12599
|
+
{
|
|
12600
|
+
internalType: "uint8",
|
|
12601
|
+
name: "",
|
|
12602
|
+
type: "uint8",
|
|
12603
|
+
},
|
|
12604
|
+
],
|
|
12605
|
+
stateMutability: "view",
|
|
12606
|
+
type: "function",
|
|
12607
|
+
signature: "0xa5b26e46",
|
|
12608
|
+
},
|
|
12609
|
+
{
|
|
12610
|
+
inputs: [
|
|
12611
|
+
{
|
|
12612
|
+
components: [
|
|
12613
|
+
{
|
|
12614
|
+
components: [
|
|
12615
|
+
{
|
|
12616
|
+
internalType: "address",
|
|
12617
|
+
name: "user",
|
|
12618
|
+
type: "address",
|
|
12619
|
+
},
|
|
12096
12620
|
{
|
|
12097
12621
|
internalType: "uint32",
|
|
12098
12622
|
name: "index",
|
|
@@ -14576,45 +15100,6 @@ const _abi = [
|
|
|
14576
15100
|
type: "function",
|
|
14577
15101
|
signature: "0x1a733ea0",
|
|
14578
15102
|
},
|
|
14579
|
-
{
|
|
14580
|
-
inputs: [
|
|
14581
|
-
{
|
|
14582
|
-
internalType: "uint8",
|
|
14583
|
-
name: "_collateralIndex",
|
|
14584
|
-
type: "uint8",
|
|
14585
|
-
},
|
|
14586
|
-
{
|
|
14587
|
-
internalType: "address",
|
|
14588
|
-
name: "_trader",
|
|
14589
|
-
type: "address",
|
|
14590
|
-
},
|
|
14591
|
-
{
|
|
14592
|
-
internalType: "uint16",
|
|
14593
|
-
name: "_pairIndex",
|
|
14594
|
-
type: "uint16",
|
|
14595
|
-
},
|
|
14596
|
-
{
|
|
14597
|
-
internalType: "uint32",
|
|
14598
|
-
name: "_index",
|
|
14599
|
-
type: "uint32",
|
|
14600
|
-
},
|
|
14601
|
-
{
|
|
14602
|
-
internalType: "bool",
|
|
14603
|
-
name: "_long",
|
|
14604
|
-
type: "bool",
|
|
14605
|
-
},
|
|
14606
|
-
{
|
|
14607
|
-
internalType: "uint256",
|
|
14608
|
-
name: "_currentPairPrice",
|
|
14609
|
-
type: "uint256",
|
|
14610
|
-
},
|
|
14611
|
-
],
|
|
14612
|
-
name: "resetTradeBorrowingFees",
|
|
14613
|
-
outputs: [],
|
|
14614
|
-
stateMutability: "nonpayable",
|
|
14615
|
-
type: "function",
|
|
14616
|
-
signature: "0x2e47dc6a",
|
|
14617
|
-
},
|
|
14618
15103
|
{
|
|
14619
15104
|
inputs: [
|
|
14620
15105
|
{
|
|
@@ -14798,12 +15283,81 @@ const _abi = [
|
|
|
14798
15283
|
name: "_value",
|
|
14799
15284
|
type: "tuple",
|
|
14800
15285
|
},
|
|
15286
|
+
{
|
|
15287
|
+
components: [
|
|
15288
|
+
{
|
|
15289
|
+
internalType: "uint8",
|
|
15290
|
+
name: "signerId",
|
|
15291
|
+
type: "uint8",
|
|
15292
|
+
},
|
|
15293
|
+
{
|
|
15294
|
+
internalType: "uint32",
|
|
15295
|
+
name: "expiryTs",
|
|
15296
|
+
type: "uint32",
|
|
15297
|
+
},
|
|
15298
|
+
{
|
|
15299
|
+
internalType: "bool",
|
|
15300
|
+
name: "isLookback",
|
|
15301
|
+
type: "bool",
|
|
15302
|
+
},
|
|
15303
|
+
{
|
|
15304
|
+
internalType: "uint32",
|
|
15305
|
+
name: "fromBlock",
|
|
15306
|
+
type: "uint32",
|
|
15307
|
+
},
|
|
15308
|
+
{
|
|
15309
|
+
internalType: "bytes",
|
|
15310
|
+
name: "signature",
|
|
15311
|
+
type: "bytes",
|
|
15312
|
+
},
|
|
15313
|
+
{
|
|
15314
|
+
internalType: "uint16[]",
|
|
15315
|
+
name: "pairIndices",
|
|
15316
|
+
type: "uint16[]",
|
|
15317
|
+
},
|
|
15318
|
+
{
|
|
15319
|
+
components: [
|
|
15320
|
+
{
|
|
15321
|
+
internalType: "uint56",
|
|
15322
|
+
name: "open",
|
|
15323
|
+
type: "uint56",
|
|
15324
|
+
},
|
|
15325
|
+
{
|
|
15326
|
+
internalType: "uint56",
|
|
15327
|
+
name: "high",
|
|
15328
|
+
type: "uint56",
|
|
15329
|
+
},
|
|
15330
|
+
{
|
|
15331
|
+
internalType: "uint56",
|
|
15332
|
+
name: "low",
|
|
15333
|
+
type: "uint56",
|
|
15334
|
+
},
|
|
15335
|
+
{
|
|
15336
|
+
internalType: "uint56",
|
|
15337
|
+
name: "current",
|
|
15338
|
+
type: "uint56",
|
|
15339
|
+
},
|
|
15340
|
+
{
|
|
15341
|
+
internalType: "uint32",
|
|
15342
|
+
name: "ts",
|
|
15343
|
+
type: "uint32",
|
|
15344
|
+
},
|
|
15345
|
+
],
|
|
15346
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
15347
|
+
name: "prices",
|
|
15348
|
+
type: "tuple[]",
|
|
15349
|
+
},
|
|
15350
|
+
],
|
|
15351
|
+
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
15352
|
+
name: "_signedPairPrices",
|
|
15353
|
+
type: "tuple[]",
|
|
15354
|
+
},
|
|
14801
15355
|
],
|
|
14802
15356
|
name: "setBorrowingPairParams",
|
|
14803
15357
|
outputs: [],
|
|
14804
15358
|
stateMutability: "nonpayable",
|
|
14805
15359
|
type: "function",
|
|
14806
|
-
signature: "
|
|
15360
|
+
signature: "0x3f85355a",
|
|
14807
15361
|
},
|
|
14808
15362
|
{
|
|
14809
15363
|
inputs: [
|
|
@@ -14830,18 +15384,87 @@ const _abi = [
|
|
|
14830
15384
|
type: "uint32",
|
|
14831
15385
|
},
|
|
14832
15386
|
{
|
|
14833
|
-
internalType: "uint48",
|
|
14834
|
-
name: "feeExponent",
|
|
14835
|
-
type: "uint48",
|
|
15387
|
+
internalType: "uint48",
|
|
15388
|
+
name: "feeExponent",
|
|
15389
|
+
type: "uint48",
|
|
15390
|
+
},
|
|
15391
|
+
{
|
|
15392
|
+
internalType: "uint72",
|
|
15393
|
+
name: "maxOi",
|
|
15394
|
+
type: "uint72",
|
|
15395
|
+
},
|
|
15396
|
+
],
|
|
15397
|
+
internalType: "struct IBorrowingFees.BorrowingPairParams[]",
|
|
15398
|
+
name: "_values",
|
|
15399
|
+
type: "tuple[]",
|
|
15400
|
+
},
|
|
15401
|
+
{
|
|
15402
|
+
components: [
|
|
15403
|
+
{
|
|
15404
|
+
internalType: "uint8",
|
|
15405
|
+
name: "signerId",
|
|
15406
|
+
type: "uint8",
|
|
15407
|
+
},
|
|
15408
|
+
{
|
|
15409
|
+
internalType: "uint32",
|
|
15410
|
+
name: "expiryTs",
|
|
15411
|
+
type: "uint32",
|
|
15412
|
+
},
|
|
15413
|
+
{
|
|
15414
|
+
internalType: "bool",
|
|
15415
|
+
name: "isLookback",
|
|
15416
|
+
type: "bool",
|
|
15417
|
+
},
|
|
15418
|
+
{
|
|
15419
|
+
internalType: "uint32",
|
|
15420
|
+
name: "fromBlock",
|
|
15421
|
+
type: "uint32",
|
|
15422
|
+
},
|
|
15423
|
+
{
|
|
15424
|
+
internalType: "bytes",
|
|
15425
|
+
name: "signature",
|
|
15426
|
+
type: "bytes",
|
|
14836
15427
|
},
|
|
14837
15428
|
{
|
|
14838
|
-
internalType: "
|
|
14839
|
-
name: "
|
|
14840
|
-
type: "
|
|
15429
|
+
internalType: "uint16[]",
|
|
15430
|
+
name: "pairIndices",
|
|
15431
|
+
type: "uint16[]",
|
|
15432
|
+
},
|
|
15433
|
+
{
|
|
15434
|
+
components: [
|
|
15435
|
+
{
|
|
15436
|
+
internalType: "uint56",
|
|
15437
|
+
name: "open",
|
|
15438
|
+
type: "uint56",
|
|
15439
|
+
},
|
|
15440
|
+
{
|
|
15441
|
+
internalType: "uint56",
|
|
15442
|
+
name: "high",
|
|
15443
|
+
type: "uint56",
|
|
15444
|
+
},
|
|
15445
|
+
{
|
|
15446
|
+
internalType: "uint56",
|
|
15447
|
+
name: "low",
|
|
15448
|
+
type: "uint56",
|
|
15449
|
+
},
|
|
15450
|
+
{
|
|
15451
|
+
internalType: "uint56",
|
|
15452
|
+
name: "current",
|
|
15453
|
+
type: "uint56",
|
|
15454
|
+
},
|
|
15455
|
+
{
|
|
15456
|
+
internalType: "uint32",
|
|
15457
|
+
name: "ts",
|
|
15458
|
+
type: "uint32",
|
|
15459
|
+
},
|
|
15460
|
+
],
|
|
15461
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
15462
|
+
name: "prices",
|
|
15463
|
+
type: "tuple[]",
|
|
14841
15464
|
},
|
|
14842
15465
|
],
|
|
14843
|
-
internalType: "struct
|
|
14844
|
-
name: "
|
|
15466
|
+
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
15467
|
+
name: "_signedPairPrices",
|
|
14845
15468
|
type: "tuple[]",
|
|
14846
15469
|
},
|
|
14847
15470
|
],
|
|
@@ -14849,7 +15472,7 @@ const _abi = [
|
|
|
14849
15472
|
outputs: [],
|
|
14850
15473
|
stateMutability: "nonpayable",
|
|
14851
15474
|
type: "function",
|
|
14852
|
-
signature: "
|
|
15475
|
+
signature: "0xd4b813f2",
|
|
14853
15476
|
},
|
|
14854
15477
|
{
|
|
14855
15478
|
inputs: [
|
|
@@ -14920,21 +15543,76 @@ const _abi = [
|
|
|
14920
15543
|
type: "function",
|
|
14921
15544
|
signature: "0x801c7961",
|
|
14922
15545
|
},
|
|
15546
|
+
{
|
|
15547
|
+
inputs: [],
|
|
15548
|
+
name: "DuplicateOrUnsortedPairIndices",
|
|
15549
|
+
type: "error",
|
|
15550
|
+
},
|
|
15551
|
+
{
|
|
15552
|
+
inputs: [],
|
|
15553
|
+
name: "ExpiryTooFar",
|
|
15554
|
+
type: "error",
|
|
15555
|
+
},
|
|
15556
|
+
{
|
|
15557
|
+
inputs: [],
|
|
15558
|
+
name: "FromBlockMismatch",
|
|
15559
|
+
type: "error",
|
|
15560
|
+
},
|
|
14923
15561
|
{
|
|
14924
15562
|
inputs: [],
|
|
14925
15563
|
name: "InvalidCandle",
|
|
14926
15564
|
type: "error",
|
|
14927
15565
|
},
|
|
15566
|
+
{
|
|
15567
|
+
inputs: [],
|
|
15568
|
+
name: "InvalidCurrentPrice",
|
|
15569
|
+
type: "error",
|
|
15570
|
+
},
|
|
15571
|
+
{
|
|
15572
|
+
inputs: [],
|
|
15573
|
+
name: "InvalidExpiryTimestamp",
|
|
15574
|
+
type: "error",
|
|
15575
|
+
},
|
|
14928
15576
|
{
|
|
14929
15577
|
inputs: [],
|
|
14930
15578
|
name: "InvalidPoolType",
|
|
14931
15579
|
type: "error",
|
|
14932
15580
|
},
|
|
15581
|
+
{
|
|
15582
|
+
inputs: [],
|
|
15583
|
+
name: "InvalidSignature",
|
|
15584
|
+
type: "error",
|
|
15585
|
+
},
|
|
15586
|
+
{
|
|
15587
|
+
inputs: [],
|
|
15588
|
+
name: "LookbackMismatch",
|
|
15589
|
+
type: "error",
|
|
15590
|
+
},
|
|
15591
|
+
{
|
|
15592
|
+
inputs: [],
|
|
15593
|
+
name: "MinAnswersNotReached",
|
|
15594
|
+
type: "error",
|
|
15595
|
+
},
|
|
14933
15596
|
{
|
|
14934
15597
|
inputs: [],
|
|
14935
15598
|
name: "OracleAlreadyListed",
|
|
14936
15599
|
type: "error",
|
|
14937
15600
|
},
|
|
15601
|
+
{
|
|
15602
|
+
inputs: [],
|
|
15603
|
+
name: "PairAndCurrentPriceLengthMismatch",
|
|
15604
|
+
type: "error",
|
|
15605
|
+
},
|
|
15606
|
+
{
|
|
15607
|
+
inputs: [],
|
|
15608
|
+
name: "PairIndexMismatchBetweenSigners",
|
|
15609
|
+
type: "error",
|
|
15610
|
+
},
|
|
15611
|
+
{
|
|
15612
|
+
inputs: [],
|
|
15613
|
+
name: "PairLengthMismatchBetweenSigners",
|
|
15614
|
+
type: "error",
|
|
15615
|
+
},
|
|
14938
15616
|
{
|
|
14939
15617
|
inputs: [],
|
|
14940
15618
|
name: "RequestAlreadyPending",
|
|
@@ -14955,6 +15633,16 @@ const _abi = [
|
|
|
14955
15633
|
name: "WrongCollateralUsdDecimals",
|
|
14956
15634
|
type: "error",
|
|
14957
15635
|
},
|
|
15636
|
+
{
|
|
15637
|
+
inputs: [],
|
|
15638
|
+
name: "WrongSignaturesCount",
|
|
15639
|
+
type: "error",
|
|
15640
|
+
},
|
|
15641
|
+
{
|
|
15642
|
+
inputs: [],
|
|
15643
|
+
name: "WrongSignerIdOrder",
|
|
15644
|
+
type: "error",
|
|
15645
|
+
},
|
|
14958
15646
|
{
|
|
14959
15647
|
anonymous: false,
|
|
14960
15648
|
inputs: [
|
|
@@ -15240,20 +15928,6 @@ const _abi = [
|
|
|
15240
15928
|
type: "event",
|
|
15241
15929
|
signature: "0x36f00e7308d970ca7446a252b7a1dd9c9cb50ea4559b602e595fc53967ac9dd9",
|
|
15242
15930
|
},
|
|
15243
|
-
{
|
|
15244
|
-
anonymous: false,
|
|
15245
|
-
inputs: [
|
|
15246
|
-
{
|
|
15247
|
-
indexed: false,
|
|
15248
|
-
internalType: "bytes32",
|
|
15249
|
-
name: "jobId",
|
|
15250
|
-
type: "bytes32",
|
|
15251
|
-
},
|
|
15252
|
-
],
|
|
15253
|
-
name: "ParamUpdateJobIdUpdated",
|
|
15254
|
-
type: "event",
|
|
15255
|
-
signature: "0x47b440e213065ce71d2660828d52a17e40915af406469be6b9af861a9465427b",
|
|
15256
|
-
},
|
|
15257
15931
|
{
|
|
15258
15932
|
anonymous: false,
|
|
15259
15933
|
inputs: [
|
|
@@ -15570,6 +16244,104 @@ const _abi = [
|
|
|
15570
16244
|
type: "event",
|
|
15571
16245
|
signature: "0xb388bf2f3f0bb2fde6ffeb60ae5f6ade4679631a026ce552771baebbb0ddb682",
|
|
15572
16246
|
},
|
|
16247
|
+
{
|
|
16248
|
+
anonymous: false,
|
|
16249
|
+
inputs: [
|
|
16250
|
+
{
|
|
16251
|
+
indexed: true,
|
|
16252
|
+
internalType: "uint16",
|
|
16253
|
+
name: "pairIndex",
|
|
16254
|
+
type: "uint16",
|
|
16255
|
+
},
|
|
16256
|
+
{
|
|
16257
|
+
indexed: false,
|
|
16258
|
+
internalType: "bool",
|
|
16259
|
+
name: "isLookback",
|
|
16260
|
+
type: "bool",
|
|
16261
|
+
},
|
|
16262
|
+
{
|
|
16263
|
+
indexed: false,
|
|
16264
|
+
internalType: "uint32",
|
|
16265
|
+
name: "fromBlock",
|
|
16266
|
+
type: "uint32",
|
|
16267
|
+
},
|
|
16268
|
+
{
|
|
16269
|
+
indexed: false,
|
|
16270
|
+
internalType: "bool",
|
|
16271
|
+
name: "minFilteredAnswersReached",
|
|
16272
|
+
type: "bool",
|
|
16273
|
+
},
|
|
16274
|
+
{
|
|
16275
|
+
components: [
|
|
16276
|
+
{
|
|
16277
|
+
internalType: "uint56",
|
|
16278
|
+
name: "open",
|
|
16279
|
+
type: "uint56",
|
|
16280
|
+
},
|
|
16281
|
+
{
|
|
16282
|
+
internalType: "uint56",
|
|
16283
|
+
name: "high",
|
|
16284
|
+
type: "uint56",
|
|
16285
|
+
},
|
|
16286
|
+
{
|
|
16287
|
+
internalType: "uint56",
|
|
16288
|
+
name: "low",
|
|
16289
|
+
type: "uint56",
|
|
16290
|
+
},
|
|
16291
|
+
{
|
|
16292
|
+
internalType: "uint56",
|
|
16293
|
+
name: "current",
|
|
16294
|
+
type: "uint56",
|
|
16295
|
+
},
|
|
16296
|
+
{
|
|
16297
|
+
internalType: "uint32",
|
|
16298
|
+
name: "ts",
|
|
16299
|
+
type: "uint32",
|
|
16300
|
+
},
|
|
16301
|
+
],
|
|
16302
|
+
indexed: false,
|
|
16303
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
16304
|
+
name: "unfilteredAnswers",
|
|
16305
|
+
type: "tuple[]",
|
|
16306
|
+
},
|
|
16307
|
+
{
|
|
16308
|
+
components: [
|
|
16309
|
+
{
|
|
16310
|
+
internalType: "uint56",
|
|
16311
|
+
name: "open",
|
|
16312
|
+
type: "uint56",
|
|
16313
|
+
},
|
|
16314
|
+
{
|
|
16315
|
+
internalType: "uint56",
|
|
16316
|
+
name: "high",
|
|
16317
|
+
type: "uint56",
|
|
16318
|
+
},
|
|
16319
|
+
{
|
|
16320
|
+
internalType: "uint56",
|
|
16321
|
+
name: "low",
|
|
16322
|
+
type: "uint56",
|
|
16323
|
+
},
|
|
16324
|
+
{
|
|
16325
|
+
internalType: "uint56",
|
|
16326
|
+
name: "current",
|
|
16327
|
+
type: "uint56",
|
|
16328
|
+
},
|
|
16329
|
+
{
|
|
16330
|
+
internalType: "uint32",
|
|
16331
|
+
name: "ts",
|
|
16332
|
+
type: "uint32",
|
|
16333
|
+
},
|
|
16334
|
+
],
|
|
16335
|
+
indexed: false,
|
|
16336
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
16337
|
+
name: "filteredAnswers",
|
|
16338
|
+
type: "tuple[]",
|
|
16339
|
+
},
|
|
16340
|
+
],
|
|
16341
|
+
name: "SignedPricesReceived",
|
|
16342
|
+
type: "event",
|
|
16343
|
+
signature: "0x86de8981b0d1c326788b6cf0a05a146dad3a99f57d2df4af213f32de34ce8bf4",
|
|
16344
|
+
},
|
|
15573
16345
|
{
|
|
15574
16346
|
anonymous: false,
|
|
15575
16347
|
inputs: [
|
|
@@ -15665,6 +16437,14 @@ const _abi = [
|
|
|
15665
16437
|
type: "function",
|
|
15666
16438
|
signature: "0x6f37d263",
|
|
15667
16439
|
},
|
|
16440
|
+
{
|
|
16441
|
+
inputs: [],
|
|
16442
|
+
name: "cleanUpSignedPairPrices",
|
|
16443
|
+
outputs: [],
|
|
16444
|
+
stateMutability: "nonpayable",
|
|
16445
|
+
type: "function",
|
|
16446
|
+
signature: "0x1c302ec1",
|
|
16447
|
+
},
|
|
15668
16448
|
{
|
|
15669
16449
|
inputs: [
|
|
15670
16450
|
{
|
|
@@ -16052,18 +16832,110 @@ const _abi = [
|
|
|
16052
16832
|
signature: "0x40884c52",
|
|
16053
16833
|
},
|
|
16054
16834
|
{
|
|
16055
|
-
inputs: [
|
|
16056
|
-
|
|
16835
|
+
inputs: [
|
|
16836
|
+
{
|
|
16837
|
+
internalType: "uint16",
|
|
16838
|
+
name: "_pairIndex",
|
|
16839
|
+
type: "uint16",
|
|
16840
|
+
},
|
|
16841
|
+
],
|
|
16842
|
+
name: "getPairSignedMedianTemporary",
|
|
16057
16843
|
outputs: [
|
|
16058
16844
|
{
|
|
16059
|
-
|
|
16845
|
+
components: [
|
|
16846
|
+
{
|
|
16847
|
+
components: [
|
|
16848
|
+
{
|
|
16849
|
+
internalType: "address",
|
|
16850
|
+
name: "user",
|
|
16851
|
+
type: "address",
|
|
16852
|
+
},
|
|
16853
|
+
{
|
|
16854
|
+
internalType: "uint32",
|
|
16855
|
+
name: "index",
|
|
16856
|
+
type: "uint32",
|
|
16857
|
+
},
|
|
16858
|
+
],
|
|
16859
|
+
internalType: "struct ITradingStorage.Id",
|
|
16860
|
+
name: "orderId",
|
|
16861
|
+
type: "tuple",
|
|
16862
|
+
},
|
|
16863
|
+
{
|
|
16864
|
+
internalType: "uint64",
|
|
16865
|
+
name: "open",
|
|
16866
|
+
type: "uint64",
|
|
16867
|
+
},
|
|
16868
|
+
{
|
|
16869
|
+
internalType: "uint64",
|
|
16870
|
+
name: "high",
|
|
16871
|
+
type: "uint64",
|
|
16872
|
+
},
|
|
16873
|
+
{
|
|
16874
|
+
internalType: "uint64",
|
|
16875
|
+
name: "low",
|
|
16876
|
+
type: "uint64",
|
|
16877
|
+
},
|
|
16878
|
+
{
|
|
16879
|
+
internalType: "uint64",
|
|
16880
|
+
name: "current",
|
|
16881
|
+
type: "uint64",
|
|
16882
|
+
},
|
|
16883
|
+
],
|
|
16884
|
+
internalType: "struct ITradingCallbacks.AggregatorAnswer",
|
|
16885
|
+
name: "",
|
|
16886
|
+
type: "tuple",
|
|
16887
|
+
},
|
|
16888
|
+
],
|
|
16889
|
+
stateMutability: "view",
|
|
16890
|
+
type: "function",
|
|
16891
|
+
signature: "0xed5becb6",
|
|
16892
|
+
},
|
|
16893
|
+
{
|
|
16894
|
+
inputs: [
|
|
16895
|
+
{
|
|
16896
|
+
internalType: "uint16",
|
|
16897
|
+
name: "_pairIndex",
|
|
16898
|
+
type: "uint16",
|
|
16899
|
+
},
|
|
16900
|
+
],
|
|
16901
|
+
name: "getPairSignedOrderAnswersTemporary",
|
|
16902
|
+
outputs: [
|
|
16903
|
+
{
|
|
16904
|
+
components: [
|
|
16905
|
+
{
|
|
16906
|
+
internalType: "uint56",
|
|
16907
|
+
name: "open",
|
|
16908
|
+
type: "uint56",
|
|
16909
|
+
},
|
|
16910
|
+
{
|
|
16911
|
+
internalType: "uint56",
|
|
16912
|
+
name: "high",
|
|
16913
|
+
type: "uint56",
|
|
16914
|
+
},
|
|
16915
|
+
{
|
|
16916
|
+
internalType: "uint56",
|
|
16917
|
+
name: "low",
|
|
16918
|
+
type: "uint56",
|
|
16919
|
+
},
|
|
16920
|
+
{
|
|
16921
|
+
internalType: "uint56",
|
|
16922
|
+
name: "current",
|
|
16923
|
+
type: "uint56",
|
|
16924
|
+
},
|
|
16925
|
+
{
|
|
16926
|
+
internalType: "uint32",
|
|
16927
|
+
name: "ts",
|
|
16928
|
+
type: "uint32",
|
|
16929
|
+
},
|
|
16930
|
+
],
|
|
16931
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
16060
16932
|
name: "",
|
|
16061
|
-
type: "
|
|
16933
|
+
type: "tuple[]",
|
|
16062
16934
|
},
|
|
16063
16935
|
],
|
|
16064
16936
|
stateMutability: "view",
|
|
16065
16937
|
type: "function",
|
|
16066
|
-
signature: "
|
|
16938
|
+
signature: "0x4ed0ed84",
|
|
16067
16939
|
},
|
|
16068
16940
|
{
|
|
16069
16941
|
inputs: [
|
|
@@ -16388,6 +17260,20 @@ const _abi = [
|
|
|
16388
17260
|
type: "function",
|
|
16389
17261
|
signature: "0x3fad1834",
|
|
16390
17262
|
},
|
|
17263
|
+
{
|
|
17264
|
+
inputs: [],
|
|
17265
|
+
name: "getSignedPairIndicesTemporary",
|
|
17266
|
+
outputs: [
|
|
17267
|
+
{
|
|
17268
|
+
internalType: "uint16[]",
|
|
17269
|
+
name: "",
|
|
17270
|
+
type: "uint16[]",
|
|
17271
|
+
},
|
|
17272
|
+
],
|
|
17273
|
+
stateMutability: "view",
|
|
17274
|
+
type: "function",
|
|
17275
|
+
signature: "0x988fcc05",
|
|
17276
|
+
},
|
|
16391
17277
|
{
|
|
16392
17278
|
inputs: [],
|
|
16393
17279
|
name: "getTwapInterval",
|
|
@@ -16460,20 +17346,6 @@ const _abi = [
|
|
|
16460
17346
|
type: "function",
|
|
16461
17347
|
signature: "0x94db9ef7",
|
|
16462
17348
|
},
|
|
16463
|
-
{
|
|
16464
|
-
inputs: [
|
|
16465
|
-
{
|
|
16466
|
-
internalType: "bytes32",
|
|
16467
|
-
name: "_jobId",
|
|
16468
|
-
type: "bytes32",
|
|
16469
|
-
},
|
|
16470
|
-
],
|
|
16471
|
-
name: "initializeParamUpdateJobId",
|
|
16472
|
-
outputs: [],
|
|
16473
|
-
stateMutability: "nonpayable",
|
|
16474
|
-
type: "function",
|
|
16475
|
-
signature: "0x299e40a4",
|
|
16476
|
-
},
|
|
16477
17349
|
{
|
|
16478
17350
|
inputs: [
|
|
16479
17351
|
{
|
|
@@ -16643,20 +17515,6 @@ const _abi = [
|
|
|
16643
17515
|
type: "function",
|
|
16644
17516
|
signature: "0xaa564b10",
|
|
16645
17517
|
},
|
|
16646
|
-
{
|
|
16647
|
-
inputs: [
|
|
16648
|
-
{
|
|
16649
|
-
internalType: "bytes32",
|
|
16650
|
-
name: "_jobId",
|
|
16651
|
-
type: "bytes32",
|
|
16652
|
-
},
|
|
16653
|
-
],
|
|
16654
|
-
name: "setParamUpdateJobId",
|
|
16655
|
-
outputs: [],
|
|
16656
|
-
stateMutability: "nonpayable",
|
|
16657
|
-
type: "function",
|
|
16658
|
-
signature: "0x989f7ceb",
|
|
16659
|
-
},
|
|
16660
17518
|
{
|
|
16661
17519
|
inputs: [
|
|
16662
17520
|
{
|
|
@@ -16749,6 +17607,89 @@ const _abi = [
|
|
|
16749
17607
|
type: "function",
|
|
16750
17608
|
signature: "0xb166a495",
|
|
16751
17609
|
},
|
|
17610
|
+
{
|
|
17611
|
+
inputs: [
|
|
17612
|
+
{
|
|
17613
|
+
components: [
|
|
17614
|
+
{
|
|
17615
|
+
internalType: "uint8",
|
|
17616
|
+
name: "signerId",
|
|
17617
|
+
type: "uint8",
|
|
17618
|
+
},
|
|
17619
|
+
{
|
|
17620
|
+
internalType: "uint32",
|
|
17621
|
+
name: "expiryTs",
|
|
17622
|
+
type: "uint32",
|
|
17623
|
+
},
|
|
17624
|
+
{
|
|
17625
|
+
internalType: "bool",
|
|
17626
|
+
name: "isLookback",
|
|
17627
|
+
type: "bool",
|
|
17628
|
+
},
|
|
17629
|
+
{
|
|
17630
|
+
internalType: "uint32",
|
|
17631
|
+
name: "fromBlock",
|
|
17632
|
+
type: "uint32",
|
|
17633
|
+
},
|
|
17634
|
+
{
|
|
17635
|
+
internalType: "bytes",
|
|
17636
|
+
name: "signature",
|
|
17637
|
+
type: "bytes",
|
|
17638
|
+
},
|
|
17639
|
+
{
|
|
17640
|
+
internalType: "uint16[]",
|
|
17641
|
+
name: "pairIndices",
|
|
17642
|
+
type: "uint16[]",
|
|
17643
|
+
},
|
|
17644
|
+
{
|
|
17645
|
+
components: [
|
|
17646
|
+
{
|
|
17647
|
+
internalType: "uint56",
|
|
17648
|
+
name: "open",
|
|
17649
|
+
type: "uint56",
|
|
17650
|
+
},
|
|
17651
|
+
{
|
|
17652
|
+
internalType: "uint56",
|
|
17653
|
+
name: "high",
|
|
17654
|
+
type: "uint56",
|
|
17655
|
+
},
|
|
17656
|
+
{
|
|
17657
|
+
internalType: "uint56",
|
|
17658
|
+
name: "low",
|
|
17659
|
+
type: "uint56",
|
|
17660
|
+
},
|
|
17661
|
+
{
|
|
17662
|
+
internalType: "uint56",
|
|
17663
|
+
name: "current",
|
|
17664
|
+
type: "uint56",
|
|
17665
|
+
},
|
|
17666
|
+
{
|
|
17667
|
+
internalType: "uint32",
|
|
17668
|
+
name: "ts",
|
|
17669
|
+
type: "uint32",
|
|
17670
|
+
},
|
|
17671
|
+
],
|
|
17672
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
17673
|
+
name: "prices",
|
|
17674
|
+
type: "tuple[]",
|
|
17675
|
+
},
|
|
17676
|
+
],
|
|
17677
|
+
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
17678
|
+
name: "_signedPairPrices",
|
|
17679
|
+
type: "tuple[]",
|
|
17680
|
+
},
|
|
17681
|
+
{
|
|
17682
|
+
internalType: "bool",
|
|
17683
|
+
name: "_isLookback",
|
|
17684
|
+
type: "bool",
|
|
17685
|
+
},
|
|
17686
|
+
],
|
|
17687
|
+
name: "validateSignedPairPrices",
|
|
17688
|
+
outputs: [],
|
|
17689
|
+
stateMutability: "nonpayable",
|
|
17690
|
+
type: "function",
|
|
17691
|
+
signature: "0x73b0d136",
|
|
17692
|
+
},
|
|
16752
17693
|
{
|
|
16753
17694
|
inputs: [],
|
|
16754
17695
|
name: "InvalidShareSum",
|
|
@@ -18815,53 +19756,36 @@ const _abi = [
|
|
|
18815
19756
|
{
|
|
18816
19757
|
components: [
|
|
18817
19758
|
{
|
|
18818
|
-
|
|
18819
|
-
|
|
18820
|
-
|
|
18821
|
-
name: "user",
|
|
18822
|
-
type: "address",
|
|
18823
|
-
},
|
|
18824
|
-
{
|
|
18825
|
-
internalType: "uint32",
|
|
18826
|
-
name: "index",
|
|
18827
|
-
type: "uint32",
|
|
18828
|
-
},
|
|
18829
|
-
],
|
|
18830
|
-
internalType: "struct ITradingStorage.Id",
|
|
18831
|
-
name: "orderId",
|
|
18832
|
-
type: "tuple",
|
|
18833
|
-
},
|
|
18834
|
-
{
|
|
18835
|
-
internalType: "uint64",
|
|
18836
|
-
name: "open",
|
|
18837
|
-
type: "uint64",
|
|
19759
|
+
internalType: "uint8",
|
|
19760
|
+
name: "collateralIndex",
|
|
19761
|
+
type: "uint8",
|
|
18838
19762
|
},
|
|
18839
19763
|
{
|
|
18840
|
-
internalType: "
|
|
18841
|
-
name: "
|
|
18842
|
-
type: "
|
|
19764
|
+
internalType: "uint16",
|
|
19765
|
+
name: "pairIndex",
|
|
19766
|
+
type: "uint16",
|
|
18843
19767
|
},
|
|
18844
19768
|
{
|
|
18845
|
-
internalType: "
|
|
18846
|
-
name: "
|
|
18847
|
-
type: "
|
|
19769
|
+
internalType: "enum IFundingFees.ParamUpdateType",
|
|
19770
|
+
name: "updateType",
|
|
19771
|
+
type: "uint8",
|
|
18848
19772
|
},
|
|
18849
19773
|
{
|
|
18850
|
-
internalType: "
|
|
18851
|
-
name: "
|
|
18852
|
-
type: "
|
|
19774
|
+
internalType: "uint224",
|
|
19775
|
+
name: "newValue",
|
|
19776
|
+
type: "uint224",
|
|
18853
19777
|
},
|
|
18854
19778
|
],
|
|
18855
|
-
internalType: "struct
|
|
18856
|
-
name: "
|
|
19779
|
+
internalType: "struct IFundingFees.PendingParamUpdate",
|
|
19780
|
+
name: "_paramUpdate",
|
|
18857
19781
|
type: "tuple",
|
|
18858
19782
|
},
|
|
18859
19783
|
],
|
|
18860
|
-
name: "
|
|
19784
|
+
name: "paramUpdateCallbackWithSignedPrices",
|
|
18861
19785
|
outputs: [],
|
|
18862
19786
|
stateMutability: "nonpayable",
|
|
18863
19787
|
type: "function",
|
|
18864
|
-
signature: "
|
|
19788
|
+
signature: "0x002c68df",
|
|
18865
19789
|
},
|
|
18866
19790
|
{
|
|
18867
19791
|
inputs: [
|
|
@@ -18946,35 +19870,6 @@ const _abi = [
|
|
|
18946
19870
|
type: "function",
|
|
18947
19871
|
signature: "0xfd84264d",
|
|
18948
19872
|
},
|
|
18949
|
-
{
|
|
18950
|
-
inputs: [
|
|
18951
|
-
{
|
|
18952
|
-
internalType: "uint8",
|
|
18953
|
-
name: "_collateralIndex",
|
|
18954
|
-
type: "uint8",
|
|
18955
|
-
},
|
|
18956
|
-
{
|
|
18957
|
-
internalType: "uint16",
|
|
18958
|
-
name: "_pairIndex",
|
|
18959
|
-
type: "uint16",
|
|
18960
|
-
},
|
|
18961
|
-
{
|
|
18962
|
-
internalType: "enum IFundingFees.ParamUpdateType",
|
|
18963
|
-
name: "_updateType",
|
|
18964
|
-
type: "uint8",
|
|
18965
|
-
},
|
|
18966
|
-
{
|
|
18967
|
-
internalType: "uint224",
|
|
18968
|
-
name: "_newValue",
|
|
18969
|
-
type: "uint224",
|
|
18970
|
-
},
|
|
18971
|
-
],
|
|
18972
|
-
name: "requestParamUpdate",
|
|
18973
|
-
outputs: [],
|
|
18974
|
-
stateMutability: "nonpayable",
|
|
18975
|
-
type: "function",
|
|
18976
|
-
signature: "0x41f84f2b",
|
|
18977
|
-
},
|
|
18978
19873
|
{
|
|
18979
19874
|
inputs: [
|
|
18980
19875
|
{
|
|
@@ -18992,12 +19887,81 @@ const _abi = [
|
|
|
18992
19887
|
name: "_absoluteRatePerSecondCap",
|
|
18993
19888
|
type: "uint24[]",
|
|
18994
19889
|
},
|
|
19890
|
+
{
|
|
19891
|
+
components: [
|
|
19892
|
+
{
|
|
19893
|
+
internalType: "uint8",
|
|
19894
|
+
name: "signerId",
|
|
19895
|
+
type: "uint8",
|
|
19896
|
+
},
|
|
19897
|
+
{
|
|
19898
|
+
internalType: "uint32",
|
|
19899
|
+
name: "expiryTs",
|
|
19900
|
+
type: "uint32",
|
|
19901
|
+
},
|
|
19902
|
+
{
|
|
19903
|
+
internalType: "bool",
|
|
19904
|
+
name: "isLookback",
|
|
19905
|
+
type: "bool",
|
|
19906
|
+
},
|
|
19907
|
+
{
|
|
19908
|
+
internalType: "uint32",
|
|
19909
|
+
name: "fromBlock",
|
|
19910
|
+
type: "uint32",
|
|
19911
|
+
},
|
|
19912
|
+
{
|
|
19913
|
+
internalType: "bytes",
|
|
19914
|
+
name: "signature",
|
|
19915
|
+
type: "bytes",
|
|
19916
|
+
},
|
|
19917
|
+
{
|
|
19918
|
+
internalType: "uint16[]",
|
|
19919
|
+
name: "pairIndices",
|
|
19920
|
+
type: "uint16[]",
|
|
19921
|
+
},
|
|
19922
|
+
{
|
|
19923
|
+
components: [
|
|
19924
|
+
{
|
|
19925
|
+
internalType: "uint56",
|
|
19926
|
+
name: "open",
|
|
19927
|
+
type: "uint56",
|
|
19928
|
+
},
|
|
19929
|
+
{
|
|
19930
|
+
internalType: "uint56",
|
|
19931
|
+
name: "high",
|
|
19932
|
+
type: "uint56",
|
|
19933
|
+
},
|
|
19934
|
+
{
|
|
19935
|
+
internalType: "uint56",
|
|
19936
|
+
name: "low",
|
|
19937
|
+
type: "uint56",
|
|
19938
|
+
},
|
|
19939
|
+
{
|
|
19940
|
+
internalType: "uint56",
|
|
19941
|
+
name: "current",
|
|
19942
|
+
type: "uint56",
|
|
19943
|
+
},
|
|
19944
|
+
{
|
|
19945
|
+
internalType: "uint32",
|
|
19946
|
+
name: "ts",
|
|
19947
|
+
type: "uint32",
|
|
19948
|
+
},
|
|
19949
|
+
],
|
|
19950
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
19951
|
+
name: "prices",
|
|
19952
|
+
type: "tuple[]",
|
|
19953
|
+
},
|
|
19954
|
+
],
|
|
19955
|
+
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
19956
|
+
name: "_signedPairPrices",
|
|
19957
|
+
type: "tuple[]",
|
|
19958
|
+
},
|
|
18995
19959
|
],
|
|
18996
19960
|
name: "setAbsoluteRatePerSecondCap",
|
|
18997
19961
|
outputs: [],
|
|
18998
19962
|
stateMutability: "nonpayable",
|
|
18999
19963
|
type: "function",
|
|
19000
|
-
signature: "
|
|
19964
|
+
signature: "0x48b5a760",
|
|
19001
19965
|
},
|
|
19002
19966
|
{
|
|
19003
19967
|
inputs: [
|
|
@@ -19016,12 +19980,81 @@ const _abi = [
|
|
|
19016
19980
|
name: "_absoluteVelocityPerYearCap",
|
|
19017
19981
|
type: "uint24[]",
|
|
19018
19982
|
},
|
|
19983
|
+
{
|
|
19984
|
+
components: [
|
|
19985
|
+
{
|
|
19986
|
+
internalType: "uint8",
|
|
19987
|
+
name: "signerId",
|
|
19988
|
+
type: "uint8",
|
|
19989
|
+
},
|
|
19990
|
+
{
|
|
19991
|
+
internalType: "uint32",
|
|
19992
|
+
name: "expiryTs",
|
|
19993
|
+
type: "uint32",
|
|
19994
|
+
},
|
|
19995
|
+
{
|
|
19996
|
+
internalType: "bool",
|
|
19997
|
+
name: "isLookback",
|
|
19998
|
+
type: "bool",
|
|
19999
|
+
},
|
|
20000
|
+
{
|
|
20001
|
+
internalType: "uint32",
|
|
20002
|
+
name: "fromBlock",
|
|
20003
|
+
type: "uint32",
|
|
20004
|
+
},
|
|
20005
|
+
{
|
|
20006
|
+
internalType: "bytes",
|
|
20007
|
+
name: "signature",
|
|
20008
|
+
type: "bytes",
|
|
20009
|
+
},
|
|
20010
|
+
{
|
|
20011
|
+
internalType: "uint16[]",
|
|
20012
|
+
name: "pairIndices",
|
|
20013
|
+
type: "uint16[]",
|
|
20014
|
+
},
|
|
20015
|
+
{
|
|
20016
|
+
components: [
|
|
20017
|
+
{
|
|
20018
|
+
internalType: "uint56",
|
|
20019
|
+
name: "open",
|
|
20020
|
+
type: "uint56",
|
|
20021
|
+
},
|
|
20022
|
+
{
|
|
20023
|
+
internalType: "uint56",
|
|
20024
|
+
name: "high",
|
|
20025
|
+
type: "uint56",
|
|
20026
|
+
},
|
|
20027
|
+
{
|
|
20028
|
+
internalType: "uint56",
|
|
20029
|
+
name: "low",
|
|
20030
|
+
type: "uint56",
|
|
20031
|
+
},
|
|
20032
|
+
{
|
|
20033
|
+
internalType: "uint56",
|
|
20034
|
+
name: "current",
|
|
20035
|
+
type: "uint56",
|
|
20036
|
+
},
|
|
20037
|
+
{
|
|
20038
|
+
internalType: "uint32",
|
|
20039
|
+
name: "ts",
|
|
20040
|
+
type: "uint32",
|
|
20041
|
+
},
|
|
20042
|
+
],
|
|
20043
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20044
|
+
name: "prices",
|
|
20045
|
+
type: "tuple[]",
|
|
20046
|
+
},
|
|
20047
|
+
],
|
|
20048
|
+
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20049
|
+
name: "_signedPairPrices",
|
|
20050
|
+
type: "tuple[]",
|
|
20051
|
+
},
|
|
19019
20052
|
],
|
|
19020
20053
|
name: "setAbsoluteVelocityPerYearCap",
|
|
19021
20054
|
outputs: [],
|
|
19022
20055
|
stateMutability: "nonpayable",
|
|
19023
20056
|
type: "function",
|
|
19024
|
-
signature: "
|
|
20057
|
+
signature: "0xfacfee17",
|
|
19025
20058
|
},
|
|
19026
20059
|
{
|
|
19027
20060
|
inputs: [
|
|
@@ -19040,12 +20073,81 @@ const _abi = [
|
|
|
19040
20073
|
name: "_aprMultiplierEnabled",
|
|
19041
20074
|
type: "bool[]",
|
|
19042
20075
|
},
|
|
20076
|
+
{
|
|
20077
|
+
components: [
|
|
20078
|
+
{
|
|
20079
|
+
internalType: "uint8",
|
|
20080
|
+
name: "signerId",
|
|
20081
|
+
type: "uint8",
|
|
20082
|
+
},
|
|
20083
|
+
{
|
|
20084
|
+
internalType: "uint32",
|
|
20085
|
+
name: "expiryTs",
|
|
20086
|
+
type: "uint32",
|
|
20087
|
+
},
|
|
20088
|
+
{
|
|
20089
|
+
internalType: "bool",
|
|
20090
|
+
name: "isLookback",
|
|
20091
|
+
type: "bool",
|
|
20092
|
+
},
|
|
20093
|
+
{
|
|
20094
|
+
internalType: "uint32",
|
|
20095
|
+
name: "fromBlock",
|
|
20096
|
+
type: "uint32",
|
|
20097
|
+
},
|
|
20098
|
+
{
|
|
20099
|
+
internalType: "bytes",
|
|
20100
|
+
name: "signature",
|
|
20101
|
+
type: "bytes",
|
|
20102
|
+
},
|
|
20103
|
+
{
|
|
20104
|
+
internalType: "uint16[]",
|
|
20105
|
+
name: "pairIndices",
|
|
20106
|
+
type: "uint16[]",
|
|
20107
|
+
},
|
|
20108
|
+
{
|
|
20109
|
+
components: [
|
|
20110
|
+
{
|
|
20111
|
+
internalType: "uint56",
|
|
20112
|
+
name: "open",
|
|
20113
|
+
type: "uint56",
|
|
20114
|
+
},
|
|
20115
|
+
{
|
|
20116
|
+
internalType: "uint56",
|
|
20117
|
+
name: "high",
|
|
20118
|
+
type: "uint56",
|
|
20119
|
+
},
|
|
20120
|
+
{
|
|
20121
|
+
internalType: "uint56",
|
|
20122
|
+
name: "low",
|
|
20123
|
+
type: "uint56",
|
|
20124
|
+
},
|
|
20125
|
+
{
|
|
20126
|
+
internalType: "uint56",
|
|
20127
|
+
name: "current",
|
|
20128
|
+
type: "uint56",
|
|
20129
|
+
},
|
|
20130
|
+
{
|
|
20131
|
+
internalType: "uint32",
|
|
20132
|
+
name: "ts",
|
|
20133
|
+
type: "uint32",
|
|
20134
|
+
},
|
|
20135
|
+
],
|
|
20136
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20137
|
+
name: "prices",
|
|
20138
|
+
type: "tuple[]",
|
|
20139
|
+
},
|
|
20140
|
+
],
|
|
20141
|
+
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20142
|
+
name: "_signedPairPrices",
|
|
20143
|
+
type: "tuple[]",
|
|
20144
|
+
},
|
|
19043
20145
|
],
|
|
19044
20146
|
name: "setAprMultiplierEnabled",
|
|
19045
20147
|
outputs: [],
|
|
19046
20148
|
stateMutability: "nonpayable",
|
|
19047
20149
|
type: "function",
|
|
19048
|
-
signature: "
|
|
20150
|
+
signature: "0x6d00c93e",
|
|
19049
20151
|
},
|
|
19050
20152
|
{
|
|
19051
20153
|
inputs: [
|
|
@@ -19064,12 +20166,81 @@ const _abi = [
|
|
|
19064
20166
|
name: "_borrowingRatePerSecondP",
|
|
19065
20167
|
type: "uint24[]",
|
|
19066
20168
|
},
|
|
20169
|
+
{
|
|
20170
|
+
components: [
|
|
20171
|
+
{
|
|
20172
|
+
internalType: "uint8",
|
|
20173
|
+
name: "signerId",
|
|
20174
|
+
type: "uint8",
|
|
20175
|
+
},
|
|
20176
|
+
{
|
|
20177
|
+
internalType: "uint32",
|
|
20178
|
+
name: "expiryTs",
|
|
20179
|
+
type: "uint32",
|
|
20180
|
+
},
|
|
20181
|
+
{
|
|
20182
|
+
internalType: "bool",
|
|
20183
|
+
name: "isLookback",
|
|
20184
|
+
type: "bool",
|
|
20185
|
+
},
|
|
20186
|
+
{
|
|
20187
|
+
internalType: "uint32",
|
|
20188
|
+
name: "fromBlock",
|
|
20189
|
+
type: "uint32",
|
|
20190
|
+
},
|
|
20191
|
+
{
|
|
20192
|
+
internalType: "bytes",
|
|
20193
|
+
name: "signature",
|
|
20194
|
+
type: "bytes",
|
|
20195
|
+
},
|
|
20196
|
+
{
|
|
20197
|
+
internalType: "uint16[]",
|
|
20198
|
+
name: "pairIndices",
|
|
20199
|
+
type: "uint16[]",
|
|
20200
|
+
},
|
|
20201
|
+
{
|
|
20202
|
+
components: [
|
|
20203
|
+
{
|
|
20204
|
+
internalType: "uint56",
|
|
20205
|
+
name: "open",
|
|
20206
|
+
type: "uint56",
|
|
20207
|
+
},
|
|
20208
|
+
{
|
|
20209
|
+
internalType: "uint56",
|
|
20210
|
+
name: "high",
|
|
20211
|
+
type: "uint56",
|
|
20212
|
+
},
|
|
20213
|
+
{
|
|
20214
|
+
internalType: "uint56",
|
|
20215
|
+
name: "low",
|
|
20216
|
+
type: "uint56",
|
|
20217
|
+
},
|
|
20218
|
+
{
|
|
20219
|
+
internalType: "uint56",
|
|
20220
|
+
name: "current",
|
|
20221
|
+
type: "uint56",
|
|
20222
|
+
},
|
|
20223
|
+
{
|
|
20224
|
+
internalType: "uint32",
|
|
20225
|
+
name: "ts",
|
|
20226
|
+
type: "uint32",
|
|
20227
|
+
},
|
|
20228
|
+
],
|
|
20229
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20230
|
+
name: "prices",
|
|
20231
|
+
type: "tuple[]",
|
|
20232
|
+
},
|
|
20233
|
+
],
|
|
20234
|
+
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20235
|
+
name: "_signedPairPrices",
|
|
20236
|
+
type: "tuple[]",
|
|
20237
|
+
},
|
|
19067
20238
|
],
|
|
19068
20239
|
name: "setBorrowingRatePerSecondP",
|
|
19069
20240
|
outputs: [],
|
|
19070
20241
|
stateMutability: "nonpayable",
|
|
19071
20242
|
type: "function",
|
|
19072
|
-
signature: "
|
|
20243
|
+
signature: "0x559f5276",
|
|
19073
20244
|
},
|
|
19074
20245
|
{
|
|
19075
20246
|
inputs: [
|
|
@@ -19088,12 +20259,81 @@ const _abi = [
|
|
|
19088
20259
|
name: "_fundingFeesEnabled",
|
|
19089
20260
|
type: "bool[]",
|
|
19090
20261
|
},
|
|
20262
|
+
{
|
|
20263
|
+
components: [
|
|
20264
|
+
{
|
|
20265
|
+
internalType: "uint8",
|
|
20266
|
+
name: "signerId",
|
|
20267
|
+
type: "uint8",
|
|
20268
|
+
},
|
|
20269
|
+
{
|
|
20270
|
+
internalType: "uint32",
|
|
20271
|
+
name: "expiryTs",
|
|
20272
|
+
type: "uint32",
|
|
20273
|
+
},
|
|
20274
|
+
{
|
|
20275
|
+
internalType: "bool",
|
|
20276
|
+
name: "isLookback",
|
|
20277
|
+
type: "bool",
|
|
20278
|
+
},
|
|
20279
|
+
{
|
|
20280
|
+
internalType: "uint32",
|
|
20281
|
+
name: "fromBlock",
|
|
20282
|
+
type: "uint32",
|
|
20283
|
+
},
|
|
20284
|
+
{
|
|
20285
|
+
internalType: "bytes",
|
|
20286
|
+
name: "signature",
|
|
20287
|
+
type: "bytes",
|
|
20288
|
+
},
|
|
20289
|
+
{
|
|
20290
|
+
internalType: "uint16[]",
|
|
20291
|
+
name: "pairIndices",
|
|
20292
|
+
type: "uint16[]",
|
|
20293
|
+
},
|
|
20294
|
+
{
|
|
20295
|
+
components: [
|
|
20296
|
+
{
|
|
20297
|
+
internalType: "uint56",
|
|
20298
|
+
name: "open",
|
|
20299
|
+
type: "uint56",
|
|
20300
|
+
},
|
|
20301
|
+
{
|
|
20302
|
+
internalType: "uint56",
|
|
20303
|
+
name: "high",
|
|
20304
|
+
type: "uint56",
|
|
20305
|
+
},
|
|
20306
|
+
{
|
|
20307
|
+
internalType: "uint56",
|
|
20308
|
+
name: "low",
|
|
20309
|
+
type: "uint56",
|
|
20310
|
+
},
|
|
20311
|
+
{
|
|
20312
|
+
internalType: "uint56",
|
|
20313
|
+
name: "current",
|
|
20314
|
+
type: "uint56",
|
|
20315
|
+
},
|
|
20316
|
+
{
|
|
20317
|
+
internalType: "uint32",
|
|
20318
|
+
name: "ts",
|
|
20319
|
+
type: "uint32",
|
|
20320
|
+
},
|
|
20321
|
+
],
|
|
20322
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20323
|
+
name: "prices",
|
|
20324
|
+
type: "tuple[]",
|
|
20325
|
+
},
|
|
20326
|
+
],
|
|
20327
|
+
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20328
|
+
name: "_signedPairPrices",
|
|
20329
|
+
type: "tuple[]",
|
|
20330
|
+
},
|
|
19091
20331
|
],
|
|
19092
20332
|
name: "setFundingFeesEnabled",
|
|
19093
20333
|
outputs: [],
|
|
19094
20334
|
stateMutability: "nonpayable",
|
|
19095
20335
|
type: "function",
|
|
19096
|
-
signature: "
|
|
20336
|
+
signature: "0x2fe09970",
|
|
19097
20337
|
},
|
|
19098
20338
|
{
|
|
19099
20339
|
inputs: [
|
|
@@ -19136,12 +20376,81 @@ const _abi = [
|
|
|
19136
20376
|
name: "_skewCoefficientPerYear",
|
|
19137
20377
|
type: "uint112[]",
|
|
19138
20378
|
},
|
|
20379
|
+
{
|
|
20380
|
+
components: [
|
|
20381
|
+
{
|
|
20382
|
+
internalType: "uint8",
|
|
20383
|
+
name: "signerId",
|
|
20384
|
+
type: "uint8",
|
|
20385
|
+
},
|
|
20386
|
+
{
|
|
20387
|
+
internalType: "uint32",
|
|
20388
|
+
name: "expiryTs",
|
|
20389
|
+
type: "uint32",
|
|
20390
|
+
},
|
|
20391
|
+
{
|
|
20392
|
+
internalType: "bool",
|
|
20393
|
+
name: "isLookback",
|
|
20394
|
+
type: "bool",
|
|
20395
|
+
},
|
|
20396
|
+
{
|
|
20397
|
+
internalType: "uint32",
|
|
20398
|
+
name: "fromBlock",
|
|
20399
|
+
type: "uint32",
|
|
20400
|
+
},
|
|
20401
|
+
{
|
|
20402
|
+
internalType: "bytes",
|
|
20403
|
+
name: "signature",
|
|
20404
|
+
type: "bytes",
|
|
20405
|
+
},
|
|
20406
|
+
{
|
|
20407
|
+
internalType: "uint16[]",
|
|
20408
|
+
name: "pairIndices",
|
|
20409
|
+
type: "uint16[]",
|
|
20410
|
+
},
|
|
20411
|
+
{
|
|
20412
|
+
components: [
|
|
20413
|
+
{
|
|
20414
|
+
internalType: "uint56",
|
|
20415
|
+
name: "open",
|
|
20416
|
+
type: "uint56",
|
|
20417
|
+
},
|
|
20418
|
+
{
|
|
20419
|
+
internalType: "uint56",
|
|
20420
|
+
name: "high",
|
|
20421
|
+
type: "uint56",
|
|
20422
|
+
},
|
|
20423
|
+
{
|
|
20424
|
+
internalType: "uint56",
|
|
20425
|
+
name: "low",
|
|
20426
|
+
type: "uint56",
|
|
20427
|
+
},
|
|
20428
|
+
{
|
|
20429
|
+
internalType: "uint56",
|
|
20430
|
+
name: "current",
|
|
20431
|
+
type: "uint56",
|
|
20432
|
+
},
|
|
20433
|
+
{
|
|
20434
|
+
internalType: "uint32",
|
|
20435
|
+
name: "ts",
|
|
20436
|
+
type: "uint32",
|
|
20437
|
+
},
|
|
20438
|
+
],
|
|
20439
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20440
|
+
name: "prices",
|
|
20441
|
+
type: "tuple[]",
|
|
20442
|
+
},
|
|
20443
|
+
],
|
|
20444
|
+
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20445
|
+
name: "_signedPairPrices",
|
|
20446
|
+
type: "tuple[]",
|
|
20447
|
+
},
|
|
19139
20448
|
],
|
|
19140
20449
|
name: "setSkewCoefficientPerYear",
|
|
19141
20450
|
outputs: [],
|
|
19142
20451
|
stateMutability: "nonpayable",
|
|
19143
20452
|
type: "function",
|
|
19144
|
-
signature: "
|
|
20453
|
+
signature: "0xaeaca82a",
|
|
19145
20454
|
},
|
|
19146
20455
|
{
|
|
19147
20456
|
inputs: [
|
|
@@ -19160,12 +20469,81 @@ const _abi = [
|
|
|
19160
20469
|
name: "_thetaThresholdUsd",
|
|
19161
20470
|
type: "uint32[]",
|
|
19162
20471
|
},
|
|
20472
|
+
{
|
|
20473
|
+
components: [
|
|
20474
|
+
{
|
|
20475
|
+
internalType: "uint8",
|
|
20476
|
+
name: "signerId",
|
|
20477
|
+
type: "uint8",
|
|
20478
|
+
},
|
|
20479
|
+
{
|
|
20480
|
+
internalType: "uint32",
|
|
20481
|
+
name: "expiryTs",
|
|
20482
|
+
type: "uint32",
|
|
20483
|
+
},
|
|
20484
|
+
{
|
|
20485
|
+
internalType: "bool",
|
|
20486
|
+
name: "isLookback",
|
|
20487
|
+
type: "bool",
|
|
20488
|
+
},
|
|
20489
|
+
{
|
|
20490
|
+
internalType: "uint32",
|
|
20491
|
+
name: "fromBlock",
|
|
20492
|
+
type: "uint32",
|
|
20493
|
+
},
|
|
20494
|
+
{
|
|
20495
|
+
internalType: "bytes",
|
|
20496
|
+
name: "signature",
|
|
20497
|
+
type: "bytes",
|
|
20498
|
+
},
|
|
20499
|
+
{
|
|
20500
|
+
internalType: "uint16[]",
|
|
20501
|
+
name: "pairIndices",
|
|
20502
|
+
type: "uint16[]",
|
|
20503
|
+
},
|
|
20504
|
+
{
|
|
20505
|
+
components: [
|
|
20506
|
+
{
|
|
20507
|
+
internalType: "uint56",
|
|
20508
|
+
name: "open",
|
|
20509
|
+
type: "uint56",
|
|
20510
|
+
},
|
|
20511
|
+
{
|
|
20512
|
+
internalType: "uint56",
|
|
20513
|
+
name: "high",
|
|
20514
|
+
type: "uint56",
|
|
20515
|
+
},
|
|
20516
|
+
{
|
|
20517
|
+
internalType: "uint56",
|
|
20518
|
+
name: "low",
|
|
20519
|
+
type: "uint56",
|
|
20520
|
+
},
|
|
20521
|
+
{
|
|
20522
|
+
internalType: "uint56",
|
|
20523
|
+
name: "current",
|
|
20524
|
+
type: "uint56",
|
|
20525
|
+
},
|
|
20526
|
+
{
|
|
20527
|
+
internalType: "uint32",
|
|
20528
|
+
name: "ts",
|
|
20529
|
+
type: "uint32",
|
|
20530
|
+
},
|
|
20531
|
+
],
|
|
20532
|
+
internalType: "struct IPriceAggregator.OrderAnswer[]",
|
|
20533
|
+
name: "prices",
|
|
20534
|
+
type: "tuple[]",
|
|
20535
|
+
},
|
|
20536
|
+
],
|
|
20537
|
+
internalType: "struct IPriceAggregator.SignedPairPrices[]",
|
|
20538
|
+
name: "_signedPairPrices",
|
|
20539
|
+
type: "tuple[]",
|
|
20540
|
+
},
|
|
19163
20541
|
],
|
|
19164
20542
|
name: "setThetaThresholdUsd",
|
|
19165
20543
|
outputs: [],
|
|
19166
20544
|
stateMutability: "nonpayable",
|
|
19167
20545
|
type: "function",
|
|
19168
|
-
signature: "
|
|
20546
|
+
signature: "0x6916451e",
|
|
19169
20547
|
},
|
|
19170
20548
|
{
|
|
19171
20549
|
inputs: [
|
|
@@ -19302,6 +20680,30 @@ const _abi = [
|
|
|
19302
20680
|
type: "function",
|
|
19303
20681
|
signature: "0x2e4f2b16",
|
|
19304
20682
|
},
|
|
20683
|
+
{
|
|
20684
|
+
inputs: [
|
|
20685
|
+
{
|
|
20686
|
+
internalType: "address",
|
|
20687
|
+
name: "_trader",
|
|
20688
|
+
type: "address",
|
|
20689
|
+
},
|
|
20690
|
+
{
|
|
20691
|
+
internalType: "uint32",
|
|
20692
|
+
name: "_index",
|
|
20693
|
+
type: "uint32",
|
|
20694
|
+
},
|
|
20695
|
+
{
|
|
20696
|
+
internalType: "uint256",
|
|
20697
|
+
name: "_deltaCollateral",
|
|
20698
|
+
type: "uint256",
|
|
20699
|
+
},
|
|
20700
|
+
],
|
|
20701
|
+
name: "storeUiRealizedTradingFeesCollateral",
|
|
20702
|
+
outputs: [],
|
|
20703
|
+
stateMutability: "nonpayable",
|
|
20704
|
+
type: "function",
|
|
20705
|
+
signature: "0x24f84e39",
|
|
20706
|
+
},
|
|
19305
20707
|
{
|
|
19306
20708
|
inputs: [
|
|
19307
20709
|
{
|