lynx-client 0.0.35 → 0.0.37
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/dist/cjs/lib/addresses/lensAddresses.js +6 -6
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +3 -0
- package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +1 -0
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +38 -1
- package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +84 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.js +2 -0
- package/dist/cjs/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.js +2 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.js +1118 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +21 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +222 -1
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +5 -0
- package/dist/cjs/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.js +538 -0
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +46 -1
- package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +452 -1
- package/dist/esm/lib/addresses/lensAddresses.d.ts +6 -6
- package/dist/esm/lib/addresses/lensAddresses.js +6 -6
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +3 -0
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +1 -0
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +38 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +38 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +9 -2
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +84 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.d.ts +745 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.js +2 -0
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +18 -6
- package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +36 -2
- package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +9 -3
- package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.d.ts +408 -0
- package/dist/esm/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.d.ts.map +1 -0
- package/dist/esm/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.js +2 -0
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +10 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +205 -1
- package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.d.ts +861 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.js +1118 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +17 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +21 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +177 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +222 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +4 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +5 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.d.ts +415 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.d.ts.map +1 -0
- package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.js +538 -0
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +37 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +46 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +348 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -1
- package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +452 -1
- package/dist/types/lib/addresses/lensAddresses.d.ts +6 -6
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +38 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +9 -2
- package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.d.ts +745 -0
- package/dist/types/lib/typechain/contracts/Lynx/Incentives/SkewIncentive.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +18 -6
- package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +36 -2
- package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +9 -3
- package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.d.ts +408 -0
- package/dist/types/lib/typechain/contracts/Lynx/interfaces/ISkewIncentive.d.ts.map +1 -0
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +10 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +205 -1
- package/dist/types/lib/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.d.ts +861 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/Incentives/SkewIncentive__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/IntentsVerifier/TradeIntentsVerifierV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/LexPool/LexPoolV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +17 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +177 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +4 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.d.ts +415 -0
- package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/ISkewIncentive__factory.d.ts.map +1 -0
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +37 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +348 -1
- package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,1118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SkewIncentive__factory = void 0;
|
|
4
|
+
/* Autogenerated file. Do not edit manually. */
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "contract IRegistryV1",
|
|
13
|
+
name: "_registry",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
stateMutability: "nonpayable",
|
|
18
|
+
type: "constructor",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
anonymous: false,
|
|
22
|
+
inputs: [
|
|
23
|
+
{
|
|
24
|
+
indexed: false,
|
|
25
|
+
internalType: "bool",
|
|
26
|
+
name: "enabled",
|
|
27
|
+
type: "bool",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
name: "GlobalEnabledUpdated",
|
|
31
|
+
type: "event",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
anonymous: false,
|
|
35
|
+
inputs: [
|
|
36
|
+
{
|
|
37
|
+
indexed: true,
|
|
38
|
+
internalType: "address",
|
|
39
|
+
name: "settlementAsset",
|
|
40
|
+
type: "address",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
indexed: false,
|
|
44
|
+
internalType: "bool",
|
|
45
|
+
name: "enabled",
|
|
46
|
+
type: "bool",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
indexed: false,
|
|
50
|
+
internalType: "uint32",
|
|
51
|
+
name: "skewThreshold",
|
|
52
|
+
type: "uint32",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
indexed: false,
|
|
56
|
+
internalType: "uint32",
|
|
57
|
+
name: "incentiveRate",
|
|
58
|
+
type: "uint32",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
indexed: false,
|
|
62
|
+
internalType: "uint256",
|
|
63
|
+
name: "minPositionSize",
|
|
64
|
+
type: "uint256",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
indexed: false,
|
|
68
|
+
internalType: "uint256",
|
|
69
|
+
name: "minHoldingTime",
|
|
70
|
+
type: "uint256",
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
name: "IncentiveConfigUpdated",
|
|
74
|
+
type: "event",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
anonymous: false,
|
|
78
|
+
inputs: [
|
|
79
|
+
{
|
|
80
|
+
indexed: false,
|
|
81
|
+
internalType: "address",
|
|
82
|
+
name: "oldAdmin",
|
|
83
|
+
type: "address",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
indexed: false,
|
|
87
|
+
internalType: "address",
|
|
88
|
+
name: "newAdmin",
|
|
89
|
+
type: "address",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
name: "NewAdmin",
|
|
93
|
+
type: "event",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
anonymous: false,
|
|
97
|
+
inputs: [
|
|
98
|
+
{
|
|
99
|
+
indexed: false,
|
|
100
|
+
internalType: "address",
|
|
101
|
+
name: "oldPendingAdmin",
|
|
102
|
+
type: "address",
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
indexed: false,
|
|
106
|
+
internalType: "address",
|
|
107
|
+
name: "newPendingAdmin",
|
|
108
|
+
type: "address",
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
name: "NewPendingAdmin",
|
|
112
|
+
type: "event",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
anonymous: false,
|
|
116
|
+
inputs: [
|
|
117
|
+
{
|
|
118
|
+
indexed: true,
|
|
119
|
+
internalType: "address",
|
|
120
|
+
name: "settlementAsset",
|
|
121
|
+
type: "address",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
indexed: true,
|
|
125
|
+
internalType: "uint16",
|
|
126
|
+
name: "pairId",
|
|
127
|
+
type: "uint16",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
name: "PairIncentiveConfigRemoved",
|
|
131
|
+
type: "event",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
anonymous: false,
|
|
135
|
+
inputs: [
|
|
136
|
+
{
|
|
137
|
+
indexed: true,
|
|
138
|
+
internalType: "address",
|
|
139
|
+
name: "settlementAsset",
|
|
140
|
+
type: "address",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
indexed: true,
|
|
144
|
+
internalType: "uint16",
|
|
145
|
+
name: "pairId",
|
|
146
|
+
type: "uint16",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
indexed: false,
|
|
150
|
+
internalType: "bool",
|
|
151
|
+
name: "enabled",
|
|
152
|
+
type: "bool",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
indexed: false,
|
|
156
|
+
internalType: "uint32",
|
|
157
|
+
name: "skewThreshold",
|
|
158
|
+
type: "uint32",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
indexed: false,
|
|
162
|
+
internalType: "uint32",
|
|
163
|
+
name: "incentiveRate",
|
|
164
|
+
type: "uint32",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
indexed: false,
|
|
168
|
+
internalType: "uint256",
|
|
169
|
+
name: "minPositionSize",
|
|
170
|
+
type: "uint256",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
indexed: false,
|
|
174
|
+
internalType: "uint256",
|
|
175
|
+
name: "minHoldingTime",
|
|
176
|
+
type: "uint256",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
name: "PairIncentiveConfigUpdated",
|
|
180
|
+
type: "event",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
anonymous: false,
|
|
184
|
+
inputs: [
|
|
185
|
+
{
|
|
186
|
+
indexed: true,
|
|
187
|
+
internalType: "bytes32",
|
|
188
|
+
name: "positionId",
|
|
189
|
+
type: "bytes32",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
indexed: false,
|
|
193
|
+
internalType: "bool",
|
|
194
|
+
name: "disabled",
|
|
195
|
+
type: "bool",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
name: "PositionDisabledToggled",
|
|
199
|
+
type: "event",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
anonymous: false,
|
|
203
|
+
inputs: [
|
|
204
|
+
{
|
|
205
|
+
indexed: true,
|
|
206
|
+
internalType: "bytes32",
|
|
207
|
+
name: "positionId",
|
|
208
|
+
type: "bytes32",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
indexed: false,
|
|
212
|
+
internalType: "uint32",
|
|
213
|
+
name: "incentiveRate",
|
|
214
|
+
type: "uint32",
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
name: "PositionSkewRecorded",
|
|
218
|
+
type: "event",
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
anonymous: false,
|
|
222
|
+
inputs: [
|
|
223
|
+
{
|
|
224
|
+
indexed: true,
|
|
225
|
+
internalType: "bytes32",
|
|
226
|
+
name: "positionId",
|
|
227
|
+
type: "bytes32",
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
indexed: false,
|
|
231
|
+
internalType: "uint32",
|
|
232
|
+
name: "incentiveRate",
|
|
233
|
+
type: "uint32",
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
name: "SkewIncentiveRateEmitted",
|
|
237
|
+
type: "event",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
inputs: [],
|
|
241
|
+
name: "ACCURACY_IMPROVEMENT_SCALE",
|
|
242
|
+
outputs: [
|
|
243
|
+
{
|
|
244
|
+
internalType: "uint256",
|
|
245
|
+
name: "",
|
|
246
|
+
type: "uint256",
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
stateMutability: "view",
|
|
250
|
+
type: "function",
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
inputs: [],
|
|
254
|
+
name: "CONTRACT_NAME",
|
|
255
|
+
outputs: [
|
|
256
|
+
{
|
|
257
|
+
internalType: "string",
|
|
258
|
+
name: "",
|
|
259
|
+
type: "string",
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
stateMutability: "view",
|
|
263
|
+
type: "function",
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
inputs: [],
|
|
267
|
+
name: "CONTRACT_VERSION",
|
|
268
|
+
outputs: [
|
|
269
|
+
{
|
|
270
|
+
internalType: "string",
|
|
271
|
+
name: "",
|
|
272
|
+
type: "string",
|
|
273
|
+
},
|
|
274
|
+
],
|
|
275
|
+
stateMutability: "view",
|
|
276
|
+
type: "function",
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
inputs: [],
|
|
280
|
+
name: "DEFAULT_PAIR_ID",
|
|
281
|
+
outputs: [
|
|
282
|
+
{
|
|
283
|
+
internalType: "uint16",
|
|
284
|
+
name: "",
|
|
285
|
+
type: "uint16",
|
|
286
|
+
},
|
|
287
|
+
],
|
|
288
|
+
stateMutability: "view",
|
|
289
|
+
type: "function",
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
inputs: [],
|
|
293
|
+
name: "FRACTION_SCALE",
|
|
294
|
+
outputs: [
|
|
295
|
+
{
|
|
296
|
+
internalType: "uint256",
|
|
297
|
+
name: "",
|
|
298
|
+
type: "uint256",
|
|
299
|
+
},
|
|
300
|
+
],
|
|
301
|
+
stateMutability: "view",
|
|
302
|
+
type: "function",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
inputs: [],
|
|
306
|
+
name: "LEVERAGE_SCALE",
|
|
307
|
+
outputs: [
|
|
308
|
+
{
|
|
309
|
+
internalType: "uint256",
|
|
310
|
+
name: "",
|
|
311
|
+
type: "uint256",
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
stateMutability: "view",
|
|
315
|
+
type: "function",
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
inputs: [],
|
|
319
|
+
name: "PRECISION",
|
|
320
|
+
outputs: [
|
|
321
|
+
{
|
|
322
|
+
internalType: "uint256",
|
|
323
|
+
name: "",
|
|
324
|
+
type: "uint256",
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
stateMutability: "view",
|
|
328
|
+
type: "function",
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
inputs: [],
|
|
332
|
+
name: "_acceptAdmin",
|
|
333
|
+
outputs: [],
|
|
334
|
+
stateMutability: "nonpayable",
|
|
335
|
+
type: "function",
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
inputs: [
|
|
339
|
+
{
|
|
340
|
+
internalType: "address",
|
|
341
|
+
name: "newPendingAdmin",
|
|
342
|
+
type: "address",
|
|
343
|
+
},
|
|
344
|
+
],
|
|
345
|
+
name: "_setPendingAdmin",
|
|
346
|
+
outputs: [],
|
|
347
|
+
stateMutability: "nonpayable",
|
|
348
|
+
type: "function",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
inputs: [],
|
|
352
|
+
name: "admin",
|
|
353
|
+
outputs: [
|
|
354
|
+
{
|
|
355
|
+
internalType: "address",
|
|
356
|
+
name: "",
|
|
357
|
+
type: "address",
|
|
358
|
+
},
|
|
359
|
+
],
|
|
360
|
+
stateMutability: "view",
|
|
361
|
+
type: "function",
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
inputs: [
|
|
365
|
+
{
|
|
366
|
+
internalType: "address",
|
|
367
|
+
name: "settlementAsset",
|
|
368
|
+
type: "address",
|
|
369
|
+
},
|
|
370
|
+
],
|
|
371
|
+
name: "exportPairConfigs",
|
|
372
|
+
outputs: [
|
|
373
|
+
{
|
|
374
|
+
internalType: "uint16[]",
|
|
375
|
+
name: "pairIds",
|
|
376
|
+
type: "uint16[]",
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
components: [
|
|
380
|
+
{
|
|
381
|
+
internalType: "bool",
|
|
382
|
+
name: "enabled",
|
|
383
|
+
type: "bool",
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
internalType: "uint32",
|
|
387
|
+
name: "skewThreshold",
|
|
388
|
+
type: "uint32",
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
internalType: "uint32",
|
|
392
|
+
name: "incentiveRate",
|
|
393
|
+
type: "uint32",
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
internalType: "uint256",
|
|
397
|
+
name: "minPositionSize",
|
|
398
|
+
type: "uint256",
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
internalType: "uint256",
|
|
402
|
+
name: "minHoldingTime",
|
|
403
|
+
type: "uint256",
|
|
404
|
+
},
|
|
405
|
+
],
|
|
406
|
+
internalType: "struct ISkewIncentive.IncentiveConfig[]",
|
|
407
|
+
name: "configs",
|
|
408
|
+
type: "tuple[]",
|
|
409
|
+
},
|
|
410
|
+
],
|
|
411
|
+
stateMutability: "view",
|
|
412
|
+
type: "function",
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
inputs: [
|
|
416
|
+
{
|
|
417
|
+
internalType: "uint256",
|
|
418
|
+
name: "offset",
|
|
419
|
+
type: "uint256",
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
internalType: "uint256",
|
|
423
|
+
name: "limit",
|
|
424
|
+
type: "uint256",
|
|
425
|
+
},
|
|
426
|
+
],
|
|
427
|
+
name: "exportPositions",
|
|
428
|
+
outputs: [
|
|
429
|
+
{
|
|
430
|
+
internalType: "bytes32[]",
|
|
431
|
+
name: "positionIds",
|
|
432
|
+
type: "bytes32[]",
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
components: [
|
|
436
|
+
{
|
|
437
|
+
internalType: "uint32",
|
|
438
|
+
name: "incentiveRate",
|
|
439
|
+
type: "uint32",
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
internalType: "bool",
|
|
443
|
+
name: "disabled",
|
|
444
|
+
type: "bool",
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
internalType: "uint64",
|
|
448
|
+
name: "openTimestamp",
|
|
449
|
+
type: "uint64",
|
|
450
|
+
},
|
|
451
|
+
],
|
|
452
|
+
internalType: "struct ISkewIncentive.PositionSkewInfo[]",
|
|
453
|
+
name: "skewInfos",
|
|
454
|
+
type: "tuple[]",
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
internalType: "bool",
|
|
458
|
+
name: "hasMore",
|
|
459
|
+
type: "bool",
|
|
460
|
+
},
|
|
461
|
+
],
|
|
462
|
+
stateMutability: "view",
|
|
463
|
+
type: "function",
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
inputs: [],
|
|
467
|
+
name: "exportSettlementAssetData",
|
|
468
|
+
outputs: [
|
|
469
|
+
{
|
|
470
|
+
internalType: "address[]",
|
|
471
|
+
name: "settlementAssets",
|
|
472
|
+
type: "address[]",
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
components: [
|
|
476
|
+
{
|
|
477
|
+
internalType: "bool",
|
|
478
|
+
name: "enabled",
|
|
479
|
+
type: "bool",
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
internalType: "uint32",
|
|
483
|
+
name: "skewThreshold",
|
|
484
|
+
type: "uint32",
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
internalType: "uint32",
|
|
488
|
+
name: "incentiveRate",
|
|
489
|
+
type: "uint32",
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
internalType: "uint256",
|
|
493
|
+
name: "minPositionSize",
|
|
494
|
+
type: "uint256",
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
internalType: "uint256",
|
|
498
|
+
name: "minHoldingTime",
|
|
499
|
+
type: "uint256",
|
|
500
|
+
},
|
|
501
|
+
],
|
|
502
|
+
internalType: "struct ISkewIncentive.IncentiveConfig[]",
|
|
503
|
+
name: "configs",
|
|
504
|
+
type: "tuple[]",
|
|
505
|
+
},
|
|
506
|
+
],
|
|
507
|
+
stateMutability: "view",
|
|
508
|
+
type: "function",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
inputs: [],
|
|
512
|
+
name: "getActivePositionCount",
|
|
513
|
+
outputs: [
|
|
514
|
+
{
|
|
515
|
+
internalType: "uint256",
|
|
516
|
+
name: "",
|
|
517
|
+
type: "uint256",
|
|
518
|
+
},
|
|
519
|
+
],
|
|
520
|
+
stateMutability: "view",
|
|
521
|
+
type: "function",
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
inputs: [],
|
|
525
|
+
name: "getConfiguredSettlementAssetCount",
|
|
526
|
+
outputs: [
|
|
527
|
+
{
|
|
528
|
+
internalType: "uint256",
|
|
529
|
+
name: "",
|
|
530
|
+
type: "uint256",
|
|
531
|
+
},
|
|
532
|
+
],
|
|
533
|
+
stateMutability: "view",
|
|
534
|
+
type: "function",
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
inputs: [],
|
|
538
|
+
name: "getContractName",
|
|
539
|
+
outputs: [
|
|
540
|
+
{
|
|
541
|
+
internalType: "string",
|
|
542
|
+
name: "",
|
|
543
|
+
type: "string",
|
|
544
|
+
},
|
|
545
|
+
],
|
|
546
|
+
stateMutability: "pure",
|
|
547
|
+
type: "function",
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
inputs: [],
|
|
551
|
+
name: "getContractVersion",
|
|
552
|
+
outputs: [
|
|
553
|
+
{
|
|
554
|
+
internalType: "string",
|
|
555
|
+
name: "",
|
|
556
|
+
type: "string",
|
|
557
|
+
},
|
|
558
|
+
],
|
|
559
|
+
stateMutability: "pure",
|
|
560
|
+
type: "function",
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
inputs: [
|
|
564
|
+
{
|
|
565
|
+
internalType: "bytes32",
|
|
566
|
+
name: "positionId",
|
|
567
|
+
type: "bytes32",
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
internalType: "address",
|
|
571
|
+
name: "settlementAsset",
|
|
572
|
+
type: "address",
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
internalType: "uint16",
|
|
576
|
+
name: "pairId",
|
|
577
|
+
type: "uint16",
|
|
578
|
+
},
|
|
579
|
+
],
|
|
580
|
+
name: "getEffectiveIncentiveRate",
|
|
581
|
+
outputs: [
|
|
582
|
+
{
|
|
583
|
+
internalType: "uint32",
|
|
584
|
+
name: "incentiveRate",
|
|
585
|
+
type: "uint32",
|
|
586
|
+
},
|
|
587
|
+
],
|
|
588
|
+
stateMutability: "view",
|
|
589
|
+
type: "function",
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
inputs: [
|
|
593
|
+
{
|
|
594
|
+
internalType: "address",
|
|
595
|
+
name: "settlementAsset",
|
|
596
|
+
type: "address",
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
internalType: "uint16",
|
|
600
|
+
name: "pairId",
|
|
601
|
+
type: "uint16",
|
|
602
|
+
},
|
|
603
|
+
],
|
|
604
|
+
name: "getIncentiveConfig",
|
|
605
|
+
outputs: [
|
|
606
|
+
{
|
|
607
|
+
internalType: "bool",
|
|
608
|
+
name: "enabled",
|
|
609
|
+
type: "bool",
|
|
610
|
+
},
|
|
611
|
+
{
|
|
612
|
+
internalType: "uint32",
|
|
613
|
+
name: "skewThreshold",
|
|
614
|
+
type: "uint32",
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
internalType: "uint32",
|
|
618
|
+
name: "incentiveRate",
|
|
619
|
+
type: "uint32",
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
internalType: "uint256",
|
|
623
|
+
name: "minPositionSize",
|
|
624
|
+
type: "uint256",
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
internalType: "uint256",
|
|
628
|
+
name: "minHoldingTime",
|
|
629
|
+
type: "uint256",
|
|
630
|
+
},
|
|
631
|
+
],
|
|
632
|
+
stateMutability: "view",
|
|
633
|
+
type: "function",
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
inputs: [
|
|
637
|
+
{
|
|
638
|
+
internalType: "address",
|
|
639
|
+
name: "settlementAsset",
|
|
640
|
+
type: "address",
|
|
641
|
+
},
|
|
642
|
+
],
|
|
643
|
+
name: "getPairConfigCount",
|
|
644
|
+
outputs: [
|
|
645
|
+
{
|
|
646
|
+
internalType: "uint256",
|
|
647
|
+
name: "",
|
|
648
|
+
type: "uint256",
|
|
649
|
+
},
|
|
650
|
+
],
|
|
651
|
+
stateMutability: "view",
|
|
652
|
+
type: "function",
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
inputs: [
|
|
656
|
+
{
|
|
657
|
+
internalType: "bytes32",
|
|
658
|
+
name: "positionId",
|
|
659
|
+
type: "bytes32",
|
|
660
|
+
},
|
|
661
|
+
],
|
|
662
|
+
name: "getPositionSkewInfo",
|
|
663
|
+
outputs: [
|
|
664
|
+
{
|
|
665
|
+
internalType: "uint32",
|
|
666
|
+
name: "incentiveRate",
|
|
667
|
+
type: "uint32",
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
internalType: "bool",
|
|
671
|
+
name: "disabled",
|
|
672
|
+
type: "bool",
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
internalType: "uint64",
|
|
676
|
+
name: "openTimestamp",
|
|
677
|
+
type: "uint64",
|
|
678
|
+
},
|
|
679
|
+
],
|
|
680
|
+
stateMutability: "view",
|
|
681
|
+
type: "function",
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
inputs: [],
|
|
685
|
+
name: "globalEnabled",
|
|
686
|
+
outputs: [
|
|
687
|
+
{
|
|
688
|
+
internalType: "bool",
|
|
689
|
+
name: "",
|
|
690
|
+
type: "bool",
|
|
691
|
+
},
|
|
692
|
+
],
|
|
693
|
+
stateMutability: "view",
|
|
694
|
+
type: "function",
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
inputs: [
|
|
698
|
+
{
|
|
699
|
+
internalType: "contract ISkewIncentiveMigratable",
|
|
700
|
+
name: "source",
|
|
701
|
+
type: "address",
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
internalType: "address",
|
|
705
|
+
name: "settlementAsset",
|
|
706
|
+
type: "address",
|
|
707
|
+
},
|
|
708
|
+
],
|
|
709
|
+
name: "importPairConfigsFromContract",
|
|
710
|
+
outputs: [],
|
|
711
|
+
stateMutability: "nonpayable",
|
|
712
|
+
type: "function",
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
inputs: [
|
|
716
|
+
{
|
|
717
|
+
internalType: "contract ISkewIncentiveMigratable",
|
|
718
|
+
name: "source",
|
|
719
|
+
type: "address",
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
internalType: "uint256",
|
|
723
|
+
name: "offset",
|
|
724
|
+
type: "uint256",
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
internalType: "uint256",
|
|
728
|
+
name: "limit",
|
|
729
|
+
type: "uint256",
|
|
730
|
+
},
|
|
731
|
+
],
|
|
732
|
+
name: "importPositionsFromContract",
|
|
733
|
+
outputs: [],
|
|
734
|
+
stateMutability: "nonpayable",
|
|
735
|
+
type: "function",
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
inputs: [
|
|
739
|
+
{
|
|
740
|
+
internalType: "contract ISkewIncentiveMigratable",
|
|
741
|
+
name: "source",
|
|
742
|
+
type: "address",
|
|
743
|
+
},
|
|
744
|
+
],
|
|
745
|
+
name: "importSettlementAssetsFromContract",
|
|
746
|
+
outputs: [],
|
|
747
|
+
stateMutability: "nonpayable",
|
|
748
|
+
type: "function",
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
inputs: [
|
|
752
|
+
{
|
|
753
|
+
internalType: "address",
|
|
754
|
+
name: "",
|
|
755
|
+
type: "address",
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
internalType: "uint16",
|
|
759
|
+
name: "",
|
|
760
|
+
type: "uint16",
|
|
761
|
+
},
|
|
762
|
+
],
|
|
763
|
+
name: "incentiveConfigs",
|
|
764
|
+
outputs: [
|
|
765
|
+
{
|
|
766
|
+
internalType: "bool",
|
|
767
|
+
name: "enabled",
|
|
768
|
+
type: "bool",
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
internalType: "uint32",
|
|
772
|
+
name: "skewThreshold",
|
|
773
|
+
type: "uint32",
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
internalType: "uint32",
|
|
777
|
+
name: "incentiveRate",
|
|
778
|
+
type: "uint32",
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
internalType: "uint256",
|
|
782
|
+
name: "minPositionSize",
|
|
783
|
+
type: "uint256",
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
internalType: "uint256",
|
|
787
|
+
name: "minHoldingTime",
|
|
788
|
+
type: "uint256",
|
|
789
|
+
},
|
|
790
|
+
],
|
|
791
|
+
stateMutability: "view",
|
|
792
|
+
type: "function",
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
inputs: [
|
|
796
|
+
{
|
|
797
|
+
internalType: "bytes32",
|
|
798
|
+
name: "positionId",
|
|
799
|
+
type: "bytes32",
|
|
800
|
+
},
|
|
801
|
+
],
|
|
802
|
+
name: "isPositionEligible",
|
|
803
|
+
outputs: [
|
|
804
|
+
{
|
|
805
|
+
internalType: "bool",
|
|
806
|
+
name: "",
|
|
807
|
+
type: "bool",
|
|
808
|
+
},
|
|
809
|
+
],
|
|
810
|
+
stateMutability: "view",
|
|
811
|
+
type: "function",
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
inputs: [],
|
|
815
|
+
name: "pendingAdmin",
|
|
816
|
+
outputs: [
|
|
817
|
+
{
|
|
818
|
+
internalType: "address",
|
|
819
|
+
name: "",
|
|
820
|
+
type: "address",
|
|
821
|
+
},
|
|
822
|
+
],
|
|
823
|
+
stateMutability: "view",
|
|
824
|
+
type: "function",
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
inputs: [
|
|
828
|
+
{
|
|
829
|
+
internalType: "bytes32",
|
|
830
|
+
name: "",
|
|
831
|
+
type: "bytes32",
|
|
832
|
+
},
|
|
833
|
+
],
|
|
834
|
+
name: "positionSkewInfo",
|
|
835
|
+
outputs: [
|
|
836
|
+
{
|
|
837
|
+
internalType: "uint32",
|
|
838
|
+
name: "incentiveRate",
|
|
839
|
+
type: "uint32",
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
internalType: "bool",
|
|
843
|
+
name: "disabled",
|
|
844
|
+
type: "bool",
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
internalType: "uint64",
|
|
848
|
+
name: "openTimestamp",
|
|
849
|
+
type: "uint64",
|
|
850
|
+
},
|
|
851
|
+
],
|
|
852
|
+
stateMutability: "view",
|
|
853
|
+
type: "function",
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
inputs: [
|
|
857
|
+
{
|
|
858
|
+
internalType: "bytes32",
|
|
859
|
+
name: "positionId",
|
|
860
|
+
type: "bytes32",
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
internalType: "address",
|
|
864
|
+
name: "settlementAsset",
|
|
865
|
+
type: "address",
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
internalType: "uint16",
|
|
869
|
+
name: "pairId",
|
|
870
|
+
type: "uint16",
|
|
871
|
+
},
|
|
872
|
+
],
|
|
873
|
+
name: "pullIncentiveRate",
|
|
874
|
+
outputs: [
|
|
875
|
+
{
|
|
876
|
+
internalType: "uint32",
|
|
877
|
+
name: "incentiveRate",
|
|
878
|
+
type: "uint32",
|
|
879
|
+
},
|
|
880
|
+
],
|
|
881
|
+
stateMutability: "nonpayable",
|
|
882
|
+
type: "function",
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
inputs: [
|
|
886
|
+
{
|
|
887
|
+
internalType: "bytes32",
|
|
888
|
+
name: "positionId",
|
|
889
|
+
type: "bytes32",
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
internalType: "address",
|
|
893
|
+
name: "accountant",
|
|
894
|
+
type: "address",
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
internalType: "address",
|
|
898
|
+
name: "settlementAsset",
|
|
899
|
+
type: "address",
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
internalType: "uint16",
|
|
903
|
+
name: "pairId",
|
|
904
|
+
type: "uint16",
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
internalType: "bool",
|
|
908
|
+
name: "isLong",
|
|
909
|
+
type: "bool",
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
internalType: "uint256",
|
|
913
|
+
name: "collateral",
|
|
914
|
+
type: "uint256",
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
internalType: "uint256",
|
|
918
|
+
name: "positionSizeInUnits",
|
|
919
|
+
type: "uint256",
|
|
920
|
+
},
|
|
921
|
+
],
|
|
922
|
+
name: "recordPositionOpen",
|
|
923
|
+
outputs: [],
|
|
924
|
+
stateMutability: "nonpayable",
|
|
925
|
+
type: "function",
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
inputs: [],
|
|
929
|
+
name: "registry",
|
|
930
|
+
outputs: [
|
|
931
|
+
{
|
|
932
|
+
internalType: "contract IRegistryV1",
|
|
933
|
+
name: "",
|
|
934
|
+
type: "address",
|
|
935
|
+
},
|
|
936
|
+
],
|
|
937
|
+
stateMutability: "view",
|
|
938
|
+
type: "function",
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
inputs: [
|
|
942
|
+
{
|
|
943
|
+
internalType: "address",
|
|
944
|
+
name: "settlementAsset",
|
|
945
|
+
type: "address",
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
internalType: "uint16",
|
|
949
|
+
name: "pairId",
|
|
950
|
+
type: "uint16",
|
|
951
|
+
},
|
|
952
|
+
],
|
|
953
|
+
name: "removePairIncentiveConfig",
|
|
954
|
+
outputs: [],
|
|
955
|
+
stateMutability: "nonpayable",
|
|
956
|
+
type: "function",
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
inputs: [
|
|
960
|
+
{
|
|
961
|
+
internalType: "address",
|
|
962
|
+
name: "settlementAsset",
|
|
963
|
+
type: "address",
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
internalType: "bool",
|
|
967
|
+
name: "enabled",
|
|
968
|
+
type: "bool",
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
internalType: "uint32",
|
|
972
|
+
name: "skewThreshold",
|
|
973
|
+
type: "uint32",
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
internalType: "uint32",
|
|
977
|
+
name: "incentiveRate",
|
|
978
|
+
type: "uint32",
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
internalType: "uint256",
|
|
982
|
+
name: "minPositionSize",
|
|
983
|
+
type: "uint256",
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
internalType: "uint256",
|
|
987
|
+
name: "minHoldingTime",
|
|
988
|
+
type: "uint256",
|
|
989
|
+
},
|
|
990
|
+
],
|
|
991
|
+
name: "setDefaultIncentiveConfig",
|
|
992
|
+
outputs: [],
|
|
993
|
+
stateMutability: "nonpayable",
|
|
994
|
+
type: "function",
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
inputs: [
|
|
998
|
+
{
|
|
999
|
+
internalType: "bool",
|
|
1000
|
+
name: "enabled",
|
|
1001
|
+
type: "bool",
|
|
1002
|
+
},
|
|
1003
|
+
],
|
|
1004
|
+
name: "setGlobalEnabled",
|
|
1005
|
+
outputs: [],
|
|
1006
|
+
stateMutability: "nonpayable",
|
|
1007
|
+
type: "function",
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
inputs: [
|
|
1011
|
+
{
|
|
1012
|
+
internalType: "address",
|
|
1013
|
+
name: "settlementAsset",
|
|
1014
|
+
type: "address",
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
internalType: "uint16",
|
|
1018
|
+
name: "pairId",
|
|
1019
|
+
type: "uint16",
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
internalType: "bool",
|
|
1023
|
+
name: "enabled",
|
|
1024
|
+
type: "bool",
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
internalType: "uint32",
|
|
1028
|
+
name: "skewThreshold",
|
|
1029
|
+
type: "uint32",
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
internalType: "uint32",
|
|
1033
|
+
name: "incentiveRate",
|
|
1034
|
+
type: "uint32",
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
internalType: "uint256",
|
|
1038
|
+
name: "minPositionSize",
|
|
1039
|
+
type: "uint256",
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
internalType: "uint256",
|
|
1043
|
+
name: "minHoldingTime",
|
|
1044
|
+
type: "uint256",
|
|
1045
|
+
},
|
|
1046
|
+
],
|
|
1047
|
+
name: "setPairIncentiveConfig",
|
|
1048
|
+
outputs: [],
|
|
1049
|
+
stateMutability: "nonpayable",
|
|
1050
|
+
type: "function",
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
inputs: [
|
|
1054
|
+
{
|
|
1055
|
+
internalType: "bytes32",
|
|
1056
|
+
name: "positionId",
|
|
1057
|
+
type: "bytes32",
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
internalType: "bool",
|
|
1061
|
+
name: "disabled",
|
|
1062
|
+
type: "bool",
|
|
1063
|
+
},
|
|
1064
|
+
],
|
|
1065
|
+
name: "setPositionDisabled",
|
|
1066
|
+
outputs: [],
|
|
1067
|
+
stateMutability: "nonpayable",
|
|
1068
|
+
type: "function",
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
inputs: [
|
|
1072
|
+
{
|
|
1073
|
+
internalType: "bytes32[]",
|
|
1074
|
+
name: "positionIds",
|
|
1075
|
+
type: "bytes32[]",
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
internalType: "bool",
|
|
1079
|
+
name: "disabled",
|
|
1080
|
+
type: "bool",
|
|
1081
|
+
},
|
|
1082
|
+
],
|
|
1083
|
+
name: "setPositionDisabledBatch",
|
|
1084
|
+
outputs: [],
|
|
1085
|
+
stateMutability: "nonpayable",
|
|
1086
|
+
type: "function",
|
|
1087
|
+
},
|
|
1088
|
+
];
|
|
1089
|
+
const _bytecode = "0x60a06040523480156200001157600080fd5b5060405162003292380380620032928339810160408190526200003491620000a6565b600080546001600160a01b031916331790556001600160a01b038116620000945760405162461bcd60e51b815260206004820152601060248201526f494e56414c49445f524547495354525960801b604482015260640160405180910390fd5b6001600160a01b0316608052620000d8565b600060208284031215620000b957600080fd5b81516001600160a01b0381168114620000d157600080fd5b9392505050565b6080516131906200010260003960008181610428015281816114110152611c0c01526131906000f3fe608060405234801561001057600080fd5b50600436106102325760003560e01c8063922e003311610130578063c1fd2402116100b8578063e70f29aa1161007c578063e70f29aa14610634578063e9c714f214610647578063eb37914b1461064f578063f5f5ba721461066b578063f851a4401461069457600080fd5b8063c1fd240214610586578063c327855c14610593578063c5b01a23146105a6578063c8e29583146105ae578063d7b9e39a1461061357600080fd5b8063ad1f2b56116100ff578063ad1f2b561461053a578063b25c110014610542578063b71d1a0c14610555578063b71f3cfe14610568578063b7c9ebf01461057357600080fd5b8063922e0033146104e25780639c85523414610505578063a9ed7cbb14610518578063aaf5eb681461052b57600080fd5b80635b732532116101be5780636e47b1b2116101825780636e47b1b2146104105780637b1039991461042357806380193b261461044a5780638174b6a9146104545780638aa10435146104c257600080fd5b80635b732532146103485780635c46c0101461035b5780635c8ba6fa146103be578063614d08f8146103d157806369645411146103fd57600080fd5b8063320c43a711610205578063320c43a7146102b857806333e466e1146102cd5780633619fc62146102ef57806338b9033314610305578063542705161461033557600080fd5b8063045f3093146102375780630a8c3a5c1461025d5780631a4a9ea714610285578063267822471461028d575b600080fd5b61024a6102453660046125a2565b6106a7565b6040519081526020015b60405180910390f35b61027061026b3660046125cf565b6106ce565b60405163ffffffff9091168152602001610254565b61024a610812565b6001546102a0906001600160a01b031681565b6040516001600160a01b039091168152602001610254565b6102cb6102c636600461261f565b610823565b005b6102e06102db36600461264f565b610911565b60405161025493929190612671565b6102f7610b1a565b604051610254929190612795565b610328604051806040016040528060048152602001630313030360e41b81525081565b60405161025491906127f6565b6102cb610343366004612845565b610cbc565b6102cb6103563660046128bf565b610db6565b6103ad6103693660046128f4565b6002602081815260009384526040808520909152918352912080546001820154919092015460ff83169263ffffffff6101008204811693600160281b909204169185565b604051610254959493929190612922565b6103ad6103cc3660046128f4565b61103d565b6103286040518060400160405280600d81526020016c536b6577496e63656e7469766560981b81525081565b6102cb61040b366004612950565b61107a565b6102cb61041e3660046128f4565b61129d565b6102a07f000000000000000000000000000000000000000000000000000000000000000081565b61024a620186a081565b61049761046236600461297e565b60036020526000908152604090205463ffffffff811690600160201b810460ff1690600160281b90046001600160401b031683565b6040805163ffffffff909416845291151560208401526001600160401b031690820152606001610254565b6040805180820190915260048152630313030360e41b6020820152610328565b6104f56104f036600461297e565b6113ad565b6040519015158152602001610254565b6102cb610513366004612997565b61140f565b6102cb610526366004612a23565b611835565b61024a670de0b6b3a764000081565b61024a606481565b6102cb610550366004612a89565b61191b565b6102cb6105633660046125a2565b6119a7565b61024a633b9aca0081565b6102cb6105813660046125a2565b611a4f565b6004546104f59060ff1681565b6102706105a13660046125cf565b611c08565b61024a611d59565b6104976105bc36600461297e565b6000908152600360209081526040918290208251606081018452905463ffffffff8116808352600160201b820460ff161515938301849052600160281b9091046001600160401b0316919093018190529192909190565b6106266106213660046125a2565b611d65565b604051610254929190612af7565b6102cb610642366004612b34565b611f3a565b6102cb611fab565b61065861ffff81565b60405161ffff9091168152602001610254565b60408051808201909152600d81526c536b6577496e63656e7469766560981b6020820152610328565b6000546102a0906001600160a01b031681565b6001600160a01b03811660009081526009602052604081206106c8906120c9565b92915050565b6000838152600360209081526040918290208251606081018452905463ffffffff8116808352600160201b820460ff908116151594840194909452600160281b9091046001600160401b03169382019390935260045490911661073557600091505061080b565b600061074185856120d3565b8051909150158061075a5750602081015163ffffffff16155b1561076a5760009250505061080b565b60408201516001600160401b03161580610785575081602001515b156107955760009250505061080b565b600082604001516001600160401b0316426107b09190612b67565b905081608001518110156107ca576000935050505061080b565b620186a08463ffffffff1611156107e7576000935050505061080b565b816040015163ffffffff168463ffffffff16111561080757816040015193505b5050505b9392505050565b600061081e60056120c9565b905090565b6000546001600160a01b031633146108565760405162461bcd60e51b815260040161084d90612b7a565b60405180910390fd5b600082815260036020526040812080549091600160281b9091046001600160401b031690036108bc5760405162461bcd60e51b81526020600482015260126024820152711413d4d2551253d397d393d517d193d5539160721b604482015260640161084d565b805464ff000000001916600160201b83151590810291909117825560405190815283907f8141c72745cdb96a02440b23b280b9258ab3417baf242714f2a6435e6f7548ea9060200160405180910390a2505050565b60608060008061092160076120c9565b90508086106109845760408051600080825260208201818152828401909352909190610975565b60408051606081018252600080825260208083018290529282015282526000199092019101816109485790505b50600093509350935050610b13565b60006109908688612bb4565b90508181111561099d5750805b60006109a98883612b67565b9050806001600160401b038111156109c3576109c3612b9e565b6040519080825280602002602001820160405280156109ec578160200160208202803683370190505b509550806001600160401b03811115610a0757610a07612b9e565b604051908082528060200260200182016040528015610a5257816020015b6040805160608101825260008082526020808301829052928201528252600019909201910181610a255790505b50945060005b81811015610b0d576000610a77610a6f838c612bb4565b6007906121ec565b905080888381518110610a8c57610a8c612bc7565b6020908102919091018101919091526000828152600382526040908190208151606081018352905463ffffffff81168252600160201b810460ff16151593820193909352600160281b9092046001600160401b0316908201528751889084908110610af957610af9612bc7565b602090810291909101015250600101610a58565b50501090505b9250925092565b6060806000610b2960056120c9565b9050806001600160401b03811115610b4357610b43612b9e565b604051908082528060200260200182016040528015610b6c578160200160208202803683370190505b509250806001600160401b03811115610b8757610b87612b9e565b604051908082528060200260200182016040528015610be057816020015b6040805160a081018252600080825260208083018290529282018190526060820181905260808201528252600019909201910181610ba55790505b50915060005b81811015610cb6576000610bfb6005836121ec565b905080858381518110610c1057610c10612bc7565b6001600160a01b0392831660209182029290920181019190915290821660009081526002808352604080832061ffff8452845291829020825160a081018452815460ff81161515825263ffffffff6101008204811696830196909652600160281b90049094169284019290925260018201546060840152015460808201528451859084908110610ca257610ca2612bc7565b602090810291909101015250600101610be6565b50509091565b6000546001600160a01b03163314610ce65760405162461bcd60e51b815260040161084d90612b7a565b60005b82811015610db057600060036000868685818110610d0957610d09612bc7565b602090810292909201358352508101919091526040016000208054909150600160281b90046001600160401b031615610da757805464ff000000001916600160201b84151502178155848483818110610d6457610d64612bc7565b905060200201357f8141c72745cdb96a02440b23b280b9258ab3417baf242714f2a6435e6f7548ea84604051610d9e911515815260200190565b60405180910390a25b50600101610ce9565b50505050565b6000546001600160a01b03163314610de05760405162461bcd60e51b815260040161084d90612b7a565b6001600160a01b038316610e065760405162461bcd60e51b815260040161084d90612bdd565b306001600160a01b03841603610e2e5760405162461bcd60e51b815260040161084d90612c05565b60008111610e6e5760405162461bcd60e51b815260206004820152600d60248201526c1253959053125117d312535255609a1b604482015260640161084d565b6040516333e466e160e01b8152600481018390526024810182905260009081906001600160a01b038616906333e466e190604401600060405180830381865afa158015610ebf573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610ee79190810190612daa565b509150915060005b8251811015611035576000838281518110610f0c57610f0c612bc7565b602002602001015190506000838381518110610f2a57610f2a612bc7565b6020908102919091018101516000848152600383526040908190208251815494840151928401516001600160401b0316600160281b026cffffffffffffffff000000000019931515600160201b0264ffffffffff1990961663ffffffff928316179590951792909216939093179092559150610fab9060079084906121f816565b50805160405163ffffffff909116815282907f949f803055284b81b0380774c007765de2fe5729e3a2cbefa1df17506fd40a949060200160405180910390a280602001511561102b576040516001815282907f8141c72745cdb96a02440b23b280b9258ab3417baf242714f2a6435e6f7548ea9060200160405180910390a25b5050600101610eef565b505050505050565b60008060008060008061105088886120d3565b8051602082015160408301516060840151608090940151929c919b50995091975095509350505050565b6000546001600160a01b031633146110a45760405162461bcd60e51b815260040161084d90612b7a565b6001600160a01b0382166110ca5760405162461bcd60e51b815260040161084d90612bdd565b306001600160a01b038316036110f25760405162461bcd60e51b815260040161084d90612c05565b6001600160a01b0381166111485760405162461bcd60e51b815260206004820152601860248201527f494e56414c49445f534554544c454d454e545f41535345540000000000000000604482015260640161084d565b604051636bdcf1cd60e11b81526001600160a01b038281166004830152600091829185169063d7b9e39a90602401600060405180830381865afa158015611193573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526111bb9190810190612f2b565b9150915060005b82518110156112965760008382815181106111df576111df612bc7565b6020026020010151905060008383815181106111fd576111fd612bc7565b6020026020010151905061122a868383600001518460200151856040015186606001518760800151612204565b8161ffff16866001600160a01b03167fdeeae3c52e67d5757d7cb6c032981dce443ad1b8cdc25bf1c6d93ef33dd3317983600001518460200151856040015186606001518760800151604051611284959493929190612922565b60405180910390a350506001016111c2565b5050505050565b6000546001600160a01b031633146112c75760405162461bcd60e51b815260040161084d90612b7a565b61fffe1961ffff8216016113155760405162461bcd60e51b815260206004820152601560248201527410d0539393d517d4915353d59157d1115190555315605a1b604482015260640161084d565b6001600160a01b038216600081815260026020818152604080842061ffff8716808652908352818520805468ffffffffffffffffff19168155600181018690559093018490559383526009905291902061136e916123f6565b5060405161ffff8216906001600160a01b038416907fd5687d9d70477fe3ea94174a80742a9ba937506ff84c1e6c788e4c0c9d32809490600090a35050565b60008181526003602090815260408083208151606081018352905463ffffffff81168252600160201b810460ff16151593820193909352600160281b9092046001600160401b03169082018190521580159061080b5750602001511592915050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637bbb19dc6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561146d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114919190612fef565b6001600160a01b0316336001600160a01b0316146114e15760405162461bcd60e51b815260206004820152600d60248201526c4f4e4c595f545249474745525360981b604482015260640161084d565b60045460ff161561182c5760006114f886866120d3565b8051909150158061150c5750806060015183105b8061151f5750602081015163ffffffff16155b1561152a575061182c565b604051631420281160e11b815261ffff86166004820152600090819081906001600160a01b038b16906328405022906024016040805180830381865afa158015611578573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159c919061300c565b90506000816020015182600001516115b49190612bb4565b905060006115c28783612b67565b9050806000036115d75750505050505061182c565b6000896115e85783602001516115eb565b83515b905081620186a06115fc8a84612b67565b611606919061305a565b6116109190613071565b955082611620620186a08361305a565b61162a9190613071565b945050505050826020015163ffffffff168263ffffffff161061164f5750505061182c565b826020015163ffffffff168163ffffffff16620186a061166f9190612b67565b101561167d5750505061182c565b60408301516116906002620186a0613071565b8263ffffffff1611156117095760006116a98484613093565b90508063ffffffff166000036116c357505050505061182c565b63ffffffff8082169085166116dc6002620186a0613071565b6116e69190612b67565b866040015163ffffffff166116fb919061305a565b6117059190613071565b9150505b8063ffffffff16600003611720575050505061182c565b60405180606001604052808263ffffffff168152602001600015158152602001426001600160401b0316815250600360008d815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a81548160ff02191690831515021790555060408201518160000160056101000a8154816001600160401b0302191690836001600160401b031602179055509050506117eb8b60076121f890919063ffffffff16565b5060405163ffffffff821681528b907f949f803055284b81b0380774c007765de2fe5729e3a2cbefa1df17506fd40a949060200160405180910390a2505050505b50505050505050565b6000546001600160a01b0316331461185f5760405162461bcd60e51b815260040161084d90612b7a565b61fffe1961ffff8716016118b55760405162461bcd60e51b815260206004820152601b60248201527f5553455f44454641554c545f434f4e4649475f46554e4354494f4e0000000000604482015260640161084d565b6118c487878787878787612204565b8561ffff16876001600160a01b03167fdeeae3c52e67d5757d7cb6c032981dce443ad1b8cdc25bf1c6d93ef33dd33179878787878760405161190a959493929190612922565b60405180910390a350505050505050565b6000546001600160a01b031633146119455760405162461bcd60e51b815260040161084d90612b7a565b6119568661ffff8787878787612204565b856001600160a01b03167f07db3bac36c3f8357378a1e788f1ce71024b52352196523b0a028575462c564b8686868686604051611997959493929190612922565b60405180910390a2505050505050565b6000546001600160a01b031633146119ed5760405162461bcd60e51b81526020600482015260096024820152682737ba1020b236b4b760b91b604482015260640161084d565b600180546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a991015b60405180910390a15050565b6000546001600160a01b03163314611a795760405162461bcd60e51b815260040161084d90612b7a565b6001600160a01b038116611a9f5760405162461bcd60e51b815260040161084d90612bdd565b306001600160a01b03821603611ac75760405162461bcd60e51b815260040161084d90612c05565b600080826001600160a01b0316633619fc626040518163ffffffff1660e01b8152600401600060405180830381865afa158015611b08573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611b3091908101906130b0565b9150915060005b8251811015610db0576000838281518110611b5457611b54612bc7565b602002602001015190506000838381518110611b7257611b72612bc7565b60200260200101519050611ba18261ffff83600001518460200151856040015186606001518760800151612204565b816001600160a01b03167f07db3bac36c3f8357378a1e788f1ce71024b52352196523b0a028575462c564b82600001518360200151846040015185606001518660800151604051611bf6959493929190612922565b60405180910390a25050600101611b37565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637bbb19dc6040518163ffffffff1660e01b8152600401602060405180830381865afa158015611c68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c8c9190612fef565b6001600160a01b0316336001600160a01b031614611cdc5760405162461bcd60e51b815260206004820152600d60248201526c4f4e4c595f545249474745525360981b604482015260640161084d565b611ce78484846106ce565b600085815260036020526040902080546cffffffffffffffffffffffffff191690559050611d166007856123f6565b5060405163ffffffff8216815284907ffe325d98bdcc9c0c815af4086bec83ee1a6b737ca137eccd81a1a3c96e0441689060200160405180910390a29392505050565b600061081e60076120c9565b6001600160a01b03811660009081526009602052604081206060918291611d8b906120c9565b9050806001600160401b03811115611da557611da5612b9e565b604051908082528060200260200182016040528015611dce578160200160208202803683370190505b509250806001600160401b03811115611de957611de9612b9e565b604051908082528060200260200182016040528015611e4257816020015b6040805160a081018252600080825260208083018290529282018190526060820181905260808201528252600019909201910181611e075790505b50915060005b81811015611f33576001600160a01b0385166000908152600960205260408120611e7290836121ec565b905080858381518110611e8757611e87612bc7565b61ffff9283166020918202929092018101919091526001600160a01b038816600090815260028083526040808320948616835293835290839020835160a081018552815460ff81161515825263ffffffff6101008204811695830195909552600160281b90049093169383019390935260018301546060830152919091015460808201528451859084908110611f1f57611f1f612bc7565b602090810291909101015250600101611e48565b5050915091565b6000546001600160a01b03163314611f645760405162461bcd60e51b815260040161084d90612b7a565b6004805460ff19168215159081179091556040519081527f8fa3ed5d3eae4028633ce57f5ae369a5bc7b853584b5fcb7524bcf388f28bd919060200160405180910390a150565b6001546001600160a01b031633148015611fcf57506001546001600160a01b031615155b61201b5760405162461bcd60e51b815260206004820152601e60248201527f4e6f7420746865204558495354494e472070656e64696e672061646d696e0000604482015260640161084d565b60008054600180546001600160a01b038082166001600160a01b031980861682179096559490911690915560408051919092168082526020820184905292917ff9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc910160405180910390a1600154604080516001600160a01b03808516825290921660208301527fca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a99101611a43565b60006106c8825490565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526001600160a01b038316600090815260026020818152604080842061ffff87168552825292839020835160a081018552815460ff81161515825263ffffffff61010082048116948301859052600160281b909104169481019490945260018101546060850152909101546080830152156121795790506106c8565b5050506001600160a01b0316600090815260026020818152604080842061ffff8552825292839020835160a081018552815460ff81161515825263ffffffff6101008204811694830194909452600160281b90049092169382019390935260018301546060820152910154608082015290565b600061080b8383612402565b600061080b838361242c565b6122126002620186a0613071565b8463ffffffff16106122665760405162461bcd60e51b815260206004820152601e60248201527f5448524553484f4c445f4d5553545f42455f42454c4f575f35305f5043540000604482015260640161084d565b620186a08363ffffffff1611156122ae5760405162461bcd60e51b815260206004820152600c60248201526b494e56414c49445f5241544560a01b604482015260640161084d565b6040518060a0016040528086151581526020018563ffffffff1681526020018463ffffffff1681526020018381526020018281525060026000896001600160a01b03166001600160a01b0316815260200190815260200160002060008861ffff1661ffff16815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160000160016101000a81548163ffffffff021916908363ffffffff16021790555060408201518160000160056101000a81548163ffffffff021916908363ffffffff16021790555060608201518160010155608082015181600201559050506123ba87600561247b90919063ffffffff16565b5061ffff8681161461182c576001600160a01b03871660009081526009602052604090206123ec9061ffff88166121f8565b5050505050505050565b600061080b8383612490565b600082600001828154811061241957612419612bc7565b9060005260206000200154905092915050565b6000818152600183016020526040812054612473575081546001818101845560008481526020808220909301849055845484825282860190935260409020919091556106c8565b5060006106c8565b600061080b836001600160a01b03841661242c565b600081815260018301602052604081205480156125795760006124b4600183612b67565b85549091506000906124c890600190612b67565b905080821461252d5760008660000182815481106124e8576124e8612bc7565b906000526020600020015490508087600001848154811061250b5761250b612bc7565b6000918252602080832090910192909255918252600188019052604090208390555b855486908061253e5761253e613144565b6001900381819060005260206000200160009055905585600101600086815260200190815260200160002060009055600193505050506106c8565b60009150506106c8565b5092915050565b6001600160a01b038116811461259f57600080fd5b50565b6000602082840312156125b457600080fd5b813561080b8161258a565b61ffff8116811461259f57600080fd5b6000806000606084860312156125e457600080fd5b8335925060208401356125f68161258a565b91506040840135612606816125bf565b809150509250925092565b801515811461259f57600080fd5b6000806040838503121561263257600080fd5b82359150602083013561264481612611565b809150509250929050565b6000806040838503121561266257600080fd5b50508035926020909101359150565b60608082528451828201819052600091906020906080850190828901855b828110156126ab5781518452928401929084019060010161268f565b5050508481038286015286518082528783019183019060005b81811015612705578351805163ffffffff168452858101511515868501526040908101516001600160401b03169084015292840192918501916001016126c4565b50508615156040870152935061271a92505050565b949350505050565b60008151808452602080850194506020840160005b8381101561278a5781518051151588528381015163ffffffff908116858a015260408083015190911690890152606080820151908901526080908101519088015260a09096019590820190600101612737565b509495945050505050565b604080825283519082018190526000906020906060840190828701845b828110156127d75781516001600160a01b0316845292840192908401906001016127b2565b50505083810360208501526127ec8186612722565b9695505050505050565b60006020808352835180602085015260005b8181101561282457858101830151858201604001528201612808565b506000604082860101526040601f19601f8301168501019250505092915050565b60008060006040848603121561285a57600080fd5b83356001600160401b038082111561287157600080fd5b818601915086601f83011261288557600080fd5b81358181111561289457600080fd5b8760208260051b85010111156128a957600080fd5b6020928301955093505084013561260681612611565b6000806000606084860312156128d457600080fd5b83356128df8161258a565b95602085013595506040909401359392505050565b6000806040838503121561290757600080fd5b82356129128161258a565b91506020830135612644816125bf565b941515855263ffffffff93841660208601529190921660408401526060830191909152608082015260a00190565b6000806040838503121561296357600080fd5b823561296e8161258a565b915060208301356126448161258a565b60006020828403121561299057600080fd5b5035919050565b600080600080600080600060e0888a0312156129b257600080fd5b8735965060208801356129c48161258a565b955060408801356129d48161258a565b945060608801356129e4816125bf565b935060808801356129f481612611565b9699959850939692959460a0840135945060c09093013592915050565b63ffffffff8116811461259f57600080fd5b600080600080600080600060e0888a031215612a3e57600080fd5b8735612a498161258a565b96506020880135612a59816125bf565b95506040880135612a6981612611565b94506060880135612a7981612a11565b935060808801356129f481612a11565b60008060008060008060c08789031215612aa257600080fd5b8635612aad8161258a565b95506020870135612abd81612611565b94506040870135612acd81612a11565b93506060870135612add81612a11565b9598949750929560808101359460a0909101359350915050565b604080825283519082018190526000906020906060840190828701845b828110156127d757815161ffff1684529284019290840190600101612b14565b600060208284031215612b4657600080fd5b813561080b81612611565b634e487b7160e01b600052601160045260246000fd5b818103818111156106c8576106c8612b51565b6020808252600a908201526927a7262cafa0a226a4a760b11b604082015260600190565b634e487b7160e01b600052604160045260246000fd5b808201808211156106c8576106c8612b51565b634e487b7160e01b600052603260045260246000fd5b6020808252600e908201526d494e56414c49445f534f5552434560901b604082015260600190565b60208082526017908201527f43414e4e4f545f494d504f52545f46524f4d5f53454c46000000000000000000604082015260600190565b604051606081016001600160401b0381118282101715612c5e57612c5e612b9e565b60405290565b60405160a081016001600160401b0381118282101715612c5e57612c5e612b9e565b604051601f8201601f191681016001600160401b0381118282101715612cae57612cae612b9e565b604052919050565b60006001600160401b03821115612ccf57612ccf612b9e565b5060051b60200190565b8051612ce481612611565b919050565b600082601f830112612cfa57600080fd5b81516020612d0f612d0a83612cb6565b612c86565b82815260609283028501820192828201919087851115612d2e57600080fd5b8387015b85811015612d9d5781818a031215612d4a5760008081fd5b612d52612c3c565b8151612d5d81612a11565b815281860151612d6c81612611565b818701526040828101516001600160401b0381168114612d8c5760008081fd5b908201528452928401928101612d32565b5090979650505050505050565b600080600060608486031215612dbf57600080fd5b83516001600160401b0380821115612dd657600080fd5b818601915086601f830112612dea57600080fd5b81516020612dfa612d0a83612cb6565b82815260059290921b8401810191818101908a841115612e1957600080fd5b948201945b83861015612e3757855182529482019490820190612e1e565b91890151919750909350505080821115612e5057600080fd5b50612e5d86828701612ce9565b925050612e6c60408501612cd9565b90509250925092565b600082601f830112612e8657600080fd5b81516020612e96612d0a83612cb6565b82815260a09283028501820192828201919087851115612eb557600080fd5b8387015b85811015612d9d5781818a031215612ed15760008081fd5b612ed9612c64565b8151612ee481612611565b815281860151612ef381612a11565b81870152604082810151612f0681612a11565b9082015260608281015190820152608080830151908201528452928401928101612eb9565b60008060408385031215612f3e57600080fd5b82516001600160401b0380821115612f5557600080fd5b818501915085601f830112612f6957600080fd5b81516020612f79612d0a83612cb6565b82815260059290921b84018101918181019089841115612f9857600080fd5b948201945b83861015612fbf578551612fb0816125bf565b82529482019490820190612f9d565b91880151919650909350505080821115612fd857600080fd5b50612fe585828601612e75565b9150509250929050565b60006020828403121561300157600080fd5b815161080b8161258a565b60006040828403121561301e57600080fd5b604051604081018181106001600160401b038211171561304057613040612b9e565b604052825181526020928301519281019290925250919050565b80820281158282048414176106c8576106c8612b51565b60008261308e57634e487b7160e01b600052601260045260246000fd5b500490565b63ffffffff82811682821603908082111561258357612583612b51565b600080604083850312156130c357600080fd5b82516001600160401b03808211156130da57600080fd5b818501915085601f8301126130ee57600080fd5b815160206130fe612d0a83612cb6565b82815260059290921b8401810191818101908984111561311d57600080fd5b948201945b83861015612fbf5785516131358161258a565b82529482019490820190613122565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220744b3230c0600c3bf48ab0f44aa99cfd5487d7dfe8a07a0f0fa899c912fe6bd264736f6c63430008180033";
|
|
1090
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
1091
|
+
class SkewIncentive__factory extends ethers_1.ContractFactory {
|
|
1092
|
+
constructor(...args) {
|
|
1093
|
+
if (isSuperArgs(args)) {
|
|
1094
|
+
super(...args);
|
|
1095
|
+
}
|
|
1096
|
+
else {
|
|
1097
|
+
super(_abi, _bytecode, args[0]);
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
getDeployTransaction(_registry, overrides) {
|
|
1101
|
+
return super.getDeployTransaction(_registry, overrides || {});
|
|
1102
|
+
}
|
|
1103
|
+
deploy(_registry, overrides) {
|
|
1104
|
+
return super.deploy(_registry, overrides || {});
|
|
1105
|
+
}
|
|
1106
|
+
connect(runner) {
|
|
1107
|
+
return super.connect(runner);
|
|
1108
|
+
}
|
|
1109
|
+
static createInterface() {
|
|
1110
|
+
return new ethers_1.Interface(_abi);
|
|
1111
|
+
}
|
|
1112
|
+
static connect(address, runner) {
|
|
1113
|
+
return new ethers_1.Contract(address, _abi, runner);
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
exports.SkewIncentive__factory = SkewIncentive__factory;
|
|
1117
|
+
SkewIncentive__factory.bytecode = _bytecode;
|
|
1118
|
+
SkewIncentive__factory.abi = _abi;
|