@clober/v2-sdk 0.0.59 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/abis/rebalancer/minter-abi.js +262 -0
- package/dist/cjs/abis/rebalancer/minter-abi.js.map +1 -0
- package/dist/cjs/abis/rebalancer/mock-swap-abi.js +95 -0
- package/dist/cjs/abis/rebalancer/mock-swap-abi.js.map +1 -0
- package/dist/cjs/abis/rebalancer/operator-abi.js +370 -0
- package/dist/cjs/abis/rebalancer/operator-abi.js.map +1 -0
- package/dist/cjs/abis/rebalancer/rebalancer-abi.js +1235 -0
- package/dist/cjs/abis/rebalancer/rebalancer-abi.js.map +1 -0
- package/dist/cjs/abis/rebalancer/strategy-abi.js +633 -0
- package/dist/cjs/abis/rebalancer/strategy-abi.js.map +1 -0
- package/dist/cjs/apis/market.js +2 -2
- package/dist/cjs/apis/market.js.map +1 -1
- package/dist/cjs/apis/odos.js +100 -0
- package/dist/cjs/apis/odos.js.map +1 -0
- package/dist/cjs/apis/pool.js +61 -0
- package/dist/cjs/apis/pool.js.map +1 -0
- package/dist/cjs/apis/strategy.js +23 -0
- package/dist/cjs/apis/strategy.js.map +1 -0
- package/dist/cjs/call.js +359 -1
- package/dist/cjs/call.js.map +1 -1
- package/dist/cjs/constants/addresses.js +23 -3
- package/dist/cjs/constants/addresses.js.map +1 -1
- package/dist/cjs/constants/chain.js +5 -1
- package/dist/cjs/constants/chain.js.map +1 -1
- package/dist/cjs/constants/permit.js +13 -0
- package/dist/cjs/constants/permit.js.map +1 -0
- package/dist/cjs/constants/subgraph.js +1 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/model/market.js +45 -0
- package/dist/cjs/model/market.js.map +1 -1
- package/dist/cjs/model/pool.js +136 -0
- package/dist/cjs/model/pool.js.map +1 -0
- package/dist/cjs/model/strategy.js +3 -0
- package/dist/cjs/model/strategy.js.map +1 -0
- package/dist/cjs/type.js.map +1 -1
- package/dist/cjs/utils/math.js +3 -1
- package/dist/cjs/utils/math.js.map +1 -1
- package/dist/cjs/utils/open.js +34 -35
- package/dist/cjs/utils/open.js.map +1 -1
- package/dist/cjs/utils/pool-key.js +17 -0
- package/dist/cjs/utils/pool-key.js.map +1 -0
- package/dist/cjs/utils/pool.js +88 -0
- package/dist/cjs/utils/pool.js.map +1 -0
- package/dist/cjs/utils/prices.js +7 -2
- package/dist/cjs/utils/prices.js.map +1 -1
- package/dist/cjs/view.js +37 -30
- package/dist/cjs/view.js.map +1 -1
- package/dist/esm/abis/rebalancer/minter-abi.js +259 -0
- package/dist/esm/abis/rebalancer/minter-abi.js.map +1 -0
- package/dist/esm/abis/rebalancer/mock-swap-abi.js +92 -0
- package/dist/esm/abis/rebalancer/mock-swap-abi.js.map +1 -0
- package/dist/esm/abis/rebalancer/operator-abi.js +367 -0
- package/dist/esm/abis/rebalancer/operator-abi.js.map +1 -0
- package/dist/esm/abis/rebalancer/rebalancer-abi.js +1232 -0
- package/dist/esm/abis/rebalancer/rebalancer-abi.js.map +1 -0
- package/dist/esm/abis/rebalancer/strategy-abi.js +630 -0
- package/dist/esm/abis/rebalancer/strategy-abi.js.map +1 -0
- package/dist/esm/apis/market.js +3 -3
- package/dist/esm/apis/market.js.map +1 -1
- package/dist/esm/apis/odos.js +94 -0
- package/dist/esm/apis/odos.js.map +1 -0
- package/dist/esm/apis/pool.js +57 -0
- package/dist/esm/apis/pool.js.map +1 -0
- package/dist/esm/apis/strategy.js +19 -0
- package/dist/esm/apis/strategy.js.map +1 -0
- package/dist/esm/call.js +390 -45
- package/dist/esm/call.js.map +1 -1
- package/dist/esm/constants/addresses.js +24 -4
- package/dist/esm/constants/addresses.js.map +1 -1
- package/dist/esm/constants/chain.js +3 -0
- package/dist/esm/constants/chain.js.map +1 -1
- package/dist/esm/constants/permit.js +10 -0
- package/dist/esm/constants/permit.js.map +1 -0
- package/dist/esm/constants/subgraph.js +1 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/model/market.js +46 -1
- package/dist/esm/model/market.js.map +1 -1
- package/dist/esm/model/pool.js +133 -0
- package/dist/esm/model/pool.js.map +1 -0
- package/dist/esm/model/strategy.js +2 -0
- package/dist/esm/model/strategy.js.map +1 -0
- package/dist/esm/type.js.map +1 -1
- package/dist/esm/utils/math.js +1 -0
- package/dist/esm/utils/math.js.map +1 -1
- package/dist/esm/utils/open.js +32 -33
- package/dist/esm/utils/open.js.map +1 -1
- package/dist/esm/utils/pool-key.js +12 -0
- package/dist/esm/utils/pool-key.js.map +1 -0
- package/dist/esm/utils/pool.js +84 -0
- package/dist/esm/utils/pool.js.map +1 -0
- package/dist/esm/utils/prices.js +5 -1
- package/dist/esm/utils/prices.js.map +1 -1
- package/dist/esm/view.js +62 -43
- package/dist/esm/view.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/abis/rebalancer/minter-abi.d.ts +198 -0
- package/dist/types/abis/rebalancer/minter-abi.d.ts.map +1 -0
- package/dist/types/abis/rebalancer/mock-swap-abi.d.ts +70 -0
- package/dist/types/abis/rebalancer/mock-swap-abi.d.ts.map +1 -0
- package/dist/types/abis/rebalancer/operator-abi.d.ts +283 -0
- package/dist/types/abis/rebalancer/operator-abi.d.ts.map +1 -0
- package/dist/types/abis/rebalancer/rebalancer-abi.d.ts +952 -0
- package/dist/types/abis/rebalancer/rebalancer-abi.d.ts.map +1 -0
- package/dist/types/abis/rebalancer/strategy-abi.d.ts +487 -0
- package/dist/types/abis/rebalancer/strategy-abi.d.ts.map +1 -0
- package/dist/types/apis/odos.d.ts +28 -0
- package/dist/types/apis/odos.d.ts.map +1 -0
- package/dist/types/apis/pool.d.ts +5 -0
- package/dist/types/apis/pool.d.ts.map +1 -0
- package/dist/types/apis/strategy.d.ts +5 -0
- package/dist/types/apis/strategy.d.ts.map +1 -0
- package/dist/types/call.d.ts +108 -44
- package/dist/types/call.d.ts.map +1 -1
- package/dist/types/constants/addresses.d.ts +4 -0
- package/dist/types/constants/addresses.d.ts.map +1 -1
- package/dist/types/constants/chain.d.ts +1 -0
- package/dist/types/constants/chain.d.ts.map +1 -1
- package/dist/types/constants/permit.d.ts +10 -0
- package/dist/types/constants/permit.d.ts.map +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/model/currency.d.ts +7 -0
- package/dist/types/model/currency.d.ts.map +1 -1
- package/dist/types/model/market.d.ts +3 -0
- package/dist/types/model/market.d.ts.map +1 -1
- package/dist/types/model/pool.d.ts +38 -0
- package/dist/types/model/pool.d.ts.map +1 -0
- package/dist/types/model/strategy.d.ts +6 -0
- package/dist/types/model/strategy.d.ts.map +1 -0
- package/dist/types/type.d.ts +20 -1
- package/dist/types/type.d.ts.map +1 -1
- package/dist/types/utils/math.d.ts +1 -0
- package/dist/types/utils/math.d.ts.map +1 -1
- package/dist/types/utils/open.d.ts +1 -1
- package/dist/types/utils/open.d.ts.map +1 -1
- package/dist/types/utils/pool-key.d.ts +3 -0
- package/dist/types/utils/pool-key.d.ts.map +1 -0
- package/dist/types/utils/pool.d.ts +11 -0
- package/dist/types/utils/pool.d.ts.map +1 -0
- package/dist/types/utils/prices.d.ts +1 -0
- package/dist/types/utils/prices.d.ts.map +1 -1
- package/dist/types/view.d.ts +52 -17
- package/dist/types/view.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/signature.js +0 -149
- package/dist/cjs/signature.js.map +0 -1
- package/dist/esm/signature.js +0 -172
- package/dist/esm/signature.js.map +0 -1
- package/dist/types/signature.d.ts +0 -38
- package/dist/types/signature.d.ts.map +0 -1
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
export declare const MINTER_ABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "_bookManager";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "address payable";
|
|
8
|
+
readonly name: "_rebalancer";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "address";
|
|
12
|
+
readonly name: "_router";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}];
|
|
15
|
+
readonly stateMutability: "nonpayable";
|
|
16
|
+
readonly type: "constructor";
|
|
17
|
+
}, {
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly internalType: "address";
|
|
20
|
+
readonly name: "target";
|
|
21
|
+
readonly type: "address";
|
|
22
|
+
}];
|
|
23
|
+
readonly name: "AddressEmptyCode";
|
|
24
|
+
readonly type: "error";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [];
|
|
27
|
+
readonly name: "ERC20TransferFailed";
|
|
28
|
+
readonly type: "error";
|
|
29
|
+
}, {
|
|
30
|
+
readonly inputs: readonly [];
|
|
31
|
+
readonly name: "FailedCall";
|
|
32
|
+
readonly type: "error";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly internalType: "uint256";
|
|
36
|
+
readonly name: "balance";
|
|
37
|
+
readonly type: "uint256";
|
|
38
|
+
}, {
|
|
39
|
+
readonly internalType: "uint256";
|
|
40
|
+
readonly name: "needed";
|
|
41
|
+
readonly type: "uint256";
|
|
42
|
+
}];
|
|
43
|
+
readonly name: "InsufficientBalance";
|
|
44
|
+
readonly type: "error";
|
|
45
|
+
}, {
|
|
46
|
+
readonly inputs: readonly [];
|
|
47
|
+
readonly name: "NativeTransferFailed";
|
|
48
|
+
readonly type: "error";
|
|
49
|
+
}, {
|
|
50
|
+
readonly inputs: readonly [{
|
|
51
|
+
readonly internalType: "bytes";
|
|
52
|
+
readonly name: "message";
|
|
53
|
+
readonly type: "bytes";
|
|
54
|
+
}];
|
|
55
|
+
readonly name: "RouterSwapFailed";
|
|
56
|
+
readonly type: "error";
|
|
57
|
+
}, {
|
|
58
|
+
readonly inputs: readonly [{
|
|
59
|
+
readonly internalType: "address";
|
|
60
|
+
readonly name: "token";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
}];
|
|
63
|
+
readonly name: "SafeERC20FailedOperation";
|
|
64
|
+
readonly type: "error";
|
|
65
|
+
}, {
|
|
66
|
+
readonly inputs: readonly [];
|
|
67
|
+
readonly name: "bookManager";
|
|
68
|
+
readonly outputs: readonly [{
|
|
69
|
+
readonly internalType: "contract IBookManager";
|
|
70
|
+
readonly name: "";
|
|
71
|
+
readonly type: "address";
|
|
72
|
+
}];
|
|
73
|
+
readonly stateMutability: "view";
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
}, {
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly internalType: "bytes32";
|
|
78
|
+
readonly name: "key";
|
|
79
|
+
readonly type: "bytes32";
|
|
80
|
+
}, {
|
|
81
|
+
readonly internalType: "uint256";
|
|
82
|
+
readonly name: "amountA";
|
|
83
|
+
readonly type: "uint256";
|
|
84
|
+
}, {
|
|
85
|
+
readonly internalType: "uint256";
|
|
86
|
+
readonly name: "amountB";
|
|
87
|
+
readonly type: "uint256";
|
|
88
|
+
}, {
|
|
89
|
+
readonly internalType: "uint256";
|
|
90
|
+
readonly name: "minLpAmount";
|
|
91
|
+
readonly type: "uint256";
|
|
92
|
+
}, {
|
|
93
|
+
readonly components: readonly [{
|
|
94
|
+
readonly internalType: "uint256";
|
|
95
|
+
readonly name: "permitAmount";
|
|
96
|
+
readonly type: "uint256";
|
|
97
|
+
}, {
|
|
98
|
+
readonly components: readonly [{
|
|
99
|
+
readonly internalType: "uint256";
|
|
100
|
+
readonly name: "deadline";
|
|
101
|
+
readonly type: "uint256";
|
|
102
|
+
}, {
|
|
103
|
+
readonly internalType: "uint8";
|
|
104
|
+
readonly name: "v";
|
|
105
|
+
readonly type: "uint8";
|
|
106
|
+
}, {
|
|
107
|
+
readonly internalType: "bytes32";
|
|
108
|
+
readonly name: "r";
|
|
109
|
+
readonly type: "bytes32";
|
|
110
|
+
}, {
|
|
111
|
+
readonly internalType: "bytes32";
|
|
112
|
+
readonly name: "s";
|
|
113
|
+
readonly type: "bytes32";
|
|
114
|
+
}];
|
|
115
|
+
readonly internalType: "struct PermitSignature";
|
|
116
|
+
readonly name: "signature";
|
|
117
|
+
readonly type: "tuple";
|
|
118
|
+
}];
|
|
119
|
+
readonly internalType: "struct ERC20PermitParams";
|
|
120
|
+
readonly name: "currencyAPermitParams";
|
|
121
|
+
readonly type: "tuple";
|
|
122
|
+
}, {
|
|
123
|
+
readonly components: readonly [{
|
|
124
|
+
readonly internalType: "uint256";
|
|
125
|
+
readonly name: "permitAmount";
|
|
126
|
+
readonly type: "uint256";
|
|
127
|
+
}, {
|
|
128
|
+
readonly components: readonly [{
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
readonly name: "deadline";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
}, {
|
|
133
|
+
readonly internalType: "uint8";
|
|
134
|
+
readonly name: "v";
|
|
135
|
+
readonly type: "uint8";
|
|
136
|
+
}, {
|
|
137
|
+
readonly internalType: "bytes32";
|
|
138
|
+
readonly name: "r";
|
|
139
|
+
readonly type: "bytes32";
|
|
140
|
+
}, {
|
|
141
|
+
readonly internalType: "bytes32";
|
|
142
|
+
readonly name: "s";
|
|
143
|
+
readonly type: "bytes32";
|
|
144
|
+
}];
|
|
145
|
+
readonly internalType: "struct PermitSignature";
|
|
146
|
+
readonly name: "signature";
|
|
147
|
+
readonly type: "tuple";
|
|
148
|
+
}];
|
|
149
|
+
readonly internalType: "struct ERC20PermitParams";
|
|
150
|
+
readonly name: "currencyBPermitParams";
|
|
151
|
+
readonly type: "tuple";
|
|
152
|
+
}, {
|
|
153
|
+
readonly components: readonly [{
|
|
154
|
+
readonly internalType: "Currency";
|
|
155
|
+
readonly name: "inCurrency";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
}, {
|
|
158
|
+
readonly internalType: "uint256";
|
|
159
|
+
readonly name: "amount";
|
|
160
|
+
readonly type: "uint256";
|
|
161
|
+
}, {
|
|
162
|
+
readonly internalType: "bytes";
|
|
163
|
+
readonly name: "data";
|
|
164
|
+
readonly type: "bytes";
|
|
165
|
+
}];
|
|
166
|
+
readonly internalType: "struct IMinter.SwapParams";
|
|
167
|
+
readonly name: "swapParams";
|
|
168
|
+
readonly type: "tuple";
|
|
169
|
+
}];
|
|
170
|
+
readonly name: "mint";
|
|
171
|
+
readonly outputs: readonly [];
|
|
172
|
+
readonly stateMutability: "payable";
|
|
173
|
+
readonly type: "function";
|
|
174
|
+
}, {
|
|
175
|
+
readonly inputs: readonly [];
|
|
176
|
+
readonly name: "rebalancer";
|
|
177
|
+
readonly outputs: readonly [{
|
|
178
|
+
readonly internalType: "contract Rebalancer";
|
|
179
|
+
readonly name: "";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
}];
|
|
182
|
+
readonly stateMutability: "view";
|
|
183
|
+
readonly type: "function";
|
|
184
|
+
}, {
|
|
185
|
+
readonly inputs: readonly [];
|
|
186
|
+
readonly name: "router";
|
|
187
|
+
readonly outputs: readonly [{
|
|
188
|
+
readonly internalType: "address";
|
|
189
|
+
readonly name: "";
|
|
190
|
+
readonly type: "address";
|
|
191
|
+
}];
|
|
192
|
+
readonly stateMutability: "view";
|
|
193
|
+
readonly type: "function";
|
|
194
|
+
}, {
|
|
195
|
+
readonly stateMutability: "payable";
|
|
196
|
+
readonly type: "receive";
|
|
197
|
+
}];
|
|
198
|
+
//# sourceMappingURL=minter-abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"minter-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/rebalancer/minter-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiQb,CAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const MOCK_SWAP_ABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "target";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}];
|
|
7
|
+
readonly name: "AddressEmptyCode";
|
|
8
|
+
readonly type: "error";
|
|
9
|
+
}, {
|
|
10
|
+
readonly inputs: readonly [];
|
|
11
|
+
readonly name: "FailedCall";
|
|
12
|
+
readonly type: "error";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [{
|
|
15
|
+
readonly internalType: "uint256";
|
|
16
|
+
readonly name: "balance";
|
|
17
|
+
readonly type: "uint256";
|
|
18
|
+
}, {
|
|
19
|
+
readonly internalType: "uint256";
|
|
20
|
+
readonly name: "needed";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}];
|
|
23
|
+
readonly name: "InsufficientBalance";
|
|
24
|
+
readonly type: "error";
|
|
25
|
+
}, {
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
readonly name: "token";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}];
|
|
31
|
+
readonly name: "SafeERC20FailedOperation";
|
|
32
|
+
readonly type: "error";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly internalType: "address";
|
|
36
|
+
readonly name: "tokenIn";
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
}, {
|
|
39
|
+
readonly internalType: "uint256";
|
|
40
|
+
readonly name: "amountIn";
|
|
41
|
+
readonly type: "uint256";
|
|
42
|
+
}, {
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
readonly name: "tokenOut";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}, {
|
|
47
|
+
readonly internalType: "uint256";
|
|
48
|
+
readonly name: "amountOut";
|
|
49
|
+
readonly type: "uint256";
|
|
50
|
+
}];
|
|
51
|
+
readonly name: "swap";
|
|
52
|
+
readonly outputs: readonly [];
|
|
53
|
+
readonly stateMutability: "nonpayable";
|
|
54
|
+
readonly type: "function";
|
|
55
|
+
}, {
|
|
56
|
+
readonly inputs: readonly [{
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
readonly name: "tokenOut";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
}, {
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly name: "amountOut";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}];
|
|
65
|
+
readonly name: "swapEthForToken";
|
|
66
|
+
readonly outputs: readonly [];
|
|
67
|
+
readonly stateMutability: "payable";
|
|
68
|
+
readonly type: "function";
|
|
69
|
+
}];
|
|
70
|
+
//# sourceMappingURL=mock-swap-abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mock-swap-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/rebalancer/mock-swap-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0FhB,CAAA"}
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
export declare const OPERATOR_ABI: readonly [{
|
|
2
|
+
readonly anonymous: false;
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly indexed: false;
|
|
5
|
+
readonly internalType: "address";
|
|
6
|
+
readonly name: "previousAdmin";
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
}, {
|
|
9
|
+
readonly indexed: false;
|
|
10
|
+
readonly internalType: "address";
|
|
11
|
+
readonly name: "newAdmin";
|
|
12
|
+
readonly type: "address";
|
|
13
|
+
}];
|
|
14
|
+
readonly name: "AdminChanged";
|
|
15
|
+
readonly type: "event";
|
|
16
|
+
}, {
|
|
17
|
+
readonly anonymous: false;
|
|
18
|
+
readonly inputs: readonly [{
|
|
19
|
+
readonly indexed: true;
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "beacon";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}];
|
|
24
|
+
readonly name: "BeaconUpgraded";
|
|
25
|
+
readonly type: "event";
|
|
26
|
+
}, {
|
|
27
|
+
readonly anonymous: false;
|
|
28
|
+
readonly inputs: readonly [{
|
|
29
|
+
readonly indexed: true;
|
|
30
|
+
readonly internalType: "address";
|
|
31
|
+
readonly name: "implementation";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
}];
|
|
34
|
+
readonly name: "Upgraded";
|
|
35
|
+
readonly type: "event";
|
|
36
|
+
}, {
|
|
37
|
+
readonly stateMutability: "payable";
|
|
38
|
+
readonly type: "fallback";
|
|
39
|
+
}, {
|
|
40
|
+
readonly stateMutability: "payable";
|
|
41
|
+
readonly type: "receive";
|
|
42
|
+
}, {
|
|
43
|
+
readonly inputs: readonly [{
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
readonly name: "target";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "AddressEmptyCode";
|
|
49
|
+
readonly type: "error";
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputs: readonly [{
|
|
52
|
+
readonly internalType: "address";
|
|
53
|
+
readonly name: "implementation";
|
|
54
|
+
readonly type: "address";
|
|
55
|
+
}];
|
|
56
|
+
readonly name: "ERC1967InvalidImplementation";
|
|
57
|
+
readonly type: "error";
|
|
58
|
+
}, {
|
|
59
|
+
readonly inputs: readonly [];
|
|
60
|
+
readonly name: "ERC1967NonPayable";
|
|
61
|
+
readonly type: "error";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly name: "FailedCall";
|
|
65
|
+
readonly type: "error";
|
|
66
|
+
}, {
|
|
67
|
+
readonly inputs: readonly [];
|
|
68
|
+
readonly name: "InvalidInitialization";
|
|
69
|
+
readonly type: "error";
|
|
70
|
+
}, {
|
|
71
|
+
readonly inputs: readonly [];
|
|
72
|
+
readonly name: "NotInitializing";
|
|
73
|
+
readonly type: "error";
|
|
74
|
+
}, {
|
|
75
|
+
readonly inputs: readonly [{
|
|
76
|
+
readonly internalType: "address";
|
|
77
|
+
readonly name: "owner";
|
|
78
|
+
readonly type: "address";
|
|
79
|
+
}];
|
|
80
|
+
readonly name: "OwnableInvalidOwner";
|
|
81
|
+
readonly type: "error";
|
|
82
|
+
}, {
|
|
83
|
+
readonly inputs: readonly [{
|
|
84
|
+
readonly internalType: "address";
|
|
85
|
+
readonly name: "account";
|
|
86
|
+
readonly type: "address";
|
|
87
|
+
}];
|
|
88
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
89
|
+
readonly type: "error";
|
|
90
|
+
}, {
|
|
91
|
+
readonly inputs: readonly [];
|
|
92
|
+
readonly name: "UUPSUnauthorizedCallContext";
|
|
93
|
+
readonly type: "error";
|
|
94
|
+
}, {
|
|
95
|
+
readonly inputs: readonly [{
|
|
96
|
+
readonly internalType: "bytes32";
|
|
97
|
+
readonly name: "slot";
|
|
98
|
+
readonly type: "bytes32";
|
|
99
|
+
}];
|
|
100
|
+
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
101
|
+
readonly type: "error";
|
|
102
|
+
}, {
|
|
103
|
+
readonly anonymous: false;
|
|
104
|
+
readonly inputs: readonly [{
|
|
105
|
+
readonly indexed: false;
|
|
106
|
+
readonly internalType: "uint64";
|
|
107
|
+
readonly name: "version";
|
|
108
|
+
readonly type: "uint64";
|
|
109
|
+
}];
|
|
110
|
+
readonly name: "Initialized";
|
|
111
|
+
readonly type: "event";
|
|
112
|
+
}, {
|
|
113
|
+
readonly anonymous: false;
|
|
114
|
+
readonly inputs: readonly [{
|
|
115
|
+
readonly indexed: true;
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
readonly name: "previousOwner";
|
|
118
|
+
readonly type: "address";
|
|
119
|
+
}, {
|
|
120
|
+
readonly indexed: true;
|
|
121
|
+
readonly internalType: "address";
|
|
122
|
+
readonly name: "newOwner";
|
|
123
|
+
readonly type: "address";
|
|
124
|
+
}];
|
|
125
|
+
readonly name: "OwnershipTransferStarted";
|
|
126
|
+
readonly type: "event";
|
|
127
|
+
}, {
|
|
128
|
+
readonly anonymous: false;
|
|
129
|
+
readonly inputs: readonly [{
|
|
130
|
+
readonly indexed: true;
|
|
131
|
+
readonly internalType: "address";
|
|
132
|
+
readonly name: "previousOwner";
|
|
133
|
+
readonly type: "address";
|
|
134
|
+
}, {
|
|
135
|
+
readonly indexed: true;
|
|
136
|
+
readonly internalType: "address";
|
|
137
|
+
readonly name: "newOwner";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
}];
|
|
140
|
+
readonly name: "OwnershipTransferred";
|
|
141
|
+
readonly type: "event";
|
|
142
|
+
}, {
|
|
143
|
+
readonly inputs: readonly [];
|
|
144
|
+
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly internalType: "string";
|
|
147
|
+
readonly name: "";
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
}];
|
|
150
|
+
readonly stateMutability: "view";
|
|
151
|
+
readonly type: "function";
|
|
152
|
+
}, {
|
|
153
|
+
readonly inputs: readonly [];
|
|
154
|
+
readonly name: "acceptOwnership";
|
|
155
|
+
readonly outputs: readonly [];
|
|
156
|
+
readonly stateMutability: "nonpayable";
|
|
157
|
+
readonly type: "function";
|
|
158
|
+
}, {
|
|
159
|
+
readonly inputs: readonly [{
|
|
160
|
+
readonly internalType: "address";
|
|
161
|
+
readonly name: "initialOwner";
|
|
162
|
+
readonly type: "address";
|
|
163
|
+
}];
|
|
164
|
+
readonly name: "initialize";
|
|
165
|
+
readonly outputs: readonly [];
|
|
166
|
+
readonly stateMutability: "nonpayable";
|
|
167
|
+
readonly type: "function";
|
|
168
|
+
}, {
|
|
169
|
+
readonly inputs: readonly [];
|
|
170
|
+
readonly name: "oracleStrategy";
|
|
171
|
+
readonly outputs: readonly [{
|
|
172
|
+
readonly internalType: "contract ISimpleOracleStrategy";
|
|
173
|
+
readonly name: "";
|
|
174
|
+
readonly type: "address";
|
|
175
|
+
}];
|
|
176
|
+
readonly stateMutability: "view";
|
|
177
|
+
readonly type: "function";
|
|
178
|
+
}, {
|
|
179
|
+
readonly inputs: readonly [];
|
|
180
|
+
readonly name: "owner";
|
|
181
|
+
readonly outputs: readonly [{
|
|
182
|
+
readonly internalType: "address";
|
|
183
|
+
readonly name: "";
|
|
184
|
+
readonly type: "address";
|
|
185
|
+
}];
|
|
186
|
+
readonly stateMutability: "view";
|
|
187
|
+
readonly type: "function";
|
|
188
|
+
}, {
|
|
189
|
+
readonly inputs: readonly [];
|
|
190
|
+
readonly name: "pendingOwner";
|
|
191
|
+
readonly outputs: readonly [{
|
|
192
|
+
readonly internalType: "address";
|
|
193
|
+
readonly name: "";
|
|
194
|
+
readonly type: "address";
|
|
195
|
+
}];
|
|
196
|
+
readonly stateMutability: "view";
|
|
197
|
+
readonly type: "function";
|
|
198
|
+
}, {
|
|
199
|
+
readonly inputs: readonly [];
|
|
200
|
+
readonly name: "proxiableUUID";
|
|
201
|
+
readonly outputs: readonly [{
|
|
202
|
+
readonly internalType: "bytes32";
|
|
203
|
+
readonly name: "";
|
|
204
|
+
readonly type: "bytes32";
|
|
205
|
+
}];
|
|
206
|
+
readonly stateMutability: "view";
|
|
207
|
+
readonly type: "function";
|
|
208
|
+
}, {
|
|
209
|
+
readonly inputs: readonly [];
|
|
210
|
+
readonly name: "rebalancer";
|
|
211
|
+
readonly outputs: readonly [{
|
|
212
|
+
readonly internalType: "contract IRebalancer";
|
|
213
|
+
readonly name: "";
|
|
214
|
+
readonly type: "address";
|
|
215
|
+
}];
|
|
216
|
+
readonly stateMutability: "view";
|
|
217
|
+
readonly type: "function";
|
|
218
|
+
}, {
|
|
219
|
+
readonly inputs: readonly [];
|
|
220
|
+
readonly name: "renounceOwnership";
|
|
221
|
+
readonly outputs: readonly [];
|
|
222
|
+
readonly stateMutability: "nonpayable";
|
|
223
|
+
readonly type: "function";
|
|
224
|
+
}, {
|
|
225
|
+
readonly inputs: readonly [{
|
|
226
|
+
readonly internalType: "address";
|
|
227
|
+
readonly name: "newOwner";
|
|
228
|
+
readonly type: "address";
|
|
229
|
+
}];
|
|
230
|
+
readonly name: "transferOwnership";
|
|
231
|
+
readonly outputs: readonly [];
|
|
232
|
+
readonly stateMutability: "nonpayable";
|
|
233
|
+
readonly type: "function";
|
|
234
|
+
}, {
|
|
235
|
+
readonly inputs: readonly [{
|
|
236
|
+
readonly internalType: "bytes32";
|
|
237
|
+
readonly name: "key";
|
|
238
|
+
readonly type: "bytes32";
|
|
239
|
+
}, {
|
|
240
|
+
readonly internalType: "uint256";
|
|
241
|
+
readonly name: "oraclePrice";
|
|
242
|
+
readonly type: "uint256";
|
|
243
|
+
}, {
|
|
244
|
+
readonly internalType: "Tick";
|
|
245
|
+
readonly name: "tickA";
|
|
246
|
+
readonly type: "int24";
|
|
247
|
+
}, {
|
|
248
|
+
readonly internalType: "Tick";
|
|
249
|
+
readonly name: "tickB";
|
|
250
|
+
readonly type: "int24";
|
|
251
|
+
}];
|
|
252
|
+
readonly name: "updatePrice";
|
|
253
|
+
readonly outputs: readonly [];
|
|
254
|
+
readonly stateMutability: "nonpayable";
|
|
255
|
+
readonly type: "function";
|
|
256
|
+
}, {
|
|
257
|
+
readonly inputs: readonly [{
|
|
258
|
+
readonly internalType: "address";
|
|
259
|
+
readonly name: "newImplementation";
|
|
260
|
+
readonly type: "address";
|
|
261
|
+
}, {
|
|
262
|
+
readonly internalType: "bytes";
|
|
263
|
+
readonly name: "data";
|
|
264
|
+
readonly type: "bytes";
|
|
265
|
+
}];
|
|
266
|
+
readonly name: "upgradeToAndCall";
|
|
267
|
+
readonly outputs: readonly [];
|
|
268
|
+
readonly stateMutability: "payable";
|
|
269
|
+
readonly type: "function";
|
|
270
|
+
}, {
|
|
271
|
+
readonly inputs: readonly [{
|
|
272
|
+
readonly internalType: "address";
|
|
273
|
+
readonly name: "_logic";
|
|
274
|
+
readonly type: "address";
|
|
275
|
+
}, {
|
|
276
|
+
readonly internalType: "bytes";
|
|
277
|
+
readonly name: "_data";
|
|
278
|
+
readonly type: "bytes";
|
|
279
|
+
}];
|
|
280
|
+
readonly stateMutability: "payable";
|
|
281
|
+
readonly type: "constructor";
|
|
282
|
+
}];
|
|
283
|
+
//# sourceMappingURL=operator-abi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-abi.d.ts","sourceRoot":"","sources":["../../../../src/abis/rebalancer/operator-abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6Wf,CAAA"}
|