avantis-trader-sdk 0.8.2__py3-none-any.whl → 0.8.4__py3-none-any.whl
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.
- avantis_trader_sdk/__init__.py +5 -5
- avantis_trader_sdk/abis/AggregatorV3Interface.json +606 -606
- avantis_trader_sdk/abis/IPyth.sol/IPyth.dbg.json +4 -4
- avantis_trader_sdk/abis/Referral.sol/ReferralStorage.json +7132 -7132
- avantis_trader_sdk/abis/Sanctions.json +190 -190
- avantis_trader_sdk/abis/Trading.sol/Trading.json +1 -1
- avantis_trader_sdk/abis/USDC.sol/USDC.dbg.json +4 -4
- avantis_trader_sdk/abis/interfaces/ICallbacks.sol/ICallbacks.json +2637 -2637
- avantis_trader_sdk/abis/interfaces/IExecute.sol/IExecute.json +1628 -1628
- avantis_trader_sdk/abis/interfaces/IPairInfos.sol/IPairInfos.json +2781 -2781
- avantis_trader_sdk/abis/interfaces/IPairStorage.sol/IPairStorage.json +3729 -3729
- avantis_trader_sdk/abis/interfaces/IPriceAggregator.sol/IPriceAggregator.json +2330 -2330
- avantis_trader_sdk/abis/interfaces/IReferral.sol/IReferral.json +1890 -1890
- avantis_trader_sdk/abis/interfaces/ITradingStorage.sol/ITradingStorage.json +7022 -7022
- avantis_trader_sdk/abis/interfaces/ITranche.sol/ITranche.json +1283 -1283
- avantis_trader_sdk/abis/interfaces/IVaultManager.sol/IVaultManager.json +2424 -2424
- avantis_trader_sdk/abis/interfaces/IVeTranche.sol/IVeTranche.json +855 -855
- avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.dbg.json +4 -4
- avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.json +10 -10
- avantis_trader_sdk/abis/testnet/USDC.sol/USDC.dbg.json +4 -4
- avantis_trader_sdk/abis/testnet/USDC.sol/USDC.json +320 -320
- avantis_trader_sdk/client.py +369 -367
- avantis_trader_sdk/config.py +14 -14
- avantis_trader_sdk/feed/feed_client.py +263 -261
- avantis_trader_sdk/rpc/asset_parameters.py +499 -499
- avantis_trader_sdk/rpc/blended.py +71 -71
- avantis_trader_sdk/rpc/category_parameters.py +216 -216
- avantis_trader_sdk/rpc/fee_parameters.py +237 -237
- avantis_trader_sdk/rpc/pairs_cache.py +130 -130
- avantis_trader_sdk/rpc/rpc_helpers.py +8 -8
- avantis_trader_sdk/rpc/snapshot.py +142 -142
- avantis_trader_sdk/rpc/trade.py +701 -710
- avantis_trader_sdk/rpc/trading_parameters.py +139 -139
- avantis_trader_sdk/types.py +462 -462
- avantis_trader_sdk/utils.py +78 -78
- {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.4.dist-info}/METADATA +124 -113
- {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.4.dist-info}/RECORD +39 -40
- {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.4.dist-info}/WHEEL +1 -1
- avantis_trader_sdk/feed/feedIds.json +0 -214
- {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.4.dist-info}/top_level.txt +0 -0
|
@@ -1,1628 +1,1628 @@
|
|
|
1
|
-
{
|
|
2
|
-
"abi": [
|
|
3
|
-
{
|
|
4
|
-
"type": "function",
|
|
5
|
-
"name": "distributeReward",
|
|
6
|
-
"inputs": [
|
|
7
|
-
{
|
|
8
|
-
"name": "",
|
|
9
|
-
"type": "tuple",
|
|
10
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
11
|
-
"components": [
|
|
12
|
-
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
13
|
-
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
14
|
-
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
15
|
-
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
{ "name": "", "type": "uint256", "internalType": "uint256" }
|
|
19
|
-
],
|
|
20
|
-
"outputs": [],
|
|
21
|
-
"stateMutability": "nonpayable"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "function",
|
|
25
|
-
"name": "openLimitOrderTypes",
|
|
26
|
-
"inputs": [
|
|
27
|
-
{ "name": "", "type": "address", "internalType": "address" },
|
|
28
|
-
{ "name": "", "type": "uint256", "internalType": "uint256" },
|
|
29
|
-
{ "name": "", "type": "uint256", "internalType": "uint256" }
|
|
30
|
-
],
|
|
31
|
-
"outputs": [{ "name": "", "type": "uint8", "internalType": "enum IExecute.OpenLimitOrderType" }],
|
|
32
|
-
"stateMutability": "view"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"type": "function",
|
|
36
|
-
"name": "setOpenLimitOrderType",
|
|
37
|
-
"inputs": [
|
|
38
|
-
{ "name": "", "type": "address", "internalType": "address" },
|
|
39
|
-
{ "name": "", "type": "uint256", "internalType": "uint256" },
|
|
40
|
-
{ "name": "", "type": "uint256", "internalType": "uint256" },
|
|
41
|
-
{ "name": "", "type": "uint8", "internalType": "enum IExecute.OpenLimitOrderType" }
|
|
42
|
-
],
|
|
43
|
-
"outputs": [],
|
|
44
|
-
"stateMutability": "nonpayable"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"type": "function",
|
|
48
|
-
"name": "storeFirstToTrigger",
|
|
49
|
-
"inputs": [
|
|
50
|
-
{
|
|
51
|
-
"name": "",
|
|
52
|
-
"type": "tuple",
|
|
53
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
54
|
-
"components": [
|
|
55
|
-
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
56
|
-
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
57
|
-
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
58
|
-
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
59
|
-
]
|
|
60
|
-
},
|
|
61
|
-
{ "name": "", "type": "address", "internalType": "address" }
|
|
62
|
-
],
|
|
63
|
-
"outputs": [],
|
|
64
|
-
"stateMutability": "nonpayable"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"type": "function",
|
|
68
|
-
"name": "unregisterTrigger",
|
|
69
|
-
"inputs": [
|
|
70
|
-
{
|
|
71
|
-
"name": "",
|
|
72
|
-
"type": "tuple",
|
|
73
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
74
|
-
"components": [
|
|
75
|
-
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
76
|
-
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
77
|
-
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
78
|
-
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"outputs": [],
|
|
83
|
-
"stateMutability": "nonpayable"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"type": "event",
|
|
87
|
-
"name": "NumberUpdated",
|
|
88
|
-
"inputs": [
|
|
89
|
-
{ "name": "name", "type": "string", "indexed": false, "internalType": "string" },
|
|
90
|
-
{ "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }
|
|
91
|
-
],
|
|
92
|
-
"anonymous": false
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"type": "event",
|
|
96
|
-
"name": "PercentagesUpdated",
|
|
97
|
-
"inputs": [{ "name": "firstP", "type": "uint256", "indexed": false, "internalType": "uint256" }],
|
|
98
|
-
"anonymous": false
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"type": "event",
|
|
102
|
-
"name": "PoolTokensClaimed",
|
|
103
|
-
"inputs": [
|
|
104
|
-
{ "name": "bot", "type": "address", "indexed": false, "internalType": "address" },
|
|
105
|
-
{ "name": "fromRound", "type": "uint256", "indexed": false, "internalType": "uint256" },
|
|
106
|
-
{ "name": "toRound", "type": "uint256", "indexed": false, "internalType": "uint256" },
|
|
107
|
-
{ "name": "tokens", "type": "uint256", "indexed": false, "internalType": "uint256" }
|
|
108
|
-
],
|
|
109
|
-
"anonymous": false
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"type": "event",
|
|
113
|
-
"name": "TokensClaimed",
|
|
114
|
-
"inputs": [
|
|
115
|
-
{ "name": "bot", "type": "address", "indexed": false, "internalType": "address" },
|
|
116
|
-
{ "name": "tokens", "type": "uint256", "indexed": false, "internalType": "uint256" }
|
|
117
|
-
],
|
|
118
|
-
"anonymous": false
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"type": "event",
|
|
122
|
-
"name": "TriggerRewarded",
|
|
123
|
-
"inputs": [
|
|
124
|
-
{
|
|
125
|
-
"name": "id",
|
|
126
|
-
"type": "tuple",
|
|
127
|
-
"indexed": false,
|
|
128
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
129
|
-
"components": [
|
|
130
|
-
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
131
|
-
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
132
|
-
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
133
|
-
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
134
|
-
]
|
|
135
|
-
},
|
|
136
|
-
{ "name": "reward", "type": "uint256", "indexed": false, "internalType": "uint256" }
|
|
137
|
-
],
|
|
138
|
-
"anonymous": false
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"type": "event",
|
|
142
|
-
"name": "TriggerUnregistered",
|
|
143
|
-
"inputs": [
|
|
144
|
-
{
|
|
145
|
-
"name": "id",
|
|
146
|
-
"type": "tuple",
|
|
147
|
-
"indexed": false,
|
|
148
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
149
|
-
"components": [
|
|
150
|
-
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
151
|
-
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
152
|
-
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
153
|
-
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
154
|
-
]
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
"anonymous": false
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"type": "event",
|
|
161
|
-
"name": "TriggeredFirst",
|
|
162
|
-
"inputs": [
|
|
163
|
-
{
|
|
164
|
-
"name": "id",
|
|
165
|
-
"type": "tuple",
|
|
166
|
-
"indexed": false,
|
|
167
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
168
|
-
"components": [
|
|
169
|
-
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
170
|
-
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
171
|
-
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
172
|
-
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
173
|
-
]
|
|
174
|
-
},
|
|
175
|
-
{ "name": "bot", "type": "address", "indexed": false, "internalType": "address" }
|
|
176
|
-
],
|
|
177
|
-
"anonymous": false
|
|
178
|
-
}
|
|
179
|
-
],
|
|
180
|
-
"bytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
|
|
181
|
-
"deployedBytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
|
|
182
|
-
"methodIdentifiers": {
|
|
183
|
-
"distributeReward((address,uint256,uint256,uint8),uint256)": "afc329ac",
|
|
184
|
-
"openLimitOrderTypes(address,uint256,uint256)": "d4de65ea",
|
|
185
|
-
"setOpenLimitOrderType(address,uint256,uint256,uint8)": "ec570610",
|
|
186
|
-
"storeFirstToTrigger((address,uint256,uint256,uint8),address)": "c23c886c",
|
|
187
|
-
"unregisterTrigger((address,uint256,uint256,uint8))": "bf654d2b"
|
|
188
|
-
},
|
|
189
|
-
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.7+commit.e28d00a7\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"NumberUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"firstP\",\"type\":\"uint256\"}],\"name\":\"PercentagesUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"bot\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fromRound\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"toRound\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"}],\"name\":\"PoolTokensClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"bot\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"}],\"name\":\"TokensClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"indexed\":false,\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"id\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"}],\"name\":\"TriggerRewarded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"indexed\":false,\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"id\",\"type\":\"tuple\"}],\"name\":\"TriggerUnregistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"indexed\":false,\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"id\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"bot\",\"type\":\"address\"}],\"name\":\"TriggeredFirst\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"distributeReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"openLimitOrderTypes\",\"outputs\":[{\"internalType\":\"enum IExecute.OpenLimitOrderType\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"enum IExecute.OpenLimitOrderType\",\"name\":\"\",\"type\":\"uint8\"}],\"name\":\"setOpenLimitOrderType\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"storeFirstToTrigger\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"\",\"type\":\"tuple\"}],\"name\":\"unregisterTrigger\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/interfaces/IExecute.sol\":\"IExecute\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@chainlink/=lib/chainlink/\",\":@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":chainlink/=lib/chainlink/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\",\":pyth-sdk-solidity/=lib/pyth-sdk-solidity/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bd39944e8fc06be6dbe2dd1d8449b5336e23c6a7ba3e8e9ae5ae0f37f35283f5\",\"dweb:/ipfs/QmPV3FGYjVwvKSgAXKUN3r9T9GwniZz83CxBpM7vyj2G53\"]},\"src/interfaces/ICallbacks.sol\":{\"keccak256\":\"0xf752442ca8254c91ace7ca3e7c6360783cfd9019ce50f3354c45b7e73268f6e8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d43dbc8029336d54a698810f532ce5ccdb9957db24cfbbefd56d65837001743f\",\"dweb:/ipfs/QmSEfht6aZ7McGJJPqBeorSdYve3NpnMvCwt5vX1VKp6pu\"]},\"src/interfaces/IExecute.sol\":{\"keccak256\":\"0x189f78c460465dcdaab444248da17059e96e76e862bb08540e7054296512b9b4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c757cbde37e2932a25fca5ed1ef8fdd49cf1521b8d9f1cfa1d512d1e94862a3b\",\"dweb:/ipfs/QmVvbrLcDBFo9oMdNqaYTmhhtgnH2WzgX8nbMTKuJU6Y1m\"]},\"src/interfaces/IPairStorage.sol\":{\"keccak256\":\"0xe21543cdbe3b6c526c3d13178cc0550d3f310d3d3d0fda72949697c5c3c6ca2a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://57ae213d0c07d7206ddafbd04e45e76f5f10ab1c8c68082faff345d271c7ac7d\",\"dweb:/ipfs/QmQGev8sZeFeTge53USh7dyMS3jVWgvr3VVPDFqnnNRqti\"]},\"src/interfaces/IPausable.sol\":{\"keccak256\":\"0x0cf760757842bd332ce27fac78b8dc0f7a36406529a213954bc463c2be174ecd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c69ee15b814b76caed732b47b729d1c2b361ed158b85220da30ea9aac893ad0e\",\"dweb:/ipfs/QmbF9HWVA7DCtNzK2LkRdvhMV1TuqTf9dzUzAKwQadHZnY\"]},\"src/interfaces/IPriceAggregator.sol\":{\"keccak256\":\"0x56ebae9f8fcf1e1674eafc7ab4397034d6f5304c3a8b8c688014445887ed2c5e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d328b9fbdbd90afb4740dff095996555d14a2cdb67849ccffe796f61a29ff2ad\",\"dweb:/ipfs/QmZZNbj6gfLvrKhdT8qghCUTRRWx26UTagirxXtqdJWTy7\"]},\"src/interfaces/ITradingStorage.sol\":{\"keccak256\":\"0x8d11251a316c5ef1808bfd4a67421fc121aa7bd32f87aec028c9078d5e2b51ae\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ae714dca1f1584b94b8b2efe27e63c7d7fb23062700fcfbdda515bf51256294f\",\"dweb:/ipfs/QmZEoAZ28MDGsfXh48EBBJGAW9XKGpbPEPaQAzEts9fnja\"]},\"src/interfaces/IVaultManager.sol\":{\"keccak256\":\"0x155dfef9cee4095d62850c4175988ea1e58d666e0cef4a56784b5eb22945e6a4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ca48d24e6b286737c8644877c0317a2c81e4ffe15eed3b2a47a7494700581b05\",\"dweb:/ipfs/Qmct1V584KcWZTtKZrU6DK444nHs7PRi3r8DiHNYesh9eZ\"]}},\"version\":1}",
|
|
190
|
-
"metadata": {
|
|
191
|
-
"compiler": { "version": "0.8.7+commit.e28d00a7" },
|
|
192
|
-
"language": "Solidity",
|
|
193
|
-
"output": {
|
|
194
|
-
"abi": [
|
|
195
|
-
{
|
|
196
|
-
"inputs": [
|
|
197
|
-
{ "internalType": "string", "name": "name", "type": "string", "indexed": false },
|
|
198
|
-
{ "internalType": "uint256", "name": "value", "type": "uint256", "indexed": false }
|
|
199
|
-
],
|
|
200
|
-
"type": "event",
|
|
201
|
-
"name": "NumberUpdated",
|
|
202
|
-
"anonymous": false
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"inputs": [{ "internalType": "uint256", "name": "firstP", "type": "uint256", "indexed": false }],
|
|
206
|
-
"type": "event",
|
|
207
|
-
"name": "PercentagesUpdated",
|
|
208
|
-
"anonymous": false
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"inputs": [
|
|
212
|
-
{ "internalType": "address", "name": "bot", "type": "address", "indexed": false },
|
|
213
|
-
{ "internalType": "uint256", "name": "fromRound", "type": "uint256", "indexed": false },
|
|
214
|
-
{ "internalType": "uint256", "name": "toRound", "type": "uint256", "indexed": false },
|
|
215
|
-
{ "internalType": "uint256", "name": "tokens", "type": "uint256", "indexed": false }
|
|
216
|
-
],
|
|
217
|
-
"type": "event",
|
|
218
|
-
"name": "PoolTokensClaimed",
|
|
219
|
-
"anonymous": false
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"inputs": [
|
|
223
|
-
{ "internalType": "address", "name": "bot", "type": "address", "indexed": false },
|
|
224
|
-
{ "internalType": "uint256", "name": "tokens", "type": "uint256", "indexed": false }
|
|
225
|
-
],
|
|
226
|
-
"type": "event",
|
|
227
|
-
"name": "TokensClaimed",
|
|
228
|
-
"anonymous": false
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"inputs": [
|
|
232
|
-
{
|
|
233
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
234
|
-
"name": "id",
|
|
235
|
-
"type": "tuple",
|
|
236
|
-
"components": [
|
|
237
|
-
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
238
|
-
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
239
|
-
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
240
|
-
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
241
|
-
],
|
|
242
|
-
"indexed": false
|
|
243
|
-
},
|
|
244
|
-
{ "internalType": "uint256", "name": "reward", "type": "uint256", "indexed": false }
|
|
245
|
-
],
|
|
246
|
-
"type": "event",
|
|
247
|
-
"name": "TriggerRewarded",
|
|
248
|
-
"anonymous": false
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"inputs": [
|
|
252
|
-
{
|
|
253
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
254
|
-
"name": "id",
|
|
255
|
-
"type": "tuple",
|
|
256
|
-
"components": [
|
|
257
|
-
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
258
|
-
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
259
|
-
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
260
|
-
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
261
|
-
],
|
|
262
|
-
"indexed": false
|
|
263
|
-
}
|
|
264
|
-
],
|
|
265
|
-
"type": "event",
|
|
266
|
-
"name": "TriggerUnregistered",
|
|
267
|
-
"anonymous": false
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"inputs": [
|
|
271
|
-
{
|
|
272
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
273
|
-
"name": "id",
|
|
274
|
-
"type": "tuple",
|
|
275
|
-
"components": [
|
|
276
|
-
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
277
|
-
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
278
|
-
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
279
|
-
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
280
|
-
],
|
|
281
|
-
"indexed": false
|
|
282
|
-
},
|
|
283
|
-
{ "internalType": "address", "name": "bot", "type": "address", "indexed": false }
|
|
284
|
-
],
|
|
285
|
-
"type": "event",
|
|
286
|
-
"name": "TriggeredFirst",
|
|
287
|
-
"anonymous": false
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
"inputs": [
|
|
291
|
-
{
|
|
292
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
293
|
-
"name": "",
|
|
294
|
-
"type": "tuple",
|
|
295
|
-
"components": [
|
|
296
|
-
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
297
|
-
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
298
|
-
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
299
|
-
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
300
|
-
]
|
|
301
|
-
},
|
|
302
|
-
{ "internalType": "uint256", "name": "", "type": "uint256" }
|
|
303
|
-
],
|
|
304
|
-
"stateMutability": "nonpayable",
|
|
305
|
-
"type": "function",
|
|
306
|
-
"name": "distributeReward"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
"inputs": [
|
|
310
|
-
{ "internalType": "address", "name": "", "type": "address" },
|
|
311
|
-
{ "internalType": "uint256", "name": "", "type": "uint256" },
|
|
312
|
-
{ "internalType": "uint256", "name": "", "type": "uint256" }
|
|
313
|
-
],
|
|
314
|
-
"stateMutability": "view",
|
|
315
|
-
"type": "function",
|
|
316
|
-
"name": "openLimitOrderTypes",
|
|
317
|
-
"outputs": [{ "internalType": "enum IExecute.OpenLimitOrderType", "name": "", "type": "uint8" }]
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"inputs": [
|
|
321
|
-
{ "internalType": "address", "name": "", "type": "address" },
|
|
322
|
-
{ "internalType": "uint256", "name": "", "type": "uint256" },
|
|
323
|
-
{ "internalType": "uint256", "name": "", "type": "uint256" },
|
|
324
|
-
{ "internalType": "enum IExecute.OpenLimitOrderType", "name": "", "type": "uint8" }
|
|
325
|
-
],
|
|
326
|
-
"stateMutability": "nonpayable",
|
|
327
|
-
"type": "function",
|
|
328
|
-
"name": "setOpenLimitOrderType"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
"inputs": [
|
|
332
|
-
{
|
|
333
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
334
|
-
"name": "",
|
|
335
|
-
"type": "tuple",
|
|
336
|
-
"components": [
|
|
337
|
-
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
338
|
-
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
339
|
-
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
340
|
-
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
341
|
-
]
|
|
342
|
-
},
|
|
343
|
-
{ "internalType": "address", "name": "", "type": "address" }
|
|
344
|
-
],
|
|
345
|
-
"stateMutability": "nonpayable",
|
|
346
|
-
"type": "function",
|
|
347
|
-
"name": "storeFirstToTrigger"
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
"inputs": [
|
|
351
|
-
{
|
|
352
|
-
"internalType": "struct IExecute.TriggeredLimitId",
|
|
353
|
-
"name": "",
|
|
354
|
-
"type": "tuple",
|
|
355
|
-
"components": [
|
|
356
|
-
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
357
|
-
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
358
|
-
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
359
|
-
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
360
|
-
]
|
|
361
|
-
}
|
|
362
|
-
],
|
|
363
|
-
"stateMutability": "nonpayable",
|
|
364
|
-
"type": "function",
|
|
365
|
-
"name": "unregisterTrigger"
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
"devdoc": { "kind": "dev", "methods": {}, "version": 1 },
|
|
369
|
-
"userdoc": { "kind": "user", "methods": {}, "version": 1 }
|
|
370
|
-
},
|
|
371
|
-
"settings": {
|
|
372
|
-
"remappings": [
|
|
373
|
-
"@chainlink/=lib/chainlink/",
|
|
374
|
-
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
|
|
375
|
-
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
|
|
376
|
-
"chainlink/=lib/chainlink/",
|
|
377
|
-
"ds-test/=lib/forge-std/lib/ds-test/src/",
|
|
378
|
-
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
|
|
379
|
-
"forge-std/=lib/forge-std/src/",
|
|
380
|
-
"openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
|
|
381
|
-
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
|
|
382
|
-
"openzeppelin/=lib/openzeppelin-contracts/contracts/",
|
|
383
|
-
"pyth-sdk-solidity/=lib/pyth-sdk-solidity/"
|
|
384
|
-
],
|
|
385
|
-
"optimizer": { "enabled": true, "runs": 200 },
|
|
386
|
-
"metadata": { "bytecodeHash": "ipfs" },
|
|
387
|
-
"compilationTarget": { "src/interfaces/IExecute.sol": "IExecute" },
|
|
388
|
-
"libraries": {}
|
|
389
|
-
},
|
|
390
|
-
"sources": {
|
|
391
|
-
"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol": {
|
|
392
|
-
"keccak256": "0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305",
|
|
393
|
-
"urls": [
|
|
394
|
-
"bzz-raw://bd39944e8fc06be6dbe2dd1d8449b5336e23c6a7ba3e8e9ae5ae0f37f35283f5",
|
|
395
|
-
"dweb:/ipfs/QmPV3FGYjVwvKSgAXKUN3r9T9GwniZz83CxBpM7vyj2G53"
|
|
396
|
-
],
|
|
397
|
-
"license": "MIT"
|
|
398
|
-
},
|
|
399
|
-
"src/interfaces/ICallbacks.sol": {
|
|
400
|
-
"keccak256": "0xf752442ca8254c91ace7ca3e7c6360783cfd9019ce50f3354c45b7e73268f6e8",
|
|
401
|
-
"urls": [
|
|
402
|
-
"bzz-raw://d43dbc8029336d54a698810f532ce5ccdb9957db24cfbbefd56d65837001743f",
|
|
403
|
-
"dweb:/ipfs/QmSEfht6aZ7McGJJPqBeorSdYve3NpnMvCwt5vX1VKp6pu"
|
|
404
|
-
],
|
|
405
|
-
"license": "MIT"
|
|
406
|
-
},
|
|
407
|
-
"src/interfaces/IExecute.sol": {
|
|
408
|
-
"keccak256": "0x189f78c460465dcdaab444248da17059e96e76e862bb08540e7054296512b9b4",
|
|
409
|
-
"urls": [
|
|
410
|
-
"bzz-raw://c757cbde37e2932a25fca5ed1ef8fdd49cf1521b8d9f1cfa1d512d1e94862a3b",
|
|
411
|
-
"dweb:/ipfs/QmVvbrLcDBFo9oMdNqaYTmhhtgnH2WzgX8nbMTKuJU6Y1m"
|
|
412
|
-
],
|
|
413
|
-
"license": "MIT"
|
|
414
|
-
},
|
|
415
|
-
"src/interfaces/IPairStorage.sol": {
|
|
416
|
-
"keccak256": "0xe21543cdbe3b6c526c3d13178cc0550d3f310d3d3d0fda72949697c5c3c6ca2a",
|
|
417
|
-
"urls": [
|
|
418
|
-
"bzz-raw://57ae213d0c07d7206ddafbd04e45e76f5f10ab1c8c68082faff345d271c7ac7d",
|
|
419
|
-
"dweb:/ipfs/QmQGev8sZeFeTge53USh7dyMS3jVWgvr3VVPDFqnnNRqti"
|
|
420
|
-
],
|
|
421
|
-
"license": "MIT"
|
|
422
|
-
},
|
|
423
|
-
"src/interfaces/IPausable.sol": {
|
|
424
|
-
"keccak256": "0x0cf760757842bd332ce27fac78b8dc0f7a36406529a213954bc463c2be174ecd",
|
|
425
|
-
"urls": [
|
|
426
|
-
"bzz-raw://c69ee15b814b76caed732b47b729d1c2b361ed158b85220da30ea9aac893ad0e",
|
|
427
|
-
"dweb:/ipfs/QmbF9HWVA7DCtNzK2LkRdvhMV1TuqTf9dzUzAKwQadHZnY"
|
|
428
|
-
],
|
|
429
|
-
"license": "MIT"
|
|
430
|
-
},
|
|
431
|
-
"src/interfaces/IPriceAggregator.sol": {
|
|
432
|
-
"keccak256": "0x56ebae9f8fcf1e1674eafc7ab4397034d6f5304c3a8b8c688014445887ed2c5e",
|
|
433
|
-
"urls": [
|
|
434
|
-
"bzz-raw://d328b9fbdbd90afb4740dff095996555d14a2cdb67849ccffe796f61a29ff2ad",
|
|
435
|
-
"dweb:/ipfs/QmZZNbj6gfLvrKhdT8qghCUTRRWx26UTagirxXtqdJWTy7"
|
|
436
|
-
],
|
|
437
|
-
"license": "MIT"
|
|
438
|
-
},
|
|
439
|
-
"src/interfaces/ITradingStorage.sol": {
|
|
440
|
-
"keccak256": "0x8d11251a316c5ef1808bfd4a67421fc121aa7bd32f87aec028c9078d5e2b51ae",
|
|
441
|
-
"urls": [
|
|
442
|
-
"bzz-raw://ae714dca1f1584b94b8b2efe27e63c7d7fb23062700fcfbdda515bf51256294f",
|
|
443
|
-
"dweb:/ipfs/QmZEoAZ28MDGsfXh48EBBJGAW9XKGpbPEPaQAzEts9fnja"
|
|
444
|
-
],
|
|
445
|
-
"license": "MIT"
|
|
446
|
-
},
|
|
447
|
-
"src/interfaces/IVaultManager.sol": {
|
|
448
|
-
"keccak256": "0x155dfef9cee4095d62850c4175988ea1e58d666e0cef4a56784b5eb22945e6a4",
|
|
449
|
-
"urls": [
|
|
450
|
-
"bzz-raw://ca48d24e6b286737c8644877c0317a2c81e4ffe15eed3b2a47a7494700581b05",
|
|
451
|
-
"dweb:/ipfs/Qmct1V584KcWZTtKZrU6DK444nHs7PRi3r8DiHNYesh9eZ"
|
|
452
|
-
],
|
|
453
|
-
"license": "MIT"
|
|
454
|
-
}
|
|
455
|
-
},
|
|
456
|
-
"version": 1
|
|
457
|
-
},
|
|
458
|
-
"ast": {
|
|
459
|
-
"absolutePath": "src/interfaces/IExecute.sol",
|
|
460
|
-
"id": 73020,
|
|
461
|
-
"exportedSymbols": { "IExecute": [73019], "ITradingStorage": [74531] },
|
|
462
|
-
"nodeType": "SourceUnit",
|
|
463
|
-
"src": "32:1269:87",
|
|
464
|
-
"nodes": [
|
|
465
|
-
{
|
|
466
|
-
"id": 72907,
|
|
467
|
-
"nodeType": "PragmaDirective",
|
|
468
|
-
"src": "32:22:87",
|
|
469
|
-
"nodes": [],
|
|
470
|
-
"literals": ["solidity", "0.8", ".7"]
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
"id": 72908,
|
|
474
|
-
"nodeType": "ImportDirective",
|
|
475
|
-
"src": "55:31:87",
|
|
476
|
-
"nodes": [],
|
|
477
|
-
"absolutePath": "src/interfaces/ITradingStorage.sol",
|
|
478
|
-
"file": "./ITradingStorage.sol",
|
|
479
|
-
"nameLocation": "-1:-1:-1",
|
|
480
|
-
"scope": 73020,
|
|
481
|
-
"sourceUnit": 74532,
|
|
482
|
-
"symbolAliases": [],
|
|
483
|
-
"unitAlias": ""
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
"id": 73019,
|
|
487
|
-
"nodeType": "ContractDefinition",
|
|
488
|
-
"src": "88:1212:87",
|
|
489
|
-
"nodes": [
|
|
490
|
-
{
|
|
491
|
-
"id": 72913,
|
|
492
|
-
"nodeType": "StructDefinition",
|
|
493
|
-
"src": "138:72:87",
|
|
494
|
-
"nodes": [],
|
|
495
|
-
"canonicalName": "IExecute.TriggeredLimit",
|
|
496
|
-
"members": [
|
|
497
|
-
{
|
|
498
|
-
"constant": false,
|
|
499
|
-
"id": 72910,
|
|
500
|
-
"mutability": "mutable",
|
|
501
|
-
"name": "first",
|
|
502
|
-
"nameLocation": "178:5:87",
|
|
503
|
-
"nodeType": "VariableDeclaration",
|
|
504
|
-
"scope": 72913,
|
|
505
|
-
"src": "170:13:87",
|
|
506
|
-
"stateVariable": false,
|
|
507
|
-
"storageLocation": "default",
|
|
508
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
509
|
-
"typeName": {
|
|
510
|
-
"id": 72909,
|
|
511
|
-
"name": "address",
|
|
512
|
-
"nodeType": "ElementaryTypeName",
|
|
513
|
-
"src": "170:7:87",
|
|
514
|
-
"stateMutability": "nonpayable",
|
|
515
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
516
|
-
},
|
|
517
|
-
"visibility": "internal"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"constant": false,
|
|
521
|
-
"id": 72912,
|
|
522
|
-
"mutability": "mutable",
|
|
523
|
-
"name": "block",
|
|
524
|
-
"nameLocation": "198:5:87",
|
|
525
|
-
"nodeType": "VariableDeclaration",
|
|
526
|
-
"scope": 72913,
|
|
527
|
-
"src": "193:10:87",
|
|
528
|
-
"stateVariable": false,
|
|
529
|
-
"storageLocation": "default",
|
|
530
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
531
|
-
"typeName": {
|
|
532
|
-
"id": 72911,
|
|
533
|
-
"name": "uint",
|
|
534
|
-
"nodeType": "ElementaryTypeName",
|
|
535
|
-
"src": "193:4:87",
|
|
536
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
537
|
-
},
|
|
538
|
-
"visibility": "internal"
|
|
539
|
-
}
|
|
540
|
-
],
|
|
541
|
-
"name": "TriggeredLimit",
|
|
542
|
-
"nameLocation": "145:14:87",
|
|
543
|
-
"scope": 73019,
|
|
544
|
-
"visibility": "public"
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
"id": 72923,
|
|
548
|
-
"nodeType": "StructDefinition",
|
|
549
|
-
"src": "220:141:87",
|
|
550
|
-
"nodes": [],
|
|
551
|
-
"canonicalName": "IExecute.TriggeredLimitId",
|
|
552
|
-
"members": [
|
|
553
|
-
{
|
|
554
|
-
"constant": false,
|
|
555
|
-
"id": 72915,
|
|
556
|
-
"mutability": "mutable",
|
|
557
|
-
"name": "trader",
|
|
558
|
-
"nameLocation": "262:6:87",
|
|
559
|
-
"nodeType": "VariableDeclaration",
|
|
560
|
-
"scope": 72923,
|
|
561
|
-
"src": "254:14:87",
|
|
562
|
-
"stateVariable": false,
|
|
563
|
-
"storageLocation": "default",
|
|
564
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
565
|
-
"typeName": {
|
|
566
|
-
"id": 72914,
|
|
567
|
-
"name": "address",
|
|
568
|
-
"nodeType": "ElementaryTypeName",
|
|
569
|
-
"src": "254:7:87",
|
|
570
|
-
"stateMutability": "nonpayable",
|
|
571
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
572
|
-
},
|
|
573
|
-
"visibility": "internal"
|
|
574
|
-
},
|
|
575
|
-
{
|
|
576
|
-
"constant": false,
|
|
577
|
-
"id": 72917,
|
|
578
|
-
"mutability": "mutable",
|
|
579
|
-
"name": "pairIndex",
|
|
580
|
-
"nameLocation": "283:9:87",
|
|
581
|
-
"nodeType": "VariableDeclaration",
|
|
582
|
-
"scope": 72923,
|
|
583
|
-
"src": "278:14:87",
|
|
584
|
-
"stateVariable": false,
|
|
585
|
-
"storageLocation": "default",
|
|
586
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
587
|
-
"typeName": {
|
|
588
|
-
"id": 72916,
|
|
589
|
-
"name": "uint",
|
|
590
|
-
"nodeType": "ElementaryTypeName",
|
|
591
|
-
"src": "278:4:87",
|
|
592
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
593
|
-
},
|
|
594
|
-
"visibility": "internal"
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
"constant": false,
|
|
598
|
-
"id": 72919,
|
|
599
|
-
"mutability": "mutable",
|
|
600
|
-
"name": "index",
|
|
601
|
-
"nameLocation": "307:5:87",
|
|
602
|
-
"nodeType": "VariableDeclaration",
|
|
603
|
-
"scope": 72923,
|
|
604
|
-
"src": "302:10:87",
|
|
605
|
-
"stateVariable": false,
|
|
606
|
-
"storageLocation": "default",
|
|
607
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
608
|
-
"typeName": {
|
|
609
|
-
"id": 72918,
|
|
610
|
-
"name": "uint",
|
|
611
|
-
"nodeType": "ElementaryTypeName",
|
|
612
|
-
"src": "302:4:87",
|
|
613
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
614
|
-
},
|
|
615
|
-
"visibility": "internal"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
"constant": false,
|
|
619
|
-
"id": 72922,
|
|
620
|
-
"mutability": "mutable",
|
|
621
|
-
"name": "order",
|
|
622
|
-
"nameLocation": "349:5:87",
|
|
623
|
-
"nodeType": "VariableDeclaration",
|
|
624
|
-
"scope": 72923,
|
|
625
|
-
"src": "322:32:87",
|
|
626
|
-
"stateVariable": false,
|
|
627
|
-
"storageLocation": "default",
|
|
628
|
-
"typeDescriptions": {
|
|
629
|
-
"typeIdentifier": "t_enum$_LimitOrder_$74006",
|
|
630
|
-
"typeString": "enum ITradingStorage.LimitOrder"
|
|
631
|
-
},
|
|
632
|
-
"typeName": {
|
|
633
|
-
"id": 72921,
|
|
634
|
-
"nodeType": "UserDefinedTypeName",
|
|
635
|
-
"pathNode": {
|
|
636
|
-
"id": 72920,
|
|
637
|
-
"name": "ITradingStorage.LimitOrder",
|
|
638
|
-
"nodeType": "IdentifierPath",
|
|
639
|
-
"referencedDeclaration": 74006,
|
|
640
|
-
"src": "322:26:87"
|
|
641
|
-
},
|
|
642
|
-
"referencedDeclaration": 74006,
|
|
643
|
-
"src": "322:26:87",
|
|
644
|
-
"typeDescriptions": {
|
|
645
|
-
"typeIdentifier": "t_enum$_LimitOrder_$74006",
|
|
646
|
-
"typeString": "enum ITradingStorage.LimitOrder"
|
|
647
|
-
}
|
|
648
|
-
},
|
|
649
|
-
"visibility": "internal"
|
|
650
|
-
}
|
|
651
|
-
],
|
|
652
|
-
"name": "TriggeredLimitId",
|
|
653
|
-
"nameLocation": "227:16:87",
|
|
654
|
-
"scope": 73019,
|
|
655
|
-
"visibility": "public"
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"id": 72927,
|
|
659
|
-
"nodeType": "EnumDefinition",
|
|
660
|
-
"src": "367:105:87",
|
|
661
|
-
"nodes": [],
|
|
662
|
-
"canonicalName": "IExecute.OpenLimitOrderType",
|
|
663
|
-
"members": [
|
|
664
|
-
{ "id": 72924, "name": "MARKET", "nameLocation": "401:6:87", "nodeType": "EnumValue", "src": "401:6:87" },
|
|
665
|
-
{
|
|
666
|
-
"id": 72925,
|
|
667
|
-
"name": "REVERSAL",
|
|
668
|
-
"nameLocation": "417:8:87",
|
|
669
|
-
"nodeType": "EnumValue",
|
|
670
|
-
"src": "417:8:87"
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
"id": 72926,
|
|
674
|
-
"name": "MOMENTUM",
|
|
675
|
-
"nameLocation": "449:8:87",
|
|
676
|
-
"nodeType": "EnumValue",
|
|
677
|
-
"src": "449:8:87"
|
|
678
|
-
}
|
|
679
|
-
],
|
|
680
|
-
"name": "OpenLimitOrderType",
|
|
681
|
-
"nameLocation": "372:18:87"
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
"id": 72933,
|
|
685
|
-
"nodeType": "EventDefinition",
|
|
686
|
-
"src": "492:45:87",
|
|
687
|
-
"nodes": [],
|
|
688
|
-
"anonymous": false,
|
|
689
|
-
"name": "NumberUpdated",
|
|
690
|
-
"nameLocation": "498:13:87",
|
|
691
|
-
"parameters": {
|
|
692
|
-
"id": 72932,
|
|
693
|
-
"nodeType": "ParameterList",
|
|
694
|
-
"parameters": [
|
|
695
|
-
{
|
|
696
|
-
"constant": false,
|
|
697
|
-
"id": 72929,
|
|
698
|
-
"indexed": false,
|
|
699
|
-
"mutability": "mutable",
|
|
700
|
-
"name": "name",
|
|
701
|
-
"nameLocation": "519:4:87",
|
|
702
|
-
"nodeType": "VariableDeclaration",
|
|
703
|
-
"scope": 72933,
|
|
704
|
-
"src": "512:11:87",
|
|
705
|
-
"stateVariable": false,
|
|
706
|
-
"storageLocation": "default",
|
|
707
|
-
"typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" },
|
|
708
|
-
"typeName": {
|
|
709
|
-
"id": 72928,
|
|
710
|
-
"name": "string",
|
|
711
|
-
"nodeType": "ElementaryTypeName",
|
|
712
|
-
"src": "512:6:87",
|
|
713
|
-
"typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" }
|
|
714
|
-
},
|
|
715
|
-
"visibility": "internal"
|
|
716
|
-
},
|
|
717
|
-
{
|
|
718
|
-
"constant": false,
|
|
719
|
-
"id": 72931,
|
|
720
|
-
"indexed": false,
|
|
721
|
-
"mutability": "mutable",
|
|
722
|
-
"name": "value",
|
|
723
|
-
"nameLocation": "530:5:87",
|
|
724
|
-
"nodeType": "VariableDeclaration",
|
|
725
|
-
"scope": 72933,
|
|
726
|
-
"src": "525:10:87",
|
|
727
|
-
"stateVariable": false,
|
|
728
|
-
"storageLocation": "default",
|
|
729
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
730
|
-
"typeName": {
|
|
731
|
-
"id": 72930,
|
|
732
|
-
"name": "uint",
|
|
733
|
-
"nodeType": "ElementaryTypeName",
|
|
734
|
-
"src": "525:4:87",
|
|
735
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
736
|
-
},
|
|
737
|
-
"visibility": "internal"
|
|
738
|
-
}
|
|
739
|
-
],
|
|
740
|
-
"src": "511:25:87"
|
|
741
|
-
}
|
|
742
|
-
},
|
|
743
|
-
{
|
|
744
|
-
"id": 72937,
|
|
745
|
-
"nodeType": "EventDefinition",
|
|
746
|
-
"src": "542:38:87",
|
|
747
|
-
"nodes": [],
|
|
748
|
-
"anonymous": false,
|
|
749
|
-
"name": "PercentagesUpdated",
|
|
750
|
-
"nameLocation": "548:18:87",
|
|
751
|
-
"parameters": {
|
|
752
|
-
"id": 72936,
|
|
753
|
-
"nodeType": "ParameterList",
|
|
754
|
-
"parameters": [
|
|
755
|
-
{
|
|
756
|
-
"constant": false,
|
|
757
|
-
"id": 72935,
|
|
758
|
-
"indexed": false,
|
|
759
|
-
"mutability": "mutable",
|
|
760
|
-
"name": "firstP",
|
|
761
|
-
"nameLocation": "572:6:87",
|
|
762
|
-
"nodeType": "VariableDeclaration",
|
|
763
|
-
"scope": 72937,
|
|
764
|
-
"src": "567:11:87",
|
|
765
|
-
"stateVariable": false,
|
|
766
|
-
"storageLocation": "default",
|
|
767
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
768
|
-
"typeName": {
|
|
769
|
-
"id": 72934,
|
|
770
|
-
"name": "uint",
|
|
771
|
-
"nodeType": "ElementaryTypeName",
|
|
772
|
-
"src": "567:4:87",
|
|
773
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
774
|
-
},
|
|
775
|
-
"visibility": "internal"
|
|
776
|
-
}
|
|
777
|
-
],
|
|
778
|
-
"src": "566:13:87"
|
|
779
|
-
}
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
"id": 72944,
|
|
783
|
-
"nodeType": "EventDefinition",
|
|
784
|
-
"src": "585:55:87",
|
|
785
|
-
"nodes": [],
|
|
786
|
-
"anonymous": false,
|
|
787
|
-
"name": "TriggeredFirst",
|
|
788
|
-
"nameLocation": "591:14:87",
|
|
789
|
-
"parameters": {
|
|
790
|
-
"id": 72943,
|
|
791
|
-
"nodeType": "ParameterList",
|
|
792
|
-
"parameters": [
|
|
793
|
-
{
|
|
794
|
-
"constant": false,
|
|
795
|
-
"id": 72940,
|
|
796
|
-
"indexed": false,
|
|
797
|
-
"mutability": "mutable",
|
|
798
|
-
"name": "id",
|
|
799
|
-
"nameLocation": "623:2:87",
|
|
800
|
-
"nodeType": "VariableDeclaration",
|
|
801
|
-
"scope": 72944,
|
|
802
|
-
"src": "606:19:87",
|
|
803
|
-
"stateVariable": false,
|
|
804
|
-
"storageLocation": "default",
|
|
805
|
-
"typeDescriptions": {
|
|
806
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_memory_ptr",
|
|
807
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
808
|
-
},
|
|
809
|
-
"typeName": {
|
|
810
|
-
"id": 72939,
|
|
811
|
-
"nodeType": "UserDefinedTypeName",
|
|
812
|
-
"pathNode": {
|
|
813
|
-
"id": 72938,
|
|
814
|
-
"name": "TriggeredLimitId",
|
|
815
|
-
"nodeType": "IdentifierPath",
|
|
816
|
-
"referencedDeclaration": 72923,
|
|
817
|
-
"src": "606:16:87"
|
|
818
|
-
},
|
|
819
|
-
"referencedDeclaration": 72923,
|
|
820
|
-
"src": "606:16:87",
|
|
821
|
-
"typeDescriptions": {
|
|
822
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
823
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
824
|
-
}
|
|
825
|
-
},
|
|
826
|
-
"visibility": "internal"
|
|
827
|
-
},
|
|
828
|
-
{
|
|
829
|
-
"constant": false,
|
|
830
|
-
"id": 72942,
|
|
831
|
-
"indexed": false,
|
|
832
|
-
"mutability": "mutable",
|
|
833
|
-
"name": "bot",
|
|
834
|
-
"nameLocation": "635:3:87",
|
|
835
|
-
"nodeType": "VariableDeclaration",
|
|
836
|
-
"scope": 72944,
|
|
837
|
-
"src": "627:11:87",
|
|
838
|
-
"stateVariable": false,
|
|
839
|
-
"storageLocation": "default",
|
|
840
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
841
|
-
"typeName": {
|
|
842
|
-
"id": 72941,
|
|
843
|
-
"name": "address",
|
|
844
|
-
"nodeType": "ElementaryTypeName",
|
|
845
|
-
"src": "627:7:87",
|
|
846
|
-
"stateMutability": "nonpayable",
|
|
847
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
848
|
-
},
|
|
849
|
-
"visibility": "internal"
|
|
850
|
-
}
|
|
851
|
-
],
|
|
852
|
-
"src": "605:34:87"
|
|
853
|
-
}
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
"id": 72949,
|
|
857
|
-
"nodeType": "EventDefinition",
|
|
858
|
-
"src": "645:47:87",
|
|
859
|
-
"nodes": [],
|
|
860
|
-
"anonymous": false,
|
|
861
|
-
"name": "TriggerUnregistered",
|
|
862
|
-
"nameLocation": "651:19:87",
|
|
863
|
-
"parameters": {
|
|
864
|
-
"id": 72948,
|
|
865
|
-
"nodeType": "ParameterList",
|
|
866
|
-
"parameters": [
|
|
867
|
-
{
|
|
868
|
-
"constant": false,
|
|
869
|
-
"id": 72947,
|
|
870
|
-
"indexed": false,
|
|
871
|
-
"mutability": "mutable",
|
|
872
|
-
"name": "id",
|
|
873
|
-
"nameLocation": "688:2:87",
|
|
874
|
-
"nodeType": "VariableDeclaration",
|
|
875
|
-
"scope": 72949,
|
|
876
|
-
"src": "671:19:87",
|
|
877
|
-
"stateVariable": false,
|
|
878
|
-
"storageLocation": "default",
|
|
879
|
-
"typeDescriptions": {
|
|
880
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_memory_ptr",
|
|
881
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
882
|
-
},
|
|
883
|
-
"typeName": {
|
|
884
|
-
"id": 72946,
|
|
885
|
-
"nodeType": "UserDefinedTypeName",
|
|
886
|
-
"pathNode": {
|
|
887
|
-
"id": 72945,
|
|
888
|
-
"name": "TriggeredLimitId",
|
|
889
|
-
"nodeType": "IdentifierPath",
|
|
890
|
-
"referencedDeclaration": 72923,
|
|
891
|
-
"src": "671:16:87"
|
|
892
|
-
},
|
|
893
|
-
"referencedDeclaration": 72923,
|
|
894
|
-
"src": "671:16:87",
|
|
895
|
-
"typeDescriptions": {
|
|
896
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
897
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
898
|
-
}
|
|
899
|
-
},
|
|
900
|
-
"visibility": "internal"
|
|
901
|
-
}
|
|
902
|
-
],
|
|
903
|
-
"src": "670:21:87"
|
|
904
|
-
}
|
|
905
|
-
},
|
|
906
|
-
{
|
|
907
|
-
"id": 72956,
|
|
908
|
-
"nodeType": "EventDefinition",
|
|
909
|
-
"src": "697:56:87",
|
|
910
|
-
"nodes": [],
|
|
911
|
-
"anonymous": false,
|
|
912
|
-
"name": "TriggerRewarded",
|
|
913
|
-
"nameLocation": "703:15:87",
|
|
914
|
-
"parameters": {
|
|
915
|
-
"id": 72955,
|
|
916
|
-
"nodeType": "ParameterList",
|
|
917
|
-
"parameters": [
|
|
918
|
-
{
|
|
919
|
-
"constant": false,
|
|
920
|
-
"id": 72952,
|
|
921
|
-
"indexed": false,
|
|
922
|
-
"mutability": "mutable",
|
|
923
|
-
"name": "id",
|
|
924
|
-
"nameLocation": "736:2:87",
|
|
925
|
-
"nodeType": "VariableDeclaration",
|
|
926
|
-
"scope": 72956,
|
|
927
|
-
"src": "719:19:87",
|
|
928
|
-
"stateVariable": false,
|
|
929
|
-
"storageLocation": "default",
|
|
930
|
-
"typeDescriptions": {
|
|
931
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_memory_ptr",
|
|
932
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
933
|
-
},
|
|
934
|
-
"typeName": {
|
|
935
|
-
"id": 72951,
|
|
936
|
-
"nodeType": "UserDefinedTypeName",
|
|
937
|
-
"pathNode": {
|
|
938
|
-
"id": 72950,
|
|
939
|
-
"name": "TriggeredLimitId",
|
|
940
|
-
"nodeType": "IdentifierPath",
|
|
941
|
-
"referencedDeclaration": 72923,
|
|
942
|
-
"src": "719:16:87"
|
|
943
|
-
},
|
|
944
|
-
"referencedDeclaration": 72923,
|
|
945
|
-
"src": "719:16:87",
|
|
946
|
-
"typeDescriptions": {
|
|
947
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
948
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
949
|
-
}
|
|
950
|
-
},
|
|
951
|
-
"visibility": "internal"
|
|
952
|
-
},
|
|
953
|
-
{
|
|
954
|
-
"constant": false,
|
|
955
|
-
"id": 72954,
|
|
956
|
-
"indexed": false,
|
|
957
|
-
"mutability": "mutable",
|
|
958
|
-
"name": "reward",
|
|
959
|
-
"nameLocation": "745:6:87",
|
|
960
|
-
"nodeType": "VariableDeclaration",
|
|
961
|
-
"scope": 72956,
|
|
962
|
-
"src": "740:11:87",
|
|
963
|
-
"stateVariable": false,
|
|
964
|
-
"storageLocation": "default",
|
|
965
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
966
|
-
"typeName": {
|
|
967
|
-
"id": 72953,
|
|
968
|
-
"name": "uint",
|
|
969
|
-
"nodeType": "ElementaryTypeName",
|
|
970
|
-
"src": "740:4:87",
|
|
971
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
972
|
-
},
|
|
973
|
-
"visibility": "internal"
|
|
974
|
-
}
|
|
975
|
-
],
|
|
976
|
-
"src": "718:34:87"
|
|
977
|
-
}
|
|
978
|
-
},
|
|
979
|
-
{
|
|
980
|
-
"id": 72966,
|
|
981
|
-
"nodeType": "EventDefinition",
|
|
982
|
-
"src": "758:80:87",
|
|
983
|
-
"nodes": [],
|
|
984
|
-
"anonymous": false,
|
|
985
|
-
"name": "PoolTokensClaimed",
|
|
986
|
-
"nameLocation": "764:17:87",
|
|
987
|
-
"parameters": {
|
|
988
|
-
"id": 72965,
|
|
989
|
-
"nodeType": "ParameterList",
|
|
990
|
-
"parameters": [
|
|
991
|
-
{
|
|
992
|
-
"constant": false,
|
|
993
|
-
"id": 72958,
|
|
994
|
-
"indexed": false,
|
|
995
|
-
"mutability": "mutable",
|
|
996
|
-
"name": "bot",
|
|
997
|
-
"nameLocation": "790:3:87",
|
|
998
|
-
"nodeType": "VariableDeclaration",
|
|
999
|
-
"scope": 72966,
|
|
1000
|
-
"src": "782:11:87",
|
|
1001
|
-
"stateVariable": false,
|
|
1002
|
-
"storageLocation": "default",
|
|
1003
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
1004
|
-
"typeName": {
|
|
1005
|
-
"id": 72957,
|
|
1006
|
-
"name": "address",
|
|
1007
|
-
"nodeType": "ElementaryTypeName",
|
|
1008
|
-
"src": "782:7:87",
|
|
1009
|
-
"stateMutability": "nonpayable",
|
|
1010
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
1011
|
-
},
|
|
1012
|
-
"visibility": "internal"
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
"constant": false,
|
|
1016
|
-
"id": 72960,
|
|
1017
|
-
"indexed": false,
|
|
1018
|
-
"mutability": "mutable",
|
|
1019
|
-
"name": "fromRound",
|
|
1020
|
-
"nameLocation": "800:9:87",
|
|
1021
|
-
"nodeType": "VariableDeclaration",
|
|
1022
|
-
"scope": 72966,
|
|
1023
|
-
"src": "795:14:87",
|
|
1024
|
-
"stateVariable": false,
|
|
1025
|
-
"storageLocation": "default",
|
|
1026
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1027
|
-
"typeName": {
|
|
1028
|
-
"id": 72959,
|
|
1029
|
-
"name": "uint",
|
|
1030
|
-
"nodeType": "ElementaryTypeName",
|
|
1031
|
-
"src": "795:4:87",
|
|
1032
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1033
|
-
},
|
|
1034
|
-
"visibility": "internal"
|
|
1035
|
-
},
|
|
1036
|
-
{
|
|
1037
|
-
"constant": false,
|
|
1038
|
-
"id": 72962,
|
|
1039
|
-
"indexed": false,
|
|
1040
|
-
"mutability": "mutable",
|
|
1041
|
-
"name": "toRound",
|
|
1042
|
-
"nameLocation": "816:7:87",
|
|
1043
|
-
"nodeType": "VariableDeclaration",
|
|
1044
|
-
"scope": 72966,
|
|
1045
|
-
"src": "811:12:87",
|
|
1046
|
-
"stateVariable": false,
|
|
1047
|
-
"storageLocation": "default",
|
|
1048
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1049
|
-
"typeName": {
|
|
1050
|
-
"id": 72961,
|
|
1051
|
-
"name": "uint",
|
|
1052
|
-
"nodeType": "ElementaryTypeName",
|
|
1053
|
-
"src": "811:4:87",
|
|
1054
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1055
|
-
},
|
|
1056
|
-
"visibility": "internal"
|
|
1057
|
-
},
|
|
1058
|
-
{
|
|
1059
|
-
"constant": false,
|
|
1060
|
-
"id": 72964,
|
|
1061
|
-
"indexed": false,
|
|
1062
|
-
"mutability": "mutable",
|
|
1063
|
-
"name": "tokens",
|
|
1064
|
-
"nameLocation": "830:6:87",
|
|
1065
|
-
"nodeType": "VariableDeclaration",
|
|
1066
|
-
"scope": 72966,
|
|
1067
|
-
"src": "825:11:87",
|
|
1068
|
-
"stateVariable": false,
|
|
1069
|
-
"storageLocation": "default",
|
|
1070
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1071
|
-
"typeName": {
|
|
1072
|
-
"id": 72963,
|
|
1073
|
-
"name": "uint",
|
|
1074
|
-
"nodeType": "ElementaryTypeName",
|
|
1075
|
-
"src": "825:4:87",
|
|
1076
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1077
|
-
},
|
|
1078
|
-
"visibility": "internal"
|
|
1079
|
-
}
|
|
1080
|
-
],
|
|
1081
|
-
"src": "781:56:87"
|
|
1082
|
-
}
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
"id": 72972,
|
|
1086
|
-
"nodeType": "EventDefinition",
|
|
1087
|
-
"src": "843:46:87",
|
|
1088
|
-
"nodes": [],
|
|
1089
|
-
"anonymous": false,
|
|
1090
|
-
"name": "TokensClaimed",
|
|
1091
|
-
"nameLocation": "849:13:87",
|
|
1092
|
-
"parameters": {
|
|
1093
|
-
"id": 72971,
|
|
1094
|
-
"nodeType": "ParameterList",
|
|
1095
|
-
"parameters": [
|
|
1096
|
-
{
|
|
1097
|
-
"constant": false,
|
|
1098
|
-
"id": 72968,
|
|
1099
|
-
"indexed": false,
|
|
1100
|
-
"mutability": "mutable",
|
|
1101
|
-
"name": "bot",
|
|
1102
|
-
"nameLocation": "871:3:87",
|
|
1103
|
-
"nodeType": "VariableDeclaration",
|
|
1104
|
-
"scope": 72972,
|
|
1105
|
-
"src": "863:11:87",
|
|
1106
|
-
"stateVariable": false,
|
|
1107
|
-
"storageLocation": "default",
|
|
1108
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
1109
|
-
"typeName": {
|
|
1110
|
-
"id": 72967,
|
|
1111
|
-
"name": "address",
|
|
1112
|
-
"nodeType": "ElementaryTypeName",
|
|
1113
|
-
"src": "863:7:87",
|
|
1114
|
-
"stateMutability": "nonpayable",
|
|
1115
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
1116
|
-
},
|
|
1117
|
-
"visibility": "internal"
|
|
1118
|
-
},
|
|
1119
|
-
{
|
|
1120
|
-
"constant": false,
|
|
1121
|
-
"id": 72970,
|
|
1122
|
-
"indexed": false,
|
|
1123
|
-
"mutability": "mutable",
|
|
1124
|
-
"name": "tokens",
|
|
1125
|
-
"nameLocation": "881:6:87",
|
|
1126
|
-
"nodeType": "VariableDeclaration",
|
|
1127
|
-
"scope": 72972,
|
|
1128
|
-
"src": "876:11:87",
|
|
1129
|
-
"stateVariable": false,
|
|
1130
|
-
"storageLocation": "default",
|
|
1131
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1132
|
-
"typeName": {
|
|
1133
|
-
"id": 72969,
|
|
1134
|
-
"name": "uint",
|
|
1135
|
-
"nodeType": "ElementaryTypeName",
|
|
1136
|
-
"src": "876:4:87",
|
|
1137
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1138
|
-
},
|
|
1139
|
-
"visibility": "internal"
|
|
1140
|
-
}
|
|
1141
|
-
],
|
|
1142
|
-
"src": "862:26:87"
|
|
1143
|
-
}
|
|
1144
|
-
},
|
|
1145
|
-
{
|
|
1146
|
-
"id": 72980,
|
|
1147
|
-
"nodeType": "FunctionDefinition",
|
|
1148
|
-
"src": "895:74:87",
|
|
1149
|
-
"nodes": [],
|
|
1150
|
-
"functionSelector": "c23c886c",
|
|
1151
|
-
"implemented": false,
|
|
1152
|
-
"kind": "function",
|
|
1153
|
-
"modifiers": [],
|
|
1154
|
-
"name": "storeFirstToTrigger",
|
|
1155
|
-
"nameLocation": "904:19:87",
|
|
1156
|
-
"parameters": {
|
|
1157
|
-
"id": 72978,
|
|
1158
|
-
"nodeType": "ParameterList",
|
|
1159
|
-
"parameters": [
|
|
1160
|
-
{
|
|
1161
|
-
"constant": false,
|
|
1162
|
-
"id": 72975,
|
|
1163
|
-
"mutability": "mutable",
|
|
1164
|
-
"name": "",
|
|
1165
|
-
"nameLocation": "-1:-1:-1",
|
|
1166
|
-
"nodeType": "VariableDeclaration",
|
|
1167
|
-
"scope": 72980,
|
|
1168
|
-
"src": "924:25:87",
|
|
1169
|
-
"stateVariable": false,
|
|
1170
|
-
"storageLocation": "calldata",
|
|
1171
|
-
"typeDescriptions": {
|
|
1172
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_calldata_ptr",
|
|
1173
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1174
|
-
},
|
|
1175
|
-
"typeName": {
|
|
1176
|
-
"id": 72974,
|
|
1177
|
-
"nodeType": "UserDefinedTypeName",
|
|
1178
|
-
"pathNode": {
|
|
1179
|
-
"id": 72973,
|
|
1180
|
-
"name": "TriggeredLimitId",
|
|
1181
|
-
"nodeType": "IdentifierPath",
|
|
1182
|
-
"referencedDeclaration": 72923,
|
|
1183
|
-
"src": "924:16:87"
|
|
1184
|
-
},
|
|
1185
|
-
"referencedDeclaration": 72923,
|
|
1186
|
-
"src": "924:16:87",
|
|
1187
|
-
"typeDescriptions": {
|
|
1188
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
1189
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1190
|
-
}
|
|
1191
|
-
},
|
|
1192
|
-
"visibility": "internal"
|
|
1193
|
-
},
|
|
1194
|
-
{
|
|
1195
|
-
"constant": false,
|
|
1196
|
-
"id": 72977,
|
|
1197
|
-
"mutability": "mutable",
|
|
1198
|
-
"name": "",
|
|
1199
|
-
"nameLocation": "-1:-1:-1",
|
|
1200
|
-
"nodeType": "VariableDeclaration",
|
|
1201
|
-
"scope": 72980,
|
|
1202
|
-
"src": "951:7:87",
|
|
1203
|
-
"stateVariable": false,
|
|
1204
|
-
"storageLocation": "default",
|
|
1205
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
1206
|
-
"typeName": {
|
|
1207
|
-
"id": 72976,
|
|
1208
|
-
"name": "address",
|
|
1209
|
-
"nodeType": "ElementaryTypeName",
|
|
1210
|
-
"src": "951:7:87",
|
|
1211
|
-
"stateMutability": "nonpayable",
|
|
1212
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
1213
|
-
},
|
|
1214
|
-
"visibility": "internal"
|
|
1215
|
-
}
|
|
1216
|
-
],
|
|
1217
|
-
"src": "923:36:87"
|
|
1218
|
-
},
|
|
1219
|
-
"returnParameters": { "id": 72979, "nodeType": "ParameterList", "parameters": [], "src": "968:0:87" },
|
|
1220
|
-
"scope": 73019,
|
|
1221
|
-
"stateMutability": "nonpayable",
|
|
1222
|
-
"virtual": false,
|
|
1223
|
-
"visibility": "external"
|
|
1224
|
-
},
|
|
1225
|
-
{
|
|
1226
|
-
"id": 72986,
|
|
1227
|
-
"nodeType": "FunctionDefinition",
|
|
1228
|
-
"src": "975:63:87",
|
|
1229
|
-
"nodes": [],
|
|
1230
|
-
"functionSelector": "bf654d2b",
|
|
1231
|
-
"implemented": false,
|
|
1232
|
-
"kind": "function",
|
|
1233
|
-
"modifiers": [],
|
|
1234
|
-
"name": "unregisterTrigger",
|
|
1235
|
-
"nameLocation": "984:17:87",
|
|
1236
|
-
"parameters": {
|
|
1237
|
-
"id": 72984,
|
|
1238
|
-
"nodeType": "ParameterList",
|
|
1239
|
-
"parameters": [
|
|
1240
|
-
{
|
|
1241
|
-
"constant": false,
|
|
1242
|
-
"id": 72983,
|
|
1243
|
-
"mutability": "mutable",
|
|
1244
|
-
"name": "",
|
|
1245
|
-
"nameLocation": "-1:-1:-1",
|
|
1246
|
-
"nodeType": "VariableDeclaration",
|
|
1247
|
-
"scope": 72986,
|
|
1248
|
-
"src": "1002:25:87",
|
|
1249
|
-
"stateVariable": false,
|
|
1250
|
-
"storageLocation": "calldata",
|
|
1251
|
-
"typeDescriptions": {
|
|
1252
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_calldata_ptr",
|
|
1253
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1254
|
-
},
|
|
1255
|
-
"typeName": {
|
|
1256
|
-
"id": 72982,
|
|
1257
|
-
"nodeType": "UserDefinedTypeName",
|
|
1258
|
-
"pathNode": {
|
|
1259
|
-
"id": 72981,
|
|
1260
|
-
"name": "TriggeredLimitId",
|
|
1261
|
-
"nodeType": "IdentifierPath",
|
|
1262
|
-
"referencedDeclaration": 72923,
|
|
1263
|
-
"src": "1002:16:87"
|
|
1264
|
-
},
|
|
1265
|
-
"referencedDeclaration": 72923,
|
|
1266
|
-
"src": "1002:16:87",
|
|
1267
|
-
"typeDescriptions": {
|
|
1268
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
1269
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1270
|
-
}
|
|
1271
|
-
},
|
|
1272
|
-
"visibility": "internal"
|
|
1273
|
-
}
|
|
1274
|
-
],
|
|
1275
|
-
"src": "1001:27:87"
|
|
1276
|
-
},
|
|
1277
|
-
"returnParameters": { "id": 72985, "nodeType": "ParameterList", "parameters": [], "src": "1037:0:87" },
|
|
1278
|
-
"scope": 73019,
|
|
1279
|
-
"stateMutability": "nonpayable",
|
|
1280
|
-
"virtual": false,
|
|
1281
|
-
"visibility": "external"
|
|
1282
|
-
},
|
|
1283
|
-
{
|
|
1284
|
-
"id": 72994,
|
|
1285
|
-
"nodeType": "FunctionDefinition",
|
|
1286
|
-
"src": "1044:68:87",
|
|
1287
|
-
"nodes": [],
|
|
1288
|
-
"functionSelector": "afc329ac",
|
|
1289
|
-
"implemented": false,
|
|
1290
|
-
"kind": "function",
|
|
1291
|
-
"modifiers": [],
|
|
1292
|
-
"name": "distributeReward",
|
|
1293
|
-
"nameLocation": "1053:16:87",
|
|
1294
|
-
"parameters": {
|
|
1295
|
-
"id": 72992,
|
|
1296
|
-
"nodeType": "ParameterList",
|
|
1297
|
-
"parameters": [
|
|
1298
|
-
{
|
|
1299
|
-
"constant": false,
|
|
1300
|
-
"id": 72989,
|
|
1301
|
-
"mutability": "mutable",
|
|
1302
|
-
"name": "",
|
|
1303
|
-
"nameLocation": "-1:-1:-1",
|
|
1304
|
-
"nodeType": "VariableDeclaration",
|
|
1305
|
-
"scope": 72994,
|
|
1306
|
-
"src": "1070:25:87",
|
|
1307
|
-
"stateVariable": false,
|
|
1308
|
-
"storageLocation": "calldata",
|
|
1309
|
-
"typeDescriptions": {
|
|
1310
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_calldata_ptr",
|
|
1311
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1312
|
-
},
|
|
1313
|
-
"typeName": {
|
|
1314
|
-
"id": 72988,
|
|
1315
|
-
"nodeType": "UserDefinedTypeName",
|
|
1316
|
-
"pathNode": {
|
|
1317
|
-
"id": 72987,
|
|
1318
|
-
"name": "TriggeredLimitId",
|
|
1319
|
-
"nodeType": "IdentifierPath",
|
|
1320
|
-
"referencedDeclaration": 72923,
|
|
1321
|
-
"src": "1070:16:87"
|
|
1322
|
-
},
|
|
1323
|
-
"referencedDeclaration": 72923,
|
|
1324
|
-
"src": "1070:16:87",
|
|
1325
|
-
"typeDescriptions": {
|
|
1326
|
-
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
1327
|
-
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1328
|
-
}
|
|
1329
|
-
},
|
|
1330
|
-
"visibility": "internal"
|
|
1331
|
-
},
|
|
1332
|
-
{
|
|
1333
|
-
"constant": false,
|
|
1334
|
-
"id": 72991,
|
|
1335
|
-
"mutability": "mutable",
|
|
1336
|
-
"name": "",
|
|
1337
|
-
"nameLocation": "-1:-1:-1",
|
|
1338
|
-
"nodeType": "VariableDeclaration",
|
|
1339
|
-
"scope": 72994,
|
|
1340
|
-
"src": "1097:4:87",
|
|
1341
|
-
"stateVariable": false,
|
|
1342
|
-
"storageLocation": "default",
|
|
1343
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1344
|
-
"typeName": {
|
|
1345
|
-
"id": 72990,
|
|
1346
|
-
"name": "uint",
|
|
1347
|
-
"nodeType": "ElementaryTypeName",
|
|
1348
|
-
"src": "1097:4:87",
|
|
1349
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1350
|
-
},
|
|
1351
|
-
"visibility": "internal"
|
|
1352
|
-
}
|
|
1353
|
-
],
|
|
1354
|
-
"src": "1069:33:87"
|
|
1355
|
-
},
|
|
1356
|
-
"returnParameters": { "id": 72993, "nodeType": "ParameterList", "parameters": [], "src": "1111:0:87" },
|
|
1357
|
-
"scope": 73019,
|
|
1358
|
-
"stateMutability": "nonpayable",
|
|
1359
|
-
"virtual": false,
|
|
1360
|
-
"visibility": "external"
|
|
1361
|
-
},
|
|
1362
|
-
{
|
|
1363
|
-
"id": 73006,
|
|
1364
|
-
"nodeType": "FunctionDefinition",
|
|
1365
|
-
"src": "1118:93:87",
|
|
1366
|
-
"nodes": [],
|
|
1367
|
-
"functionSelector": "d4de65ea",
|
|
1368
|
-
"implemented": false,
|
|
1369
|
-
"kind": "function",
|
|
1370
|
-
"modifiers": [],
|
|
1371
|
-
"name": "openLimitOrderTypes",
|
|
1372
|
-
"nameLocation": "1127:19:87",
|
|
1373
|
-
"parameters": {
|
|
1374
|
-
"id": 73001,
|
|
1375
|
-
"nodeType": "ParameterList",
|
|
1376
|
-
"parameters": [
|
|
1377
|
-
{
|
|
1378
|
-
"constant": false,
|
|
1379
|
-
"id": 72996,
|
|
1380
|
-
"mutability": "mutable",
|
|
1381
|
-
"name": "",
|
|
1382
|
-
"nameLocation": "-1:-1:-1",
|
|
1383
|
-
"nodeType": "VariableDeclaration",
|
|
1384
|
-
"scope": 73006,
|
|
1385
|
-
"src": "1147:7:87",
|
|
1386
|
-
"stateVariable": false,
|
|
1387
|
-
"storageLocation": "default",
|
|
1388
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
1389
|
-
"typeName": {
|
|
1390
|
-
"id": 72995,
|
|
1391
|
-
"name": "address",
|
|
1392
|
-
"nodeType": "ElementaryTypeName",
|
|
1393
|
-
"src": "1147:7:87",
|
|
1394
|
-
"stateMutability": "nonpayable",
|
|
1395
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
1396
|
-
},
|
|
1397
|
-
"visibility": "internal"
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
"constant": false,
|
|
1401
|
-
"id": 72998,
|
|
1402
|
-
"mutability": "mutable",
|
|
1403
|
-
"name": "",
|
|
1404
|
-
"nameLocation": "-1:-1:-1",
|
|
1405
|
-
"nodeType": "VariableDeclaration",
|
|
1406
|
-
"scope": 73006,
|
|
1407
|
-
"src": "1156:4:87",
|
|
1408
|
-
"stateVariable": false,
|
|
1409
|
-
"storageLocation": "default",
|
|
1410
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1411
|
-
"typeName": {
|
|
1412
|
-
"id": 72997,
|
|
1413
|
-
"name": "uint",
|
|
1414
|
-
"nodeType": "ElementaryTypeName",
|
|
1415
|
-
"src": "1156:4:87",
|
|
1416
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1417
|
-
},
|
|
1418
|
-
"visibility": "internal"
|
|
1419
|
-
},
|
|
1420
|
-
{
|
|
1421
|
-
"constant": false,
|
|
1422
|
-
"id": 73000,
|
|
1423
|
-
"mutability": "mutable",
|
|
1424
|
-
"name": "",
|
|
1425
|
-
"nameLocation": "-1:-1:-1",
|
|
1426
|
-
"nodeType": "VariableDeclaration",
|
|
1427
|
-
"scope": 73006,
|
|
1428
|
-
"src": "1162:4:87",
|
|
1429
|
-
"stateVariable": false,
|
|
1430
|
-
"storageLocation": "default",
|
|
1431
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1432
|
-
"typeName": {
|
|
1433
|
-
"id": 72999,
|
|
1434
|
-
"name": "uint",
|
|
1435
|
-
"nodeType": "ElementaryTypeName",
|
|
1436
|
-
"src": "1162:4:87",
|
|
1437
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1438
|
-
},
|
|
1439
|
-
"visibility": "internal"
|
|
1440
|
-
}
|
|
1441
|
-
],
|
|
1442
|
-
"src": "1146:21:87"
|
|
1443
|
-
},
|
|
1444
|
-
"returnParameters": {
|
|
1445
|
-
"id": 73005,
|
|
1446
|
-
"nodeType": "ParameterList",
|
|
1447
|
-
"parameters": [
|
|
1448
|
-
{
|
|
1449
|
-
"constant": false,
|
|
1450
|
-
"id": 73004,
|
|
1451
|
-
"mutability": "mutable",
|
|
1452
|
-
"name": "",
|
|
1453
|
-
"nameLocation": "-1:-1:-1",
|
|
1454
|
-
"nodeType": "VariableDeclaration",
|
|
1455
|
-
"scope": 73006,
|
|
1456
|
-
"src": "1191:18:87",
|
|
1457
|
-
"stateVariable": false,
|
|
1458
|
-
"storageLocation": "default",
|
|
1459
|
-
"typeDescriptions": {
|
|
1460
|
-
"typeIdentifier": "t_enum$_OpenLimitOrderType_$72927",
|
|
1461
|
-
"typeString": "enum IExecute.OpenLimitOrderType"
|
|
1462
|
-
},
|
|
1463
|
-
"typeName": {
|
|
1464
|
-
"id": 73003,
|
|
1465
|
-
"nodeType": "UserDefinedTypeName",
|
|
1466
|
-
"pathNode": {
|
|
1467
|
-
"id": 73002,
|
|
1468
|
-
"name": "OpenLimitOrderType",
|
|
1469
|
-
"nodeType": "IdentifierPath",
|
|
1470
|
-
"referencedDeclaration": 72927,
|
|
1471
|
-
"src": "1191:18:87"
|
|
1472
|
-
},
|
|
1473
|
-
"referencedDeclaration": 72927,
|
|
1474
|
-
"src": "1191:18:87",
|
|
1475
|
-
"typeDescriptions": {
|
|
1476
|
-
"typeIdentifier": "t_enum$_OpenLimitOrderType_$72927",
|
|
1477
|
-
"typeString": "enum IExecute.OpenLimitOrderType"
|
|
1478
|
-
}
|
|
1479
|
-
},
|
|
1480
|
-
"visibility": "internal"
|
|
1481
|
-
}
|
|
1482
|
-
],
|
|
1483
|
-
"src": "1190:20:87"
|
|
1484
|
-
},
|
|
1485
|
-
"scope": 73019,
|
|
1486
|
-
"stateMutability": "view",
|
|
1487
|
-
"virtual": false,
|
|
1488
|
-
"visibility": "external"
|
|
1489
|
-
},
|
|
1490
|
-
{
|
|
1491
|
-
"id": 73018,
|
|
1492
|
-
"nodeType": "FunctionDefinition",
|
|
1493
|
-
"src": "1217:81:87",
|
|
1494
|
-
"nodes": [],
|
|
1495
|
-
"functionSelector": "ec570610",
|
|
1496
|
-
"implemented": false,
|
|
1497
|
-
"kind": "function",
|
|
1498
|
-
"modifiers": [],
|
|
1499
|
-
"name": "setOpenLimitOrderType",
|
|
1500
|
-
"nameLocation": "1226:21:87",
|
|
1501
|
-
"parameters": {
|
|
1502
|
-
"id": 73016,
|
|
1503
|
-
"nodeType": "ParameterList",
|
|
1504
|
-
"parameters": [
|
|
1505
|
-
{
|
|
1506
|
-
"constant": false,
|
|
1507
|
-
"id": 73008,
|
|
1508
|
-
"mutability": "mutable",
|
|
1509
|
-
"name": "",
|
|
1510
|
-
"nameLocation": "-1:-1:-1",
|
|
1511
|
-
"nodeType": "VariableDeclaration",
|
|
1512
|
-
"scope": 73018,
|
|
1513
|
-
"src": "1248:7:87",
|
|
1514
|
-
"stateVariable": false,
|
|
1515
|
-
"storageLocation": "default",
|
|
1516
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
1517
|
-
"typeName": {
|
|
1518
|
-
"id": 73007,
|
|
1519
|
-
"name": "address",
|
|
1520
|
-
"nodeType": "ElementaryTypeName",
|
|
1521
|
-
"src": "1248:7:87",
|
|
1522
|
-
"stateMutability": "nonpayable",
|
|
1523
|
-
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
1524
|
-
},
|
|
1525
|
-
"visibility": "internal"
|
|
1526
|
-
},
|
|
1527
|
-
{
|
|
1528
|
-
"constant": false,
|
|
1529
|
-
"id": 73010,
|
|
1530
|
-
"mutability": "mutable",
|
|
1531
|
-
"name": "",
|
|
1532
|
-
"nameLocation": "-1:-1:-1",
|
|
1533
|
-
"nodeType": "VariableDeclaration",
|
|
1534
|
-
"scope": 73018,
|
|
1535
|
-
"src": "1257:4:87",
|
|
1536
|
-
"stateVariable": false,
|
|
1537
|
-
"storageLocation": "default",
|
|
1538
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1539
|
-
"typeName": {
|
|
1540
|
-
"id": 73009,
|
|
1541
|
-
"name": "uint",
|
|
1542
|
-
"nodeType": "ElementaryTypeName",
|
|
1543
|
-
"src": "1257:4:87",
|
|
1544
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1545
|
-
},
|
|
1546
|
-
"visibility": "internal"
|
|
1547
|
-
},
|
|
1548
|
-
{
|
|
1549
|
-
"constant": false,
|
|
1550
|
-
"id": 73012,
|
|
1551
|
-
"mutability": "mutable",
|
|
1552
|
-
"name": "",
|
|
1553
|
-
"nameLocation": "-1:-1:-1",
|
|
1554
|
-
"nodeType": "VariableDeclaration",
|
|
1555
|
-
"scope": 73018,
|
|
1556
|
-
"src": "1263:4:87",
|
|
1557
|
-
"stateVariable": false,
|
|
1558
|
-
"storageLocation": "default",
|
|
1559
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1560
|
-
"typeName": {
|
|
1561
|
-
"id": 73011,
|
|
1562
|
-
"name": "uint",
|
|
1563
|
-
"nodeType": "ElementaryTypeName",
|
|
1564
|
-
"src": "1263:4:87",
|
|
1565
|
-
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1566
|
-
},
|
|
1567
|
-
"visibility": "internal"
|
|
1568
|
-
},
|
|
1569
|
-
{
|
|
1570
|
-
"constant": false,
|
|
1571
|
-
"id": 73015,
|
|
1572
|
-
"mutability": "mutable",
|
|
1573
|
-
"name": "",
|
|
1574
|
-
"nameLocation": "-1:-1:-1",
|
|
1575
|
-
"nodeType": "VariableDeclaration",
|
|
1576
|
-
"scope": 73018,
|
|
1577
|
-
"src": "1269:18:87",
|
|
1578
|
-
"stateVariable": false,
|
|
1579
|
-
"storageLocation": "default",
|
|
1580
|
-
"typeDescriptions": {
|
|
1581
|
-
"typeIdentifier": "t_enum$_OpenLimitOrderType_$72927",
|
|
1582
|
-
"typeString": "enum IExecute.OpenLimitOrderType"
|
|
1583
|
-
},
|
|
1584
|
-
"typeName": {
|
|
1585
|
-
"id": 73014,
|
|
1586
|
-
"nodeType": "UserDefinedTypeName",
|
|
1587
|
-
"pathNode": {
|
|
1588
|
-
"id": 73013,
|
|
1589
|
-
"name": "OpenLimitOrderType",
|
|
1590
|
-
"nodeType": "IdentifierPath",
|
|
1591
|
-
"referencedDeclaration": 72927,
|
|
1592
|
-
"src": "1269:18:87"
|
|
1593
|
-
},
|
|
1594
|
-
"referencedDeclaration": 72927,
|
|
1595
|
-
"src": "1269:18:87",
|
|
1596
|
-
"typeDescriptions": {
|
|
1597
|
-
"typeIdentifier": "t_enum$_OpenLimitOrderType_$72927",
|
|
1598
|
-
"typeString": "enum IExecute.OpenLimitOrderType"
|
|
1599
|
-
}
|
|
1600
|
-
},
|
|
1601
|
-
"visibility": "internal"
|
|
1602
|
-
}
|
|
1603
|
-
],
|
|
1604
|
-
"src": "1247:41:87"
|
|
1605
|
-
},
|
|
1606
|
-
"returnParameters": { "id": 73017, "nodeType": "ParameterList", "parameters": [], "src": "1297:0:87" },
|
|
1607
|
-
"scope": 73019,
|
|
1608
|
-
"stateMutability": "nonpayable",
|
|
1609
|
-
"virtual": false,
|
|
1610
|
-
"visibility": "external"
|
|
1611
|
-
}
|
|
1612
|
-
],
|
|
1613
|
-
"abstract": false,
|
|
1614
|
-
"baseContracts": [],
|
|
1615
|
-
"contractDependencies": [],
|
|
1616
|
-
"contractKind": "interface",
|
|
1617
|
-
"fullyImplemented": false,
|
|
1618
|
-
"linearizedBaseContracts": [73019],
|
|
1619
|
-
"name": "IExecute",
|
|
1620
|
-
"nameLocation": "98:8:87",
|
|
1621
|
-
"scope": 73020,
|
|
1622
|
-
"usedErrors": []
|
|
1623
|
-
}
|
|
1624
|
-
],
|
|
1625
|
-
"license": "MIT"
|
|
1626
|
-
},
|
|
1627
|
-
"id": 87
|
|
1628
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"abi": [
|
|
3
|
+
{
|
|
4
|
+
"type": "function",
|
|
5
|
+
"name": "distributeReward",
|
|
6
|
+
"inputs": [
|
|
7
|
+
{
|
|
8
|
+
"name": "",
|
|
9
|
+
"type": "tuple",
|
|
10
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
11
|
+
"components": [
|
|
12
|
+
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
13
|
+
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
14
|
+
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
15
|
+
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
{ "name": "", "type": "uint256", "internalType": "uint256" }
|
|
19
|
+
],
|
|
20
|
+
"outputs": [],
|
|
21
|
+
"stateMutability": "nonpayable"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "function",
|
|
25
|
+
"name": "openLimitOrderTypes",
|
|
26
|
+
"inputs": [
|
|
27
|
+
{ "name": "", "type": "address", "internalType": "address" },
|
|
28
|
+
{ "name": "", "type": "uint256", "internalType": "uint256" },
|
|
29
|
+
{ "name": "", "type": "uint256", "internalType": "uint256" }
|
|
30
|
+
],
|
|
31
|
+
"outputs": [{ "name": "", "type": "uint8", "internalType": "enum IExecute.OpenLimitOrderType" }],
|
|
32
|
+
"stateMutability": "view"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "function",
|
|
36
|
+
"name": "setOpenLimitOrderType",
|
|
37
|
+
"inputs": [
|
|
38
|
+
{ "name": "", "type": "address", "internalType": "address" },
|
|
39
|
+
{ "name": "", "type": "uint256", "internalType": "uint256" },
|
|
40
|
+
{ "name": "", "type": "uint256", "internalType": "uint256" },
|
|
41
|
+
{ "name": "", "type": "uint8", "internalType": "enum IExecute.OpenLimitOrderType" }
|
|
42
|
+
],
|
|
43
|
+
"outputs": [],
|
|
44
|
+
"stateMutability": "nonpayable"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "function",
|
|
48
|
+
"name": "storeFirstToTrigger",
|
|
49
|
+
"inputs": [
|
|
50
|
+
{
|
|
51
|
+
"name": "",
|
|
52
|
+
"type": "tuple",
|
|
53
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
54
|
+
"components": [
|
|
55
|
+
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
56
|
+
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
57
|
+
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
58
|
+
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{ "name": "", "type": "address", "internalType": "address" }
|
|
62
|
+
],
|
|
63
|
+
"outputs": [],
|
|
64
|
+
"stateMutability": "nonpayable"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "function",
|
|
68
|
+
"name": "unregisterTrigger",
|
|
69
|
+
"inputs": [
|
|
70
|
+
{
|
|
71
|
+
"name": "",
|
|
72
|
+
"type": "tuple",
|
|
73
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
74
|
+
"components": [
|
|
75
|
+
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
76
|
+
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
77
|
+
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
78
|
+
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"outputs": [],
|
|
83
|
+
"stateMutability": "nonpayable"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "event",
|
|
87
|
+
"name": "NumberUpdated",
|
|
88
|
+
"inputs": [
|
|
89
|
+
{ "name": "name", "type": "string", "indexed": false, "internalType": "string" },
|
|
90
|
+
{ "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }
|
|
91
|
+
],
|
|
92
|
+
"anonymous": false
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "event",
|
|
96
|
+
"name": "PercentagesUpdated",
|
|
97
|
+
"inputs": [{ "name": "firstP", "type": "uint256", "indexed": false, "internalType": "uint256" }],
|
|
98
|
+
"anonymous": false
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "event",
|
|
102
|
+
"name": "PoolTokensClaimed",
|
|
103
|
+
"inputs": [
|
|
104
|
+
{ "name": "bot", "type": "address", "indexed": false, "internalType": "address" },
|
|
105
|
+
{ "name": "fromRound", "type": "uint256", "indexed": false, "internalType": "uint256" },
|
|
106
|
+
{ "name": "toRound", "type": "uint256", "indexed": false, "internalType": "uint256" },
|
|
107
|
+
{ "name": "tokens", "type": "uint256", "indexed": false, "internalType": "uint256" }
|
|
108
|
+
],
|
|
109
|
+
"anonymous": false
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "event",
|
|
113
|
+
"name": "TokensClaimed",
|
|
114
|
+
"inputs": [
|
|
115
|
+
{ "name": "bot", "type": "address", "indexed": false, "internalType": "address" },
|
|
116
|
+
{ "name": "tokens", "type": "uint256", "indexed": false, "internalType": "uint256" }
|
|
117
|
+
],
|
|
118
|
+
"anonymous": false
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "event",
|
|
122
|
+
"name": "TriggerRewarded",
|
|
123
|
+
"inputs": [
|
|
124
|
+
{
|
|
125
|
+
"name": "id",
|
|
126
|
+
"type": "tuple",
|
|
127
|
+
"indexed": false,
|
|
128
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
129
|
+
"components": [
|
|
130
|
+
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
131
|
+
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
132
|
+
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
133
|
+
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{ "name": "reward", "type": "uint256", "indexed": false, "internalType": "uint256" }
|
|
137
|
+
],
|
|
138
|
+
"anonymous": false
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"type": "event",
|
|
142
|
+
"name": "TriggerUnregistered",
|
|
143
|
+
"inputs": [
|
|
144
|
+
{
|
|
145
|
+
"name": "id",
|
|
146
|
+
"type": "tuple",
|
|
147
|
+
"indexed": false,
|
|
148
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
149
|
+
"components": [
|
|
150
|
+
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
151
|
+
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
152
|
+
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
153
|
+
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"anonymous": false
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "event",
|
|
161
|
+
"name": "TriggeredFirst",
|
|
162
|
+
"inputs": [
|
|
163
|
+
{
|
|
164
|
+
"name": "id",
|
|
165
|
+
"type": "tuple",
|
|
166
|
+
"indexed": false,
|
|
167
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
168
|
+
"components": [
|
|
169
|
+
{ "name": "trader", "type": "address", "internalType": "address" },
|
|
170
|
+
{ "name": "pairIndex", "type": "uint256", "internalType": "uint256" },
|
|
171
|
+
{ "name": "index", "type": "uint256", "internalType": "uint256" },
|
|
172
|
+
{ "name": "order", "type": "uint8", "internalType": "enum ITradingStorage.LimitOrder" }
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{ "name": "bot", "type": "address", "indexed": false, "internalType": "address" }
|
|
176
|
+
],
|
|
177
|
+
"anonymous": false
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"bytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
|
|
181
|
+
"deployedBytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
|
|
182
|
+
"methodIdentifiers": {
|
|
183
|
+
"distributeReward((address,uint256,uint256,uint8),uint256)": "afc329ac",
|
|
184
|
+
"openLimitOrderTypes(address,uint256,uint256)": "d4de65ea",
|
|
185
|
+
"setOpenLimitOrderType(address,uint256,uint256,uint8)": "ec570610",
|
|
186
|
+
"storeFirstToTrigger((address,uint256,uint256,uint8),address)": "c23c886c",
|
|
187
|
+
"unregisterTrigger((address,uint256,uint256,uint8))": "bf654d2b"
|
|
188
|
+
},
|
|
189
|
+
"rawMetadata": "{\"compiler\":{\"version\":\"0.8.7+commit.e28d00a7\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"NumberUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"firstP\",\"type\":\"uint256\"}],\"name\":\"PercentagesUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"bot\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fromRound\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"toRound\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"}],\"name\":\"PoolTokensClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"bot\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"}],\"name\":\"TokensClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"indexed\":false,\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"id\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"reward\",\"type\":\"uint256\"}],\"name\":\"TriggerRewarded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"indexed\":false,\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"id\",\"type\":\"tuple\"}],\"name\":\"TriggerUnregistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"indexed\":false,\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"id\",\"type\":\"tuple\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"bot\",\"type\":\"address\"}],\"name\":\"TriggeredFirst\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"distributeReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"openLimitOrderTypes\",\"outputs\":[{\"internalType\":\"enum IExecute.OpenLimitOrderType\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"enum IExecute.OpenLimitOrderType\",\"name\":\"\",\"type\":\"uint8\"}],\"name\":\"setOpenLimitOrderType\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"storeFirstToTrigger\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"trader\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"pairIndex\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"},{\"internalType\":\"enum ITradingStorage.LimitOrder\",\"name\":\"order\",\"type\":\"uint8\"}],\"internalType\":\"struct IExecute.TriggeredLimitId\",\"name\":\"\",\"type\":\"tuple\"}],\"name\":\"unregisterTrigger\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/interfaces/IExecute.sol\":\"IExecute\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@chainlink/=lib/chainlink/\",\":@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":chainlink/=lib/chainlink/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\",\":pyth-sdk-solidity/=lib/pyth-sdk-solidity/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://bd39944e8fc06be6dbe2dd1d8449b5336e23c6a7ba3e8e9ae5ae0f37f35283f5\",\"dweb:/ipfs/QmPV3FGYjVwvKSgAXKUN3r9T9GwniZz83CxBpM7vyj2G53\"]},\"src/interfaces/ICallbacks.sol\":{\"keccak256\":\"0xf752442ca8254c91ace7ca3e7c6360783cfd9019ce50f3354c45b7e73268f6e8\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d43dbc8029336d54a698810f532ce5ccdb9957db24cfbbefd56d65837001743f\",\"dweb:/ipfs/QmSEfht6aZ7McGJJPqBeorSdYve3NpnMvCwt5vX1VKp6pu\"]},\"src/interfaces/IExecute.sol\":{\"keccak256\":\"0x189f78c460465dcdaab444248da17059e96e76e862bb08540e7054296512b9b4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c757cbde37e2932a25fca5ed1ef8fdd49cf1521b8d9f1cfa1d512d1e94862a3b\",\"dweb:/ipfs/QmVvbrLcDBFo9oMdNqaYTmhhtgnH2WzgX8nbMTKuJU6Y1m\"]},\"src/interfaces/IPairStorage.sol\":{\"keccak256\":\"0xe21543cdbe3b6c526c3d13178cc0550d3f310d3d3d0fda72949697c5c3c6ca2a\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://57ae213d0c07d7206ddafbd04e45e76f5f10ab1c8c68082faff345d271c7ac7d\",\"dweb:/ipfs/QmQGev8sZeFeTge53USh7dyMS3jVWgvr3VVPDFqnnNRqti\"]},\"src/interfaces/IPausable.sol\":{\"keccak256\":\"0x0cf760757842bd332ce27fac78b8dc0f7a36406529a213954bc463c2be174ecd\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://c69ee15b814b76caed732b47b729d1c2b361ed158b85220da30ea9aac893ad0e\",\"dweb:/ipfs/QmbF9HWVA7DCtNzK2LkRdvhMV1TuqTf9dzUzAKwQadHZnY\"]},\"src/interfaces/IPriceAggregator.sol\":{\"keccak256\":\"0x56ebae9f8fcf1e1674eafc7ab4397034d6f5304c3a8b8c688014445887ed2c5e\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://d328b9fbdbd90afb4740dff095996555d14a2cdb67849ccffe796f61a29ff2ad\",\"dweb:/ipfs/QmZZNbj6gfLvrKhdT8qghCUTRRWx26UTagirxXtqdJWTy7\"]},\"src/interfaces/ITradingStorage.sol\":{\"keccak256\":\"0x8d11251a316c5ef1808bfd4a67421fc121aa7bd32f87aec028c9078d5e2b51ae\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ae714dca1f1584b94b8b2efe27e63c7d7fb23062700fcfbdda515bf51256294f\",\"dweb:/ipfs/QmZEoAZ28MDGsfXh48EBBJGAW9XKGpbPEPaQAzEts9fnja\"]},\"src/interfaces/IVaultManager.sol\":{\"keccak256\":\"0x155dfef9cee4095d62850c4175988ea1e58d666e0cef4a56784b5eb22945e6a4\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ca48d24e6b286737c8644877c0317a2c81e4ffe15eed3b2a47a7494700581b05\",\"dweb:/ipfs/Qmct1V584KcWZTtKZrU6DK444nHs7PRi3r8DiHNYesh9eZ\"]}},\"version\":1}",
|
|
190
|
+
"metadata": {
|
|
191
|
+
"compiler": { "version": "0.8.7+commit.e28d00a7" },
|
|
192
|
+
"language": "Solidity",
|
|
193
|
+
"output": {
|
|
194
|
+
"abi": [
|
|
195
|
+
{
|
|
196
|
+
"inputs": [
|
|
197
|
+
{ "internalType": "string", "name": "name", "type": "string", "indexed": false },
|
|
198
|
+
{ "internalType": "uint256", "name": "value", "type": "uint256", "indexed": false }
|
|
199
|
+
],
|
|
200
|
+
"type": "event",
|
|
201
|
+
"name": "NumberUpdated",
|
|
202
|
+
"anonymous": false
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"inputs": [{ "internalType": "uint256", "name": "firstP", "type": "uint256", "indexed": false }],
|
|
206
|
+
"type": "event",
|
|
207
|
+
"name": "PercentagesUpdated",
|
|
208
|
+
"anonymous": false
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"inputs": [
|
|
212
|
+
{ "internalType": "address", "name": "bot", "type": "address", "indexed": false },
|
|
213
|
+
{ "internalType": "uint256", "name": "fromRound", "type": "uint256", "indexed": false },
|
|
214
|
+
{ "internalType": "uint256", "name": "toRound", "type": "uint256", "indexed": false },
|
|
215
|
+
{ "internalType": "uint256", "name": "tokens", "type": "uint256", "indexed": false }
|
|
216
|
+
],
|
|
217
|
+
"type": "event",
|
|
218
|
+
"name": "PoolTokensClaimed",
|
|
219
|
+
"anonymous": false
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"inputs": [
|
|
223
|
+
{ "internalType": "address", "name": "bot", "type": "address", "indexed": false },
|
|
224
|
+
{ "internalType": "uint256", "name": "tokens", "type": "uint256", "indexed": false }
|
|
225
|
+
],
|
|
226
|
+
"type": "event",
|
|
227
|
+
"name": "TokensClaimed",
|
|
228
|
+
"anonymous": false
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"inputs": [
|
|
232
|
+
{
|
|
233
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
234
|
+
"name": "id",
|
|
235
|
+
"type": "tuple",
|
|
236
|
+
"components": [
|
|
237
|
+
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
238
|
+
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
239
|
+
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
240
|
+
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
241
|
+
],
|
|
242
|
+
"indexed": false
|
|
243
|
+
},
|
|
244
|
+
{ "internalType": "uint256", "name": "reward", "type": "uint256", "indexed": false }
|
|
245
|
+
],
|
|
246
|
+
"type": "event",
|
|
247
|
+
"name": "TriggerRewarded",
|
|
248
|
+
"anonymous": false
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"inputs": [
|
|
252
|
+
{
|
|
253
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
254
|
+
"name": "id",
|
|
255
|
+
"type": "tuple",
|
|
256
|
+
"components": [
|
|
257
|
+
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
258
|
+
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
259
|
+
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
260
|
+
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
261
|
+
],
|
|
262
|
+
"indexed": false
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
"type": "event",
|
|
266
|
+
"name": "TriggerUnregistered",
|
|
267
|
+
"anonymous": false
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"inputs": [
|
|
271
|
+
{
|
|
272
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
273
|
+
"name": "id",
|
|
274
|
+
"type": "tuple",
|
|
275
|
+
"components": [
|
|
276
|
+
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
277
|
+
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
278
|
+
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
279
|
+
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
280
|
+
],
|
|
281
|
+
"indexed": false
|
|
282
|
+
},
|
|
283
|
+
{ "internalType": "address", "name": "bot", "type": "address", "indexed": false }
|
|
284
|
+
],
|
|
285
|
+
"type": "event",
|
|
286
|
+
"name": "TriggeredFirst",
|
|
287
|
+
"anonymous": false
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"inputs": [
|
|
291
|
+
{
|
|
292
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
293
|
+
"name": "",
|
|
294
|
+
"type": "tuple",
|
|
295
|
+
"components": [
|
|
296
|
+
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
297
|
+
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
298
|
+
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
299
|
+
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
300
|
+
]
|
|
301
|
+
},
|
|
302
|
+
{ "internalType": "uint256", "name": "", "type": "uint256" }
|
|
303
|
+
],
|
|
304
|
+
"stateMutability": "nonpayable",
|
|
305
|
+
"type": "function",
|
|
306
|
+
"name": "distributeReward"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"inputs": [
|
|
310
|
+
{ "internalType": "address", "name": "", "type": "address" },
|
|
311
|
+
{ "internalType": "uint256", "name": "", "type": "uint256" },
|
|
312
|
+
{ "internalType": "uint256", "name": "", "type": "uint256" }
|
|
313
|
+
],
|
|
314
|
+
"stateMutability": "view",
|
|
315
|
+
"type": "function",
|
|
316
|
+
"name": "openLimitOrderTypes",
|
|
317
|
+
"outputs": [{ "internalType": "enum IExecute.OpenLimitOrderType", "name": "", "type": "uint8" }]
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"inputs": [
|
|
321
|
+
{ "internalType": "address", "name": "", "type": "address" },
|
|
322
|
+
{ "internalType": "uint256", "name": "", "type": "uint256" },
|
|
323
|
+
{ "internalType": "uint256", "name": "", "type": "uint256" },
|
|
324
|
+
{ "internalType": "enum IExecute.OpenLimitOrderType", "name": "", "type": "uint8" }
|
|
325
|
+
],
|
|
326
|
+
"stateMutability": "nonpayable",
|
|
327
|
+
"type": "function",
|
|
328
|
+
"name": "setOpenLimitOrderType"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"inputs": [
|
|
332
|
+
{
|
|
333
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
334
|
+
"name": "",
|
|
335
|
+
"type": "tuple",
|
|
336
|
+
"components": [
|
|
337
|
+
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
338
|
+
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
339
|
+
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
340
|
+
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
341
|
+
]
|
|
342
|
+
},
|
|
343
|
+
{ "internalType": "address", "name": "", "type": "address" }
|
|
344
|
+
],
|
|
345
|
+
"stateMutability": "nonpayable",
|
|
346
|
+
"type": "function",
|
|
347
|
+
"name": "storeFirstToTrigger"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"inputs": [
|
|
351
|
+
{
|
|
352
|
+
"internalType": "struct IExecute.TriggeredLimitId",
|
|
353
|
+
"name": "",
|
|
354
|
+
"type": "tuple",
|
|
355
|
+
"components": [
|
|
356
|
+
{ "internalType": "address", "name": "trader", "type": "address" },
|
|
357
|
+
{ "internalType": "uint256", "name": "pairIndex", "type": "uint256" },
|
|
358
|
+
{ "internalType": "uint256", "name": "index", "type": "uint256" },
|
|
359
|
+
{ "internalType": "enum ITradingStorage.LimitOrder", "name": "order", "type": "uint8" }
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"stateMutability": "nonpayable",
|
|
364
|
+
"type": "function",
|
|
365
|
+
"name": "unregisterTrigger"
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"devdoc": { "kind": "dev", "methods": {}, "version": 1 },
|
|
369
|
+
"userdoc": { "kind": "user", "methods": {}, "version": 1 }
|
|
370
|
+
},
|
|
371
|
+
"settings": {
|
|
372
|
+
"remappings": [
|
|
373
|
+
"@chainlink/=lib/chainlink/",
|
|
374
|
+
"@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
|
|
375
|
+
"@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
|
|
376
|
+
"chainlink/=lib/chainlink/",
|
|
377
|
+
"ds-test/=lib/forge-std/lib/ds-test/src/",
|
|
378
|
+
"erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
|
|
379
|
+
"forge-std/=lib/forge-std/src/",
|
|
380
|
+
"openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
|
|
381
|
+
"openzeppelin-contracts/=lib/openzeppelin-contracts/",
|
|
382
|
+
"openzeppelin/=lib/openzeppelin-contracts/contracts/",
|
|
383
|
+
"pyth-sdk-solidity/=lib/pyth-sdk-solidity/"
|
|
384
|
+
],
|
|
385
|
+
"optimizer": { "enabled": true, "runs": 200 },
|
|
386
|
+
"metadata": { "bytecodeHash": "ipfs" },
|
|
387
|
+
"compilationTarget": { "src/interfaces/IExecute.sol": "IExecute" },
|
|
388
|
+
"libraries": {}
|
|
389
|
+
},
|
|
390
|
+
"sources": {
|
|
391
|
+
"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol": {
|
|
392
|
+
"keccak256": "0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305",
|
|
393
|
+
"urls": [
|
|
394
|
+
"bzz-raw://bd39944e8fc06be6dbe2dd1d8449b5336e23c6a7ba3e8e9ae5ae0f37f35283f5",
|
|
395
|
+
"dweb:/ipfs/QmPV3FGYjVwvKSgAXKUN3r9T9GwniZz83CxBpM7vyj2G53"
|
|
396
|
+
],
|
|
397
|
+
"license": "MIT"
|
|
398
|
+
},
|
|
399
|
+
"src/interfaces/ICallbacks.sol": {
|
|
400
|
+
"keccak256": "0xf752442ca8254c91ace7ca3e7c6360783cfd9019ce50f3354c45b7e73268f6e8",
|
|
401
|
+
"urls": [
|
|
402
|
+
"bzz-raw://d43dbc8029336d54a698810f532ce5ccdb9957db24cfbbefd56d65837001743f",
|
|
403
|
+
"dweb:/ipfs/QmSEfht6aZ7McGJJPqBeorSdYve3NpnMvCwt5vX1VKp6pu"
|
|
404
|
+
],
|
|
405
|
+
"license": "MIT"
|
|
406
|
+
},
|
|
407
|
+
"src/interfaces/IExecute.sol": {
|
|
408
|
+
"keccak256": "0x189f78c460465dcdaab444248da17059e96e76e862bb08540e7054296512b9b4",
|
|
409
|
+
"urls": [
|
|
410
|
+
"bzz-raw://c757cbde37e2932a25fca5ed1ef8fdd49cf1521b8d9f1cfa1d512d1e94862a3b",
|
|
411
|
+
"dweb:/ipfs/QmVvbrLcDBFo9oMdNqaYTmhhtgnH2WzgX8nbMTKuJU6Y1m"
|
|
412
|
+
],
|
|
413
|
+
"license": "MIT"
|
|
414
|
+
},
|
|
415
|
+
"src/interfaces/IPairStorage.sol": {
|
|
416
|
+
"keccak256": "0xe21543cdbe3b6c526c3d13178cc0550d3f310d3d3d0fda72949697c5c3c6ca2a",
|
|
417
|
+
"urls": [
|
|
418
|
+
"bzz-raw://57ae213d0c07d7206ddafbd04e45e76f5f10ab1c8c68082faff345d271c7ac7d",
|
|
419
|
+
"dweb:/ipfs/QmQGev8sZeFeTge53USh7dyMS3jVWgvr3VVPDFqnnNRqti"
|
|
420
|
+
],
|
|
421
|
+
"license": "MIT"
|
|
422
|
+
},
|
|
423
|
+
"src/interfaces/IPausable.sol": {
|
|
424
|
+
"keccak256": "0x0cf760757842bd332ce27fac78b8dc0f7a36406529a213954bc463c2be174ecd",
|
|
425
|
+
"urls": [
|
|
426
|
+
"bzz-raw://c69ee15b814b76caed732b47b729d1c2b361ed158b85220da30ea9aac893ad0e",
|
|
427
|
+
"dweb:/ipfs/QmbF9HWVA7DCtNzK2LkRdvhMV1TuqTf9dzUzAKwQadHZnY"
|
|
428
|
+
],
|
|
429
|
+
"license": "MIT"
|
|
430
|
+
},
|
|
431
|
+
"src/interfaces/IPriceAggregator.sol": {
|
|
432
|
+
"keccak256": "0x56ebae9f8fcf1e1674eafc7ab4397034d6f5304c3a8b8c688014445887ed2c5e",
|
|
433
|
+
"urls": [
|
|
434
|
+
"bzz-raw://d328b9fbdbd90afb4740dff095996555d14a2cdb67849ccffe796f61a29ff2ad",
|
|
435
|
+
"dweb:/ipfs/QmZZNbj6gfLvrKhdT8qghCUTRRWx26UTagirxXtqdJWTy7"
|
|
436
|
+
],
|
|
437
|
+
"license": "MIT"
|
|
438
|
+
},
|
|
439
|
+
"src/interfaces/ITradingStorage.sol": {
|
|
440
|
+
"keccak256": "0x8d11251a316c5ef1808bfd4a67421fc121aa7bd32f87aec028c9078d5e2b51ae",
|
|
441
|
+
"urls": [
|
|
442
|
+
"bzz-raw://ae714dca1f1584b94b8b2efe27e63c7d7fb23062700fcfbdda515bf51256294f",
|
|
443
|
+
"dweb:/ipfs/QmZEoAZ28MDGsfXh48EBBJGAW9XKGpbPEPaQAzEts9fnja"
|
|
444
|
+
],
|
|
445
|
+
"license": "MIT"
|
|
446
|
+
},
|
|
447
|
+
"src/interfaces/IVaultManager.sol": {
|
|
448
|
+
"keccak256": "0x155dfef9cee4095d62850c4175988ea1e58d666e0cef4a56784b5eb22945e6a4",
|
|
449
|
+
"urls": [
|
|
450
|
+
"bzz-raw://ca48d24e6b286737c8644877c0317a2c81e4ffe15eed3b2a47a7494700581b05",
|
|
451
|
+
"dweb:/ipfs/Qmct1V584KcWZTtKZrU6DK444nHs7PRi3r8DiHNYesh9eZ"
|
|
452
|
+
],
|
|
453
|
+
"license": "MIT"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"version": 1
|
|
457
|
+
},
|
|
458
|
+
"ast": {
|
|
459
|
+
"absolutePath": "src/interfaces/IExecute.sol",
|
|
460
|
+
"id": 73020,
|
|
461
|
+
"exportedSymbols": { "IExecute": [73019], "ITradingStorage": [74531] },
|
|
462
|
+
"nodeType": "SourceUnit",
|
|
463
|
+
"src": "32:1269:87",
|
|
464
|
+
"nodes": [
|
|
465
|
+
{
|
|
466
|
+
"id": 72907,
|
|
467
|
+
"nodeType": "PragmaDirective",
|
|
468
|
+
"src": "32:22:87",
|
|
469
|
+
"nodes": [],
|
|
470
|
+
"literals": ["solidity", "0.8", ".7"]
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"id": 72908,
|
|
474
|
+
"nodeType": "ImportDirective",
|
|
475
|
+
"src": "55:31:87",
|
|
476
|
+
"nodes": [],
|
|
477
|
+
"absolutePath": "src/interfaces/ITradingStorage.sol",
|
|
478
|
+
"file": "./ITradingStorage.sol",
|
|
479
|
+
"nameLocation": "-1:-1:-1",
|
|
480
|
+
"scope": 73020,
|
|
481
|
+
"sourceUnit": 74532,
|
|
482
|
+
"symbolAliases": [],
|
|
483
|
+
"unitAlias": ""
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"id": 73019,
|
|
487
|
+
"nodeType": "ContractDefinition",
|
|
488
|
+
"src": "88:1212:87",
|
|
489
|
+
"nodes": [
|
|
490
|
+
{
|
|
491
|
+
"id": 72913,
|
|
492
|
+
"nodeType": "StructDefinition",
|
|
493
|
+
"src": "138:72:87",
|
|
494
|
+
"nodes": [],
|
|
495
|
+
"canonicalName": "IExecute.TriggeredLimit",
|
|
496
|
+
"members": [
|
|
497
|
+
{
|
|
498
|
+
"constant": false,
|
|
499
|
+
"id": 72910,
|
|
500
|
+
"mutability": "mutable",
|
|
501
|
+
"name": "first",
|
|
502
|
+
"nameLocation": "178:5:87",
|
|
503
|
+
"nodeType": "VariableDeclaration",
|
|
504
|
+
"scope": 72913,
|
|
505
|
+
"src": "170:13:87",
|
|
506
|
+
"stateVariable": false,
|
|
507
|
+
"storageLocation": "default",
|
|
508
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
509
|
+
"typeName": {
|
|
510
|
+
"id": 72909,
|
|
511
|
+
"name": "address",
|
|
512
|
+
"nodeType": "ElementaryTypeName",
|
|
513
|
+
"src": "170:7:87",
|
|
514
|
+
"stateMutability": "nonpayable",
|
|
515
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
516
|
+
},
|
|
517
|
+
"visibility": "internal"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"constant": false,
|
|
521
|
+
"id": 72912,
|
|
522
|
+
"mutability": "mutable",
|
|
523
|
+
"name": "block",
|
|
524
|
+
"nameLocation": "198:5:87",
|
|
525
|
+
"nodeType": "VariableDeclaration",
|
|
526
|
+
"scope": 72913,
|
|
527
|
+
"src": "193:10:87",
|
|
528
|
+
"stateVariable": false,
|
|
529
|
+
"storageLocation": "default",
|
|
530
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
531
|
+
"typeName": {
|
|
532
|
+
"id": 72911,
|
|
533
|
+
"name": "uint",
|
|
534
|
+
"nodeType": "ElementaryTypeName",
|
|
535
|
+
"src": "193:4:87",
|
|
536
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
537
|
+
},
|
|
538
|
+
"visibility": "internal"
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
"name": "TriggeredLimit",
|
|
542
|
+
"nameLocation": "145:14:87",
|
|
543
|
+
"scope": 73019,
|
|
544
|
+
"visibility": "public"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
"id": 72923,
|
|
548
|
+
"nodeType": "StructDefinition",
|
|
549
|
+
"src": "220:141:87",
|
|
550
|
+
"nodes": [],
|
|
551
|
+
"canonicalName": "IExecute.TriggeredLimitId",
|
|
552
|
+
"members": [
|
|
553
|
+
{
|
|
554
|
+
"constant": false,
|
|
555
|
+
"id": 72915,
|
|
556
|
+
"mutability": "mutable",
|
|
557
|
+
"name": "trader",
|
|
558
|
+
"nameLocation": "262:6:87",
|
|
559
|
+
"nodeType": "VariableDeclaration",
|
|
560
|
+
"scope": 72923,
|
|
561
|
+
"src": "254:14:87",
|
|
562
|
+
"stateVariable": false,
|
|
563
|
+
"storageLocation": "default",
|
|
564
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
565
|
+
"typeName": {
|
|
566
|
+
"id": 72914,
|
|
567
|
+
"name": "address",
|
|
568
|
+
"nodeType": "ElementaryTypeName",
|
|
569
|
+
"src": "254:7:87",
|
|
570
|
+
"stateMutability": "nonpayable",
|
|
571
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
572
|
+
},
|
|
573
|
+
"visibility": "internal"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"constant": false,
|
|
577
|
+
"id": 72917,
|
|
578
|
+
"mutability": "mutable",
|
|
579
|
+
"name": "pairIndex",
|
|
580
|
+
"nameLocation": "283:9:87",
|
|
581
|
+
"nodeType": "VariableDeclaration",
|
|
582
|
+
"scope": 72923,
|
|
583
|
+
"src": "278:14:87",
|
|
584
|
+
"stateVariable": false,
|
|
585
|
+
"storageLocation": "default",
|
|
586
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
587
|
+
"typeName": {
|
|
588
|
+
"id": 72916,
|
|
589
|
+
"name": "uint",
|
|
590
|
+
"nodeType": "ElementaryTypeName",
|
|
591
|
+
"src": "278:4:87",
|
|
592
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
593
|
+
},
|
|
594
|
+
"visibility": "internal"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"constant": false,
|
|
598
|
+
"id": 72919,
|
|
599
|
+
"mutability": "mutable",
|
|
600
|
+
"name": "index",
|
|
601
|
+
"nameLocation": "307:5:87",
|
|
602
|
+
"nodeType": "VariableDeclaration",
|
|
603
|
+
"scope": 72923,
|
|
604
|
+
"src": "302:10:87",
|
|
605
|
+
"stateVariable": false,
|
|
606
|
+
"storageLocation": "default",
|
|
607
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
608
|
+
"typeName": {
|
|
609
|
+
"id": 72918,
|
|
610
|
+
"name": "uint",
|
|
611
|
+
"nodeType": "ElementaryTypeName",
|
|
612
|
+
"src": "302:4:87",
|
|
613
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
614
|
+
},
|
|
615
|
+
"visibility": "internal"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"constant": false,
|
|
619
|
+
"id": 72922,
|
|
620
|
+
"mutability": "mutable",
|
|
621
|
+
"name": "order",
|
|
622
|
+
"nameLocation": "349:5:87",
|
|
623
|
+
"nodeType": "VariableDeclaration",
|
|
624
|
+
"scope": 72923,
|
|
625
|
+
"src": "322:32:87",
|
|
626
|
+
"stateVariable": false,
|
|
627
|
+
"storageLocation": "default",
|
|
628
|
+
"typeDescriptions": {
|
|
629
|
+
"typeIdentifier": "t_enum$_LimitOrder_$74006",
|
|
630
|
+
"typeString": "enum ITradingStorage.LimitOrder"
|
|
631
|
+
},
|
|
632
|
+
"typeName": {
|
|
633
|
+
"id": 72921,
|
|
634
|
+
"nodeType": "UserDefinedTypeName",
|
|
635
|
+
"pathNode": {
|
|
636
|
+
"id": 72920,
|
|
637
|
+
"name": "ITradingStorage.LimitOrder",
|
|
638
|
+
"nodeType": "IdentifierPath",
|
|
639
|
+
"referencedDeclaration": 74006,
|
|
640
|
+
"src": "322:26:87"
|
|
641
|
+
},
|
|
642
|
+
"referencedDeclaration": 74006,
|
|
643
|
+
"src": "322:26:87",
|
|
644
|
+
"typeDescriptions": {
|
|
645
|
+
"typeIdentifier": "t_enum$_LimitOrder_$74006",
|
|
646
|
+
"typeString": "enum ITradingStorage.LimitOrder"
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"visibility": "internal"
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
"name": "TriggeredLimitId",
|
|
653
|
+
"nameLocation": "227:16:87",
|
|
654
|
+
"scope": 73019,
|
|
655
|
+
"visibility": "public"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"id": 72927,
|
|
659
|
+
"nodeType": "EnumDefinition",
|
|
660
|
+
"src": "367:105:87",
|
|
661
|
+
"nodes": [],
|
|
662
|
+
"canonicalName": "IExecute.OpenLimitOrderType",
|
|
663
|
+
"members": [
|
|
664
|
+
{ "id": 72924, "name": "MARKET", "nameLocation": "401:6:87", "nodeType": "EnumValue", "src": "401:6:87" },
|
|
665
|
+
{
|
|
666
|
+
"id": 72925,
|
|
667
|
+
"name": "REVERSAL",
|
|
668
|
+
"nameLocation": "417:8:87",
|
|
669
|
+
"nodeType": "EnumValue",
|
|
670
|
+
"src": "417:8:87"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"id": 72926,
|
|
674
|
+
"name": "MOMENTUM",
|
|
675
|
+
"nameLocation": "449:8:87",
|
|
676
|
+
"nodeType": "EnumValue",
|
|
677
|
+
"src": "449:8:87"
|
|
678
|
+
}
|
|
679
|
+
],
|
|
680
|
+
"name": "OpenLimitOrderType",
|
|
681
|
+
"nameLocation": "372:18:87"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"id": 72933,
|
|
685
|
+
"nodeType": "EventDefinition",
|
|
686
|
+
"src": "492:45:87",
|
|
687
|
+
"nodes": [],
|
|
688
|
+
"anonymous": false,
|
|
689
|
+
"name": "NumberUpdated",
|
|
690
|
+
"nameLocation": "498:13:87",
|
|
691
|
+
"parameters": {
|
|
692
|
+
"id": 72932,
|
|
693
|
+
"nodeType": "ParameterList",
|
|
694
|
+
"parameters": [
|
|
695
|
+
{
|
|
696
|
+
"constant": false,
|
|
697
|
+
"id": 72929,
|
|
698
|
+
"indexed": false,
|
|
699
|
+
"mutability": "mutable",
|
|
700
|
+
"name": "name",
|
|
701
|
+
"nameLocation": "519:4:87",
|
|
702
|
+
"nodeType": "VariableDeclaration",
|
|
703
|
+
"scope": 72933,
|
|
704
|
+
"src": "512:11:87",
|
|
705
|
+
"stateVariable": false,
|
|
706
|
+
"storageLocation": "default",
|
|
707
|
+
"typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" },
|
|
708
|
+
"typeName": {
|
|
709
|
+
"id": 72928,
|
|
710
|
+
"name": "string",
|
|
711
|
+
"nodeType": "ElementaryTypeName",
|
|
712
|
+
"src": "512:6:87",
|
|
713
|
+
"typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" }
|
|
714
|
+
},
|
|
715
|
+
"visibility": "internal"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"constant": false,
|
|
719
|
+
"id": 72931,
|
|
720
|
+
"indexed": false,
|
|
721
|
+
"mutability": "mutable",
|
|
722
|
+
"name": "value",
|
|
723
|
+
"nameLocation": "530:5:87",
|
|
724
|
+
"nodeType": "VariableDeclaration",
|
|
725
|
+
"scope": 72933,
|
|
726
|
+
"src": "525:10:87",
|
|
727
|
+
"stateVariable": false,
|
|
728
|
+
"storageLocation": "default",
|
|
729
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
730
|
+
"typeName": {
|
|
731
|
+
"id": 72930,
|
|
732
|
+
"name": "uint",
|
|
733
|
+
"nodeType": "ElementaryTypeName",
|
|
734
|
+
"src": "525:4:87",
|
|
735
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
736
|
+
},
|
|
737
|
+
"visibility": "internal"
|
|
738
|
+
}
|
|
739
|
+
],
|
|
740
|
+
"src": "511:25:87"
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"id": 72937,
|
|
745
|
+
"nodeType": "EventDefinition",
|
|
746
|
+
"src": "542:38:87",
|
|
747
|
+
"nodes": [],
|
|
748
|
+
"anonymous": false,
|
|
749
|
+
"name": "PercentagesUpdated",
|
|
750
|
+
"nameLocation": "548:18:87",
|
|
751
|
+
"parameters": {
|
|
752
|
+
"id": 72936,
|
|
753
|
+
"nodeType": "ParameterList",
|
|
754
|
+
"parameters": [
|
|
755
|
+
{
|
|
756
|
+
"constant": false,
|
|
757
|
+
"id": 72935,
|
|
758
|
+
"indexed": false,
|
|
759
|
+
"mutability": "mutable",
|
|
760
|
+
"name": "firstP",
|
|
761
|
+
"nameLocation": "572:6:87",
|
|
762
|
+
"nodeType": "VariableDeclaration",
|
|
763
|
+
"scope": 72937,
|
|
764
|
+
"src": "567:11:87",
|
|
765
|
+
"stateVariable": false,
|
|
766
|
+
"storageLocation": "default",
|
|
767
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
768
|
+
"typeName": {
|
|
769
|
+
"id": 72934,
|
|
770
|
+
"name": "uint",
|
|
771
|
+
"nodeType": "ElementaryTypeName",
|
|
772
|
+
"src": "567:4:87",
|
|
773
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
774
|
+
},
|
|
775
|
+
"visibility": "internal"
|
|
776
|
+
}
|
|
777
|
+
],
|
|
778
|
+
"src": "566:13:87"
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"id": 72944,
|
|
783
|
+
"nodeType": "EventDefinition",
|
|
784
|
+
"src": "585:55:87",
|
|
785
|
+
"nodes": [],
|
|
786
|
+
"anonymous": false,
|
|
787
|
+
"name": "TriggeredFirst",
|
|
788
|
+
"nameLocation": "591:14:87",
|
|
789
|
+
"parameters": {
|
|
790
|
+
"id": 72943,
|
|
791
|
+
"nodeType": "ParameterList",
|
|
792
|
+
"parameters": [
|
|
793
|
+
{
|
|
794
|
+
"constant": false,
|
|
795
|
+
"id": 72940,
|
|
796
|
+
"indexed": false,
|
|
797
|
+
"mutability": "mutable",
|
|
798
|
+
"name": "id",
|
|
799
|
+
"nameLocation": "623:2:87",
|
|
800
|
+
"nodeType": "VariableDeclaration",
|
|
801
|
+
"scope": 72944,
|
|
802
|
+
"src": "606:19:87",
|
|
803
|
+
"stateVariable": false,
|
|
804
|
+
"storageLocation": "default",
|
|
805
|
+
"typeDescriptions": {
|
|
806
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_memory_ptr",
|
|
807
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
808
|
+
},
|
|
809
|
+
"typeName": {
|
|
810
|
+
"id": 72939,
|
|
811
|
+
"nodeType": "UserDefinedTypeName",
|
|
812
|
+
"pathNode": {
|
|
813
|
+
"id": 72938,
|
|
814
|
+
"name": "TriggeredLimitId",
|
|
815
|
+
"nodeType": "IdentifierPath",
|
|
816
|
+
"referencedDeclaration": 72923,
|
|
817
|
+
"src": "606:16:87"
|
|
818
|
+
},
|
|
819
|
+
"referencedDeclaration": 72923,
|
|
820
|
+
"src": "606:16:87",
|
|
821
|
+
"typeDescriptions": {
|
|
822
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
823
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"visibility": "internal"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"constant": false,
|
|
830
|
+
"id": 72942,
|
|
831
|
+
"indexed": false,
|
|
832
|
+
"mutability": "mutable",
|
|
833
|
+
"name": "bot",
|
|
834
|
+
"nameLocation": "635:3:87",
|
|
835
|
+
"nodeType": "VariableDeclaration",
|
|
836
|
+
"scope": 72944,
|
|
837
|
+
"src": "627:11:87",
|
|
838
|
+
"stateVariable": false,
|
|
839
|
+
"storageLocation": "default",
|
|
840
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
841
|
+
"typeName": {
|
|
842
|
+
"id": 72941,
|
|
843
|
+
"name": "address",
|
|
844
|
+
"nodeType": "ElementaryTypeName",
|
|
845
|
+
"src": "627:7:87",
|
|
846
|
+
"stateMutability": "nonpayable",
|
|
847
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
848
|
+
},
|
|
849
|
+
"visibility": "internal"
|
|
850
|
+
}
|
|
851
|
+
],
|
|
852
|
+
"src": "605:34:87"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"id": 72949,
|
|
857
|
+
"nodeType": "EventDefinition",
|
|
858
|
+
"src": "645:47:87",
|
|
859
|
+
"nodes": [],
|
|
860
|
+
"anonymous": false,
|
|
861
|
+
"name": "TriggerUnregistered",
|
|
862
|
+
"nameLocation": "651:19:87",
|
|
863
|
+
"parameters": {
|
|
864
|
+
"id": 72948,
|
|
865
|
+
"nodeType": "ParameterList",
|
|
866
|
+
"parameters": [
|
|
867
|
+
{
|
|
868
|
+
"constant": false,
|
|
869
|
+
"id": 72947,
|
|
870
|
+
"indexed": false,
|
|
871
|
+
"mutability": "mutable",
|
|
872
|
+
"name": "id",
|
|
873
|
+
"nameLocation": "688:2:87",
|
|
874
|
+
"nodeType": "VariableDeclaration",
|
|
875
|
+
"scope": 72949,
|
|
876
|
+
"src": "671:19:87",
|
|
877
|
+
"stateVariable": false,
|
|
878
|
+
"storageLocation": "default",
|
|
879
|
+
"typeDescriptions": {
|
|
880
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_memory_ptr",
|
|
881
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
882
|
+
},
|
|
883
|
+
"typeName": {
|
|
884
|
+
"id": 72946,
|
|
885
|
+
"nodeType": "UserDefinedTypeName",
|
|
886
|
+
"pathNode": {
|
|
887
|
+
"id": 72945,
|
|
888
|
+
"name": "TriggeredLimitId",
|
|
889
|
+
"nodeType": "IdentifierPath",
|
|
890
|
+
"referencedDeclaration": 72923,
|
|
891
|
+
"src": "671:16:87"
|
|
892
|
+
},
|
|
893
|
+
"referencedDeclaration": 72923,
|
|
894
|
+
"src": "671:16:87",
|
|
895
|
+
"typeDescriptions": {
|
|
896
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
897
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
"visibility": "internal"
|
|
901
|
+
}
|
|
902
|
+
],
|
|
903
|
+
"src": "670:21:87"
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"id": 72956,
|
|
908
|
+
"nodeType": "EventDefinition",
|
|
909
|
+
"src": "697:56:87",
|
|
910
|
+
"nodes": [],
|
|
911
|
+
"anonymous": false,
|
|
912
|
+
"name": "TriggerRewarded",
|
|
913
|
+
"nameLocation": "703:15:87",
|
|
914
|
+
"parameters": {
|
|
915
|
+
"id": 72955,
|
|
916
|
+
"nodeType": "ParameterList",
|
|
917
|
+
"parameters": [
|
|
918
|
+
{
|
|
919
|
+
"constant": false,
|
|
920
|
+
"id": 72952,
|
|
921
|
+
"indexed": false,
|
|
922
|
+
"mutability": "mutable",
|
|
923
|
+
"name": "id",
|
|
924
|
+
"nameLocation": "736:2:87",
|
|
925
|
+
"nodeType": "VariableDeclaration",
|
|
926
|
+
"scope": 72956,
|
|
927
|
+
"src": "719:19:87",
|
|
928
|
+
"stateVariable": false,
|
|
929
|
+
"storageLocation": "default",
|
|
930
|
+
"typeDescriptions": {
|
|
931
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_memory_ptr",
|
|
932
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
933
|
+
},
|
|
934
|
+
"typeName": {
|
|
935
|
+
"id": 72951,
|
|
936
|
+
"nodeType": "UserDefinedTypeName",
|
|
937
|
+
"pathNode": {
|
|
938
|
+
"id": 72950,
|
|
939
|
+
"name": "TriggeredLimitId",
|
|
940
|
+
"nodeType": "IdentifierPath",
|
|
941
|
+
"referencedDeclaration": 72923,
|
|
942
|
+
"src": "719:16:87"
|
|
943
|
+
},
|
|
944
|
+
"referencedDeclaration": 72923,
|
|
945
|
+
"src": "719:16:87",
|
|
946
|
+
"typeDescriptions": {
|
|
947
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
948
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"visibility": "internal"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"constant": false,
|
|
955
|
+
"id": 72954,
|
|
956
|
+
"indexed": false,
|
|
957
|
+
"mutability": "mutable",
|
|
958
|
+
"name": "reward",
|
|
959
|
+
"nameLocation": "745:6:87",
|
|
960
|
+
"nodeType": "VariableDeclaration",
|
|
961
|
+
"scope": 72956,
|
|
962
|
+
"src": "740:11:87",
|
|
963
|
+
"stateVariable": false,
|
|
964
|
+
"storageLocation": "default",
|
|
965
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
966
|
+
"typeName": {
|
|
967
|
+
"id": 72953,
|
|
968
|
+
"name": "uint",
|
|
969
|
+
"nodeType": "ElementaryTypeName",
|
|
970
|
+
"src": "740:4:87",
|
|
971
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
972
|
+
},
|
|
973
|
+
"visibility": "internal"
|
|
974
|
+
}
|
|
975
|
+
],
|
|
976
|
+
"src": "718:34:87"
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"id": 72966,
|
|
981
|
+
"nodeType": "EventDefinition",
|
|
982
|
+
"src": "758:80:87",
|
|
983
|
+
"nodes": [],
|
|
984
|
+
"anonymous": false,
|
|
985
|
+
"name": "PoolTokensClaimed",
|
|
986
|
+
"nameLocation": "764:17:87",
|
|
987
|
+
"parameters": {
|
|
988
|
+
"id": 72965,
|
|
989
|
+
"nodeType": "ParameterList",
|
|
990
|
+
"parameters": [
|
|
991
|
+
{
|
|
992
|
+
"constant": false,
|
|
993
|
+
"id": 72958,
|
|
994
|
+
"indexed": false,
|
|
995
|
+
"mutability": "mutable",
|
|
996
|
+
"name": "bot",
|
|
997
|
+
"nameLocation": "790:3:87",
|
|
998
|
+
"nodeType": "VariableDeclaration",
|
|
999
|
+
"scope": 72966,
|
|
1000
|
+
"src": "782:11:87",
|
|
1001
|
+
"stateVariable": false,
|
|
1002
|
+
"storageLocation": "default",
|
|
1003
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
1004
|
+
"typeName": {
|
|
1005
|
+
"id": 72957,
|
|
1006
|
+
"name": "address",
|
|
1007
|
+
"nodeType": "ElementaryTypeName",
|
|
1008
|
+
"src": "782:7:87",
|
|
1009
|
+
"stateMutability": "nonpayable",
|
|
1010
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
1011
|
+
},
|
|
1012
|
+
"visibility": "internal"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"constant": false,
|
|
1016
|
+
"id": 72960,
|
|
1017
|
+
"indexed": false,
|
|
1018
|
+
"mutability": "mutable",
|
|
1019
|
+
"name": "fromRound",
|
|
1020
|
+
"nameLocation": "800:9:87",
|
|
1021
|
+
"nodeType": "VariableDeclaration",
|
|
1022
|
+
"scope": 72966,
|
|
1023
|
+
"src": "795:14:87",
|
|
1024
|
+
"stateVariable": false,
|
|
1025
|
+
"storageLocation": "default",
|
|
1026
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1027
|
+
"typeName": {
|
|
1028
|
+
"id": 72959,
|
|
1029
|
+
"name": "uint",
|
|
1030
|
+
"nodeType": "ElementaryTypeName",
|
|
1031
|
+
"src": "795:4:87",
|
|
1032
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1033
|
+
},
|
|
1034
|
+
"visibility": "internal"
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"constant": false,
|
|
1038
|
+
"id": 72962,
|
|
1039
|
+
"indexed": false,
|
|
1040
|
+
"mutability": "mutable",
|
|
1041
|
+
"name": "toRound",
|
|
1042
|
+
"nameLocation": "816:7:87",
|
|
1043
|
+
"nodeType": "VariableDeclaration",
|
|
1044
|
+
"scope": 72966,
|
|
1045
|
+
"src": "811:12:87",
|
|
1046
|
+
"stateVariable": false,
|
|
1047
|
+
"storageLocation": "default",
|
|
1048
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1049
|
+
"typeName": {
|
|
1050
|
+
"id": 72961,
|
|
1051
|
+
"name": "uint",
|
|
1052
|
+
"nodeType": "ElementaryTypeName",
|
|
1053
|
+
"src": "811:4:87",
|
|
1054
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1055
|
+
},
|
|
1056
|
+
"visibility": "internal"
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"constant": false,
|
|
1060
|
+
"id": 72964,
|
|
1061
|
+
"indexed": false,
|
|
1062
|
+
"mutability": "mutable",
|
|
1063
|
+
"name": "tokens",
|
|
1064
|
+
"nameLocation": "830:6:87",
|
|
1065
|
+
"nodeType": "VariableDeclaration",
|
|
1066
|
+
"scope": 72966,
|
|
1067
|
+
"src": "825:11:87",
|
|
1068
|
+
"stateVariable": false,
|
|
1069
|
+
"storageLocation": "default",
|
|
1070
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1071
|
+
"typeName": {
|
|
1072
|
+
"id": 72963,
|
|
1073
|
+
"name": "uint",
|
|
1074
|
+
"nodeType": "ElementaryTypeName",
|
|
1075
|
+
"src": "825:4:87",
|
|
1076
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1077
|
+
},
|
|
1078
|
+
"visibility": "internal"
|
|
1079
|
+
}
|
|
1080
|
+
],
|
|
1081
|
+
"src": "781:56:87"
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"id": 72972,
|
|
1086
|
+
"nodeType": "EventDefinition",
|
|
1087
|
+
"src": "843:46:87",
|
|
1088
|
+
"nodes": [],
|
|
1089
|
+
"anonymous": false,
|
|
1090
|
+
"name": "TokensClaimed",
|
|
1091
|
+
"nameLocation": "849:13:87",
|
|
1092
|
+
"parameters": {
|
|
1093
|
+
"id": 72971,
|
|
1094
|
+
"nodeType": "ParameterList",
|
|
1095
|
+
"parameters": [
|
|
1096
|
+
{
|
|
1097
|
+
"constant": false,
|
|
1098
|
+
"id": 72968,
|
|
1099
|
+
"indexed": false,
|
|
1100
|
+
"mutability": "mutable",
|
|
1101
|
+
"name": "bot",
|
|
1102
|
+
"nameLocation": "871:3:87",
|
|
1103
|
+
"nodeType": "VariableDeclaration",
|
|
1104
|
+
"scope": 72972,
|
|
1105
|
+
"src": "863:11:87",
|
|
1106
|
+
"stateVariable": false,
|
|
1107
|
+
"storageLocation": "default",
|
|
1108
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
1109
|
+
"typeName": {
|
|
1110
|
+
"id": 72967,
|
|
1111
|
+
"name": "address",
|
|
1112
|
+
"nodeType": "ElementaryTypeName",
|
|
1113
|
+
"src": "863:7:87",
|
|
1114
|
+
"stateMutability": "nonpayable",
|
|
1115
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
1116
|
+
},
|
|
1117
|
+
"visibility": "internal"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"constant": false,
|
|
1121
|
+
"id": 72970,
|
|
1122
|
+
"indexed": false,
|
|
1123
|
+
"mutability": "mutable",
|
|
1124
|
+
"name": "tokens",
|
|
1125
|
+
"nameLocation": "881:6:87",
|
|
1126
|
+
"nodeType": "VariableDeclaration",
|
|
1127
|
+
"scope": 72972,
|
|
1128
|
+
"src": "876:11:87",
|
|
1129
|
+
"stateVariable": false,
|
|
1130
|
+
"storageLocation": "default",
|
|
1131
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1132
|
+
"typeName": {
|
|
1133
|
+
"id": 72969,
|
|
1134
|
+
"name": "uint",
|
|
1135
|
+
"nodeType": "ElementaryTypeName",
|
|
1136
|
+
"src": "876:4:87",
|
|
1137
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1138
|
+
},
|
|
1139
|
+
"visibility": "internal"
|
|
1140
|
+
}
|
|
1141
|
+
],
|
|
1142
|
+
"src": "862:26:87"
|
|
1143
|
+
}
|
|
1144
|
+
},
|
|
1145
|
+
{
|
|
1146
|
+
"id": 72980,
|
|
1147
|
+
"nodeType": "FunctionDefinition",
|
|
1148
|
+
"src": "895:74:87",
|
|
1149
|
+
"nodes": [],
|
|
1150
|
+
"functionSelector": "c23c886c",
|
|
1151
|
+
"implemented": false,
|
|
1152
|
+
"kind": "function",
|
|
1153
|
+
"modifiers": [],
|
|
1154
|
+
"name": "storeFirstToTrigger",
|
|
1155
|
+
"nameLocation": "904:19:87",
|
|
1156
|
+
"parameters": {
|
|
1157
|
+
"id": 72978,
|
|
1158
|
+
"nodeType": "ParameterList",
|
|
1159
|
+
"parameters": [
|
|
1160
|
+
{
|
|
1161
|
+
"constant": false,
|
|
1162
|
+
"id": 72975,
|
|
1163
|
+
"mutability": "mutable",
|
|
1164
|
+
"name": "",
|
|
1165
|
+
"nameLocation": "-1:-1:-1",
|
|
1166
|
+
"nodeType": "VariableDeclaration",
|
|
1167
|
+
"scope": 72980,
|
|
1168
|
+
"src": "924:25:87",
|
|
1169
|
+
"stateVariable": false,
|
|
1170
|
+
"storageLocation": "calldata",
|
|
1171
|
+
"typeDescriptions": {
|
|
1172
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_calldata_ptr",
|
|
1173
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1174
|
+
},
|
|
1175
|
+
"typeName": {
|
|
1176
|
+
"id": 72974,
|
|
1177
|
+
"nodeType": "UserDefinedTypeName",
|
|
1178
|
+
"pathNode": {
|
|
1179
|
+
"id": 72973,
|
|
1180
|
+
"name": "TriggeredLimitId",
|
|
1181
|
+
"nodeType": "IdentifierPath",
|
|
1182
|
+
"referencedDeclaration": 72923,
|
|
1183
|
+
"src": "924:16:87"
|
|
1184
|
+
},
|
|
1185
|
+
"referencedDeclaration": 72923,
|
|
1186
|
+
"src": "924:16:87",
|
|
1187
|
+
"typeDescriptions": {
|
|
1188
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
1189
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
"visibility": "internal"
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"constant": false,
|
|
1196
|
+
"id": 72977,
|
|
1197
|
+
"mutability": "mutable",
|
|
1198
|
+
"name": "",
|
|
1199
|
+
"nameLocation": "-1:-1:-1",
|
|
1200
|
+
"nodeType": "VariableDeclaration",
|
|
1201
|
+
"scope": 72980,
|
|
1202
|
+
"src": "951:7:87",
|
|
1203
|
+
"stateVariable": false,
|
|
1204
|
+
"storageLocation": "default",
|
|
1205
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
1206
|
+
"typeName": {
|
|
1207
|
+
"id": 72976,
|
|
1208
|
+
"name": "address",
|
|
1209
|
+
"nodeType": "ElementaryTypeName",
|
|
1210
|
+
"src": "951:7:87",
|
|
1211
|
+
"stateMutability": "nonpayable",
|
|
1212
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
1213
|
+
},
|
|
1214
|
+
"visibility": "internal"
|
|
1215
|
+
}
|
|
1216
|
+
],
|
|
1217
|
+
"src": "923:36:87"
|
|
1218
|
+
},
|
|
1219
|
+
"returnParameters": { "id": 72979, "nodeType": "ParameterList", "parameters": [], "src": "968:0:87" },
|
|
1220
|
+
"scope": 73019,
|
|
1221
|
+
"stateMutability": "nonpayable",
|
|
1222
|
+
"virtual": false,
|
|
1223
|
+
"visibility": "external"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"id": 72986,
|
|
1227
|
+
"nodeType": "FunctionDefinition",
|
|
1228
|
+
"src": "975:63:87",
|
|
1229
|
+
"nodes": [],
|
|
1230
|
+
"functionSelector": "bf654d2b",
|
|
1231
|
+
"implemented": false,
|
|
1232
|
+
"kind": "function",
|
|
1233
|
+
"modifiers": [],
|
|
1234
|
+
"name": "unregisterTrigger",
|
|
1235
|
+
"nameLocation": "984:17:87",
|
|
1236
|
+
"parameters": {
|
|
1237
|
+
"id": 72984,
|
|
1238
|
+
"nodeType": "ParameterList",
|
|
1239
|
+
"parameters": [
|
|
1240
|
+
{
|
|
1241
|
+
"constant": false,
|
|
1242
|
+
"id": 72983,
|
|
1243
|
+
"mutability": "mutable",
|
|
1244
|
+
"name": "",
|
|
1245
|
+
"nameLocation": "-1:-1:-1",
|
|
1246
|
+
"nodeType": "VariableDeclaration",
|
|
1247
|
+
"scope": 72986,
|
|
1248
|
+
"src": "1002:25:87",
|
|
1249
|
+
"stateVariable": false,
|
|
1250
|
+
"storageLocation": "calldata",
|
|
1251
|
+
"typeDescriptions": {
|
|
1252
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_calldata_ptr",
|
|
1253
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1254
|
+
},
|
|
1255
|
+
"typeName": {
|
|
1256
|
+
"id": 72982,
|
|
1257
|
+
"nodeType": "UserDefinedTypeName",
|
|
1258
|
+
"pathNode": {
|
|
1259
|
+
"id": 72981,
|
|
1260
|
+
"name": "TriggeredLimitId",
|
|
1261
|
+
"nodeType": "IdentifierPath",
|
|
1262
|
+
"referencedDeclaration": 72923,
|
|
1263
|
+
"src": "1002:16:87"
|
|
1264
|
+
},
|
|
1265
|
+
"referencedDeclaration": 72923,
|
|
1266
|
+
"src": "1002:16:87",
|
|
1267
|
+
"typeDescriptions": {
|
|
1268
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
1269
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
"visibility": "internal"
|
|
1273
|
+
}
|
|
1274
|
+
],
|
|
1275
|
+
"src": "1001:27:87"
|
|
1276
|
+
},
|
|
1277
|
+
"returnParameters": { "id": 72985, "nodeType": "ParameterList", "parameters": [], "src": "1037:0:87" },
|
|
1278
|
+
"scope": 73019,
|
|
1279
|
+
"stateMutability": "nonpayable",
|
|
1280
|
+
"virtual": false,
|
|
1281
|
+
"visibility": "external"
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
"id": 72994,
|
|
1285
|
+
"nodeType": "FunctionDefinition",
|
|
1286
|
+
"src": "1044:68:87",
|
|
1287
|
+
"nodes": [],
|
|
1288
|
+
"functionSelector": "afc329ac",
|
|
1289
|
+
"implemented": false,
|
|
1290
|
+
"kind": "function",
|
|
1291
|
+
"modifiers": [],
|
|
1292
|
+
"name": "distributeReward",
|
|
1293
|
+
"nameLocation": "1053:16:87",
|
|
1294
|
+
"parameters": {
|
|
1295
|
+
"id": 72992,
|
|
1296
|
+
"nodeType": "ParameterList",
|
|
1297
|
+
"parameters": [
|
|
1298
|
+
{
|
|
1299
|
+
"constant": false,
|
|
1300
|
+
"id": 72989,
|
|
1301
|
+
"mutability": "mutable",
|
|
1302
|
+
"name": "",
|
|
1303
|
+
"nameLocation": "-1:-1:-1",
|
|
1304
|
+
"nodeType": "VariableDeclaration",
|
|
1305
|
+
"scope": 72994,
|
|
1306
|
+
"src": "1070:25:87",
|
|
1307
|
+
"stateVariable": false,
|
|
1308
|
+
"storageLocation": "calldata",
|
|
1309
|
+
"typeDescriptions": {
|
|
1310
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_calldata_ptr",
|
|
1311
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1312
|
+
},
|
|
1313
|
+
"typeName": {
|
|
1314
|
+
"id": 72988,
|
|
1315
|
+
"nodeType": "UserDefinedTypeName",
|
|
1316
|
+
"pathNode": {
|
|
1317
|
+
"id": 72987,
|
|
1318
|
+
"name": "TriggeredLimitId",
|
|
1319
|
+
"nodeType": "IdentifierPath",
|
|
1320
|
+
"referencedDeclaration": 72923,
|
|
1321
|
+
"src": "1070:16:87"
|
|
1322
|
+
},
|
|
1323
|
+
"referencedDeclaration": 72923,
|
|
1324
|
+
"src": "1070:16:87",
|
|
1325
|
+
"typeDescriptions": {
|
|
1326
|
+
"typeIdentifier": "t_struct$_TriggeredLimitId_$72923_storage_ptr",
|
|
1327
|
+
"typeString": "struct IExecute.TriggeredLimitId"
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
"visibility": "internal"
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
"constant": false,
|
|
1334
|
+
"id": 72991,
|
|
1335
|
+
"mutability": "mutable",
|
|
1336
|
+
"name": "",
|
|
1337
|
+
"nameLocation": "-1:-1:-1",
|
|
1338
|
+
"nodeType": "VariableDeclaration",
|
|
1339
|
+
"scope": 72994,
|
|
1340
|
+
"src": "1097:4:87",
|
|
1341
|
+
"stateVariable": false,
|
|
1342
|
+
"storageLocation": "default",
|
|
1343
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1344
|
+
"typeName": {
|
|
1345
|
+
"id": 72990,
|
|
1346
|
+
"name": "uint",
|
|
1347
|
+
"nodeType": "ElementaryTypeName",
|
|
1348
|
+
"src": "1097:4:87",
|
|
1349
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1350
|
+
},
|
|
1351
|
+
"visibility": "internal"
|
|
1352
|
+
}
|
|
1353
|
+
],
|
|
1354
|
+
"src": "1069:33:87"
|
|
1355
|
+
},
|
|
1356
|
+
"returnParameters": { "id": 72993, "nodeType": "ParameterList", "parameters": [], "src": "1111:0:87" },
|
|
1357
|
+
"scope": 73019,
|
|
1358
|
+
"stateMutability": "nonpayable",
|
|
1359
|
+
"virtual": false,
|
|
1360
|
+
"visibility": "external"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"id": 73006,
|
|
1364
|
+
"nodeType": "FunctionDefinition",
|
|
1365
|
+
"src": "1118:93:87",
|
|
1366
|
+
"nodes": [],
|
|
1367
|
+
"functionSelector": "d4de65ea",
|
|
1368
|
+
"implemented": false,
|
|
1369
|
+
"kind": "function",
|
|
1370
|
+
"modifiers": [],
|
|
1371
|
+
"name": "openLimitOrderTypes",
|
|
1372
|
+
"nameLocation": "1127:19:87",
|
|
1373
|
+
"parameters": {
|
|
1374
|
+
"id": 73001,
|
|
1375
|
+
"nodeType": "ParameterList",
|
|
1376
|
+
"parameters": [
|
|
1377
|
+
{
|
|
1378
|
+
"constant": false,
|
|
1379
|
+
"id": 72996,
|
|
1380
|
+
"mutability": "mutable",
|
|
1381
|
+
"name": "",
|
|
1382
|
+
"nameLocation": "-1:-1:-1",
|
|
1383
|
+
"nodeType": "VariableDeclaration",
|
|
1384
|
+
"scope": 73006,
|
|
1385
|
+
"src": "1147:7:87",
|
|
1386
|
+
"stateVariable": false,
|
|
1387
|
+
"storageLocation": "default",
|
|
1388
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
1389
|
+
"typeName": {
|
|
1390
|
+
"id": 72995,
|
|
1391
|
+
"name": "address",
|
|
1392
|
+
"nodeType": "ElementaryTypeName",
|
|
1393
|
+
"src": "1147:7:87",
|
|
1394
|
+
"stateMutability": "nonpayable",
|
|
1395
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
1396
|
+
},
|
|
1397
|
+
"visibility": "internal"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"constant": false,
|
|
1401
|
+
"id": 72998,
|
|
1402
|
+
"mutability": "mutable",
|
|
1403
|
+
"name": "",
|
|
1404
|
+
"nameLocation": "-1:-1:-1",
|
|
1405
|
+
"nodeType": "VariableDeclaration",
|
|
1406
|
+
"scope": 73006,
|
|
1407
|
+
"src": "1156:4:87",
|
|
1408
|
+
"stateVariable": false,
|
|
1409
|
+
"storageLocation": "default",
|
|
1410
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1411
|
+
"typeName": {
|
|
1412
|
+
"id": 72997,
|
|
1413
|
+
"name": "uint",
|
|
1414
|
+
"nodeType": "ElementaryTypeName",
|
|
1415
|
+
"src": "1156:4:87",
|
|
1416
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1417
|
+
},
|
|
1418
|
+
"visibility": "internal"
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
"constant": false,
|
|
1422
|
+
"id": 73000,
|
|
1423
|
+
"mutability": "mutable",
|
|
1424
|
+
"name": "",
|
|
1425
|
+
"nameLocation": "-1:-1:-1",
|
|
1426
|
+
"nodeType": "VariableDeclaration",
|
|
1427
|
+
"scope": 73006,
|
|
1428
|
+
"src": "1162:4:87",
|
|
1429
|
+
"stateVariable": false,
|
|
1430
|
+
"storageLocation": "default",
|
|
1431
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1432
|
+
"typeName": {
|
|
1433
|
+
"id": 72999,
|
|
1434
|
+
"name": "uint",
|
|
1435
|
+
"nodeType": "ElementaryTypeName",
|
|
1436
|
+
"src": "1162:4:87",
|
|
1437
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1438
|
+
},
|
|
1439
|
+
"visibility": "internal"
|
|
1440
|
+
}
|
|
1441
|
+
],
|
|
1442
|
+
"src": "1146:21:87"
|
|
1443
|
+
},
|
|
1444
|
+
"returnParameters": {
|
|
1445
|
+
"id": 73005,
|
|
1446
|
+
"nodeType": "ParameterList",
|
|
1447
|
+
"parameters": [
|
|
1448
|
+
{
|
|
1449
|
+
"constant": false,
|
|
1450
|
+
"id": 73004,
|
|
1451
|
+
"mutability": "mutable",
|
|
1452
|
+
"name": "",
|
|
1453
|
+
"nameLocation": "-1:-1:-1",
|
|
1454
|
+
"nodeType": "VariableDeclaration",
|
|
1455
|
+
"scope": 73006,
|
|
1456
|
+
"src": "1191:18:87",
|
|
1457
|
+
"stateVariable": false,
|
|
1458
|
+
"storageLocation": "default",
|
|
1459
|
+
"typeDescriptions": {
|
|
1460
|
+
"typeIdentifier": "t_enum$_OpenLimitOrderType_$72927",
|
|
1461
|
+
"typeString": "enum IExecute.OpenLimitOrderType"
|
|
1462
|
+
},
|
|
1463
|
+
"typeName": {
|
|
1464
|
+
"id": 73003,
|
|
1465
|
+
"nodeType": "UserDefinedTypeName",
|
|
1466
|
+
"pathNode": {
|
|
1467
|
+
"id": 73002,
|
|
1468
|
+
"name": "OpenLimitOrderType",
|
|
1469
|
+
"nodeType": "IdentifierPath",
|
|
1470
|
+
"referencedDeclaration": 72927,
|
|
1471
|
+
"src": "1191:18:87"
|
|
1472
|
+
},
|
|
1473
|
+
"referencedDeclaration": 72927,
|
|
1474
|
+
"src": "1191:18:87",
|
|
1475
|
+
"typeDescriptions": {
|
|
1476
|
+
"typeIdentifier": "t_enum$_OpenLimitOrderType_$72927",
|
|
1477
|
+
"typeString": "enum IExecute.OpenLimitOrderType"
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
"visibility": "internal"
|
|
1481
|
+
}
|
|
1482
|
+
],
|
|
1483
|
+
"src": "1190:20:87"
|
|
1484
|
+
},
|
|
1485
|
+
"scope": 73019,
|
|
1486
|
+
"stateMutability": "view",
|
|
1487
|
+
"virtual": false,
|
|
1488
|
+
"visibility": "external"
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
"id": 73018,
|
|
1492
|
+
"nodeType": "FunctionDefinition",
|
|
1493
|
+
"src": "1217:81:87",
|
|
1494
|
+
"nodes": [],
|
|
1495
|
+
"functionSelector": "ec570610",
|
|
1496
|
+
"implemented": false,
|
|
1497
|
+
"kind": "function",
|
|
1498
|
+
"modifiers": [],
|
|
1499
|
+
"name": "setOpenLimitOrderType",
|
|
1500
|
+
"nameLocation": "1226:21:87",
|
|
1501
|
+
"parameters": {
|
|
1502
|
+
"id": 73016,
|
|
1503
|
+
"nodeType": "ParameterList",
|
|
1504
|
+
"parameters": [
|
|
1505
|
+
{
|
|
1506
|
+
"constant": false,
|
|
1507
|
+
"id": 73008,
|
|
1508
|
+
"mutability": "mutable",
|
|
1509
|
+
"name": "",
|
|
1510
|
+
"nameLocation": "-1:-1:-1",
|
|
1511
|
+
"nodeType": "VariableDeclaration",
|
|
1512
|
+
"scope": 73018,
|
|
1513
|
+
"src": "1248:7:87",
|
|
1514
|
+
"stateVariable": false,
|
|
1515
|
+
"storageLocation": "default",
|
|
1516
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
|
|
1517
|
+
"typeName": {
|
|
1518
|
+
"id": 73007,
|
|
1519
|
+
"name": "address",
|
|
1520
|
+
"nodeType": "ElementaryTypeName",
|
|
1521
|
+
"src": "1248:7:87",
|
|
1522
|
+
"stateMutability": "nonpayable",
|
|
1523
|
+
"typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
|
|
1524
|
+
},
|
|
1525
|
+
"visibility": "internal"
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
"constant": false,
|
|
1529
|
+
"id": 73010,
|
|
1530
|
+
"mutability": "mutable",
|
|
1531
|
+
"name": "",
|
|
1532
|
+
"nameLocation": "-1:-1:-1",
|
|
1533
|
+
"nodeType": "VariableDeclaration",
|
|
1534
|
+
"scope": 73018,
|
|
1535
|
+
"src": "1257:4:87",
|
|
1536
|
+
"stateVariable": false,
|
|
1537
|
+
"storageLocation": "default",
|
|
1538
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1539
|
+
"typeName": {
|
|
1540
|
+
"id": 73009,
|
|
1541
|
+
"name": "uint",
|
|
1542
|
+
"nodeType": "ElementaryTypeName",
|
|
1543
|
+
"src": "1257:4:87",
|
|
1544
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1545
|
+
},
|
|
1546
|
+
"visibility": "internal"
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
"constant": false,
|
|
1550
|
+
"id": 73012,
|
|
1551
|
+
"mutability": "mutable",
|
|
1552
|
+
"name": "",
|
|
1553
|
+
"nameLocation": "-1:-1:-1",
|
|
1554
|
+
"nodeType": "VariableDeclaration",
|
|
1555
|
+
"scope": 73018,
|
|
1556
|
+
"src": "1263:4:87",
|
|
1557
|
+
"stateVariable": false,
|
|
1558
|
+
"storageLocation": "default",
|
|
1559
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
|
|
1560
|
+
"typeName": {
|
|
1561
|
+
"id": 73011,
|
|
1562
|
+
"name": "uint",
|
|
1563
|
+
"nodeType": "ElementaryTypeName",
|
|
1564
|
+
"src": "1263:4:87",
|
|
1565
|
+
"typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
|
|
1566
|
+
},
|
|
1567
|
+
"visibility": "internal"
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
"constant": false,
|
|
1571
|
+
"id": 73015,
|
|
1572
|
+
"mutability": "mutable",
|
|
1573
|
+
"name": "",
|
|
1574
|
+
"nameLocation": "-1:-1:-1",
|
|
1575
|
+
"nodeType": "VariableDeclaration",
|
|
1576
|
+
"scope": 73018,
|
|
1577
|
+
"src": "1269:18:87",
|
|
1578
|
+
"stateVariable": false,
|
|
1579
|
+
"storageLocation": "default",
|
|
1580
|
+
"typeDescriptions": {
|
|
1581
|
+
"typeIdentifier": "t_enum$_OpenLimitOrderType_$72927",
|
|
1582
|
+
"typeString": "enum IExecute.OpenLimitOrderType"
|
|
1583
|
+
},
|
|
1584
|
+
"typeName": {
|
|
1585
|
+
"id": 73014,
|
|
1586
|
+
"nodeType": "UserDefinedTypeName",
|
|
1587
|
+
"pathNode": {
|
|
1588
|
+
"id": 73013,
|
|
1589
|
+
"name": "OpenLimitOrderType",
|
|
1590
|
+
"nodeType": "IdentifierPath",
|
|
1591
|
+
"referencedDeclaration": 72927,
|
|
1592
|
+
"src": "1269:18:87"
|
|
1593
|
+
},
|
|
1594
|
+
"referencedDeclaration": 72927,
|
|
1595
|
+
"src": "1269:18:87",
|
|
1596
|
+
"typeDescriptions": {
|
|
1597
|
+
"typeIdentifier": "t_enum$_OpenLimitOrderType_$72927",
|
|
1598
|
+
"typeString": "enum IExecute.OpenLimitOrderType"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1601
|
+
"visibility": "internal"
|
|
1602
|
+
}
|
|
1603
|
+
],
|
|
1604
|
+
"src": "1247:41:87"
|
|
1605
|
+
},
|
|
1606
|
+
"returnParameters": { "id": 73017, "nodeType": "ParameterList", "parameters": [], "src": "1297:0:87" },
|
|
1607
|
+
"scope": 73019,
|
|
1608
|
+
"stateMutability": "nonpayable",
|
|
1609
|
+
"virtual": false,
|
|
1610
|
+
"visibility": "external"
|
|
1611
|
+
}
|
|
1612
|
+
],
|
|
1613
|
+
"abstract": false,
|
|
1614
|
+
"baseContracts": [],
|
|
1615
|
+
"contractDependencies": [],
|
|
1616
|
+
"contractKind": "interface",
|
|
1617
|
+
"fullyImplemented": false,
|
|
1618
|
+
"linearizedBaseContracts": [73019],
|
|
1619
|
+
"name": "IExecute",
|
|
1620
|
+
"nameLocation": "98:8:87",
|
|
1621
|
+
"scope": 73020,
|
|
1622
|
+
"usedErrors": []
|
|
1623
|
+
}
|
|
1624
|
+
],
|
|
1625
|
+
"license": "MIT"
|
|
1626
|
+
},
|
|
1627
|
+
"id": 87
|
|
1628
|
+
}
|