@underscore-finance/sdk 0.0.3 → 0.0.5
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.map +1 -1
- package/dist/contracts/AddyRegistry.js +318 -318
- package/dist/contracts/AgentFactory.d.ts.map +1 -1
- package/dist/contracts/AgentFactory.js +699 -699
- package/dist/contracts/AgentTemplate.d.ts.map +1 -1
- package/dist/contracts/AgentTemplate.js +1 -1
- package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -1
- package/dist/contracts/ChainlinkFeeds.js +399 -399
- package/dist/contracts/LegoAaveV3.d.ts.map +1 -1
- package/dist/contracts/LegoAaveV3.js +643 -643
- package/dist/contracts/LegoAeroClassic.d.ts.map +1 -1
- package/dist/contracts/LegoAeroClassic.js +749 -749
- package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/LegoAeroSlipstream.js +820 -820
- package/dist/contracts/LegoCompoundV3.d.ts.map +1 -1
- package/dist/contracts/LegoCompoundV3.js +664 -664
- package/dist/contracts/LegoCurve.d.ts.map +1 -1
- package/dist/contracts/LegoCurve.js +732 -732
- package/dist/contracts/LegoEuler.d.ts.map +1 -1
- package/dist/contracts/LegoEuler.js +674 -674
- package/dist/contracts/LegoFluid.d.ts.map +1 -1
- package/dist/contracts/LegoFluid.js +629 -629
- package/dist/contracts/LegoHelper.d.ts +22 -16
- package/dist/contracts/LegoHelper.d.ts.map +1 -1
- package/dist/contracts/LegoHelper.js +1057 -1057
- package/dist/contracts/LegoMoonwell.d.ts.map +1 -1
- package/dist/contracts/LegoMoonwell.js +649 -649
- package/dist/contracts/LegoMorpho.d.ts.map +1 -1
- package/dist/contracts/LegoMorpho.js +674 -674
- package/dist/contracts/LegoRegistry.d.ts.map +1 -1
- package/dist/contracts/LegoRegistry.js +406 -406
- package/dist/contracts/LegoSky.d.ts.map +1 -1
- package/dist/contracts/LegoSky.js +557 -557
- package/dist/contracts/LegoUniswapV2.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV2.js +749 -749
- package/dist/contracts/LegoUniswapV3.d.ts.map +1 -1
- package/dist/contracts/LegoUniswapV3.js +849 -849
- package/dist/contracts/OracleRegistry.d.ts.map +1 -1
- package/dist/contracts/OracleRegistry.js +585 -585
- package/dist/contracts/PriceSheets.d.ts +18 -15
- package/dist/contracts/PriceSheets.d.ts.map +1 -1
- package/dist/contracts/PriceSheets.js +718 -718
- package/dist/contracts/PythFeeds.d.ts.map +1 -1
- package/dist/contracts/PythFeeds.js +352 -352
- package/dist/contracts/StorkFeeds.d.ts.map +1 -1
- package/dist/contracts/StorkFeeds.js +352 -352
- package/dist/contracts/WalletConfig.d.ts +1 -1
- package/dist/contracts/WalletConfig.d.ts.map +1 -1
- package/dist/contracts/WalletConfig.js +1 -1
- package/dist/contracts/WalletFunds.d.ts.map +1 -1
- package/dist/contracts/WalletFunds.js +1 -1
- package/dist/contracts/sdk.d.ts +1 -1
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -0
- package/package.json +1 -1
|
@@ -5,1094 +5,1094 @@
|
|
|
5
5
|
import { singleQuery, mutate } from '@dappql/async';
|
|
6
6
|
export const abi = [
|
|
7
7
|
{
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
anonymous: false,
|
|
9
|
+
inputs: [
|
|
10
10
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
indexed: true,
|
|
12
|
+
name: 'mainAddr',
|
|
13
|
+
type: 'address',
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
indexed: true,
|
|
17
|
+
name: 'configAddr',
|
|
18
|
+
type: 'address',
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
indexed: true,
|
|
22
|
+
name: 'owner',
|
|
23
|
+
type: 'address',
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
indexed: false,
|
|
27
|
+
name: 'agent',
|
|
28
|
+
type: 'address',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
31
|
+
indexed: false,
|
|
32
|
+
name: 'creator',
|
|
33
|
+
type: 'address',
|
|
34
|
+
},
|
|
35
35
|
],
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
name: 'UserWalletCreated',
|
|
37
|
+
type: 'event',
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
anonymous: false,
|
|
41
|
+
inputs: [
|
|
42
42
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
indexed: true,
|
|
44
|
+
name: 'agent',
|
|
45
|
+
type: 'address',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
indexed: true,
|
|
49
|
+
name: 'owner',
|
|
50
|
+
type: 'address',
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
53
|
+
indexed: false,
|
|
54
|
+
name: 'creator',
|
|
55
|
+
type: 'address',
|
|
56
|
+
},
|
|
57
57
|
],
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
name: 'AgentCreated',
|
|
59
|
+
type: 'event',
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
anonymous: false,
|
|
63
|
+
inputs: [
|
|
64
64
|
{
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
indexed: true,
|
|
66
|
+
name: 'template',
|
|
67
|
+
type: 'address',
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
70
|
+
indexed: false,
|
|
71
|
+
name: 'version',
|
|
72
|
+
type: 'uint256',
|
|
73
|
+
},
|
|
74
74
|
],
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
name: 'UserWalletTemplateSet',
|
|
76
|
+
type: 'event',
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
anonymous: false,
|
|
80
|
+
inputs: [
|
|
81
81
|
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
indexed: true,
|
|
83
|
+
name: 'template',
|
|
84
|
+
type: 'address',
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
87
|
+
indexed: false,
|
|
88
|
+
name: 'version',
|
|
89
|
+
type: 'uint256',
|
|
90
|
+
},
|
|
91
91
|
],
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
name: 'UserWalletConfigTemplateSet',
|
|
93
|
+
type: 'event',
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
anonymous: false,
|
|
97
|
+
inputs: [
|
|
98
98
|
{
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
indexed: true,
|
|
100
|
+
name: 'template',
|
|
101
|
+
type: 'address',
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
104
|
+
indexed: false,
|
|
105
|
+
name: 'version',
|
|
106
|
+
type: 'uint256',
|
|
107
|
+
},
|
|
108
108
|
],
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
name: 'AgentTemplateSet',
|
|
110
|
+
type: 'event',
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
anonymous: false,
|
|
114
|
+
inputs: [
|
|
115
115
|
{
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
indexed: true,
|
|
117
|
+
name: 'asset',
|
|
118
|
+
type: 'address',
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
121
|
+
indexed: false,
|
|
122
|
+
name: 'amount',
|
|
123
|
+
type: 'uint256',
|
|
124
|
+
},
|
|
125
125
|
],
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
name: 'TrialFundsDataSet',
|
|
127
|
+
type: 'event',
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
anonymous: false,
|
|
131
|
+
inputs: [
|
|
132
132
|
{
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
indexed: false,
|
|
134
|
+
name: 'addr',
|
|
135
|
+
type: 'address',
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
138
|
+
indexed: false,
|
|
139
|
+
name: 'shouldWhitelist',
|
|
140
|
+
type: 'bool',
|
|
141
|
+
},
|
|
142
142
|
],
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
name: 'WhitelistSet',
|
|
144
|
+
type: 'event',
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
anonymous: false,
|
|
148
|
+
inputs: [
|
|
149
149
|
{
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}
|
|
150
|
+
indexed: false,
|
|
151
|
+
name: 'numAllowed',
|
|
152
|
+
type: 'uint256',
|
|
153
|
+
},
|
|
154
154
|
],
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
name: 'NumUserWalletsAllowedSet',
|
|
156
|
+
type: 'event',
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
anonymous: false,
|
|
160
|
+
inputs: [
|
|
161
161
|
{
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
162
|
+
indexed: false,
|
|
163
|
+
name: 'numAllowed',
|
|
164
|
+
type: 'uint256',
|
|
165
|
+
},
|
|
166
166
|
],
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
name: 'NumAgentsAllowedSet',
|
|
168
|
+
type: 'event',
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
anonymous: false,
|
|
172
|
+
inputs: [
|
|
173
173
|
{
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
174
|
+
indexed: false,
|
|
175
|
+
name: 'shouldEnforce',
|
|
176
|
+
type: 'bool',
|
|
177
|
+
},
|
|
178
178
|
],
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
name: 'ShouldEnforceWhitelistSet',
|
|
180
|
+
type: 'event',
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
anonymous: false,
|
|
184
|
+
inputs: [
|
|
185
185
|
{
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
186
|
+
indexed: true,
|
|
187
|
+
name: 'agentAddr',
|
|
188
|
+
type: 'address',
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
191
|
+
indexed: false,
|
|
192
|
+
name: 'shouldBlacklist',
|
|
193
|
+
type: 'bool',
|
|
194
|
+
},
|
|
195
195
|
],
|
|
196
|
-
|
|
197
|
-
|
|
196
|
+
name: 'AgentBlacklistSet',
|
|
197
|
+
type: 'event',
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
anonymous: false,
|
|
201
|
+
inputs: [
|
|
202
202
|
{
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
indexed: true,
|
|
204
|
+
name: 'asset',
|
|
205
|
+
type: 'address',
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
indexed: true,
|
|
209
|
+
name: 'recipient',
|
|
210
|
+
type: 'address',
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
213
|
+
indexed: false,
|
|
214
|
+
name: 'balance',
|
|
215
|
+
type: 'uint256',
|
|
216
|
+
},
|
|
217
217
|
],
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
name: 'AgentFactoryFundsRecovered',
|
|
219
|
+
type: 'event',
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
anonymous: false,
|
|
223
|
+
inputs: [
|
|
224
224
|
{
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
}
|
|
225
|
+
indexed: false,
|
|
226
|
+
name: 'isActivated',
|
|
227
|
+
type: 'bool',
|
|
228
|
+
},
|
|
229
229
|
],
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
name: 'AgentFactoryActivated',
|
|
231
|
+
type: 'event',
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
anonymous: false,
|
|
235
|
+
inputs: [
|
|
236
236
|
{
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
237
|
+
indexed: true,
|
|
238
|
+
name: 'addr',
|
|
239
|
+
type: 'address',
|
|
240
|
+
},
|
|
241
241
|
],
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
name: 'LocalGovernorSet',
|
|
243
|
+
type: 'event',
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
|
|
246
|
+
inputs: [
|
|
247
247
|
{
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
}
|
|
248
|
+
name: '_address',
|
|
249
|
+
type: 'address',
|
|
250
|
+
},
|
|
251
251
|
],
|
|
252
|
-
|
|
253
|
-
|
|
252
|
+
name: 'isGovernor',
|
|
253
|
+
outputs: [
|
|
254
254
|
{
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
255
|
+
name: '',
|
|
256
|
+
type: 'bool',
|
|
257
|
+
},
|
|
258
258
|
],
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
stateMutability: 'view',
|
|
260
|
+
type: 'function',
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
|
-
|
|
263
|
+
inputs: [
|
|
264
264
|
{
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
}
|
|
265
|
+
name: '_newGovernor',
|
|
266
|
+
type: 'address',
|
|
267
|
+
},
|
|
268
268
|
],
|
|
269
|
-
|
|
270
|
-
|
|
269
|
+
name: 'isValidLocalGovernor',
|
|
270
|
+
outputs: [
|
|
271
271
|
{
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
272
|
+
name: '',
|
|
273
|
+
type: 'bool',
|
|
274
|
+
},
|
|
275
275
|
],
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
stateMutability: 'view',
|
|
277
|
+
type: 'function',
|
|
278
278
|
},
|
|
279
279
|
{
|
|
280
|
-
|
|
280
|
+
inputs: [
|
|
281
281
|
{
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
282
|
+
name: '_newGovernor',
|
|
283
|
+
type: 'address',
|
|
284
|
+
},
|
|
285
285
|
],
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
name: 'setLocalGovernor',
|
|
287
|
+
outputs: [
|
|
288
288
|
{
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
289
|
+
name: '',
|
|
290
|
+
type: 'bool',
|
|
291
|
+
},
|
|
292
292
|
],
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
stateMutability: 'nonpayable',
|
|
294
|
+
type: 'function',
|
|
295
295
|
},
|
|
296
296
|
{
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
297
|
+
inputs: [],
|
|
298
|
+
name: 'localGovernor',
|
|
299
|
+
outputs: [
|
|
300
300
|
{
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
301
|
+
name: '',
|
|
302
|
+
type: 'address',
|
|
303
|
+
},
|
|
304
304
|
],
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
stateMutability: 'view',
|
|
306
|
+
type: 'function',
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
309
|
+
inputs: [],
|
|
310
|
+
name: 'currentUserWalletTemplate',
|
|
311
|
+
outputs: [
|
|
312
312
|
{
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}
|
|
313
|
+
name: '',
|
|
314
|
+
type: 'address',
|
|
315
|
+
},
|
|
316
316
|
],
|
|
317
|
-
|
|
318
|
-
|
|
317
|
+
stateMutability: 'view',
|
|
318
|
+
type: 'function',
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
321
|
+
inputs: [],
|
|
322
|
+
name: 'currentUserWalletConfigTemplate',
|
|
323
|
+
outputs: [
|
|
324
324
|
{
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
}
|
|
325
|
+
name: '',
|
|
326
|
+
type: 'address',
|
|
327
|
+
},
|
|
328
328
|
],
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
stateMutability: 'view',
|
|
330
|
+
type: 'function',
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
333
|
+
inputs: [],
|
|
334
|
+
name: 'currentAgentTemplate',
|
|
335
|
+
outputs: [
|
|
336
336
|
{
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
337
|
+
name: '',
|
|
338
|
+
type: 'address',
|
|
339
|
+
},
|
|
340
340
|
],
|
|
341
|
-
|
|
342
|
-
|
|
341
|
+
stateMutability: 'view',
|
|
342
|
+
type: 'function',
|
|
343
343
|
},
|
|
344
344
|
{
|
|
345
|
-
|
|
345
|
+
inputs: [
|
|
346
346
|
{
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
name: '_owner',
|
|
348
|
+
type: 'address',
|
|
349
349
|
},
|
|
350
350
|
{
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
}
|
|
351
|
+
name: '_agent',
|
|
352
|
+
type: 'address',
|
|
353
|
+
},
|
|
354
354
|
],
|
|
355
|
-
|
|
356
|
-
|
|
355
|
+
name: 'isValidUserWalletSetup',
|
|
356
|
+
outputs: [
|
|
357
357
|
{
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
}
|
|
358
|
+
name: '',
|
|
359
|
+
type: 'bool',
|
|
360
|
+
},
|
|
361
361
|
],
|
|
362
|
-
|
|
363
|
-
|
|
362
|
+
stateMutability: 'view',
|
|
363
|
+
type: 'function',
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
366
|
+
inputs: [],
|
|
367
|
+
name: 'createUserWallet',
|
|
368
|
+
outputs: [
|
|
369
369
|
{
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}
|
|
370
|
+
name: '',
|
|
371
|
+
type: 'address',
|
|
372
|
+
},
|
|
373
373
|
],
|
|
374
|
-
|
|
375
|
-
|
|
374
|
+
stateMutability: 'nonpayable',
|
|
375
|
+
type: 'function',
|
|
376
376
|
},
|
|
377
377
|
{
|
|
378
|
-
|
|
378
|
+
inputs: [
|
|
379
379
|
{
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
}
|
|
380
|
+
name: '_owner',
|
|
381
|
+
type: 'address',
|
|
382
|
+
},
|
|
383
383
|
],
|
|
384
|
-
|
|
385
|
-
|
|
384
|
+
name: 'createUserWallet',
|
|
385
|
+
outputs: [
|
|
386
386
|
{
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}
|
|
387
|
+
name: '',
|
|
388
|
+
type: 'address',
|
|
389
|
+
},
|
|
390
390
|
],
|
|
391
|
-
|
|
392
|
-
|
|
391
|
+
stateMutability: 'nonpayable',
|
|
392
|
+
type: 'function',
|
|
393
393
|
},
|
|
394
394
|
{
|
|
395
|
-
|
|
395
|
+
inputs: [
|
|
396
396
|
{
|
|
397
|
-
|
|
398
|
-
|
|
397
|
+
name: '_owner',
|
|
398
|
+
type: 'address',
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
}
|
|
401
|
+
name: '_agent',
|
|
402
|
+
type: 'address',
|
|
403
|
+
},
|
|
404
404
|
],
|
|
405
|
-
|
|
406
|
-
|
|
405
|
+
name: 'createUserWallet',
|
|
406
|
+
outputs: [
|
|
407
407
|
{
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}
|
|
408
|
+
name: '',
|
|
409
|
+
type: 'address',
|
|
410
|
+
},
|
|
411
411
|
],
|
|
412
|
-
|
|
413
|
-
|
|
412
|
+
stateMutability: 'nonpayable',
|
|
413
|
+
type: 'function',
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
|
-
|
|
416
|
+
inputs: [
|
|
417
417
|
{
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
418
|
+
name: '_newAddr',
|
|
419
|
+
type: 'address',
|
|
420
|
+
},
|
|
421
421
|
],
|
|
422
|
-
|
|
423
|
-
|
|
422
|
+
name: 'isValidUserWalletTemplate',
|
|
423
|
+
outputs: [
|
|
424
424
|
{
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
}
|
|
425
|
+
name: '',
|
|
426
|
+
type: 'bool',
|
|
427
|
+
},
|
|
428
428
|
],
|
|
429
|
-
|
|
430
|
-
|
|
429
|
+
stateMutability: 'view',
|
|
430
|
+
type: 'function',
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
|
-
|
|
433
|
+
inputs: [
|
|
434
434
|
{
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}
|
|
435
|
+
name: '_addr',
|
|
436
|
+
type: 'address',
|
|
437
|
+
},
|
|
438
438
|
],
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
name: 'setUserWalletTemplate',
|
|
440
|
+
outputs: [
|
|
441
441
|
{
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
}
|
|
442
|
+
name: '',
|
|
443
|
+
type: 'bool',
|
|
444
|
+
},
|
|
445
445
|
],
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
stateMutability: 'nonpayable',
|
|
447
|
+
type: 'function',
|
|
448
448
|
},
|
|
449
449
|
{
|
|
450
|
-
|
|
450
|
+
inputs: [
|
|
451
451
|
{
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
}
|
|
452
|
+
name: '_newAddr',
|
|
453
|
+
type: 'address',
|
|
454
|
+
},
|
|
455
455
|
],
|
|
456
|
-
|
|
457
|
-
|
|
456
|
+
name: 'isValidUserWalletConfigTemplate',
|
|
457
|
+
outputs: [
|
|
458
458
|
{
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
}
|
|
459
|
+
name: '',
|
|
460
|
+
type: 'bool',
|
|
461
|
+
},
|
|
462
462
|
],
|
|
463
|
-
|
|
464
|
-
|
|
463
|
+
stateMutability: 'view',
|
|
464
|
+
type: 'function',
|
|
465
465
|
},
|
|
466
466
|
{
|
|
467
|
-
|
|
467
|
+
inputs: [
|
|
468
468
|
{
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
469
|
+
name: '_addr',
|
|
470
|
+
type: 'address',
|
|
471
|
+
},
|
|
472
472
|
],
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
name: 'setUserWalletConfigTemplate',
|
|
474
|
+
outputs: [
|
|
475
475
|
{
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
}
|
|
476
|
+
name: '',
|
|
477
|
+
type: 'bool',
|
|
478
|
+
},
|
|
479
479
|
],
|
|
480
|
-
|
|
481
|
-
|
|
480
|
+
stateMutability: 'nonpayable',
|
|
481
|
+
type: 'function',
|
|
482
482
|
},
|
|
483
483
|
{
|
|
484
|
-
|
|
484
|
+
inputs: [
|
|
485
485
|
{
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
}
|
|
486
|
+
name: '_owner',
|
|
487
|
+
type: 'address',
|
|
488
|
+
},
|
|
489
489
|
],
|
|
490
|
-
|
|
491
|
-
|
|
490
|
+
name: 'isValidAgentSetup',
|
|
491
|
+
outputs: [
|
|
492
492
|
{
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
}
|
|
493
|
+
name: '',
|
|
494
|
+
type: 'bool',
|
|
495
|
+
},
|
|
496
496
|
],
|
|
497
|
-
|
|
498
|
-
|
|
497
|
+
stateMutability: 'view',
|
|
498
|
+
type: 'function',
|
|
499
499
|
},
|
|
500
500
|
{
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
501
|
+
inputs: [],
|
|
502
|
+
name: 'createAgent',
|
|
503
|
+
outputs: [
|
|
504
504
|
{
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
}
|
|
505
|
+
name: '',
|
|
506
|
+
type: 'address',
|
|
507
|
+
},
|
|
508
508
|
],
|
|
509
|
-
|
|
510
|
-
|
|
509
|
+
stateMutability: 'nonpayable',
|
|
510
|
+
type: 'function',
|
|
511
511
|
},
|
|
512
512
|
{
|
|
513
|
-
|
|
513
|
+
inputs: [
|
|
514
514
|
{
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
}
|
|
515
|
+
name: '_owner',
|
|
516
|
+
type: 'address',
|
|
517
|
+
},
|
|
518
518
|
],
|
|
519
|
-
|
|
520
|
-
|
|
519
|
+
name: 'createAgent',
|
|
520
|
+
outputs: [
|
|
521
521
|
{
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
522
|
+
name: '',
|
|
523
|
+
type: 'address',
|
|
524
|
+
},
|
|
525
525
|
],
|
|
526
|
-
|
|
527
|
-
|
|
526
|
+
stateMutability: 'nonpayable',
|
|
527
|
+
type: 'function',
|
|
528
528
|
},
|
|
529
529
|
{
|
|
530
|
-
|
|
530
|
+
inputs: [
|
|
531
531
|
{
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
}
|
|
532
|
+
name: '_newAddr',
|
|
533
|
+
type: 'address',
|
|
534
|
+
},
|
|
535
535
|
],
|
|
536
|
-
|
|
537
|
-
|
|
536
|
+
name: 'isValidAgentTemplate',
|
|
537
|
+
outputs: [
|
|
538
538
|
{
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
}
|
|
539
|
+
name: '',
|
|
540
|
+
type: 'bool',
|
|
541
|
+
},
|
|
542
542
|
],
|
|
543
|
-
|
|
544
|
-
|
|
543
|
+
stateMutability: 'view',
|
|
544
|
+
type: 'function',
|
|
545
545
|
},
|
|
546
546
|
{
|
|
547
|
-
|
|
547
|
+
inputs: [
|
|
548
548
|
{
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
}
|
|
549
|
+
name: '_addr',
|
|
550
|
+
type: 'address',
|
|
551
|
+
},
|
|
552
552
|
],
|
|
553
|
-
|
|
554
|
-
|
|
553
|
+
name: 'setAgentTemplate',
|
|
554
|
+
outputs: [
|
|
555
555
|
{
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
}
|
|
556
|
+
name: '',
|
|
557
|
+
type: 'bool',
|
|
558
|
+
},
|
|
559
559
|
],
|
|
560
|
-
|
|
561
|
-
|
|
560
|
+
stateMutability: 'nonpayable',
|
|
561
|
+
type: 'function',
|
|
562
562
|
},
|
|
563
563
|
{
|
|
564
|
-
|
|
564
|
+
inputs: [
|
|
565
565
|
{
|
|
566
|
-
|
|
567
|
-
|
|
566
|
+
name: '_asset',
|
|
567
|
+
type: 'address',
|
|
568
568
|
},
|
|
569
569
|
{
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
}
|
|
570
|
+
name: '_amount',
|
|
571
|
+
type: 'uint256',
|
|
572
|
+
},
|
|
573
573
|
],
|
|
574
|
-
|
|
575
|
-
|
|
574
|
+
name: 'isValidTrialFundsData',
|
|
575
|
+
outputs: [
|
|
576
576
|
{
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
}
|
|
577
|
+
name: '',
|
|
578
|
+
type: 'bool',
|
|
579
|
+
},
|
|
580
580
|
],
|
|
581
|
-
|
|
582
|
-
|
|
581
|
+
stateMutability: 'view',
|
|
582
|
+
type: 'function',
|
|
583
583
|
},
|
|
584
584
|
{
|
|
585
|
-
|
|
585
|
+
inputs: [
|
|
586
586
|
{
|
|
587
|
-
|
|
588
|
-
|
|
587
|
+
name: '_asset',
|
|
588
|
+
type: 'address',
|
|
589
589
|
},
|
|
590
590
|
{
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
}
|
|
591
|
+
name: '_amount',
|
|
592
|
+
type: 'uint256',
|
|
593
|
+
},
|
|
594
594
|
],
|
|
595
|
-
|
|
596
|
-
|
|
595
|
+
name: 'setTrialFundsData',
|
|
596
|
+
outputs: [
|
|
597
597
|
{
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
}
|
|
598
|
+
name: '',
|
|
599
|
+
type: 'bool',
|
|
600
|
+
},
|
|
601
601
|
],
|
|
602
|
-
|
|
603
|
-
|
|
602
|
+
stateMutability: 'nonpayable',
|
|
603
|
+
type: 'function',
|
|
604
604
|
},
|
|
605
605
|
{
|
|
606
|
-
|
|
606
|
+
inputs: [
|
|
607
607
|
{
|
|
608
|
-
|
|
609
|
-
|
|
608
|
+
name: '_addr',
|
|
609
|
+
type: 'address',
|
|
610
610
|
},
|
|
611
611
|
{
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
}
|
|
612
|
+
name: '_shouldWhitelist',
|
|
613
|
+
type: 'bool',
|
|
614
|
+
},
|
|
615
615
|
],
|
|
616
|
-
|
|
617
|
-
|
|
616
|
+
name: 'setWhitelist',
|
|
617
|
+
outputs: [
|
|
618
618
|
{
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
}
|
|
619
|
+
name: '',
|
|
620
|
+
type: 'bool',
|
|
621
|
+
},
|
|
622
622
|
],
|
|
623
|
-
|
|
624
|
-
|
|
623
|
+
stateMutability: 'nonpayable',
|
|
624
|
+
type: 'function',
|
|
625
625
|
},
|
|
626
626
|
{
|
|
627
|
-
|
|
627
|
+
inputs: [
|
|
628
628
|
{
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
}
|
|
629
|
+
name: '_shouldEnforce',
|
|
630
|
+
type: 'bool',
|
|
631
|
+
},
|
|
632
632
|
],
|
|
633
|
-
|
|
634
|
-
|
|
633
|
+
name: 'setShouldEnforceWhitelist',
|
|
634
|
+
outputs: [
|
|
635
635
|
{
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
636
|
+
name: '',
|
|
637
|
+
type: 'bool',
|
|
638
|
+
},
|
|
639
639
|
],
|
|
640
|
-
|
|
641
|
-
|
|
640
|
+
stateMutability: 'nonpayable',
|
|
641
|
+
type: 'function',
|
|
642
642
|
},
|
|
643
643
|
{
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
644
|
+
inputs: [],
|
|
645
|
+
name: 'setNumUserWalletsAllowed',
|
|
646
|
+
outputs: [
|
|
647
647
|
{
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
}
|
|
648
|
+
name: '',
|
|
649
|
+
type: 'bool',
|
|
650
|
+
},
|
|
651
651
|
],
|
|
652
|
-
|
|
653
|
-
|
|
652
|
+
stateMutability: 'nonpayable',
|
|
653
|
+
type: 'function',
|
|
654
654
|
},
|
|
655
655
|
{
|
|
656
|
-
|
|
656
|
+
inputs: [
|
|
657
657
|
{
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
}
|
|
658
|
+
name: '_numAllowed',
|
|
659
|
+
type: 'uint256',
|
|
660
|
+
},
|
|
661
661
|
],
|
|
662
|
-
|
|
663
|
-
|
|
662
|
+
name: 'setNumUserWalletsAllowed',
|
|
663
|
+
outputs: [
|
|
664
664
|
{
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
}
|
|
665
|
+
name: '',
|
|
666
|
+
type: 'bool',
|
|
667
|
+
},
|
|
668
668
|
],
|
|
669
|
-
|
|
670
|
-
|
|
669
|
+
stateMutability: 'nonpayable',
|
|
670
|
+
type: 'function',
|
|
671
671
|
},
|
|
672
672
|
{
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
673
|
+
inputs: [],
|
|
674
|
+
name: 'setNumAgentsAllowed',
|
|
675
|
+
outputs: [
|
|
676
676
|
{
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
}
|
|
677
|
+
name: '',
|
|
678
|
+
type: 'bool',
|
|
679
|
+
},
|
|
680
680
|
],
|
|
681
|
-
|
|
682
|
-
|
|
681
|
+
stateMutability: 'nonpayable',
|
|
682
|
+
type: 'function',
|
|
683
683
|
},
|
|
684
684
|
{
|
|
685
|
-
|
|
685
|
+
inputs: [
|
|
686
686
|
{
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
}
|
|
687
|
+
name: '_numAllowed',
|
|
688
|
+
type: 'uint256',
|
|
689
|
+
},
|
|
690
690
|
],
|
|
691
|
-
|
|
692
|
-
|
|
691
|
+
name: 'setNumAgentsAllowed',
|
|
692
|
+
outputs: [
|
|
693
693
|
{
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
}
|
|
694
|
+
name: '',
|
|
695
|
+
type: 'bool',
|
|
696
|
+
},
|
|
697
697
|
],
|
|
698
|
-
|
|
699
|
-
|
|
698
|
+
stateMutability: 'nonpayable',
|
|
699
|
+
type: 'function',
|
|
700
700
|
},
|
|
701
701
|
{
|
|
702
|
-
|
|
702
|
+
inputs: [
|
|
703
703
|
{
|
|
704
|
-
|
|
705
|
-
|
|
704
|
+
name: '_agentAddr',
|
|
705
|
+
type: 'address',
|
|
706
706
|
},
|
|
707
707
|
{
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
}
|
|
708
|
+
name: '_shouldBlacklist',
|
|
709
|
+
type: 'bool',
|
|
710
|
+
},
|
|
711
711
|
],
|
|
712
|
-
|
|
713
|
-
|
|
712
|
+
name: 'setAgentBlacklist',
|
|
713
|
+
outputs: [
|
|
714
714
|
{
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
}
|
|
715
|
+
name: '',
|
|
716
|
+
type: 'bool',
|
|
717
|
+
},
|
|
718
718
|
],
|
|
719
|
-
|
|
720
|
-
|
|
719
|
+
stateMutability: 'nonpayable',
|
|
720
|
+
type: 'function',
|
|
721
721
|
},
|
|
722
722
|
{
|
|
723
|
-
|
|
723
|
+
inputs: [
|
|
724
724
|
{
|
|
725
|
-
|
|
726
|
-
|
|
725
|
+
name: '_asset',
|
|
726
|
+
type: 'address',
|
|
727
727
|
},
|
|
728
728
|
{
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
}
|
|
729
|
+
name: '_recipient',
|
|
730
|
+
type: 'address',
|
|
731
|
+
},
|
|
732
732
|
],
|
|
733
|
-
|
|
734
|
-
|
|
733
|
+
name: 'recoverFunds',
|
|
734
|
+
outputs: [
|
|
735
735
|
{
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
}
|
|
736
|
+
name: '',
|
|
737
|
+
type: 'bool',
|
|
738
|
+
},
|
|
739
739
|
],
|
|
740
|
-
|
|
741
|
-
|
|
740
|
+
stateMutability: 'nonpayable',
|
|
741
|
+
type: 'function',
|
|
742
742
|
},
|
|
743
743
|
{
|
|
744
|
-
|
|
744
|
+
inputs: [
|
|
745
745
|
{
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
}
|
|
746
|
+
name: '_wallet',
|
|
747
|
+
type: 'address',
|
|
748
|
+
},
|
|
749
749
|
],
|
|
750
|
-
|
|
751
|
-
|
|
750
|
+
name: 'recoverTrialFunds',
|
|
751
|
+
outputs: [
|
|
752
752
|
{
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
}
|
|
753
|
+
name: '',
|
|
754
|
+
type: 'bool',
|
|
755
|
+
},
|
|
756
756
|
],
|
|
757
|
-
|
|
758
|
-
|
|
757
|
+
stateMutability: 'nonpayable',
|
|
758
|
+
type: 'function',
|
|
759
759
|
},
|
|
760
760
|
{
|
|
761
|
-
|
|
761
|
+
inputs: [
|
|
762
762
|
{
|
|
763
|
-
|
|
764
|
-
|
|
763
|
+
name: '_wallet',
|
|
764
|
+
type: 'address',
|
|
765
765
|
},
|
|
766
766
|
{
|
|
767
|
-
|
|
767
|
+
components: [
|
|
768
768
|
{
|
|
769
|
-
|
|
770
|
-
|
|
769
|
+
name: 'legoId',
|
|
770
|
+
type: 'uint256',
|
|
771
771
|
},
|
|
772
772
|
{
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}
|
|
773
|
+
name: 'vaultToken',
|
|
774
|
+
type: 'address',
|
|
775
|
+
},
|
|
776
776
|
],
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
}
|
|
777
|
+
name: '_opportunities',
|
|
778
|
+
type: 'tuple[]',
|
|
779
|
+
},
|
|
780
780
|
],
|
|
781
|
-
|
|
782
|
-
|
|
781
|
+
name: 'recoverTrialFunds',
|
|
782
|
+
outputs: [
|
|
783
783
|
{
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
}
|
|
784
|
+
name: '',
|
|
785
|
+
type: 'bool',
|
|
786
|
+
},
|
|
787
787
|
],
|
|
788
|
-
|
|
789
|
-
|
|
788
|
+
stateMutability: 'nonpayable',
|
|
789
|
+
type: 'function',
|
|
790
790
|
},
|
|
791
791
|
{
|
|
792
|
-
|
|
792
|
+
inputs: [
|
|
793
793
|
{
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
}
|
|
794
|
+
name: '_shouldActivate',
|
|
795
|
+
type: 'bool',
|
|
796
|
+
},
|
|
797
797
|
],
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
798
|
+
name: 'activate',
|
|
799
|
+
outputs: [],
|
|
800
|
+
stateMutability: 'nonpayable',
|
|
801
|
+
type: 'function',
|
|
802
802
|
},
|
|
803
803
|
{
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
804
|
+
inputs: [],
|
|
805
|
+
name: 'trialFundsData',
|
|
806
|
+
outputs: [
|
|
807
807
|
{
|
|
808
|
-
|
|
808
|
+
components: [
|
|
809
809
|
{
|
|
810
|
-
|
|
811
|
-
|
|
810
|
+
name: 'asset',
|
|
811
|
+
type: 'address',
|
|
812
812
|
},
|
|
813
813
|
{
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
}
|
|
814
|
+
name: 'amount',
|
|
815
|
+
type: 'uint256',
|
|
816
|
+
},
|
|
817
817
|
],
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
}
|
|
818
|
+
name: '',
|
|
819
|
+
type: 'tuple',
|
|
820
|
+
},
|
|
821
821
|
],
|
|
822
|
-
|
|
823
|
-
|
|
822
|
+
stateMutability: 'view',
|
|
823
|
+
type: 'function',
|
|
824
824
|
},
|
|
825
825
|
{
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
826
|
+
inputs: [],
|
|
827
|
+
name: 'userWalletTemplate',
|
|
828
|
+
outputs: [
|
|
829
829
|
{
|
|
830
|
-
|
|
830
|
+
components: [
|
|
831
831
|
{
|
|
832
|
-
|
|
833
|
-
|
|
832
|
+
name: 'addr',
|
|
833
|
+
type: 'address',
|
|
834
834
|
},
|
|
835
835
|
{
|
|
836
|
-
|
|
837
|
-
|
|
836
|
+
name: 'version',
|
|
837
|
+
type: 'uint256',
|
|
838
838
|
},
|
|
839
839
|
{
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
}
|
|
840
|
+
name: 'lastModified',
|
|
841
|
+
type: 'uint256',
|
|
842
|
+
},
|
|
843
843
|
],
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
}
|
|
844
|
+
name: '',
|
|
845
|
+
type: 'tuple',
|
|
846
|
+
},
|
|
847
847
|
],
|
|
848
|
-
|
|
849
|
-
|
|
848
|
+
stateMutability: 'view',
|
|
849
|
+
type: 'function',
|
|
850
850
|
},
|
|
851
851
|
{
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
852
|
+
inputs: [],
|
|
853
|
+
name: 'userWalletConfig',
|
|
854
|
+
outputs: [
|
|
855
855
|
{
|
|
856
|
-
|
|
856
|
+
components: [
|
|
857
857
|
{
|
|
858
|
-
|
|
859
|
-
|
|
858
|
+
name: 'addr',
|
|
859
|
+
type: 'address',
|
|
860
860
|
},
|
|
861
861
|
{
|
|
862
|
-
|
|
863
|
-
|
|
862
|
+
name: 'version',
|
|
863
|
+
type: 'uint256',
|
|
864
864
|
},
|
|
865
865
|
{
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
}
|
|
866
|
+
name: 'lastModified',
|
|
867
|
+
type: 'uint256',
|
|
868
|
+
},
|
|
869
869
|
],
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
}
|
|
870
|
+
name: '',
|
|
871
|
+
type: 'tuple',
|
|
872
|
+
},
|
|
873
873
|
],
|
|
874
|
-
|
|
875
|
-
|
|
874
|
+
stateMutability: 'view',
|
|
875
|
+
type: 'function',
|
|
876
876
|
},
|
|
877
877
|
{
|
|
878
|
-
|
|
878
|
+
inputs: [
|
|
879
879
|
{
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
}
|
|
880
|
+
name: 'arg0',
|
|
881
|
+
type: 'address',
|
|
882
|
+
},
|
|
883
883
|
],
|
|
884
|
-
|
|
885
|
-
|
|
884
|
+
name: 'isUserWallet',
|
|
885
|
+
outputs: [
|
|
886
886
|
{
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
}
|
|
887
|
+
name: '',
|
|
888
|
+
type: 'bool',
|
|
889
|
+
},
|
|
890
890
|
],
|
|
891
|
-
|
|
892
|
-
|
|
891
|
+
stateMutability: 'view',
|
|
892
|
+
type: 'function',
|
|
893
893
|
},
|
|
894
894
|
{
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
895
|
+
inputs: [],
|
|
896
|
+
name: 'numUserWallets',
|
|
897
|
+
outputs: [
|
|
898
898
|
{
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
}
|
|
899
|
+
name: '',
|
|
900
|
+
type: 'uint256',
|
|
901
|
+
},
|
|
902
902
|
],
|
|
903
|
-
|
|
904
|
-
|
|
903
|
+
stateMutability: 'view',
|
|
904
|
+
type: 'function',
|
|
905
905
|
},
|
|
906
906
|
{
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
907
|
+
inputs: [],
|
|
908
|
+
name: 'agentTemplateInfo',
|
|
909
|
+
outputs: [
|
|
910
910
|
{
|
|
911
|
-
|
|
911
|
+
components: [
|
|
912
912
|
{
|
|
913
|
-
|
|
914
|
-
|
|
913
|
+
name: 'addr',
|
|
914
|
+
type: 'address',
|
|
915
915
|
},
|
|
916
916
|
{
|
|
917
|
-
|
|
918
|
-
|
|
917
|
+
name: 'version',
|
|
918
|
+
type: 'uint256',
|
|
919
919
|
},
|
|
920
920
|
{
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
}
|
|
921
|
+
name: 'lastModified',
|
|
922
|
+
type: 'uint256',
|
|
923
|
+
},
|
|
924
924
|
],
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
}
|
|
925
|
+
name: '',
|
|
926
|
+
type: 'tuple',
|
|
927
|
+
},
|
|
928
928
|
],
|
|
929
|
-
|
|
930
|
-
|
|
929
|
+
stateMutability: 'view',
|
|
930
|
+
type: 'function',
|
|
931
931
|
},
|
|
932
932
|
{
|
|
933
|
-
|
|
933
|
+
inputs: [
|
|
934
934
|
{
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
}
|
|
935
|
+
name: 'arg0',
|
|
936
|
+
type: 'address',
|
|
937
|
+
},
|
|
938
938
|
],
|
|
939
|
-
|
|
940
|
-
|
|
939
|
+
name: 'isAgent',
|
|
940
|
+
outputs: [
|
|
941
941
|
{
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
}
|
|
942
|
+
name: '',
|
|
943
|
+
type: 'bool',
|
|
944
|
+
},
|
|
945
945
|
],
|
|
946
|
-
|
|
947
|
-
|
|
946
|
+
stateMutability: 'view',
|
|
947
|
+
type: 'function',
|
|
948
948
|
},
|
|
949
949
|
{
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
950
|
+
inputs: [],
|
|
951
|
+
name: 'numAgents',
|
|
952
|
+
outputs: [
|
|
953
953
|
{
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
}
|
|
954
|
+
name: '',
|
|
955
|
+
type: 'uint256',
|
|
956
|
+
},
|
|
957
957
|
],
|
|
958
|
-
|
|
959
|
-
|
|
958
|
+
stateMutability: 'view',
|
|
959
|
+
type: 'function',
|
|
960
960
|
},
|
|
961
961
|
{
|
|
962
|
-
|
|
962
|
+
inputs: [
|
|
963
963
|
{
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
}
|
|
964
|
+
name: 'arg0',
|
|
965
|
+
type: 'address',
|
|
966
|
+
},
|
|
967
967
|
],
|
|
968
|
-
|
|
969
|
-
|
|
968
|
+
name: 'agentBlacklist',
|
|
969
|
+
outputs: [
|
|
970
970
|
{
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
}
|
|
971
|
+
name: '',
|
|
972
|
+
type: 'bool',
|
|
973
|
+
},
|
|
974
974
|
],
|
|
975
|
-
|
|
976
|
-
|
|
975
|
+
stateMutability: 'view',
|
|
976
|
+
type: 'function',
|
|
977
977
|
},
|
|
978
978
|
{
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
979
|
+
inputs: [],
|
|
980
|
+
name: 'numUserWalletsAllowed',
|
|
981
|
+
outputs: [
|
|
982
982
|
{
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
}
|
|
983
|
+
name: '',
|
|
984
|
+
type: 'uint256',
|
|
985
|
+
},
|
|
986
986
|
],
|
|
987
|
-
|
|
988
|
-
|
|
987
|
+
stateMutability: 'view',
|
|
988
|
+
type: 'function',
|
|
989
989
|
},
|
|
990
990
|
{
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
991
|
+
inputs: [],
|
|
992
|
+
name: 'numAgentsAllowed',
|
|
993
|
+
outputs: [
|
|
994
994
|
{
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
}
|
|
995
|
+
name: '',
|
|
996
|
+
type: 'uint256',
|
|
997
|
+
},
|
|
998
998
|
],
|
|
999
|
-
|
|
1000
|
-
|
|
999
|
+
stateMutability: 'view',
|
|
1000
|
+
type: 'function',
|
|
1001
1001
|
},
|
|
1002
1002
|
{
|
|
1003
|
-
|
|
1003
|
+
inputs: [
|
|
1004
1004
|
{
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
}
|
|
1005
|
+
name: 'arg0',
|
|
1006
|
+
type: 'address',
|
|
1007
|
+
},
|
|
1008
1008
|
],
|
|
1009
|
-
|
|
1010
|
-
|
|
1009
|
+
name: 'whitelist',
|
|
1010
|
+
outputs: [
|
|
1011
1011
|
{
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
}
|
|
1012
|
+
name: '',
|
|
1013
|
+
type: 'bool',
|
|
1014
|
+
},
|
|
1015
1015
|
],
|
|
1016
|
-
|
|
1017
|
-
|
|
1016
|
+
stateMutability: 'view',
|
|
1017
|
+
type: 'function',
|
|
1018
1018
|
},
|
|
1019
1019
|
{
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1020
|
+
inputs: [],
|
|
1021
|
+
name: 'shouldEnforceWhitelist',
|
|
1022
|
+
outputs: [
|
|
1023
1023
|
{
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
}
|
|
1024
|
+
name: '',
|
|
1025
|
+
type: 'bool',
|
|
1026
|
+
},
|
|
1027
1027
|
],
|
|
1028
|
-
|
|
1029
|
-
|
|
1028
|
+
stateMutability: 'view',
|
|
1029
|
+
type: 'function',
|
|
1030
1030
|
},
|
|
1031
1031
|
{
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1032
|
+
inputs: [],
|
|
1033
|
+
name: 'isActivated',
|
|
1034
|
+
outputs: [
|
|
1035
1035
|
{
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
}
|
|
1036
|
+
name: '',
|
|
1037
|
+
type: 'bool',
|
|
1038
|
+
},
|
|
1039
1039
|
],
|
|
1040
|
-
|
|
1041
|
-
|
|
1040
|
+
stateMutability: 'view',
|
|
1041
|
+
type: 'function',
|
|
1042
1042
|
},
|
|
1043
1043
|
{
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1044
|
+
inputs: [],
|
|
1045
|
+
name: 'ADDY_REGISTRY',
|
|
1046
|
+
outputs: [
|
|
1047
1047
|
{
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
}
|
|
1048
|
+
name: '',
|
|
1049
|
+
type: 'address',
|
|
1050
|
+
},
|
|
1051
1051
|
],
|
|
1052
|
-
|
|
1053
|
-
|
|
1052
|
+
stateMutability: 'view',
|
|
1053
|
+
type: 'function',
|
|
1054
1054
|
},
|
|
1055
1055
|
{
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1056
|
+
inputs: [],
|
|
1057
|
+
name: 'WETH_ADDR',
|
|
1058
|
+
outputs: [
|
|
1059
1059
|
{
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
}
|
|
1060
|
+
name: '',
|
|
1061
|
+
type: 'address',
|
|
1062
|
+
},
|
|
1063
1063
|
],
|
|
1064
|
-
|
|
1065
|
-
|
|
1064
|
+
stateMutability: 'view',
|
|
1065
|
+
type: 'function',
|
|
1066
1066
|
},
|
|
1067
1067
|
{
|
|
1068
|
-
|
|
1068
|
+
inputs: [
|
|
1069
1069
|
{
|
|
1070
|
-
|
|
1071
|
-
|
|
1070
|
+
name: '_addyRegistry',
|
|
1071
|
+
type: 'address',
|
|
1072
1072
|
},
|
|
1073
1073
|
{
|
|
1074
|
-
|
|
1075
|
-
|
|
1074
|
+
name: '_wethAddr',
|
|
1075
|
+
type: 'address',
|
|
1076
1076
|
},
|
|
1077
1077
|
{
|
|
1078
|
-
|
|
1079
|
-
|
|
1078
|
+
name: '_userWalletTemplate',
|
|
1079
|
+
type: 'address',
|
|
1080
1080
|
},
|
|
1081
1081
|
{
|
|
1082
|
-
|
|
1083
|
-
|
|
1082
|
+
name: '_userConfigTemplate',
|
|
1083
|
+
type: 'address',
|
|
1084
1084
|
},
|
|
1085
1085
|
{
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
}
|
|
1086
|
+
name: '_agentTemplate',
|
|
1087
|
+
type: 'address',
|
|
1088
|
+
},
|
|
1089
1089
|
],
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
}
|
|
1090
|
+
outputs: [],
|
|
1091
|
+
stateMutability: 'nonpayable',
|
|
1092
|
+
type: 'constructor',
|
|
1093
|
+
},
|
|
1094
1094
|
];
|
|
1095
|
-
export const deployAddress =
|
|
1095
|
+
export const deployAddress = '0x7bA5A18b88fFc9bB569d5A7e311c1607a0737a25';
|
|
1096
1096
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
1097
1097
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
1098
1098
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|