@underscore-finance/sdk 0.0.7 → 0.2.1
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/contracts/AddyRegistry.d.ts +659 -82
- package/dist/contracts/AddyRegistry.d.ts.map +1 -1
- package/dist/contracts/AddyRegistry.js +903 -184
- package/dist/contracts/Agent.d.ts +223 -145
- package/dist/contracts/Agent.d.ts.map +1 -1
- package/dist/contracts/Agent.js +248 -162
- package/dist/contracts/AgentFactory.d.ts +335 -42
- package/dist/contracts/AgentFactory.d.ts.map +1 -1
- package/dist/contracts/AgentFactory.js +403 -42
- package/dist/contracts/ChainlinkFeeds.d.ts +160 -23
- package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
- package/dist/contracts/ChainlinkFeeds.js +186 -23
- package/dist/contracts/LegoAaveV3.d.ts +160 -23
- package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
- package/dist/contracts/LegoAaveV3.js +186 -23
- package/dist/contracts/LegoAeroClassic.d.ts +160 -23
- package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
- package/dist/contracts/LegoAeroClassic.js +186 -23
- package/dist/contracts/LegoAeroSlipstream.d.ts +160 -23
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/LegoAeroSlipstream.js +186 -23
- package/dist/contracts/LegoCompoundV3.d.ts +160 -23
- package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
- package/dist/contracts/LegoCompoundV3.js +186 -23
- package/dist/contracts/LegoCurve.d.ts +160 -23
- package/dist/contracts/LegoCurve.d.ts.map +1 -1
- package/dist/contracts/LegoCurve.js +186 -23
- package/dist/contracts/LegoEuler.d.ts +160 -23
- package/dist/contracts/LegoEuler.d.ts.map +1 -1
- package/dist/contracts/LegoEuler.js +186 -23
- package/dist/contracts/LegoFluid.d.ts +171 -23
- package/dist/contracts/LegoFluid.d.ts.map +1 -1
- package/dist/contracts/LegoFluid.js +200 -23
- package/dist/contracts/LegoHelper.js +1 -1
- package/dist/contracts/LegoMoonwell.d.ts +160 -23
- package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
- package/dist/contracts/LegoMoonwell.js +186 -23
- package/dist/contracts/LegoMorpho.d.ts +160 -23
- package/dist/contracts/LegoMorpho.d.ts.map +1 -1
- package/dist/contracts/LegoMorpho.js +186 -23
- package/dist/contracts/LegoRegistry.d.ts +501 -96
- package/dist/contracts/LegoRegistry.d.ts.map +1 -1
- package/dist/contracts/LegoRegistry.js +686 -174
- package/dist/contracts/LegoSky.d.ts +160 -23
- package/dist/contracts/LegoSky.d.ts.map +1 -1
- package/dist/contracts/LegoSky.js +186 -23
- package/dist/contracts/LegoUniswapV2.d.ts +160 -23
- package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV2.js +186 -23
- package/dist/contracts/LegoUniswapV3.d.ts +160 -23
- package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV3.js +186 -23
- package/dist/contracts/OracleRegistry.d.ts +506 -109
- package/dist/contracts/OracleRegistry.d.ts.map +1 -1
- package/dist/contracts/OracleRegistry.js +628 -131
- package/dist/contracts/PriceSheets.d.ts +160 -23
- package/dist/contracts/PriceSheets.d.ts.map +1 -1
- package/dist/contracts/PriceSheets.js +186 -23
- package/dist/contracts/PythFeeds.d.ts +160 -23
- package/dist/contracts/PythFeeds.d.ts.map +1 -1
- package/dist/contracts/PythFeeds.js +186 -23
- package/dist/contracts/StorkFeeds.d.ts +160 -23
- package/dist/contracts/StorkFeeds.d.ts.map +1 -1
- package/dist/contracts/StorkFeeds.js +186 -23
- package/dist/contracts/UserWallet.d.ts +1956 -0
- package/dist/contracts/UserWallet.d.ts.map +1 -0
- package/dist/contracts/UserWallet.js +2551 -0
- package/dist/contracts/UserWalletConfig.d.ts +1466 -0
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
- package/dist/contracts/UserWalletConfig.js +1762 -0
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +2 -2
- package/dist/contracts/sdk.d.ts +4 -4
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/contracts/Agent.js
CHANGED
|
@@ -4,6 +4,28 @@
|
|
|
4
4
|
/* @ts-nocheck */
|
|
5
5
|
import { singleQuery, mutate } from '@dappql/async';
|
|
6
6
|
export const abi = [
|
|
7
|
+
{
|
|
8
|
+
anonymous: false,
|
|
9
|
+
inputs: [
|
|
10
|
+
{
|
|
11
|
+
indexed: true,
|
|
12
|
+
name: 'asset',
|
|
13
|
+
type: 'address',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
indexed: true,
|
|
17
|
+
name: 'recipient',
|
|
18
|
+
type: 'address',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
indexed: false,
|
|
22
|
+
name: 'balance',
|
|
23
|
+
type: 'uint256',
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
name: 'AgentFundsRecovered',
|
|
27
|
+
type: 'event',
|
|
28
|
+
},
|
|
7
29
|
{
|
|
8
30
|
anonymous: false,
|
|
9
31
|
inputs: [
|
|
@@ -23,7 +45,7 @@ export const abi = [
|
|
|
23
45
|
type: 'uint256',
|
|
24
46
|
},
|
|
25
47
|
],
|
|
26
|
-
name: '
|
|
48
|
+
name: 'OwnershipChangeInitiated',
|
|
27
49
|
type: 'event',
|
|
28
50
|
},
|
|
29
51
|
{
|
|
@@ -50,7 +72,7 @@ export const abi = [
|
|
|
50
72
|
type: 'uint256',
|
|
51
73
|
},
|
|
52
74
|
],
|
|
53
|
-
name: '
|
|
75
|
+
name: 'OwnershipChangeConfirmed',
|
|
54
76
|
type: 'event',
|
|
55
77
|
},
|
|
56
78
|
{
|
|
@@ -61,6 +83,11 @@ export const abi = [
|
|
|
61
83
|
name: 'cancelledOwner',
|
|
62
84
|
type: 'address',
|
|
63
85
|
},
|
|
86
|
+
{
|
|
87
|
+
indexed: true,
|
|
88
|
+
name: 'cancelledBy',
|
|
89
|
+
type: 'address',
|
|
90
|
+
},
|
|
64
91
|
{
|
|
65
92
|
indexed: false,
|
|
66
93
|
name: 'initiatedBlock',
|
|
@@ -72,7 +99,7 @@ export const abi = [
|
|
|
72
99
|
type: 'uint256',
|
|
73
100
|
},
|
|
74
101
|
],
|
|
75
|
-
name: '
|
|
102
|
+
name: 'OwnershipChangeCancelled',
|
|
76
103
|
type: 'event',
|
|
77
104
|
},
|
|
78
105
|
{
|
|
@@ -84,46 +111,143 @@ export const abi = [
|
|
|
84
111
|
type: 'uint256',
|
|
85
112
|
},
|
|
86
113
|
],
|
|
87
|
-
name: '
|
|
114
|
+
name: 'OwnershipChangeDelaySet',
|
|
88
115
|
type: 'event',
|
|
89
116
|
},
|
|
90
117
|
{
|
|
91
|
-
|
|
118
|
+
inputs: [],
|
|
119
|
+
name: 'hasPendingOwnerChange',
|
|
120
|
+
outputs: [
|
|
121
|
+
{
|
|
122
|
+
name: '',
|
|
123
|
+
type: 'bool',
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
stateMutability: 'view',
|
|
127
|
+
type: 'function',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
92
130
|
inputs: [
|
|
93
131
|
{
|
|
94
|
-
|
|
95
|
-
name: 'asset',
|
|
132
|
+
name: '_newOwner',
|
|
96
133
|
type: 'address',
|
|
97
134
|
},
|
|
135
|
+
],
|
|
136
|
+
name: 'changeOwnership',
|
|
137
|
+
outputs: [],
|
|
138
|
+
stateMutability: 'nonpayable',
|
|
139
|
+
type: 'function',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
inputs: [],
|
|
143
|
+
name: 'confirmOwnershipChange',
|
|
144
|
+
outputs: [],
|
|
145
|
+
stateMutability: 'nonpayable',
|
|
146
|
+
type: 'function',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
inputs: [],
|
|
150
|
+
name: 'cancelOwnershipChange',
|
|
151
|
+
outputs: [],
|
|
152
|
+
stateMutability: 'nonpayable',
|
|
153
|
+
type: 'function',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
inputs: [
|
|
98
157
|
{
|
|
99
|
-
|
|
100
|
-
|
|
158
|
+
name: '_numBlocks',
|
|
159
|
+
type: 'uint256',
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
name: 'setOwnershipChangeDelay',
|
|
163
|
+
outputs: [],
|
|
164
|
+
stateMutability: 'nonpayable',
|
|
165
|
+
type: 'function',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
inputs: [],
|
|
169
|
+
name: 'owner',
|
|
170
|
+
outputs: [
|
|
171
|
+
{
|
|
172
|
+
name: '',
|
|
101
173
|
type: 'address',
|
|
102
174
|
},
|
|
175
|
+
],
|
|
176
|
+
stateMutability: 'view',
|
|
177
|
+
type: 'function',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
inputs: [],
|
|
181
|
+
name: 'pendingOwner',
|
|
182
|
+
outputs: [
|
|
103
183
|
{
|
|
104
|
-
|
|
105
|
-
|
|
184
|
+
components: [
|
|
185
|
+
{
|
|
186
|
+
name: 'newOwner',
|
|
187
|
+
type: 'address',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: 'initiatedBlock',
|
|
191
|
+
type: 'uint256',
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'confirmBlock',
|
|
195
|
+
type: 'uint256',
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
name: '',
|
|
199
|
+
type: 'tuple',
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
stateMutability: 'view',
|
|
203
|
+
type: 'function',
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
inputs: [],
|
|
207
|
+
name: 'ownershipChangeDelay',
|
|
208
|
+
outputs: [
|
|
209
|
+
{
|
|
210
|
+
name: '',
|
|
106
211
|
type: 'uint256',
|
|
107
212
|
},
|
|
108
213
|
],
|
|
109
|
-
|
|
110
|
-
type: '
|
|
214
|
+
stateMutability: 'view',
|
|
215
|
+
type: 'function',
|
|
111
216
|
},
|
|
112
217
|
{
|
|
113
|
-
inputs: [
|
|
218
|
+
inputs: [],
|
|
219
|
+
name: 'MIN_OWNER_CHANGE_DELAY',
|
|
220
|
+
outputs: [
|
|
114
221
|
{
|
|
115
|
-
name: '
|
|
116
|
-
type: '
|
|
222
|
+
name: '',
|
|
223
|
+
type: 'uint256',
|
|
117
224
|
},
|
|
118
225
|
],
|
|
119
|
-
|
|
226
|
+
stateMutability: 'view',
|
|
227
|
+
type: 'function',
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
inputs: [],
|
|
231
|
+
name: 'MAX_OWNER_CHANGE_DELAY',
|
|
120
232
|
outputs: [
|
|
121
233
|
{
|
|
122
234
|
name: '',
|
|
123
|
-
type: '
|
|
235
|
+
type: 'uint256',
|
|
124
236
|
},
|
|
125
237
|
],
|
|
126
|
-
stateMutability: '
|
|
238
|
+
stateMutability: 'view',
|
|
239
|
+
type: 'function',
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
inputs: [],
|
|
243
|
+
name: '_ADDY_REGISTRY',
|
|
244
|
+
outputs: [
|
|
245
|
+
{
|
|
246
|
+
name: '',
|
|
247
|
+
type: 'address',
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
stateMutability: 'view',
|
|
127
251
|
type: 'function',
|
|
128
252
|
},
|
|
129
253
|
{
|
|
@@ -2808,6 +2932,32 @@ export const abi = [
|
|
|
2808
2932
|
name: 'isWethToEthConversion',
|
|
2809
2933
|
type: 'bool',
|
|
2810
2934
|
},
|
|
2935
|
+
{
|
|
2936
|
+
components: [
|
|
2937
|
+
{
|
|
2938
|
+
name: 'legoId',
|
|
2939
|
+
type: 'uint256',
|
|
2940
|
+
},
|
|
2941
|
+
{
|
|
2942
|
+
name: 'amountIn',
|
|
2943
|
+
type: 'uint256',
|
|
2944
|
+
},
|
|
2945
|
+
{
|
|
2946
|
+
name: 'minAmountOut',
|
|
2947
|
+
type: 'uint256',
|
|
2948
|
+
},
|
|
2949
|
+
{
|
|
2950
|
+
name: 'tokenPath',
|
|
2951
|
+
type: 'address[]',
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
name: 'poolPath',
|
|
2955
|
+
type: 'address[]',
|
|
2956
|
+
},
|
|
2957
|
+
],
|
|
2958
|
+
name: 'swapInstructions',
|
|
2959
|
+
type: 'tuple[]',
|
|
2960
|
+
},
|
|
2811
2961
|
],
|
|
2812
2962
|
name: '_instructions',
|
|
2813
2963
|
type: 'tuple[]',
|
|
@@ -2923,6 +3073,32 @@ export const abi = [
|
|
|
2923
3073
|
name: 'isWethToEthConversion',
|
|
2924
3074
|
type: 'bool',
|
|
2925
3075
|
},
|
|
3076
|
+
{
|
|
3077
|
+
components: [
|
|
3078
|
+
{
|
|
3079
|
+
name: 'legoId',
|
|
3080
|
+
type: 'uint256',
|
|
3081
|
+
},
|
|
3082
|
+
{
|
|
3083
|
+
name: 'amountIn',
|
|
3084
|
+
type: 'uint256',
|
|
3085
|
+
},
|
|
3086
|
+
{
|
|
3087
|
+
name: 'minAmountOut',
|
|
3088
|
+
type: 'uint256',
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
name: 'tokenPath',
|
|
3092
|
+
type: 'address[]',
|
|
3093
|
+
},
|
|
3094
|
+
{
|
|
3095
|
+
name: 'poolPath',
|
|
3096
|
+
type: 'address[]',
|
|
3097
|
+
},
|
|
3098
|
+
],
|
|
3099
|
+
name: 'swapInstructions',
|
|
3100
|
+
type: 'tuple[]',
|
|
3101
|
+
},
|
|
2926
3102
|
],
|
|
2927
3103
|
name: '_instructions',
|
|
2928
3104
|
type: 'tuple[]',
|
|
@@ -3056,6 +3232,32 @@ export const abi = [
|
|
|
3056
3232
|
name: 'isWethToEthConversion',
|
|
3057
3233
|
type: 'bool',
|
|
3058
3234
|
},
|
|
3235
|
+
{
|
|
3236
|
+
components: [
|
|
3237
|
+
{
|
|
3238
|
+
name: 'legoId',
|
|
3239
|
+
type: 'uint256',
|
|
3240
|
+
},
|
|
3241
|
+
{
|
|
3242
|
+
name: 'amountIn',
|
|
3243
|
+
type: 'uint256',
|
|
3244
|
+
},
|
|
3245
|
+
{
|
|
3246
|
+
name: 'minAmountOut',
|
|
3247
|
+
type: 'uint256',
|
|
3248
|
+
},
|
|
3249
|
+
{
|
|
3250
|
+
name: 'tokenPath',
|
|
3251
|
+
type: 'address[]',
|
|
3252
|
+
},
|
|
3253
|
+
{
|
|
3254
|
+
name: 'poolPath',
|
|
3255
|
+
type: 'address[]',
|
|
3256
|
+
},
|
|
3257
|
+
],
|
|
3258
|
+
name: 'swapInstructions',
|
|
3259
|
+
type: 'tuple[]',
|
|
3260
|
+
},
|
|
3059
3261
|
],
|
|
3060
3262
|
name: '_instructions',
|
|
3061
3263
|
type: 'tuple[]',
|
|
@@ -3087,44 +3289,6 @@ export const abi = [
|
|
|
3087
3289
|
stateMutability: 'view',
|
|
3088
3290
|
type: 'function',
|
|
3089
3291
|
},
|
|
3090
|
-
{
|
|
3091
|
-
inputs: [
|
|
3092
|
-
{
|
|
3093
|
-
name: '_newOwner',
|
|
3094
|
-
type: 'address',
|
|
3095
|
-
},
|
|
3096
|
-
],
|
|
3097
|
-
name: 'changeOwnership',
|
|
3098
|
-
outputs: [],
|
|
3099
|
-
stateMutability: 'nonpayable',
|
|
3100
|
-
type: 'function',
|
|
3101
|
-
},
|
|
3102
|
-
{
|
|
3103
|
-
inputs: [],
|
|
3104
|
-
name: 'confirmOwnershipChange',
|
|
3105
|
-
outputs: [],
|
|
3106
|
-
stateMutability: 'nonpayable',
|
|
3107
|
-
type: 'function',
|
|
3108
|
-
},
|
|
3109
|
-
{
|
|
3110
|
-
inputs: [],
|
|
3111
|
-
name: 'cancelOwnershipChange',
|
|
3112
|
-
outputs: [],
|
|
3113
|
-
stateMutability: 'nonpayable',
|
|
3114
|
-
type: 'function',
|
|
3115
|
-
},
|
|
3116
|
-
{
|
|
3117
|
-
inputs: [
|
|
3118
|
-
{
|
|
3119
|
-
name: '_numBlocks',
|
|
3120
|
-
type: 'uint256',
|
|
3121
|
-
},
|
|
3122
|
-
],
|
|
3123
|
-
name: 'setOwnershipChangeDelay',
|
|
3124
|
-
outputs: [],
|
|
3125
|
-
stateMutability: 'nonpayable',
|
|
3126
|
-
type: 'function',
|
|
3127
|
-
},
|
|
3128
3292
|
{
|
|
3129
3293
|
inputs: [
|
|
3130
3294
|
{
|
|
@@ -3142,18 +3306,6 @@ export const abi = [
|
|
|
3142
3306
|
stateMutability: 'nonpayable',
|
|
3143
3307
|
type: 'function',
|
|
3144
3308
|
},
|
|
3145
|
-
{
|
|
3146
|
-
inputs: [],
|
|
3147
|
-
name: 'initialized',
|
|
3148
|
-
outputs: [
|
|
3149
|
-
{
|
|
3150
|
-
name: '',
|
|
3151
|
-
type: 'bool',
|
|
3152
|
-
},
|
|
3153
|
-
],
|
|
3154
|
-
stateMutability: 'view',
|
|
3155
|
-
type: 'function',
|
|
3156
|
-
},
|
|
3157
3309
|
{
|
|
3158
3310
|
inputs: [
|
|
3159
3311
|
{
|
|
@@ -3172,81 +3324,15 @@ export const abi = [
|
|
|
3172
3324
|
type: 'function',
|
|
3173
3325
|
},
|
|
3174
3326
|
{
|
|
3175
|
-
inputs: [
|
|
3176
|
-
name: 'owner',
|
|
3177
|
-
outputs: [
|
|
3327
|
+
inputs: [
|
|
3178
3328
|
{
|
|
3179
|
-
name: '',
|
|
3329
|
+
name: '_owner',
|
|
3180
3330
|
type: 'address',
|
|
3181
3331
|
},
|
|
3182
|
-
],
|
|
3183
|
-
stateMutability: 'view',
|
|
3184
|
-
type: 'function',
|
|
3185
|
-
},
|
|
3186
|
-
{
|
|
3187
|
-
inputs: [],
|
|
3188
|
-
name: 'pendingOwner',
|
|
3189
|
-
outputs: [
|
|
3190
3332
|
{
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
name: 'newOwner',
|
|
3194
|
-
type: 'address',
|
|
3195
|
-
},
|
|
3196
|
-
{
|
|
3197
|
-
name: 'initiatedBlock',
|
|
3198
|
-
type: 'uint256',
|
|
3199
|
-
},
|
|
3200
|
-
{
|
|
3201
|
-
name: 'confirmBlock',
|
|
3202
|
-
type: 'uint256',
|
|
3203
|
-
},
|
|
3204
|
-
],
|
|
3205
|
-
name: '',
|
|
3206
|
-
type: 'tuple',
|
|
3207
|
-
},
|
|
3208
|
-
],
|
|
3209
|
-
stateMutability: 'view',
|
|
3210
|
-
type: 'function',
|
|
3211
|
-
},
|
|
3212
|
-
{
|
|
3213
|
-
inputs: [],
|
|
3214
|
-
name: 'ownershipChangeDelay',
|
|
3215
|
-
outputs: [
|
|
3216
|
-
{
|
|
3217
|
-
name: '',
|
|
3218
|
-
type: 'uint256',
|
|
3219
|
-
},
|
|
3220
|
-
],
|
|
3221
|
-
stateMutability: 'view',
|
|
3222
|
-
type: 'function',
|
|
3223
|
-
},
|
|
3224
|
-
{
|
|
3225
|
-
inputs: [],
|
|
3226
|
-
name: 'MIN_OWNER_CHANGE_DELAY',
|
|
3227
|
-
outputs: [
|
|
3228
|
-
{
|
|
3229
|
-
name: '',
|
|
3230
|
-
type: 'uint256',
|
|
3231
|
-
},
|
|
3232
|
-
],
|
|
3233
|
-
stateMutability: 'view',
|
|
3234
|
-
type: 'function',
|
|
3235
|
-
},
|
|
3236
|
-
{
|
|
3237
|
-
inputs: [],
|
|
3238
|
-
name: 'MAX_OWNER_CHANGE_DELAY',
|
|
3239
|
-
outputs: [
|
|
3240
|
-
{
|
|
3241
|
-
name: '',
|
|
3242
|
-
type: 'uint256',
|
|
3333
|
+
name: '_addyRegistry',
|
|
3334
|
+
type: 'address',
|
|
3243
3335
|
},
|
|
3244
|
-
],
|
|
3245
|
-
stateMutability: 'view',
|
|
3246
|
-
type: 'function',
|
|
3247
|
-
},
|
|
3248
|
-
{
|
|
3249
|
-
inputs: [
|
|
3250
3336
|
{
|
|
3251
3337
|
name: '_minOwnerChangeDelay',
|
|
3252
3338
|
type: 'uint256',
|
|
@@ -3261,7 +3347,7 @@ export const abi = [
|
|
|
3261
3347
|
type: 'constructor',
|
|
3262
3348
|
},
|
|
3263
3349
|
];
|
|
3264
|
-
export const deployAddress = '
|
|
3350
|
+
export const deployAddress = '0x2e3754aD00DcC1c31Ee1Ea46379DA83bD02896F7';
|
|
3265
3351
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
3266
3352
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
3267
3353
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -3290,17 +3376,18 @@ function getRequest(method, args, contractAddressOrOptions) {
|
|
|
3290
3376
|
return call;
|
|
3291
3377
|
}
|
|
3292
3378
|
export const call = {
|
|
3293
|
-
|
|
3294
|
-
getSwapActionHash: (...args) => getRequest('getSwapActionHash', args),
|
|
3295
|
-
getBatchActionHash: (...args) => getRequest('getBatchActionHash', args),
|
|
3296
|
-
DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
|
|
3297
|
-
initialized: (...args) => getRequest('initialized', args),
|
|
3298
|
-
usedSignatures: (...args) => getRequest('usedSignatures', args),
|
|
3379
|
+
hasPendingOwnerChange: (...args) => getRequest('hasPendingOwnerChange', args),
|
|
3299
3380
|
owner: (...args) => getRequest('owner', args),
|
|
3300
3381
|
pendingOwner: (...args) => getRequest('pendingOwner', args),
|
|
3301
3382
|
ownershipChangeDelay: (...args) => getRequest('ownershipChangeDelay', args),
|
|
3302
3383
|
MIN_OWNER_CHANGE_DELAY: (...args) => getRequest('MIN_OWNER_CHANGE_DELAY', args),
|
|
3303
3384
|
MAX_OWNER_CHANGE_DELAY: (...args) => getRequest('MAX_OWNER_CHANGE_DELAY', args),
|
|
3385
|
+
_ADDY_REGISTRY: (...args) => getRequest('_ADDY_REGISTRY', args),
|
|
3386
|
+
apiVersion: (...args) => getRequest('apiVersion', args),
|
|
3387
|
+
getSwapActionHash: (...args) => getRequest('getSwapActionHash', args),
|
|
3388
|
+
getBatchActionHash: (...args) => getRequest('getBatchActionHash', args),
|
|
3389
|
+
DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
|
|
3390
|
+
usedSignatures: (...args) => getRequest('usedSignatures', args),
|
|
3304
3391
|
};
|
|
3305
3392
|
function getMutation(functionName) {
|
|
3306
3393
|
return {
|
|
@@ -3312,7 +3399,10 @@ function getMutation(functionName) {
|
|
|
3312
3399
|
};
|
|
3313
3400
|
}
|
|
3314
3401
|
export const mutation = {
|
|
3315
|
-
|
|
3402
|
+
changeOwnership: getMutation('changeOwnership'),
|
|
3403
|
+
confirmOwnershipChange: getMutation('confirmOwnershipChange'),
|
|
3404
|
+
cancelOwnershipChange: getMutation('cancelOwnershipChange'),
|
|
3405
|
+
setOwnershipChangeDelay: getMutation('setOwnershipChangeDelay'),
|
|
3316
3406
|
depositTokens: getMutation('depositTokens'),
|
|
3317
3407
|
withdrawTokens: getMutation('withdrawTokens'),
|
|
3318
3408
|
rebalance: getMutation('rebalance'),
|
|
@@ -3326,28 +3416,28 @@ export const mutation = {
|
|
|
3326
3416
|
convertEthToWeth: getMutation('convertEthToWeth'),
|
|
3327
3417
|
convertWethToEth: getMutation('convertWethToEth'),
|
|
3328
3418
|
performBatchActions: getMutation('performBatchActions'),
|
|
3329
|
-
changeOwnership: getMutation('changeOwnership'),
|
|
3330
|
-
confirmOwnershipChange: getMutation('confirmOwnershipChange'),
|
|
3331
|
-
cancelOwnershipChange: getMutation('cancelOwnershipChange'),
|
|
3332
|
-
setOwnershipChangeDelay: getMutation('setOwnershipChangeDelay'),
|
|
3333
3419
|
recoverFunds: getMutation('recoverFunds'),
|
|
3334
3420
|
};
|
|
3335
3421
|
export function toSdk(address, publicClient, walletClient) {
|
|
3336
3422
|
return {
|
|
3337
3423
|
// Queries
|
|
3338
|
-
|
|
3339
|
-
getSwapActionHash: (...args) => singleQuery(publicClient, call.getSwapActionHash(...args).at(address)),
|
|
3340
|
-
getBatchActionHash: (...args) => singleQuery(publicClient, call.getBatchActionHash(...args).at(address)),
|
|
3341
|
-
DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args).at(address)),
|
|
3342
|
-
initialized: (...args) => singleQuery(publicClient, call.initialized(...args).at(address)),
|
|
3343
|
-
usedSignatures: (...args) => singleQuery(publicClient, call.usedSignatures(...args).at(address)),
|
|
3424
|
+
hasPendingOwnerChange: (...args) => singleQuery(publicClient, call.hasPendingOwnerChange(...args).at(address)),
|
|
3344
3425
|
owner: (...args) => singleQuery(publicClient, call.owner(...args).at(address)),
|
|
3345
3426
|
pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args).at(address)),
|
|
3346
3427
|
ownershipChangeDelay: (...args) => singleQuery(publicClient, call.ownershipChangeDelay(...args).at(address)),
|
|
3347
3428
|
MIN_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_OWNER_CHANGE_DELAY(...args).at(address)),
|
|
3348
3429
|
MAX_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_OWNER_CHANGE_DELAY(...args).at(address)),
|
|
3430
|
+
_ADDY_REGISTRY: (...args) => singleQuery(publicClient, call._ADDY_REGISTRY(...args).at(address)),
|
|
3431
|
+
apiVersion: (...args) => singleQuery(publicClient, call.apiVersion(...args).at(address)),
|
|
3432
|
+
getSwapActionHash: (...args) => singleQuery(publicClient, call.getSwapActionHash(...args).at(address)),
|
|
3433
|
+
getBatchActionHash: (...args) => singleQuery(publicClient, call.getBatchActionHash(...args).at(address)),
|
|
3434
|
+
DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args).at(address)),
|
|
3435
|
+
usedSignatures: (...args) => singleQuery(publicClient, call.usedSignatures(...args).at(address)),
|
|
3349
3436
|
// Mutations
|
|
3350
|
-
|
|
3437
|
+
changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership, { address })(...args),
|
|
3438
|
+
confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange, { address })(...args),
|
|
3439
|
+
cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange, { address })(...args),
|
|
3440
|
+
setOwnershipChangeDelay: (...args) => mutate(walletClient, mutation.setOwnershipChangeDelay, { address })(...args),
|
|
3351
3441
|
depositTokens: (...args) => mutate(walletClient, mutation.depositTokens, { address })(...args),
|
|
3352
3442
|
withdrawTokens: (...args) => mutate(walletClient, mutation.withdrawTokens, { address })(...args),
|
|
3353
3443
|
rebalance: (...args) => mutate(walletClient, mutation.rebalance, { address })(...args),
|
|
@@ -3361,10 +3451,6 @@ export function toSdk(address, publicClient, walletClient) {
|
|
|
3361
3451
|
convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth, { address })(...args),
|
|
3362
3452
|
convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth, { address })(...args),
|
|
3363
3453
|
performBatchActions: (...args) => mutate(walletClient, mutation.performBatchActions, { address })(...args),
|
|
3364
|
-
changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership, { address })(...args),
|
|
3365
|
-
confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange, { address })(...args),
|
|
3366
|
-
cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange, { address })(...args),
|
|
3367
|
-
setOwnershipChangeDelay: (...args) => mutate(walletClient, mutation.setOwnershipChangeDelay, { address })(...args),
|
|
3368
3454
|
recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds, { address })(...args),
|
|
3369
3455
|
};
|
|
3370
3456
|
}
|