@gooddollar/goodcollective-contracts 1.1.0 → 1.3.0
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/README.md +14 -1
- package/contracts/DirectPayments/DirectPaymentsFactory.sol +23 -15
- package/contracts/DirectPayments/DirectPaymentsLibrary.sol +54 -0
- package/contracts/DirectPayments/DirectPaymentsPool.sol +25 -41
- package/contracts/GoodCollective/GoodCollectiveSuperApp.sol +89 -61
- package/contracts/GoodCollective/IGoodCollectiveSuperApp.sol +12 -0
- package/contracts/Interfaces.sol +25 -0
- package/contracts/UBI/UBIPool.sol +103 -90
- package/contracts/UBI/UBIPoolFactory.sol +24 -10
- package/contracts/test/HelperLibraryTest.sol +16 -0
- package/contracts/utils/HelperLibrary.sol +109 -8
- package/package.json +4 -3
- package/releases/deployment.json +22797 -431
- package/typechain-types/@uniswap/index.ts +0 -2
- package/typechain-types/contracts/DirectPayments/DirectPaymentsFactory.ts +56 -9
- package/typechain-types/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool.ts +187 -9
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.ts +150 -6
- package/typechain-types/contracts/{UBI/MultiClaimModule.sol/IClaimable.ts → GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp.ts} +24 -23
- package/typechain-types/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/index.ts +1 -1
- package/typechain-types/contracts/GoodCollective/index.ts +3 -2
- package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IIdentityV2.ts +1 -1
- package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IMembersValidator.ts +1 -1
- package/typechain-types/contracts/{UBI/UBIPool.sol → Interfaces.sol}/index.ts +0 -1
- package/typechain-types/contracts/UBI/{UBIPool.sol/UBIPool.ts → UBIPool.ts} +325 -78
- package/typechain-types/contracts/UBI/UBIPoolFactory.ts +95 -33
- package/typechain-types/contracts/UBI/index.ts +1 -4
- package/typechain-types/contracts/index.ts +4 -0
- package/typechain-types/contracts/test/HelperLibraryTest.ts +147 -0
- package/typechain-types/{@uniswap/v3-periphery/contracts/interfaces → contracts/test}/index.ts +1 -1
- package/typechain-types/contracts/utils/HelperLibrary.ts +46 -4
- package/typechain-types/factories/@uniswap/index.ts +0 -1
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsFactory__factory.ts +25 -2
- package/typechain-types/factories/contracts/DirectPayments/DirectPaymentsPool.sol/DirectPaymentsPool__factory.ts +128 -1
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp__factory.ts +105 -1
- package/typechain-types/factories/contracts/GoodCollective/IGoodCollectiveSuperApp.sol/IGoodCollectiveSuperApp__factory.ts +48 -0
- package/typechain-types/factories/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/IRegistry__factory.ts +1 -1
- package/typechain-types/factories/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/index.ts +1 -1
- package/typechain-types/factories/contracts/GoodCollective/index.ts +2 -1
- package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IIdentityV2__factory.ts +1 -1
- package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/IMembersValidator__factory.ts +1 -1
- package/typechain-types/factories/contracts/{UBI/UBIPool.sol → Interfaces.sol}/index.ts +0 -1
- package/typechain-types/factories/contracts/UBI/UBIPoolFactory__factory.ts +76 -4
- package/typechain-types/factories/contracts/UBI/UBIPool__factory.ts +2052 -0
- package/typechain-types/factories/contracts/UBI/index.ts +1 -2
- package/typechain-types/factories/contracts/index.ts +2 -0
- package/typechain-types/factories/contracts/test/HelperLibraryTest__factory.ts +154 -0
- package/typechain-types/{@uniswap/v3-periphery → factories/contracts/test}/index.ts +1 -2
- package/typechain-types/factories/contracts/utils/HelperLibrary__factory.ts +31 -1
- package/typechain-types/hardhat.d.ts +18 -36
- package/typechain-types/index.ts +10 -14
- package/contracts/UBI/MultiClaimModule.sol +0 -78
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula.ts +0 -115
- package/typechain-types/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +0 -4
- package/typechain-types/@uniswap/v3-periphery/contracts/index.ts +0 -5
- package/typechain-types/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter.ts +0 -369
- package/typechain-types/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp.ts +0 -1000
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/IModule.ts +0 -196
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/MultiClaimModule.ts +0 -242
- package/typechain-types/contracts/UBI/MultiClaimModule.sol/index.ts +0 -6
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/IFeesFormula__factory.ts +0 -60
- package/typechain-types/factories/@gooddollar/goodprotocol/contracts/token/FeesFormula.sol/index.ts +0 -4
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/index.ts +0 -4
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/ISwapRouter__factory.ts +0 -263
- package/typechain-types/factories/@uniswap/v3-periphery/contracts/interfaces/index.ts +0 -4
- package/typechain-types/factories/@uniswap/v3-periphery/index.ts +0 -4
- package/typechain-types/factories/contracts/GoodCollective/GoodCollectiveSuperApp.sol/GoodCollectiveSuperApp__factory.ts +0 -728
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IClaimable__factory.ts +0 -33
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/IModule__factory.ts +0 -84
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/MultiClaimModule__factory.ts +0 -150
- package/typechain-types/factories/contracts/UBI/MultiClaimModule.sol/index.ts +0 -6
- package/typechain-types/factories/contracts/UBI/UBIPool.sol/UBIPool__factory.ts +0 -1835
- /package/typechain-types/contracts/GoodCollective/{GoodCollectiveSuperApp.sol → IGoodCollectiveSuperApp.sol}/IRegistry.ts +0 -0
|
@@ -0,0 +1,2052 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
|
|
5
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
6
|
+
import type { PromiseOrValue } from "../../../common";
|
|
7
|
+
import type { UBIPool, UBIPoolInterface } from "../../../contracts/UBI/UBIPool";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
internalType: "contract ISuperfluid",
|
|
14
|
+
name: "_host",
|
|
15
|
+
type: "address",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
internalType: "contract IV3SwapRouter",
|
|
19
|
+
name: "_swapRouter",
|
|
20
|
+
type: "address",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
stateMutability: "nonpayable",
|
|
24
|
+
type: "constructor",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
inputs: [
|
|
28
|
+
{
|
|
29
|
+
internalType: "address",
|
|
30
|
+
name: "whitelistedRoot",
|
|
31
|
+
type: "address",
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
name: "ALREADY_CLAIMED",
|
|
35
|
+
type: "error",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
inputs: [],
|
|
39
|
+
name: "CLAIMFOR_DISABLED",
|
|
40
|
+
type: "error",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
inputs: [],
|
|
44
|
+
name: "EMPTY_MANAGER",
|
|
45
|
+
type: "error",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
inputs: [
|
|
49
|
+
{
|
|
50
|
+
internalType: "int96",
|
|
51
|
+
name: "curFeeRate",
|
|
52
|
+
type: "int96",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
internalType: "int96",
|
|
56
|
+
name: "newFeeRate",
|
|
57
|
+
type: "int96",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
name: "FEE_FLOW_FAILED",
|
|
61
|
+
type: "error",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
inputs: [],
|
|
65
|
+
name: "INVALID_0_VALUE",
|
|
66
|
+
type: "error",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
inputs: [],
|
|
70
|
+
name: "MAX_MEMBERS_REACHED",
|
|
71
|
+
type: "error",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
inputs: [
|
|
75
|
+
{
|
|
76
|
+
internalType: "uint256",
|
|
77
|
+
name: "claimers",
|
|
78
|
+
type: "uint256",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
name: "MAX_PERIOD_CLAIMERS_REACHED",
|
|
82
|
+
type: "error",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
inputs: [
|
|
86
|
+
{
|
|
87
|
+
internalType: "int96",
|
|
88
|
+
name: "flowRate",
|
|
89
|
+
type: "int96",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
name: "MIN_FLOWRATE",
|
|
93
|
+
type: "error",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
inputs: [
|
|
97
|
+
{
|
|
98
|
+
internalType: "address",
|
|
99
|
+
name: "manager",
|
|
100
|
+
type: "address",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
name: "NOT_MANAGER",
|
|
104
|
+
type: "error",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
inputs: [
|
|
108
|
+
{
|
|
109
|
+
internalType: "address",
|
|
110
|
+
name: "claimer",
|
|
111
|
+
type: "address",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
name: "NOT_MEMBER",
|
|
115
|
+
type: "error",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
inputs: [
|
|
119
|
+
{
|
|
120
|
+
internalType: "address",
|
|
121
|
+
name: "whitelistedRoot",
|
|
122
|
+
type: "address",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
name: "NOT_WHITELISTED",
|
|
126
|
+
type: "error",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
inputs: [],
|
|
130
|
+
name: "NotAcceptedSuperToken",
|
|
131
|
+
type: "error",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
inputs: [],
|
|
135
|
+
name: "NotImplemented",
|
|
136
|
+
type: "error",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
inputs: [
|
|
140
|
+
{
|
|
141
|
+
internalType: "address",
|
|
142
|
+
name: "",
|
|
143
|
+
type: "address",
|
|
144
|
+
},
|
|
145
|
+
],
|
|
146
|
+
name: "ONLY_HOST_OR_SENDER",
|
|
147
|
+
type: "error",
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
inputs: [],
|
|
151
|
+
name: "UNSUPPORTED_TOKEN",
|
|
152
|
+
type: "error",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
inputs: [],
|
|
156
|
+
name: "UnauthorizedHost",
|
|
157
|
+
type: "error",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
inputs: [],
|
|
161
|
+
name: "ZERO_ADDRESS",
|
|
162
|
+
type: "error",
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
inputs: [],
|
|
166
|
+
name: "ZERO_AMOUNT",
|
|
167
|
+
type: "error",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
anonymous: false,
|
|
171
|
+
inputs: [
|
|
172
|
+
{
|
|
173
|
+
indexed: false,
|
|
174
|
+
internalType: "address",
|
|
175
|
+
name: "previousAdmin",
|
|
176
|
+
type: "address",
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
indexed: false,
|
|
180
|
+
internalType: "address",
|
|
181
|
+
name: "newAdmin",
|
|
182
|
+
type: "address",
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
name: "AdminChanged",
|
|
186
|
+
type: "event",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
anonymous: false,
|
|
190
|
+
inputs: [
|
|
191
|
+
{
|
|
192
|
+
indexed: true,
|
|
193
|
+
internalType: "address",
|
|
194
|
+
name: "beacon",
|
|
195
|
+
type: "address",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
name: "BeaconUpgraded",
|
|
199
|
+
type: "event",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
anonymous: false,
|
|
203
|
+
inputs: [
|
|
204
|
+
{
|
|
205
|
+
indexed: false,
|
|
206
|
+
internalType: "uint8",
|
|
207
|
+
name: "version",
|
|
208
|
+
type: "uint8",
|
|
209
|
+
},
|
|
210
|
+
],
|
|
211
|
+
name: "Initialized",
|
|
212
|
+
type: "event",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
anonymous: false,
|
|
216
|
+
inputs: [
|
|
217
|
+
{
|
|
218
|
+
components: [
|
|
219
|
+
{
|
|
220
|
+
internalType: "address",
|
|
221
|
+
name: "manager",
|
|
222
|
+
type: "address",
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
internalType: "contract IMembersValidator",
|
|
226
|
+
name: "membersValidator",
|
|
227
|
+
type: "address",
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
internalType: "contract IIdentityV2",
|
|
231
|
+
name: "uniquenessValidator",
|
|
232
|
+
type: "address",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
internalType: "contract IERC20Upgradeable",
|
|
236
|
+
name: "rewardToken",
|
|
237
|
+
type: "address",
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
indexed: false,
|
|
241
|
+
internalType: "struct PoolSettings",
|
|
242
|
+
name: "settings",
|
|
243
|
+
type: "tuple",
|
|
244
|
+
},
|
|
245
|
+
],
|
|
246
|
+
name: "PoolSettingsChanged",
|
|
247
|
+
type: "event",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
anonymous: false,
|
|
251
|
+
inputs: [
|
|
252
|
+
{
|
|
253
|
+
indexed: true,
|
|
254
|
+
internalType: "bytes32",
|
|
255
|
+
name: "role",
|
|
256
|
+
type: "bytes32",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
indexed: true,
|
|
260
|
+
internalType: "bytes32",
|
|
261
|
+
name: "previousAdminRole",
|
|
262
|
+
type: "bytes32",
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
indexed: true,
|
|
266
|
+
internalType: "bytes32",
|
|
267
|
+
name: "newAdminRole",
|
|
268
|
+
type: "bytes32",
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
name: "RoleAdminChanged",
|
|
272
|
+
type: "event",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
anonymous: false,
|
|
276
|
+
inputs: [
|
|
277
|
+
{
|
|
278
|
+
indexed: true,
|
|
279
|
+
internalType: "bytes32",
|
|
280
|
+
name: "role",
|
|
281
|
+
type: "bytes32",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
indexed: true,
|
|
285
|
+
internalType: "address",
|
|
286
|
+
name: "account",
|
|
287
|
+
type: "address",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
indexed: true,
|
|
291
|
+
internalType: "address",
|
|
292
|
+
name: "sender",
|
|
293
|
+
type: "address",
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
name: "RoleGranted",
|
|
297
|
+
type: "event",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
anonymous: false,
|
|
301
|
+
inputs: [
|
|
302
|
+
{
|
|
303
|
+
indexed: true,
|
|
304
|
+
internalType: "bytes32",
|
|
305
|
+
name: "role",
|
|
306
|
+
type: "bytes32",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
indexed: true,
|
|
310
|
+
internalType: "address",
|
|
311
|
+
name: "account",
|
|
312
|
+
type: "address",
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
indexed: true,
|
|
316
|
+
internalType: "address",
|
|
317
|
+
name: "sender",
|
|
318
|
+
type: "address",
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
name: "RoleRevoked",
|
|
322
|
+
type: "event",
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
anonymous: false,
|
|
326
|
+
inputs: [
|
|
327
|
+
{
|
|
328
|
+
indexed: true,
|
|
329
|
+
internalType: "address",
|
|
330
|
+
name: "supporter",
|
|
331
|
+
type: "address",
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
indexed: false,
|
|
335
|
+
internalType: "uint256",
|
|
336
|
+
name: "previousContribution",
|
|
337
|
+
type: "uint256",
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
indexed: false,
|
|
341
|
+
internalType: "uint256",
|
|
342
|
+
name: "contribution",
|
|
343
|
+
type: "uint256",
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
indexed: false,
|
|
347
|
+
internalType: "int96",
|
|
348
|
+
name: "previousFlowRate",
|
|
349
|
+
type: "int96",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
indexed: false,
|
|
353
|
+
internalType: "int96",
|
|
354
|
+
name: "flowRate",
|
|
355
|
+
type: "int96",
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
indexed: false,
|
|
359
|
+
internalType: "bool",
|
|
360
|
+
name: "isFlowUpdate",
|
|
361
|
+
type: "bool",
|
|
362
|
+
},
|
|
363
|
+
],
|
|
364
|
+
name: "SupporterUpdated",
|
|
365
|
+
type: "event",
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
anonymous: false,
|
|
369
|
+
inputs: [
|
|
370
|
+
{
|
|
371
|
+
indexed: false,
|
|
372
|
+
internalType: "uint256",
|
|
373
|
+
name: "day",
|
|
374
|
+
type: "uint256",
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
indexed: false,
|
|
378
|
+
internalType: "uint256",
|
|
379
|
+
name: "dailyUbi",
|
|
380
|
+
type: "uint256",
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
indexed: false,
|
|
384
|
+
internalType: "uint256",
|
|
385
|
+
name: "blockNumber",
|
|
386
|
+
type: "uint256",
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
indexed: false,
|
|
390
|
+
internalType: "uint256",
|
|
391
|
+
name: "periodClaimers",
|
|
392
|
+
type: "uint256",
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
indexed: false,
|
|
396
|
+
internalType: "uint256",
|
|
397
|
+
name: "periodDistributed",
|
|
398
|
+
type: "uint256",
|
|
399
|
+
},
|
|
400
|
+
],
|
|
401
|
+
name: "UBICalculated",
|
|
402
|
+
type: "event",
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
anonymous: false,
|
|
406
|
+
inputs: [
|
|
407
|
+
{
|
|
408
|
+
indexed: true,
|
|
409
|
+
internalType: "address",
|
|
410
|
+
name: "whitelistedRoot",
|
|
411
|
+
type: "address",
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
indexed: true,
|
|
415
|
+
internalType: "address",
|
|
416
|
+
name: "claimer",
|
|
417
|
+
type: "address",
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
indexed: false,
|
|
421
|
+
internalType: "uint256",
|
|
422
|
+
name: "amount",
|
|
423
|
+
type: "uint256",
|
|
424
|
+
},
|
|
425
|
+
],
|
|
426
|
+
name: "UBIClaimed",
|
|
427
|
+
type: "event",
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
anonymous: false,
|
|
431
|
+
inputs: [
|
|
432
|
+
{
|
|
433
|
+
indexed: false,
|
|
434
|
+
internalType: "uint256",
|
|
435
|
+
name: "day",
|
|
436
|
+
type: "uint256",
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
indexed: false,
|
|
440
|
+
internalType: "uint256",
|
|
441
|
+
name: "pool",
|
|
442
|
+
type: "uint256",
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
indexed: false,
|
|
446
|
+
internalType: "uint256",
|
|
447
|
+
name: "cycleLength",
|
|
448
|
+
type: "uint256",
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
indexed: false,
|
|
452
|
+
internalType: "uint256",
|
|
453
|
+
name: "dailyUBIPool",
|
|
454
|
+
type: "uint256",
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
name: "UBICycleCalculated",
|
|
458
|
+
type: "event",
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
anonymous: false,
|
|
462
|
+
inputs: [
|
|
463
|
+
{
|
|
464
|
+
components: [
|
|
465
|
+
{
|
|
466
|
+
internalType: "uint32",
|
|
467
|
+
name: "cycleLengthDays",
|
|
468
|
+
type: "uint32",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
internalType: "uint32",
|
|
472
|
+
name: "claimPeriodDays",
|
|
473
|
+
type: "uint32",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
internalType: "uint32",
|
|
477
|
+
name: "minActiveUsers",
|
|
478
|
+
type: "uint32",
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
internalType: "bool",
|
|
482
|
+
name: "claimForEnabled",
|
|
483
|
+
type: "bool",
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
internalType: "uint256",
|
|
487
|
+
name: "maxClaimAmount",
|
|
488
|
+
type: "uint256",
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
internalType: "uint32",
|
|
492
|
+
name: "maxMembers",
|
|
493
|
+
type: "uint32",
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
internalType: "bool",
|
|
497
|
+
name: "onlyMembers",
|
|
498
|
+
type: "bool",
|
|
499
|
+
},
|
|
500
|
+
],
|
|
501
|
+
indexed: false,
|
|
502
|
+
internalType: "struct UBIPool.UBISettings",
|
|
503
|
+
name: "settings",
|
|
504
|
+
type: "tuple",
|
|
505
|
+
},
|
|
506
|
+
],
|
|
507
|
+
name: "UBISettingsChanged",
|
|
508
|
+
type: "event",
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
anonymous: false,
|
|
512
|
+
inputs: [
|
|
513
|
+
{
|
|
514
|
+
indexed: true,
|
|
515
|
+
internalType: "address",
|
|
516
|
+
name: "implementation",
|
|
517
|
+
type: "address",
|
|
518
|
+
},
|
|
519
|
+
],
|
|
520
|
+
name: "Upgraded",
|
|
521
|
+
type: "event",
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
inputs: [],
|
|
525
|
+
name: "CFAV1_TYPE",
|
|
526
|
+
outputs: [
|
|
527
|
+
{
|
|
528
|
+
internalType: "bytes32",
|
|
529
|
+
name: "",
|
|
530
|
+
type: "bytes32",
|
|
531
|
+
},
|
|
532
|
+
],
|
|
533
|
+
stateMutability: "view",
|
|
534
|
+
type: "function",
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
inputs: [],
|
|
538
|
+
name: "DEFAULT_ADMIN_ROLE",
|
|
539
|
+
outputs: [
|
|
540
|
+
{
|
|
541
|
+
internalType: "bytes32",
|
|
542
|
+
name: "",
|
|
543
|
+
type: "bytes32",
|
|
544
|
+
},
|
|
545
|
+
],
|
|
546
|
+
stateMutability: "view",
|
|
547
|
+
type: "function",
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
inputs: [],
|
|
551
|
+
name: "MANAGER_ROLE",
|
|
552
|
+
outputs: [
|
|
553
|
+
{
|
|
554
|
+
internalType: "bytes32",
|
|
555
|
+
name: "",
|
|
556
|
+
type: "bytes32",
|
|
557
|
+
},
|
|
558
|
+
],
|
|
559
|
+
stateMutability: "view",
|
|
560
|
+
type: "function",
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
inputs: [],
|
|
564
|
+
name: "MEMBER_ROLE",
|
|
565
|
+
outputs: [
|
|
566
|
+
{
|
|
567
|
+
internalType: "bytes32",
|
|
568
|
+
name: "",
|
|
569
|
+
type: "bytes32",
|
|
570
|
+
},
|
|
571
|
+
],
|
|
572
|
+
stateMutability: "view",
|
|
573
|
+
type: "function",
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
inputs: [],
|
|
577
|
+
name: "MIN_FLOW_RATE",
|
|
578
|
+
outputs: [
|
|
579
|
+
{
|
|
580
|
+
internalType: "int96",
|
|
581
|
+
name: "",
|
|
582
|
+
type: "int96",
|
|
583
|
+
},
|
|
584
|
+
],
|
|
585
|
+
stateMutability: "view",
|
|
586
|
+
type: "function",
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
inputs: [
|
|
590
|
+
{
|
|
591
|
+
internalType: "address",
|
|
592
|
+
name: "member",
|
|
593
|
+
type: "address",
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
internalType: "bytes",
|
|
597
|
+
name: "extraData",
|
|
598
|
+
type: "bytes",
|
|
599
|
+
},
|
|
600
|
+
],
|
|
601
|
+
name: "addMember",
|
|
602
|
+
outputs: [
|
|
603
|
+
{
|
|
604
|
+
internalType: "bool",
|
|
605
|
+
name: "isMember",
|
|
606
|
+
type: "bool",
|
|
607
|
+
},
|
|
608
|
+
],
|
|
609
|
+
stateMutability: "nonpayable",
|
|
610
|
+
type: "function",
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
inputs: [
|
|
614
|
+
{
|
|
615
|
+
internalType: "contract ISuperToken",
|
|
616
|
+
name: "superToken",
|
|
617
|
+
type: "address",
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
internalType: "address",
|
|
621
|
+
name: "",
|
|
622
|
+
type: "address",
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
internalType: "bytes32",
|
|
626
|
+
name: "",
|
|
627
|
+
type: "bytes32",
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
internalType: "bytes",
|
|
631
|
+
name: "agreementData",
|
|
632
|
+
type: "bytes",
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
internalType: "bytes",
|
|
636
|
+
name: "",
|
|
637
|
+
type: "bytes",
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
internalType: "bytes",
|
|
641
|
+
name: "ctx",
|
|
642
|
+
type: "bytes",
|
|
643
|
+
},
|
|
644
|
+
],
|
|
645
|
+
name: "afterAgreementCreated",
|
|
646
|
+
outputs: [
|
|
647
|
+
{
|
|
648
|
+
internalType: "bytes",
|
|
649
|
+
name: "newCtx",
|
|
650
|
+
type: "bytes",
|
|
651
|
+
},
|
|
652
|
+
],
|
|
653
|
+
stateMutability: "nonpayable",
|
|
654
|
+
type: "function",
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
inputs: [
|
|
658
|
+
{
|
|
659
|
+
internalType: "contract ISuperToken",
|
|
660
|
+
name: "superToken",
|
|
661
|
+
type: "address",
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
internalType: "address",
|
|
665
|
+
name: "agreementClass",
|
|
666
|
+
type: "address",
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
internalType: "bytes32",
|
|
670
|
+
name: "",
|
|
671
|
+
type: "bytes32",
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
internalType: "bytes",
|
|
675
|
+
name: "agreementData",
|
|
676
|
+
type: "bytes",
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
internalType: "bytes",
|
|
680
|
+
name: "cbdata",
|
|
681
|
+
type: "bytes",
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
internalType: "bytes",
|
|
685
|
+
name: "ctx",
|
|
686
|
+
type: "bytes",
|
|
687
|
+
},
|
|
688
|
+
],
|
|
689
|
+
name: "afterAgreementTerminated",
|
|
690
|
+
outputs: [
|
|
691
|
+
{
|
|
692
|
+
internalType: "bytes",
|
|
693
|
+
name: "newCtx",
|
|
694
|
+
type: "bytes",
|
|
695
|
+
},
|
|
696
|
+
],
|
|
697
|
+
stateMutability: "nonpayable",
|
|
698
|
+
type: "function",
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
inputs: [
|
|
702
|
+
{
|
|
703
|
+
internalType: "contract ISuperToken",
|
|
704
|
+
name: "superToken",
|
|
705
|
+
type: "address",
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
internalType: "address",
|
|
709
|
+
name: "",
|
|
710
|
+
type: "address",
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
internalType: "bytes32",
|
|
714
|
+
name: "",
|
|
715
|
+
type: "bytes32",
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
internalType: "bytes",
|
|
719
|
+
name: "agreementData",
|
|
720
|
+
type: "bytes",
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
internalType: "bytes",
|
|
724
|
+
name: "cbdata",
|
|
725
|
+
type: "bytes",
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
internalType: "bytes",
|
|
729
|
+
name: "ctx",
|
|
730
|
+
type: "bytes",
|
|
731
|
+
},
|
|
732
|
+
],
|
|
733
|
+
name: "afterAgreementUpdated",
|
|
734
|
+
outputs: [
|
|
735
|
+
{
|
|
736
|
+
internalType: "bytes",
|
|
737
|
+
name: "newCtx",
|
|
738
|
+
type: "bytes",
|
|
739
|
+
},
|
|
740
|
+
],
|
|
741
|
+
stateMutability: "nonpayable",
|
|
742
|
+
type: "function",
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
inputs: [
|
|
746
|
+
{
|
|
747
|
+
internalType: "contract ISuperToken",
|
|
748
|
+
name: "superToken",
|
|
749
|
+
type: "address",
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
internalType: "address",
|
|
753
|
+
name: "agreementClass",
|
|
754
|
+
type: "address",
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
internalType: "bytes32",
|
|
758
|
+
name: "",
|
|
759
|
+
type: "bytes32",
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
internalType: "bytes",
|
|
763
|
+
name: "",
|
|
764
|
+
type: "bytes",
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
internalType: "bytes",
|
|
768
|
+
name: "",
|
|
769
|
+
type: "bytes",
|
|
770
|
+
},
|
|
771
|
+
],
|
|
772
|
+
name: "beforeAgreementCreated",
|
|
773
|
+
outputs: [
|
|
774
|
+
{
|
|
775
|
+
internalType: "bytes",
|
|
776
|
+
name: "",
|
|
777
|
+
type: "bytes",
|
|
778
|
+
},
|
|
779
|
+
],
|
|
780
|
+
stateMutability: "view",
|
|
781
|
+
type: "function",
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
inputs: [
|
|
785
|
+
{
|
|
786
|
+
internalType: "contract ISuperToken",
|
|
787
|
+
name: "superToken",
|
|
788
|
+
type: "address",
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
internalType: "address",
|
|
792
|
+
name: "agreementClass",
|
|
793
|
+
type: "address",
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
internalType: "bytes32",
|
|
797
|
+
name: "",
|
|
798
|
+
type: "bytes32",
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
internalType: "bytes",
|
|
802
|
+
name: "agreementData",
|
|
803
|
+
type: "bytes",
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
internalType: "bytes",
|
|
807
|
+
name: "",
|
|
808
|
+
type: "bytes",
|
|
809
|
+
},
|
|
810
|
+
],
|
|
811
|
+
name: "beforeAgreementTerminated",
|
|
812
|
+
outputs: [
|
|
813
|
+
{
|
|
814
|
+
internalType: "bytes",
|
|
815
|
+
name: "",
|
|
816
|
+
type: "bytes",
|
|
817
|
+
},
|
|
818
|
+
],
|
|
819
|
+
stateMutability: "view",
|
|
820
|
+
type: "function",
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
inputs: [
|
|
824
|
+
{
|
|
825
|
+
internalType: "contract ISuperToken",
|
|
826
|
+
name: "superToken",
|
|
827
|
+
type: "address",
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
internalType: "address",
|
|
831
|
+
name: "agreementClass",
|
|
832
|
+
type: "address",
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
internalType: "bytes32",
|
|
836
|
+
name: "",
|
|
837
|
+
type: "bytes32",
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
internalType: "bytes",
|
|
841
|
+
name: "agreementData",
|
|
842
|
+
type: "bytes",
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
internalType: "bytes",
|
|
846
|
+
name: "",
|
|
847
|
+
type: "bytes",
|
|
848
|
+
},
|
|
849
|
+
],
|
|
850
|
+
name: "beforeAgreementUpdated",
|
|
851
|
+
outputs: [
|
|
852
|
+
{
|
|
853
|
+
internalType: "bytes",
|
|
854
|
+
name: "",
|
|
855
|
+
type: "bytes",
|
|
856
|
+
},
|
|
857
|
+
],
|
|
858
|
+
stateMutability: "view",
|
|
859
|
+
type: "function",
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
inputs: [],
|
|
863
|
+
name: "cfaV1",
|
|
864
|
+
outputs: [
|
|
865
|
+
{
|
|
866
|
+
internalType: "contract ISuperfluid",
|
|
867
|
+
name: "host",
|
|
868
|
+
type: "address",
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
internalType: "contract IConstantFlowAgreementV1",
|
|
872
|
+
name: "cfa",
|
|
873
|
+
type: "address",
|
|
874
|
+
},
|
|
875
|
+
],
|
|
876
|
+
stateMutability: "view",
|
|
877
|
+
type: "function",
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
inputs: [
|
|
881
|
+
{
|
|
882
|
+
internalType: "address",
|
|
883
|
+
name: "_member",
|
|
884
|
+
type: "address",
|
|
885
|
+
},
|
|
886
|
+
],
|
|
887
|
+
name: "checkEntitlement",
|
|
888
|
+
outputs: [
|
|
889
|
+
{
|
|
890
|
+
internalType: "uint256",
|
|
891
|
+
name: "",
|
|
892
|
+
type: "uint256",
|
|
893
|
+
},
|
|
894
|
+
],
|
|
895
|
+
stateMutability: "view",
|
|
896
|
+
type: "function",
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
inputs: [],
|
|
900
|
+
name: "checkEntitlement",
|
|
901
|
+
outputs: [
|
|
902
|
+
{
|
|
903
|
+
internalType: "uint256",
|
|
904
|
+
name: "",
|
|
905
|
+
type: "uint256",
|
|
906
|
+
},
|
|
907
|
+
],
|
|
908
|
+
stateMutability: "view",
|
|
909
|
+
type: "function",
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
inputs: [],
|
|
913
|
+
name: "claim",
|
|
914
|
+
outputs: [],
|
|
915
|
+
stateMutability: "nonpayable",
|
|
916
|
+
type: "function",
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
inputs: [
|
|
920
|
+
{
|
|
921
|
+
internalType: "address",
|
|
922
|
+
name: "claimer",
|
|
923
|
+
type: "address",
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
internalType: "bool",
|
|
927
|
+
name: "sendToWhitelistedRoot",
|
|
928
|
+
type: "bool",
|
|
929
|
+
},
|
|
930
|
+
],
|
|
931
|
+
name: "claimFor",
|
|
932
|
+
outputs: [],
|
|
933
|
+
stateMutability: "nonpayable",
|
|
934
|
+
type: "function",
|
|
935
|
+
},
|
|
936
|
+
{
|
|
937
|
+
inputs: [],
|
|
938
|
+
name: "currentDayInCycle",
|
|
939
|
+
outputs: [
|
|
940
|
+
{
|
|
941
|
+
internalType: "uint256",
|
|
942
|
+
name: "",
|
|
943
|
+
type: "uint256",
|
|
944
|
+
},
|
|
945
|
+
],
|
|
946
|
+
stateMutability: "view",
|
|
947
|
+
type: "function",
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
inputs: [],
|
|
951
|
+
name: "distributionFormula",
|
|
952
|
+
outputs: [
|
|
953
|
+
{
|
|
954
|
+
internalType: "uint256",
|
|
955
|
+
name: "",
|
|
956
|
+
type: "uint256",
|
|
957
|
+
},
|
|
958
|
+
],
|
|
959
|
+
stateMutability: "nonpayable",
|
|
960
|
+
type: "function",
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
inputs: [],
|
|
964
|
+
name: "estimateNextDailyUBI",
|
|
965
|
+
outputs: [
|
|
966
|
+
{
|
|
967
|
+
internalType: "uint256",
|
|
968
|
+
name: "nextDailyUbi",
|
|
969
|
+
type: "uint256",
|
|
970
|
+
},
|
|
971
|
+
],
|
|
972
|
+
stateMutability: "view",
|
|
973
|
+
type: "function",
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
inputs: [],
|
|
977
|
+
name: "extendedSettings",
|
|
978
|
+
outputs: [
|
|
979
|
+
{
|
|
980
|
+
internalType: "uint32",
|
|
981
|
+
name: "maxPeriodClaimers",
|
|
982
|
+
type: "uint32",
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
internalType: "uint256",
|
|
986
|
+
name: "minClaimAmount",
|
|
987
|
+
type: "uint256",
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
internalType: "uint32",
|
|
991
|
+
name: "managerFeeBps",
|
|
992
|
+
type: "uint32",
|
|
993
|
+
},
|
|
994
|
+
],
|
|
995
|
+
stateMutability: "view",
|
|
996
|
+
type: "function",
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
inputs: [],
|
|
1000
|
+
name: "getCurrentDay",
|
|
1001
|
+
outputs: [
|
|
1002
|
+
{
|
|
1003
|
+
internalType: "uint256",
|
|
1004
|
+
name: "",
|
|
1005
|
+
type: "uint256",
|
|
1006
|
+
},
|
|
1007
|
+
],
|
|
1008
|
+
stateMutability: "view",
|
|
1009
|
+
type: "function",
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
inputs: [],
|
|
1013
|
+
name: "getManagerFee",
|
|
1014
|
+
outputs: [
|
|
1015
|
+
{
|
|
1016
|
+
internalType: "address",
|
|
1017
|
+
name: "feeRecipient",
|
|
1018
|
+
type: "address",
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
internalType: "uint32",
|
|
1022
|
+
name: "feeBps",
|
|
1023
|
+
type: "uint32",
|
|
1024
|
+
},
|
|
1025
|
+
],
|
|
1026
|
+
stateMutability: "view",
|
|
1027
|
+
type: "function",
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
inputs: [
|
|
1031
|
+
{
|
|
1032
|
+
internalType: "address",
|
|
1033
|
+
name: "_user",
|
|
1034
|
+
type: "address",
|
|
1035
|
+
},
|
|
1036
|
+
],
|
|
1037
|
+
name: "getRealtimeContribution",
|
|
1038
|
+
outputs: [
|
|
1039
|
+
{
|
|
1040
|
+
internalType: "uint256",
|
|
1041
|
+
name: "",
|
|
1042
|
+
type: "uint256",
|
|
1043
|
+
},
|
|
1044
|
+
],
|
|
1045
|
+
stateMutability: "view",
|
|
1046
|
+
type: "function",
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
inputs: [],
|
|
1050
|
+
name: "getRealtimeStats",
|
|
1051
|
+
outputs: [
|
|
1052
|
+
{
|
|
1053
|
+
internalType: "uint256",
|
|
1054
|
+
name: "netIncome",
|
|
1055
|
+
type: "uint256",
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
internalType: "uint256",
|
|
1059
|
+
name: "totalFees",
|
|
1060
|
+
type: "uint256",
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
internalType: "uint256",
|
|
1064
|
+
name: "protocolFees",
|
|
1065
|
+
type: "uint256",
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
internalType: "uint256",
|
|
1069
|
+
name: "managerFees",
|
|
1070
|
+
type: "uint256",
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
internalType: "int96",
|
|
1074
|
+
name: "incomeFlowRate",
|
|
1075
|
+
type: "int96",
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
internalType: "int96",
|
|
1079
|
+
name: "feeRate",
|
|
1080
|
+
type: "int96",
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
internalType: "int96",
|
|
1084
|
+
name: "managerFeeRate",
|
|
1085
|
+
type: "int96",
|
|
1086
|
+
},
|
|
1087
|
+
],
|
|
1088
|
+
stateMutability: "view",
|
|
1089
|
+
type: "function",
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
inputs: [],
|
|
1093
|
+
name: "getRegistry",
|
|
1094
|
+
outputs: [
|
|
1095
|
+
{
|
|
1096
|
+
internalType: "contract IRegistry",
|
|
1097
|
+
name: "",
|
|
1098
|
+
type: "address",
|
|
1099
|
+
},
|
|
1100
|
+
],
|
|
1101
|
+
stateMutability: "view",
|
|
1102
|
+
type: "function",
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
inputs: [
|
|
1106
|
+
{
|
|
1107
|
+
internalType: "bytes32",
|
|
1108
|
+
name: "role",
|
|
1109
|
+
type: "bytes32",
|
|
1110
|
+
},
|
|
1111
|
+
],
|
|
1112
|
+
name: "getRoleAdmin",
|
|
1113
|
+
outputs: [
|
|
1114
|
+
{
|
|
1115
|
+
internalType: "bytes32",
|
|
1116
|
+
name: "",
|
|
1117
|
+
type: "bytes32",
|
|
1118
|
+
},
|
|
1119
|
+
],
|
|
1120
|
+
stateMutability: "view",
|
|
1121
|
+
type: "function",
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
inputs: [
|
|
1125
|
+
{
|
|
1126
|
+
internalType: "bytes32",
|
|
1127
|
+
name: "role",
|
|
1128
|
+
type: "bytes32",
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
internalType: "address",
|
|
1132
|
+
name: "account",
|
|
1133
|
+
type: "address",
|
|
1134
|
+
},
|
|
1135
|
+
],
|
|
1136
|
+
name: "grantRole",
|
|
1137
|
+
outputs: [],
|
|
1138
|
+
stateMutability: "nonpayable",
|
|
1139
|
+
type: "function",
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
inputs: [
|
|
1143
|
+
{
|
|
1144
|
+
components: [
|
|
1145
|
+
{
|
|
1146
|
+
internalType: "address",
|
|
1147
|
+
name: "swapFrom",
|
|
1148
|
+
type: "address",
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
internalType: "uint256",
|
|
1152
|
+
name: "amount",
|
|
1153
|
+
type: "uint256",
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
internalType: "uint256",
|
|
1157
|
+
name: "minReturn",
|
|
1158
|
+
type: "uint256",
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
internalType: "uint256",
|
|
1162
|
+
name: "deadline",
|
|
1163
|
+
type: "uint256",
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
internalType: "bytes",
|
|
1167
|
+
name: "path",
|
|
1168
|
+
type: "bytes",
|
|
1169
|
+
},
|
|
1170
|
+
],
|
|
1171
|
+
internalType: "struct HelperLibrary.SwapData",
|
|
1172
|
+
name: "_customData",
|
|
1173
|
+
type: "tuple",
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
internalType: "address",
|
|
1177
|
+
name: "_sender",
|
|
1178
|
+
type: "address",
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
internalType: "bytes",
|
|
1182
|
+
name: "_ctx",
|
|
1183
|
+
type: "bytes",
|
|
1184
|
+
},
|
|
1185
|
+
],
|
|
1186
|
+
name: "handleSwap",
|
|
1187
|
+
outputs: [
|
|
1188
|
+
{
|
|
1189
|
+
internalType: "bytes",
|
|
1190
|
+
name: "",
|
|
1191
|
+
type: "bytes",
|
|
1192
|
+
},
|
|
1193
|
+
],
|
|
1194
|
+
stateMutability: "nonpayable",
|
|
1195
|
+
type: "function",
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
inputs: [
|
|
1199
|
+
{
|
|
1200
|
+
internalType: "address",
|
|
1201
|
+
name: "_member",
|
|
1202
|
+
type: "address",
|
|
1203
|
+
},
|
|
1204
|
+
],
|
|
1205
|
+
name: "hasClaimed",
|
|
1206
|
+
outputs: [
|
|
1207
|
+
{
|
|
1208
|
+
internalType: "bool",
|
|
1209
|
+
name: "",
|
|
1210
|
+
type: "bool",
|
|
1211
|
+
},
|
|
1212
|
+
],
|
|
1213
|
+
stateMutability: "view",
|
|
1214
|
+
type: "function",
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
inputs: [
|
|
1218
|
+
{
|
|
1219
|
+
internalType: "bytes32",
|
|
1220
|
+
name: "role",
|
|
1221
|
+
type: "bytes32",
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
internalType: "address",
|
|
1225
|
+
name: "account",
|
|
1226
|
+
type: "address",
|
|
1227
|
+
},
|
|
1228
|
+
],
|
|
1229
|
+
name: "hasRole",
|
|
1230
|
+
outputs: [
|
|
1231
|
+
{
|
|
1232
|
+
internalType: "bool",
|
|
1233
|
+
name: "",
|
|
1234
|
+
type: "bool",
|
|
1235
|
+
},
|
|
1236
|
+
],
|
|
1237
|
+
stateMutability: "view",
|
|
1238
|
+
type: "function",
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
inputs: [],
|
|
1242
|
+
name: "host",
|
|
1243
|
+
outputs: [
|
|
1244
|
+
{
|
|
1245
|
+
internalType: "contract ISuperfluid",
|
|
1246
|
+
name: "",
|
|
1247
|
+
type: "address",
|
|
1248
|
+
},
|
|
1249
|
+
],
|
|
1250
|
+
stateMutability: "view",
|
|
1251
|
+
type: "function",
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
inputs: [
|
|
1255
|
+
{
|
|
1256
|
+
components: [
|
|
1257
|
+
{
|
|
1258
|
+
internalType: "address",
|
|
1259
|
+
name: "manager",
|
|
1260
|
+
type: "address",
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
internalType: "contract IMembersValidator",
|
|
1264
|
+
name: "membersValidator",
|
|
1265
|
+
type: "address",
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
internalType: "contract IIdentityV2",
|
|
1269
|
+
name: "uniquenessValidator",
|
|
1270
|
+
type: "address",
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
internalType: "contract IERC20Upgradeable",
|
|
1274
|
+
name: "rewardToken",
|
|
1275
|
+
type: "address",
|
|
1276
|
+
},
|
|
1277
|
+
],
|
|
1278
|
+
internalType: "struct PoolSettings",
|
|
1279
|
+
name: "_settings",
|
|
1280
|
+
type: "tuple",
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
components: [
|
|
1284
|
+
{
|
|
1285
|
+
internalType: "uint32",
|
|
1286
|
+
name: "cycleLengthDays",
|
|
1287
|
+
type: "uint32",
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
internalType: "uint32",
|
|
1291
|
+
name: "claimPeriodDays",
|
|
1292
|
+
type: "uint32",
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
internalType: "uint32",
|
|
1296
|
+
name: "minActiveUsers",
|
|
1297
|
+
type: "uint32",
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
internalType: "bool",
|
|
1301
|
+
name: "claimForEnabled",
|
|
1302
|
+
type: "bool",
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
internalType: "uint256",
|
|
1306
|
+
name: "maxClaimAmount",
|
|
1307
|
+
type: "uint256",
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
internalType: "uint32",
|
|
1311
|
+
name: "maxMembers",
|
|
1312
|
+
type: "uint32",
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
internalType: "bool",
|
|
1316
|
+
name: "onlyMembers",
|
|
1317
|
+
type: "bool",
|
|
1318
|
+
},
|
|
1319
|
+
],
|
|
1320
|
+
internalType: "struct UBIPool.UBISettings",
|
|
1321
|
+
name: "_ubiSettings",
|
|
1322
|
+
type: "tuple",
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
components: [
|
|
1326
|
+
{
|
|
1327
|
+
internalType: "uint32",
|
|
1328
|
+
name: "maxPeriodClaimers",
|
|
1329
|
+
type: "uint32",
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
internalType: "uint256",
|
|
1333
|
+
name: "minClaimAmount",
|
|
1334
|
+
type: "uint256",
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
internalType: "uint32",
|
|
1338
|
+
name: "managerFeeBps",
|
|
1339
|
+
type: "uint32",
|
|
1340
|
+
},
|
|
1341
|
+
],
|
|
1342
|
+
internalType: "struct UBIPool.ExtendedSettings",
|
|
1343
|
+
name: "_extendedSettings",
|
|
1344
|
+
type: "tuple",
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
internalType: "contract UBIPoolFactory",
|
|
1348
|
+
name: "_registry",
|
|
1349
|
+
type: "address",
|
|
1350
|
+
},
|
|
1351
|
+
],
|
|
1352
|
+
name: "initialize",
|
|
1353
|
+
outputs: [],
|
|
1354
|
+
stateMutability: "nonpayable",
|
|
1355
|
+
type: "function",
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
inputs: [
|
|
1359
|
+
{
|
|
1360
|
+
internalType: "contract ISuperToken",
|
|
1361
|
+
name: "_superToken",
|
|
1362
|
+
type: "address",
|
|
1363
|
+
},
|
|
1364
|
+
],
|
|
1365
|
+
name: "isAcceptedSuperToken",
|
|
1366
|
+
outputs: [
|
|
1367
|
+
{
|
|
1368
|
+
internalType: "bool",
|
|
1369
|
+
name: "",
|
|
1370
|
+
type: "bool",
|
|
1371
|
+
},
|
|
1372
|
+
],
|
|
1373
|
+
stateMutability: "view",
|
|
1374
|
+
type: "function",
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
inputs: [],
|
|
1378
|
+
name: "nextClaimTime",
|
|
1379
|
+
outputs: [
|
|
1380
|
+
{
|
|
1381
|
+
internalType: "uint256",
|
|
1382
|
+
name: "",
|
|
1383
|
+
type: "uint256",
|
|
1384
|
+
},
|
|
1385
|
+
],
|
|
1386
|
+
stateMutability: "view",
|
|
1387
|
+
type: "function",
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
inputs: [
|
|
1391
|
+
{
|
|
1392
|
+
internalType: "address",
|
|
1393
|
+
name: "_sender",
|
|
1394
|
+
type: "address",
|
|
1395
|
+
},
|
|
1396
|
+
{
|
|
1397
|
+
internalType: "uint256",
|
|
1398
|
+
name: "_amount",
|
|
1399
|
+
type: "uint256",
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
internalType: "bytes",
|
|
1403
|
+
name: "",
|
|
1404
|
+
type: "bytes",
|
|
1405
|
+
},
|
|
1406
|
+
],
|
|
1407
|
+
name: "onTokenTransfer",
|
|
1408
|
+
outputs: [
|
|
1409
|
+
{
|
|
1410
|
+
internalType: "bool",
|
|
1411
|
+
name: "",
|
|
1412
|
+
type: "bool",
|
|
1413
|
+
},
|
|
1414
|
+
],
|
|
1415
|
+
stateMutability: "nonpayable",
|
|
1416
|
+
type: "function",
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
inputs: [],
|
|
1420
|
+
name: "proxiableUUID",
|
|
1421
|
+
outputs: [
|
|
1422
|
+
{
|
|
1423
|
+
internalType: "bytes32",
|
|
1424
|
+
name: "",
|
|
1425
|
+
type: "bytes32",
|
|
1426
|
+
},
|
|
1427
|
+
],
|
|
1428
|
+
stateMutability: "view",
|
|
1429
|
+
type: "function",
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
inputs: [],
|
|
1433
|
+
name: "registry",
|
|
1434
|
+
outputs: [
|
|
1435
|
+
{
|
|
1436
|
+
internalType: "contract UBIPoolFactory",
|
|
1437
|
+
name: "",
|
|
1438
|
+
type: "address",
|
|
1439
|
+
},
|
|
1440
|
+
],
|
|
1441
|
+
stateMutability: "view",
|
|
1442
|
+
type: "function",
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
inputs: [
|
|
1446
|
+
{
|
|
1447
|
+
internalType: "address",
|
|
1448
|
+
name: "member",
|
|
1449
|
+
type: "address",
|
|
1450
|
+
},
|
|
1451
|
+
],
|
|
1452
|
+
name: "removeMember",
|
|
1453
|
+
outputs: [],
|
|
1454
|
+
stateMutability: "nonpayable",
|
|
1455
|
+
type: "function",
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
inputs: [
|
|
1459
|
+
{
|
|
1460
|
+
internalType: "bytes32",
|
|
1461
|
+
name: "role",
|
|
1462
|
+
type: "bytes32",
|
|
1463
|
+
},
|
|
1464
|
+
{
|
|
1465
|
+
internalType: "address",
|
|
1466
|
+
name: "account",
|
|
1467
|
+
type: "address",
|
|
1468
|
+
},
|
|
1469
|
+
],
|
|
1470
|
+
name: "renounceRole",
|
|
1471
|
+
outputs: [],
|
|
1472
|
+
stateMutability: "nonpayable",
|
|
1473
|
+
type: "function",
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
inputs: [
|
|
1477
|
+
{
|
|
1478
|
+
internalType: "bytes32",
|
|
1479
|
+
name: "role",
|
|
1480
|
+
type: "bytes32",
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
internalType: "address",
|
|
1484
|
+
name: "account",
|
|
1485
|
+
type: "address",
|
|
1486
|
+
},
|
|
1487
|
+
],
|
|
1488
|
+
name: "revokeRole",
|
|
1489
|
+
outputs: [],
|
|
1490
|
+
stateMutability: "nonpayable",
|
|
1491
|
+
type: "function",
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
inputs: [
|
|
1495
|
+
{
|
|
1496
|
+
components: [
|
|
1497
|
+
{
|
|
1498
|
+
internalType: "address",
|
|
1499
|
+
name: "manager",
|
|
1500
|
+
type: "address",
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
internalType: "contract IMembersValidator",
|
|
1504
|
+
name: "membersValidator",
|
|
1505
|
+
type: "address",
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
internalType: "contract IIdentityV2",
|
|
1509
|
+
name: "uniquenessValidator",
|
|
1510
|
+
type: "address",
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
internalType: "contract IERC20Upgradeable",
|
|
1514
|
+
name: "rewardToken",
|
|
1515
|
+
type: "address",
|
|
1516
|
+
},
|
|
1517
|
+
],
|
|
1518
|
+
internalType: "struct PoolSettings",
|
|
1519
|
+
name: "_settings",
|
|
1520
|
+
type: "tuple",
|
|
1521
|
+
},
|
|
1522
|
+
],
|
|
1523
|
+
name: "setPoolSettings",
|
|
1524
|
+
outputs: [],
|
|
1525
|
+
stateMutability: "nonpayable",
|
|
1526
|
+
type: "function",
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
inputs: [
|
|
1530
|
+
{
|
|
1531
|
+
components: [
|
|
1532
|
+
{
|
|
1533
|
+
internalType: "uint32",
|
|
1534
|
+
name: "cycleLengthDays",
|
|
1535
|
+
type: "uint32",
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
internalType: "uint32",
|
|
1539
|
+
name: "claimPeriodDays",
|
|
1540
|
+
type: "uint32",
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
internalType: "uint32",
|
|
1544
|
+
name: "minActiveUsers",
|
|
1545
|
+
type: "uint32",
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
internalType: "bool",
|
|
1549
|
+
name: "claimForEnabled",
|
|
1550
|
+
type: "bool",
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
internalType: "uint256",
|
|
1554
|
+
name: "maxClaimAmount",
|
|
1555
|
+
type: "uint256",
|
|
1556
|
+
},
|
|
1557
|
+
{
|
|
1558
|
+
internalType: "uint32",
|
|
1559
|
+
name: "maxMembers",
|
|
1560
|
+
type: "uint32",
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
internalType: "bool",
|
|
1564
|
+
name: "onlyMembers",
|
|
1565
|
+
type: "bool",
|
|
1566
|
+
},
|
|
1567
|
+
],
|
|
1568
|
+
internalType: "struct UBIPool.UBISettings",
|
|
1569
|
+
name: "_ubiSettings",
|
|
1570
|
+
type: "tuple",
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
components: [
|
|
1574
|
+
{
|
|
1575
|
+
internalType: "uint32",
|
|
1576
|
+
name: "maxPeriodClaimers",
|
|
1577
|
+
type: "uint32",
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
internalType: "uint256",
|
|
1581
|
+
name: "minClaimAmount",
|
|
1582
|
+
type: "uint256",
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
internalType: "uint32",
|
|
1586
|
+
name: "managerFeeBps",
|
|
1587
|
+
type: "uint32",
|
|
1588
|
+
},
|
|
1589
|
+
],
|
|
1590
|
+
internalType: "struct UBIPool.ExtendedSettings",
|
|
1591
|
+
name: "_extendedSettings",
|
|
1592
|
+
type: "tuple",
|
|
1593
|
+
},
|
|
1594
|
+
],
|
|
1595
|
+
name: "setUBISettings",
|
|
1596
|
+
outputs: [],
|
|
1597
|
+
stateMutability: "nonpayable",
|
|
1598
|
+
type: "function",
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
inputs: [],
|
|
1602
|
+
name: "settings",
|
|
1603
|
+
outputs: [
|
|
1604
|
+
{
|
|
1605
|
+
internalType: "address",
|
|
1606
|
+
name: "manager",
|
|
1607
|
+
type: "address",
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
internalType: "contract IMembersValidator",
|
|
1611
|
+
name: "membersValidator",
|
|
1612
|
+
type: "address",
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
internalType: "contract IIdentityV2",
|
|
1616
|
+
name: "uniquenessValidator",
|
|
1617
|
+
type: "address",
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
internalType: "contract IERC20Upgradeable",
|
|
1621
|
+
name: "rewardToken",
|
|
1622
|
+
type: "address",
|
|
1623
|
+
},
|
|
1624
|
+
],
|
|
1625
|
+
stateMutability: "view",
|
|
1626
|
+
type: "function",
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
inputs: [],
|
|
1630
|
+
name: "stats",
|
|
1631
|
+
outputs: [
|
|
1632
|
+
{
|
|
1633
|
+
internalType: "uint256",
|
|
1634
|
+
name: "netIncome",
|
|
1635
|
+
type: "uint256",
|
|
1636
|
+
},
|
|
1637
|
+
{
|
|
1638
|
+
internalType: "uint256",
|
|
1639
|
+
name: "totalFees",
|
|
1640
|
+
type: "uint256",
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
internalType: "uint256",
|
|
1644
|
+
name: "lastUpdate",
|
|
1645
|
+
type: "uint256",
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
internalType: "address",
|
|
1649
|
+
name: "lastFeeRecipient",
|
|
1650
|
+
type: "address",
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
internalType: "int96",
|
|
1654
|
+
name: "lastIncomeRate",
|
|
1655
|
+
type: "int96",
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
internalType: "address",
|
|
1659
|
+
name: "lastManagerFeeRecipient",
|
|
1660
|
+
type: "address",
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
internalType: "uint256",
|
|
1664
|
+
name: "protocolFees",
|
|
1665
|
+
type: "uint256",
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
internalType: "uint256",
|
|
1669
|
+
name: "managerFees",
|
|
1670
|
+
type: "uint256",
|
|
1671
|
+
},
|
|
1672
|
+
],
|
|
1673
|
+
stateMutability: "view",
|
|
1674
|
+
type: "function",
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
inputs: [],
|
|
1678
|
+
name: "status",
|
|
1679
|
+
outputs: [
|
|
1680
|
+
{
|
|
1681
|
+
internalType: "uint256",
|
|
1682
|
+
name: "currentDay",
|
|
1683
|
+
type: "uint256",
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
internalType: "uint256",
|
|
1687
|
+
name: "dailyUbi",
|
|
1688
|
+
type: "uint256",
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
internalType: "uint256",
|
|
1692
|
+
name: "dailyCyclePool",
|
|
1693
|
+
type: "uint256",
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
internalType: "uint256",
|
|
1697
|
+
name: "startOfCycle",
|
|
1698
|
+
type: "uint256",
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
internalType: "uint256",
|
|
1702
|
+
name: "currentCycleLength",
|
|
1703
|
+
type: "uint256",
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
internalType: "uint256",
|
|
1707
|
+
name: "periodClaimers",
|
|
1708
|
+
type: "uint256",
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
internalType: "uint256",
|
|
1712
|
+
name: "periodDistributed",
|
|
1713
|
+
type: "uint256",
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
internalType: "uint32",
|
|
1717
|
+
name: "membersCount",
|
|
1718
|
+
type: "uint32",
|
|
1719
|
+
},
|
|
1720
|
+
],
|
|
1721
|
+
stateMutability: "view",
|
|
1722
|
+
type: "function",
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
inputs: [],
|
|
1726
|
+
name: "superToken",
|
|
1727
|
+
outputs: [
|
|
1728
|
+
{
|
|
1729
|
+
internalType: "contract ISuperToken",
|
|
1730
|
+
name: "",
|
|
1731
|
+
type: "address",
|
|
1732
|
+
},
|
|
1733
|
+
],
|
|
1734
|
+
stateMutability: "view",
|
|
1735
|
+
type: "function",
|
|
1736
|
+
},
|
|
1737
|
+
{
|
|
1738
|
+
inputs: [
|
|
1739
|
+
{
|
|
1740
|
+
internalType: "address",
|
|
1741
|
+
name: "_sender",
|
|
1742
|
+
type: "address",
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
internalType: "uint256",
|
|
1746
|
+
name: "_amount",
|
|
1747
|
+
type: "uint256",
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
internalType: "bytes",
|
|
1751
|
+
name: "_ctx",
|
|
1752
|
+
type: "bytes",
|
|
1753
|
+
},
|
|
1754
|
+
],
|
|
1755
|
+
name: "support",
|
|
1756
|
+
outputs: [
|
|
1757
|
+
{
|
|
1758
|
+
internalType: "bytes",
|
|
1759
|
+
name: "",
|
|
1760
|
+
type: "bytes",
|
|
1761
|
+
},
|
|
1762
|
+
],
|
|
1763
|
+
stateMutability: "nonpayable",
|
|
1764
|
+
type: "function",
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
inputs: [
|
|
1768
|
+
{
|
|
1769
|
+
internalType: "address",
|
|
1770
|
+
name: "_sender",
|
|
1771
|
+
type: "address",
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
components: [
|
|
1775
|
+
{
|
|
1776
|
+
internalType: "address",
|
|
1777
|
+
name: "swapFrom",
|
|
1778
|
+
type: "address",
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
internalType: "uint256",
|
|
1782
|
+
name: "amount",
|
|
1783
|
+
type: "uint256",
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
internalType: "uint256",
|
|
1787
|
+
name: "minReturn",
|
|
1788
|
+
type: "uint256",
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
internalType: "uint256",
|
|
1792
|
+
name: "deadline",
|
|
1793
|
+
type: "uint256",
|
|
1794
|
+
},
|
|
1795
|
+
{
|
|
1796
|
+
internalType: "bytes",
|
|
1797
|
+
name: "path",
|
|
1798
|
+
type: "bytes",
|
|
1799
|
+
},
|
|
1800
|
+
],
|
|
1801
|
+
internalType: "struct HelperLibrary.SwapData",
|
|
1802
|
+
name: "_customData",
|
|
1803
|
+
type: "tuple",
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
internalType: "bytes",
|
|
1807
|
+
name: "_ctx",
|
|
1808
|
+
type: "bytes",
|
|
1809
|
+
},
|
|
1810
|
+
],
|
|
1811
|
+
name: "supportWithSwap",
|
|
1812
|
+
outputs: [
|
|
1813
|
+
{
|
|
1814
|
+
internalType: "bytes",
|
|
1815
|
+
name: "",
|
|
1816
|
+
type: "bytes",
|
|
1817
|
+
},
|
|
1818
|
+
],
|
|
1819
|
+
stateMutability: "nonpayable",
|
|
1820
|
+
type: "function",
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
inputs: [
|
|
1824
|
+
{
|
|
1825
|
+
internalType: "address",
|
|
1826
|
+
name: "",
|
|
1827
|
+
type: "address",
|
|
1828
|
+
},
|
|
1829
|
+
],
|
|
1830
|
+
name: "supporters",
|
|
1831
|
+
outputs: [
|
|
1832
|
+
{
|
|
1833
|
+
internalType: "uint256",
|
|
1834
|
+
name: "contribution",
|
|
1835
|
+
type: "uint256",
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
internalType: "int96",
|
|
1839
|
+
name: "flowRate",
|
|
1840
|
+
type: "int96",
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
internalType: "uint128",
|
|
1844
|
+
name: "lastUpdated",
|
|
1845
|
+
type: "uint128",
|
|
1846
|
+
},
|
|
1847
|
+
],
|
|
1848
|
+
stateMutability: "view",
|
|
1849
|
+
type: "function",
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
inputs: [
|
|
1853
|
+
{
|
|
1854
|
+
internalType: "bytes4",
|
|
1855
|
+
name: "interfaceId",
|
|
1856
|
+
type: "bytes4",
|
|
1857
|
+
},
|
|
1858
|
+
],
|
|
1859
|
+
name: "supportsInterface",
|
|
1860
|
+
outputs: [
|
|
1861
|
+
{
|
|
1862
|
+
internalType: "bool",
|
|
1863
|
+
name: "",
|
|
1864
|
+
type: "bool",
|
|
1865
|
+
},
|
|
1866
|
+
],
|
|
1867
|
+
stateMutability: "view",
|
|
1868
|
+
type: "function",
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
inputs: [],
|
|
1872
|
+
name: "swapRouter",
|
|
1873
|
+
outputs: [
|
|
1874
|
+
{
|
|
1875
|
+
internalType: "contract IV3SwapRouter",
|
|
1876
|
+
name: "",
|
|
1877
|
+
type: "address",
|
|
1878
|
+
},
|
|
1879
|
+
],
|
|
1880
|
+
stateMutability: "view",
|
|
1881
|
+
type: "function",
|
|
1882
|
+
},
|
|
1883
|
+
{
|
|
1884
|
+
inputs: [],
|
|
1885
|
+
name: "ubiSettings",
|
|
1886
|
+
outputs: [
|
|
1887
|
+
{
|
|
1888
|
+
internalType: "uint32",
|
|
1889
|
+
name: "cycleLengthDays",
|
|
1890
|
+
type: "uint32",
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
internalType: "uint32",
|
|
1894
|
+
name: "claimPeriodDays",
|
|
1895
|
+
type: "uint32",
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
internalType: "uint32",
|
|
1899
|
+
name: "minActiveUsers",
|
|
1900
|
+
type: "uint32",
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
internalType: "bool",
|
|
1904
|
+
name: "claimForEnabled",
|
|
1905
|
+
type: "bool",
|
|
1906
|
+
},
|
|
1907
|
+
{
|
|
1908
|
+
internalType: "uint256",
|
|
1909
|
+
name: "maxClaimAmount",
|
|
1910
|
+
type: "uint256",
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
internalType: "uint32",
|
|
1914
|
+
name: "maxMembers",
|
|
1915
|
+
type: "uint32",
|
|
1916
|
+
},
|
|
1917
|
+
{
|
|
1918
|
+
internalType: "bool",
|
|
1919
|
+
name: "onlyMembers",
|
|
1920
|
+
type: "bool",
|
|
1921
|
+
},
|
|
1922
|
+
],
|
|
1923
|
+
stateMutability: "view",
|
|
1924
|
+
type: "function",
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
inputs: [
|
|
1928
|
+
{
|
|
1929
|
+
internalType: "address",
|
|
1930
|
+
name: "newImplementation",
|
|
1931
|
+
type: "address",
|
|
1932
|
+
},
|
|
1933
|
+
],
|
|
1934
|
+
name: "upgradeTo",
|
|
1935
|
+
outputs: [],
|
|
1936
|
+
stateMutability: "nonpayable",
|
|
1937
|
+
type: "function",
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
inputs: [
|
|
1941
|
+
{
|
|
1942
|
+
internalType: "address",
|
|
1943
|
+
name: "newImplementation",
|
|
1944
|
+
type: "address",
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
internalType: "bytes",
|
|
1948
|
+
name: "data",
|
|
1949
|
+
type: "bytes",
|
|
1950
|
+
},
|
|
1951
|
+
],
|
|
1952
|
+
name: "upgradeToAndCall",
|
|
1953
|
+
outputs: [],
|
|
1954
|
+
stateMutability: "payable",
|
|
1955
|
+
type: "function",
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
inputs: [
|
|
1959
|
+
{
|
|
1960
|
+
internalType: "bytes",
|
|
1961
|
+
name: "data",
|
|
1962
|
+
type: "bytes",
|
|
1963
|
+
},
|
|
1964
|
+
],
|
|
1965
|
+
name: "upgradeToLatest",
|
|
1966
|
+
outputs: [],
|
|
1967
|
+
stateMutability: "payable",
|
|
1968
|
+
type: "function",
|
|
1969
|
+
},
|
|
1970
|
+
] as const;
|
|
1971
|
+
|
|
1972
|
+
const _bytecode =
|
|
1973
|
+
"0x60e06040523060c0523480156200001557600080fd5b506040516200570738038062005707833981016040819052620000389162000098565b6001600160a01b038216608081905282908290620000695760405163538ba4f960e01b815260040160405180910390fd5b6001600160a01b031660a05250620000d7915050565b6001600160a01b03811681146200009557600080fd5b50565b60008060408385031215620000ac57600080fd5b8251620000b9816200007f565b6020840151909250620000cc816200007f565b809150509250929050565b60805160a05160c0516155906200017760003960008181611106015281816111460152818161149e015281816114de015261155601526000818161097a01528181610e8201526123f8015260008181610bc801528181610e0401528181610fcc01528181611604015281816119de01528181611f070152818161204f0152818161230e01528181612a6101528181612da70152612e0c01526155906000f3fe60806040526004361061027b5760003560e01c806301ffc9a7146102805780630b1ca49a146102b55780630c710776146102d75780630ce82d67146103035780630e0cc1b91461032657806319805538146103465780631a2a84b31461037f5780631a787f2e1461039f5780631db128c7146103bf578063200d2ed2146103ec578063230dbd291461046e578063248a9ca31461048e578063298052df146104ae5780632b4116f7146104c35780632f2ff15d146104f057806330d9c9151461051057806336568abe146105305780633659cfe6146105505780633e6968b61461057057806346b6a742146105855780634e71d92d146105a55780634f1ef286146105ba57806352d1902d146105cd57806353c11f99146105e2578063598f8fbf146106025780635a4c5152146106225780635ab1bd53146106b95780635da93292146106ce5780635f9e7d77146106e35780636180c79314610703578063647c75e21461072357806372ca8a3e1461079457806373b2e80e146107b4578063791ea89b146107d45780637b103999146107f457806388480f0c14610815578063884d1f401461086757806391d148541461088757806398d6621b146108a75780639f8fddd2146108bc578063a10f469e146108dc578063a217fddf146108fe578063a4c0ed3614610913578063ae82720014610933578063bcb4546f14610946578063c31c9c0714610968578063c77138701461099c578063d3112b2e146109b1578063d547741f146109e6578063d80528ae14610a06578063d86ed3e514610a97578063dc61d5c214610ab7578063def482a414610b0a578063e06174e414610b2a578063ec87621c14610b94578063f437bc5914610bb6575b600080fd5b34801561028c57600080fd5b506102a061029b366004614519565b610bea565b60405190151581526020015b60405180910390f35b3480156102c157600080fd5b506102d56102d0366004614558565b610c21565b005b3480156102e357600080fd5b506102f06459df64940081565b604051600b9190910b81526020016102ac565b34801561030f57600080fd5b50610318610c55565b6040519081526020016102ac565b34801561033257600080fd5b506102d5610341366004614593565b610c73565b34801561035257600080fd5b5061035b610ca8565b604080516001600160a01b03909316835263ffffffff9091166020830152016102ac565b34801561038b57600080fd5b5061031861039a366004614558565b610cc7565b3480156103ab57600080fd5b506103186103ba366004614558565b610d67565b3480156103cb57600080fd5b506103df6103da366004614734565b610de2565b6040516102ac91906147fb565b3480156103f857600080fd5b5061013a5461013b5461013c5461013d5461013e5461013f54610140546101425461042d979695949392919063ffffffff1688565b604080519889526020890197909752958701949094526060860192909252608085015260a084015260c083015263ffffffff1660e0820152610100016102ac565b34801561047a57600080fd5b506103df610489366004614856565b610f03565b34801561049a57600080fd5b506103186104a9366004614920565b610f4a565b3480156104ba57600080fd5b50610318610f5f565b3480156104cf57600080fd5b506097546104e3906001600160a01b031681565b6040516102ac9190614939565b3480156104fc57600080fd5b506102d561050b36600461494d565b610f9e565b34801561051c57600080fd5b506103df61052b366004614972565b610fbf565b34801561053c57600080fd5b506102d561054b36600461494d565b611082565b34801561055c57600080fd5b506102d561056b366004614558565b6110fc565b34801561057c57600080fd5b506103186111c4565b34801561059157600080fd5b506102d56105a0366004614bd4565b6111e0565b3480156105b157600080fd5b506102d5611487565b6102d56105c8366004614c30565b611494565b3480156105d957600080fd5b50610318611549565b3480156105ee57600080fd5b506103df6105fd366004614856565b6115f7565b34801561060e57600080fd5b506102d561061d366004614c7f565b6116d4565b34801561062e57600080fd5b506101375461013854610139546106749263ffffffff80821693600160201b808404831694600160401b850484169460ff600160601b9091048116948216929091041687565b6040805163ffffffff98891681529688166020880152948716948601949094529115156060850152608084015290921660a082015290151560c082015260e0016102ac565b3480156106c557600080fd5b506104e3611809565b3480156106da57600080fd5b50610318611819565b3480156106ef57600080fd5b506103df6106fe366004614972565b6119d1565b34801561070f57600080fd5b506102a061071e366004614c30565b611ab6565b34801561072f57600080fd5b5061076d61073e366004614558565b60986020526000908152604090208054600190910154600b81900b90600160601b90046001600160801b031683565b60408051938452600b9290920b60208401526001600160801b0316908201526060016102ac565b3480156107a057600080fd5b506102a06107af366004614558565b611cb3565b3480156107c057600080fd5b506102a06107cf366004614558565b611cc7565b3480156107e057600080fd5b506102d56107ef366004614c9b565b611d6a565b34801561080057600080fd5b50610143546104e3906001600160a01b031681565b34801561082157600080fd5b506101445461014554610146546108409263ffffffff90811692911683565b6040805163ffffffff948516815260208101939093529216918101919091526060016102ac565b34801561087357600080fd5b506103df610882366004614972565b611efa565b34801561089357600080fd5b506102a06108a236600461494d565b611ff7565b3480156108b357600080fd5b50610318612022565b3480156108c857600080fd5b506103df6108d7366004614cd1565b61202d565b3480156108e857600080fd5b5061031860008051602061553b83398151915281565b34801561090a57600080fd5b50610318600081565b34801561091f57600080fd5b506102a061092e366004614d1f565b6120e7565b6102d5610941366004614d7a565b612160565b34801561095257600080fd5b5061031860008051602061549483398151915281565b34801561097457600080fd5b506104e37f000000000000000000000000000000000000000000000000000000000000000081565b3480156109a857600080fd5b506103186121e6565b3480156109bd57600080fd5b50609954609a546109d8916001600160a01b03908116911682565b6040516102ac929190614dae565b3480156109f257600080fd5b506102d5610a0136600461494d565b6121f7565b348015610a1257600080fd5b50609b54609c54609d54609e54609f5460a05460a154610a4d969594936001600160a01b0380821694600160a01b909204600b0b9391169188565b604080519889526020890197909752958701949094526001600160a01b039283166060870152600b9190910b60808601521660a084015260c083015260e0820152610100016102ac565b348015610aa357600080fd5b506103df610ab2366004614856565b612213565b348015610ac357600080fd5b50610acc612241565b604080519788526020880196909652948601939093526060850191909152600b90810b608085015290810b60a08401520b60c082015260e0016102ac565b348015610b1657600080fd5b506103df610b25366004614dc8565b6122ec565b348015610b3657600080fd5b5061013354610134546101355461013654610b61936001600160a01b03908116938116928116911684565b604080516001600160a01b03958616815293851660208501529184169183019190915290911660608201526080016102ac565b348015610ba057600080fd5b506103186000805160206154f483398151915281565b348015610bc257600080fd5b506104e37f000000000000000000000000000000000000000000000000000000000000000081565b60006001600160e01b03198216637965db0b60e01b1480610c1b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6000805160206154f4833981519152610c398161253f565b610c5160008051602061553b83398151915283612549565b5050565b61013d54600090610c646111c4565b610c6e9190614e3c565b905090565b61013754600160601b900460ff16610c9e576040516369973f2560e11b815260040160405180910390fd5b610c518282612629565b61013354610146546001600160a01b039091169163ffffffff90911690565b6001600160a01b0381166000908152609860209081526040808320815160608101835281548152600190910154600b81900b938201849052600160601b90046001600160801b031691810191909152908203610d24575192915050565b6040810151610d3c906001600160801b031642614e3c565b81602001516001600160601b0316610d549190614e4f565b8151610d609190614e66565b9392505050565b6000610d716111c4565b61013a54148015610d84575061013b5415155b15610dda576101445463ffffffff1615801590610daf57506101445461013f5463ffffffff90911611155b15610dbc57506000919050565b610dc582611cc7565b610dd25761013b54610c1b565b600092915050565b610c1b6121e6565b606082336001600160a01b03821614801590610e275750336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614155b15610e50573360405163087231bf60e31b8152600401610e479190614939565b60405180910390fd5b6097546040516358c0dacb60e01b815273__$0d78a42341742155da77b97d7f993534c7$__916358c0dacb91610eb8917f0000000000000000000000000000000000000000000000000000000000000000918a916001600160a01b0316908a90600401614ebe565b602060405180830381865af4158015610ed5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ef99190614ef9565b5091949350505050565b60606000610f1387890189614f12565b509050600080610f2587890189614f4f565b91509150610f378d8484848a8a6128ce565b93505050505b9998505050505050505050565b60009081526065602052604090206001015490565b61013754600090600160201b900463ffffffff16610f7b6111c4565b610f859190614e66565b610f929062015180614e4f565b610c6e9061a8c0614e66565b610fa782610f4a565b610fb08161253f565b610fba8383612915565b505050565b6060336001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000161461100a57604051632f2d36a760e01b815260040160405180910390fd5b61101387612a3b565b6110365750604080518082019091526002815261060f60f31b6020820152611077565b61103f88611cb3565b61105c57604051631ea25bab60e31b815260040160405180910390fd5b50604080518082019091526002815261060f60f31b60208201525b979650505050505050565b6001600160a01b03811633146110f25760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610e47565b610c518282612549565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036111445760405162461bcd60e51b8152600401610e4790614f7b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316611176612aef565b6001600160a01b03161461119c5760405162461bcd60e51b8152600401610e4790614fb5565b6111a581612b0b565b604080516000808252602082019092526111c191839190612b16565b50565b6000620151806111d661a8c042614e3c565b610c6e9190614fef565b600054610100900460ff16158080156112005750600054600160ff909116105b80611221575061120f30612c81565b158015611221575060005460ff166001145b6112845760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b6064820152608401610e47565b6000805460ff1916600117905580156112a7576000805461ff0019166101001790555b61014380546001600160a01b03199081166001600160a01b038581169190911790925586516101338054831691841691909117905560208088015161013480548416918516919091179055604080890151610135805485169186169190911790556060808a0151610136805490951695169490941790925586516101378054898401518a860151968b015163ffffffff9485166001600160401b031990931692909217600160201b91851682021764ffffffffff60401b1916600160401b9785169790970260ff60601b191696909617600160601b9115159190910217905560808801516101385560a0880151610139805460c08b015192841664ffffffffff1990911617911515909502179093558551610144805463ffffffff19908116928616929092179055908601516101455590850151610146805490921692169190911790556113f485612c90565b6113fd84612ce6565b611408600033612d3d565b6114246000805160206154f48339815191528660000151612d3d565b6101365461143a906001600160a01b0316612d47565b8015611480576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b5050505050565b611492336001612629565b565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036114dc5760405162461bcd60e51b8152600401610e4790614f7b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031661150e612aef565b6001600160a01b0316146115345760405162461bcd60e51b8152600401610e4790614fb5565b61153d82612b0b565b610c5182826001612b16565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146115e45760405162461bcd60e51b815260206004820152603860248201527f555550535570677261646561626c653a206d757374206e6f742062652063616c6044820152771b1959081d1a1c9bdd59da0819195b1959d85d1958d85b1b60421b6064820152608401610e47565b506000805160206154d483398151915290565b6060336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141580611637575061163589612a3b565b155b8061164857506116468a611cb3565b155b1561168c5782828080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929350610f3d92505050565b60008061169b888a018a614f12565b90925090506000806116af888a018a615011565b915091506116c28e858584868c8c612ee9565b9e9d5050505050505050505050505050565b6000805160206154f48339815191526116ec8161253f565b6116f582612c90565b6101335482516001600160a01b0390811691161461174f5761013354611733906000805160206154f4833981519152906001600160a01b0316612549565b61174f6000805160206154f48339815191528360000151612d3d565b815161013380546001600160a01b03199081166001600160a01b03938416908117909255602080860180516101348054851691871691909117905560408088018051610135805487169189169190911790556060808a0180516101368054909816908a161790965582519687529251871693860193909352915185168483015291519093169082015290517fc5e56c36231b7247b96ddd6a7e47b60748a332bcb3a514d016fd2e74d9159351916080908290030190a15050565b610143546001600160a01b031690565b6000806118246111c4565b6101375461013a5491925061184791600160201b90910463ffffffff1690614e66565b81106119c857600080600061185a612f3c565b925092509250801561194357610136546040516370a0823160e01b81526000916001600160a01b0316906370a0823190611898903090600401614939565b602060405180830381865afa1580156118b5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d99190614ef9565b61013c8590556101375463ffffffff1661013e81905561013d879055604080518881526020810184905290810191909152606081018690529091507f83e0d535b9e84324e0a25922406398d6ff5f96d0c686204ee490e16d7670566f9060800160405180910390a1505b61013a84905561013b82905561014554821161196057600061013b555b61013b5461013f5461014054604080518881526020810194909452438482015260608401929092526080830152517fdd2b882b89647cd6c5641ce6ab9d46f1c17865d2b22f065850f30f83cc7d8cf89181900360a00190a15050600061013f81905561014055505b505061013b5490565b6060336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016141580611a115750611a0f87612a3b565b155b80611a225750611a2088611cb3565b155b15611a465750604080518082019091526002815261060f60f31b6020820152611077565b600080611a5586880188614f12565b9092509050600080611a716001600160a01b038d1685856130ee565b5050915091508181604051602001611a96929190918252600b0b602082015260400190565b604051602081830303815290604052945050505050979650505050505050565b610135546000906001600160a01b031615611b6b57610135546040516316874da360e11b81526000916001600160a01b031690632d0e9b4690611afd908790600401614939565b602060405180830381865afa158015611b1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b3e9190615036565b90506001600160a01b038116611b695783604051630b7b234960e01b8152600401610e479190614939565b505b610134546001600160a01b031615801590611b9b5750611b996000805160206154f483398151915233611ff7565b155b15611c4357610134546040516356a42afd60e11b81526001600160a01b039091169063ad4855fa90611bd7903090339088908890600401615053565b6020604051808303816000875af1158015611bf6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1a9190615091565b1515600003611c3e578260405163130f4a3760e11b8152600401610e479190614939565b611c92565b61013954600160201b900460ff168015611c725750611c706000805160206154f483398151915233611ff7565b155b15611c925782604051636f6acad560e01b8152600401610e479190614939565b611caa60008051602061553b83398151915284612915565b50600192915050565b6097546001600160a01b0390811691161490565b610135546040516316874da360e11b815260009182916001600160a01b0390911690632d0e9b4690611cfd908690600401614939565b602060405180830381865afa158015611d1a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d3e9190615036565b9050611d486111c4565b6001600160a01b03909116600090815261014160205260409020541492915050565b6000805160206154f4833981519152611d828161253f565b611d8b83612ce6565b8251610137805460208087015160408089015160608a01511515600160601b0260ff60601b1963ffffffff928316600160401b021664ffffffffff60401b19948316600160201b9081026001600160401b0319909816998416999099179690961793909316949094179190911790935560808701516101385560a0870151610139805460c08a0151151590960264ffffffffff1990961691841691909117949094179093558451610144805491831663ffffffff19928316179055928501516101455584820151610146805491909216931692909217909155517f9c2d0f3e240667c2b704104ff988af37be9eb4befb81fe00424626b088ee757990611eed908590600060e08201905063ffffffff808451168352806020850151166020840152806040850151166040840152606084015115156060840152608084015160808401528060a08501511660a08401525060c0830151151560c083015292915050565b60405180910390a1505050565b6060336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611f4557604051632f2d36a760e01b815260040160405180910390fd5b611f4e87612a3b565b611f715750604080518082019091526002815261060f60f31b6020820152611077565b611f7a88611cb3565b611f9757604051631ea25bab60e31b815260040160405180910390fd5b6000611fa585870187614f12565b509050600080611fbf6001600160a01b038c1684306130ee565b505060408051600b9290920b60208301528181019290925281518082038301815260609091019091529b9a5050505050505050505050565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6000610c6e33610d67565b606083336001600160a01b038216148015906120725750336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614155b15612092573360405163087231bf60e31b8152600401610e479190614939565b836000036120b357604051630f6fa54560e41b815260040160405180910390fd5b6097546120cb906001600160a01b0316863087613186565b610ef98585600060405180602001604052806000815250613290565b6097546000906001600160a01b0316331461211557604051630ce706f760e41b815260040160405180910390fd5b8360000361213657604051630f6fa54560e41b815260040160405180910390fd5b6121528585600060405180602001604052806000815250613290565b50600190505b949350505050565b6101435460408051638abf607760e01b815290516000926001600160a01b031691638abf60779160048083019260209291908290030181865afa1580156121ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121cf9190615036565b90506121da81612b0b565b610c5181836000612b16565b60006121f0612f3c565b5092915050565b61220082610f4a565b6122098161253f565b610fba8383612549565b6060600061222387890189614f12565b5090506122328b828686613938565b9b9a5050505050505050505050565b60975460405163b2f918a160e01b815260009182918291829182918291829173__$0d78a42341742155da77b97d7f993534c7$__9163b2f918a19161229591609b916001600160a01b0316906004016150ae565b60e060405180830381865af41580156122b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d69190615138565b959d949c50929a50909850965094509092509050565b606083336001600160a01b038216148015906123315750336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614155b15612351573360405163087231bf60e31b8152600401610e479190614939565b6097546040516370a0823160e01b81526000916001600160a01b0316906370a0823190612382903090600401614939565b602060405180830381865afa15801561239f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123c39190614ef9565b6097546040516321437a5360e01b815291925073__$0d78a42341742155da77b97d7f993534c7$__916321437a5391612432917f0000000000000000000000000000000000000000000000000000000000000000918a916001600160a01b03909116908c9030906004016151ac565b602060405180830381865af415801561244f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124739190614ef9565b506097546040516370a0823160e01b815260009183916001600160a01b03909116906370a08231906124a9903090600401614939565b602060405180830381865afa1580156124c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124ea9190614ef9565b6124f49190614e3c565b90508060000361251757604051630f6fa54560e41b815260040160405180910390fd5b6125338782600060405180602001604052806000815250613290565b50939695505050505050565b6111c18133613986565b60008051602061553b83398151915282148015612579575061257960008051602061553b83398151915282611ff7565b1561261f5761014280546001919060009061259b90849063ffffffff166151ed565b825463ffffffff9182166101009390930a9283029190920219909116179055506101435460405163058e524d60e11b81526001600160a01b0390911690630b1ca49a906125ec908490600401614939565b600060405180830381600087803b15801561260657600080fd5b505af115801561261a573d6000803e3d6000fd5b505050505b610c5182826139df565b610135546040516316874da360e11b81526000916001600160a01b031690632d0e9b469061265b908690600401614939565b602060405180830381865afa158015612678573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269c9190615036565b90506001600160a01b0381166126c75782604051630b7b234960e01b8152600401610e479190614939565b6101395463ffffffff16158015906126ea575061013954600160201b900460ff16155b156127075761270760008051602061553b83398151915284612915565b6101395463ffffffff16151580612728575061013954600160201b900460ff165b8015612749575061274760008051602061553b83398151915284611ff7565b155b15612769578260405163130f4a3760e11b8152600401610e479190614939565b6101445463ffffffff161580159061278f57506101445461013f5463ffffffff90911611155b156127b55761013f54604051635136bc3160e01b81526004810191909152602401610e47565b60006127bf611819565b61013a546001600160a01b0384166000908152610141602052604090205491925090036128015781604051631fc1cabf60e31b8152600401610e479190614939565b61013a546001600160a01b0383166000908152610141602052604081209190915561013f805460019290612836908490614e66565b90915550506101408054829190600090612851908490614e66565b9091555061287b9050836128655784612867565b825b610136546001600160a01b03169083613a46565b836001600160a01b0316826001600160a01b03167f1c0764b87f885ff7e1be5f7c06a0cc99c5bdc0f7b4884440e6ebe5b12bfd511d836040516128c091815260200190565b60405180910390a350505050565b60606110778686600b0b8686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061329092505050565b60008051602061553b83398151915282148015612947575061294560008051602061553b83398151915282611ff7565b155b15612a31576101395463ffffffff16158015906129735750610139546101425463ffffffff9182169116115b1561299157604051632263c94160e01b815260040160405180910390fd5b6101435460405163329b55b760e21b81526001600160a01b039091169063ca6d56dc906129c2908490600401614939565b600060405180830381600087803b1580156129dc57600080fd5b505af11580156129f0573d6000803e3d6000fd5b5050610142805460019350909150600090612a1290849063ffffffff1661520a565b92506101000a81548163ffffffff021916908363ffffffff1602179055505b610c518282613a9c565b604051635b69006f60e11b815260008051602061549483398151915260048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063b6d200de90602401602060405180830381865afa158015612ab0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ad49190615036565b6001600160a01b0316826001600160a01b0316149050919050565b6000805160206154d4833981519152546001600160a01b031690565b6000610c518161253f565b7f4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd91435460ff1615612b4957610fba83613b22565b826001600160a01b03166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015612ba3575060408051601f3d908101601f19168201909252612ba091810190614ef9565b60015b612c065760405162461bcd60e51b815260206004820152602e60248201527f45524331393637557067726164653a206e657720696d706c656d656e7461746960448201526d6f6e206973206e6f74205555505360901b6064820152608401610e47565b6000805160206154d48339815191528114612c755760405162461bcd60e51b815260206004820152602960248201527f45524331393637557067726164653a20756e737570706f727465642070726f786044820152681a58589b195555525160ba1b6064820152608401610e47565b50610fba838383613bbc565b6001600160a01b03163b151590565b80516001600160a01b03161580612cb2575060408101516001600160a01b0316155b80612cc8575060608101516001600160a01b0316155b156111c157604051631e597d8360e11b815260040160405180910390fd5b602081015163ffffffff161580612d025750805163ffffffff16155b80612d155750604081015163ffffffff16155b80612cc8575060808101516111c157604051631e597d8360e11b815260040160405180910390fd5b610c518282612915565b6001600160a01b038116612d6e5760405163538ba4f960e01b815260040160405180910390fd5b609780546001600160a01b0319166001600160a01b03838116919091179091556040516315a722b960e31b8152600160048201819052917f0000000000000000000000000000000000000000000000000000000000000000169063ad3915c890602401600060405180830381600087803b158015612deb57600080fd5b505af1158015612dff573d6000803e3d6000fd5b50506040805180820182527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168082529151635b69006f60e11b8152600080516020615494833981519152600482015290935060208401925063b6d200de90602401602060405180830381865afa158015612e86573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eaa9190615036565b6001600160a01b039081169091528151609980546001600160a01b0319908116928416929092179055602090920151609a805490931691161790555050565b6060612f308786600b0b8686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061329092505050565b98975050505050505050565b610136546040516370a0823160e01b81526000918291829182916001600160a01b03909116906370a0823190612f76903090600401614939565b602060405180830381865afa158015612f93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fb79190614ef9565b61013754909150600090612fd19063ffffffff1683614fef565b90506000606461013a600201546069612fea9190614e4f565b612ff49190614fef565b821180613038575061013e54613008610c55565b111580156130385750613019610c55565b61013e546130279190614e3c565b61013c546130359190614e4f565b83105b61013c5461013e5490975090915061304e610c55565b613059906001614e66565b1015806130635750805b15613083576101375461307c9063ffffffff1684614fef565b9550600193505b6101385461013f546130d391906130c490612710906130a490612904614e4f565b6130ae9190614fef565b61013754600160401b900463ffffffff16613be7565b6130ce9089614fef565b613bfe565b610145549095508510156130e657600094505b505050909192565b60008060008060006130ff88613c0d565b604051631cd43d1160e31b81529092506001600160a01b038316915063e6a1e88890613133908b908b908b90600401615227565b608060405180830381865afa158015613150573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613174919061524a565b929b919a509850909650945050505050565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b17905291516000928392908816916131ea9190615288565b6000604051808303816000865af19150503d8060008114613227576040519150601f19603f3d011682016040523d82523d6000602084013e61322c565b606091505b50915091508180156132565750805115806132565750808060200190518101906132569190615091565b6132885760405162461bcd60e51b815260206004820152600360248201526229aa2360e91b6044820152606401610e47565b505050505050565b8051819015156000806132a1610ca8565b609754919350915073__$0d78a42341742155da77b97d7f993534c7$__9063934e2cce90609b906001600160a01b03166132d9611809565b85886132e5578c6132e8565b60005b6040516001600160e01b031960e088901b16815260048101959095526001600160a01b03938416602486015292909116604484015263ffffffff166064830152608482015260a40160006040518083038186803b15801561334857600080fd5b505af415801561335c573d6000803e3d6000fd5b50506097546000925061337a91506001600160a01b03168a30613d7c565b6001600160a01b038a16600090815260986020526040902054909150841561376f57600082600b0b1380156133b757506459df649400600b83900b125b156133da57604051624963df60e91b8152600b83900b6004820152602401610e47565b6001600160a01b038a16600090815260986020526040902060010180546001600160e01b031916600160601b426001600160801b038116919091026001600160601b031916919091176001600160601b0385161790915561343c908990614e3c565b613446908a614e4f565b6001600160a01b038b166000908152609860205260408120805490919061346e908490614e66565b909155506000905061347e611809565b6001600160a01b03161461364157613494611809565b6001600160a01b031663469048406040518163ffffffff1660e01b8152600401602060405180830381865afa1580156134d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134f59190615036565b93506134ff611809565b6001600160a01b03166324a9d8536040518163ffffffff1660e01b8152600401602060405180830381865afa15801561353c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061356091906152a4565b925073__$0d78a42341742155da77b97d7f993534c7$__634d167a906099609760009054906101000a90046001600160a01b0316609b60030160009054906101000a90046001600160a01b031688888f896135bb91906152c1565b8d6040518863ffffffff1660e01b81526004016135de97969594939291906152ee565b600060405180830381865af41580156135fb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613623919081019061533e565b609e80546001600160a01b0319166001600160a01b03871617905595505b613649610ca8565b809450819550505073__$0d78a42341742155da77b97d7f993534c7$__634d167a906099609760009054906101000a90046001600160a01b0316609b60040160009054906101000a90046001600160a01b031688888f896136aa91906152c1565b8d6040518863ffffffff1660e01b81526004016136cd97969594939291906152ee565b600060405180830381865af41580156136ea573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613712919081019061533e565b609f80546001600160a01b0319166001600160a01b0387811691909117909155609754919750613743911630613e0a565b609e80546001600160601b0392909216600160a01b026001600160a01b039092169190911790556138ae565b6000613779611809565b6001600160a01b0316146138685761378f611809565b6001600160a01b031663469048406040518163ffffffff1660e01b8152600401602060405180830381865afa1580156137cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137f09190615036565b93506137fa611809565b6001600160a01b03166324a9d8536040518163ffffffff1660e01b8152600401602060405180830381865afa158015613837573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061385b91906152a4565b925061386884848b613e89565b613870610ca8565b909450925061388084848b613e89565b6001600160a01b038a16600090815260986020526040812080548b92906138a8908490614e66565b90915550505b6001600160a01b038a166000818152609860205260409020547f6342e11b65ccb38a3bb259be9cda846c74ad52b36b62a2ee4799dc3db63a04a3908390886138f75760006138f9565b8c5b604080519384526020840192909252600b90810b8383015286900b60608301528815156080830152519081900360a00190a25050505050949350505050565b606061397d8460008086868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061329092505050565b95945050505050565b6139908282611ff7565b610c515761399d81613ed5565b6139a8836020613ee7565b6040516020016139b99291906153ab565b60408051601f198184030181529082905262461bcd60e51b8252610e47916004016147fb565b6139e98282611ff7565b15610c515760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b610fba8363a9059cbb60e01b8484604051602401613a6592919061541a565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614082565b613aa68282611ff7565b610c515760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055613ade3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b613b2b81612c81565b613b8d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b6064820152608401610e47565b6000805160206154d483398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b613bc583614154565b600082511180613bd25750805b15610fba57613be18383614194565b50505050565b600081831015613bf75781610d60565b5090919050565b6000818310613bf75781610d60565b7f65599bf746e17a00ea62e3610586992d88101b78eec3cf380706621fb97ea837547fb969d79d88acd02d04ed7ee7d43b949e7daf093d363abcfbbc43dfdfd1ce969a546001600160a01b038116613d4b576001600160a01b038216613cd257826001600160a01b03166320bc44256040518163ffffffff1660e01b8152600401602060405180830381865afa158015613cab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ccf9190615036565b91505b604051635b69006f60e11b815260008051602061549483398151915260048201526001600160a01b0383169063b6d200de90602401602060405180830381865afa158015613d24573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d489190615036565b90505b6001600160a01b038216613d6157613d61615433565b6001600160a01b038116613d7757613d77615433565b915091565b600080613d8885613c0d565b604051631cd43d1160e31b81529092506001600160a01b038316915063e6a1e88890613dbc90889088908890600401615227565b608060405180830381865afa158015613dd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dfd919061524a565b5090979650505050505050565b600080613e1684613c0d565b60405163e8e7e2d160e01b81529092506001600160a01b038316915063e8e7e2d190613e489087908790600401614dae565b602060405180830381865afa158015613e65573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121589190615449565b6001600160a01b038316613e9c57505050565b6000612710613eb163ffffffff851684614e4f565b613ebb9190614fef565b609754909150613be1906001600160a01b0316858361427d565b6060610c1b6001600160a01b03831660145b60606000613ef6836002614e4f565b613f01906002614e66565b6001600160401b03811115613f1857613f186145d9565b6040519080825280601f01601f191660200182016040528015613f42576020820181803683370190505b509050600360fc1b81600081518110613f5d57613f5d615466565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613f8c57613f8c615466565b60200101906001600160f81b031916908160001a9053506000613fb0846002614e4f565b613fbb906001614e66565b90505b6001811115614033576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613fef57613fef615466565b1a60f81b82828151811061400557614005615466565b60200101906001600160f81b031916908160001a90535060049490941c9361402c8161547c565b9050613fbe565b508315610d605760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610e47565b60006140d7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166143809092919063ffffffff16565b805190915015610fba57808060200190518101906140f59190615091565b610fba5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610e47565b61415d81613b22565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606061419f83612c81565b6141fa5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b6064820152608401610e47565b600080846001600160a01b0316846040516142159190615288565b600060405180830381855af49150503d8060008114614250576040519150601f19603f3d011682016040523d82523d6000602084013e614255565b606091505b509150915061397d82826040518060600160405280602781526020016155146027913961438f565b600080846001600160a01b031663a9059cbb60e01b85856040516024016142a592919061541a565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516142e39190615288565b6000604051808303816000865af19150503d8060008114614320576040519150601f19603f3d011682016040523d82523d6000602084013e614325565b606091505b509150915081801561434f57508051158061434f57508080602001905181019061434f9190615091565b6114805760405162461bcd60e51b815260206004820152600260248201526114d560f21b6044820152606401610e47565b606061215884846000856143a8565b6060831561439e575081610d60565b610d608383614478565b6060824710156144095760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610e47565b600080866001600160a01b031685876040516144259190615288565b60006040518083038185875af1925050503d8060008114614462576040519150601f19603f3d011682016040523d82523d6000602084013e614467565b606091505b5091509150611077878383876144a2565b8151156144885781518083602001fd5b8060405162461bcd60e51b8152600401610e4791906147fb565b6060831561450f578251600003614508576144bc85612c81565b6145085760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610e47565b5081612158565b6121588383614478565b60006020828403121561452b57600080fd5b81356001600160e01b031981168114610d6057600080fd5b6001600160a01b03811681146111c157600080fd5b60006020828403121561456a57600080fd5b8135610d6081614543565b80151581146111c157600080fd5b803561458e81614575565b919050565b600080604083850312156145a657600080fd5b82356145b181614543565b915060208301356145c181614575565b809150509250929050565b6001600160a01b03169052565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715614617576146176145d9565b604052919050565b60006001600160401b03821115614638576146386145d9565b50601f01601f191660200190565b600082601f83011261465757600080fd5b813561466a6146658261461f565b6145ef565b81815284602083860101111561467f57600080fd5b816020850160208301376000918101602001919091529392505050565b600060a082840312156146ae57600080fd5b60405160a081016001600160401b0380821183831017156146d1576146d16145d9565b81604052829350843591506146e582614543565b818352602085013560208401526040850135604084015260608501356060840152608085013591508082111561471a57600080fd5b5061472785828601614646565b6080830152505092915050565b60008060006060848603121561474957600080fd5b83356001600160401b038082111561476057600080fd5b61476c8783880161469c565b94506020860135915061477e82614543565b9092506040850135908082111561479457600080fd5b506147a186828701614646565b9150509250925092565b60005b838110156147c65781810151838201526020016147ae565b50506000910152565b600081518084526147e78160208601602086016147ab565b601f01601f19169290920160200192915050565b602081526000610d6060208301846147cf565b60008083601f84011261482057600080fd5b5081356001600160401b0381111561483757600080fd5b60208301915083602082850101111561484f57600080fd5b9250929050565b600080600080600080600080600060c08a8c03121561487457600080fd5b893561487f81614543565b985060208a013561488f81614543565b975060408a0135965060608a01356001600160401b03808211156148b257600080fd5b6148be8d838e0161480e565b909850965060808c01359150808211156148d757600080fd5b6148e38d838e0161480e565b909650945060a08c01359150808211156148fc57600080fd5b506149098c828d0161480e565b915080935050809150509295985092959850929598565b60006020828403121561493257600080fd5b5035919050565b6001600160a01b0391909116815260200190565b6000806040838503121561496057600080fd5b8235915060208301356145c181614543565b600080600080600080600060a0888a03121561498d57600080fd5b873561499881614543565b965060208801356149a881614543565b95506040880135945060608801356001600160401b03808211156149cb57600080fd5b6149d78b838c0161480e565b909650945060808a01359150808211156149f057600080fd5b506149fd8a828b0161480e565b989b979a50959850939692959293505050565b600060808284031215614a2257600080fd5b604051608081016001600160401b0381118282101715614a4457614a446145d9565b6040529050808235614a5581614543565b81526020830135614a6581614543565b60208201526040830135614a7881614543565b60408201526060830135614a8b81614543565b6060919091015292915050565b63ffffffff811681146111c157600080fd5b803561458e81614a98565b600060e08284031215614ac757600080fd5b60405160e081016001600160401b0381118282101715614ae957614ae96145d9565b6040529050808235614afa81614a98565b81526020830135614b0a81614a98565b60208201526040830135614b1d81614a98565b60408201526060830135614b3081614575565b606082015260808381013590820152614b4b60a08401614aaa565b60a0820152614b5c60c08401614583565b60c08201525092915050565b600060608284031215614b7a57600080fd5b604051606081016001600160401b0381118282101715614b9c57614b9c6145d9565b6040529050808235614bad81614a98565b8152602083810135908201526040830135614bc781614a98565b6040919091015292915050565b6000806000806101e08587031215614beb57600080fd5b614bf58686614a10565b9350614c048660808701614ab5565b9250614c14866101608701614b68565b91506101c0850135614c2581614543565b939692955090935050565b60008060408385031215614c4357600080fd5b8235614c4e81614543565b915060208301356001600160401b03811115614c6957600080fd5b614c7585828601614646565b9150509250929050565b600060808284031215614c9157600080fd5b610d608383614a10565b6000806101408385031215614caf57600080fd5b614cb98484614ab5565b9150614cc88460e08501614b68565b90509250929050565b600080600060608486031215614ce657600080fd5b8335614cf181614543565b92506020840135915060408401356001600160401b03811115614d1357600080fd5b6147a186828701614646565b60008060008060608587031215614d3557600080fd5b8435614d4081614543565b93506020850135925060408501356001600160401b03811115614d6257600080fd5b614d6e8782880161480e565b95989497509550505050565b600060208284031215614d8c57600080fd5b81356001600160401b03811115614da257600080fd5b61215884828501614646565b6001600160a01b0392831681529116602082015260400190565b600080600060608486031215614ddd57600080fd5b8335614de881614543565b925060208401356001600160401b0380821115614e0457600080fd5b614e108783880161469c565b9350604086013591508082111561479457600080fd5b634e487b7160e01b600052601160045260246000fd5b81810381811115610c1b57610c1b614e26565b8082028115828204841417610c1b57610c1b614e26565b80820180821115610c1b57610c1b614e26565b60018060a01b0381511682526020810151602083015260408101516040830152606081015160608301526000608082015160a0608085015261215860a08501826147cf565b600060018060a01b03808716835260806020840152614ee06080840187614e79565b9481166040840152929092166060909101525092915050565b600060208284031215614f0b57600080fd5b5051919050565b60008060408385031215614f2557600080fd5b8235614f3081614543565b915060208301356145c181614543565b80600b0b81146111c157600080fd5b60008060408385031215614f6257600080fd5b8235614f6d81614f40565b946020939093013593505050565b6020808252602c908201526000805160206154b483398151915260408201526b19195b1959d85d1958d85b1b60a21b606082015260800190565b6020808252602c908201526000805160206154b483398151915260408201526b6163746976652070726f787960a01b606082015260800190565b60008261500c57634e487b7160e01b600052601260045260246000fd5b500490565b6000806040838503121561502457600080fd5b8235915060208301356145c181614f40565b60006020828403121561504857600080fd5b8151610d6081614543565b6001600160a01b038581168252848116602083015283166040820152608060608201819052600090615087908301846147cf565b9695505050505050565b6000602082840312156150a357600080fd5b8151610d6081614575565b82548152600183015460208201526002830154604082015260038301546101208201906150e7606084016001600160a01b0383166145cc565b6150f9608084018260a01d600b0b9052565b5060048401546001600160a01b031661511560a08401826145cc565b50600584015460c0830152600684015460e0830152610d606101008301846145cc565b600080600080600080600060e0888a03121561515357600080fd5b87519650602088015195506040880151945060608801519350608088015161517a81614f40565b60a089015190935061518b81614f40565b60c089015190925061519c81614f40565b8091505092959891949750929550565b600060018060a01b03808816835260a060208401526151ce60a0840188614e79565b9581166040840152938416606083015250911660809091015292915050565b63ffffffff8281168282160390808211156121f0576121f0614e26565b63ffffffff8181168382160190808211156121f0576121f0614e26565b6001600160a01b0393841681529183166020830152909116604082015260600190565b6000806000806080858703121561526057600080fd5b84519350602085015161527281614f40565b6040860151606090960151949790965092505050565b6000825161529a8184602087016147ab565b9190910192915050565b6000602082840312156152b657600080fd5b8151610d6081614a98565b600b82810b9082900b0360016001605f1b0319811260016001605f1b0382131715610c1b57610c1b614e26565b8781526001600160a01b03878116602083015286811660408301528516606082015263ffffffff84166080820152600b83900b60a082015260e060c08201819052600090610f3d908301846147cf565b60006020828403121561535057600080fd5b81516001600160401b0381111561536657600080fd5b8201601f8101841361537757600080fd5b80516153856146658261461f565b81815285602083850101111561539a57600080fd5b61397d8260208301602086016147ab565b76020b1b1b2b9b9a1b7b73a3937b61d1030b1b1b7bab73a1604d1b8152600083516153dd8160178501602088016147ab565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161540e8160288401602088016147ab565b01602801949350505050565b6001600160a01b03929092168252602082015260400190565b634e487b7160e01b600052600160045260246000fd5b60006020828403121561545b57600080fd5b8151610d6081614f40565b634e487b7160e01b600052603260045260246000fd5b60008161548b5761548b614e26565b50600019019056fea9214cc96615e0085d3bb077758db69497dc2dce3b2b1e97bc93c3d18d83efd346756e6374696f6e206d7573742062652063616c6c6564207468726f75676820360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc241ecf16d79d0f8dbfb92cbc07fe17840425976cf0667f022fe9877caa831b08416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564829b824e2329e205435d941c9f13baf578548505283d29261236d8e6596d4636a26469706673582212206530303fad086da78a203f197db1ee9764a934fa95a73e8ae60f14a984e3507f64736f6c63430008130033";
|
|
1974
|
+
|
|
1975
|
+
type UBIPoolConstructorParams =
|
|
1976
|
+
| [linkLibraryAddresses: UBIPoolLibraryAddresses, signer?: Signer]
|
|
1977
|
+
| ConstructorParameters<typeof ContractFactory>;
|
|
1978
|
+
|
|
1979
|
+
const isSuperArgs = (
|
|
1980
|
+
xs: UBIPoolConstructorParams
|
|
1981
|
+
): xs is ConstructorParameters<typeof ContractFactory> => {
|
|
1982
|
+
return (
|
|
1983
|
+
typeof xs[0] === "string" ||
|
|
1984
|
+
(Array.isArray as (arg: any) => arg is readonly any[])(xs[0]) ||
|
|
1985
|
+
"_isInterface" in xs[0]
|
|
1986
|
+
);
|
|
1987
|
+
};
|
|
1988
|
+
|
|
1989
|
+
export class UBIPool__factory extends ContractFactory {
|
|
1990
|
+
constructor(...args: UBIPoolConstructorParams) {
|
|
1991
|
+
if (isSuperArgs(args)) {
|
|
1992
|
+
super(...args);
|
|
1993
|
+
} else {
|
|
1994
|
+
const [linkLibraryAddresses, signer] = args;
|
|
1995
|
+
super(_abi, UBIPool__factory.linkBytecode(linkLibraryAddresses), signer);
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
static linkBytecode(linkLibraryAddresses: UBIPoolLibraryAddresses): string {
|
|
2000
|
+
let linkedBytecode = _bytecode;
|
|
2001
|
+
|
|
2002
|
+
linkedBytecode = linkedBytecode.replace(
|
|
2003
|
+
new RegExp("__\\$0d78a42341742155da77b97d7f993534c7\\$__", "g"),
|
|
2004
|
+
linkLibraryAddresses["contracts/utils/HelperLibrary.sol:HelperLibrary"]
|
|
2005
|
+
.replace(/^0x/, "")
|
|
2006
|
+
.toLowerCase()
|
|
2007
|
+
);
|
|
2008
|
+
|
|
2009
|
+
return linkedBytecode;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
override deploy(
|
|
2013
|
+
_host: PromiseOrValue<string>,
|
|
2014
|
+
_swapRouter: PromiseOrValue<string>,
|
|
2015
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2016
|
+
): Promise<UBIPool> {
|
|
2017
|
+
return super.deploy(
|
|
2018
|
+
_host,
|
|
2019
|
+
_swapRouter,
|
|
2020
|
+
overrides || {}
|
|
2021
|
+
) as Promise<UBIPool>;
|
|
2022
|
+
}
|
|
2023
|
+
override getDeployTransaction(
|
|
2024
|
+
_host: PromiseOrValue<string>,
|
|
2025
|
+
_swapRouter: PromiseOrValue<string>,
|
|
2026
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
2027
|
+
): TransactionRequest {
|
|
2028
|
+
return super.getDeployTransaction(_host, _swapRouter, overrides || {});
|
|
2029
|
+
}
|
|
2030
|
+
override attach(address: string): UBIPool {
|
|
2031
|
+
return super.attach(address) as UBIPool;
|
|
2032
|
+
}
|
|
2033
|
+
override connect(signer: Signer): UBIPool__factory {
|
|
2034
|
+
return super.connect(signer) as UBIPool__factory;
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
static readonly bytecode = _bytecode;
|
|
2038
|
+
static readonly abi = _abi;
|
|
2039
|
+
static createInterface(): UBIPoolInterface {
|
|
2040
|
+
return new utils.Interface(_abi) as UBIPoolInterface;
|
|
2041
|
+
}
|
|
2042
|
+
static connect(
|
|
2043
|
+
address: string,
|
|
2044
|
+
signerOrProvider: Signer | Provider
|
|
2045
|
+
): UBIPool {
|
|
2046
|
+
return new Contract(address, _abi, signerOrProvider) as UBIPool;
|
|
2047
|
+
}
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
export interface UBIPoolLibraryAddresses {
|
|
2051
|
+
["contracts/utils/HelperLibrary.sol:HelperLibrary"]: string;
|
|
2052
|
+
}
|