@boostxyz/sdk 8.0.0-canary.3 → 8.0.0-canary.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Actions/Action.cjs +1 -1
- package/dist/Actions/Action.js +2 -2
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +184 -181
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/{AllowList-DQf-8HQC.js → AllowList-CTRuUBCQ.js} +41 -41
- package/dist/{AllowList-DQf-8HQC.js.map → AllowList-CTRuUBCQ.js.map} +1 -1
- package/dist/{AllowList-DaX239DR.cjs → AllowList-GEmUfOR1.cjs} +2 -2
- package/dist/{AllowList-DaX239DR.cjs.map → AllowList-GEmUfOR1.cjs.map} +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +4 -4
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.js +7 -7
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.js +3 -3
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +2 -2
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +137 -2
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +336 -206
- package/dist/BoostCore.js.map +1 -1
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +21 -21
- package/dist/{Budget-LnAQ_Slw.js → Budget-BH0s7Bxu.js} +52 -52
- package/dist/{Budget-LnAQ_Slw.js.map → Budget-BH0s7Bxu.js.map} +1 -1
- package/dist/{Budget-WIB8IJoM.cjs → Budget-CwNhsa3m.cjs} +2 -2
- package/dist/{Budget-WIB8IJoM.cjs.map → Budget-CwNhsa3m.cjs.map} +1 -1
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.js +3 -3
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.js +26 -26
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.js +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.js +17 -17
- package/dist/{Incentive-gT7z-4v3.cjs → Incentive-B2ZBE5LU.cjs} +2 -2
- package/dist/{Incentive-gT7z-4v3.cjs.map → Incentive-B2ZBE5LU.cjs.map} +1 -1
- package/dist/{Incentive-D_IBex5V.js → Incentive-BCSV7OtF.js} +41 -41
- package/dist/{Incentive-D_IBex5V.js.map → Incentive-BCSV7OtF.js.map} +1 -1
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.js +17 -17
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.js +14 -14
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.js +13 -13
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js +71 -71
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js +35 -35
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js +9 -9
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js +12 -12
- package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableIncentive.js +8 -8
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.js +3 -3
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.js +28 -28
- package/dist/{SimpleDenyList-D5AoBdVi.cjs → SimpleDenyList-6_sxnZB0.cjs} +2 -2
- package/dist/{SimpleDenyList-D5AoBdVi.cjs.map → SimpleDenyList-6_sxnZB0.cjs.map} +1 -1
- package/dist/{SimpleDenyList-CtdXM49y.js → SimpleDenyList-CrjjFnn5.js} +17 -17
- package/dist/{SimpleDenyList-CtdXM49y.js.map → SimpleDenyList-CrjjFnn5.js.map} +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs.map +1 -1
- package/dist/Validators/LimitedSignerValidator.d.ts +9 -9
- package/dist/Validators/LimitedSignerValidator.d.ts.map +1 -1
- package/dist/Validators/LimitedSignerValidator.js +19 -19
- package/dist/Validators/LimitedSignerValidator.js.map +1 -1
- package/dist/Validators/LimitedSignerValidatorV2.cjs +2 -0
- package/dist/Validators/LimitedSignerValidatorV2.cjs.map +1 -0
- package/dist/Validators/LimitedSignerValidatorV2.d.ts +842 -0
- package/dist/Validators/LimitedSignerValidatorV2.d.ts.map +1 -0
- package/dist/Validators/LimitedSignerValidatorV2.js +301 -0
- package/dist/Validators/LimitedSignerValidatorV2.js.map +1 -0
- package/dist/Validators/PayableLimitedSignerValidator.cjs +2 -0
- package/dist/Validators/PayableLimitedSignerValidator.cjs.map +1 -0
- package/dist/Validators/PayableLimitedSignerValidator.d.ts.map +1 -1
- package/dist/{Validator-BEUqV28V.js → Validators/PayableLimitedSignerValidator.js} +56 -102
- package/dist/Validators/PayableLimitedSignerValidator.js.map +1 -0
- package/dist/Validators/PayableLimitedSignerValidatorV2.cjs +2 -0
- package/dist/Validators/PayableLimitedSignerValidatorV2.cjs.map +1 -0
- package/dist/Validators/PayableLimitedSignerValidatorV2.d.ts +855 -0
- package/dist/Validators/PayableLimitedSignerValidatorV2.d.ts.map +1 -0
- package/dist/Validators/PayableLimitedSignerValidatorV2.js +372 -0
- package/dist/Validators/PayableLimitedSignerValidatorV2.js.map +1 -0
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.cjs.map +1 -1
- package/dist/Validators/SignerValidator.d.ts +4 -2
- package/dist/Validators/SignerValidator.d.ts.map +1 -1
- package/dist/Validators/SignerValidator.js +12 -12
- package/dist/Validators/SignerValidator.js.map +1 -1
- package/dist/Validators/SignerValidatorV2.cjs +2 -0
- package/dist/Validators/SignerValidatorV2.cjs.map +1 -0
- package/dist/Validators/SignerValidatorV2.d.ts +728 -0
- package/dist/Validators/SignerValidatorV2.d.ts.map +1 -0
- package/dist/Validators/SignerValidatorV2.js +299 -0
- package/dist/Validators/SignerValidatorV2.js.map +1 -0
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.cjs.map +1 -1
- package/dist/Validators/Validator.d.ts +19 -4
- package/dist/Validators/Validator.d.ts.map +1 -1
- package/dist/Validators/Validator.js +79 -14
- package/dist/Validators/Validator.js.map +1 -1
- package/dist/componentInterfaces-43ygGrVO.js +28 -0
- package/dist/componentInterfaces-43ygGrVO.js.map +1 -0
- package/dist/componentInterfaces-JU4NBkEc.cjs +2 -0
- package/dist/componentInterfaces-JU4NBkEc.cjs.map +1 -0
- package/dist/{deployments-Dw5Suk_D.js → deployments-COm00j8v.js} +48 -39
- package/dist/{deployments-Dw5Suk_D.js.map → deployments-COm00j8v.js.map} +1 -1
- package/dist/deployments-uLDgrxCp.cjs +2 -0
- package/dist/deployments-uLDgrxCp.cjs.map +1 -0
- package/dist/deployments.json +30 -21
- package/dist/generated-CkZm1EVH.cjs +3 -0
- package/dist/generated-CkZm1EVH.cjs.map +1 -0
- package/dist/{generated-krkFnwbV.js → generated-DRbljODL.js} +2314 -1284
- package/dist/generated-DRbljODL.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +185 -165
- package/dist/index.js.map +1 -1
- package/package.json +25 -1
- package/src/Actions/EventAction.ts +24 -5
- package/src/BoostCore.test.ts +77 -11
- package/src/BoostCore.ts +165 -4
- package/src/Budgets/ManagedBudgetWithFees.test.ts +14 -14
- package/src/Budgets/ManagedBudgetWithFeesV2.test.ts +3 -3
- package/src/Incentives/AllowListIncentive.test.ts +5 -5
- package/src/Incentives/CGDAIncentive.test.ts +6 -6
- package/src/Incentives/ERC1155Incentive.test.ts +2 -2
- package/src/Incentives/ERC20Incentive.test.ts +6 -6
- package/src/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.test.ts +5 -5
- package/src/Incentives/ERC20VariableCriteriaIncentiveV2.test.ts +5 -5
- package/src/Incentives/ERC20VariableIncentive.test.ts +7 -8
- package/src/Incentives/PointsIncentive.test.ts +5 -5
- package/src/Validators/LimitedSignerValidator.test.ts +1 -1
- package/src/Validators/LimitedSignerValidator.ts +9 -10
- package/src/Validators/LimitedSignerValidatorV2.test.ts +231 -0
- package/src/Validators/LimitedSignerValidatorV2.ts +707 -0
- package/src/Validators/PayableLimitedSignerValidator.test.ts +1 -1
- package/src/Validators/PayableLimitedSignerValidator.ts +0 -1
- package/src/Validators/PayableLimitedSignerValidatorV2.test.ts +202 -0
- package/src/Validators/PayableLimitedSignerValidatorV2.ts +688 -0
- package/src/Validators/SignerValidator.ts +4 -2
- package/src/Validators/SignerValidatorV2.test.ts +163 -0
- package/src/Validators/SignerValidatorV2.ts +635 -0
- package/src/Validators/Validator.ts +45 -2
- package/src/index.ts +3 -0
- package/dist/Validator-BEUqV28V.js.map +0 -1
- package/dist/Validator-FxcxYKhR.cjs +0 -2
- package/dist/Validator-FxcxYKhR.cjs.map +0 -1
- package/dist/componentInterfaces-BZ3fSNkT.cjs +0 -2
- package/dist/componentInterfaces-BZ3fSNkT.cjs.map +0 -1
- package/dist/componentInterfaces-D2s6AXlV.js +0 -25
- package/dist/componentInterfaces-D2s6AXlV.js.map +0 -1
- package/dist/deployments-DimWVnA4.cjs +0 -2
- package/dist/deployments-DimWVnA4.cjs.map +0 -1
- package/dist/generated-Cf82M-QP.cjs +0 -3
- package/dist/generated-Cf82M-QP.cjs.map +0 -1
- package/dist/generated-krkFnwbV.js.map +0 -1
package/dist/BoostCore.js
CHANGED
|
@@ -1,35 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { waitForTransactionReceipt as V, getAccount as
|
|
3
|
-
import { createClient as
|
|
4
|
-
import {
|
|
5
|
-
import { actionFromAddress as
|
|
6
|
-
import { EventAction as
|
|
7
|
-
import { b as
|
|
8
|
-
import { SimpleAllowList as
|
|
9
|
-
import { S as
|
|
10
|
-
import { PassthroughAuth as
|
|
1
|
+
import { u as A, dS as Q, dT as f0, T as M, dU as e0, dV as a0, dW as t0, dX as b0, dY as c0, dZ as d0, d_ as n0, d$ as s0, e0 as i0, e1 as o0, e2 as r0, e3 as u0, e4 as h0, e5 as l0, e6 as g0, e7 as w0, e8 as y0, e9 as m0, ea as A0, eb as C0, ec as v0, ed as I0, ee as B0, ef as P0, eg as p0, eh as _0 } from "./generated-DRbljODL.js";
|
|
2
|
+
import { waitForTransactionReceipt as V, getAccount as E0, getChains as F0, getTransactionReceipt as R0, deployContract as $ } from "@wagmi/core";
|
|
3
|
+
import { createClient as N0, custom as V0, zeroAddress as C, parseEventLogs as E, zeroHash as w, keccak256 as D0, encodePacked as S0, encodeFunctionData as T0, encodeDeployData as L0 } from "viem";
|
|
4
|
+
import { o as O0 } from "./deployments-COm00j8v.js";
|
|
5
|
+
import { actionFromAddress as x0 } from "./Actions/Action.js";
|
|
6
|
+
import { EventAction as M0 } from "./Actions/EventAction.js";
|
|
7
|
+
import { b as $0, a as z0, O as j0 } from "./AllowList-CTRuUBCQ.js";
|
|
8
|
+
import { SimpleAllowList as W0 } from "./AllowLists/SimpleAllowList.js";
|
|
9
|
+
import { S as q0 } from "./SimpleDenyList-CrjjFnn5.js";
|
|
10
|
+
import { PassthroughAuth as G0 } from "./Auth/PassthroughAuth.js";
|
|
11
11
|
import { prepareBoostPayload as P, Boost as F } from "./Boost.js";
|
|
12
|
-
import { T as
|
|
13
|
-
import { prepareTransfer as R, ManagedBudget as
|
|
14
|
-
import { Deployable as
|
|
15
|
-
import { Roles as
|
|
16
|
-
import { AllowListIncentive as
|
|
17
|
-
import { CGDAIncentive as
|
|
18
|
-
import { ERC20Incentive as
|
|
19
|
-
import { i as
|
|
20
|
-
import { ERC20PeggedVariableCriteriaIncentiveV2 as
|
|
21
|
-
import { ERC20VariableCriteriaIncentiveV2 as
|
|
22
|
-
import { PointsIncentive as
|
|
23
|
-
import { LimitedSignerValidator as
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
const q = "0x60a0604052306080523480156012575f80fd5b506019601d565b6080565b63409feecd1980546001811615603a5763f92ee8a95f526004601cfd5b6001600160401b03808260011c14607b578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60805161544961009f5f395f8181613308015261333f01526154495ff3fe608060405260043610610229575f3560e01c8063730f9c5711610131578063d73792a9116100ac578063eccc19a61161007c578063f2fde38b11610062578063f2fde38b14610652578063fee81cf414610665578063fefceca914610696575f80fd5b8063eccc19a614610620578063f04e283e1461063f575f80fd5b8063d73792a914610590578063dd7dc9a9146105a5578063dd98558c146105c5578063e21ff73114610601575f80fd5b8063a92647dc11610101578063c0c53b8b116100e7578063c0c53b8b14610533578063caa1647b14610552578063d5137b5214610571575f80fd5b8063a92647dc146104c3578063b0e21e8a146104e2575f80fd5b8063730f9c571461044b5780637b1039991461045e5780638da5cb5b1461047d5780638fe4f523146104b0575f80fd5b806346877b1a116101c157806354d1f13d116101915780635edb9eb0116101775780635edb9eb0146104115780635f32c23e14610424578063715018a614610443575f80fd5b806354d1f13d146103be57806354fd4d50146103c6575f80fd5b806346877b1a1461034b5780634f1ef2861461036a5780635045b8661461037d57806352d1902d1461039c575f80fd5b806325692962116101fc57806325692962146102c1578063346339d5146102c957806339a51be5146102f557806343bc42d31461032c575f80fd5b806313c8e2de1461022d57806316614282146102625780631fa2acdc14610283578063219f71f0146102a2575b5f80fd5b348015610238575f80fd5b5061024c6102473660046143cd565b6106f9565b6040516102599190614427565b60405180910390f35b34801561026d575f80fd5b5061028161027c366004614525565b61082e565b005b34801561028e575f80fd5b5061028161029d366004614588565b610fa1565b3480156102ad575f80fd5b506102816102bc3660046145ee565b611716565b610281611758565b3480156102d4575f80fd5b506102e86102e33660046143cd565b6117a5565b6040516102599190614676565b348015610300575f80fd5b50600354610314906001600160a01b031681565b6040516001600160a01b039091168152602001610259565b348015610337575f80fd5b506102816103463660046146d4565b61185a565b348015610356575f80fd5b506102816103653660046145ee565b6118b5565b6102816103783660046146ef565b6118f7565b348015610388575f80fd5b50600454610314906001600160a01b031681565b3480156103a7575f80fd5b506103b06119ac565b604051908152602001610259565b6102816119da565b3480156103d1575f80fd5b50604080518082018252600581527f312e312e3000000000000000000000000000000000000000000000000000000060208201529051610259919061476e565b34801561041c575f80fd5b505f546103b0565b34801561042f575f80fd5b5061028161043e366004614780565b611a13565b610281611bac565b6102816104593660046147a0565b611bbf565b348015610469575f80fd5b50600154610314906001600160a01b031681565b348015610488575f80fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754610314565b6102816104be366004614817565b612026565b3480156104ce575f80fd5b50600254610314906001600160a01b031681565b3480156104ed575f80fd5b5060045461051a9074010000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610259565b34801561053e575f80fd5b5061028161054d36600461487c565b61203b565b34801561055d575f80fd5b5061028161056c3660046146d4565b612186565b34801561057c575f80fd5b5061031461058b3660046148c4565b61220e565b34801561059b575f80fd5b5061051a61271081565b3480156105b0575f80fd5b5060055461051a9067ffffffffffffffff1681565b3480156105d0575f80fd5b506105e46105df36600461490e565b61243a565b604080519283526001600160a01b03909116602083015201610259565b34801561060c575f80fd5b5061024c61061b36600461495b565b6128ec565b34801561062b575f80fd5b5061028161063a3660046145ee565b61311d565b61028161064d3660046145ee565b61315f565b6102816106603660046145ee565b61319c565b348015610670575f80fd5b506103b061067f3660046145ee565b63389a75e1600c9081525f91909152602090205490565b3480156106a1575f80fd5b506106e86106b03660046143cd565b60066020525f9081526040902080546001820154600283015460039093015460ff8316936101009093046001600160a01b0316929085565b60405161025995949392919061499a565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e08101919091525f828154811061074a5761074a6149d3565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b039081168452600182015481168486015260028201548116848401526003820154166060840152600481018054835181870281018701909452808452939491936080860193928301828280156107ed57602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116107cf575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b031660609091015292915050565b3068929eee149b4bd21268540361084c5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f80858154811061086b5761086b6149d3565b905f5260205f20906008020190505f81600401858154811061088f5761088f6149d3565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a2906108e49088908890600401614a29565b5f60405180830381865afa1580156108fe573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526109259190810190614b83565b905080515f03610961576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f818060200190518101906109769190614bc0565b90505f80808060018551600281111561099157610991614610565b14806109ae57505f855160028111156109ac576109ac614610565b145b15610a12575f85606001518060200190518101906109cc9190614c68565b805160058b0154909650909150612710906109f19067ffffffffffffffff1687614cd7565b6109fb9190614cee565b9350610a078486614d26565b908190529150610ac8565b600285516002811115610a2757610a27614610565b03610a96575f8560600151806020019051810190610a459190614d39565b602081015160058b015490965090915061271090610a6d9067ffffffffffffffff1687614cd7565b610a779190614cee565b9350610a838486614d26565b6020820181905290519092509050610ac8565b6040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f610ad38d8d6131c2565b5f8181526006602052604081206001810180549394509092879290610af9908490614d26565b909155505085159150610f87905057600185516002811115610b1d57610b1d614610565b1480610b3a57505f85516002811115610b3857610b38614610565b145b15610d595760208501516040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490526001600160a01b038216906323b872dd906064016020604051808303815f875af1158015610bad573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bd19190614dc6565b506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820187905282169063095ea7b3906044016020604051808303815f875af1158015610c37573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c5b9190614dc6565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b038916906330db555f906024015f604051808303815f87803b158015610cb4575f80fd5b505af1158015610cc6573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015610d2e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d529190614dc6565b5050610f47565b60208501516040517ff242432a000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526064810184905260a060848201525f60a48201526001600160a01b0382169063f242432a9060c4015f604051808303815f87803b158015610dd6575f80fd5b505af1158015610de8573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b81166004830152600160248301528416925063a22cb46591506044015f604051808303815f87803b158015610e4c575f80fd5b505af1158015610e5e573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018890526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b158015610eba575f80fd5b505af1158015610ecc573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b158015610f2f575f80fd5b505af1158015610f41573d5f803e3d5ffd5b50505050505b604080518581526020810185905233918d918f917f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f31876910160405180910390a45b50505050505050503868929eee149b4bd212685550505050565b3068929eee149b4bd212685403610fbf5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808681548110610fde57610fde6149d3565b905f5260205f20906008020190505f816004018681548110611002576110026149d3565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a2906110579089908990600401614a29565b5f60405180830381865afa158015611071573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526110989190810190614b83565b905080515f036110d4576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f818060200190518101906110e99190614bc0565b90505f6001600160a01b038616156111015785611110565b60038501546001600160a01b03165b905061111b816131f1565b5f808060018551600281111561113357611133614610565b148061115057505f8551600281111561114e5761114e614610565b145b156111d7575f856060015180602001905181019061116e9190614c68565b805160058b0154909550909150612710906111939067ffffffffffffffff1686614cd7565b61119d9190614cee565b92506111a98385614d26565b8082526040805160208101839052919350015b60408051601f19818403018152919052606087015250611262565b6002855160028111156111ec576111ec614610565b03610a96575f856060015180602001905181019061120a9190614d39565b602081015160058b0154909550909150612710906112329067ffffffffffffffff1686614cd7565b61123c9190614cee565b92506112488385614d26565b60208083018290526040519193506111bc91839101614de1565b30604080870191909152515f9061127d908790602001614e0f565b60408051601f19818403018152908290527ffa4ca9b100000000000000000000000000000000000000000000000000000000825291506001600160a01b0386169063fa4ca9b1906112d290849060040161476e565b6020604051808303815f875af11580156112ee573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113129190614dc6565b611348576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6113538f8f6131c2565b5f8181526006602052604081206001810180549394509092879290611379908490614d26565b9091555050851592506116fb9150505760018551600281111561139e5761139e614610565b14806113bb57505f855160028111156113b9576113b9614610565b145b1561154c5760208501516040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820186905282169063095ea7b3906044016020604051808303815f875af115801561142a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061144e9190614dc6565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b038916906330db555f906024015f604051808303815f87803b1580156114a7575f80fd5b505af11580156114b9573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015611521573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115459190614dc6565b50506116ac565b60208501516040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526001602483015282169063a22cb465906044015f604051808303815f87803b1580156115b1575f80fd5b505af11580156115c3573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b15801561161f575f80fd5b505af1158015611631573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b158015611694575f80fd5b505af11580156116a6573d5f803e3d5ffd5b50505050505b336001600160a01b03168c8e7f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f3187686866040516116f2929190918252602082015260400190565b60405180910390a45b50505050505050503868929eee149b4bd21268555050505050565b61171e6132d0565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b6117dc6040805160a08101909152805f81526020015f6001600160a01b031681526020015f81526020015f81526020015f81525090565b5f8281526006602052604090819020815160a081019092528054829060ff16600281111561180c5761180c614610565b600281111561181d5761181d614610565b8152815461010090046001600160a01b03166020820152600182015460408201526002820154606082015260039091015460809091015292915050565b6118626132d0565b6004805467ffffffffffffffff90921674010000000000000000000000000000000000000000027fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6118bd6132d0565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6118ff613305565b61190883613334565b8260601b60601c92503d5f526352d1902d6001527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80602060016004601d885afa511461195d576355299b496001526004601dfd5b837fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f38a283905580156119a757604051818382375f388383875af46119a5573d5f823e3d81fd5b505b505050565b5f6119b561333c565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b3068929eee149b4bd212685403611a315763ab143c065f526004601cfd5b3068929eee149b4bd21268555f611a4883836131c2565b5f818152600660205260408120815492935091819086908110611a6d57611a6d6149d3565b905f5260205f2090600802016004018481548110611a8d57611a8d6149d3565b5f918252602082200154600284015460018501546001600160a01b03909216935090611abc9061271090614cd7565b611ac69190614cee565b90505f611ad3848461336b565b905081811115611b97575f611ae88383614e60565b90505f61271067ffffffffffffffff16866002015483611b089190614cd7565b611b129190614cee565b9050611b1e86826134b9565b80866001015410611b475780866001015f828254611b3c9190614e60565b90915550611b4e9050565b5f60018701555b6003546040518281526001600160a01b039091169089908b907f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b179060200160405180910390a450505b50505050503868929eee149b4bd21268555050565b611bb46132d0565b611bbd5f6135f5565b565b3068929eee149b4bd212685403611bdd5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808781548110611bfc57611bfc6149d3565b905f5260205f20906008020190505f611c1588886131c2565b5f81815260066020526040812060048501805493945090928a908110611c3d57611c3d6149d3565b5f9182526020909120015460028501546040517fe3f756de0000000000000000000000000000000000000000000000000000000081526001600160a01b03928316935091169063e3f756de90611c9b9088908b908b90600401614e73565b602060405180830381865afa158015611cb6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cda9190614dc6565b611d10576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018401546040517f703b69000000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063703b6900903490611d65908e908e908b908e908e90600401614e9e565b60206040518083038185885af1158015611d81573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611da69190614dc6565b611ddc576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81545f9061010090046001600160a01b0316611df8575f611e02565b611e02838361336b565b6040517fbb1757cf0000000000000000000000000000000000000000000000000000000081529091506001600160a01b0383169063bb1757cf90611e4e9089908c908c90600401614e73565b6020604051808303815f875af1158015611e6a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e8e9190614dc6565b611ed3578588886040517f4139d81d000000000000000000000000000000000000000000000000000000008152600401611eca93929190614e73565b60405180910390fd5b82545f9061010090046001600160a01b0316611eef575f611ef9565b611ef9848461336b565b90505f818311611f09575f611f13565b611f138284614e60565b90505f61271067ffffffffffffffff16866002015483611f339190614cd7565b611f3d9190614cee565b90508015611fc357611f4f86826134b9565b80866001015f828254611f629190614e60565b9250508190555060035f9054906101000a90046001600160a01b03166001600160a01b03168d8f7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b1784604051611fba91815260200190565b60405180910390a45b886001600160a01b03168d8f7f0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b2595478f8f8f60405161200293929190614e73565b60405180910390a450505050505050503868929eee149b4bd2126855505050505050565b612034858585858533611bbf565b5050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132805460038255801561208c5760018160011c14303b106120835763f92ee8a95f526004601cfd5b818160ff1b1b91505b506120968261364d565b600180546001600160a01b038087167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179092556003805492861692909116919091179055600480547503e800000000000000000000000000000000000000007fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff909116179055600580547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000166103e817905580156119a5576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a150505050565b61218e6132d0565b61271067ffffffffffffffff8216106121d3576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b5f3068929eee149b4bd21268540361222d5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f80848154811061224c5761224c6149d3565b5f918252602090912060089091020160078101549091506001600160a01b031633146122a4576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038101546122bb906001600160a01b03166131f1565b6004808201805491549091905f906001600160a01b03166122dc575f61236e565b6004546040516001600160a01b039091169063c7f1ecff90612304908a908a90602001614ed7565b6040516020818303038152906040526040518263ffffffff1660e01b815260040161232f919061476e565b602060405180830381865afa15801561234a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061236e9190614f8e565b90506123a461237c87614ff6565b600386015460058701546001600160a01b039091169067ffffffffffffffff16848b876136a3565b83546001810185555f858152602080822090920180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03851690811790915560405191825292975084918a917f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae910160405180910390a4505050503868929eee149b4bd212685592915050565b5f803068929eee149b4bd21268540361245a5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808581548110612479576124796149d3565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b0390811684526001820154811684860152600282015481168484015260038201541660608401526004810180548351818702810187019094528084529394919360808601939283018282801561251c57602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116124fe575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b0390811660609283015290820151919250163314612599576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6125a486866131c2565b5f8181526006602052604081209192506125c0898b018b61505f565b90505f81602001518060200190518101906125db91906150fc565b90505f61271067ffffffffffffffff168460020154836125fb9190614cd7565b6126059190614cee565b90508015612773576001845460ff16600281111561262557612625614610565b148061264557505f845460ff16600281111561264357612643614610565b145b1561266d5782518454612668916101009091046001600160a01b03169083613a43565b61272a565b6002845460ff16600281111561268557612685614610565b0361272a578354835160038601546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b158015612713575f80fd5b505af1158015612725573d5f803e3d5ffd5b505050505b825f01516001600160a01b0316898b7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b178460405161276a91815260200190565b60405180910390a45b5f8087608001518b8151811061278b5761278b6149d3565b60200260200101516001600160a01b031663474f5a44866040516020016127b29190615113565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016127dd919061476e565b60408051808303815f875af11580156127f8573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061281c9190615140565b91509150815f0361285f57338e8e6040517f9ecd71a9000000000000000000000000000000000000000000000000000000008152600401611eca93929190614e73565b82866001015f8282546128729190614e60565b90915550508451604080518d8152602081018590526001600160a01b038481169282019290925291169033908e907f344fdf618273ad01bc14c75053d2c1dd67bb9384ba92c2d44a3c58c55306a2ec9060600160405180910390a43868929eee149b4bd2126855909d909c509a5050505050505050505050565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e081019190915260025433906001600160a01b0316158015906129c957506002546040517ffe9fbb800000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301529091169063fe9fbb8090602401602060405180830381865afa1580156129a3573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129c79190614dc6565b155b15612a00576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3068929eee149b4bd212685403612a1e5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f612a6985858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250613a9692505050565b806020019051810190612a7c9190615268565b9050612a8a815f01516131f1565b5f805460018101825590805260e082015160089091027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56a810180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b039485161790915583517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e566830180549092169084161790556004547f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5639091019116612b8e5760a0820151600454612b89919074010000000000000000000000000000000000000000900467ffffffffffffffff16615393565b612c26565b60a0820151600480546040517fb1539a6b0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163b1539a6b91612bdd918b918b9101614a29565b602060405180830381865afa158015612bf8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c1c91906153b3565b612c269190615393565b6005820180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff9290921691909117905560c082015160068201556020820151612c9d907fe671579500000000000000000000000000000000000000000000000000000000906001613c21565b81547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03919091161781556060820151612d02907fe2089f7900000000000000000000000000000000000000000000000000000000906001613c21565b6002820180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039283161790556004545f9116612d48575f612dd1565b600480546040517fc7f1ecff0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163c7f1ecff91612d92918b918b9101614a29565b602060405180830381865afa158015612dad573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612dd19190614f8e565b608084015184516005850154929350612df49267ffffffffffffffff1684613c42565b8051612e0a91600485019160209091019061433e565b506040830151602001516001600160a01b031615612e5757612e527f5912b89c0000000000000000000000000000000000000000000000000000000084604001516001613c21565b612f0f565b81546040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa158015612ed5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612ef99190614dc6565b612f03575f612f0f565b81546001600160a01b03165b6001830180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03929092169182179055612fa6576040517fe1c444480000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201525f6024820152604401611eca565b815460078301545f546001600160a01b039283169290911690612fcb90600190614e60565b6004850154600186015460028701546003880154604080519485526001600160a01b03938416602086015291831684830152919091166060830152517f116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd9181900360800190a4604080516101008101825283546001600160a01b039081168252600185015481166020808401919091526002860154821683850152600386015490911660608301526004850180548451818402810184019095528085529293869360808601939192918301828280156130cb57602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116130ad575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b03166060909101523868929eee149b4bd2126855979650505050505050565b6131256132d0565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6131676132d0565b63389a75e1600c52805f526020600c20805442111561318d57636f5e88185f526004601cfd5b5f9055613199816135f5565b50565b6131a46132d0565b8060601b6131b957637448fbae5f526004601cfd5b613199816135f5565b604080516020808201859052818301849052825180830384018152606090920190925280519101205b92915050565b61321b7fe49cedd70000000000000000000000000000000000000000000000000000000082613d74565b6040517ffe9fbb800000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0382169063fe9fbb8090602401602060405180830381865afa158015613276573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061329a9190614dc6565b613199576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314611bbd576382b429005f526004601cfd5b307f000000000000000000000000000000000000000000000000000000000000000003611bbd57611bbd613e92565b6131996132d0565b307f000000000000000000000000000000000000000000000000000000000000000014611bbd57611bbd613e92565b5f6001835460ff16600281111561338457613384614610565b14806133a457505f835460ff1660028111156133a2576133a2614610565b145b1561343b5782546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152610100909204909116906370a08231906024015b602060405180830381865afa158015613410573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061343491906150fc565b90506131eb565b6002835460ff16600281111561345357613453614610565b036134b157825460038401546040517efdd58e0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526024820192909252610100909204169062fdd58e906044016133f5565b505f92915050565b6001825460ff1660028111156134d1576134d1614610565b14806134f157505f825460ff1660028111156134ef576134ef614610565b145b15613534576003548254613517916001600160a01b036101009092048216911683613a43565b81546135309061010090046001600160a01b0316613e9f565b5050565b6002825460ff16600281111561354c5761354c614610565b0361353057815460038054908401546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b1580156135db575f80fd5b505af11580156135ed573d5f803e3d5ffd5b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b6001600160a01b03167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b5f80876040015190506136da7fa9216705000000000000000000000000000000000000000000000000000000008960200151613d74565b87516137495760208801516040517fe1c444480000000000000000000000000000000000000000000000000000000081527fa92167050000000000000000000000000000000000000000000000000000000060048201526001600160a01b039091166024820152604401611eca565b6137747fa921670500000000000000000000000000000000000000000000000000000000895f613c21565b91505f826001600160a01b0316634e7165a2836040518263ffffffff1660e01b81526004016137a3919061476e565b5f60405180830381865afa1580156137bd573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526137e49190810190614b83565b905080515f146139c5575f806137fa838a613f5b565b6040517ffa4ca9b100000000000000000000000000000000000000000000000000000000815291935091506001600160a01b038b169063fa4ca9b19061384490859060040161476e565b6020604051808303815f875af1158015613860573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906138849190614dc6565b6138ba576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517ffa4ca9b10000000000000000000000000000000000000000000000000000000081526001600160a01b038b169063fa4ca9b1906138ff90869060040161476e565b6020604051808303815f875af115801561391b573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061393f9190614dc6565b613975576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8380602001905181019061398a9190614bc0565b90506139c188886001600160a01b038c166139a95783602001516139ab565b8b5b858e67ffffffffffffffff16865f01518b6140f4565b5050505b6040517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063439fab9190613a0a90859060040161476e565b5f604051808303815f87803b158015613a21575f80fd5b505af1158015613a33573d5f803e3d5ffd5b5050505050509695505050505050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f511416613a8c57803d853b151710613a8c576390b8ec185f526004601cfd5b505f603452505050565b6060815115613c1c576040519050600482018051835184602001017f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f6020850183198552866020015b8051805f1a613b7457600190811a0160808111613b17576002820191508036843791820191848210613b115750613c02565b50613adf565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83529182017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80019160029190910190848210613b115750613c02565b80835283811684011783171980157fc0c8c8d0c8e8d0d8c8e8e0e8d0d8e0f0c8d0e8d0e0e0d8f0d0d0e0d8f8f8f8f8601f6f8421084210842108cc6318c6db6d54be660204081020408185821060071b86811c67ffffffffffffffff1060061b1795861c0260181a1c161a90911860031c019182019101838110613adf5783811115613c0257838103820391505b509290935250601f198382030183525f8152602001604052505b919050565b5f613c30848460200151613d74565b613c3a8383614230565b949350505050565b5f805460609190613c5590600190614e60565b9050855167ffffffffffffffff811115613c7157613c71614a3c565b604051908082528060200260200182016040528015613c9a578160200160208202803683370190505b5091505f5b8651811015613d6a57613ccf878281518110613cbd57613cbd6149d3565b602002602001015187878786866136a3565b838281518110613ce157613ce16149d3565b60200260200101906001600160a01b031690816001600160a01b031681525050828181518110613d1357613d136149d3565b60200260200101516001600160a01b031681837f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae6001604051613d5a911515815260200190565b60405180910390a4600101613c9f565b5050949350505050565b6001600160a01b0381161580613e2857506040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa158015613e02573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613e269190614dc6565b155b15613530576040517fe1c444480000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b0382166024820152604401611eca565b639f03a0265f526004601cfd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f906001600160a01b038316906370a0823190602401602060405180830381865afa158015613efc573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613f2091906150fc565b90505f81118015613f3c575060055467ffffffffffffffff1681105b1561353057600354613530906001600160a01b03848116911683613a43565b60605f8084806020019051810190613f739190614bc0565b905083600182516002811115613f8b57613f8b614610565b1480613fa857505f82516002811115613fa657613fa6614610565b145b15614056575f8260600151806020019051810190613fc69190614c68565b80519091505f9061271090613fe69067ffffffffffffffff861690614cd7565b613ff09190614cee565b6040805160208082018352838252825190810184905292935091015b60408051601f198184030181529181526060870191909152308682015251614038908690602001614e0f565b604051602081830303815290604052829650965050505050506140ed565b60028251600281111561406b5761406b614610565b03610a96575f82606001518060200190518101906140899190614d39565b90505f61271067ffffffffffffffff168367ffffffffffffffff1683602001516140b39190614cd7565b6140bd9190614cee565b60408051606081018252845181526020808201849052858301518284015291519293509161400c91839101614de1565b9250929050565b5f600283600281111561410957614109614610565b03614126578180602001905181019061412291906153ce565b5090505b5f6040518060a0016040528085600281111561414457614144614610565b8152602001886001600160a01b031681526020018781526020018681526020018381525090508060065f6141788c8c6131c2565b815260208101919091526040015f208151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018360028111156141c3576141c3614610565b0217905550602082015181546001600160a01b03909116610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff9091161781556040820151600182015560608201516002820155608090910151600390910155505050505050505050565b81515f90614242578260200151614258565b61425883602001516001600160a01b03166142e7565b835190915080156142665750815b156131eb5760408084015190517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0383169163439fab91916142b4919060040161476e565b5f604051808303815f87803b1580156142cb575f80fd5b505af11580156142dd573d5f803e3d5ffd5b5050505092915050565b5f6131eb5f835f6c5af43d3d93803e602a57fd5bf36021528160145273602c3d8160093d39f33d3d3d3d363d3d37363d735f526035600c84f09050806143345763301164255f526004601cfd5b5f60215292915050565b828054828255905f5260205f209081019282156143a9579160200282015b828111156143a957825182547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0390911617825560209092019160019091019061435c565b506143b59291506143b9565b5090565b5b808211156143b5575f81556001016143ba565b5f602082840312156143dd575f80fd5b5035919050565b5f8151808452602084019350602083015f5b8281101561441d5781516001600160a01b03168652602095860195909101906001016143f6565b5093949350505050565b602081526001600160a01b0382511660208201525f602083015161445660408401826001600160a01b03169052565b5060408301516001600160a01b03811660608401525060608301516001600160a01b038116608084015250608083015161010060a084015261449c6101208401826143e4565b905060a08401516144b960c085018267ffffffffffffffff169052565b5060c084015160e084015260e08401516144df6101008501826001600160a01b03169052565b509392505050565b5f8083601f8401126144f7575f80fd5b50813567ffffffffffffffff81111561450e575f80fd5b6020830191508360208285010111156140ed575f80fd5b5f805f8060608587031215614538575f80fd5b8435935060208501359250604085013567ffffffffffffffff81111561455c575f80fd5b614568878288016144e7565b95989497509550505050565b6001600160a01b0381168114613199575f80fd5b5f805f805f6080868803121561459c575f80fd5b8535945060208601359350604086013567ffffffffffffffff8111156145c0575f80fd5b6145cc888289016144e7565b90945092505060608601356145e081614574565b809150509295509295909350565b5f602082840312156145fe575f80fd5b813561460981614574565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60038110614672577f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b9052565b5f60a08201905061468882845161463d565b6001600160a01b03602084015116602083015260408301516040830152606083015160608301526080830151608083015292915050565b67ffffffffffffffff81168114613199575f80fd5b5f602082840312156146e4575f80fd5b8135614609816146bf565b5f805f60408486031215614701575f80fd5b833561470c81614574565b9250602084013567ffffffffffffffff811115614727575f80fd5b614733868287016144e7565b9497909650939450505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6146096020830184614740565b5f8060408385031215614791575f80fd5b50508035926020909101359150565b5f805f805f8060a087890312156147b5575f80fd5b863595506020870135945060408701356147ce81614574565b9350606087013567ffffffffffffffff8111156147e9575f80fd5b6147f589828a016144e7565b909450925050608087013561480981614574565b809150509295509295509295565b5f805f805f6080868803121561482b575f80fd5b8535945060208601359350604086013561484481614574565b9250606086013567ffffffffffffffff81111561485f575f80fd5b61486b888289016144e7565b969995985093965092949392505050565b5f805f6060848603121561488e575f80fd5b833561489981614574565b925060208401356148a981614574565b915060408401356148b981614574565b809150509250925092565b5f80604083850312156148d5575f80fd5b82359150602083013567ffffffffffffffff8111156148f2575f80fd5b830160608186031215614903575f80fd5b809150509250929050565b5f805f8060608587031215614921575f80fd5b843567ffffffffffffffff811115614937575f80fd5b614943878288016144e7565b90989097506020870135966040013595509350505050565b5f806020838503121561496c575f80fd5b823567ffffffffffffffff811115614982575f80fd5b61498e858286016144e7565b90969095509350505050565b60a081016149a8828861463d565b6001600160a01b03861660208301528460408301528360608301528260808301529695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81835281816020850137505f602082840101525f6020601f19601f840116840101905092915050565b602081525f613c3a602083018486614a00565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715614a8c57614a8c614a3c565b60405290565b6040516060810167ffffffffffffffff81118282101715614a8c57614a8c614a3c565b604051610100810167ffffffffffffffff81118282101715614a8c57614a8c614a3c565b604051601f8201601f1916810167ffffffffffffffff81118282101715614b0257614b02614a3c565b604052919050565b5f67ffffffffffffffff821115614b2357614b23614a3c565b50601f01601f191660200190565b5f82601f830112614b40575f80fd5b8151614b53614b4e82614b0a565b614ad9565b818152846020838601011115614b67575f80fd5b8160208501602083015e5f918101602001919091529392505050565b5f60208284031215614b93575f80fd5b815167ffffffffffffffff811115614ba9575f80fd5b613c3a84828501614b31565b8051613c1c81614574565b5f60208284031215614bd0575f80fd5b815167ffffffffffffffff811115614be6575f80fd5b820160808185031215614bf7575f80fd5b614bff614a69565b815160038110614c0d575f80fd5b81526020820151614c1d81614574565b60208201526040820151614c3081614574565b6040820152606082015167ffffffffffffffff811115614c4e575f80fd5b614c5a86828501614b31565b606083015250949350505050565b5f6020828403128015614c79575f80fd5b506040516020810167ffffffffffffffff81118282101715614c9d57614c9d614a3c565b6040529151825250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b80820281158282048414176131eb576131eb614caa565b5f82614d21577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b808201808211156131eb576131eb614caa565b5f60208284031215614d49575f80fd5b815167ffffffffffffffff811115614d5f575f80fd5b820160608185031215614d70575f80fd5b614d78614a92565b8151815260208083015190820152604082015167ffffffffffffffff811115614d9f575f80fd5b614dab86828501614b31565b604083015250949350505050565b8015158114613199575f80fd5b5f60208284031215614dd6575f80fd5b815161460981614db9565b6020815281516020820152602082015160408201525f6040830151606080840152613c3a6080840182614740565b60208152614e2160208201835161463d565b6001600160a01b0360208301511660408201526001600160a01b0360408301511660608201525f6060830151608080840152613c3a60a0840182614740565b818103818111156131eb576131eb614caa565b6001600160a01b0384168152604060208201525f614e95604083018486614a00565b95945050505050565b8581528460208201526001600160a01b0384166040820152608060608201525f614ecc608083018486614a00565b979650505050505050565b828152604060208201525f8235614eed81614db9565b151560408301526020830135614f0281614574565b6001600160a01b031660608301526040830135368490037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112614f45575f80fd5b830160208101903567ffffffffffffffff811115614f61575f80fd5b803603821315614f6f575f80fd5b60606080850152614f8460a085018284614a00565b9695505050505050565b5f60208284031215614f9e575f80fd5b815161460981614574565b5f82601f830112614fb8575f80fd5b8135614fc6614b4e82614b0a565b818152846020838601011115614fda575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60608236031215615006575f80fd5b61500e614a92565b823561501981614db9565b8152602083013561502981614574565b6020820152604083013567ffffffffffffffff811115615047575f80fd5b61505336828601614fa9565b60408301525092915050565b5f6020828403121561506f575f80fd5b813567ffffffffffffffff811115615085575f80fd5b820160408185031215615096575f80fd5b6040805190810167ffffffffffffffff811182821017156150b9576150b9614a3c565b60405281356150c781614574565b8152602082013567ffffffffffffffff8111156150e2575f80fd5b6150ee86828501614fa9565b602083015250949350505050565b5f6020828403121561510c575f80fd5b5051919050565b602081526001600160a01b0382511660208201525f6020830151604080840152613c3a6060840182614740565b5f8060408385031215615151575f80fd5b8251602084015190925061490381614574565b5f60608284031215615174575f80fd5b61517c614a92565b9050815161518981614db9565b8152602082015161519981614574565b6020820152604082015167ffffffffffffffff8111156151b7575f80fd5b61505384828501614b31565b5f82601f8301126151d2575f80fd5b815167ffffffffffffffff8111156151ec576151ec614a3c565b8060051b6151fc60208201614ad9565b91825260208185018101929081019086841115615217575f80fd5b6020860192505b83831015614f8457825167ffffffffffffffff81111561523c575f80fd5b61524b886020838a0101615164565b8352506020928301929091019061521e565b8051613c1c816146bf565b5f60208284031215615278575f80fd5b815167ffffffffffffffff81111561528e575f80fd5b820161010081850312156152a0575f80fd5b6152a8614ab5565b6152b182614bb5565b8152602082015167ffffffffffffffff8111156152cc575f80fd5b6152d886828501615164565b602083015250604082015167ffffffffffffffff8111156152f7575f80fd5b61530386828501615164565b604083015250606082015167ffffffffffffffff811115615322575f80fd5b61532e86828501615164565b606083015250608082015167ffffffffffffffff81111561534d575f80fd5b615359868285016151c3565b60808301525061536b60a0830161525d565b60a082015260c0828101519082015261538660e08301614bb5565b60e0820152949350505050565b67ffffffffffffffff81811683821601908111156131eb576131eb614caa565b5f602082840312156153c3575f80fd5b8151614609816146bf565b5f80604083850312156153df575f80fd5b8251602084015190925067ffffffffffffffff8111156153fd575f80fd5b61540985828601614b31565b915050925092905056fea2646970667358221220449bdc210b62ec7ba330e75d29b52774de2d9db8e414cd288c78517e229fb98a64736f6c634300081a0033";
|
|
32
|
-
|
|
12
|
+
import { T as z, b as k0, M as U0, a as X0 } from "./Budget-BH0s7Bxu.js";
|
|
13
|
+
import { prepareTransfer as R, ManagedBudget as H0 } from "./Budgets/ManagedBudget.js";
|
|
14
|
+
import { Deployable as Y0 } from "./Deployable/Deployable.js";
|
|
15
|
+
import { Roles as D } from "./Deployable/DeployableTargetWithRBAC.js";
|
|
16
|
+
import { AllowListIncentive as Z0 } from "./Incentives/AllowListIncentive.js";
|
|
17
|
+
import { CGDAIncentive as J0 } from "./Incentives/CGDAIncentive.js";
|
|
18
|
+
import { ERC20Incentive as K0 } from "./Incentives/ERC20Incentive.js";
|
|
19
|
+
import { i as Q0, E as f1 } from "./Incentive-BCSV7OtF.js";
|
|
20
|
+
import { ERC20PeggedVariableCriteriaIncentiveV2 as e1 } from "./Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js";
|
|
21
|
+
import { ERC20VariableCriteriaIncentiveV2 as a1 } from "./Incentives/ERC20VariableCriteriaIncentiveV2.js";
|
|
22
|
+
import { PointsIncentive as t1 } from "./Incentives/PointsIncentive.js";
|
|
23
|
+
import { LimitedSignerValidator as b1 } from "./Validators/LimitedSignerValidator.js";
|
|
24
|
+
import { LimitedSignerValidatorV2 as c1 } from "./Validators/LimitedSignerValidatorV2.js";
|
|
25
|
+
import { PayableLimitedSignerValidator as d1 } from "./Validators/PayableLimitedSignerValidator.js";
|
|
26
|
+
import { PayableLimitedSignerValidatorV2 as n1 } from "./Validators/PayableLimitedSignerValidatorV2.js";
|
|
27
|
+
import { SignerValidator as s1 } from "./Validators/SignerValidator.js";
|
|
28
|
+
import { SignerValidatorV2 as i1 } from "./Validators/SignerValidatorV2.js";
|
|
29
|
+
import { validatorFromAddress as o1, BoostValidatorEOA as j } from "./Validators/Validator.js";
|
|
30
|
+
import { BoostCoreNoIdentifierEmitted as S, DeployableUnknownOwnerProvidedError as r1, InvalidProtocolChainIdError as u1, BudgetMustAuthorizeBoostCore as h1, MustInitializeBudgetError as l1, IncentiveNotCloneableError as g1, BoostNotFoundError as w1 } from "./errors.js";
|
|
31
|
+
import { assertValidAddressByChainId as u, getDeployedContractAddress as W } from "./utils.js";
|
|
32
|
+
import { simulateContract as y1, writeContract as m1 } from "viem/actions";
|
|
33
|
+
import { parseAccount as A1, getAddress as C1 } from "viem/utils";
|
|
34
|
+
import { ERC20VariableIncentive as v1 } from "./Incentives/ERC20VariableIncentive.js";
|
|
35
|
+
const q = "0x60a0604052306080523480156012575f80fd5b506019601d565b6080565b63409feecd1980546001811615603a5763f92ee8a95f526004601cfd5b6001600160401b03808260011c14607b578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b608051615c4361009f5f395f8181613567015261359e0152615c435ff3fe60806040526004361061025d575f3560e01c80637b1039991161014b578063d5137b52116100c6578063eccc19a61161007c578063f2fde38b11610062578063f2fde38b146106c5578063fee81cf4146106d8578063fefceca914610709575f80fd5b8063eccc19a614610693578063f04e283e146106b2575f80fd5b8063dd7dc9a9116100ac578063dd7dc9a914610618578063dd98558c14610638578063e21ff73114610674575f80fd5b8063d5137b52146105e4578063d73792a914610603575f80fd5b80638fe4f5231161011b578063b0e21e8a11610101578063b0e21e8a1461056e578063c0c53b8b146105a6578063caa1647b146105c5575f80fd5b80638fe4f5231461053c578063a92647dc1461054f575f80fd5b80637b1039991461049257806384ae2bc6146104b1578063892b97f8146104ea5780638da5cb5b14610509575f80fd5b80634f1ef286116101db57806354fd4d50116101ab5780635f32c23e116101915780635f32c23e14610458578063715018a614610477578063730f9c571461047f575f80fd5b806354fd4d50146103fa5780635edb9eb014610445575f80fd5b80634f1ef2861461039e5780635045b866146103b157806352d1902d146103d057806354d1f13d146103f2575f80fd5b8063256929621161023057806339a51be51161021657806339a51be51461032957806343bc42d31461036057806346877b1a1461037f575f80fd5b806325692962146102f5578063346339d5146102fd575f80fd5b806313c8e2de1461026157806316614282146102965780631fa2acdc146102b7578063219f71f0146102d6575b5f80fd5b34801561026c575f80fd5b5061028061027b366004614ada565b61076c565b60405161028d9190614b34565b60405180910390f35b3480156102a1575f80fd5b506102b56102b0366004614c32565b6108a1565b005b3480156102c2575f80fd5b506102b56102d1366004614c95565b611014565b3480156102e1575f80fd5b506102b56102f0366004614cfb565b611789565b6102b56117cb565b348015610308575f80fd5b5061031c610317366004614ada565b611818565b60405161028d9190614d83565b348015610334575f80fd5b50600354610348906001600160a01b031681565b6040516001600160a01b03909116815260200161028d565b34801561036b575f80fd5b506102b561037a366004614de1565b6118cd565b34801561038a575f80fd5b506102b5610399366004614cfb565b611a68565b6102b56103ac366004614dfc565b611aaa565b3480156103bc575f80fd5b50600454610348906001600160a01b031681565b3480156103db575f80fd5b506103e4611b5f565b60405190815260200161028d565b6102b5611b8d565b348015610405575f80fd5b50604080518082018252600581527f312e322e300000000000000000000000000000000000000000000000000000006020820152905161028d9190614e7b565b348015610450575f80fd5b505f546103e4565b348015610463575f80fd5b506102b5610472366004614e8d565b611bc6565b6102b5611d5f565b6102b561048d366004614ead565b611d72565b34801561049d575f80fd5b50600154610348906001600160a01b031681565b3480156104bc575f80fd5b506007546104d19067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161028d565b3480156104f5575f80fd5b506102b5610504366004614de1565b61218a565b348015610514575f80fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754610348565b6102b561054a366004614f24565b612285565b34801561055a575f80fd5b50600254610348906001600160a01b031681565b348015610579575f80fd5b506004546104d19074010000000000000000000000000000000000000000900467ffffffffffffffff1681565b3480156105b1575f80fd5b506102b56105c0366004614f89565b61229a565b3480156105d0575f80fd5b506102b56105df366004614de1565b6123e5565b3480156105ef575f80fd5b506103486105fe366004614fd1565b61246d565b34801561060e575f80fd5b506104d161271081565b348015610623575f80fd5b506005546104d19067ffffffffffffffff1681565b348015610643575f80fd5b5061065761065236600461501b565b612699565b604080519283526001600160a01b0390911660208301520161028d565b34801561067f575f80fd5b5061028061068e366004615068565b612b4b565b34801561069e575f80fd5b506102b56106ad366004614cfb565b61337c565b6102b56106c0366004614cfb565b6133be565b6102b56106d3366004614cfb565b6133fb565b3480156106e3575f80fd5b506103e46106f2366004614cfb565b63389a75e1600c9081525f91909152602090205490565b348015610714575f80fd5b5061075b610723366004614ada565b60066020525f9081526040902080546001820154600283015460039093015460ff8316936101009093046001600160a01b0316929085565b60405161028d9594939291906150a7565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e08101919091525f82815481106107bd576107bd6150e0565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b0390811684526001820154811684860152600282015481168484015260038201541660608401526004810180548351818702810187019094528084529394919360808601939283018282801561086057602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311610842575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b031660609091015292915050565b3068929eee149b4bd2126854036108bf5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f8085815481106108de576108de6150e0565b905f5260205f20906008020190505f816004018581548110610902576109026150e0565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a2906109579088908890600401615136565b5f60405180830381865afa158015610971573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526109989190810190615290565b905080515f036109d4576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f818060200190518101906109e991906152cd565b90505f808080600185516002811115610a0457610a04614d1d565b1480610a2157505f85516002811115610a1f57610a1f614d1d565b145b15610a85575f8560600151806020019051810190610a3f9190615375565b805160058b015490965090915061271090610a649067ffffffffffffffff16876153e4565b610a6e91906153fb565b9350610a7a8486615433565b908190529150610b3b565b600285516002811115610a9a57610a9a614d1d565b03610b09575f8560600151806020019051810190610ab89190615446565b602081015160058b015490965090915061271090610ae09067ffffffffffffffff16876153e4565b610aea91906153fb565b9350610af68486615433565b6020820181905290519092509050610b3b565b6040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f610b468d8d613421565b5f8181526006602052604081206001810180549394509092879290610b6c908490615433565b909155505085159150610ffa905057600185516002811115610b9057610b90614d1d565b1480610bad57505f85516002811115610bab57610bab614d1d565b145b15610dcc5760208501516040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490526001600160a01b038216906323b872dd906064016020604051808303815f875af1158015610c20573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c4491906154d3565b506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820187905282169063095ea7b3906044016020604051808303815f875af1158015610caa573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610cce91906154d3565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b038916906330db555f906024015f604051808303815f87803b158015610d27575f80fd5b505af1158015610d39573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015610da1573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610dc591906154d3565b5050610fba565b60208501516040517ff242432a000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526064810184905260a060848201525f60a48201526001600160a01b0382169063f242432a9060c4015f604051808303815f87803b158015610e49575f80fd5b505af1158015610e5b573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b81166004830152600160248301528416925063a22cb46591506044015f604051808303815f87803b158015610ebf575f80fd5b505af1158015610ed1573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018890526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b158015610f2d575f80fd5b505af1158015610f3f573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b158015610fa2575f80fd5b505af1158015610fb4573d5f803e3d5ffd5b50505050505b604080518581526020810185905233918d918f917f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f31876910160405180910390a45b50505050505050503868929eee149b4bd212685550505050565b3068929eee149b4bd2126854036110325763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808681548110611051576110516150e0565b905f5260205f20906008020190505f816004018681548110611075576110756150e0565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a2906110ca9089908990600401615136565b5f60405180830381865afa1580156110e4573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261110b9190810190615290565b905080515f03611147576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8180602001905181019061115c91906152cd565b90505f6001600160a01b038616156111745785611183565b60038501546001600160a01b03165b905061118e81613450565b5f80806001855160028111156111a6576111a6614d1d565b14806111c357505f855160028111156111c1576111c1614d1d565b145b1561124a575f85606001518060200190518101906111e19190615375565b805160058b0154909550909150612710906112069067ffffffffffffffff16866153e4565b61121091906153fb565b925061121c8385615433565b8082526040805160208101839052919350015b60408051601f198184030181529190526060870152506112d5565b60028551600281111561125f5761125f614d1d565b03610b09575f856060015180602001905181019061127d9190615446565b602081015160058b0154909550909150612710906112a59067ffffffffffffffff16866153e4565b6112af91906153fb565b92506112bb8385615433565b602080830182905260405191935061122f918391016154ee565b30604080870191909152515f906112f090879060200161551c565b60408051601f19818403018152908290527ffa4ca9b100000000000000000000000000000000000000000000000000000000825291506001600160a01b0386169063fa4ca9b190611345908490600401614e7b565b6020604051808303815f875af1158015611361573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061138591906154d3565b6113bb576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6113c68f8f613421565b5f81815260066020526040812060018101805493945090928792906113ec908490615433565b90915550508515925061176e9150505760018551600281111561141157611411614d1d565b148061142e57505f8551600281111561142c5761142c614d1d565b145b156115bf5760208501516040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820186905282169063095ea7b3906044016020604051808303815f875af115801561149d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906114c191906154d3565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b038916906330db555f906024015f604051808303815f87803b15801561151a575f80fd5b505af115801561152c573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015611594573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115b891906154d3565b505061171f565b60208501516040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526001602483015282169063a22cb465906044015f604051808303815f87803b158015611624575f80fd5b505af1158015611636573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b158015611692575f80fd5b505af11580156116a4573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b158015611707575f80fd5b505af1158015611719573d5f803e3d5ffd5b50505050505b336001600160a01b03168c8e7f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f318768686604051611765929190918252602082015260400190565b60405180910390a45b50505050505050503868929eee149b4bd21268555050505050565b61179161352f565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b61184f6040805160a08101909152805f81526020015f6001600160a01b031681526020015f81526020015f81526020015f81525090565b5f8281526006602052604090819020815160a081019092528054829060ff16600281111561187f5761187f614d1d565b600281111561189057611890614d1d565b8152815461010090046001600160a01b03166020820152600182015460408201526002820154606082015260039091015460809091015292915050565b6118d561352f565b61271067ffffffffffffffff82161115611976576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f70726f746f636f6c206665652063616e6e6f742062652073657420686967686560448201527f72207468616e20746865206665652064656e6f6d696e61746f7200000000000060648201526084015b60405180910390fd5b60075467ffffffffffffffff90811690821611611a15576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f70726f746f636f6c20666565206d75737420626520736574206869676865722060448201527f7468616e2074686520726566657272616c206665650000000000000000000000606482015260840161196d565b6004805467ffffffffffffffff90921674010000000000000000000000000000000000000000027fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b611a7061352f565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b611ab2613564565b611abb83613593565b8260601b60601c92503d5f526352d1902d6001527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80602060016004601d885afa5114611b10576355299b496001526004601dfd5b837fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f38a28390558015611b5a57604051818382375f388383875af4611b58573d5f823e3d81fd5b505b505050565b5f611b6861359b565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b3068929eee149b4bd212685403611be45763ab143c065f526004601cfd5b3068929eee149b4bd21268555f611bfb8383613421565b5f818152600660205260408120815492935091819086908110611c2057611c206150e0565b905f5260205f2090600802016004018481548110611c4057611c406150e0565b5f918252602082200154600284015460018501546001600160a01b03909216935090611c6f90612710906153e4565b611c7991906153fb565b90505f611c8684846135ca565b905081811115611d4a575f611c9b838361556d565b90505f61271067ffffffffffffffff16866002015483611cbb91906153e4565b611cc591906153fb565b9050611cd18682613718565b80866001015410611cfa5780866001015f828254611cef919061556d565b90915550611d019050565b5f60018701555b6003546040518281526001600160a01b039091169089908b907f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b179060200160405180910390a450505b50505050503868929eee149b4bd21268555050565b611d6761352f565b611d705f613854565b565b3068929eee149b4bd212685403611d905763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808781548110611daf57611daf6150e0565b905f5260205f20906008020190505f611dc88888613421565b5f81815260066020526040812060048501805493945090928a908110611df057611df06150e0565b5f9182526020909120015460028501546040517fe3f756de0000000000000000000000000000000000000000000000000000000081526001600160a01b03928316935091169063e3f756de90611e4e9088908b908b90600401615580565b602060405180830381865afa158015611e69573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e8d91906154d3565b611ec3576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018401546040517f703b69000000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063703b6900903490611f18908e908e908b908e908e906004016155ab565b60206040518083038185885af1158015611f34573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611f5991906154d3565b611f8f576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018401545f90611fab906001600160a01b03168a8a8a6138ac565b90505f80611fbd85858a868e8e613a66565b9092509050811561203657611fd3858385613c4b565b8454604080518f8152602081018f90526001600160a01b0361010090930483169181019190915260608101849052898216918516907f88ba7496cc2929c2c27c9224d2c621febfe0dbfe9c504d043812d66b3461c3f49060800160405180910390a35b801561208d576120468582613718565b6003546040518281526001600160a01b03909116908d908f907f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b179060200160405180910390a45b5f6120988383615433565b9050801561212757808660010154101561210e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f696e73756666696369656e742072657365727665642066656573000000000000604482015260640161196d565b80866001015f828254612121919061556d565b90915550505b886001600160a01b03168d8f7f0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b259547878f8f60405161216693929190615580565b60405180910390a450505050505050503868929eee149b4bd2126855505050505050565b61219261352f565b60045467ffffffffffffffff740100000000000000000000000000000000000000009091048116908216111561224a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603760248201527f726566657272616c206665652063616e6e6f742062652073657420686967686560448201527f72207468616e207468652070726f746f636f6c20666565000000000000000000606482015260840161196d565b600780547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b612293858585858533611d72565b5050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156122eb5760018160011c14303b106122e25763f92ee8a95f526004601cfd5b818160ff1b1b91505b506122f582613d62565b600180546001600160a01b038087167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179092556003805492861692909116919091179055600480547503e800000000000000000000000000000000000000007fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff909116179055600580547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000166103e81790558015611b58576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a150505050565b6123ed61352f565b61271067ffffffffffffffff821610612432576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b5f3068929eee149b4bd21268540361248c5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f8084815481106124ab576124ab6150e0565b5f918252602090912060089091020160078101549091506001600160a01b03163314612503576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600381015461251a906001600160a01b0316613450565b6004808201805491549091905f906001600160a01b031661253b575f6125cd565b6004546040516001600160a01b039091169063c7f1ecff90612563908a908a906020016155e4565b6040516020818303038152906040526040518263ffffffff1660e01b815260040161258e9190614e7b565b602060405180830381865afa1580156125a9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125cd919061569b565b90506126036125db87615703565b600386015460058701546001600160a01b039091169067ffffffffffffffff16848b87613db8565b83546001810185555f858152602080822090920180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03851690811790915560405191825292975084918a917f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae910160405180910390a4505050503868929eee149b4bd212685592915050565b5f803068929eee149b4bd2126854036126b95763ab143c065f526004601cfd5b3068929eee149b4bd21268555f8085815481106126d8576126d86150e0565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b0390811684526001820154811684860152600282015481168484015260038201541660608401526004810180548351818702810187019094528084529394919360808601939283018282801561277b57602002820191905f5260205f20905b81546001600160a01b0316815260019091019060200180831161275d575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b03908116606092830152908201519192501633146127f8576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6128038686613421565b5f81815260066020526040812091925061281f898b018b61576c565b90505f816020015180602001905181019061283a9190615809565b90505f61271067ffffffffffffffff1684600201548361285a91906153e4565b61286491906153fb565b905080156129d2576001845460ff16600281111561288457612884614d1d565b14806128a457505f845460ff1660028111156128a2576128a2614d1d565b145b156128cc57825184546128c7916101009091046001600160a01b03169083614158565b612989565b6002845460ff1660028111156128e4576128e4614d1d565b03612989578354835160038601546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b158015612972575f80fd5b505af1158015612984573d5f803e3d5ffd5b505050505b825f01516001600160a01b0316898b7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b17846040516129c991815260200190565b60405180910390a45b5f8087608001518b815181106129ea576129ea6150e0565b60200260200101516001600160a01b031663474f5a4486604051602001612a119190615820565b6040516020818303038152906040526040518263ffffffff1660e01b8152600401612a3c9190614e7b565b60408051808303815f875af1158015612a57573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a7b919061584d565b91509150815f03612abe57338e8e6040517f9ecd71a900000000000000000000000000000000000000000000000000000000815260040161196d93929190615580565b82866001015f828254612ad1919061556d565b90915550508451604080518d8152602081018590526001600160a01b038481169282019290925291169033908e907f344fdf618273ad01bc14c75053d2c1dd67bb9384ba92c2d44a3c58c55306a2ec9060600160405180910390a43868929eee149b4bd2126855909d909c509a5050505050505050505050565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e081019190915260025433906001600160a01b031615801590612c2857506002546040517ffe9fbb800000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301529091169063fe9fbb8090602401602060405180830381865afa158015612c02573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612c2691906154d3565b155b15612c5f576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3068929eee149b4bd212685403612c7d5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f612cc885858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920191909152506141ab92505050565b806020019051810190612cdb9190615975565b9050612ce9815f0151613450565b5f805460018101825590805260e082015160089091027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56a810180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b039485161790915583517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e566830180549092169084161790556004547f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5639091019116612ded5760a0820151600454612de8919074010000000000000000000000000000000000000000900467ffffffffffffffff16615aa0565b612e85565b60a0820151600480546040517fb1539a6b0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163b1539a6b91612e3c918b918b9101615136565b602060405180830381865afa158015612e57573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612e7b9190615ac0565b612e859190615aa0565b6005820180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff9290921691909117905560c082015160068201556020820151612efc907fe671579500000000000000000000000000000000000000000000000000000000906001614336565b81547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03919091161781556060820151612f61907fe2089f7900000000000000000000000000000000000000000000000000000000906001614336565b6002820180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039283161790556004545f9116612fa7575f613030565b600480546040517fc7f1ecff0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163c7f1ecff91612ff1918b918b9101615136565b602060405180830381865afa15801561300c573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613030919061569b565b6080840151845160058501549293506130539267ffffffffffffffff168461434f565b8051613069916004850191602090910190614a4b565b506040830151602001516001600160a01b0316156130b6576130b17f5912b89c0000000000000000000000000000000000000000000000000000000084604001516001614336565b61316e565b81546040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa158015613134573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061315891906154d3565b613162575f61316e565b81546001600160a01b03165b6001830180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03929092169182179055613205576040517fe1c444480000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201525f602482015260440161196d565b815460078301545f546001600160a01b03928316929091169061322a9060019061556d565b6004850154600186015460028701546003880154604080519485526001600160a01b03938416602086015291831684830152919091166060830152517f116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd9181900360800190a4604080516101008101825283546001600160a01b0390811682526001850154811660208084019190915260028601548216838501526003860154909116606083015260048501805484518184028101840190955280855292938693608086019391929183018282801561332a57602002820191905f5260205f20905b81546001600160a01b0316815260019091019060200180831161330c575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b03166060909101523868929eee149b4bd2126855979650505050505050565b61338461352f565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6133c661352f565b63389a75e1600c52805f526020600c2080544211156133ec57636f5e88185f526004601cfd5b5f90556133f881613854565b50565b61340361352f565b8060601b61341857637448fbae5f526004601cfd5b6133f881613854565b604080516020808201859052818301849052825180830384018152606090920190925280519101205b92915050565b61347a7fe49cedd70000000000000000000000000000000000000000000000000000000082614481565b6040517ffe9fbb800000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0382169063fe9fbb8090602401602060405180830381865afa1580156134d5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906134f991906154d3565b6133f8576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314611d70576382b429005f526004601cfd5b307f000000000000000000000000000000000000000000000000000000000000000003611d7057611d7061459f565b6133f861352f565b307f000000000000000000000000000000000000000000000000000000000000000014611d7057611d7061459f565b5f6001835460ff1660028111156135e3576135e3614d1d565b148061360357505f835460ff16600281111561360157613601614d1d565b145b1561369a5782546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152610100909204909116906370a08231906024015b602060405180830381865afa15801561366f573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906136939190615809565b905061344a565b6002835460ff1660028111156136b2576136b2614d1d565b0361371057825460038401546040517efdd58e0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526024820192909252610100909204169062fdd58e90604401613654565b505f92915050565b6001825460ff16600281111561373057613730614d1d565b148061375057505f825460ff16600281111561374e5761374e614d1d565b145b15613793576003548254613776916001600160a01b036101009092048216911683614158565b815461378f9061010090046001600160a01b03166145ac565b5050565b6002825460ff1660028111156137ab576137ab614d1d565b0361378f57815460038054908401546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b15801561383a575f80fd5b505af115801561384c573d5f803e3d5ffd5b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f846001600160a01b03166328d6183b6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015613907575060408051601f3d908101601f1916820190925261390491810190615adb565b60015b15613a5b577fffffffff0000000000000000000000000000000000000000000000000000000081167f81818aa300000000000000000000000000000000000000000000000000000000148061399d57507fffffffff0000000000000000000000000000000000000000000000000000000081167ff1a436d900000000000000000000000000000000000000000000000000000000145b806139e957507fffffffff0000000000000000000000000000000000000000000000000000000081167f89b50fd900000000000000000000000000000000000000000000000000000000145b15613a59575f6139fb84860186615b1a565b905080604001516001600160a01b0316866001600160a01b031614613a4c576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604001519150613a5e9050565b505b505f5b949350505050565b85545f908190819061010090046001600160a01b0316613a86575f613a90565b613a9089896135ca565b6040517fbb1757cf0000000000000000000000000000000000000000000000000000000081529091506001600160a01b0389169063bb1757cf90613adc908a9089908990600401615580565b6020604051808303815f875af1158015613af8573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613b1c91906154d3565b613b58578685856040517f4139d81d00000000000000000000000000000000000000000000000000000000815260040161196d93929190615580565b88545f9061010090046001600160a01b0316613b74575f613b7e565b613b7e8a8a6135ca565b90505f818311613b8e575f613b98565b613b98828461556d565b90505f61271067ffffffffffffffff168c6002015483613bb891906153e4565b613bc291906153fb565b90505f8a6001600160a01b03168a6001600160a01b03161480613bec57506001600160a01b038a16155b613c1a5760075461271090613c0b9067ffffffffffffffff16856153e4565b613c1591906153fb565b613c1c565b5f5b9050818111613c2b5780613c2d565b815b9650613c39878361556d565b95505050505050965096945050505050565b6001835460ff166002811115613c6357613c63614d1d565b1480613c8357505f835460ff166002811115613c8157613c81614d1d565b145b15613ca3578254611b5a9061010090046001600160a01b03168284614158565b6002835460ff166002811115613cbb57613cbb614d1d565b03611b5a57825460038401546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03848116602483015260448201929092526064810185905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b158015613d47575f80fd5b505af1158015613d59573d5f803e3d5ffd5b50505050505050565b6001600160a01b03167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b5f8087604001519050613def7fa9216705000000000000000000000000000000000000000000000000000000008960200151614481565b8751613e5e5760208801516040517fe1c444480000000000000000000000000000000000000000000000000000000081527fa92167050000000000000000000000000000000000000000000000000000000060048201526001600160a01b03909116602482015260440161196d565b613e897fa921670500000000000000000000000000000000000000000000000000000000895f614336565b91505f826001600160a01b0316634e7165a2836040518263ffffffff1660e01b8152600401613eb89190614e7b565b5f60405180830381865afa158015613ed2573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052613ef99190810190615290565b905080515f146140da575f80613f0f838a614668565b6040517ffa4ca9b100000000000000000000000000000000000000000000000000000000815291935091506001600160a01b038b169063fa4ca9b190613f59908590600401614e7b565b6020604051808303815f875af1158015613f75573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613f9991906154d3565b613fcf576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517ffa4ca9b10000000000000000000000000000000000000000000000000000000081526001600160a01b038b169063fa4ca9b190614014908690600401614e7b565b6020604051808303815f875af1158015614030573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061405491906154d3565b61408a576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8380602001905181019061409f91906152cd565b90506140d688886001600160a01b038c166140be5783602001516140c0565b8b5b858e67ffffffffffffffff16865f01518b614801565b5050505b6040517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063439fab919061411f908590600401614e7b565b5f604051808303815f87803b158015614136575f80fd5b505af1158015614148573d5f803e3d5ffd5b5050505050509695505050505050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f5114166141a157803d853b1517106141a1576390b8ec185f526004601cfd5b505f603452505050565b6060815115614331576040519050600482018051835184602001017f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f6020850183198552866020015b8051805f1a61428957600190811a016080811161422c5760028201915080368437918201918482106142265750614317565b506141f4565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83529182017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff800191600291909101908482106142265750614317565b80835283811684011783171980157fc0c8c8d0c8e8d0d8c8e8e0e8d0d8e0f0c8d0e8d0e0e0d8f0d0d0e0d8f8f8f8f8601f6f8421084210842108cc6318c6db6d54be660204081020408185821060071b86811c67ffffffffffffffff1060061b1795861c0260181a1c161a90911860031c0191820191018381106141f4578381111561431757838103820391505b509290935250601f198382030183525f8152602001604052505b919050565b5f614345848460200151614481565b613a5e838361493d565b5f8054606091906143629060019061556d565b9050855167ffffffffffffffff81111561437e5761437e615149565b6040519080825280602002602001820160405280156143a7578160200160208202803683370190505b5091505f5b8651811015614477576143dc8782815181106143ca576143ca6150e0565b60200260200101518787878686613db8565b8382815181106143ee576143ee6150e0565b60200260200101906001600160a01b031690816001600160a01b031681525050828181518110614420576144206150e0565b60200260200101516001600160a01b031681837f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae6001604051614467911515815260200190565b60405180910390a46001016143ac565b5050949350505050565b6001600160a01b038116158061453557506040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa15801561450f573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061453391906154d3565b155b1561378f576040517fe1c444480000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b038216602482015260440161196d565b639f03a0265f526004601cfd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f906001600160a01b038316906370a0823190602401602060405180830381865afa158015614609573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061462d9190615809565b90505f81118015614649575060055467ffffffffffffffff1681105b1561378f5760035461378f906001600160a01b03848116911683614158565b60605f808480602001905181019061468091906152cd565b90508360018251600281111561469857614698614d1d565b14806146b557505f825160028111156146b3576146b3614d1d565b145b15614763575f82606001518060200190518101906146d39190615375565b80519091505f90612710906146f39067ffffffffffffffff8616906153e4565b6146fd91906153fb565b6040805160208082018352838252825190810184905292935091015b60408051601f19818403018152918152606087019190915230868201525161474590869060200161551c565b604051602081830303815290604052829650965050505050506147fa565b60028251600281111561477857614778614d1d565b03610b09575f82606001518060200190518101906147969190615446565b90505f61271067ffffffffffffffff168367ffffffffffffffff1683602001516147c091906153e4565b6147ca91906153fb565b604080516060810182528451815260208082018490528583015182840152915192935091614719918391016154ee565b9250929050565b5f600283600281111561481657614816614d1d565b03614833578180602001905181019061482f9190615bc8565b5090505b5f6040518060a0016040528085600281111561485157614851614d1d565b8152602001886001600160a01b031681526020018781526020018681526020018381525090508060065f6148858c8c613421565b815260208101919091526040015f208151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018360028111156148d0576148d0614d1d565b0217905550602082015181546001600160a01b03909116610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff9091161781556040820151600182015560608201516002820155608090910151600390910155505050505050505050565b81515f9061494f578260200151614965565b61496583602001516001600160a01b03166149f4565b835190915080156149735750815b1561344a5760408084015190517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0383169163439fab91916149c19190600401614e7b565b5f604051808303815f87803b1580156149d8575f80fd5b505af11580156149ea573d5f803e3d5ffd5b5050505092915050565b5f61344a5f835f6c5af43d3d93803e602a57fd5bf36021528160145273602c3d8160093d39f33d3d3d3d363d3d37363d735f526035600c84f0905080614a415763301164255f526004601cfd5b5f60215292915050565b828054828255905f5260205f20908101928215614ab6579160200282015b82811115614ab657825182547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178255602090920191600190910190614a69565b50614ac2929150614ac6565b5090565b5b80821115614ac2575f8155600101614ac7565b5f60208284031215614aea575f80fd5b5035919050565b5f8151808452602084019350602083015f5b82811015614b2a5781516001600160a01b0316865260209586019590910190600101614b03565b5093949350505050565b602081526001600160a01b0382511660208201525f6020830151614b6360408401826001600160a01b03169052565b5060408301516001600160a01b03811660608401525060608301516001600160a01b038116608084015250608083015161010060a0840152614ba9610120840182614af1565b905060a0840151614bc660c085018267ffffffffffffffff169052565b5060c084015160e084015260e0840151614bec6101008501826001600160a01b03169052565b509392505050565b5f8083601f840112614c04575f80fd5b50813567ffffffffffffffff811115614c1b575f80fd5b6020830191508360208285010111156147fa575f80fd5b5f805f8060608587031215614c45575f80fd5b8435935060208501359250604085013567ffffffffffffffff811115614c69575f80fd5b614c7587828801614bf4565b95989497509550505050565b6001600160a01b03811681146133f8575f80fd5b5f805f805f60808688031215614ca9575f80fd5b8535945060208601359350604086013567ffffffffffffffff811115614ccd575f80fd5b614cd988828901614bf4565b9094509250506060860135614ced81614c81565b809150509295509295909350565b5f60208284031215614d0b575f80fd5b8135614d1681614c81565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60038110614d7f577f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b9052565b5f60a082019050614d95828451614d4a565b6001600160a01b03602084015116602083015260408301516040830152606083015160608301526080830151608083015292915050565b67ffffffffffffffff811681146133f8575f80fd5b5f60208284031215614df1575f80fd5b8135614d1681614dcc565b5f805f60408486031215614e0e575f80fd5b8335614e1981614c81565b9250602084013567ffffffffffffffff811115614e34575f80fd5b614e4086828701614bf4565b9497909650939450505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f614d166020830184614e4d565b5f8060408385031215614e9e575f80fd5b50508035926020909101359150565b5f805f805f8060a08789031215614ec2575f80fd5b86359550602087013594506040870135614edb81614c81565b9350606087013567ffffffffffffffff811115614ef6575f80fd5b614f0289828a01614bf4565b9094509250506080870135614f1681614c81565b809150509295509295509295565b5f805f805f60808688031215614f38575f80fd5b85359450602086013593506040860135614f5181614c81565b9250606086013567ffffffffffffffff811115614f6c575f80fd5b614f7888828901614bf4565b969995985093965092949392505050565b5f805f60608486031215614f9b575f80fd5b8335614fa681614c81565b92506020840135614fb681614c81565b91506040840135614fc681614c81565b809150509250925092565b5f8060408385031215614fe2575f80fd5b82359150602083013567ffffffffffffffff811115614fff575f80fd5b830160608186031215615010575f80fd5b809150509250929050565b5f805f806060858703121561502e575f80fd5b843567ffffffffffffffff811115615044575f80fd5b61505087828801614bf4565b90989097506020870135966040013595509350505050565b5f8060208385031215615079575f80fd5b823567ffffffffffffffff81111561508f575f80fd5b61509b85828601614bf4565b90969095509350505050565b60a081016150b58288614d4a565b6001600160a01b03861660208301528460408301528360608301528260808301529695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81835281816020850137505f602082840101525f6020601f19601f840116840101905092915050565b602081525f613a5e60208301848661510d565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff8111828210171561519957615199615149565b60405290565b6040516060810167ffffffffffffffff8111828210171561519957615199615149565b604051610100810167ffffffffffffffff8111828210171561519957615199615149565b604051601f8201601f1916810167ffffffffffffffff8111828210171561520f5761520f615149565b604052919050565b5f67ffffffffffffffff82111561523057615230615149565b50601f01601f191660200190565b5f82601f83011261524d575f80fd5b815161526061525b82615217565b6151e6565b818152846020838601011115615274575f80fd5b8160208501602083015e5f918101602001919091529392505050565b5f602082840312156152a0575f80fd5b815167ffffffffffffffff8111156152b6575f80fd5b613a5e8482850161523e565b805161433181614c81565b5f602082840312156152dd575f80fd5b815167ffffffffffffffff8111156152f3575f80fd5b820160808185031215615304575f80fd5b61530c615176565b81516003811061531a575f80fd5b8152602082015161532a81614c81565b6020820152604082015161533d81614c81565b6040820152606082015167ffffffffffffffff81111561535b575f80fd5b6153678682850161523e565b606083015250949350505050565b5f6020828403128015615386575f80fd5b506040516020810167ffffffffffffffff811182821017156153aa576153aa615149565b6040529151825250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b808202811582820484141761344a5761344a6153b7565b5f8261542e577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082018082111561344a5761344a6153b7565b5f60208284031215615456575f80fd5b815167ffffffffffffffff81111561546c575f80fd5b82016060818503121561547d575f80fd5b61548561519f565b8151815260208083015190820152604082015167ffffffffffffffff8111156154ac575f80fd5b6154b88682850161523e565b604083015250949350505050565b80151581146133f8575f80fd5b5f602082840312156154e3575f80fd5b8151614d16816154c6565b6020815281516020820152602082015160408201525f6040830151606080840152613a5e6080840182614e4d565b6020815261552e602082018351614d4a565b6001600160a01b0360208301511660408201526001600160a01b0360408301511660608201525f6060830151608080840152613a5e60a0840182614e4d565b8181038181111561344a5761344a6153b7565b6001600160a01b0384168152604060208201525f6155a260408301848661510d565b95945050505050565b8581528460208201526001600160a01b0384166040820152608060608201525f6155d960808301848661510d565b979650505050505050565b828152604060208201525f82356155fa816154c6565b15156040830152602083013561560f81614c81565b6001600160a01b031660608301526040830135368490037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112615652575f80fd5b830160208101903567ffffffffffffffff81111561566e575f80fd5b80360382131561567c575f80fd5b6060608085015261569160a08501828461510d565b9695505050505050565b5f602082840312156156ab575f80fd5b8151614d1681614c81565b5f82601f8301126156c5575f80fd5b81356156d361525b82615217565b8181528460208386010111156156e7575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60608236031215615713575f80fd5b61571b61519f565b8235615726816154c6565b8152602083013561573681614c81565b6020820152604083013567ffffffffffffffff811115615754575f80fd5b615760368286016156b6565b60408301525092915050565b5f6020828403121561577c575f80fd5b813567ffffffffffffffff811115615792575f80fd5b8201604081850312156157a3575f80fd5b6040805190810167ffffffffffffffff811182821017156157c6576157c6615149565b60405281356157d481614c81565b8152602082013567ffffffffffffffff8111156157ef575f80fd5b6157fb868285016156b6565b602083015250949350505050565b5f60208284031215615819575f80fd5b5051919050565b602081526001600160a01b0382511660208201525f6020830151604080840152613a5e6060840182614e4d565b5f806040838503121561585e575f80fd5b8251602084015190925061501081614c81565b5f60608284031215615881575f80fd5b61588961519f565b90508151615896816154c6565b815260208201516158a681614c81565b6020820152604082015167ffffffffffffffff8111156158c4575f80fd5b6157608482850161523e565b5f82601f8301126158df575f80fd5b815167ffffffffffffffff8111156158f9576158f9615149565b8060051b615909602082016151e6565b91825260208185018101929081019086841115615924575f80fd5b6020860192505b8383101561569157825167ffffffffffffffff811115615949575f80fd5b615958886020838a0101615871565b8352506020928301929091019061592b565b805161433181614dcc565b5f60208284031215615985575f80fd5b815167ffffffffffffffff81111561599b575f80fd5b820161010081850312156159ad575f80fd5b6159b56151c2565b6159be826152c2565b8152602082015167ffffffffffffffff8111156159d9575f80fd5b6159e586828501615871565b602083015250604082015167ffffffffffffffff811115615a04575f80fd5b615a1086828501615871565b604083015250606082015167ffffffffffffffff811115615a2f575f80fd5b615a3b86828501615871565b606083015250608082015167ffffffffffffffff811115615a5a575f80fd5b615a66868285016158d0565b608083015250615a7860a0830161596a565b60a082015260c08281015190820152615a9360e083016152c2565b60e0820152949350505050565b67ffffffffffffffff818116838216019081111561344a5761344a6153b7565b5f60208284031215615ad0575f80fd5b8151614d1681614dcc565b5f60208284031215615aeb575f80fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114614d16575f80fd5b5f60208284031215615b2a575f80fd5b813567ffffffffffffffff811115615b40575f80fd5b820160608185031215615b51575f80fd5b615b5961519f565b813567ffffffffffffffff811115615b6f575f80fd5b615b7b868285016156b6565b825250602082013567ffffffffffffffff811115615b97575f80fd5b615ba3868285016156b6565b60208301525060408201359150615bb982614c81565b60408101919091529392505050565b5f8060408385031215615bd9575f80fd5b8251602084015190925067ffffffffffffffff811115615bf7575f80fd5b615c038582860161523e565b915050925092905056fea2646970667358221220489fbe95c5bc1681a5561558bce192412633c09eed2d269b0521f3e1cc37bbfc64736f6c634300081a0033";
|
|
36
|
+
function U(n) {
|
|
33
37
|
const f = n.state.current, e = n.state.connections.get(f), a = e == null ? void 0 : e.accounts, t = a == null ? void 0 : a[0], b = n.chains.find((d) => d.id === (e == null ? void 0 : e.chainId)), c = n.state.status;
|
|
34
38
|
switch (c) {
|
|
35
39
|
case "connected":
|
|
@@ -86,32 +90,32 @@ function H(n) {
|
|
|
86
90
|
};
|
|
87
91
|
}
|
|
88
92
|
}
|
|
89
|
-
function
|
|
93
|
+
function I1(n) {
|
|
90
94
|
return n.state.chainId;
|
|
91
95
|
}
|
|
92
|
-
function
|
|
96
|
+
function X(n, f, e) {
|
|
93
97
|
const a = n[f.name];
|
|
94
98
|
if (typeof a == "function")
|
|
95
99
|
return a;
|
|
96
100
|
const t = n[e];
|
|
97
101
|
return typeof t == "function" ? t : (b) => f(n, b);
|
|
98
102
|
}
|
|
99
|
-
const
|
|
100
|
-
var
|
|
103
|
+
const B1 = "2.13.8", P1 = () => `@wagmi/core@${B1}`;
|
|
104
|
+
var H = function(n, f, e, a) {
|
|
101
105
|
if (e === "a" && !a) throw new TypeError("Private accessor was defined without a getter");
|
|
102
106
|
if (typeof f == "function" ? n !== f || !a : !f.has(n)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
103
107
|
return e === "m" ? a : e === "a" ? a.call(n) : a ? a.value : f.get(n);
|
|
104
|
-
},
|
|
108
|
+
}, N, Y;
|
|
105
109
|
class I extends Error {
|
|
106
110
|
get docsBaseUrl() {
|
|
107
111
|
return "https://wagmi.sh/core";
|
|
108
112
|
}
|
|
109
113
|
get version() {
|
|
110
|
-
return
|
|
114
|
+
return P1();
|
|
111
115
|
}
|
|
112
116
|
constructor(f, e = {}) {
|
|
113
117
|
var b;
|
|
114
|
-
super(),
|
|
118
|
+
super(), N.add(this), Object.defineProperty(this, "details", {
|
|
115
119
|
enumerable: !0,
|
|
116
120
|
configurable: !0,
|
|
117
121
|
writable: !0,
|
|
@@ -151,13 +155,13 @@ class I extends Error {
|
|
|
151
155
|
`), e.cause && (this.cause = e.cause), this.details = a, this.docsPath = t, this.metaMessages = e.metaMessages, this.shortMessage = f;
|
|
152
156
|
}
|
|
153
157
|
walk(f) {
|
|
154
|
-
return
|
|
158
|
+
return H(this, N, "m", Y).call(this, this, f);
|
|
155
159
|
}
|
|
156
160
|
}
|
|
157
|
-
|
|
158
|
-
return e != null && e(f) ? f : f.cause ?
|
|
161
|
+
N = /* @__PURE__ */ new WeakSet(), Y = function n(f, e) {
|
|
162
|
+
return e != null && e(f) ? f : f.cause ? H(this, N, "m", n).call(this, f.cause, e) : f;
|
|
159
163
|
};
|
|
160
|
-
class
|
|
164
|
+
class p1 extends I {
|
|
161
165
|
constructor() {
|
|
162
166
|
super("Connector not connected."), Object.defineProperty(this, "name", {
|
|
163
167
|
enumerable: !0,
|
|
@@ -167,7 +171,7 @@ class v1 extends I {
|
|
|
167
171
|
});
|
|
168
172
|
}
|
|
169
173
|
}
|
|
170
|
-
class
|
|
174
|
+
class _1 extends I {
|
|
171
175
|
constructor({ address: f, connector: e }) {
|
|
172
176
|
super(`Account "${f}" not found for connector "${e.name}".`), Object.defineProperty(this, "name", {
|
|
173
177
|
enumerable: !0,
|
|
@@ -177,7 +181,7 @@ class C1 extends I {
|
|
|
177
181
|
});
|
|
178
182
|
}
|
|
179
183
|
}
|
|
180
|
-
class
|
|
184
|
+
class E1 extends I {
|
|
181
185
|
constructor({ connectionChainId: f, connectorChainId: e }) {
|
|
182
186
|
super(`The current chain of the connector (id: ${e}) does not match the connection's chain (id: ${f}).`, {
|
|
183
187
|
metaMessages: [
|
|
@@ -192,7 +196,7 @@ class A1 extends I {
|
|
|
192
196
|
});
|
|
193
197
|
}
|
|
194
198
|
}
|
|
195
|
-
class
|
|
199
|
+
class F1 extends I {
|
|
196
200
|
constructor({ connector: f }) {
|
|
197
201
|
super(`Connector "${f.name}" unavailable while reconnecting.`, {
|
|
198
202
|
details: [
|
|
@@ -208,88 +212,88 @@ class I1 extends I {
|
|
|
208
212
|
});
|
|
209
213
|
}
|
|
210
214
|
}
|
|
211
|
-
async function
|
|
215
|
+
async function Z(n, f = {}) {
|
|
212
216
|
let e;
|
|
213
217
|
if (f.connector) {
|
|
214
218
|
const { connector: i } = f;
|
|
215
219
|
if (n.state.status === "reconnecting" && !i.getAccounts && !i.getChainId)
|
|
216
|
-
throw new
|
|
217
|
-
const [
|
|
220
|
+
throw new F1({ connector: i });
|
|
221
|
+
const [l, g] = await Promise.all([
|
|
218
222
|
i.getAccounts(),
|
|
219
223
|
i.getChainId()
|
|
220
224
|
]);
|
|
221
225
|
e = {
|
|
222
|
-
accounts:
|
|
226
|
+
accounts: l,
|
|
223
227
|
chainId: g,
|
|
224
228
|
connector: i
|
|
225
229
|
};
|
|
226
230
|
} else
|
|
227
231
|
e = n.state.connections.get(n.state.current);
|
|
228
232
|
if (!e)
|
|
229
|
-
throw new
|
|
233
|
+
throw new p1();
|
|
230
234
|
const a = f.chainId ?? e.chainId, t = await e.connector.getChainId();
|
|
231
235
|
if (t !== e.chainId)
|
|
232
|
-
throw new
|
|
236
|
+
throw new E1({
|
|
233
237
|
connectionChainId: e.chainId,
|
|
234
238
|
connectorChainId: t
|
|
235
239
|
});
|
|
236
240
|
const b = e.connector;
|
|
237
241
|
if (b.getClient)
|
|
238
242
|
return b.getClient({ chainId: a });
|
|
239
|
-
const c =
|
|
240
|
-
if (c.address =
|
|
241
|
-
throw new
|
|
243
|
+
const c = A1(f.account ?? e.accounts[0]);
|
|
244
|
+
if (c.address = C1(c.address), f.account && !e.accounts.some((i) => i.toLowerCase() === c.address.toLowerCase()))
|
|
245
|
+
throw new _1({
|
|
242
246
|
address: c.address,
|
|
243
247
|
connector: b
|
|
244
248
|
});
|
|
245
249
|
const d = n.chains.find((i) => i.id === a), s = await e.connector.getProvider({ chainId: a });
|
|
246
|
-
return
|
|
250
|
+
return N0({
|
|
247
251
|
account: c,
|
|
248
252
|
chain: d,
|
|
249
253
|
name: "Connector Client",
|
|
250
|
-
transport: (i) =>
|
|
254
|
+
transport: (i) => V0(s)({ ...i, retryCount: 0 })
|
|
251
255
|
});
|
|
252
256
|
}
|
|
253
|
-
async function
|
|
257
|
+
async function R1(n, f) {
|
|
254
258
|
const { abi: e, chainId: a, connector: t, ...b } = f;
|
|
255
259
|
let c;
|
|
256
|
-
f.account ? c = f.account : c = (await
|
|
260
|
+
f.account ? c = f.account : c = (await Z(n, {
|
|
257
261
|
chainId: a,
|
|
258
262
|
connector: t
|
|
259
263
|
})).account;
|
|
260
|
-
const d = n.getClient({ chainId: a }), s =
|
|
264
|
+
const d = n.getClient({ chainId: a }), s = X(d, y1, "simulateContract"), { result: i, request: l } = await s({ ...b, abi: e, account: c });
|
|
261
265
|
return {
|
|
262
266
|
chainId: d.chain.id,
|
|
263
267
|
result: i,
|
|
264
|
-
request: { __mode: "prepared", ...
|
|
268
|
+
request: { __mode: "prepared", ...l, chainId: a }
|
|
265
269
|
};
|
|
266
270
|
}
|
|
267
271
|
async function G(n, f) {
|
|
268
272
|
const { account: e, chainId: a, connector: t, __mode: b, ...c } = f;
|
|
269
273
|
let d;
|
|
270
|
-
typeof e == "object" && e.type === "local" ? d = n.getClient({ chainId: a }) : d = await
|
|
271
|
-
const { connector: s } =
|
|
274
|
+
typeof e == "object" && e.type === "local" ? d = n.getClient({ chainId: a }) : d = await Z(n, { account: e, chainId: a, connector: t });
|
|
275
|
+
const { connector: s } = U(n);
|
|
272
276
|
let i;
|
|
273
277
|
if (b === "prepared" || s != null && s.supportsSimulation)
|
|
274
278
|
i = c;
|
|
275
279
|
else {
|
|
276
|
-
const { request: o } = await
|
|
280
|
+
const { request: o } = await R1(n, {
|
|
277
281
|
...c,
|
|
278
282
|
account: e,
|
|
279
283
|
chainId: a
|
|
280
284
|
});
|
|
281
285
|
i = o;
|
|
282
286
|
}
|
|
283
|
-
return await
|
|
287
|
+
return await X(d, m1, "writeContract")({
|
|
284
288
|
...i,
|
|
285
289
|
...e ? { account: e } : {},
|
|
286
290
|
chain: a ? { id: a } : null
|
|
287
291
|
});
|
|
288
292
|
}
|
|
289
|
-
function
|
|
293
|
+
function T(n) {
|
|
290
294
|
return n.address !== void 0 && typeof n.address == "object" ? (f, e) => {
|
|
291
295
|
var c;
|
|
292
|
-
const a =
|
|
296
|
+
const a = I1(f), t = U(f);
|
|
293
297
|
let b;
|
|
294
298
|
return e.chainId ? b = e.chainId : e.account && e.account === t.address || e.account === void 0 ? b = t.chainId : b = a, G(f, {
|
|
295
299
|
...e,
|
|
@@ -304,14 +308,14 @@ function S(n) {
|
|
|
304
308
|
abi: n.abi
|
|
305
309
|
});
|
|
306
310
|
}
|
|
307
|
-
const L = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" },
|
|
311
|
+
const L = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" }, _ = 10000n, O = {
|
|
308
312
|
...L != null && L.VITE_BOOST_CORE_ADDRESS ? { 31337: void 0 } : {},
|
|
309
|
-
...
|
|
310
|
-
},
|
|
311
|
-
function
|
|
313
|
+
...O0
|
|
314
|
+
}, r5 = O[11155111] || C;
|
|
315
|
+
function N1(n) {
|
|
312
316
|
return n.address;
|
|
313
317
|
}
|
|
314
|
-
const x = class x extends
|
|
318
|
+
const x = class x extends Y0 {
|
|
315
319
|
/**
|
|
316
320
|
* A getter that will return Boost core's static addresses by numerical chain ID
|
|
317
321
|
*
|
|
@@ -332,16 +336,16 @@ const x = class x extends H0 {
|
|
|
332
336
|
* @param {({ address?: Address; } | { registryAddress: Address; protocolFeeReceiver: Address; owner: Address; })} param0....options
|
|
333
337
|
*/
|
|
334
338
|
constructor({ config: f, account: e, ...a }) {
|
|
335
|
-
if (
|
|
339
|
+
if (N1(a) && a.address)
|
|
336
340
|
super({ account: e, config: f }, a.address);
|
|
337
341
|
else {
|
|
338
|
-
const { address: t } =
|
|
342
|
+
const { address: t } = u(
|
|
339
343
|
f,
|
|
340
344
|
O
|
|
341
345
|
);
|
|
342
346
|
super({ account: e, config: f }, t);
|
|
343
347
|
}
|
|
344
|
-
this.abi =
|
|
348
|
+
this.abi = A;
|
|
345
349
|
}
|
|
346
350
|
/**
|
|
347
351
|
* Create a new Boost.
|
|
@@ -353,12 +357,12 @@ const x = class x extends H0 {
|
|
|
353
357
|
* @returns {Promise<Boost>}
|
|
354
358
|
*/
|
|
355
359
|
async createBoost(f, e) {
|
|
356
|
-
const [a, t] = this.validateDeploymentConfig(f), b = e == null ? void 0 : e.chainId, { chainId: c, address: d } =
|
|
360
|
+
const [a, t] = this.validateDeploymentConfig(f), b = e == null ? void 0 : e.chainId, { chainId: c, address: d } = u(
|
|
357
361
|
t.config,
|
|
358
362
|
this.addresses,
|
|
359
363
|
b
|
|
360
|
-
), s =
|
|
361
|
-
abi:
|
|
364
|
+
), s = T({
|
|
365
|
+
abi: A,
|
|
362
366
|
functionName: "createBoost",
|
|
363
367
|
address: d
|
|
364
368
|
}), i = await this.prepareCreateBoostPayload(
|
|
@@ -366,38 +370,38 @@ const x = class x extends H0 {
|
|
|
366
370
|
c,
|
|
367
371
|
a,
|
|
368
372
|
t
|
|
369
|
-
),
|
|
373
|
+
), l = await s(t.config, {
|
|
370
374
|
...this.optionallyAttachAccount(t.account),
|
|
371
375
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
372
376
|
...e,
|
|
373
377
|
chainId: c,
|
|
374
378
|
args: [P(i)]
|
|
375
379
|
}), g = await V(t.config, {
|
|
376
|
-
hash:
|
|
377
|
-
}), o =
|
|
378
|
-
abi:
|
|
380
|
+
hash: l
|
|
381
|
+
}), o = E({
|
|
382
|
+
abi: A,
|
|
379
383
|
eventName: "BoostCreated",
|
|
380
384
|
logs: g.logs
|
|
381
385
|
}).at(0);
|
|
382
386
|
let r = 0n;
|
|
383
|
-
if (!o) throw new
|
|
387
|
+
if (!o) throw new S();
|
|
384
388
|
r = o == null ? void 0 : o.args.boostId;
|
|
385
|
-
const
|
|
389
|
+
const h = await this.readBoost(r);
|
|
386
390
|
return new F({
|
|
387
391
|
id: r,
|
|
388
|
-
budget: a.budget.at(
|
|
389
|
-
action: a.action.at(
|
|
390
|
-
validator: a.validator.at(
|
|
391
|
-
allowList: a.allowList.at(
|
|
392
|
+
budget: a.budget.at(h.budget),
|
|
393
|
+
action: a.action.at(h.action),
|
|
394
|
+
validator: a.validator.at(h.validator),
|
|
395
|
+
allowList: a.allowList.at(h.allowList),
|
|
392
396
|
incentives: a.incentives.map(
|
|
393
397
|
(m, y) => (
|
|
394
398
|
// biome-ignore lint/style/noNonNullAssertion: this will never be undefined
|
|
395
|
-
m.at(
|
|
399
|
+
m.at(h.incentives.at(y))
|
|
396
400
|
)
|
|
397
401
|
),
|
|
398
|
-
protocolFee:
|
|
399
|
-
maxParticipants:
|
|
400
|
-
owner:
|
|
402
|
+
protocolFee: h.protocolFee,
|
|
403
|
+
maxParticipants: h.maxParticipants,
|
|
404
|
+
owner: h.owner
|
|
401
405
|
});
|
|
402
406
|
}
|
|
403
407
|
/**
|
|
@@ -414,7 +418,7 @@ const x = class x extends H0 {
|
|
|
414
418
|
f,
|
|
415
419
|
e
|
|
416
420
|
);
|
|
417
|
-
return { hash: await
|
|
421
|
+
return { hash: await Q(this._config, a), result: t };
|
|
418
422
|
}
|
|
419
423
|
/**
|
|
420
424
|
* Returns a simulated Boost creation.
|
|
@@ -426,7 +430,7 @@ const x = class x extends H0 {
|
|
|
426
430
|
* @returns {Promise<SimulateContractReturnType>}
|
|
427
431
|
*/
|
|
428
432
|
async simulateCreateBoost(f, e) {
|
|
429
|
-
const [a, t] = this.validateDeploymentConfig(f), b = e == null ? void 0 : e.chainId, { chainId: c, address: d } =
|
|
433
|
+
const [a, t] = this.validateDeploymentConfig(f), b = e == null ? void 0 : e.chainId, { chainId: c, address: d } = u(
|
|
430
434
|
t.config,
|
|
431
435
|
this.addresses,
|
|
432
436
|
b
|
|
@@ -462,11 +466,11 @@ const x = class x extends H0 {
|
|
|
462
466
|
budget: this.TransparentBudget(
|
|
463
467
|
typeof f == "string" ? f : f.assertValidAddress()
|
|
464
468
|
)
|
|
465
|
-
}), d = t == null ? void 0 : t.chainId, { chainId: s, address: i } =
|
|
469
|
+
}), d = t == null ? void 0 : t.chainId, { chainId: s, address: i } = u(
|
|
466
470
|
c.config,
|
|
467
471
|
this.addresses,
|
|
468
472
|
d
|
|
469
|
-
),
|
|
473
|
+
), l = T({
|
|
470
474
|
abi: M,
|
|
471
475
|
functionName: "createBoost",
|
|
472
476
|
address: typeof f == "string" ? f : f.assertValidAddress()
|
|
@@ -475,7 +479,7 @@ const x = class x extends H0 {
|
|
|
475
479
|
s,
|
|
476
480
|
b,
|
|
477
481
|
c
|
|
478
|
-
), o = await
|
|
482
|
+
), o = await l(c.config, {
|
|
479
483
|
...this.optionallyAttachAccount(c.account),
|
|
480
484
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
481
485
|
...t,
|
|
@@ -487,14 +491,14 @@ const x = class x extends H0 {
|
|
|
487
491
|
]
|
|
488
492
|
}), r = await V(c.config, {
|
|
489
493
|
hash: o
|
|
490
|
-
}),
|
|
491
|
-
abi:
|
|
494
|
+
}), h = E({
|
|
495
|
+
abi: A,
|
|
492
496
|
eventName: "BoostCreated",
|
|
493
497
|
logs: r.logs
|
|
494
498
|
}).at(0);
|
|
495
499
|
let m = 0n;
|
|
496
|
-
if (!
|
|
497
|
-
m =
|
|
500
|
+
if (!h) throw new S();
|
|
501
|
+
m = h == null ? void 0 : h.args.boostId;
|
|
498
502
|
const y = await this.readBoost(m);
|
|
499
503
|
return new F({
|
|
500
504
|
id: m,
|
|
@@ -550,11 +554,11 @@ const x = class x extends H0 {
|
|
|
550
554
|
budget: this.TransparentBudget(
|
|
551
555
|
typeof f == "string" ? f : f.assertValidAddress()
|
|
552
556
|
)
|
|
553
|
-
}), d = t == null ? void 0 : t.chainId, { chainId: s, address: i } =
|
|
557
|
+
}), d = t == null ? void 0 : t.chainId, { chainId: s, address: i } = u(
|
|
554
558
|
c.config,
|
|
555
559
|
this.addresses,
|
|
556
560
|
d
|
|
557
|
-
),
|
|
561
|
+
), l = await this.prepareCreateBoostPayload(
|
|
558
562
|
i,
|
|
559
563
|
s,
|
|
560
564
|
b,
|
|
@@ -569,7 +573,7 @@ const x = class x extends H0 {
|
|
|
569
573
|
args: [
|
|
570
574
|
e.map(R),
|
|
571
575
|
i,
|
|
572
|
-
P(
|
|
576
|
+
P(l)
|
|
573
577
|
]
|
|
574
578
|
});
|
|
575
579
|
}
|
|
@@ -593,15 +597,15 @@ const x = class x extends H0 {
|
|
|
593
597
|
budget: this.TransparentBudget(
|
|
594
598
|
typeof f == "string" ? f : f.assertValidAddress()
|
|
595
599
|
)
|
|
596
|
-
}),
|
|
600
|
+
}), l = d == null ? void 0 : d.chainId, { chainId: g, address: o } = u(
|
|
597
601
|
i.config,
|
|
598
602
|
this.addresses,
|
|
599
|
-
|
|
600
|
-
), r =
|
|
603
|
+
l
|
|
604
|
+
), r = T({
|
|
601
605
|
abi: M,
|
|
602
606
|
functionName: "createBoostWithPermit2",
|
|
603
607
|
address: typeof f == "string" ? f : f.assertValidAddress()
|
|
604
|
-
}),
|
|
608
|
+
}), h = await this.prepareCreateBoostPayload(
|
|
605
609
|
o,
|
|
606
610
|
g,
|
|
607
611
|
s,
|
|
@@ -614,37 +618,37 @@ const x = class x extends H0 {
|
|
|
614
618
|
args: [
|
|
615
619
|
e.map(R),
|
|
616
620
|
o,
|
|
617
|
-
P(
|
|
621
|
+
P(h),
|
|
618
622
|
t,
|
|
619
623
|
b,
|
|
620
624
|
c
|
|
621
625
|
]
|
|
622
626
|
}), y = await V(i.config, {
|
|
623
627
|
hash: m
|
|
624
|
-
}), B =
|
|
625
|
-
abi:
|
|
628
|
+
}), B = E({
|
|
629
|
+
abi: A,
|
|
626
630
|
eventName: "BoostCreated",
|
|
627
631
|
logs: y.logs
|
|
628
632
|
}).at(0);
|
|
629
633
|
let p = 0n;
|
|
630
|
-
if (!B) throw new
|
|
634
|
+
if (!B) throw new S();
|
|
631
635
|
p = B == null ? void 0 : B.args.boostId;
|
|
632
|
-
const
|
|
636
|
+
const v = await this.readBoost(p);
|
|
633
637
|
return new F({
|
|
634
638
|
id: p,
|
|
635
|
-
budget: s.budget.at(
|
|
636
|
-
action: s.action.at(
|
|
637
|
-
validator: s.validator.at(
|
|
638
|
-
allowList: s.allowList.at(
|
|
639
|
+
budget: s.budget.at(v.budget),
|
|
640
|
+
action: s.action.at(v.action),
|
|
641
|
+
validator: s.validator.at(v.validator),
|
|
642
|
+
allowList: s.allowList.at(v.allowList),
|
|
639
643
|
incentives: s.incentives.map(
|
|
640
|
-
(
|
|
644
|
+
(J, K) => (
|
|
641
645
|
// biome-ignore lint/style/noNonNullAssertion: this will never be undefined
|
|
642
|
-
|
|
646
|
+
J.at(v.incentives.at(K))
|
|
643
647
|
)
|
|
644
648
|
),
|
|
645
|
-
protocolFee:
|
|
646
|
-
maxParticipants:
|
|
647
|
-
owner:
|
|
649
|
+
protocolFee: v.protocolFee,
|
|
650
|
+
maxParticipants: v.maxParticipants,
|
|
651
|
+
owner: v.owner
|
|
648
652
|
});
|
|
649
653
|
}
|
|
650
654
|
/**
|
|
@@ -696,10 +700,10 @@ const x = class x extends H0 {
|
|
|
696
700
|
budget: this.TransparentBudget(
|
|
697
701
|
typeof f == "string" ? f : f.assertValidAddress()
|
|
698
702
|
)
|
|
699
|
-
}),
|
|
703
|
+
}), l = d == null ? void 0 : d.chainId, { chainId: g, address: o } = u(
|
|
700
704
|
i.config,
|
|
701
705
|
this.addresses,
|
|
702
|
-
|
|
706
|
+
l
|
|
703
707
|
), r = await this.prepareCreateBoostPayload(
|
|
704
708
|
o,
|
|
705
709
|
g,
|
|
@@ -725,21 +729,21 @@ const x = class x extends H0 {
|
|
|
725
729
|
// This function mutates payload, which isn't awesome but it's fine
|
|
726
730
|
async prepareCreateBoostPayload(f, e, a, t) {
|
|
727
731
|
var g;
|
|
728
|
-
if (!a.owner && (a.owner = ((g = this._account) == null ? void 0 : g.address) ||
|
|
729
|
-
throw new
|
|
732
|
+
if (!a.owner && (a.owner = ((g = this._account) == null ? void 0 : g.address) || E0(t.config).address || C, a.owner === C))
|
|
733
|
+
throw new r1();
|
|
730
734
|
if (!a.validator) {
|
|
731
|
-
const r =
|
|
735
|
+
const r = F0(t.config).filter(
|
|
732
736
|
(y) => !!this.addresses[y.id] && y.id === e
|
|
733
737
|
).at(0);
|
|
734
738
|
if (!r)
|
|
735
|
-
throw new
|
|
739
|
+
throw new u1(
|
|
736
740
|
e,
|
|
737
741
|
Object.keys(this.addresses).map(Number)
|
|
738
742
|
);
|
|
739
743
|
const m = [
|
|
740
|
-
r.testnet || r.id === 31337 ?
|
|
744
|
+
r.testnet || r.id === 31337 ? j.TESTNET : j.MAINNET
|
|
741
745
|
];
|
|
742
|
-
r.id === 31337 && m.push("0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"), a.validator = this.
|
|
746
|
+
r.id === 31337 && m.push("0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"), a.validator = this.LimitedSignerValidatorV2({
|
|
743
747
|
signers: m,
|
|
744
748
|
validatorCaller: f,
|
|
745
749
|
maxClaimCount: 1
|
|
@@ -747,10 +751,10 @@ const x = class x extends H0 {
|
|
|
747
751
|
}
|
|
748
752
|
let b = C;
|
|
749
753
|
if (a.budget.address) {
|
|
750
|
-
if (b = a.budget.address, !(a.budget instanceof
|
|
751
|
-
throw new
|
|
754
|
+
if (b = a.budget.address, !(a.budget instanceof z) && !await a.budget.isAuthorized(f))
|
|
755
|
+
throw new h1(f);
|
|
752
756
|
} else
|
|
753
|
-
throw new
|
|
757
|
+
throw new l1();
|
|
754
758
|
let c = {
|
|
755
759
|
instance: C,
|
|
756
760
|
isBase: !0,
|
|
@@ -764,7 +768,7 @@ const x = class x extends H0 {
|
|
|
764
768
|
parameters: o ? a.action.buildParameters(void 0, t).args.at(0) || w : w
|
|
765
769
|
};
|
|
766
770
|
} else
|
|
767
|
-
c.parameters = a.action.buildParameters(void 0, t).args.at(0) || w, c.instance =
|
|
771
|
+
c.parameters = a.action.buildParameters(void 0, t).args.at(0) || w, c.instance = u(
|
|
768
772
|
t.config,
|
|
769
773
|
a.action.bases,
|
|
770
774
|
e
|
|
@@ -782,7 +786,7 @@ const x = class x extends H0 {
|
|
|
782
786
|
parameters: o ? a.validator.buildParameters(void 0, t).args.at(0) || w : w
|
|
783
787
|
};
|
|
784
788
|
} else
|
|
785
|
-
d.parameters = a.validator.buildParameters(void 0, t).args.at(0) || w, d.instance =
|
|
789
|
+
d.parameters = a.validator.buildParameters(void 0, t).args.at(0) || w, d.instance = u(
|
|
786
790
|
t.config,
|
|
787
791
|
a.validator.bases,
|
|
788
792
|
e
|
|
@@ -800,7 +804,7 @@ const x = class x extends H0 {
|
|
|
800
804
|
parameters: o ? w : w
|
|
801
805
|
};
|
|
802
806
|
} else
|
|
803
|
-
s.parameters = a.allowList.buildParameters(void 0, t).args.at(0) || w, s.instance =
|
|
807
|
+
s.parameters = a.allowList.buildParameters(void 0, t).args.at(0) || w, s.instance = u(
|
|
804
808
|
t.config,
|
|
805
809
|
a.allowList.bases,
|
|
806
810
|
e
|
|
@@ -813,15 +817,15 @@ const x = class x extends H0 {
|
|
|
813
817
|
for (let o = 0; o < a.incentives.length; o++) {
|
|
814
818
|
const r = a.incentives.at(o);
|
|
815
819
|
if (r.address) {
|
|
816
|
-
const
|
|
817
|
-
if (!
|
|
820
|
+
const h = r.isBase;
|
|
821
|
+
if (!h) throw new g1(r);
|
|
818
822
|
i[o] = {
|
|
819
|
-
isBase:
|
|
823
|
+
isBase: h,
|
|
820
824
|
instance: r.address,
|
|
821
|
-
parameters:
|
|
825
|
+
parameters: h ? r.buildParameters(void 0, t).args.at(0) || w : w
|
|
822
826
|
};
|
|
823
827
|
} else
|
|
824
|
-
i[o].parameters = r.buildParameters(void 0, t).args.at(0) || w, i[o].instance =
|
|
828
|
+
i[o].parameters = r.buildParameters(void 0, t).args.at(0) || w, i[o].instance = u(
|
|
825
829
|
t.config,
|
|
826
830
|
r.bases,
|
|
827
831
|
e
|
|
@@ -871,7 +875,7 @@ const x = class x extends H0 {
|
|
|
871
875
|
const { request: c, result: d } = await c0(
|
|
872
876
|
this._config,
|
|
873
877
|
{
|
|
874
|
-
...
|
|
878
|
+
...u(
|
|
875
879
|
this._config,
|
|
876
880
|
this.addresses,
|
|
877
881
|
b == null ? void 0 : b.chainId
|
|
@@ -926,7 +930,7 @@ const x = class x extends H0 {
|
|
|
926
930
|
const { request: d, result: s } = await n0(
|
|
927
931
|
this._config,
|
|
928
932
|
{
|
|
929
|
-
...
|
|
933
|
+
...u(
|
|
930
934
|
this._config,
|
|
931
935
|
this.addresses,
|
|
932
936
|
c == null ? void 0 : c.chainId
|
|
@@ -954,7 +958,7 @@ const x = class x extends H0 {
|
|
|
954
958
|
try {
|
|
955
959
|
let t;
|
|
956
960
|
return typeof f == "string" ? t = BigInt(f) : t = f, await i0(this._config, {
|
|
957
|
-
...
|
|
961
|
+
...u(
|
|
958
962
|
this._config,
|
|
959
963
|
this.addresses,
|
|
960
964
|
e == null ? void 0 : e.chainId
|
|
@@ -965,7 +969,7 @@ const x = class x extends H0 {
|
|
|
965
969
|
...e
|
|
966
970
|
});
|
|
967
971
|
} catch (t) {
|
|
968
|
-
throw (a = t == null ? void 0 : t.message) != null && a.includes("bounds") ? new
|
|
972
|
+
throw (a = t == null ? void 0 : t.message) != null && a.includes("bounds") ? new w1(String(f)) : t;
|
|
969
973
|
}
|
|
970
974
|
}
|
|
971
975
|
/**
|
|
@@ -984,21 +988,21 @@ const x = class x extends H0 {
|
|
|
984
988
|
const { protocolFee: t, maxParticipants: b, owner: c, ...d } = await this.readBoost(a, e), s = {
|
|
985
989
|
config: this._config,
|
|
986
990
|
account: this._account
|
|
987
|
-
}, [i,
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
991
|
+
}, [i, l, g, o, r] = await Promise.all([
|
|
992
|
+
x0(s, d.action, e),
|
|
993
|
+
k0(s, d.budget, e),
|
|
994
|
+
o1(s, d.validator, e),
|
|
995
|
+
$0(s, d.allowList, e),
|
|
992
996
|
Promise.all(
|
|
993
997
|
d.incentives.map(
|
|
994
|
-
(
|
|
998
|
+
(h) => Q0(s, h, e)
|
|
995
999
|
)
|
|
996
1000
|
)
|
|
997
1001
|
]);
|
|
998
1002
|
return new F({
|
|
999
1003
|
id: a,
|
|
1000
1004
|
action: i,
|
|
1001
|
-
budget:
|
|
1005
|
+
budget: l,
|
|
1002
1006
|
validator: g,
|
|
1003
1007
|
allowList: o,
|
|
1004
1008
|
incentives: r,
|
|
@@ -1017,7 +1021,7 @@ const x = class x extends H0 {
|
|
|
1017
1021
|
*/
|
|
1018
1022
|
async getBoostCount(f) {
|
|
1019
1023
|
return await o0(this._config, {
|
|
1020
|
-
...
|
|
1024
|
+
...u(
|
|
1021
1025
|
this._config,
|
|
1022
1026
|
this.addresses,
|
|
1023
1027
|
f == null ? void 0 : f.chainId
|
|
@@ -1058,7 +1062,7 @@ const x = class x extends H0 {
|
|
|
1058
1062
|
*/
|
|
1059
1063
|
async createBoostAuth(f) {
|
|
1060
1064
|
return await u0(this._config, {
|
|
1061
|
-
...
|
|
1065
|
+
...u(
|
|
1062
1066
|
this._config,
|
|
1063
1067
|
this.addresses,
|
|
1064
1068
|
f == null ? void 0 : f.chainId
|
|
@@ -1098,7 +1102,7 @@ const x = class x extends H0 {
|
|
|
1098
1102
|
const { request: a, result: t } = await h0(
|
|
1099
1103
|
this._config,
|
|
1100
1104
|
{
|
|
1101
|
-
...
|
|
1105
|
+
...u(
|
|
1102
1106
|
this._config,
|
|
1103
1107
|
this.addresses,
|
|
1104
1108
|
e == null ? void 0 : e.chainId
|
|
@@ -1121,7 +1125,7 @@ const x = class x extends H0 {
|
|
|
1121
1125
|
*/
|
|
1122
1126
|
async protocolFee(f) {
|
|
1123
1127
|
return await g0(this._config, {
|
|
1124
|
-
...
|
|
1128
|
+
...u(
|
|
1125
1129
|
this._config,
|
|
1126
1130
|
this.addresses,
|
|
1127
1131
|
f == null ? void 0 : f.chainId
|
|
@@ -1142,7 +1146,7 @@ const x = class x extends H0 {
|
|
|
1142
1146
|
*/
|
|
1143
1147
|
async protocolFeeReceiver(f) {
|
|
1144
1148
|
return await w0(this._config, {
|
|
1145
|
-
...
|
|
1149
|
+
...u(
|
|
1146
1150
|
this._config,
|
|
1147
1151
|
this.addresses,
|
|
1148
1152
|
f == null ? void 0 : f.chainId
|
|
@@ -1162,9 +1166,9 @@ const x = class x extends H0 {
|
|
|
1162
1166
|
* @param {?WriteParams} [params]
|
|
1163
1167
|
* @returns {Promise<void>}
|
|
1164
1168
|
*/
|
|
1165
|
-
async
|
|
1169
|
+
async setProtocolFeeReceiver(f, e) {
|
|
1166
1170
|
return await this.awaitResult(
|
|
1167
|
-
this.
|
|
1171
|
+
this.setProtocolFeeReceiverRaw(f, {
|
|
1168
1172
|
...e
|
|
1169
1173
|
})
|
|
1170
1174
|
);
|
|
@@ -1178,11 +1182,11 @@ const x = class x extends H0 {
|
|
|
1178
1182
|
* @param {?WriteParams} [params]
|
|
1179
1183
|
* @returns {Promise<{ hash: `0x${string}`; result: void; }>}
|
|
1180
1184
|
*/
|
|
1181
|
-
async
|
|
1185
|
+
async setProtocolFeeReceiverRaw(f, e) {
|
|
1182
1186
|
const { request: a, result: t } = await y0(
|
|
1183
1187
|
this._config,
|
|
1184
1188
|
{
|
|
1185
|
-
...
|
|
1189
|
+
...u(
|
|
1186
1190
|
this._config,
|
|
1187
1191
|
this.addresses,
|
|
1188
1192
|
e == null ? void 0 : e.chainId
|
|
@@ -1198,6 +1202,69 @@ const x = class x extends H0 {
|
|
|
1198
1202
|
a
|
|
1199
1203
|
), result: t };
|
|
1200
1204
|
}
|
|
1205
|
+
/**
|
|
1206
|
+
* Get the referral fee.
|
|
1207
|
+
*
|
|
1208
|
+
* @public
|
|
1209
|
+
* @async
|
|
1210
|
+
* @param {?ReadParams} [params]
|
|
1211
|
+
* @returns {unknown}
|
|
1212
|
+
*/
|
|
1213
|
+
async referralFee(f) {
|
|
1214
|
+
return await A0(this._config, {
|
|
1215
|
+
...u(
|
|
1216
|
+
this._config,
|
|
1217
|
+
this.addresses,
|
|
1218
|
+
f == null ? void 0 : f.chainId
|
|
1219
|
+
),
|
|
1220
|
+
args: [],
|
|
1221
|
+
...this.optionallyAttachAccount(),
|
|
1222
|
+
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1223
|
+
...f
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* Set the referral fee. This function is only callable by the owner.
|
|
1228
|
+
*
|
|
1229
|
+
* @public
|
|
1230
|
+
* @async
|
|
1231
|
+
* @param {bigint} fee
|
|
1232
|
+
* @param {?WriteParams} [params]
|
|
1233
|
+
* @returns {Promise<void>}
|
|
1234
|
+
*/
|
|
1235
|
+
async setReferralFee(f, e) {
|
|
1236
|
+
return await this.awaitResult(
|
|
1237
|
+
this.setReferralFeeRaw(f, {
|
|
1238
|
+
...e
|
|
1239
|
+
})
|
|
1240
|
+
);
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* Set the referral fee. This function is only callable by the owner.
|
|
1244
|
+
*
|
|
1245
|
+
* @public
|
|
1246
|
+
* @async
|
|
1247
|
+
* @param {bigint} fee
|
|
1248
|
+
* @param {?WriteParams} [params]
|
|
1249
|
+
* @returns {Promise<{ hash: `0x${string}`; result: void; }>}
|
|
1250
|
+
*/
|
|
1251
|
+
async setReferralFeeRaw(f, e) {
|
|
1252
|
+
const { request: a, result: t } = await C0(
|
|
1253
|
+
this._config,
|
|
1254
|
+
{
|
|
1255
|
+
...u(
|
|
1256
|
+
this._config,
|
|
1257
|
+
this.addresses,
|
|
1258
|
+
e == null ? void 0 : e.chainId
|
|
1259
|
+
),
|
|
1260
|
+
args: [f],
|
|
1261
|
+
...this.optionallyAttachAccount(),
|
|
1262
|
+
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1263
|
+
...e
|
|
1264
|
+
}
|
|
1265
|
+
);
|
|
1266
|
+
return { hash: await v0(this._config, a), result: t };
|
|
1267
|
+
}
|
|
1201
1268
|
/**
|
|
1202
1269
|
* Get the incentives fees information for a given Boost ID and Incentive ID.
|
|
1203
1270
|
*
|
|
@@ -1209,11 +1276,11 @@ const x = class x extends H0 {
|
|
|
1209
1276
|
* @returns {Promise<IncentiveDisbursalInfo>}
|
|
1210
1277
|
*/
|
|
1211
1278
|
async getIncentiveFeesInfo(f, e, a) {
|
|
1212
|
-
const t =
|
|
1213
|
-
|
|
1279
|
+
const t = D0(
|
|
1280
|
+
S0(["uint256", "uint256"], [f, e])
|
|
1214
1281
|
);
|
|
1215
|
-
return await
|
|
1216
|
-
...
|
|
1282
|
+
return await I0(this._config, {
|
|
1283
|
+
...u(
|
|
1217
1284
|
this._config,
|
|
1218
1285
|
this.addresses,
|
|
1219
1286
|
a == null ? void 0 : a.chainId
|
|
@@ -1249,9 +1316,9 @@ const x = class x extends H0 {
|
|
|
1249
1316
|
*/
|
|
1250
1317
|
async getClaimFromTransaction(f) {
|
|
1251
1318
|
var t;
|
|
1252
|
-
const e = await
|
|
1253
|
-
return (t =
|
|
1254
|
-
abi:
|
|
1319
|
+
const e = await R0(this._config, f);
|
|
1320
|
+
return (t = E({
|
|
1321
|
+
abi: A,
|
|
1255
1322
|
eventName: "BoostClaimed",
|
|
1256
1323
|
logs: e.logs
|
|
1257
1324
|
}).at(0)) == null ? void 0 : t.args;
|
|
@@ -1281,7 +1348,7 @@ const x = class x extends H0 {
|
|
|
1281
1348
|
*/
|
|
1282
1349
|
async calculateProtocolFee(f, e) {
|
|
1283
1350
|
const a = await this.protocolFee(e);
|
|
1284
|
-
return f * a /
|
|
1351
|
+
return f * a / _;
|
|
1285
1352
|
}
|
|
1286
1353
|
/**
|
|
1287
1354
|
* Bound {@link PassthroughAuth} constructor that reuses the same configuration as the Boost Core instance.
|
|
@@ -1295,7 +1362,7 @@ const x = class x extends H0 {
|
|
|
1295
1362
|
* @returns {PassthroughAuth}
|
|
1296
1363
|
*/
|
|
1297
1364
|
PassthroughAuth(f) {
|
|
1298
|
-
return new
|
|
1365
|
+
return new G0(
|
|
1299
1366
|
{ config: this._config, account: this._account },
|
|
1300
1367
|
f
|
|
1301
1368
|
);
|
|
@@ -1331,7 +1398,7 @@ const x = class x extends H0 {
|
|
|
1331
1398
|
* const action = new EventAction({ config: core._config, account: core._account }, '0x')
|
|
1332
1399
|
*/
|
|
1333
1400
|
EventAction(f, e) {
|
|
1334
|
-
return new
|
|
1401
|
+
return new M0(
|
|
1335
1402
|
{ config: this._config, account: this._account },
|
|
1336
1403
|
f,
|
|
1337
1404
|
e
|
|
@@ -1371,7 +1438,7 @@ const x = class x extends H0 {
|
|
|
1371
1438
|
* @returns {OpenAllowList}
|
|
1372
1439
|
*/
|
|
1373
1440
|
OpenAllowList(f) {
|
|
1374
|
-
return new
|
|
1441
|
+
return new z0(
|
|
1375
1442
|
{ config: this._config, account: this._account },
|
|
1376
1443
|
void 0,
|
|
1377
1444
|
f
|
|
@@ -1390,7 +1457,7 @@ const x = class x extends H0 {
|
|
|
1390
1457
|
* @returns {SimpleAllowList}
|
|
1391
1458
|
*/
|
|
1392
1459
|
SimpleAllowList(f, e) {
|
|
1393
|
-
return new
|
|
1460
|
+
return new W0(
|
|
1394
1461
|
{ config: this._config, account: this._account },
|
|
1395
1462
|
f,
|
|
1396
1463
|
e
|
|
@@ -1409,7 +1476,7 @@ const x = class x extends H0 {
|
|
|
1409
1476
|
* @returns {SimpleDenyList}
|
|
1410
1477
|
*/
|
|
1411
1478
|
SimpleDenyList(f, e) {
|
|
1412
|
-
return new
|
|
1479
|
+
return new q0(
|
|
1413
1480
|
{ config: this._config, account: this._account },
|
|
1414
1481
|
f,
|
|
1415
1482
|
e
|
|
@@ -1428,7 +1495,7 @@ const x = class x extends H0 {
|
|
|
1428
1495
|
* @returns {OffchainAccessList}
|
|
1429
1496
|
*/
|
|
1430
1497
|
OffchainAccessList(f, e) {
|
|
1431
|
-
return new
|
|
1498
|
+
return new j0(
|
|
1432
1499
|
{ config: this._config, account: this._account },
|
|
1433
1500
|
f,
|
|
1434
1501
|
e
|
|
@@ -1463,7 +1530,7 @@ const x = class x extends H0 {
|
|
|
1463
1530
|
* @returns {ManagedBudget}
|
|
1464
1531
|
*/
|
|
1465
1532
|
ManagedBudget(f) {
|
|
1466
|
-
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [
|
|
1533
|
+
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [D.MANAGER, ...f.roles]), new H0(
|
|
1467
1534
|
{ config: this._config, account: this._account },
|
|
1468
1535
|
f
|
|
1469
1536
|
);
|
|
@@ -1481,7 +1548,7 @@ const x = class x extends H0 {
|
|
|
1481
1548
|
* @returns {ManagedBudgetWithFees}
|
|
1482
1549
|
*/
|
|
1483
1550
|
ManagedBudgetWithFees(f) {
|
|
1484
|
-
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [
|
|
1551
|
+
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [D.MANAGER, ...f.roles]), new U0(
|
|
1485
1552
|
{ config: this._config, account: this._account },
|
|
1486
1553
|
f
|
|
1487
1554
|
);
|
|
@@ -1499,7 +1566,7 @@ const x = class x extends H0 {
|
|
|
1499
1566
|
* @returns {ManagedBudgetWithFeesV2}
|
|
1500
1567
|
*/
|
|
1501
1568
|
ManagedBudgetWithFeesV2(f) {
|
|
1502
|
-
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [
|
|
1569
|
+
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [D.MANAGER, ...f.roles]), new X0(
|
|
1503
1570
|
{ config: this._config, account: this._account },
|
|
1504
1571
|
f
|
|
1505
1572
|
);
|
|
@@ -1533,7 +1600,7 @@ const x = class x extends H0 {
|
|
|
1533
1600
|
* @returns {TransparentBudget}
|
|
1534
1601
|
*/
|
|
1535
1602
|
TransparentBudget(f) {
|
|
1536
|
-
return new
|
|
1603
|
+
return new z(
|
|
1537
1604
|
{ config: this._config, account: this._account },
|
|
1538
1605
|
f
|
|
1539
1606
|
);
|
|
@@ -1567,7 +1634,7 @@ const x = class x extends H0 {
|
|
|
1567
1634
|
* @returns {VestingBudget}
|
|
1568
1635
|
*/
|
|
1569
1636
|
AllowListIncentive(f) {
|
|
1570
|
-
return new
|
|
1637
|
+
return new Z0(
|
|
1571
1638
|
{ config: this._config, account: this._account },
|
|
1572
1639
|
f
|
|
1573
1640
|
);
|
|
@@ -1584,7 +1651,7 @@ const x = class x extends H0 {
|
|
|
1584
1651
|
* @returns {CGDAIncentive}
|
|
1585
1652
|
*/
|
|
1586
1653
|
CGDAIncentive(f) {
|
|
1587
|
-
return new
|
|
1654
|
+
return new J0(
|
|
1588
1655
|
{ config: this._config, account: this._account },
|
|
1589
1656
|
f
|
|
1590
1657
|
);
|
|
@@ -1601,7 +1668,7 @@ const x = class x extends H0 {
|
|
|
1601
1668
|
* @returns {ERC20Incentive}
|
|
1602
1669
|
*/
|
|
1603
1670
|
ERC20Incentive(f) {
|
|
1604
|
-
return new
|
|
1671
|
+
return new K0(
|
|
1605
1672
|
{ config: this._config, account: this._account },
|
|
1606
1673
|
f
|
|
1607
1674
|
);
|
|
@@ -1618,7 +1685,7 @@ const x = class x extends H0 {
|
|
|
1618
1685
|
* @returns {ERC20PeggedIncentive}
|
|
1619
1686
|
*/
|
|
1620
1687
|
ERC20PeggedIncentive(f) {
|
|
1621
|
-
return new
|
|
1688
|
+
return new f1(
|
|
1622
1689
|
{ config: this._config, account: this._account },
|
|
1623
1690
|
f
|
|
1624
1691
|
);
|
|
@@ -1654,12 +1721,14 @@ const x = class x extends H0 {
|
|
|
1654
1721
|
* @returns {PointsIncentive}
|
|
1655
1722
|
*/
|
|
1656
1723
|
PointsIncentive(f) {
|
|
1657
|
-
return new
|
|
1724
|
+
return new t1(
|
|
1658
1725
|
{ config: this._config, account: this._account },
|
|
1659
1726
|
f
|
|
1660
1727
|
);
|
|
1661
1728
|
}
|
|
1662
1729
|
/**
|
|
1730
|
+
* @deprecated Use {@link SignerValidatorV2} instead.
|
|
1731
|
+
*
|
|
1663
1732
|
* Bound {@link SignerValidator} constructor that reuses the same configuration as the Boost Core instance.
|
|
1664
1733
|
*
|
|
1665
1734
|
* @example
|
|
@@ -1672,13 +1741,15 @@ const x = class x extends H0 {
|
|
|
1672
1741
|
* @returns {SignerValidator}
|
|
1673
1742
|
*/
|
|
1674
1743
|
SignerValidator(f, e) {
|
|
1675
|
-
return new
|
|
1744
|
+
return new s1(
|
|
1676
1745
|
{ config: this._config, account: this._account },
|
|
1677
1746
|
f,
|
|
1678
1747
|
e
|
|
1679
1748
|
);
|
|
1680
1749
|
}
|
|
1681
1750
|
/**
|
|
1751
|
+
* @deprecated Use {@link LimitedSignerValidatorV2} instead.
|
|
1752
|
+
*
|
|
1682
1753
|
* Bound {@link LimitedSignerValidator} constructor that reuses the same configuration as the Boost Core instance.
|
|
1683
1754
|
*
|
|
1684
1755
|
* @example
|
|
@@ -1691,13 +1762,15 @@ const x = class x extends H0 {
|
|
|
1691
1762
|
* @returns {LimitedSignerValidator}
|
|
1692
1763
|
*/
|
|
1693
1764
|
LimitedSignerValidator(f, e) {
|
|
1694
|
-
return new
|
|
1765
|
+
return new b1(
|
|
1695
1766
|
{ config: this._config, account: this._account },
|
|
1696
1767
|
f,
|
|
1697
1768
|
e
|
|
1698
1769
|
);
|
|
1699
1770
|
}
|
|
1700
1771
|
/**
|
|
1772
|
+
* @deprecated Use {@link PayableLimitedSignerValidatorV2} instead.
|
|
1773
|
+
*
|
|
1701
1774
|
* Bound {@link PayableLimitedSignerValidator} constructor that reuses the same configuration as the Boost Core instance.
|
|
1702
1775
|
*
|
|
1703
1776
|
* @example
|
|
@@ -1710,7 +1783,64 @@ const x = class x extends H0 {
|
|
|
1710
1783
|
* @returns {PayableLimitedSignerValidator}
|
|
1711
1784
|
*/
|
|
1712
1785
|
PayableLimitedSignerValidator(f, e) {
|
|
1713
|
-
return new
|
|
1786
|
+
return new d1(
|
|
1787
|
+
{ config: this._config, account: this._account },
|
|
1788
|
+
f,
|
|
1789
|
+
e ?? !1
|
|
1790
|
+
);
|
|
1791
|
+
}
|
|
1792
|
+
/**
|
|
1793
|
+
* Bound {@link SignerValidatorV2} constructor that reuses the same configuration as the Boost Core instance.
|
|
1794
|
+
*
|
|
1795
|
+
* @example
|
|
1796
|
+
* ```ts
|
|
1797
|
+
* const validator = core.SignerValidatorV2({ ... }) // is roughly equivalent to
|
|
1798
|
+
* const validator = new SignerValidatorV2({ config: core._config, account: core._account }, { ... })
|
|
1799
|
+
* ```
|
|
1800
|
+
* @param {DeployablePayloadOrAddress<SignerValidatorV2Payload>} options
|
|
1801
|
+
* @param {?boolean} [isBase]
|
|
1802
|
+
* @returns {SignerValidatorV2}
|
|
1803
|
+
*/
|
|
1804
|
+
SignerValidatorV2(f, e) {
|
|
1805
|
+
return new i1(
|
|
1806
|
+
{ config: this._config, account: this._account },
|
|
1807
|
+
f,
|
|
1808
|
+
e
|
|
1809
|
+
);
|
|
1810
|
+
}
|
|
1811
|
+
/**
|
|
1812
|
+
* Bound {@link LimitedSignerValidatorV2} constructor that reuses the same configuration as the Boost Core instance.
|
|
1813
|
+
*
|
|
1814
|
+
* @example
|
|
1815
|
+
* ```ts
|
|
1816
|
+
* const validator = core.LimitedSignerValidatorV2({ ... }) // is roughly equivalent to
|
|
1817
|
+
* const validator = new LimitedSignerValidatorV2({ config: core._config, account: core._account }, { ... })
|
|
1818
|
+
* ```
|
|
1819
|
+
* @param {DeployablePayloadOrAddress<LimitedSignerValidatorV2Payload>} options
|
|
1820
|
+
* @param {?boolean} [isBase]
|
|
1821
|
+
* @returns {LimitedSignerValidatorV2}
|
|
1822
|
+
*/
|
|
1823
|
+
LimitedSignerValidatorV2(f, e) {
|
|
1824
|
+
return new c1(
|
|
1825
|
+
{ config: this._config, account: this._account },
|
|
1826
|
+
f,
|
|
1827
|
+
e
|
|
1828
|
+
);
|
|
1829
|
+
}
|
|
1830
|
+
/**
|
|
1831
|
+
* Bound {@link PayableLimitedSignerValidatorV2} constructor that reuses the same configuration as the Boost Core instance.
|
|
1832
|
+
*
|
|
1833
|
+
* @example
|
|
1834
|
+
* ```ts
|
|
1835
|
+
* const validator = core.PayableLimitedSignerValidatorV2({ ... }) // is roughly equivalent to
|
|
1836
|
+
* const validator = new PayableLimitedSignerValidatorV2({ config: core._config, account: core._account }, { ... })
|
|
1837
|
+
* ```
|
|
1838
|
+
* @param {DeployablePayloadOrAddress<PayableLimitedSignerValidatorV2Payload>} options
|
|
1839
|
+
* @param {?boolean} [isBase]
|
|
1840
|
+
* @returns {PayableLimitedSignerValidatorV2}
|
|
1841
|
+
*/
|
|
1842
|
+
PayableLimitedSignerValidatorV2(f, e) {
|
|
1843
|
+
return new n1(
|
|
1714
1844
|
{ config: this._config, account: this._account },
|
|
1715
1845
|
f,
|
|
1716
1846
|
e ?? !1
|
|
@@ -1729,7 +1859,7 @@ const x = class x extends H0 {
|
|
|
1729
1859
|
* @returns {ERC20VariableCrtieriaIncentiveV2}
|
|
1730
1860
|
* */
|
|
1731
1861
|
ERC20VariableCriteriaIncentiveV2(f, e) {
|
|
1732
|
-
return new
|
|
1862
|
+
return new a1(
|
|
1733
1863
|
{ config: this._config, account: this._account },
|
|
1734
1864
|
f,
|
|
1735
1865
|
e
|
|
@@ -1748,7 +1878,7 @@ const x = class x extends H0 {
|
|
|
1748
1878
|
* @returns {ERC20PeggedVariableCriteriaIncentiveV2}
|
|
1749
1879
|
* */
|
|
1750
1880
|
ERC20PeggedVariableCriteriaIncentiveV2(f, e) {
|
|
1751
|
-
return new
|
|
1881
|
+
return new e1(
|
|
1752
1882
|
{ config: this._config, account: this._account },
|
|
1753
1883
|
f,
|
|
1754
1884
|
e
|
|
@@ -1767,7 +1897,7 @@ const x = class x extends H0 {
|
|
|
1767
1897
|
* @returns {ERC20VariableIncentive}
|
|
1768
1898
|
*/
|
|
1769
1899
|
ERC20VariableIncentive(f, e) {
|
|
1770
|
-
return new
|
|
1900
|
+
return new v1(
|
|
1771
1901
|
{ config: this._config, account: this._account },
|
|
1772
1902
|
f,
|
|
1773
1903
|
e
|
|
@@ -1787,7 +1917,7 @@ const x = class x extends H0 {
|
|
|
1787
1917
|
e
|
|
1788
1918
|
);
|
|
1789
1919
|
return {
|
|
1790
|
-
abi:
|
|
1920
|
+
abi: A,
|
|
1791
1921
|
bytecode: q,
|
|
1792
1922
|
args: [],
|
|
1793
1923
|
// UUPS constructor should have no arguments - uses initializer instead
|
|
@@ -1814,22 +1944,22 @@ const x = class x extends H0 {
|
|
|
1814
1944
|
}, s = await W(
|
|
1815
1945
|
d.config,
|
|
1816
1946
|
$(d.config, {
|
|
1817
|
-
abi:
|
|
1947
|
+
abi: A,
|
|
1818
1948
|
bytecode: q,
|
|
1819
1949
|
args: [],
|
|
1820
1950
|
// UUPS constructor has no arguments
|
|
1821
1951
|
...this.optionallyAttachAccount(d.account)
|
|
1822
1952
|
}),
|
|
1823
1953
|
a
|
|
1824
|
-
), i =
|
|
1825
|
-
abi:
|
|
1954
|
+
), i = T0({
|
|
1955
|
+
abi: A,
|
|
1826
1956
|
functionName: "initialize",
|
|
1827
1957
|
args: [
|
|
1828
1958
|
c.registryAddress,
|
|
1829
1959
|
c.protocolFeeReceiver,
|
|
1830
1960
|
c.owner
|
|
1831
1961
|
]
|
|
1832
|
-
}),
|
|
1962
|
+
}), l = [
|
|
1833
1963
|
{
|
|
1834
1964
|
type: "constructor",
|
|
1835
1965
|
inputs: [
|
|
@@ -1849,9 +1979,9 @@ const x = class x extends H0 {
|
|
|
1849
1979
|
], o = await W(
|
|
1850
1980
|
d.config,
|
|
1851
1981
|
$(d.config, {
|
|
1852
|
-
abi:
|
|
1853
|
-
bytecode:
|
|
1854
|
-
abi:
|
|
1982
|
+
abi: l,
|
|
1983
|
+
bytecode: L0({
|
|
1984
|
+
abi: l,
|
|
1855
1985
|
bytecode: "0x60806040526040516103dc3803806103dc8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f806040838503121561024c575f80fd5b82516001600160a01b0381168114610262575f80fd5b60208401519092506001600160401b0381111561027d575f80fd5b8301601f8101851361028d575f80fd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f80fd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60b08061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b605d565b565b5f60587f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b365f80375f80365f845af43d5f803e8080156076573d5ff35b3d5ffdfea2646970667358221220f563f31c0aa14bad619f09897012e95da451776c4af1ecde8d7624c84200077664736f6c634300081a0033",
|
|
1856
1986
|
args: [s, i]
|
|
1857
1987
|
}),
|
|
@@ -1916,7 +2046,7 @@ const x = class x extends H0 {
|
|
|
1916
2046
|
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
1917
2047
|
*/
|
|
1918
2048
|
async topupIncentiveFromBudgetPostFee(f, e, a, t, b) {
|
|
1919
|
-
const c = await this.protocolFee(b), d = a *
|
|
2049
|
+
const c = await this.protocolFee(b), d = a * _ / (_ + c);
|
|
1920
2050
|
return this.topupIncentiveFromBudgetPreFee(
|
|
1921
2051
|
f,
|
|
1922
2052
|
e,
|
|
@@ -1969,7 +2099,7 @@ const x = class x extends H0 {
|
|
|
1969
2099
|
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
1970
2100
|
*/
|
|
1971
2101
|
async topupIncentiveFromSenderPostFee(f, e, a, t) {
|
|
1972
|
-
const b = await this.protocolFee(t), c = a *
|
|
2102
|
+
const b = await this.protocolFee(t), c = a * _ / (_ + b);
|
|
1973
2103
|
return this.topupIncentiveFromSenderPreFee(
|
|
1974
2104
|
f,
|
|
1975
2105
|
e,
|
|
@@ -1989,7 +2119,7 @@ const x = class x extends H0 {
|
|
|
1989
2119
|
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
1990
2120
|
*/
|
|
1991
2121
|
async topupIncentiveFromSenderRaw(f, e, a, t) {
|
|
1992
|
-
const { request: b, result: c } = await
|
|
2122
|
+
const { request: b, result: c } = await B0(
|
|
1993
2123
|
this._config,
|
|
1994
2124
|
{
|
|
1995
2125
|
...this.optionallyAttachAccount(),
|
|
@@ -1998,7 +2128,7 @@ const x = class x extends H0 {
|
|
|
1998
2128
|
args: [f, e, a]
|
|
1999
2129
|
}
|
|
2000
2130
|
);
|
|
2001
|
-
return { hash: await
|
|
2131
|
+
return { hash: await P0(
|
|
2002
2132
|
this._config,
|
|
2003
2133
|
b
|
|
2004
2134
|
), result: c };
|
|
@@ -2017,7 +2147,7 @@ const x = class x extends H0 {
|
|
|
2017
2147
|
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
2018
2148
|
*/
|
|
2019
2149
|
async topupIncentiveFromBudgetRaw(f, e, a, t, b) {
|
|
2020
|
-
const { request: c, result: d } = await
|
|
2150
|
+
const { request: c, result: d } = await p0(
|
|
2021
2151
|
this._config,
|
|
2022
2152
|
{
|
|
2023
2153
|
...this.optionallyAttachAccount(),
|
|
@@ -2026,7 +2156,7 @@ const x = class x extends H0 {
|
|
|
2026
2156
|
args: [f, e, a, t ?? C]
|
|
2027
2157
|
}
|
|
2028
2158
|
);
|
|
2029
|
-
return { hash: await
|
|
2159
|
+
return { hash: await _0(
|
|
2030
2160
|
this._config,
|
|
2031
2161
|
c
|
|
2032
2162
|
), result: d };
|
|
@@ -2035,10 +2165,10 @@ const x = class x extends H0 {
|
|
|
2035
2165
|
x.addresses = O;
|
|
2036
2166
|
let k = x;
|
|
2037
2167
|
export {
|
|
2038
|
-
|
|
2168
|
+
r5 as BOOST_CORE_ADDRESS,
|
|
2039
2169
|
O as BOOST_CORE_ADDRESSES,
|
|
2040
2170
|
k as BoostCore,
|
|
2041
|
-
|
|
2042
|
-
|
|
2171
|
+
_ as FEE_DENOMINATOR,
|
|
2172
|
+
A as boostCoreAbi
|
|
2043
2173
|
};
|
|
2044
2174
|
//# sourceMappingURL=BoostCore.js.map
|