@paraswap/dex-lib 3.6.2 → 3.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dex/aave-v1/aave-v1.d.ts +1 -2
- package/build/dex/aave-v1/aave-v1.js +0 -23
- package/build/dex/aave-v1/aave-v1.js.map +1 -1
- package/build/dex/compound.js +1 -1
- package/build/dex/compound.js.map +1 -1
- package/build/dex/etherfi/etherfi.d.ts +26 -0
- package/build/dex/etherfi/etherfi.js +96 -0
- package/build/dex/etherfi/etherfi.js.map +1 -0
- package/build/dex/index.js +2 -0
- package/build/dex/index.js.map +1 -1
- package/build/dex/maverick-v2/config.d.ts +2 -2
- package/build/dex/maverick-v2/config.js +16 -9
- package/build/dex/maverick-v2/config.js.map +1 -1
- package/build/dex/maverick-v2/maverick-math/maverick-basic-math.js +3 -3
- package/build/dex/maverick-v2/maverick-math/maverick-basic-math.js.map +1 -1
- package/build/dex/maverick-v2/maverick-math/maverick-bin-math.js +4 -4
- package/build/dex/maverick-v2/maverick-math/maverick-bin-math.js.map +1 -1
- package/build/dex/maverick-v2/maverick-math/maverick-math.js +3 -3
- package/build/dex/maverick-v2/maverick-math/maverick-math.js.map +1 -1
- package/build/dex/maverick-v2/maverick-math/maverick-pool-math.js +13 -13
- package/build/dex/maverick-v2/maverick-math/maverick-pool-math.js.map +1 -1
- package/build/dex/maverick-v2/maverick-math/maverick-swap-math.js +1 -1
- package/build/dex/maverick-v2/maverick-math/maverick-swap-math.js.map +1 -1
- package/build/dex/maverick-v2/maverick-math/maverick-tick-math.js +4 -4
- package/build/dex/maverick-v2/maverick-math/maverick-tick-math.js.map +1 -1
- package/build/dex/maverick-v2/maverick-math/maverick-twa-math.js +3 -3
- package/build/dex/maverick-v2/maverick-math/maverick-twa-math.js.map +1 -1
- package/build/dex/maverick-v2/maverick-v2-pool.d.ts +12 -9
- package/build/dex/maverick-v2/maverick-v2-pool.js +71 -16
- package/build/dex/maverick-v2/maverick-v2-pool.js.map +1 -1
- package/build/dex/maverick-v2/maverick-v2.d.ts +4 -8
- package/build/dex/maverick-v2/maverick-v2.js +62 -90
- package/build/dex/maverick-v2/maverick-v2.js.map +1 -1
- package/build/dex/maverick-v2/types.d.ts +1 -2
- package/build/dex/platypus/platypus.d.ts +1 -2
- package/build/dex/platypus/platypus.js +0 -45
- package/build/dex/platypus/platypus.js.map +1 -1
- package/build/dex/sdai/config.d.ts +11 -0
- package/build/dex/sdai/config.js +21 -0
- package/build/dex/sdai/config.js.map +1 -0
- package/build/dex/sdai/constants.d.ts +2 -0
- package/build/dex/sdai/constants.js +6 -0
- package/build/dex/sdai/constants.js.map +1 -0
- package/build/dex/sdai/scripts/validate-state.js +102 -0
- package/build/dex/sdai/scripts/validate-state.js.map +1 -0
- package/build/dex/sdai/sdai-pool.d.ts +16 -0
- package/build/dex/sdai/sdai-pool.js +85 -0
- package/build/dex/sdai/sdai-pool.js.map +1 -0
- package/build/dex/sdai/sdai.d.ts +51 -0
- package/build/dex/sdai/sdai.js +172 -0
- package/build/dex/sdai/sdai.js.map +1 -0
- package/build/dex/sdai/types.d.ts +21 -0
- package/build/dex/sdai/types.js +11 -0
- package/build/dex/sdai/types.js.map +1 -0
- package/build/dex/sdai/utils.d.ts +4 -0
- package/build/dex/sdai/utils.js +39 -0
- package/build/dex/sdai/utils.js.map +1 -0
- package/build/dex/stable-pool.js +8 -1
- package/build/dex/stable-pool.js.map +1 -1
- package/build/dex/swaap-v1/swaap-v1.d.ts +1 -2
- package/build/dex/swaap-v1/swaap-v1.js +0 -14
- package/build/dex/swaap-v1/swaap-v1.js.map +1 -1
- package/package.json +1 -1
- package/src/abi/maverick-v2/MaverickV2Pool.json +1234 -0
- package/src/abi/maverick-v2/MaverickV2PoolLens.json +1232 -0
- package/src/abi/maverick-v2/MaverickV2Quoter.json +278 -0
- package/src/dex/index.ts +2 -0
- package/src/dex/maverick-v2/config.ts +28 -0
- package/src/dex/maverick-v2/maverick-math/maverick-basic-math.ts +152 -0
- package/src/dex/maverick-v2/maverick-math/maverick-bin-math.ts +288 -0
- package/src/dex/maverick-v2/maverick-math/maverick-delta-math.ts +32 -0
- package/src/dex/maverick-v2/maverick-math/maverick-math.ts +30 -0
- package/src/dex/maverick-v2/maverick-math/maverick-pool-lib.ts +42 -0
- package/src/dex/maverick-v2/maverick-math/maverick-pool-math.ts +709 -0
- package/src/dex/maverick-v2/maverick-math/maverick-swap-math.ts +199 -0
- package/src/dex/maverick-v2/maverick-math/maverick-tick-math.ts +171 -0
- package/src/dex/maverick-v2/maverick-math/maverick-twa-math.ts +54 -0
- package/src/dex/maverick-v2/maverick-v2-e2e.test.ts +193 -0
- package/src/dex/maverick-v2/maverick-v2-events.test.ts +112 -0
- package/src/dex/maverick-v2/maverick-v2-integration.test.ts +283 -0
- package/src/dex/maverick-v2/maverick-v2-pool.ts +346 -0
- package/src/dex/maverick-v2/maverick-v2.ts +380 -0
- package/src/dex/maverick-v2/types.ts +151 -0
- package/tests/constants-e2e.ts +2 -2
- package/.vscode/launch.json +0 -53
- package/.vscode/settings.json +0 -2
- package/.vscode/tasks.json +0 -15
- package/build/abi/uniswap-v3/AlienBaseV3Router.abi.json +0 -52
- package/build/abi/wombat/pool.json +0 -1289
- package/build/dex/aave-v2/tokens-avalanche.json +0 -44
- package/build/dex/aave-v2/tokens-mainnet.json +0 -188
- package/build/dex/aave-v2/tokens-polygon.json +0 -44
- package/build/dex/maker-psm/scripts/gem.abi.json +0 -136
- package/build/dex/maker-psm/scripts/validate-state.d.ts +0 -0
- package/build/dex/maker-psm/scripts/validate-state.js +0 -185
- package/build/dex/maker-psm/scripts/validate-state.js.map +0 -1
- package/build/dex/maker-psm/scripts/vat.abi.json +0 -243
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js +0 -53
- package/build/dex/solidly-v3/scripts/check-event-pool-event.js.map +0 -1
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.d.ts +0 -17
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js +0 -64
- package/build/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.js.map +0 -1
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.d.ts +0 -17
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js +0 -79
- package/build/dex/uniswap-v3/forks/alien-v3/alien-v3.js.map +0 -1
- package/src/dex/maker-psm/scripts/gem.abi.json +0 -136
- package/src/dex/maker-psm/scripts/validate-state.ts +0 -221
- package/src/dex/maker-psm/scripts/vat.abi.json +0 -243
- /package/build/dex/{solidly-v3/scripts/check-event-pool-event.d.ts → sdai/scripts/validate-state.d.ts} +0 -0
|
@@ -1,243 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"inputs": [
|
|
4
|
-
{ "internalType": "address", "name": "gemJoin_", "type": "address" },
|
|
5
|
-
{ "internalType": "address", "name": "daiJoin_", "type": "address" },
|
|
6
|
-
{ "internalType": "address", "name": "vow_", "type": "address" }
|
|
7
|
-
],
|
|
8
|
-
"stateMutability": "nonpayable",
|
|
9
|
-
"type": "constructor"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"anonymous": false,
|
|
13
|
-
"inputs": [
|
|
14
|
-
{
|
|
15
|
-
"indexed": true,
|
|
16
|
-
"internalType": "address",
|
|
17
|
-
"name": "owner",
|
|
18
|
-
"type": "address"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"indexed": false,
|
|
22
|
-
"internalType": "uint256",
|
|
23
|
-
"name": "value",
|
|
24
|
-
"type": "uint256"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"indexed": false,
|
|
28
|
-
"internalType": "uint256",
|
|
29
|
-
"name": "fee",
|
|
30
|
-
"type": "uint256"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
"name": "BuyGem",
|
|
34
|
-
"type": "event"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"anonymous": false,
|
|
38
|
-
"inputs": [
|
|
39
|
-
{
|
|
40
|
-
"indexed": false,
|
|
41
|
-
"internalType": "address",
|
|
42
|
-
"name": "user",
|
|
43
|
-
"type": "address"
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"name": "Deny",
|
|
47
|
-
"type": "event"
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"anonymous": false,
|
|
51
|
-
"inputs": [
|
|
52
|
-
{
|
|
53
|
-
"indexed": true,
|
|
54
|
-
"internalType": "bytes32",
|
|
55
|
-
"name": "what",
|
|
56
|
-
"type": "bytes32"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"indexed": false,
|
|
60
|
-
"internalType": "uint256",
|
|
61
|
-
"name": "data",
|
|
62
|
-
"type": "uint256"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"name": "File",
|
|
66
|
-
"type": "event"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"anonymous": false,
|
|
70
|
-
"inputs": [
|
|
71
|
-
{
|
|
72
|
-
"indexed": false,
|
|
73
|
-
"internalType": "address",
|
|
74
|
-
"name": "user",
|
|
75
|
-
"type": "address"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"name": "Rely",
|
|
79
|
-
"type": "event"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"anonymous": false,
|
|
83
|
-
"inputs": [
|
|
84
|
-
{
|
|
85
|
-
"indexed": true,
|
|
86
|
-
"internalType": "address",
|
|
87
|
-
"name": "owner",
|
|
88
|
-
"type": "address"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"indexed": false,
|
|
92
|
-
"internalType": "uint256",
|
|
93
|
-
"name": "value",
|
|
94
|
-
"type": "uint256"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"indexed": false,
|
|
98
|
-
"internalType": "uint256",
|
|
99
|
-
"name": "fee",
|
|
100
|
-
"type": "uint256"
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"name": "SellGem",
|
|
104
|
-
"type": "event"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"inputs": [
|
|
108
|
-
{ "internalType": "address", "name": "usr", "type": "address" },
|
|
109
|
-
{ "internalType": "uint256", "name": "gemAmt", "type": "uint256" }
|
|
110
|
-
],
|
|
111
|
-
"name": "buyGem",
|
|
112
|
-
"outputs": [],
|
|
113
|
-
"stateMutability": "nonpayable",
|
|
114
|
-
"type": "function"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
"inputs": [],
|
|
118
|
-
"name": "dai",
|
|
119
|
-
"outputs": [
|
|
120
|
-
{ "internalType": "contract DaiAbstract", "name": "", "type": "address" }
|
|
121
|
-
],
|
|
122
|
-
"stateMutability": "view",
|
|
123
|
-
"type": "function"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"inputs": [],
|
|
127
|
-
"name": "daiJoin",
|
|
128
|
-
"outputs": [
|
|
129
|
-
{
|
|
130
|
-
"internalType": "contract DaiJoinAbstract",
|
|
131
|
-
"name": "",
|
|
132
|
-
"type": "address"
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
"stateMutability": "view",
|
|
136
|
-
"type": "function"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"inputs": [{ "internalType": "address", "name": "usr", "type": "address" }],
|
|
140
|
-
"name": "deny",
|
|
141
|
-
"outputs": [],
|
|
142
|
-
"stateMutability": "nonpayable",
|
|
143
|
-
"type": "function"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"inputs": [
|
|
147
|
-
{ "internalType": "bytes32", "name": "what", "type": "bytes32" },
|
|
148
|
-
{ "internalType": "uint256", "name": "data", "type": "uint256" }
|
|
149
|
-
],
|
|
150
|
-
"name": "file",
|
|
151
|
-
"outputs": [],
|
|
152
|
-
"stateMutability": "nonpayable",
|
|
153
|
-
"type": "function"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"inputs": [],
|
|
157
|
-
"name": "gemJoin",
|
|
158
|
-
"outputs": [
|
|
159
|
-
{
|
|
160
|
-
"internalType": "contract AuthGemJoinAbstract",
|
|
161
|
-
"name": "",
|
|
162
|
-
"type": "address"
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
"stateMutability": "view",
|
|
166
|
-
"type": "function"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"inputs": [{ "internalType": "address", "name": "usr", "type": "address" }],
|
|
170
|
-
"name": "hope",
|
|
171
|
-
"outputs": [],
|
|
172
|
-
"stateMutability": "nonpayable",
|
|
173
|
-
"type": "function"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"inputs": [],
|
|
177
|
-
"name": "ilk",
|
|
178
|
-
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
|
|
179
|
-
"stateMutability": "view",
|
|
180
|
-
"type": "function"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"inputs": [{ "internalType": "address", "name": "usr", "type": "address" }],
|
|
184
|
-
"name": "nope",
|
|
185
|
-
"outputs": [],
|
|
186
|
-
"stateMutability": "nonpayable",
|
|
187
|
-
"type": "function"
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
"inputs": [{ "internalType": "address", "name": "usr", "type": "address" }],
|
|
191
|
-
"name": "rely",
|
|
192
|
-
"outputs": [],
|
|
193
|
-
"stateMutability": "nonpayable",
|
|
194
|
-
"type": "function"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"inputs": [
|
|
198
|
-
{ "internalType": "address", "name": "usr", "type": "address" },
|
|
199
|
-
{ "internalType": "uint256", "name": "gemAmt", "type": "uint256" }
|
|
200
|
-
],
|
|
201
|
-
"name": "sellGem",
|
|
202
|
-
"outputs": [],
|
|
203
|
-
"stateMutability": "nonpayable",
|
|
204
|
-
"type": "function"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"inputs": [],
|
|
208
|
-
"name": "tin",
|
|
209
|
-
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
|
|
210
|
-
"stateMutability": "view",
|
|
211
|
-
"type": "function"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"inputs": [],
|
|
215
|
-
"name": "tout",
|
|
216
|
-
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
|
|
217
|
-
"stateMutability": "view",
|
|
218
|
-
"type": "function"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"inputs": [],
|
|
222
|
-
"name": "vat",
|
|
223
|
-
"outputs": [
|
|
224
|
-
{ "internalType": "contract VatAbstract", "name": "", "type": "address" }
|
|
225
|
-
],
|
|
226
|
-
"stateMutability": "view",
|
|
227
|
-
"type": "function"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
"inputs": [],
|
|
231
|
-
"name": "vow",
|
|
232
|
-
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
233
|
-
"stateMutability": "view",
|
|
234
|
-
"type": "function"
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
238
|
-
"name": "wards",
|
|
239
|
-
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
|
|
240
|
-
"stateMutability": "view",
|
|
241
|
-
"type": "function"
|
|
242
|
-
}
|
|
243
|
-
]
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
/* eslint-disable no-console */
|
|
7
|
-
const dotenv_1 = __importDefault(require("dotenv"));
|
|
8
|
-
dotenv_1.default.config();
|
|
9
|
-
const constants_1 = require("../../../constants");
|
|
10
|
-
const dex_helper_1 = require("../../../dex-helper");
|
|
11
|
-
const config_1 = require("./../config");
|
|
12
|
-
const solidly_v3_1 = require("../solidly-v3");
|
|
13
|
-
const dex = 'SolidlyV3';
|
|
14
|
-
const factory = config_1.SolidlyV3Config[dex][constants_1.Network.MAINNET].factory;
|
|
15
|
-
const blockHeaders = {};
|
|
16
|
-
async function checkForPoolEvents(startBlockNumber, endBlockNumber) {
|
|
17
|
-
const network = constants_1.Network.MAINNET;
|
|
18
|
-
const dexHelper = new dex_helper_1.DummyDexHelper(network);
|
|
19
|
-
const solidlyV3 = new solidly_v3_1.SolidlyV3(network, dex, dexHelper);
|
|
20
|
-
await solidlyV3.initializePricing(startBlockNumber);
|
|
21
|
-
const logsToDispatch = await dexHelper.provider.getLogs({
|
|
22
|
-
fromBlock: startBlockNumber,
|
|
23
|
-
toBlock: endBlockNumber,
|
|
24
|
-
address: factory,
|
|
25
|
-
});
|
|
26
|
-
const logsByBlockNumber = {};
|
|
27
|
-
for (let log of logsToDispatch) {
|
|
28
|
-
if (!logsByBlockNumber[log.blockNumber]) {
|
|
29
|
-
logsByBlockNumber[log.blockNumber] = [];
|
|
30
|
-
}
|
|
31
|
-
logsByBlockNumber[log.blockNumber].push(log);
|
|
32
|
-
}
|
|
33
|
-
const sortedBlocks = Object.keys(logsByBlockNumber)
|
|
34
|
-
.map(Number)
|
|
35
|
-
.sort((a, b) => Number(a) - Number(b));
|
|
36
|
-
for (let blockNumber of sortedBlocks) {
|
|
37
|
-
if (!blockHeaders[blockNumber]) {
|
|
38
|
-
blockHeaders[blockNumber] = await dexHelper.web3Provider.eth.getBlock(blockNumber);
|
|
39
|
-
}
|
|
40
|
-
await solidlyV3.factory?.update(logsByBlockNumber[blockNumber], {
|
|
41
|
-
[blockNumber]: blockHeaders[blockNumber],
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
return true;
|
|
45
|
-
}
|
|
46
|
-
async function main() {
|
|
47
|
-
// event for https://etherscan.io/tx/0x2bef7c17f3f775525f076aeb20567ee25eb820e92aa8422fbfe4bed652fd2bd3
|
|
48
|
-
checkForPoolEvents(18758010, 18758019);
|
|
49
|
-
}
|
|
50
|
-
main()
|
|
51
|
-
.then(() => console.log('Done'))
|
|
52
|
-
.catch(e => console.error(e));
|
|
53
|
-
//# sourceMappingURL=check-event-pool-event.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"check-event-pool-event.js","sourceRoot":"","sources":["../../../../src/dex/solidly-v3/scripts/check-event-pool-event.ts"],"names":[],"mappings":";;;;;AAAA,+BAA+B;AAC/B,oDAA4B;AAC5B,gBAAM,CAAC,MAAM,EAAE,CAAC;AAIhB,kDAA6C;AAC7C,oDAAqD;AACrD,wCAA8C;AAC9C,8CAA0C;AAE1C,MAAM,GAAG,GAAG,WAAW,CAAC;AACxB,MAAM,OAAO,GAAG,wBAAe,CAAC,GAAG,CAAC,CAAC,mBAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC;AAC9D,MAAM,YAAY,GAAgC,EAAE,CAAC;AAErD,KAAK,UAAU,kBAAkB,CAC/B,gBAAwB,EACxB,cAAsB;IAEtB,MAAM,OAAO,GAAG,mBAAO,CAAC,OAAO,CAAC;IAChC,MAAM,SAAS,GAAG,IAAI,2BAAc,CAAC,OAAO,CAAC,CAAC;IAE9C,MAAM,SAAS,GAAG,IAAI,sBAAS,CAAC,OAAO,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC;IACzD,MAAM,SAAS,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;IAEpD,MAAM,cAAc,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC;QACtD,SAAS,EAAE,gBAAgB;QAC3B,OAAO,EAAE,cAAc;QACvB,OAAO,EAAE,OAAO;KACjB,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAA0B,EAAE,CAAC;IACpD,KAAK,IAAI,GAAG,IAAI,cAAc,EAAE;QAC9B,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;YACvC,iBAAiB,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC;SACzC;QACD,iBAAiB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC9C;IAED,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC;SAChD,GAAG,CAAC,MAAM,CAAC;SACX,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAEzC,KAAK,IAAI,WAAW,IAAI,YAAY,EAAE;QACpC,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE;YAC9B,YAAY,CAAC,WAAW,CAAC,GAAG,MAAM,SAAS,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CACnE,WAAW,CACZ,CAAC;SACH;QAED,MAAM,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE;YAC9D,CAAC,WAAW,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC;SACzC,CAAC,CAAC;KACJ;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,uGAAuG;IACvG,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;AACzC,CAAC;AAED,IAAI,EAAE;KACH,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KAC/B,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Network, SwapSide } from '../../../../constants';
|
|
2
|
-
import { IDexHelper } from '../../../../dex-helper';
|
|
3
|
-
import { DexConfigMap, SimpleExchangeParam } from '../../../../types';
|
|
4
|
-
import { DexParams, UniswapV3Data } from '../../types';
|
|
5
|
-
import { UniswapV3 } from '../../uniswap-v3';
|
|
6
|
-
export declare const AlienBaseV3Config: DexConfigMap<DexParams>;
|
|
7
|
-
export declare class AlienBaseV3 extends UniswapV3 {
|
|
8
|
-
protected network: Network;
|
|
9
|
-
protected dexHelper: IDexHelper;
|
|
10
|
-
static dexKeysWithNetwork: {
|
|
11
|
-
key: string;
|
|
12
|
-
networks: Network[];
|
|
13
|
-
}[];
|
|
14
|
-
constructor(network: Network, dexKey: string, dexHelper: IDexHelper);
|
|
15
|
-
static getDirectFunctionName(): string[];
|
|
16
|
-
getSimpleParam(srcToken: string, destToken: string, srcAmount: string, destAmount: string, data: UniswapV3Data, side: SwapSide): Promise<SimpleExchangeParam>;
|
|
17
|
-
}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AlienBaseV3 = exports.AlienBaseV3Config = void 0;
|
|
7
|
-
const abi_1 = require("@ethersproject/abi");
|
|
8
|
-
const constants_1 = require("../../../../constants");
|
|
9
|
-
const utils_1 = require("../../../../utils");
|
|
10
|
-
const types_1 = require("../../types");
|
|
11
|
-
const uniswap_v3_1 = require("../../uniswap-v3");
|
|
12
|
-
const AlienBaseV3Router_abi_json_1 = __importDefault(require("../../../../abi/uniswap-v3/AlienBaseV3Router.abi.json"));
|
|
13
|
-
exports.AlienBaseV3Config = {
|
|
14
|
-
AlienBaseV3: {
|
|
15
|
-
[constants_1.Network.BASE]: {
|
|
16
|
-
factory: '0x0Fd83557b2be93617c9C1C1B6fd549401C74558C',
|
|
17
|
-
quoter: '0x4fDBD73aD4B1DDde594BF05497C15f76308eFfb9',
|
|
18
|
-
router: '0xB20C411FC84FBB27e78608C24d0056D974ea9411',
|
|
19
|
-
supportedFees: [10000n, 3000n, 750n, 200n],
|
|
20
|
-
stateMulticall: '0x7160f736c52e1e78e92FD4eE4D73e21A7Cf4F950',
|
|
21
|
-
uniswapMulticall: '0x091e99cb1C49331a94dD62755D168E941AbD0693',
|
|
22
|
-
chunksCount: 10,
|
|
23
|
-
initRetryFrequency: 10,
|
|
24
|
-
initHash: `0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54`,
|
|
25
|
-
subgraphURL: 'https://api.studio.thegraph.com/query/59130/v3alb/0.3',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
class AlienBaseV3 extends uniswap_v3_1.UniswapV3 {
|
|
30
|
-
constructor(network, dexKey, dexHelper) {
|
|
31
|
-
super(network, dexKey, dexHelper, {}, new abi_1.Interface(AlienBaseV3Router_abi_json_1.default), undefined, exports.AlienBaseV3Config[dexKey][network]);
|
|
32
|
-
this.network = network;
|
|
33
|
-
this.dexHelper = dexHelper;
|
|
34
|
-
}
|
|
35
|
-
static getDirectFunctionName() {
|
|
36
|
-
return [];
|
|
37
|
-
}
|
|
38
|
-
async getSimpleParam(srcToken, destToken, srcAmount, destAmount, data, side) {
|
|
39
|
-
const swapFunction = side === constants_1.SwapSide.SELL
|
|
40
|
-
? types_1.UniswapV3Functions.exactInput
|
|
41
|
-
: types_1.UniswapV3Functions.exactOutput;
|
|
42
|
-
const path = this._encodePath(data.path, side);
|
|
43
|
-
const swapFunctionParams = side === constants_1.SwapSide.SELL
|
|
44
|
-
? {
|
|
45
|
-
recipient: this.augustusAddress,
|
|
46
|
-
amountIn: srcAmount,
|
|
47
|
-
amountOutMinimum: destAmount,
|
|
48
|
-
path,
|
|
49
|
-
}
|
|
50
|
-
: {
|
|
51
|
-
recipient: this.augustusAddress,
|
|
52
|
-
amountOut: destAmount,
|
|
53
|
-
amountInMaximum: srcAmount,
|
|
54
|
-
path,
|
|
55
|
-
};
|
|
56
|
-
const swapData = this.routerIface.encodeFunctionData(swapFunction, [
|
|
57
|
-
swapFunctionParams,
|
|
58
|
-
]);
|
|
59
|
-
return this.buildSimpleParamWithoutWETHConversion(srcToken, srcAmount, destToken, destAmount, swapData, this.config.router);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.AlienBaseV3 = AlienBaseV3;
|
|
63
|
-
AlienBaseV3.dexKeysWithNetwork = (0, utils_1.getDexKeysWithNetwork)(exports.AlienBaseV3Config);
|
|
64
|
-
//# sourceMappingURL=alien-base-v3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alien-base-v3.js","sourceRoot":"","sources":["../../../../../src/dex/uniswap-v3/forks/alien-base-v3/alien-base-v3.ts"],"names":[],"mappings":";;;;;;AAAA,4CAA+C;AAC/C,qDAA0D;AAG1D,6CAA0D;AAC1D,uCAMqB;AACrB,iDAA6C;AAC7C,uHAAyF;AAE5E,QAAA,iBAAiB,GAA4B;IACxD,WAAW,EAAE;QACX,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE;YACd,OAAO,EAAE,4CAA4C;YACrD,MAAM,EAAE,4CAA4C;YACpD,MAAM,EAAE,4CAA4C;YACpD,aAAa,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC;YAC1C,cAAc,EAAE,4CAA4C;YAC5D,gBAAgB,EAAE,4CAA4C;YAC9D,WAAW,EAAE,EAAE;YACf,kBAAkB,EAAE,EAAE;YACtB,QAAQ,EAAE,oEAAoE;YAC9E,WAAW,EAAE,uDAAuD;SACrE;KACF;CACF,CAAC;AAMF,MAAa,WAAY,SAAQ,sBAAS;IAIxC,YACY,OAAgB,EAC1B,MAAc,EACJ,SAAqB;QAE/B,KAAK,CACH,OAAO,EACP,MAAM,EACN,SAAS,EACT,EAAE,EACF,IAAI,eAAS,CAAC,oCAAoB,CAAC,EACnC,SAAS,EACT,yBAAiB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CACnC,CAAC;QAZQ,YAAO,GAAP,OAAO,CAAS;QAEhB,cAAS,GAAT,SAAS,CAAY;IAWjC,CAAC;IAED,MAAM,CAAC,qBAAqB;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,QAAgB,EAChB,SAAiB,EACjB,SAAiB,EACjB,UAAkB,EAClB,IAAmB,EACnB,IAAc;QAEd,MAAM,YAAY,GAChB,IAAI,KAAK,oBAAQ,CAAC,IAAI;YACpB,CAAC,CAAC,0BAAkB,CAAC,UAAU;YAC/B,CAAC,CAAC,0BAAkB,CAAC,WAAW,CAAC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC/C,MAAM,kBAAkB,GACtB,IAAI,KAAK,oBAAQ,CAAC,IAAI;YACpB,CAAC,CAAC;gBACE,SAAS,EAAE,IAAI,CAAC,eAAe;gBAC/B,QAAQ,EAAE,SAAS;gBACnB,gBAAgB,EAAE,UAAU;gBAC5B,IAAI;aACL;YACH,CAAC,CAAC;gBACE,SAAS,EAAE,IAAI,CAAC,eAAe;gBAC/B,SAAS,EAAE,UAAU;gBACrB,eAAe,EAAE,SAAS;gBAC1B,IAAI;aACL,CAAC;QAER,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,YAAY,EAAE;YACjE,kBAAkB;SACnB,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,qCAAqC,CAC/C,QAAQ,EACR,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACR,IAAI,CAAC,MAAM,CAAC,MAAM,CACnB,CAAC;IACJ,CAAC;;AAjEH,kCAkEC;AAjEe,8BAAkB,GAC9B,IAAA,6BAAqB,EAAC,yBAAiB,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Network, SwapSide } from '../../../../constants';
|
|
2
|
-
import { IDexHelper } from '../../../../dex-helper';
|
|
3
|
-
import { DexConfigMap, SimpleExchangeParam } from '../../../../types';
|
|
4
|
-
import { DexParams, UniswapV3Data } from '../../types';
|
|
5
|
-
import { UniswapV3 } from '../../uniswap-v3';
|
|
6
|
-
export declare const AlienBaseV3Config: DexConfigMap<DexParams>;
|
|
7
|
-
export declare class AlienV3 extends UniswapV3 {
|
|
8
|
-
protected network: Network;
|
|
9
|
-
protected dexHelper: IDexHelper;
|
|
10
|
-
static dexKeysWithNetwork: {
|
|
11
|
-
key: string;
|
|
12
|
-
networks: Network[];
|
|
13
|
-
}[];
|
|
14
|
-
constructor(network: Network, dexKey: string, dexHelper: IDexHelper);
|
|
15
|
-
static getDirectFunctionName(): string[];
|
|
16
|
-
getSimpleParam(srcToken: string, destToken: string, srcAmount: string, destAmount: string, data: UniswapV3Data, side: SwapSide): Promise<SimpleExchangeParam>;
|
|
17
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AlienV3 = exports.AlienBaseV3Config = void 0;
|
|
7
|
-
const abi_1 = require("@ethersproject/abi");
|
|
8
|
-
const constants_1 = require("../../../../constants");
|
|
9
|
-
const utils_1 = require("../../../../utils");
|
|
10
|
-
const types_1 = require("../../types");
|
|
11
|
-
const uniswap_v3_1 = require("../../uniswap-v3");
|
|
12
|
-
const AlienBaseV3Router_abi_json_1 = __importDefault(require("../../../../abi/uniswap-v3/AlienBaseV3Router.abi.json"));
|
|
13
|
-
exports.AlienBaseV3Config = {
|
|
14
|
-
AlienV3: {
|
|
15
|
-
[constants_1.Network.BASE]: {
|
|
16
|
-
factory: '0x0Fd83557b2be93617c9C1C1B6fd549401C74558C',
|
|
17
|
-
quoter: '0x4fDBD73aD4B1DDde594BF05497C15f76308eFfb9',
|
|
18
|
-
router: '0xB20C411FC84FBB27e78608C24d0056D974ea9411',
|
|
19
|
-
supportedFees: [10000n, 3000n, 750n, 200n],
|
|
20
|
-
stateMulticall: '0x7160f736c52e1e78e92FD4eE4D73e21A7Cf4F950',
|
|
21
|
-
uniswapMulticall: '0x091e99cb1C49331a94dD62755D168E941AbD0693',
|
|
22
|
-
chunksCount: 10,
|
|
23
|
-
initRetryFrequency: 10,
|
|
24
|
-
initHash: `0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54`,
|
|
25
|
-
subgraphURL: 'https://api.studio.thegraph.com/query/59130/v3alb/0.3',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
DackieSwapV3: {
|
|
29
|
-
[constants_1.Network.BASE]: {
|
|
30
|
-
factory: '0x3D237AC6D2f425D2E890Cc99198818cc1FA48870',
|
|
31
|
-
quoter: '0x4fDBD73aD4B1DDde594BF05497C15f76308eFfb9',
|
|
32
|
-
router: '0x195FBc5B8Fbd5Ac739C1BA57D4Ef6D5a704F34f7',
|
|
33
|
-
// supportedFees: [10000n, 2500n, 500n, 100n],
|
|
34
|
-
supportedFees: [100n],
|
|
35
|
-
stateMulticall: '0x7160f736c52e1e78e92FD4eE4D73e21A7Cf4F950',
|
|
36
|
-
uniswapMulticall: '0x091e99cb1C49331a94dD62755D168E941AbD0693',
|
|
37
|
-
chunksCount: 10,
|
|
38
|
-
initRetryFrequency: 10,
|
|
39
|
-
initHash: `0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2`,
|
|
40
|
-
subgraphURL: 'https://api.studio.thegraph.com/query/59130/v3alb/0.3',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
class AlienV3 extends uniswap_v3_1.UniswapV3 {
|
|
45
|
-
constructor(network, dexKey, dexHelper) {
|
|
46
|
-
super(network, dexKey, dexHelper, {}, new abi_1.Interface(AlienBaseV3Router_abi_json_1.default), undefined, exports.AlienBaseV3Config[dexKey][network]);
|
|
47
|
-
this.network = network;
|
|
48
|
-
this.dexHelper = dexHelper;
|
|
49
|
-
}
|
|
50
|
-
static getDirectFunctionName() {
|
|
51
|
-
return [];
|
|
52
|
-
}
|
|
53
|
-
async getSimpleParam(srcToken, destToken, srcAmount, destAmount, data, side) {
|
|
54
|
-
const swapFunction = side === constants_1.SwapSide.SELL
|
|
55
|
-
? types_1.UniswapV3Functions.exactInput
|
|
56
|
-
: types_1.UniswapV3Functions.exactOutput;
|
|
57
|
-
const path = this._encodePath(data.path, side);
|
|
58
|
-
const swapFunctionParams = side === constants_1.SwapSide.SELL
|
|
59
|
-
? {
|
|
60
|
-
recipient: this.augustusAddress,
|
|
61
|
-
amountIn: srcAmount,
|
|
62
|
-
amountOutMinimum: destAmount,
|
|
63
|
-
path,
|
|
64
|
-
}
|
|
65
|
-
: {
|
|
66
|
-
recipient: this.augustusAddress,
|
|
67
|
-
amountOut: destAmount,
|
|
68
|
-
amountInMaximum: srcAmount,
|
|
69
|
-
path,
|
|
70
|
-
};
|
|
71
|
-
const swapData = this.routerIface.encodeFunctionData(swapFunction, [
|
|
72
|
-
swapFunctionParams,
|
|
73
|
-
]);
|
|
74
|
-
return this.buildSimpleParamWithoutWETHConversion(srcToken, srcAmount, destToken, destAmount, swapData, this.config.router);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.AlienV3 = AlienV3;
|
|
78
|
-
AlienV3.dexKeysWithNetwork = (0, utils_1.getDexKeysWithNetwork)(exports.AlienBaseV3Config);
|
|
79
|
-
//# sourceMappingURL=alien-v3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alien-v3.js","sourceRoot":"","sources":["../../../../../src/dex/uniswap-v3/forks/alien-v3/alien-v3.ts"],"names":[],"mappings":";;;;;;AAAA,4CAA+C;AAC/C,qDAA0D;AAG1D,6CAA0D;AAC1D,uCAMqB;AACrB,iDAA6C;AAC7C,uHAAyF;AAE5E,QAAA,iBAAiB,GAA4B;IACxD,OAAO,EAAE;QACP,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE;YACd,OAAO,EAAE,4CAA4C;YACrD,MAAM,EAAE,4CAA4C;YACpD,MAAM,EAAE,4CAA4C;YACpD,aAAa,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC;YAC1C,cAAc,EAAE,4CAA4C;YAC5D,gBAAgB,EAAE,4CAA4C;YAC9D,WAAW,EAAE,EAAE;YACf,kBAAkB,EAAE,EAAE;YACtB,QAAQ,EAAE,oEAAoE;YAC9E,WAAW,EAAE,uDAAuD;SACrE;KACF;IACD,YAAY,EAAE;QACZ,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE;YACd,OAAO,EAAE,4CAA4C;YACrD,MAAM,EAAE,4CAA4C;YACpD,MAAM,EAAE,4CAA4C;YACpD,8CAA8C;YAC9C,aAAa,EAAE,CAAC,IAAI,CAAC;YACrB,cAAc,EAAE,4CAA4C;YAC5D,gBAAgB,EAAE,4CAA4C;YAC9D,WAAW,EAAE,EAAE;YACf,kBAAkB,EAAE,EAAE;YACtB,QAAQ,EAAE,oEAAoE;YAC9E,WAAW,EAAE,uDAAuD;SACrE;KACF;CACF,CAAC;AAMF,MAAa,OAAQ,SAAQ,sBAAS;IAIpC,YACY,OAAgB,EAC1B,MAAc,EACJ,SAAqB;QAE/B,KAAK,CACH,OAAO,EACP,MAAM,EACN,SAAS,EACT,EAAE,EACF,IAAI,eAAS,CAAC,oCAAoB,CAAC,EACnC,SAAS,EACT,yBAAiB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CACnC,CAAC;QAZQ,YAAO,GAAP,OAAO,CAAS;QAEhB,cAAS,GAAT,SAAS,CAAY;IAWjC,CAAC;IAED,MAAM,CAAC,qBAAqB;QAC1B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,QAAgB,EAChB,SAAiB,EACjB,SAAiB,EACjB,UAAkB,EAClB,IAAmB,EACnB,IAAc;QAEd,MAAM,YAAY,GAChB,IAAI,KAAK,oBAAQ,CAAC,IAAI;YACpB,CAAC,CAAC,0BAAkB,CAAC,UAAU;YAC/B,CAAC,CAAC,0BAAkB,CAAC,WAAW,CAAC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC/C,MAAM,kBAAkB,GACtB,IAAI,KAAK,oBAAQ,CAAC,IAAI;YACpB,CAAC,CAAC;gBACE,SAAS,EAAE,IAAI,CAAC,eAAe;gBAC/B,QAAQ,EAAE,SAAS;gBACnB,gBAAgB,EAAE,UAAU;gBAC5B,IAAI;aACL;YACH,CAAC,CAAC;gBACE,SAAS,EAAE,IAAI,CAAC,eAAe;gBAC/B,SAAS,EAAE,UAAU;gBACrB,eAAe,EAAE,SAAS;gBAC1B,IAAI;aACL,CAAC;QAER,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,YAAY,EAAE;YACjE,kBAAkB;SACnB,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC,qCAAqC,CAC/C,QAAQ,EACR,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACR,IAAI,CAAC,MAAM,CAAC,MAAM,CACnB,CAAC;IACJ,CAAC;;AAjEH,0BAkEC;AAjEe,0BAAkB,GAC9B,IAAA,6BAAqB,EAAC,yBAAiB,CAAC,CAAC"}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"inputs": [
|
|
4
|
-
{ "internalType": "address", "name": "vat_", "type": "address" },
|
|
5
|
-
{ "internalType": "bytes32", "name": "ilk_", "type": "bytes32" },
|
|
6
|
-
{ "internalType": "address", "name": "gem_", "type": "address" }
|
|
7
|
-
],
|
|
8
|
-
"stateMutability": "nonpayable",
|
|
9
|
-
"type": "constructor"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"anonymous": true,
|
|
13
|
-
"inputs": [
|
|
14
|
-
{
|
|
15
|
-
"indexed": true,
|
|
16
|
-
"internalType": "bytes4",
|
|
17
|
-
"name": "sig",
|
|
18
|
-
"type": "bytes4"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"indexed": true,
|
|
22
|
-
"internalType": "address",
|
|
23
|
-
"name": "usr",
|
|
24
|
-
"type": "address"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"indexed": true,
|
|
28
|
-
"internalType": "bytes32",
|
|
29
|
-
"name": "arg1",
|
|
30
|
-
"type": "bytes32"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"indexed": true,
|
|
34
|
-
"internalType": "bytes32",
|
|
35
|
-
"name": "arg2",
|
|
36
|
-
"type": "bytes32"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"indexed": false,
|
|
40
|
-
"internalType": "bytes",
|
|
41
|
-
"name": "data",
|
|
42
|
-
"type": "bytes"
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"name": "LogNote",
|
|
46
|
-
"type": "event"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"inputs": [],
|
|
50
|
-
"name": "cage",
|
|
51
|
-
"outputs": [],
|
|
52
|
-
"stateMutability": "nonpayable",
|
|
53
|
-
"type": "function"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"inputs": [],
|
|
57
|
-
"name": "dec",
|
|
58
|
-
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
|
|
59
|
-
"stateMutability": "view",
|
|
60
|
-
"type": "function"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"inputs": [{ "internalType": "address", "name": "usr", "type": "address" }],
|
|
64
|
-
"name": "deny",
|
|
65
|
-
"outputs": [],
|
|
66
|
-
"stateMutability": "nonpayable",
|
|
67
|
-
"type": "function"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"inputs": [
|
|
71
|
-
{ "internalType": "address", "name": "guy", "type": "address" },
|
|
72
|
-
{ "internalType": "uint256", "name": "wad", "type": "uint256" }
|
|
73
|
-
],
|
|
74
|
-
"name": "exit",
|
|
75
|
-
"outputs": [],
|
|
76
|
-
"stateMutability": "nonpayable",
|
|
77
|
-
"type": "function"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"inputs": [],
|
|
81
|
-
"name": "gem",
|
|
82
|
-
"outputs": [
|
|
83
|
-
{ "internalType": "contract GemLike_2", "name": "", "type": "address" }
|
|
84
|
-
],
|
|
85
|
-
"stateMutability": "view",
|
|
86
|
-
"type": "function"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"inputs": [],
|
|
90
|
-
"name": "ilk",
|
|
91
|
-
"outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }],
|
|
92
|
-
"stateMutability": "view",
|
|
93
|
-
"type": "function"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
"inputs": [
|
|
97
|
-
{ "internalType": "address", "name": "urn", "type": "address" },
|
|
98
|
-
{ "internalType": "uint256", "name": "wad", "type": "uint256" },
|
|
99
|
-
{ "internalType": "address", "name": "_msgSender", "type": "address" }
|
|
100
|
-
],
|
|
101
|
-
"name": "join",
|
|
102
|
-
"outputs": [],
|
|
103
|
-
"stateMutability": "nonpayable",
|
|
104
|
-
"type": "function"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"inputs": [],
|
|
108
|
-
"name": "live",
|
|
109
|
-
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
|
|
110
|
-
"stateMutability": "view",
|
|
111
|
-
"type": "function"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"inputs": [{ "internalType": "address", "name": "usr", "type": "address" }],
|
|
115
|
-
"name": "rely",
|
|
116
|
-
"outputs": [],
|
|
117
|
-
"stateMutability": "nonpayable",
|
|
118
|
-
"type": "function"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"inputs": [],
|
|
122
|
-
"name": "vat",
|
|
123
|
-
"outputs": [
|
|
124
|
-
{ "internalType": "contract VatLike_4", "name": "", "type": "address" }
|
|
125
|
-
],
|
|
126
|
-
"stateMutability": "view",
|
|
127
|
-
"type": "function"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
|
|
131
|
-
"name": "wards",
|
|
132
|
-
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
|
|
133
|
-
"stateMutability": "view",
|
|
134
|
-
"type": "function"
|
|
135
|
-
}
|
|
136
|
-
]
|