@boostxyz/sdk 7.3.0 → 7.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +160 -159
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +3 -3
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleAllowList.js +30 -30
- package/dist/AllowLists/SimpleAllowList.js.map +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleDenyList.js +3 -3
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +1 -1
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +14 -0
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +199 -180
- package/dist/BoostCore.js.map +1 -1
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.cjs.map +1 -1
- package/dist/BoostRegistry.d.ts.map +1 -1
- package/dist/BoostRegistry.js +31 -31
- package/dist/BoostRegistry.js.map +1 -1
- package/dist/Budget-DGg1wCa6.cjs +2 -0
- package/dist/Budget-DGg1wCa6.cjs.map +1 -0
- package/dist/{Budget-B-grnRq9.js → Budget-ZnzzZsjK.js} +102 -102
- package/dist/Budget-ZnzzZsjK.js.map +1 -0
- 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.cjs.map +1 -1
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudget.js +48 -48
- package/dist/Budgets/ManagedBudget.js.map +1 -1
- package/dist/Budgets/ManagedBudgetWithFees.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudgetWithFeesV2.d.ts.map +1 -1
- package/dist/Budgets/TransparentBudget.d.ts.map +1 -1
- package/dist/Budgets/VestingBudget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.cjs.map +1 -1
- package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.js +5 -8
- package/dist/Deployable/DeployableTarget.js.map +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.js +19 -19
- package/dist/{Incentive-Bz_g-nID.js → Incentive-CYj6lbM5.js} +64 -64
- package/dist/Incentive-CYj6lbM5.js.map +1 -0
- package/dist/{Incentive-Dufx0ZjH.cjs → Incentive-Ckxpw7EN.cjs} +2 -2
- package/dist/Incentive-Ckxpw7EN.cjs.map +1 -0
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
- package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
- package/dist/Incentives/AllowListIncentive.js +36 -36
- package/dist/Incentives/AllowListIncentive.js.map +1 -1
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
- package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
- package/dist/Incentives/CGDAIncentive.js +37 -37
- package/dist/Incentives/CGDAIncentive.js.map +1 -1
- package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
- package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.js +44 -44
- package/dist/Incentives/ERC20Incentive.js.map +1 -1
- package/dist/Incentives/ERC20PeggedIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js +63 -63
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.d.ts.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js +55 -53
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js +45 -45
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js +51 -49
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.js +38 -38
- package/dist/Incentives/ERC20VariableIncentive.js.map +1 -1
- 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.cjs.map +1 -1
- package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
- package/dist/Incentives/PointsIncentive.js +35 -35
- package/dist/Incentives/PointsIncentive.js.map +1 -1
- package/dist/{SimpleDenyList-BlLgvhjE.js → SimpleDenyList-DUO4ex__.js} +32 -32
- package/dist/SimpleDenyList-DUO4ex__.js.map +1 -0
- package/dist/{SimpleDenyList-B2YDJ_gk.cjs → SimpleDenyList-v5G-fPfm.cjs} +2 -2
- package/dist/SimpleDenyList-v5G-fPfm.cjs.map +1 -0
- package/dist/Validator-BA8RC2J6.cjs +2 -0
- package/dist/Validator-BA8RC2J6.cjs.map +1 -0
- package/dist/Validator-D4CzwdB9.js +409 -0
- package/dist/Validator-D4CzwdB9.js.map +1 -0
- package/dist/Validators/LimitedSignerValidator.cjs +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs.map +1 -1
- package/dist/Validators/LimitedSignerValidator.d.ts.map +1 -1
- package/dist/Validators/LimitedSignerValidator.js +39 -39
- package/dist/Validators/LimitedSignerValidator.js.map +1 -1
- package/dist/Validators/PayableLimitedSignerValidator.d.ts +829 -0
- package/dist/Validators/PayableLimitedSignerValidator.d.ts.map +1 -0
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.cjs.map +1 -1
- package/dist/Validators/SignerValidator.d.ts.map +1 -1
- package/dist/Validators/SignerValidator.js +48 -48
- package/dist/Validators/SignerValidator.js.map +1 -1
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.cjs.map +1 -1
- package/dist/Validators/Validator.d.ts +4 -3
- package/dist/Validators/Validator.d.ts.map +1 -1
- package/dist/Validators/Validator.js +14 -50
- package/dist/Validators/Validator.js.map +1 -1
- package/dist/componentInterfaces-D4QdH2Qz.cjs +2 -0
- package/dist/componentInterfaces-D4QdH2Qz.cjs.map +1 -0
- package/dist/componentInterfaces-DCTot4_O.js +24 -0
- package/dist/componentInterfaces-DCTot4_O.js.map +1 -0
- package/dist/{deployments-DKtAq6BT.js → deployments-B-ZU0zVY.js} +61 -34
- package/dist/{deployments-DKtAq6BT.js.map → deployments-B-ZU0zVY.js.map} +1 -1
- package/dist/deployments-CaacquP1.cjs +2 -0
- package/dist/deployments-CaacquP1.cjs.map +1 -0
- package/dist/deployments.json +32 -4
- package/dist/generated-BOBQ2ut4.cjs +3 -0
- package/dist/generated-BOBQ2ut4.cjs.map +1 -0
- package/dist/{generated-CINzoGbl.js → generated-ffteMTHN.js} +1157 -776
- package/dist/generated-ffteMTHN.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +123 -118
- package/package.json +1 -1
- package/src/Actions/EventAction.ts +3 -1
- package/src/AllowLists/SimpleAllowList.ts +3 -1
- package/src/AllowLists/SimpleDenyList.ts +3 -1
- package/src/BoostCore.ts +30 -1
- package/src/BoostRegistry.ts +3 -1
- package/src/Budgets/ManagedBudget.ts +3 -1
- package/src/Budgets/ManagedBudgetWithFees.ts +3 -1
- package/src/Budgets/ManagedBudgetWithFeesV2.ts +3 -1
- package/src/Budgets/TransparentBudget.ts +3 -1
- package/src/Budgets/VestingBudget.ts +3 -1
- package/src/Deployable/DeployableTarget.ts +2 -3
- package/src/Incentives/AllowListIncentive.ts +3 -1
- package/src/Incentives/CGDAIncentive.ts +3 -1
- package/src/Incentives/ERC1155Incentive.ts +3 -1
- package/src/Incentives/ERC20Incentive.ts +3 -1
- package/src/Incentives/ERC20PeggedIncentive.ts +3 -1
- package/src/Incentives/ERC20PeggedVariableCriteriaIncentive.ts +3 -1
- package/src/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.ts +6 -2
- package/src/Incentives/ERC20VariableCriteriaIncentive.ts +3 -1
- package/src/Incentives/ERC20VariableCriteriaIncentiveV2.ts +5 -1
- package/src/Incentives/ERC20VariableIncentive.ts +3 -1
- package/src/Incentives/PointsIncentive.ts +3 -1
- package/src/Validators/LimitedSignerValidator.ts +3 -1
- package/src/Validators/PayableLimitedSignerValidator.test.ts +202 -0
- package/src/Validators/PayableLimitedSignerValidator.ts +667 -0
- package/src/Validators/SignerValidator.ts +3 -1
- package/src/Validators/Validator.ts +7 -1
- package/src/index.ts +1 -0
- package/dist/Budget-B-grnRq9.js.map +0 -1
- package/dist/Budget-uGKa2qzz.cjs +0 -2
- package/dist/Budget-uGKa2qzz.cjs.map +0 -1
- package/dist/Incentive-Bz_g-nID.js.map +0 -1
- package/dist/Incentive-Dufx0ZjH.cjs.map +0 -1
- package/dist/SimpleDenyList-B2YDJ_gk.cjs.map +0 -1
- package/dist/SimpleDenyList-BlLgvhjE.js.map +0 -1
- package/dist/componentInterfaces-C5ig8mCK.cjs +0 -2
- package/dist/componentInterfaces-C5ig8mCK.cjs.map +0 -1
- package/dist/componentInterfaces-Ddus5rIA.js +0 -23
- package/dist/componentInterfaces-Ddus5rIA.js.map +0 -1
- package/dist/deployments-Dk-Z1L2X.cjs +0 -2
- package/dist/deployments-Dk-Z1L2X.cjs.map +0 -1
- package/dist/generated-CINzoGbl.js.map +0 -1
- package/dist/generated-C_JEoLDO.cjs +0 -3
- package/dist/generated-C_JEoLDO.cjs.map +0 -1
package/dist/BoostCore.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { M as y,
|
|
2
|
-
import { waitForTransactionReceipt as D, getAccount as
|
|
3
|
-
import { createClient as
|
|
4
|
-
import {
|
|
5
|
-
import { actionFromAddress as
|
|
6
|
-
import { EventAction as
|
|
7
|
-
import { allowListFromAddress as
|
|
8
|
-
import { SimpleAllowList as
|
|
9
|
-
import { S as N0 } from "./SimpleDenyList-
|
|
10
|
-
import { PassthroughAuth as
|
|
11
|
-
import { prepareBoostPayload as P, Boost as
|
|
12
|
-
import { T as $, b as
|
|
1
|
+
import { M as y, d5 as Z, d6 as J, b as x, d7 as Q, d8 as X, d9 as f0, da as e0, db as t0, dc as a0, dd as b0, de as d0, df as c0, dg as n0, dh as s0, di as i0, dj as o0, dk as r0, dl as u0, dm as h0, dn as l0, dp as g0, dq as w0, dr as v0, ds as A0, dt as m0, du as C0 } from "./generated-ffteMTHN.js";
|
|
2
|
+
import { waitForTransactionReceipt as D, getAccount as y0, getChains as I0, getTransactionReceipt as B0 } from "@wagmi/core";
|
|
3
|
+
import { createClient as P0, custom as E0, zeroAddress as m, parseEventLogs as _, zeroHash as w, keccak256 as p0, encodePacked as _0 } from "viem";
|
|
4
|
+
import { l as F0 } from "./deployments-B-ZU0zVY.js";
|
|
5
|
+
import { actionFromAddress as R0 } from "./Actions/Action.js";
|
|
6
|
+
import { EventAction as V0 } from "./Actions/EventAction.js";
|
|
7
|
+
import { allowListFromAddress as D0, OpenAllowList as S0 } from "./AllowLists/AllowList.js";
|
|
8
|
+
import { SimpleAllowList as T0 } from "./AllowLists/SimpleAllowList.js";
|
|
9
|
+
import { S as N0 } from "./SimpleDenyList-DUO4ex__.js";
|
|
10
|
+
import { PassthroughAuth as L0 } from "./Auth/PassthroughAuth.js";
|
|
11
|
+
import { prepareBoostPayload as P, Boost as F } from "./Boost.js";
|
|
12
|
+
import { T as $, b as O0, M as M0, a as x0 } from "./Budget-ZnzzZsjK.js";
|
|
13
13
|
import { prepareTransfer as R, ManagedBudget as $0 } from "./Budgets/ManagedBudget.js";
|
|
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
|
|
14
|
+
import { Deployable as j0 } from "./Deployable/Deployable.js";
|
|
15
|
+
import { Roles as S } from "./Deployable/DeployableTargetWithRBAC.js";
|
|
16
|
+
import { AllowListIncentive as z0 } from "./Incentives/AllowListIncentive.js";
|
|
17
|
+
import { CGDAIncentive as W0 } from "./Incentives/CGDAIncentive.js";
|
|
18
|
+
import { ERC20Incentive as q0 } from "./Incentives/ERC20Incentive.js";
|
|
19
|
+
import { i as G0, E as k0 } from "./Incentive-CYj6lbM5.js";
|
|
20
|
+
import { ERC20PeggedVariableCriteriaIncentiveV2 as U0 } from "./Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js";
|
|
21
|
+
import { ERC20VariableCriteriaIncentiveV2 as H0 } from "./Incentives/ERC20VariableCriteriaIncentiveV2.js";
|
|
22
|
+
import { PointsIncentive as K0 } from "./Incentives/PointsIncentive.js";
|
|
23
23
|
import { LimitedSignerValidator as Y0 } from "./Validators/LimitedSignerValidator.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { BoostCoreNoIdentifierEmitted as
|
|
24
|
+
import { v as Z0, P as J0, B as j } from "./Validator-D4CzwdB9.js";
|
|
25
|
+
import { SignerValidator as Q0 } from "./Validators/SignerValidator.js";
|
|
26
|
+
import { BoostCoreNoIdentifierEmitted as T, DeployableUnknownOwnerProvidedError as X0, InvalidProtocolChainIdError as f1, BudgetMustAuthorizeBoostCore as e1, MustInitializeBudgetError as t1, IncentiveNotCloneableError as a1, BoostNotFoundError as b1 } from "./errors.js";
|
|
27
27
|
import { assertValidAddressByChainId as h } from "./utils.js";
|
|
28
|
-
import { simulateContract as
|
|
29
|
-
import { parseAccount as
|
|
30
|
-
import { ERC20VariableIncentive as
|
|
31
|
-
const s1 = "0x608060405260048054607d60a31b600160a01b600160e01b0319909116179055600580546001600160401b0319166103e817905534801561003e575f80fd5b50604051614fbc380380614fbc83398101604081905261005d916100e8565b61006681610098565b50600180546001600160a01b039384166001600160a01b03199182161790915560038054929093169116179055610132565b6001600160a01b0316638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a35b50565b6001600160a01b03811681146100d1575f80fd5b5f805f606084860312156100fa575f80fd5b8351610105816100d4565b6020850151909350610116816100d4565b6040850151909250610127816100d4565b809150509250925092565b614e7d8061013f5f395ff3fe6080604052600436106101d0575f3560e01c80637b103999116100fd578063dd7dc9a911610092578063f04e283e11610062578063f04e283e14610551578063f2fde38b14610564578063fee81cf414610577578063fefceca9146105a8575f80fd5b8063dd7dc9a9146104b7578063dd98558c146104d7578063e21ff73114610513578063eccc19a614610532575f80fd5b8063b0e21e8a116100cd578063b0e21e8a14610413578063caa1647b14610464578063d5137b5214610483578063d73792a9146104a2575f80fd5b80637b1039991461038f5780638da5cb5b146103ae5780638fe4f523146103e1578063a92647dc146103f4575f80fd5b806343bc42d3116101735780635edb9eb0116101435780635edb9eb0146103385780635f32c23e14610355578063715018a614610374578063730f9c571461037c575f80fd5b806343bc42d3146102d357806346877b1a146102f25780635045b8661461031157806354d1f13d14610330575f80fd5b8063219f71f0116101ae578063219f71f0146102495780632569296214610268578063346339d51461027057806339a51be51461029c575f80fd5b806313c8e2de146101d457806316614282146102095780631fa2acdc1461022a575b5f80fd5b3480156101df575f80fd5b506101f36101ee366004613e9a565b61060b565b6040516102009190613ef4565b60405180910390f35b348015610214575f80fd5b50610228610223366004613ff2565b610740565b005b348015610235575f80fd5b50610228610244366004614055565b610eb3565b348015610254575f80fd5b506102286102633660046140bb565b611628565b61022861166a565b34801561027b575f80fd5b5061028f61028a366004613e9a565b6116b7565b6040516102009190614143565b3480156102a7575f80fd5b506003546102bb906001600160a01b031681565b6040516001600160a01b039091168152602001610200565b3480156102de575f80fd5b506102286102ed3660046141a1565b61176c565b3480156102fd575f80fd5b5061022861030c3660046140bb565b6117c7565b34801561031c575f80fd5b506004546102bb906001600160a01b031681565b610228611809565b348015610343575f80fd5b505f545b604051908152602001610200565b348015610360575f80fd5b5061022861036f3660046141bc565b611842565b6102286119db565b61022861038a3660046141dc565b6119ee565b34801561039a575f80fd5b506001546102bb906001600160a01b031681565b3480156103b9575f80fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927546102bb565b6102286103ef366004614253565b611e55565b3480156103ff575f80fd5b506002546102bb906001600160a01b031681565b34801561041e575f80fd5b5060045461044b9074010000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610200565b34801561046f575f80fd5b5061022861047e3660046141a1565b611e6a565b34801561048e575f80fd5b506102bb61049d3660046142b8565b611ef2565b3480156104ad575f80fd5b5061044b61271081565b3480156104c2575f80fd5b5060055461044b9067ffffffffffffffff1681565b3480156104e2575f80fd5b506104f66104f1366004614302565b61211e565b604080519283526001600160a01b03909116602083015201610200565b34801561051e575f80fd5b506101f361052d36600461434f565b61257a565b34801561053d575f80fd5b5061022861054c3660046140bb565b612dab565b61022861055f3660046140bb565b612ded565b6102286105723660046140bb565b612e2a565b348015610582575f80fd5b506103476105913660046140bb565b63389a75e1600c9081525f91909152602090205490565b3480156105b3575f80fd5b506105fa6105c2366004613e9a565b60066020525f9081526040902080546001820154600283015460039093015460ff8316936101009093046001600160a01b0316929085565b60405161020095949392919061438e565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e08101919091525f828154811061065c5761065c6143c7565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b039081168452600182015481168486015260028201548116848401526003820154166060840152600481018054835181870281018701909452808452939491936080860193928301828280156106ff57602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116106e1575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b031660609091015292915050565b3068929eee149b4bd21268540361075e5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f80858154811061077d5761077d6143c7565b905f5260205f20906008020190505f8160040185815481106107a1576107a16143c7565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a2906107f6908890889060040161441d565b5f60405180830381865afa158015610810573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526108379190810190614577565b905080515f03610873576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8180602001905181019061088891906145b4565b90505f8080806001855160028111156108a3576108a36140dd565b14806108c057505f855160028111156108be576108be6140dd565b145b15610924575f85606001518060200190518101906108de919061465c565b805160058b0154909650909150612710906109039067ffffffffffffffff16876146cb565b61090d91906146e2565b9350610919848661471a565b9081905291506109da565b600285516002811115610939576109396140dd565b036109a8575f8560600151806020019051810190610957919061472d565b602081015160058b01549096509091506127109061097f9067ffffffffffffffff16876146cb565b61098991906146e2565b9350610995848661471a565b60208201819052905190925090506109da565b6040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6109e58d8d612e50565b5f8181526006602052604081206001810180549394509092879290610a0b90849061471a565b909155505085159150610e99905057600185516002811115610a2f57610a2f6140dd565b1480610a4c57505f85516002811115610a4a57610a4a6140dd565b145b15610c6b5760208501516040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490526001600160a01b038216906323b872dd906064016020604051808303815f875af1158015610abf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ae391906147ba565b506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820187905282169063095ea7b3906044016020604051808303815f875af1158015610b49573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b6d91906147ba565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b038916906330db555f906024015f604051808303815f87803b158015610bc6575f80fd5b505af1158015610bd8573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015610c40573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c6491906147ba565b5050610e59565b60208501516040517ff242432a000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526064810184905260a060848201525f60a48201526001600160a01b0382169063f242432a9060c4015f604051808303815f87803b158015610ce8575f80fd5b505af1158015610cfa573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b81166004830152600160248301528416925063a22cb46591506044015f604051808303815f87803b158015610d5e575f80fd5b505af1158015610d70573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018890526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b158015610dcc575f80fd5b505af1158015610dde573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b158015610e41575f80fd5b505af1158015610e53573d5f803e3d5ffd5b50505050505b604080518581526020810185905233918d918f917f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f31876910160405180910390a45b50505050505050503868929eee149b4bd212685550505050565b3068929eee149b4bd212685403610ed15763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808681548110610ef057610ef06143c7565b905f5260205f20906008020190505f816004018681548110610f1457610f146143c7565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a290610f69908990899060040161441d565b5f60405180830381865afa158015610f83573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610faa9190810190614577565b905080515f03610fe6576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f81806020019051810190610ffb91906145b4565b90505f6001600160a01b038616156110135785611022565b60038501546001600160a01b03165b905061102d81612e7f565b5f8080600185516002811115611045576110456140dd565b148061106257505f85516002811115611060576110606140dd565b145b156110e9575f8560600151806020019051810190611080919061465c565b805160058b0154909550909150612710906110a59067ffffffffffffffff16866146cb565b6110af91906146e2565b92506110bb838561471a565b8082526040805160208101839052919350015b60408051601f19818403018152919052606087015250611174565b6002855160028111156110fe576110fe6140dd565b036109a8575f856060015180602001905181019061111c919061472d565b602081015160058b0154909550909150612710906111449067ffffffffffffffff16866146cb565b61114e91906146e2565b925061115a838561471a565b60208083018290526040519193506110ce91839101614803565b30604080870191909152515f9061118f908790602001614831565b60408051601f19818403018152908290527ffa4ca9b100000000000000000000000000000000000000000000000000000000825291506001600160a01b0386169063fa4ca9b1906111e4908490600401614882565b6020604051808303815f875af1158015611200573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061122491906147ba565b61125a576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6112658f8f612e50565b5f818152600660205260408120600181018054939450909287929061128b90849061471a565b90915550508515925061160d915050576001855160028111156112b0576112b06140dd565b14806112cd57505f855160028111156112cb576112cb6140dd565b145b1561145e5760208501516040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820186905282169063095ea7b3906044016020604051808303815f875af115801561133c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061136091906147ba565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b038916906330db555f906024015f604051808303815f87803b1580156113b9575f80fd5b505af11580156113cb573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015611433573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061145791906147ba565b50506115be565b60208501516040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526001602483015282169063a22cb465906044015f604051808303815f87803b1580156114c3575f80fd5b505af11580156114d5573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b158015611531575f80fd5b505af1158015611543573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b1580156115a6575f80fd5b505af11580156115b8573d5f803e3d5ffd5b50505050505b336001600160a01b03168c8e7f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f318768686604051611604929190918252602082015260400190565b60405180910390a45b50505050505050503868929eee149b4bd21268555050505050565b611630612f5e565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b6116ee6040805160a08101909152805f81526020015f6001600160a01b031681526020015f81526020015f81526020015f81525090565b5f8281526006602052604090819020815160a081019092528054829060ff16600281111561171e5761171e6140dd565b600281111561172f5761172f6140dd565b8152815461010090046001600160a01b03166020820152600182015460408201526002820154606082015260039091015460809091015292915050565b611774612f5e565b6004805467ffffffffffffffff90921674010000000000000000000000000000000000000000027fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6117cf612f5e565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b3068929eee149b4bd2126854036118605763ab143c065f526004601cfd5b3068929eee149b4bd21268555f6118778383612e50565b5f81815260066020526040812081549293509181908690811061189c5761189c6143c7565b905f5260205f20906008020160040184815481106118bc576118bc6143c7565b5f918252602082200154600284015460018501546001600160a01b039092169350906118eb90612710906146cb565b6118f591906146e2565b90505f6119028484612f93565b9050818111156119c6575f6119178383614894565b90505f61271067ffffffffffffffff1686600201548361193791906146cb565b61194191906146e2565b905061194d86826130e1565b808660010154106119765780866001015f82825461196b9190614894565b9091555061197d9050565b5f60018701555b6003546040518281526001600160a01b039091169089908b907f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b179060200160405180910390a450505b50505050503868929eee149b4bd21268555050565b6119e3612f5e565b6119ec5f61321d565b565b3068929eee149b4bd212685403611a0c5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808781548110611a2b57611a2b6143c7565b905f5260205f20906008020190505f611a448888612e50565b5f81815260066020526040812060048501805493945090928a908110611a6c57611a6c6143c7565b5f9182526020909120015460028501546040517fe3f756de0000000000000000000000000000000000000000000000000000000081526001600160a01b03928316935091169063e3f756de90611aca9088908b908b906004016148a7565b602060405180830381865afa158015611ae5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b0991906147ba565b611b3f576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018401546040517f703b69000000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063703b6900903490611b94908e908e908b908e908e906004016148d2565b60206040518083038185885af1158015611bb0573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611bd591906147ba565b611c0b576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81545f9061010090046001600160a01b0316611c27575f611c31565b611c318383612f93565b6040517fbb1757cf0000000000000000000000000000000000000000000000000000000081529091506001600160a01b0383169063bb1757cf90611c7d9089908c908c906004016148a7565b6020604051808303815f875af1158015611c99573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cbd91906147ba565b611d02578588886040517f4139d81d000000000000000000000000000000000000000000000000000000008152600401611cf9939291906148a7565b60405180910390fd5b82545f9061010090046001600160a01b0316611d1e575f611d28565b611d288484612f93565b90505f818311611d38575f611d42565b611d428284614894565b90505f61271067ffffffffffffffff16866002015483611d6291906146cb565b611d6c91906146e2565b90508015611df257611d7e86826130e1565b80866001015f828254611d919190614894565b9250508190555060035f9054906101000a90046001600160a01b03166001600160a01b03168d8f7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b1784604051611de991815260200190565b60405180910390a45b886001600160a01b03168d8f7f0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b2595478f8f8f604051611e31939291906148a7565b60405180910390a450505050505050503868929eee149b4bd2126855505050505050565b611e638585858585336119ee565b5050505050565b611e72612f5e565b61271067ffffffffffffffff821610611eb7576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b5f3068929eee149b4bd212685403611f115763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808481548110611f3057611f306143c7565b5f918252602090912060089091020160078101549091506001600160a01b03163314611f88576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6003810154611f9f906001600160a01b0316612e7f565b6004808201805491549091905f906001600160a01b0316611fc0575f612052565b6004546040516001600160a01b039091169063c7f1ecff90611fe8908a908a9060200161490b565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016120139190614882565b602060405180830381865afa15801561202e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061205291906149c2565b905061208861206087614a2a565b600386015460058701546001600160a01b039091169067ffffffffffffffff16848b87613275565b83546001810185555f858152602080822090920180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03851690811790915560405191825292975084918a917f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae910160405180910390a4505050503868929eee149b4bd212685592915050565b5f803068929eee149b4bd21268540361213e5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f80858154811061215d5761215d6143c7565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b0390811684526001820154811684860152600282015481168484015260038201541660608401526004810180548351818702810187019094528084529394919360808601939283018282801561220057602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116121e2575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b039081166060928301529082015191925016331461227d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6122888686612e50565b5f8181526006602052604081209192506122a4898b018b614a93565b90505f81602001518060200190518101906122bf9190614b30565b90505f61271067ffffffffffffffff168460020154836122df91906146cb565b6122e991906146e2565b90508015612457576001845460ff166002811115612309576123096140dd565b148061232957505f845460ff166002811115612327576123276140dd565b145b15612351578251845461234c916101009091046001600160a01b03169083613615565b61240e565b6002845460ff166002811115612369576123696140dd565b0361240e578354835160038601546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b1580156123f7575f80fd5b505af1158015612409573d5f803e3d5ffd5b505050505b825f01516001600160a01b0316898b7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b178460405161244e91815260200190565b60405180910390a45b5f8087608001518b8151811061246f5761246f6143c7565b60200260200101516001600160a01b031663474f5a44866040516020016124969190614b47565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016124c19190614882565b60408051808303815f875af11580156124dc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125009190614b74565b91509150815f0361254357338e8e6040517f9ecd71a9000000000000000000000000000000000000000000000000000000008152600401611cf9939291906148a7565b82866001015f8282546125569190614894565b90915550503868929eee149b4bd2126855909d909c509a5050505050505050505050565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e081019190915260025433906001600160a01b03161580159061265757506002546040517ffe9fbb800000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301529091169063fe9fbb8090602401602060405180830381865afa158015612631573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061265591906147ba565b155b1561268e576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3068929eee149b4bd2126854036126ac5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f6126f785858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061366892505050565b80602001905181019061270a9190614c9c565b9050612718815f0151612e7f565b5f805460018101825590805260e082015160089091027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56a810180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b039485161790915583517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e566830180549092169084161790556004547f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563909101911661281c5760a0820151600454612817919074010000000000000000000000000000000000000000900467ffffffffffffffff16614dc7565b6128b4565b60a0820151600480546040517fb1539a6b0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163b1539a6b9161286b918b918b910161441d565b602060405180830381865afa158015612886573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128aa9190614de7565b6128b49190614dc7565b6005820180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff9290921691909117905560c08201516006820155602082015161292b907fe6715795000000000000000000000000000000000000000000000000000000009060016136fb565b81547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03919091161781556060820151612990907fe2089f79000000000000000000000000000000000000000000000000000000009060016136fb565b6002820180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039283161790556004545f91166129d6575f612a5f565b600480546040517fc7f1ecff0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163c7f1ecff91612a20918b918b910161441d565b602060405180830381865afa158015612a3b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a5f91906149c2565b608084015184516005850154929350612a829267ffffffffffffffff168461371c565b8051612a98916004850191602090910190613e0b565b506040830151602001516001600160a01b031615612ae557612ae07f5912b89c00000000000000000000000000000000000000000000000000000000846040015160016136fb565b612b9d565b81546040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa158015612b63573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b8791906147ba565b612b91575f612b9d565b81546001600160a01b03165b6001830180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03929092169182179055612c34576040517fe1c444480000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201525f6024820152604401611cf9565b815460078301545f546001600160a01b039283169290911690612c5990600190614894565b6004850154600186015460028701546003880154604080519485526001600160a01b03938416602086015291831684830152919091166060830152517f116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd9181900360800190a4604080516101008101825283546001600160a01b03908116825260018501548116602080840191909152600286015482168385015260038601549091166060830152600485018054845181840281018401909552808552929386936080860193919291830182828015612d5957602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311612d3b575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b03166060909101523868929eee149b4bd2126855979650505050505050565b612db3612f5e565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b612df5612f5e565b63389a75e1600c52805f526020600c208054421115612e1b57636f5e88185f526004601cfd5b5f9055612e278161321d565b50565b612e32612f5e565b8060601b612e4757637448fbae5f526004601cfd5b612e278161321d565b604080516020808201859052818301849052825180830384018152606090920190925280519101205b92915050565b612ea97fe49cedd7000000000000000000000000000000000000000000000000000000008261384e565b6040517ffe9fbb800000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0382169063fe9fbb8090602401602060405180830381865afa158015612f04573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612f2891906147ba565b612e27576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146119ec576382b429005f526004601cfd5b5f6001835460ff166002811115612fac57612fac6140dd565b1480612fcc57505f835460ff166002811115612fca57612fca6140dd565b145b156130635782546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152610100909204909116906370a08231906024015b602060405180830381865afa158015613038573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061305c9190614b30565b9050612e79565b6002835460ff16600281111561307b5761307b6140dd565b036130d957825460038401546040517efdd58e0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526024820192909252610100909204169062fdd58e9060440161301d565b505f92915050565b6001825460ff1660028111156130f9576130f96140dd565b148061311957505f825460ff166002811115613117576131176140dd565b145b1561315c57600354825461313f916001600160a01b036101009092048216911683613615565b81546131589061010090046001600160a01b031661396c565b5050565b6002825460ff166002811115613174576131746140dd565b0361315857815460038054908401546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b158015613203575f80fd5b505af1158015613215573d5f803e3d5ffd5b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f80876040015190506132ac7fa921670500000000000000000000000000000000000000000000000000000000896020015161384e565b875161331b5760208801516040517fe1c444480000000000000000000000000000000000000000000000000000000081527fa92167050000000000000000000000000000000000000000000000000000000060048201526001600160a01b039091166024820152604401611cf9565b6133467fa921670500000000000000000000000000000000000000000000000000000000895f6136fb565b91505f826001600160a01b0316634e7165a2836040518263ffffffff1660e01b81526004016133759190614882565b5f60405180830381865afa15801561338f573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526133b69190810190614577565b905080515f14613597575f806133cc838a613a28565b6040517ffa4ca9b100000000000000000000000000000000000000000000000000000000815291935091506001600160a01b038b169063fa4ca9b190613416908590600401614882565b6020604051808303815f875af1158015613432573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061345691906147ba565b61348c576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517ffa4ca9b10000000000000000000000000000000000000000000000000000000081526001600160a01b038b169063fa4ca9b1906134d1908690600401614882565b6020604051808303815f875af11580156134ed573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061351191906147ba565b613547576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8380602001905181019061355c91906145b4565b905061359388886001600160a01b038c1661357b57836020015161357d565b8b5b858e67ffffffffffffffff16865f01518b613bc1565b5050505b6040517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063439fab91906135dc908590600401614882565b5f604051808303815f87803b1580156135f3575f80fd5b505af1158015613605573d5f803e3d5ffd5b5050505050509695505050505050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661365e57803d853b15171061365e576390b8ec185f526004601cfd5b505f603452505050565b60608151156136f65760405190506020810160048301805184518501811983525b808610156136e0576001860195508551601f1a806136d1576001870196508651601f1a5f198652607f81116136c057600181013687375b607f16949094016001019350613689565b80855350600184019350613689565b509052601f198282030182525f81526020016040525b919050565b5f61370a84846020015161384e565b6137148383613cfd565b949350505050565b5f80546060919061372f90600190614894565b9050855167ffffffffffffffff81111561374b5761374b614430565b604051908082528060200260200182016040528015613774578160200160208202803683370190505b5091505f5b8651811015613844576137a9878281518110613797576137976143c7565b60200260200101518787878686613275565b8382815181106137bb576137bb6143c7565b60200260200101906001600160a01b031690816001600160a01b0316815250508281815181106137ed576137ed6143c7565b60200260200101516001600160a01b031681837f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae6001604051613834911515815260200190565b60405180910390a4600101613779565b5050949350505050565b6001600160a01b038116158061390257506040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa1580156138dc573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061390091906147ba565b155b15613158576040517fe1c444480000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b0382166024820152604401611cf9565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156139c9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906139ed9190614b30565b90505f81118015613a09575060055467ffffffffffffffff1681105b1561315857600354613158906001600160a01b03848116911683613615565b60605f8084806020019051810190613a4091906145b4565b905083600182516002811115613a5857613a586140dd565b1480613a7557505f82516002811115613a7357613a736140dd565b145b15613b23575f8260600151806020019051810190613a93919061465c565b80519091505f9061271090613ab39067ffffffffffffffff8616906146cb565b613abd91906146e2565b6040805160208082018352838252825190810184905292935091015b60408051601f198184030181529181526060870191909152308682015251613b05908690602001614831565b60405160208183030381529060405282965096505050505050613bba565b600282516002811115613b3857613b386140dd565b036109a8575f8260600151806020019051810190613b56919061472d565b90505f61271067ffffffffffffffff168367ffffffffffffffff168360200151613b8091906146cb565b613b8a91906146e2565b604080516060810182528451815260208082018490528583015182840152915192935091613ad991839101614803565b9250929050565b5f6002836002811115613bd657613bd66140dd565b03613bf35781806020019051810190613bef9190614e02565b5090505b5f6040518060a00160405280856002811115613c1157613c116140dd565b8152602001886001600160a01b031681526020018781526020018681526020018381525090508060065f613c458c8c612e50565b815260208101919091526040015f208151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001836002811115613c9057613c906140dd565b0217905550602082015181546001600160a01b03909116610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff9091161781556040820151600182015560608201516002820155608090910151600390910155505050505050505050565b81515f90613d0f578260200151613d25565b613d2583602001516001600160a01b0316613db4565b83519091508015613d335750815b15612e795760408084015190517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0383169163439fab9191613d819190600401614882565b5f604051808303815f87803b158015613d98575f80fd5b505af1158015613daa573d5f803e3d5ffd5b5050505092915050565b5f612e795f835f6c5af43d3d93803e602a57fd5bf36021528160145273602c3d8160093d39f33d3d3d3d363d3d37363d735f526035600c84f0905080613e015763301164255f526004601cfd5b5f60215292915050565b828054828255905f5260205f20908101928215613e76579160200282015b82811115613e7657825182547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178255602090920191600190910190613e29565b50613e82929150613e86565b5090565b5b80821115613e82575f8155600101613e87565b5f60208284031215613eaa575f80fd5b5035919050565b5f8151808452602084019350602083015f5b82811015613eea5781516001600160a01b0316865260209586019590910190600101613ec3565b5093949350505050565b602081526001600160a01b0382511660208201525f6020830151613f2360408401826001600160a01b03169052565b5060408301516001600160a01b03811660608401525060608301516001600160a01b038116608084015250608083015161010060a0840152613f69610120840182613eb1565b905060a0840151613f8660c085018267ffffffffffffffff169052565b5060c084015160e084015260e0840151613fac6101008501826001600160a01b03169052565b509392505050565b5f8083601f840112613fc4575f80fd5b50813567ffffffffffffffff811115613fdb575f80fd5b602083019150836020828501011115613bba575f80fd5b5f805f8060608587031215614005575f80fd5b8435935060208501359250604085013567ffffffffffffffff811115614029575f80fd5b61403587828801613fb4565b95989497509550505050565b6001600160a01b0381168114612e27575f80fd5b5f805f805f60808688031215614069575f80fd5b8535945060208601359350604086013567ffffffffffffffff81111561408d575f80fd5b61409988828901613fb4565b90945092505060608601356140ad81614041565b809150509295509295909350565b5f602082840312156140cb575f80fd5b81356140d681614041565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6003811061413f577f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b9052565b5f60a08201905061415582845161410a565b6001600160a01b03602084015116602083015260408301516040830152606083015160608301526080830151608083015292915050565b67ffffffffffffffff81168114612e27575f80fd5b5f602082840312156141b1575f80fd5b81356140d68161418c565b5f80604083850312156141cd575f80fd5b50508035926020909101359150565b5f805f805f8060a087890312156141f1575f80fd5b8635955060208701359450604087013561420a81614041565b9350606087013567ffffffffffffffff811115614225575f80fd5b61423189828a01613fb4565b909450925050608087013561424581614041565b809150509295509295509295565b5f805f805f60808688031215614267575f80fd5b8535945060208601359350604086013561428081614041565b9250606086013567ffffffffffffffff81111561429b575f80fd5b6142a788828901613fb4565b969995985093965092949392505050565b5f80604083850312156142c9575f80fd5b82359150602083013567ffffffffffffffff8111156142e6575f80fd5b8301606081860312156142f7575f80fd5b809150509250929050565b5f805f8060608587031215614315575f80fd5b843567ffffffffffffffff81111561432b575f80fd5b61433787828801613fb4565b90989097506020870135966040013595509350505050565b5f8060208385031215614360575f80fd5b823567ffffffffffffffff811115614376575f80fd5b61438285828601613fb4565b90969095509350505050565b60a0810161439c828861410a565b6001600160a01b03861660208301528460408301528360608301528260808301529695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81835281816020850137505f602082840101525f6020601f19601f840116840101905092915050565b602081525f6137146020830184866143f4565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff8111828210171561448057614480614430565b60405290565b6040516060810167ffffffffffffffff8111828210171561448057614480614430565b604051610100810167ffffffffffffffff8111828210171561448057614480614430565b604051601f8201601f1916810167ffffffffffffffff811182821017156144f6576144f6614430565b604052919050565b5f67ffffffffffffffff82111561451757614517614430565b50601f01601f191660200190565b5f82601f830112614534575f80fd5b8151614547614542826144fe565b6144cd565b81815284602083860101111561455b575f80fd5b8160208501602083015e5f918101602001919091529392505050565b5f60208284031215614587575f80fd5b815167ffffffffffffffff81111561459d575f80fd5b61371484828501614525565b80516136f681614041565b5f602082840312156145c4575f80fd5b815167ffffffffffffffff8111156145da575f80fd5b8201608081850312156145eb575f80fd5b6145f361445d565b815160038110614601575f80fd5b8152602082015161461181614041565b6020820152604082015161462481614041565b6040820152606082015167ffffffffffffffff811115614642575f80fd5b61464e86828501614525565b606083015250949350505050565b5f602082840312801561466d575f80fd5b506040516020810167ffffffffffffffff8111828210171561469157614691614430565b6040529151825250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8082028115828204841417612e7957612e7961469e565b5f82614715577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b80820180821115612e7957612e7961469e565b5f6020828403121561473d575f80fd5b815167ffffffffffffffff811115614753575f80fd5b820160608185031215614764575f80fd5b61476c614486565b8151815260208083015190820152604082015167ffffffffffffffff811115614793575f80fd5b61479f86828501614525565b604083015250949350505050565b8015158114612e27575f80fd5b5f602082840312156147ca575f80fd5b81516140d6816147ad565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b6020815281516020820152602082015160408201525f604083015160608084015261371460808401826147d5565b6020815261484360208201835161410a565b6001600160a01b0360208301511660408201526001600160a01b0360408301511660608201525f606083015160808084015261371460a08401826147d5565b602081525f6140d660208301846147d5565b81810381811115612e7957612e7961469e565b6001600160a01b0384168152604060208201525f6148c96040830184866143f4565b95945050505050565b8581528460208201526001600160a01b0384166040820152608060608201525f6149006080830184866143f4565b979650505050505050565b828152604060208201525f8235614921816147ad565b15156040830152602083013561493681614041565b6001600160a01b031660608301526040830135368490037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112614979575f80fd5b830160208101903567ffffffffffffffff811115614995575f80fd5b8036038213156149a3575f80fd5b606060808501526149b860a0850182846143f4565b9695505050505050565b5f602082840312156149d2575f80fd5b81516140d681614041565b5f82601f8301126149ec575f80fd5b81356149fa614542826144fe565b818152846020838601011115614a0e575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60608236031215614a3a575f80fd5b614a42614486565b8235614a4d816147ad565b81526020830135614a5d81614041565b6020820152604083013567ffffffffffffffff811115614a7b575f80fd5b614a87368286016149dd565b60408301525092915050565b5f60208284031215614aa3575f80fd5b813567ffffffffffffffff811115614ab9575f80fd5b820160408185031215614aca575f80fd5b6040805190810167ffffffffffffffff81118282101715614aed57614aed614430565b6040528135614afb81614041565b8152602082013567ffffffffffffffff811115614b16575f80fd5b614b22868285016149dd565b602083015250949350505050565b5f60208284031215614b40575f80fd5b5051919050565b602081526001600160a01b0382511660208201525f602083015160408084015261371460608401826147d5565b5f8060408385031215614b85575f80fd5b825160208401519092506142f781614041565b5f60608284031215614ba8575f80fd5b614bb0614486565b90508151614bbd816147ad565b81526020820151614bcd81614041565b6020820152604082015167ffffffffffffffff811115614beb575f80fd5b614a8784828501614525565b5f82601f830112614c06575f80fd5b815167ffffffffffffffff811115614c2057614c20614430565b8060051b614c30602082016144cd565b91825260208185018101929081019086841115614c4b575f80fd5b6020860192505b838310156149b857825167ffffffffffffffff811115614c70575f80fd5b614c7f886020838a0101614b98565b83525060209283019290910190614c52565b80516136f68161418c565b5f60208284031215614cac575f80fd5b815167ffffffffffffffff811115614cc2575f80fd5b82016101008185031215614cd4575f80fd5b614cdc6144a9565b614ce5826145a9565b8152602082015167ffffffffffffffff811115614d00575f80fd5b614d0c86828501614b98565b602083015250604082015167ffffffffffffffff811115614d2b575f80fd5b614d3786828501614b98565b604083015250606082015167ffffffffffffffff811115614d56575f80fd5b614d6286828501614b98565b606083015250608082015167ffffffffffffffff811115614d81575f80fd5b614d8d86828501614bf7565b608083015250614d9f60a08301614c91565b60a082015260c08281015190820152614dba60e083016145a9565b60e0820152949350505050565b67ffffffffffffffff8181168382160190811115612e7957612e7961469e565b5f60208284031215614df7575f80fd5b81516140d68161418c565b5f8060408385031215614e13575f80fd5b8251602084015190925067ffffffffffffffff811115614e31575f80fd5b614e3d85828601614525565b915050925092905056fea26469706673582212208286ae56352689fb64c76c3bbaaa898df87482cd394c79c101f009e07f87c00c64736f6c634300081a0033";
|
|
32
|
-
function
|
|
28
|
+
import { simulateContract as d1, writeContract as c1 } from "viem/actions";
|
|
29
|
+
import { parseAccount as n1, getAddress as s1 } from "viem/utils";
|
|
30
|
+
import { ERC20VariableIncentive as i1 } from "./Incentives/ERC20VariableIncentive.js";
|
|
31
|
+
const o1 = "0x608060405260048054607d60a31b600160a01b600160e01b0319909116179055600580546001600160401b0319166103e817905534801561003e575f80fd5b50604051614fbc380380614fbc83398101604081905261005d916100e8565b61006681610098565b50600180546001600160a01b039384166001600160a01b03199182161790915560038054929093169116179055610132565b6001600160a01b0316638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a35b50565b6001600160a01b03811681146100d1575f80fd5b5f805f606084860312156100fa575f80fd5b8351610105816100d4565b6020850151909350610116816100d4565b6040850151909250610127816100d4565b809150509250925092565b614e7d8061013f5f395ff3fe6080604052600436106101d0575f3560e01c80637b103999116100fd578063dd7dc9a911610092578063f04e283e11610062578063f04e283e14610551578063f2fde38b14610564578063fee81cf414610577578063fefceca9146105a8575f80fd5b8063dd7dc9a9146104b7578063dd98558c146104d7578063e21ff73114610513578063eccc19a614610532575f80fd5b8063b0e21e8a116100cd578063b0e21e8a14610413578063caa1647b14610464578063d5137b5214610483578063d73792a9146104a2575f80fd5b80637b1039991461038f5780638da5cb5b146103ae5780638fe4f523146103e1578063a92647dc146103f4575f80fd5b806343bc42d3116101735780635edb9eb0116101435780635edb9eb0146103385780635f32c23e14610355578063715018a614610374578063730f9c571461037c575f80fd5b806343bc42d3146102d357806346877b1a146102f25780635045b8661461031157806354d1f13d14610330575f80fd5b8063219f71f0116101ae578063219f71f0146102495780632569296214610268578063346339d51461027057806339a51be51461029c575f80fd5b806313c8e2de146101d457806316614282146102095780631fa2acdc1461022a575b5f80fd5b3480156101df575f80fd5b506101f36101ee366004613e9a565b61060b565b6040516102009190613ef4565b60405180910390f35b348015610214575f80fd5b50610228610223366004613ff2565b610740565b005b348015610235575f80fd5b50610228610244366004614055565b610eb3565b348015610254575f80fd5b506102286102633660046140bb565b611628565b61022861166a565b34801561027b575f80fd5b5061028f61028a366004613e9a565b6116b7565b6040516102009190614143565b3480156102a7575f80fd5b506003546102bb906001600160a01b031681565b6040516001600160a01b039091168152602001610200565b3480156102de575f80fd5b506102286102ed3660046141a1565b61176c565b3480156102fd575f80fd5b5061022861030c3660046140bb565b6117c7565b34801561031c575f80fd5b506004546102bb906001600160a01b031681565b610228611809565b348015610343575f80fd5b505f545b604051908152602001610200565b348015610360575f80fd5b5061022861036f3660046141bc565b611842565b6102286119db565b61022861038a3660046141dc565b6119ee565b34801561039a575f80fd5b506001546102bb906001600160a01b031681565b3480156103b9575f80fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927546102bb565b6102286103ef366004614253565b611e55565b3480156103ff575f80fd5b506002546102bb906001600160a01b031681565b34801561041e575f80fd5b5060045461044b9074010000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610200565b34801561046f575f80fd5b5061022861047e3660046141a1565b611e6a565b34801561048e575f80fd5b506102bb61049d3660046142b8565b611ef2565b3480156104ad575f80fd5b5061044b61271081565b3480156104c2575f80fd5b5060055461044b9067ffffffffffffffff1681565b3480156104e2575f80fd5b506104f66104f1366004614302565b61211e565b604080519283526001600160a01b03909116602083015201610200565b34801561051e575f80fd5b506101f361052d36600461434f565b61257a565b34801561053d575f80fd5b5061022861054c3660046140bb565b612dab565b61022861055f3660046140bb565b612ded565b6102286105723660046140bb565b612e2a565b348015610582575f80fd5b506103476105913660046140bb565b63389a75e1600c9081525f91909152602090205490565b3480156105b3575f80fd5b506105fa6105c2366004613e9a565b60066020525f9081526040902080546001820154600283015460039093015460ff8316936101009093046001600160a01b0316929085565b60405161020095949392919061438e565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e08101919091525f828154811061065c5761065c6143c7565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b039081168452600182015481168486015260028201548116848401526003820154166060840152600481018054835181870281018701909452808452939491936080860193928301828280156106ff57602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116106e1575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b031660609091015292915050565b3068929eee149b4bd21268540361075e5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f80858154811061077d5761077d6143c7565b905f5260205f20906008020190505f8160040185815481106107a1576107a16143c7565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a2906107f6908890889060040161441d565b5f60405180830381865afa158015610810573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526108379190810190614577565b905080515f03610873576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8180602001905181019061088891906145b4565b90505f8080806001855160028111156108a3576108a36140dd565b14806108c057505f855160028111156108be576108be6140dd565b145b15610924575f85606001518060200190518101906108de919061465c565b805160058b0154909650909150612710906109039067ffffffffffffffff16876146cb565b61090d91906146e2565b9350610919848661471a565b9081905291506109da565b600285516002811115610939576109396140dd565b036109a8575f8560600151806020019051810190610957919061472d565b602081015160058b01549096509091506127109061097f9067ffffffffffffffff16876146cb565b61098991906146e2565b9350610995848661471a565b60208201819052905190925090506109da565b6040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6109e58d8d612e50565b5f8181526006602052604081206001810180549394509092879290610a0b90849061471a565b909155505085159150610e99905057600185516002811115610a2f57610a2f6140dd565b1480610a4c57505f85516002811115610a4a57610a4a6140dd565b145b15610c6b5760208501516040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490526001600160a01b038216906323b872dd906064016020604051808303815f875af1158015610abf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ae391906147ba565b506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820187905282169063095ea7b3906044016020604051808303815f875af1158015610b49573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b6d91906147ba565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b038916906330db555f906024015f604051808303815f87803b158015610bc6575f80fd5b505af1158015610bd8573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015610c40573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c6491906147ba565b5050610e59565b60208501516040517ff242432a000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526064810184905260a060848201525f60a48201526001600160a01b0382169063f242432a9060c4015f604051808303815f87803b158015610ce8575f80fd5b505af1158015610cfa573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b81166004830152600160248301528416925063a22cb46591506044015f604051808303815f87803b158015610d5e575f80fd5b505af1158015610d70573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018890526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b158015610dcc575f80fd5b505af1158015610dde573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b158015610e41575f80fd5b505af1158015610e53573d5f803e3d5ffd5b50505050505b604080518581526020810185905233918d918f917f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f31876910160405180910390a45b50505050505050503868929eee149b4bd212685550505050565b3068929eee149b4bd212685403610ed15763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808681548110610ef057610ef06143c7565b905f5260205f20906008020190505f816004018681548110610f1457610f146143c7565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a290610f69908990899060040161441d565b5f60405180830381865afa158015610f83573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610faa9190810190614577565b905080515f03610fe6576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f81806020019051810190610ffb91906145b4565b90505f6001600160a01b038616156110135785611022565b60038501546001600160a01b03165b905061102d81612e7f565b5f8080600185516002811115611045576110456140dd565b148061106257505f85516002811115611060576110606140dd565b145b156110e9575f8560600151806020019051810190611080919061465c565b805160058b0154909550909150612710906110a59067ffffffffffffffff16866146cb565b6110af91906146e2565b92506110bb838561471a565b8082526040805160208101839052919350015b60408051601f19818403018152919052606087015250611174565b6002855160028111156110fe576110fe6140dd565b036109a8575f856060015180602001905181019061111c919061472d565b602081015160058b0154909550909150612710906111449067ffffffffffffffff16866146cb565b61114e91906146e2565b925061115a838561471a565b60208083018290526040519193506110ce91839101614803565b30604080870191909152515f9061118f908790602001614831565b60408051601f19818403018152908290527ffa4ca9b100000000000000000000000000000000000000000000000000000000825291506001600160a01b0386169063fa4ca9b1906111e4908490600401614882565b6020604051808303815f875af1158015611200573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061122491906147ba565b61125a576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6112658f8f612e50565b5f818152600660205260408120600181018054939450909287929061128b90849061471a565b90915550508515925061160d915050576001855160028111156112b0576112b06140dd565b14806112cd57505f855160028111156112cb576112cb6140dd565b145b1561145e5760208501516040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820186905282169063095ea7b3906044016020604051808303815f875af115801561133c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061136091906147ba565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b038916906330db555f906024015f604051808303815f87803b1580156113b9575f80fd5b505af11580156113cb573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015611433573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061145791906147ba565b50506115be565b60208501516040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526001602483015282169063a22cb465906044015f604051808303815f87803b1580156114c3575f80fd5b505af11580156114d5573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b158015611531575f80fd5b505af1158015611543573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b1580156115a6575f80fd5b505af11580156115b8573d5f803e3d5ffd5b50505050505b336001600160a01b03168c8e7f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f318768686604051611604929190918252602082015260400190565b60405180910390a45b50505050505050503868929eee149b4bd21268555050505050565b611630612f5e565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b6116ee6040805160a08101909152805f81526020015f6001600160a01b031681526020015f81526020015f81526020015f81525090565b5f8281526006602052604090819020815160a081019092528054829060ff16600281111561171e5761171e6140dd565b600281111561172f5761172f6140dd565b8152815461010090046001600160a01b03166020820152600182015460408201526002820154606082015260039091015460809091015292915050565b611774612f5e565b6004805467ffffffffffffffff90921674010000000000000000000000000000000000000000027fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6117cf612f5e565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b3068929eee149b4bd2126854036118605763ab143c065f526004601cfd5b3068929eee149b4bd21268555f6118778383612e50565b5f81815260066020526040812081549293509181908690811061189c5761189c6143c7565b905f5260205f20906008020160040184815481106118bc576118bc6143c7565b5f918252602082200154600284015460018501546001600160a01b039092169350906118eb90612710906146cb565b6118f591906146e2565b90505f6119028484612f93565b9050818111156119c6575f6119178383614894565b90505f61271067ffffffffffffffff1686600201548361193791906146cb565b61194191906146e2565b905061194d86826130e1565b808660010154106119765780866001015f82825461196b9190614894565b9091555061197d9050565b5f60018701555b6003546040518281526001600160a01b039091169089908b907f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b179060200160405180910390a450505b50505050503868929eee149b4bd21268555050565b6119e3612f5e565b6119ec5f61321d565b565b3068929eee149b4bd212685403611a0c5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808781548110611a2b57611a2b6143c7565b905f5260205f20906008020190505f611a448888612e50565b5f81815260066020526040812060048501805493945090928a908110611a6c57611a6c6143c7565b5f9182526020909120015460028501546040517fe3f756de0000000000000000000000000000000000000000000000000000000081526001600160a01b03928316935091169063e3f756de90611aca9088908b908b906004016148a7565b602060405180830381865afa158015611ae5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b0991906147ba565b611b3f576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018401546040517f703b69000000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063703b6900903490611b94908e908e908b908e908e906004016148d2565b60206040518083038185885af1158015611bb0573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611bd591906147ba565b611c0b576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81545f9061010090046001600160a01b0316611c27575f611c31565b611c318383612f93565b6040517fbb1757cf0000000000000000000000000000000000000000000000000000000081529091506001600160a01b0383169063bb1757cf90611c7d9089908c908c906004016148a7565b6020604051808303815f875af1158015611c99573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cbd91906147ba565b611d02578588886040517f4139d81d000000000000000000000000000000000000000000000000000000008152600401611cf9939291906148a7565b60405180910390fd5b82545f9061010090046001600160a01b0316611d1e575f611d28565b611d288484612f93565b90505f818311611d38575f611d42565b611d428284614894565b90505f61271067ffffffffffffffff16866002015483611d6291906146cb565b611d6c91906146e2565b90508015611df257611d7e86826130e1565b80866001015f828254611d919190614894565b9250508190555060035f9054906101000a90046001600160a01b03166001600160a01b03168d8f7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b1784604051611de991815260200190565b60405180910390a45b886001600160a01b03168d8f7f0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b2595478f8f8f604051611e31939291906148a7565b60405180910390a450505050505050503868929eee149b4bd2126855505050505050565b611e638585858585336119ee565b5050505050565b611e72612f5e565b61271067ffffffffffffffff821610611eb7576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b5f3068929eee149b4bd212685403611f115763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808481548110611f3057611f306143c7565b5f918252602090912060089091020160078101549091506001600160a01b03163314611f88576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6003810154611f9f906001600160a01b0316612e7f565b6004808201805491549091905f906001600160a01b0316611fc0575f612052565b6004546040516001600160a01b039091169063c7f1ecff90611fe8908a908a9060200161490b565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016120139190614882565b602060405180830381865afa15801561202e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061205291906149c2565b905061208861206087614a2a565b600386015460058701546001600160a01b039091169067ffffffffffffffff16848b87613275565b83546001810185555f858152602080822090920180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03851690811790915560405191825292975084918a917f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae910160405180910390a4505050503868929eee149b4bd212685592915050565b5f803068929eee149b4bd21268540361213e5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f80858154811061215d5761215d6143c7565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b0390811684526001820154811684860152600282015481168484015260038201541660608401526004810180548351818702810187019094528084529394919360808601939283018282801561220057602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116121e2575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b039081166060928301529082015191925016331461227d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6122888686612e50565b5f8181526006602052604081209192506122a4898b018b614a93565b90505f81602001518060200190518101906122bf9190614b30565b90505f61271067ffffffffffffffff168460020154836122df91906146cb565b6122e991906146e2565b90508015612457576001845460ff166002811115612309576123096140dd565b148061232957505f845460ff166002811115612327576123276140dd565b145b15612351578251845461234c916101009091046001600160a01b03169083613615565b61240e565b6002845460ff166002811115612369576123696140dd565b0361240e578354835160038601546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b1580156123f7575f80fd5b505af1158015612409573d5f803e3d5ffd5b505050505b825f01516001600160a01b0316898b7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b178460405161244e91815260200190565b60405180910390a45b5f8087608001518b8151811061246f5761246f6143c7565b60200260200101516001600160a01b031663474f5a44866040516020016124969190614b47565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016124c19190614882565b60408051808303815f875af11580156124dc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125009190614b74565b91509150815f0361254357338e8e6040517f9ecd71a9000000000000000000000000000000000000000000000000000000008152600401611cf9939291906148a7565b82866001015f8282546125569190614894565b90915550503868929eee149b4bd2126855909d909c509a5050505050505050505050565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e081019190915260025433906001600160a01b03161580159061265757506002546040517ffe9fbb800000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301529091169063fe9fbb8090602401602060405180830381865afa158015612631573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061265591906147ba565b155b1561268e576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3068929eee149b4bd2126854036126ac5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f6126f785858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061366892505050565b80602001905181019061270a9190614c9c565b9050612718815f0151612e7f565b5f805460018101825590805260e082015160089091027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56a810180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b039485161790915583517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e566830180549092169084161790556004547f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563909101911661281c5760a0820151600454612817919074010000000000000000000000000000000000000000900467ffffffffffffffff16614dc7565b6128b4565b60a0820151600480546040517fb1539a6b0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163b1539a6b9161286b918b918b910161441d565b602060405180830381865afa158015612886573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128aa9190614de7565b6128b49190614dc7565b6005820180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff9290921691909117905560c08201516006820155602082015161292b907fe6715795000000000000000000000000000000000000000000000000000000009060016136fb565b81547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03919091161781556060820151612990907fe2089f79000000000000000000000000000000000000000000000000000000009060016136fb565b6002820180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039283161790556004545f91166129d6575f612a5f565b600480546040517fc7f1ecff0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163c7f1ecff91612a20918b918b910161441d565b602060405180830381865afa158015612a3b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a5f91906149c2565b608084015184516005850154929350612a829267ffffffffffffffff168461371c565b8051612a98916004850191602090910190613e0b565b506040830151602001516001600160a01b031615612ae557612ae07f5912b89c00000000000000000000000000000000000000000000000000000000846040015160016136fb565b612b9d565b81546040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa158015612b63573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b8791906147ba565b612b91575f612b9d565b81546001600160a01b03165b6001830180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03929092169182179055612c34576040517fe1c444480000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201525f6024820152604401611cf9565b815460078301545f546001600160a01b039283169290911690612c5990600190614894565b6004850154600186015460028701546003880154604080519485526001600160a01b03938416602086015291831684830152919091166060830152517f116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd9181900360800190a4604080516101008101825283546001600160a01b03908116825260018501548116602080840191909152600286015482168385015260038601549091166060830152600485018054845181840281018401909552808552929386936080860193919291830182828015612d5957602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311612d3b575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b03166060909101523868929eee149b4bd2126855979650505050505050565b612db3612f5e565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b612df5612f5e565b63389a75e1600c52805f526020600c208054421115612e1b57636f5e88185f526004601cfd5b5f9055612e278161321d565b50565b612e32612f5e565b8060601b612e4757637448fbae5f526004601cfd5b612e278161321d565b604080516020808201859052818301849052825180830384018152606090920190925280519101205b92915050565b612ea97fe49cedd7000000000000000000000000000000000000000000000000000000008261384e565b6040517ffe9fbb800000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0382169063fe9fbb8090602401602060405180830381865afa158015612f04573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612f2891906147ba565b612e27576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146119ec576382b429005f526004601cfd5b5f6001835460ff166002811115612fac57612fac6140dd565b1480612fcc57505f835460ff166002811115612fca57612fca6140dd565b145b156130635782546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152610100909204909116906370a08231906024015b602060405180830381865afa158015613038573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061305c9190614b30565b9050612e79565b6002835460ff16600281111561307b5761307b6140dd565b036130d957825460038401546040517efdd58e0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526024820192909252610100909204169062fdd58e9060440161301d565b505f92915050565b6001825460ff1660028111156130f9576130f96140dd565b148061311957505f825460ff166002811115613117576131176140dd565b145b1561315c57600354825461313f916001600160a01b036101009092048216911683613615565b81546131589061010090046001600160a01b031661396c565b5050565b6002825460ff166002811115613174576131746140dd565b0361315857815460038054908401546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b158015613203575f80fd5b505af1158015613215573d5f803e3d5ffd5b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f80876040015190506132ac7fa921670500000000000000000000000000000000000000000000000000000000896020015161384e565b875161331b5760208801516040517fe1c444480000000000000000000000000000000000000000000000000000000081527fa92167050000000000000000000000000000000000000000000000000000000060048201526001600160a01b039091166024820152604401611cf9565b6133467fa921670500000000000000000000000000000000000000000000000000000000895f6136fb565b91505f826001600160a01b0316634e7165a2836040518263ffffffff1660e01b81526004016133759190614882565b5f60405180830381865afa15801561338f573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526133b69190810190614577565b905080515f14613597575f806133cc838a613a28565b6040517ffa4ca9b100000000000000000000000000000000000000000000000000000000815291935091506001600160a01b038b169063fa4ca9b190613416908590600401614882565b6020604051808303815f875af1158015613432573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061345691906147ba565b61348c576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517ffa4ca9b10000000000000000000000000000000000000000000000000000000081526001600160a01b038b169063fa4ca9b1906134d1908690600401614882565b6020604051808303815f875af11580156134ed573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061351191906147ba565b613547576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8380602001905181019061355c91906145b4565b905061359388886001600160a01b038c1661357b57836020015161357d565b8b5b858e67ffffffffffffffff16865f01518b613bc1565b5050505b6040517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063439fab91906135dc908590600401614882565b5f604051808303815f87803b1580156135f3575f80fd5b505af1158015613605573d5f803e3d5ffd5b5050505050509695505050505050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661365e57803d853b15171061365e576390b8ec185f526004601cfd5b505f603452505050565b60608151156136f65760405190506020810160048301805184518501811983525b808610156136e0576001860195508551601f1a806136d1576001870196508651601f1a5f198652607f81116136c057600181013687375b607f16949094016001019350613689565b80855350600184019350613689565b509052601f198282030182525f81526020016040525b919050565b5f61370a84846020015161384e565b6137148383613cfd565b949350505050565b5f80546060919061372f90600190614894565b9050855167ffffffffffffffff81111561374b5761374b614430565b604051908082528060200260200182016040528015613774578160200160208202803683370190505b5091505f5b8651811015613844576137a9878281518110613797576137976143c7565b60200260200101518787878686613275565b8382815181106137bb576137bb6143c7565b60200260200101906001600160a01b031690816001600160a01b0316815250508281815181106137ed576137ed6143c7565b60200260200101516001600160a01b031681837f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae6001604051613834911515815260200190565b60405180910390a4600101613779565b5050949350505050565b6001600160a01b038116158061390257506040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa1580156138dc573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061390091906147ba565b155b15613158576040517fe1c444480000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b0382166024820152604401611cf9565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156139c9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906139ed9190614b30565b90505f81118015613a09575060055467ffffffffffffffff1681105b1561315857600354613158906001600160a01b03848116911683613615565b60605f8084806020019051810190613a4091906145b4565b905083600182516002811115613a5857613a586140dd565b1480613a7557505f82516002811115613a7357613a736140dd565b145b15613b23575f8260600151806020019051810190613a93919061465c565b80519091505f9061271090613ab39067ffffffffffffffff8616906146cb565b613abd91906146e2565b6040805160208082018352838252825190810184905292935091015b60408051601f198184030181529181526060870191909152308682015251613b05908690602001614831565b60405160208183030381529060405282965096505050505050613bba565b600282516002811115613b3857613b386140dd565b036109a8575f8260600151806020019051810190613b56919061472d565b90505f61271067ffffffffffffffff168367ffffffffffffffff168360200151613b8091906146cb565b613b8a91906146e2565b604080516060810182528451815260208082018490528583015182840152915192935091613ad991839101614803565b9250929050565b5f6002836002811115613bd657613bd66140dd565b03613bf35781806020019051810190613bef9190614e02565b5090505b5f6040518060a00160405280856002811115613c1157613c116140dd565b8152602001886001600160a01b031681526020018781526020018681526020018381525090508060065f613c458c8c612e50565b815260208101919091526040015f208151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001836002811115613c9057613c906140dd565b0217905550602082015181546001600160a01b03909116610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff9091161781556040820151600182015560608201516002820155608090910151600390910155505050505050505050565b81515f90613d0f578260200151613d25565b613d2583602001516001600160a01b0316613db4565b83519091508015613d335750815b15612e795760408084015190517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0383169163439fab9191613d819190600401614882565b5f604051808303815f87803b158015613d98575f80fd5b505af1158015613daa573d5f803e3d5ffd5b5050505092915050565b5f612e795f835f6c5af43d3d93803e602a57fd5bf36021528160145273602c3d8160093d39f33d3d3d3d363d3d37363d735f526035600c84f0905080613e015763301164255f526004601cfd5b5f60215292915050565b828054828255905f5260205f20908101928215613e76579160200282015b82811115613e7657825182547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178255602090920191600190910190613e29565b50613e82929150613e86565b5090565b5b80821115613e82575f8155600101613e87565b5f60208284031215613eaa575f80fd5b5035919050565b5f8151808452602084019350602083015f5b82811015613eea5781516001600160a01b0316865260209586019590910190600101613ec3565b5093949350505050565b602081526001600160a01b0382511660208201525f6020830151613f2360408401826001600160a01b03169052565b5060408301516001600160a01b03811660608401525060608301516001600160a01b038116608084015250608083015161010060a0840152613f69610120840182613eb1565b905060a0840151613f8660c085018267ffffffffffffffff169052565b5060c084015160e084015260e0840151613fac6101008501826001600160a01b03169052565b509392505050565b5f8083601f840112613fc4575f80fd5b50813567ffffffffffffffff811115613fdb575f80fd5b602083019150836020828501011115613bba575f80fd5b5f805f8060608587031215614005575f80fd5b8435935060208501359250604085013567ffffffffffffffff811115614029575f80fd5b61403587828801613fb4565b95989497509550505050565b6001600160a01b0381168114612e27575f80fd5b5f805f805f60808688031215614069575f80fd5b8535945060208601359350604086013567ffffffffffffffff81111561408d575f80fd5b61409988828901613fb4565b90945092505060608601356140ad81614041565b809150509295509295909350565b5f602082840312156140cb575f80fd5b81356140d681614041565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6003811061413f577f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b9052565b5f60a08201905061415582845161410a565b6001600160a01b03602084015116602083015260408301516040830152606083015160608301526080830151608083015292915050565b67ffffffffffffffff81168114612e27575f80fd5b5f602082840312156141b1575f80fd5b81356140d68161418c565b5f80604083850312156141cd575f80fd5b50508035926020909101359150565b5f805f805f8060a087890312156141f1575f80fd5b8635955060208701359450604087013561420a81614041565b9350606087013567ffffffffffffffff811115614225575f80fd5b61423189828a01613fb4565b909450925050608087013561424581614041565b809150509295509295509295565b5f805f805f60808688031215614267575f80fd5b8535945060208601359350604086013561428081614041565b9250606086013567ffffffffffffffff81111561429b575f80fd5b6142a788828901613fb4565b969995985093965092949392505050565b5f80604083850312156142c9575f80fd5b82359150602083013567ffffffffffffffff8111156142e6575f80fd5b8301606081860312156142f7575f80fd5b809150509250929050565b5f805f8060608587031215614315575f80fd5b843567ffffffffffffffff81111561432b575f80fd5b61433787828801613fb4565b90989097506020870135966040013595509350505050565b5f8060208385031215614360575f80fd5b823567ffffffffffffffff811115614376575f80fd5b61438285828601613fb4565b90969095509350505050565b60a0810161439c828861410a565b6001600160a01b03861660208301528460408301528360608301528260808301529695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81835281816020850137505f602082840101525f6020601f19601f840116840101905092915050565b602081525f6137146020830184866143f4565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff8111828210171561448057614480614430565b60405290565b6040516060810167ffffffffffffffff8111828210171561448057614480614430565b604051610100810167ffffffffffffffff8111828210171561448057614480614430565b604051601f8201601f1916810167ffffffffffffffff811182821017156144f6576144f6614430565b604052919050565b5f67ffffffffffffffff82111561451757614517614430565b50601f01601f191660200190565b5f82601f830112614534575f80fd5b8151614547614542826144fe565b6144cd565b81815284602083860101111561455b575f80fd5b8160208501602083015e5f918101602001919091529392505050565b5f60208284031215614587575f80fd5b815167ffffffffffffffff81111561459d575f80fd5b61371484828501614525565b80516136f681614041565b5f602082840312156145c4575f80fd5b815167ffffffffffffffff8111156145da575f80fd5b8201608081850312156145eb575f80fd5b6145f361445d565b815160038110614601575f80fd5b8152602082015161461181614041565b6020820152604082015161462481614041565b6040820152606082015167ffffffffffffffff811115614642575f80fd5b61464e86828501614525565b606083015250949350505050565b5f602082840312801561466d575f80fd5b506040516020810167ffffffffffffffff8111828210171561469157614691614430565b6040529151825250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8082028115828204841417612e7957612e7961469e565b5f82614715577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b80820180821115612e7957612e7961469e565b5f6020828403121561473d575f80fd5b815167ffffffffffffffff811115614753575f80fd5b820160608185031215614764575f80fd5b61476c614486565b8151815260208083015190820152604082015167ffffffffffffffff811115614793575f80fd5b61479f86828501614525565b604083015250949350505050565b8015158114612e27575f80fd5b5f602082840312156147ca575f80fd5b81516140d6816147ad565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b6020815281516020820152602082015160408201525f604083015160608084015261371460808401826147d5565b6020815261484360208201835161410a565b6001600160a01b0360208301511660408201526001600160a01b0360408301511660608201525f606083015160808084015261371460a08401826147d5565b602081525f6140d660208301846147d5565b81810381811115612e7957612e7961469e565b6001600160a01b0384168152604060208201525f6148c96040830184866143f4565b95945050505050565b8581528460208201526001600160a01b0384166040820152608060608201525f6149006080830184866143f4565b979650505050505050565b828152604060208201525f8235614921816147ad565b15156040830152602083013561493681614041565b6001600160a01b031660608301526040830135368490037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112614979575f80fd5b830160208101903567ffffffffffffffff811115614995575f80fd5b8036038213156149a3575f80fd5b606060808501526149b860a0850182846143f4565b9695505050505050565b5f602082840312156149d2575f80fd5b81516140d681614041565b5f82601f8301126149ec575f80fd5b81356149fa614542826144fe565b818152846020838601011115614a0e575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60608236031215614a3a575f80fd5b614a42614486565b8235614a4d816147ad565b81526020830135614a5d81614041565b6020820152604083013567ffffffffffffffff811115614a7b575f80fd5b614a87368286016149dd565b60408301525092915050565b5f60208284031215614aa3575f80fd5b813567ffffffffffffffff811115614ab9575f80fd5b820160408185031215614aca575f80fd5b6040805190810167ffffffffffffffff81118282101715614aed57614aed614430565b6040528135614afb81614041565b8152602082013567ffffffffffffffff811115614b16575f80fd5b614b22868285016149dd565b602083015250949350505050565b5f60208284031215614b40575f80fd5b5051919050565b602081526001600160a01b0382511660208201525f602083015160408084015261371460608401826147d5565b5f8060408385031215614b85575f80fd5b825160208401519092506142f781614041565b5f60608284031215614ba8575f80fd5b614bb0614486565b90508151614bbd816147ad565b81526020820151614bcd81614041565b6020820152604082015167ffffffffffffffff811115614beb575f80fd5b614a8784828501614525565b5f82601f830112614c06575f80fd5b815167ffffffffffffffff811115614c2057614c20614430565b8060051b614c30602082016144cd565b91825260208185018101929081019086841115614c4b575f80fd5b6020860192505b838310156149b857825167ffffffffffffffff811115614c70575f80fd5b614c7f886020838a0101614b98565b83525060209283019290910190614c52565b80516136f68161418c565b5f60208284031215614cac575f80fd5b815167ffffffffffffffff811115614cc2575f80fd5b82016101008185031215614cd4575f80fd5b614cdc6144a9565b614ce5826145a9565b8152602082015167ffffffffffffffff811115614d00575f80fd5b614d0c86828501614b98565b602083015250604082015167ffffffffffffffff811115614d2b575f80fd5b614d3786828501614b98565b604083015250606082015167ffffffffffffffff811115614d56575f80fd5b614d6286828501614b98565b606083015250608082015167ffffffffffffffff811115614d81575f80fd5b614d8d86828501614bf7565b608083015250614d9f60a08301614c91565b60a082015260c08281015190820152614dba60e083016145a9565b60e0820152949350505050565b67ffffffffffffffff8181168382160190811115612e7957612e7961469e565b5f60208284031215614df7575f80fd5b81516140d68161418c565b5f8060408385031215614e13575f80fd5b8251602084015190925067ffffffffffffffff811115614e31575f80fd5b614e3d85828601614525565b915050925092905056fea26469706673582212208286ae56352689fb64c76c3bbaaa898df87482cd394c79c101f009e07f87c00c64736f6c634300081a0033";
|
|
32
|
+
function q(n) {
|
|
33
33
|
const f = n.state.current, e = n.state.connections.get(f), t = e == null ? void 0 : e.accounts, a = t == null ? void 0 : t[0], b = n.chains.find((c) => c.id === (e == null ? void 0 : e.chainId)), d = n.state.status;
|
|
34
34
|
switch (d) {
|
|
35
35
|
case "connected":
|
|
@@ -86,28 +86,28 @@ function W(n) {
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function r1(n) {
|
|
90
90
|
return n.state.chainId;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function G(n, f, e) {
|
|
93
93
|
const t = n[f.name];
|
|
94
94
|
if (typeof t == "function")
|
|
95
95
|
return t;
|
|
96
96
|
const a = n[e];
|
|
97
97
|
return typeof a == "function" ? a : (b) => f(n, b);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
100
|
-
var
|
|
99
|
+
const u1 = "2.13.8", h1 = () => `@wagmi/core@${u1}`;
|
|
100
|
+
var k = function(n, f, e, t) {
|
|
101
101
|
if (e === "a" && !t) throw new TypeError("Private accessor was defined without a getter");
|
|
102
102
|
if (typeof f == "function" ? n !== f || !t : !f.has(n)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
103
103
|
return e === "m" ? t : e === "a" ? t.call(n) : t ? t.value : f.get(n);
|
|
104
|
-
}, V,
|
|
104
|
+
}, V, U;
|
|
105
105
|
class I extends Error {
|
|
106
106
|
get docsBaseUrl() {
|
|
107
107
|
return "https://wagmi.sh/core";
|
|
108
108
|
}
|
|
109
109
|
get version() {
|
|
110
|
-
return
|
|
110
|
+
return h1();
|
|
111
111
|
}
|
|
112
112
|
constructor(f, e = {}) {
|
|
113
113
|
var b;
|
|
@@ -151,13 +151,13 @@ class I extends Error {
|
|
|
151
151
|
`), e.cause && (this.cause = e.cause), this.details = t, this.docsPath = a, this.metaMessages = e.metaMessages, this.shortMessage = f;
|
|
152
152
|
}
|
|
153
153
|
walk(f) {
|
|
154
|
-
return
|
|
154
|
+
return k(this, V, "m", U).call(this, this, f);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
V = /* @__PURE__ */ new WeakSet(),
|
|
158
|
-
return e != null && e(f) ? f : f.cause ?
|
|
157
|
+
V = /* @__PURE__ */ new WeakSet(), U = function n(f, e) {
|
|
158
|
+
return e != null && e(f) ? f : f.cause ? k(this, V, "m", n).call(this, f.cause, e) : f;
|
|
159
159
|
};
|
|
160
|
-
class
|
|
160
|
+
class l1 extends I {
|
|
161
161
|
constructor() {
|
|
162
162
|
super("Connector not connected."), Object.defineProperty(this, "name", {
|
|
163
163
|
enumerable: !0,
|
|
@@ -167,7 +167,7 @@ class u1 extends I {
|
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
class
|
|
170
|
+
class g1 extends I {
|
|
171
171
|
constructor({ address: f, connector: e }) {
|
|
172
172
|
super(`Account "${f}" not found for connector "${e.name}".`), Object.defineProperty(this, "name", {
|
|
173
173
|
enumerable: !0,
|
|
@@ -177,7 +177,7 @@ class h1 extends I {
|
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
class
|
|
180
|
+
class w1 extends I {
|
|
181
181
|
constructor({ connectionChainId: f, connectorChainId: e }) {
|
|
182
182
|
super(`The current chain of the connector (id: ${e}) does not match the connection's chain (id: ${f}).`, {
|
|
183
183
|
metaMessages: [
|
|
@@ -192,7 +192,7 @@ class l1 extends I {
|
|
|
192
192
|
});
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
class
|
|
195
|
+
class v1 extends I {
|
|
196
196
|
constructor({ connector: f }) {
|
|
197
197
|
super(`Connector "${f.name}" unavailable while reconnecting.`, {
|
|
198
198
|
details: [
|
|
@@ -208,12 +208,12 @@ class g1 extends I {
|
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
async function
|
|
211
|
+
async function H(n, f = {}) {
|
|
212
212
|
let e;
|
|
213
213
|
if (f.connector) {
|
|
214
214
|
const { connector: i } = f;
|
|
215
215
|
if (n.state.status === "reconnecting" && !i.getAccounts && !i.getChainId)
|
|
216
|
-
throw new
|
|
216
|
+
throw new v1({ connector: i });
|
|
217
217
|
const [l, g] = await Promise.all([
|
|
218
218
|
i.getAccounts(),
|
|
219
219
|
i.getChainId()
|
|
@@ -226,95 +226,95 @@ async function G(n, f = {}) {
|
|
|
226
226
|
} else
|
|
227
227
|
e = n.state.connections.get(n.state.current);
|
|
228
228
|
if (!e)
|
|
229
|
-
throw new
|
|
229
|
+
throw new l1();
|
|
230
230
|
const t = f.chainId ?? e.chainId, a = await e.connector.getChainId();
|
|
231
231
|
if (a !== e.chainId)
|
|
232
|
-
throw new
|
|
232
|
+
throw new w1({
|
|
233
233
|
connectionChainId: e.chainId,
|
|
234
234
|
connectorChainId: a
|
|
235
235
|
});
|
|
236
236
|
const b = e.connector;
|
|
237
237
|
if (b.getClient)
|
|
238
238
|
return b.getClient({ chainId: t });
|
|
239
|
-
const d =
|
|
240
|
-
if (d.address =
|
|
241
|
-
throw new
|
|
239
|
+
const d = n1(f.account ?? e.accounts[0]);
|
|
240
|
+
if (d.address = s1(d.address), f.account && !e.accounts.some((i) => i.toLowerCase() === d.address.toLowerCase()))
|
|
241
|
+
throw new g1({
|
|
242
242
|
address: d.address,
|
|
243
243
|
connector: b
|
|
244
244
|
});
|
|
245
245
|
const c = n.chains.find((i) => i.id === t), s = await e.connector.getProvider({ chainId: t });
|
|
246
|
-
return
|
|
246
|
+
return P0({
|
|
247
247
|
account: d,
|
|
248
248
|
chain: c,
|
|
249
249
|
name: "Connector Client",
|
|
250
|
-
transport: (i) =>
|
|
250
|
+
transport: (i) => E0(s)({ ...i, retryCount: 0 })
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
async function
|
|
253
|
+
async function A1(n, f) {
|
|
254
254
|
const { abi: e, chainId: t, connector: a, ...b } = f;
|
|
255
255
|
let d;
|
|
256
|
-
f.account ? d = f.account : d = (await
|
|
256
|
+
f.account ? d = f.account : d = (await H(n, {
|
|
257
257
|
chainId: t,
|
|
258
258
|
connector: a
|
|
259
259
|
})).account;
|
|
260
|
-
const c = n.getClient({ chainId: t }), s =
|
|
260
|
+
const c = n.getClient({ chainId: t }), s = G(c, d1, "simulateContract"), { result: i, request: l } = await s({ ...b, abi: e, account: d });
|
|
261
261
|
return {
|
|
262
262
|
chainId: c.chain.id,
|
|
263
263
|
result: i,
|
|
264
264
|
request: { __mode: "prepared", ...l, chainId: t }
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
|
-
async function
|
|
267
|
+
async function z(n, f) {
|
|
268
268
|
const { account: e, chainId: t, connector: a, __mode: b, ...d } = f;
|
|
269
269
|
let c;
|
|
270
|
-
typeof e == "object" && e.type === "local" ? c = n.getClient({ chainId: t }) : c = await
|
|
271
|
-
const { connector: s } =
|
|
270
|
+
typeof e == "object" && e.type === "local" ? c = n.getClient({ chainId: t }) : c = await H(n, { account: e, chainId: t, connector: a });
|
|
271
|
+
const { connector: s } = q(n);
|
|
272
272
|
let i;
|
|
273
273
|
if (b === "prepared" || s != null && s.supportsSimulation)
|
|
274
274
|
i = d;
|
|
275
275
|
else {
|
|
276
|
-
const { request: o } = await
|
|
276
|
+
const { request: o } = await A1(n, {
|
|
277
277
|
...d,
|
|
278
278
|
account: e,
|
|
279
279
|
chainId: t
|
|
280
280
|
});
|
|
281
281
|
i = o;
|
|
282
282
|
}
|
|
283
|
-
return await
|
|
283
|
+
return await G(c, c1, "writeContract")({
|
|
284
284
|
...i,
|
|
285
285
|
...e ? { account: e } : {},
|
|
286
286
|
chain: t ? { id: t } : null
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
|
-
function
|
|
289
|
+
function N(n) {
|
|
290
290
|
return n.address !== void 0 && typeof n.address == "object" ? (f, e) => {
|
|
291
291
|
var d;
|
|
292
|
-
const t =
|
|
292
|
+
const t = r1(f), a = q(f);
|
|
293
293
|
let b;
|
|
294
|
-
return e.chainId ? b = e.chainId : e.account && e.account === a.address || e.account === void 0 ? b = a.chainId : b = t,
|
|
294
|
+
return e.chainId ? b = e.chainId : e.account && e.account === a.address || e.account === void 0 ? b = a.chainId : b = t, z(f, {
|
|
295
295
|
...e,
|
|
296
296
|
...n.functionName ? { functionName: n.functionName } : {},
|
|
297
297
|
address: b ? (d = n.address) == null ? void 0 : d[b] : void 0,
|
|
298
298
|
abi: n.abi
|
|
299
299
|
});
|
|
300
|
-
} : (f, e) =>
|
|
300
|
+
} : (f, e) => z(f, {
|
|
301
301
|
...e,
|
|
302
302
|
...n.address ? { address: n.address } : {},
|
|
303
303
|
...n.functionName ? { functionName: n.functionName } : {},
|
|
304
304
|
abi: n.abi
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
-
const
|
|
308
|
-
31337: void 0,
|
|
309
|
-
...
|
|
310
|
-
}, J1 =
|
|
311
|
-
function
|
|
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" }, p = 10000n, O = {
|
|
308
|
+
...L != null && L.VITE_BOOST_CORE_ADDRESS ? { 31337: void 0 } : {},
|
|
309
|
+
...F0
|
|
310
|
+
}, J1 = O[11155111] || m;
|
|
311
|
+
function m1(n) {
|
|
312
312
|
return n.address;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function C1(n) {
|
|
315
315
|
return n.registryAddress && n.protocolFeeReceiver && n.owner;
|
|
316
316
|
}
|
|
317
|
-
const M = class M extends
|
|
317
|
+
const M = class M extends j0 {
|
|
318
318
|
/**
|
|
319
319
|
* A getter that will return Boost core's static addresses by numerical chain ID
|
|
320
320
|
*
|
|
@@ -335,9 +335,9 @@ const M = class M extends x0 {
|
|
|
335
335
|
* @param {({ address?: Address; } | { registryAddress: Address; protocolFeeReceiver: Address; owner: Address; })} param0....options
|
|
336
336
|
*/
|
|
337
337
|
constructor({ config: f, account: e, ...t }) {
|
|
338
|
-
if (
|
|
338
|
+
if (m1(t) && t.address)
|
|
339
339
|
super({ account: e, config: f }, t.address);
|
|
340
|
-
else if (
|
|
340
|
+
else if (C1(t))
|
|
341
341
|
super({ account: e, config: f }, [
|
|
342
342
|
t.registryAddress,
|
|
343
343
|
t.protocolFeeReceiver,
|
|
@@ -346,7 +346,7 @@ const M = class M extends x0 {
|
|
|
346
346
|
else {
|
|
347
347
|
const { address: a } = h(
|
|
348
348
|
f,
|
|
349
|
-
|
|
349
|
+
O
|
|
350
350
|
);
|
|
351
351
|
super({ account: e, config: f }, a);
|
|
352
352
|
}
|
|
@@ -366,7 +366,7 @@ const M = class M extends x0 {
|
|
|
366
366
|
a.config,
|
|
367
367
|
this.addresses,
|
|
368
368
|
b
|
|
369
|
-
), s =
|
|
369
|
+
), s = N({
|
|
370
370
|
abi: y,
|
|
371
371
|
functionName: "createBoost",
|
|
372
372
|
address: c
|
|
@@ -389,19 +389,19 @@ const M = class M extends x0 {
|
|
|
389
389
|
logs: g.logs
|
|
390
390
|
}).at(0);
|
|
391
391
|
let r = 0n;
|
|
392
|
-
if (!o) throw new
|
|
392
|
+
if (!o) throw new T();
|
|
393
393
|
r = o == null ? void 0 : o.args.boostId;
|
|
394
394
|
const u = await this.readBoost(r);
|
|
395
|
-
return new
|
|
395
|
+
return new F({
|
|
396
396
|
id: r,
|
|
397
397
|
budget: t.budget.at(u.budget),
|
|
398
398
|
action: t.action.at(u.action),
|
|
399
399
|
validator: t.validator.at(u.validator),
|
|
400
400
|
allowList: t.allowList.at(u.allowList),
|
|
401
401
|
incentives: t.incentives.map(
|
|
402
|
-
(
|
|
402
|
+
(A, v) => (
|
|
403
403
|
// biome-ignore lint/style/noNonNullAssertion: this will never be undefined
|
|
404
|
-
|
|
404
|
+
A.at(u.incentives.at(v))
|
|
405
405
|
)
|
|
406
406
|
),
|
|
407
407
|
protocolFee: u.protocolFee,
|
|
@@ -423,7 +423,7 @@ const M = class M extends x0 {
|
|
|
423
423
|
f,
|
|
424
424
|
e
|
|
425
425
|
);
|
|
426
|
-
return { hash: await
|
|
426
|
+
return { hash: await Z(this._config, t), result: a };
|
|
427
427
|
}
|
|
428
428
|
/**
|
|
429
429
|
* Returns a simulated Boost creation.
|
|
@@ -445,7 +445,7 @@ const M = class M extends x0 {
|
|
|
445
445
|
t,
|
|
446
446
|
a
|
|
447
447
|
);
|
|
448
|
-
return await
|
|
448
|
+
return await J(this._config, {
|
|
449
449
|
...this.optionallyAttachAccount(),
|
|
450
450
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
451
451
|
...e,
|
|
@@ -475,8 +475,8 @@ const M = class M extends x0 {
|
|
|
475
475
|
d.config,
|
|
476
476
|
this.addresses,
|
|
477
477
|
c
|
|
478
|
-
), l =
|
|
479
|
-
abi:
|
|
478
|
+
), l = N({
|
|
479
|
+
abi: x,
|
|
480
480
|
functionName: "createBoost",
|
|
481
481
|
address: typeof f == "string" ? f : f.assertValidAddress()
|
|
482
482
|
}), g = await this.prepareCreateBoostPayload(
|
|
@@ -501,20 +501,20 @@ const M = class M extends x0 {
|
|
|
501
501
|
eventName: "BoostCreated",
|
|
502
502
|
logs: r.logs
|
|
503
503
|
}).at(0);
|
|
504
|
-
let
|
|
505
|
-
if (!u) throw new
|
|
506
|
-
|
|
507
|
-
const v = await this.readBoost(
|
|
508
|
-
return new
|
|
509
|
-
id:
|
|
504
|
+
let A = 0n;
|
|
505
|
+
if (!u) throw new T();
|
|
506
|
+
A = u == null ? void 0 : u.args.boostId;
|
|
507
|
+
const v = await this.readBoost(A);
|
|
508
|
+
return new F({
|
|
509
|
+
id: A,
|
|
510
510
|
budget: b.budget.at(v.budget),
|
|
511
511
|
action: b.action.at(v.action),
|
|
512
512
|
validator: b.validator.at(v.validator),
|
|
513
513
|
allowList: b.allowList.at(v.allowList),
|
|
514
514
|
incentives: b.incentives.map(
|
|
515
|
-
(B,
|
|
515
|
+
(B, E) => (
|
|
516
516
|
// biome-ignore lint/style/noNonNullAssertion: this will never be undefined
|
|
517
|
-
B.at(v.incentives.at(
|
|
517
|
+
B.at(v.incentives.at(E))
|
|
518
518
|
)
|
|
519
519
|
),
|
|
520
520
|
protocolFee: v.protocolFee,
|
|
@@ -540,7 +540,7 @@ const M = class M extends x0 {
|
|
|
540
540
|
t,
|
|
541
541
|
a
|
|
542
542
|
);
|
|
543
|
-
return { hash: await
|
|
543
|
+
return { hash: await Q(this._config, b), result: d };
|
|
544
544
|
}
|
|
545
545
|
/**
|
|
546
546
|
* Returns a simulated Boost creation using a transparent budget
|
|
@@ -569,7 +569,7 @@ const M = class M extends x0 {
|
|
|
569
569
|
b,
|
|
570
570
|
d
|
|
571
571
|
);
|
|
572
|
-
return await
|
|
572
|
+
return await X(this._config, {
|
|
573
573
|
...this.optionallyAttachAccount(),
|
|
574
574
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
575
575
|
...a,
|
|
@@ -606,8 +606,8 @@ const M = class M extends x0 {
|
|
|
606
606
|
i.config,
|
|
607
607
|
this.addresses,
|
|
608
608
|
l
|
|
609
|
-
), r =
|
|
610
|
-
abi:
|
|
609
|
+
), r = N({
|
|
610
|
+
abi: x,
|
|
611
611
|
functionName: "createBoostWithPermit2",
|
|
612
612
|
address: typeof f == "string" ? f : f.assertValidAddress()
|
|
613
613
|
}), u = await this.prepareCreateBoostPayload(
|
|
@@ -615,7 +615,7 @@ const M = class M extends x0 {
|
|
|
615
615
|
g,
|
|
616
616
|
s,
|
|
617
617
|
i
|
|
618
|
-
),
|
|
618
|
+
), A = await r(i.config, {
|
|
619
619
|
...this.optionallyAttachAccount(i.account),
|
|
620
620
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
621
621
|
...c,
|
|
@@ -629,31 +629,31 @@ const M = class M extends x0 {
|
|
|
629
629
|
d
|
|
630
630
|
]
|
|
631
631
|
}), v = await D(i.config, {
|
|
632
|
-
hash:
|
|
632
|
+
hash: A
|
|
633
633
|
}), B = _({
|
|
634
634
|
abi: y,
|
|
635
635
|
eventName: "BoostCreated",
|
|
636
636
|
logs: v.logs
|
|
637
637
|
}).at(0);
|
|
638
|
-
let
|
|
639
|
-
if (!B) throw new
|
|
640
|
-
|
|
641
|
-
const
|
|
642
|
-
return new
|
|
643
|
-
id:
|
|
644
|
-
budget: s.budget.at(
|
|
645
|
-
action: s.action.at(
|
|
646
|
-
validator: s.validator.at(
|
|
647
|
-
allowList: s.allowList.at(
|
|
638
|
+
let E = 0n;
|
|
639
|
+
if (!B) throw new T();
|
|
640
|
+
E = B == null ? void 0 : B.args.boostId;
|
|
641
|
+
const C = await this.readBoost(E);
|
|
642
|
+
return new F({
|
|
643
|
+
id: E,
|
|
644
|
+
budget: s.budget.at(C.budget),
|
|
645
|
+
action: s.action.at(C.action),
|
|
646
|
+
validator: s.validator.at(C.validator),
|
|
647
|
+
allowList: s.allowList.at(C.allowList),
|
|
648
648
|
incentives: s.incentives.map(
|
|
649
|
-
(
|
|
649
|
+
(K, Y) => (
|
|
650
650
|
// biome-ignore lint/style/noNonNullAssertion: this will never be undefined
|
|
651
|
-
|
|
651
|
+
K.at(C.incentives.at(Y))
|
|
652
652
|
)
|
|
653
653
|
),
|
|
654
|
-
protocolFee:
|
|
655
|
-
maxParticipants:
|
|
656
|
-
owner:
|
|
654
|
+
protocolFee: C.protocolFee,
|
|
655
|
+
maxParticipants: C.maxParticipants,
|
|
656
|
+
owner: C.owner
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
659
|
/**
|
|
@@ -680,7 +680,7 @@ const M = class M extends x0 {
|
|
|
680
680
|
d,
|
|
681
681
|
c
|
|
682
682
|
);
|
|
683
|
-
return { hash: await
|
|
683
|
+
return { hash: await f0(
|
|
684
684
|
this._config,
|
|
685
685
|
s
|
|
686
686
|
), result: i };
|
|
@@ -715,7 +715,7 @@ const M = class M extends x0 {
|
|
|
715
715
|
s,
|
|
716
716
|
i
|
|
717
717
|
);
|
|
718
|
-
return await
|
|
718
|
+
return await e0(this._config, {
|
|
719
719
|
...this.optionallyAttachAccount(),
|
|
720
720
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
721
721
|
...c,
|
|
@@ -734,34 +734,34 @@ const M = class M extends x0 {
|
|
|
734
734
|
// This function mutates payload, which isn't awesome but it's fine
|
|
735
735
|
async prepareCreateBoostPayload(f, e, t, a) {
|
|
736
736
|
var g;
|
|
737
|
-
if (!t.owner && (t.owner = ((g = this._account) == null ? void 0 : g.address) ||
|
|
737
|
+
if (!t.owner && (t.owner = ((g = this._account) == null ? void 0 : g.address) || y0(a.config).address || m, t.owner === m))
|
|
738
738
|
throw new X0();
|
|
739
739
|
if (!t.validator) {
|
|
740
|
-
const r =
|
|
740
|
+
const r = I0(a.config).filter(
|
|
741
741
|
(v) => !!this.addresses[v.id] && v.id === e
|
|
742
742
|
).at(0);
|
|
743
743
|
if (!r)
|
|
744
|
-
throw new
|
|
744
|
+
throw new f1(
|
|
745
745
|
e,
|
|
746
746
|
Object.keys(this.addresses).map(Number)
|
|
747
747
|
);
|
|
748
|
-
const
|
|
749
|
-
r.testnet || r.id === 31337 ?
|
|
748
|
+
const A = [
|
|
749
|
+
r.testnet || r.id === 31337 ? j.TESTNET : j.MAINNET
|
|
750
750
|
];
|
|
751
|
-
r.id === 31337 &&
|
|
752
|
-
signers:
|
|
751
|
+
r.id === 31337 && A.push("0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"), t.validator = this.LimitedSignerValidator({
|
|
752
|
+
signers: A,
|
|
753
753
|
validatorCaller: f,
|
|
754
754
|
maxClaimCount: 1
|
|
755
755
|
});
|
|
756
756
|
}
|
|
757
|
-
let b =
|
|
757
|
+
let b = m;
|
|
758
758
|
if (t.budget.address) {
|
|
759
759
|
if (b = t.budget.address, !(t.budget instanceof $) && !await t.budget.isAuthorized(f))
|
|
760
|
-
throw new
|
|
760
|
+
throw new e1(f);
|
|
761
761
|
} else
|
|
762
|
-
throw new
|
|
762
|
+
throw new t1();
|
|
763
763
|
let d = {
|
|
764
|
-
instance:
|
|
764
|
+
instance: m,
|
|
765
765
|
isBase: !0,
|
|
766
766
|
parameters: w
|
|
767
767
|
};
|
|
@@ -779,7 +779,7 @@ const M = class M extends x0 {
|
|
|
779
779
|
e
|
|
780
780
|
).address;
|
|
781
781
|
let c = {
|
|
782
|
-
instance:
|
|
782
|
+
instance: m,
|
|
783
783
|
isBase: !0,
|
|
784
784
|
parameters: w
|
|
785
785
|
};
|
|
@@ -797,7 +797,7 @@ const M = class M extends x0 {
|
|
|
797
797
|
e
|
|
798
798
|
).address;
|
|
799
799
|
let s = {
|
|
800
|
-
instance:
|
|
800
|
+
instance: m,
|
|
801
801
|
isBase: !0,
|
|
802
802
|
parameters: w
|
|
803
803
|
};
|
|
@@ -815,7 +815,7 @@ const M = class M extends x0 {
|
|
|
815
815
|
e
|
|
816
816
|
).address;
|
|
817
817
|
const i = t.incentives.map(() => ({
|
|
818
|
-
instance:
|
|
818
|
+
instance: m,
|
|
819
819
|
isBase: !0,
|
|
820
820
|
parameters: w
|
|
821
821
|
}));
|
|
@@ -823,7 +823,7 @@ const M = class M extends x0 {
|
|
|
823
823
|
const r = t.incentives.at(o);
|
|
824
824
|
if (r.address) {
|
|
825
825
|
const u = r.isBase;
|
|
826
|
-
if (!u) throw new
|
|
826
|
+
if (!u) throw new a1(r);
|
|
827
827
|
i[o] = {
|
|
828
828
|
isBase: u,
|
|
829
829
|
instance: r.address,
|
|
@@ -877,7 +877,7 @@ const M = class M extends x0 {
|
|
|
877
877
|
* @returns {Promise<{ hash: `0x${string}`; result: void; }>}
|
|
878
878
|
*/
|
|
879
879
|
async claimIncentiveRaw(f, e, t, a, b) {
|
|
880
|
-
const { request: d, result: c } = await
|
|
880
|
+
const { request: d, result: c } = await t0(
|
|
881
881
|
this._config,
|
|
882
882
|
{
|
|
883
883
|
...h(
|
|
@@ -891,7 +891,7 @@ const M = class M extends x0 {
|
|
|
891
891
|
...b
|
|
892
892
|
}
|
|
893
893
|
);
|
|
894
|
-
return { hash: await
|
|
894
|
+
return { hash: await a0(this._config, d), result: c };
|
|
895
895
|
}
|
|
896
896
|
/**
|
|
897
897
|
* Claims one incentive for a given `Boost` on behalf of another user by `boostId` and `incentiveId`
|
|
@@ -932,7 +932,7 @@ const M = class M extends x0 {
|
|
|
932
932
|
* @returns {Promise<{ hash: Hex; result: void; }>}
|
|
933
933
|
*/
|
|
934
934
|
async claimIncentiveForRaw(f, e, t, a, b, d) {
|
|
935
|
-
const { request: c, result: s } = await
|
|
935
|
+
const { request: c, result: s } = await b0(
|
|
936
936
|
this._config,
|
|
937
937
|
{
|
|
938
938
|
...h(
|
|
@@ -946,7 +946,7 @@ const M = class M extends x0 {
|
|
|
946
946
|
...d
|
|
947
947
|
}
|
|
948
948
|
);
|
|
949
|
-
return { hash: await
|
|
949
|
+
return { hash: await d0(this._config, c), result: s };
|
|
950
950
|
}
|
|
951
951
|
/**
|
|
952
952
|
* Get a Boost by index, will return the raw on chain representation of a Boost.
|
|
@@ -962,7 +962,7 @@ const M = class M extends x0 {
|
|
|
962
962
|
var t;
|
|
963
963
|
try {
|
|
964
964
|
let a;
|
|
965
|
-
return typeof f == "string" ? a = BigInt(f) : a = f, await
|
|
965
|
+
return typeof f == "string" ? a = BigInt(f) : a = f, await c0(this._config, {
|
|
966
966
|
...h(
|
|
967
967
|
this._config,
|
|
968
968
|
this.addresses,
|
|
@@ -974,7 +974,7 @@ const M = class M extends x0 {
|
|
|
974
974
|
...e
|
|
975
975
|
});
|
|
976
976
|
} catch (a) {
|
|
977
|
-
throw (t = a == null ? void 0 : a.message) != null && t.includes("bounds") ? new
|
|
977
|
+
throw (t = a == null ? void 0 : a.message) != null && t.includes("bounds") ? new b1(String(f)) : a;
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
980
|
/**
|
|
@@ -994,17 +994,17 @@ const M = class M extends x0 {
|
|
|
994
994
|
config: this._config,
|
|
995
995
|
account: this._account
|
|
996
996
|
}, [i, l, g, o, r] = await Promise.all([
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
997
|
+
R0(s, c.action, e),
|
|
998
|
+
O0(s, c.budget, e),
|
|
999
|
+
Z0(s, c.validator, e),
|
|
1000
|
+
D0(s, c.allowList, e),
|
|
1001
1001
|
Promise.all(
|
|
1002
1002
|
c.incentives.map(
|
|
1003
|
-
(u) =>
|
|
1003
|
+
(u) => G0(s, u, e)
|
|
1004
1004
|
)
|
|
1005
1005
|
)
|
|
1006
1006
|
]);
|
|
1007
|
-
return new
|
|
1007
|
+
return new F({
|
|
1008
1008
|
id: t,
|
|
1009
1009
|
action: i,
|
|
1010
1010
|
budget: l,
|
|
@@ -1025,7 +1025,7 @@ const M = class M extends x0 {
|
|
|
1025
1025
|
* @returns {Promise<bigint>}
|
|
1026
1026
|
*/
|
|
1027
1027
|
async getBoostCount(f) {
|
|
1028
|
-
return await
|
|
1028
|
+
return await n0(this._config, {
|
|
1029
1029
|
...h(
|
|
1030
1030
|
this._config,
|
|
1031
1031
|
this.addresses,
|
|
@@ -1049,7 +1049,7 @@ const M = class M extends x0 {
|
|
|
1049
1049
|
*/
|
|
1050
1050
|
async isAuthorized(f, e) {
|
|
1051
1051
|
const t = await this.createBoostAuth(e);
|
|
1052
|
-
return
|
|
1052
|
+
return s0(this._config, {
|
|
1053
1053
|
address: t,
|
|
1054
1054
|
args: [f],
|
|
1055
1055
|
...this.optionallyAttachAccount(),
|
|
@@ -1066,7 +1066,7 @@ const M = class M extends x0 {
|
|
|
1066
1066
|
* @returns {Promise<Address>}
|
|
1067
1067
|
*/
|
|
1068
1068
|
async createBoostAuth(f) {
|
|
1069
|
-
return await
|
|
1069
|
+
return await i0(this._config, {
|
|
1070
1070
|
...h(
|
|
1071
1071
|
this._config,
|
|
1072
1072
|
this.addresses,
|
|
@@ -1104,7 +1104,7 @@ const M = class M extends x0 {
|
|
|
1104
1104
|
* @returns {Promise<{ hash: `0x${string}`; result: void; }>}
|
|
1105
1105
|
*/
|
|
1106
1106
|
async setCreateBoostAuthRaw(f, e) {
|
|
1107
|
-
const { request: t, result: a } = await
|
|
1107
|
+
const { request: t, result: a } = await o0(
|
|
1108
1108
|
this._config,
|
|
1109
1109
|
{
|
|
1110
1110
|
...h(
|
|
@@ -1118,7 +1118,7 @@ const M = class M extends x0 {
|
|
|
1118
1118
|
...e
|
|
1119
1119
|
}
|
|
1120
1120
|
);
|
|
1121
|
-
return { hash: await
|
|
1121
|
+
return { hash: await r0(this._config, t), result: a };
|
|
1122
1122
|
}
|
|
1123
1123
|
/**
|
|
1124
1124
|
* Get the protocol fee.
|
|
@@ -1129,7 +1129,7 @@ const M = class M extends x0 {
|
|
|
1129
1129
|
* @returns {unknown}
|
|
1130
1130
|
*/
|
|
1131
1131
|
async protocolFee(f) {
|
|
1132
|
-
return await
|
|
1132
|
+
return await u0(this._config, {
|
|
1133
1133
|
...h(
|
|
1134
1134
|
this._config,
|
|
1135
1135
|
this.addresses,
|
|
@@ -1150,7 +1150,7 @@ const M = class M extends x0 {
|
|
|
1150
1150
|
* @returns {Promise<Address>}
|
|
1151
1151
|
*/
|
|
1152
1152
|
async protocolFeeReceiver(f) {
|
|
1153
|
-
return await
|
|
1153
|
+
return await h0(this._config, {
|
|
1154
1154
|
...h(
|
|
1155
1155
|
this._config,
|
|
1156
1156
|
this.addresses,
|
|
@@ -1188,7 +1188,7 @@ const M = class M extends x0 {
|
|
|
1188
1188
|
* @returns {Promise<{ hash: `0x${string}`; result: void; }>}
|
|
1189
1189
|
*/
|
|
1190
1190
|
async setProcolFeeReceiverRaw(f, e) {
|
|
1191
|
-
const { request: t, result: a } = await
|
|
1191
|
+
const { request: t, result: a } = await l0(
|
|
1192
1192
|
this._config,
|
|
1193
1193
|
{
|
|
1194
1194
|
...h(
|
|
@@ -1202,7 +1202,7 @@ const M = class M extends x0 {
|
|
|
1202
1202
|
...e
|
|
1203
1203
|
}
|
|
1204
1204
|
);
|
|
1205
|
-
return { hash: await
|
|
1205
|
+
return { hash: await g0(
|
|
1206
1206
|
this._config,
|
|
1207
1207
|
t
|
|
1208
1208
|
), result: a };
|
|
@@ -1219,9 +1219,9 @@ const M = class M extends x0 {
|
|
|
1219
1219
|
*/
|
|
1220
1220
|
async getIncentiveFeesInfo(f, e, t) {
|
|
1221
1221
|
const a = p0(
|
|
1222
|
-
|
|
1222
|
+
_0(["uint256", "uint256"], [f, e])
|
|
1223
1223
|
);
|
|
1224
|
-
return await
|
|
1224
|
+
return await w0(this._config, {
|
|
1225
1225
|
...h(
|
|
1226
1226
|
this._config,
|
|
1227
1227
|
this.addresses,
|
|
@@ -1258,7 +1258,7 @@ const M = class M extends x0 {
|
|
|
1258
1258
|
*/
|
|
1259
1259
|
async getClaimFromTransaction(f) {
|
|
1260
1260
|
var a;
|
|
1261
|
-
const e = await
|
|
1261
|
+
const e = await B0(this._config, f);
|
|
1262
1262
|
return (a = _({
|
|
1263
1263
|
abi: y,
|
|
1264
1264
|
eventName: "BoostClaimed",
|
|
@@ -1290,7 +1290,7 @@ const M = class M extends x0 {
|
|
|
1290
1290
|
*/
|
|
1291
1291
|
async calculateProtocolFee(f, e) {
|
|
1292
1292
|
const t = await this.protocolFee(e);
|
|
1293
|
-
return f * t /
|
|
1293
|
+
return f * t / p;
|
|
1294
1294
|
}
|
|
1295
1295
|
/**
|
|
1296
1296
|
* Bound {@link PassthroughAuth} constructor that reuses the same configuration as the Boost Core instance.
|
|
@@ -1304,7 +1304,7 @@ const M = class M extends x0 {
|
|
|
1304
1304
|
* @returns {PassthroughAuth}
|
|
1305
1305
|
*/
|
|
1306
1306
|
PassthroughAuth(f) {
|
|
1307
|
-
return new
|
|
1307
|
+
return new L0(
|
|
1308
1308
|
{ config: this._config, account: this._account },
|
|
1309
1309
|
f
|
|
1310
1310
|
);
|
|
@@ -1340,7 +1340,7 @@ const M = class M extends x0 {
|
|
|
1340
1340
|
* const action = new EventAction({ config: core._config, account: core._account }, '0x')
|
|
1341
1341
|
*/
|
|
1342
1342
|
EventAction(f, e) {
|
|
1343
|
-
return new
|
|
1343
|
+
return new V0(
|
|
1344
1344
|
{ config: this._config, account: this._account },
|
|
1345
1345
|
f,
|
|
1346
1346
|
e
|
|
@@ -1380,7 +1380,7 @@ const M = class M extends x0 {
|
|
|
1380
1380
|
* @returns {OpenAllowList}
|
|
1381
1381
|
*/
|
|
1382
1382
|
OpenAllowList(f) {
|
|
1383
|
-
return new
|
|
1383
|
+
return new S0(
|
|
1384
1384
|
{ config: this._config, account: this._account },
|
|
1385
1385
|
void 0,
|
|
1386
1386
|
f
|
|
@@ -1399,7 +1399,7 @@ const M = class M extends x0 {
|
|
|
1399
1399
|
* @returns {SimpleAllowList}
|
|
1400
1400
|
*/
|
|
1401
1401
|
SimpleAllowList(f, e) {
|
|
1402
|
-
return new
|
|
1402
|
+
return new T0(
|
|
1403
1403
|
{ config: this._config, account: this._account },
|
|
1404
1404
|
f,
|
|
1405
1405
|
e
|
|
@@ -1453,7 +1453,7 @@ const M = class M extends x0 {
|
|
|
1453
1453
|
* @returns {ManagedBudget}
|
|
1454
1454
|
*/
|
|
1455
1455
|
ManagedBudget(f) {
|
|
1456
|
-
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [
|
|
1456
|
+
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [S.MANAGER, ...f.roles]), new $0(
|
|
1457
1457
|
{ config: this._config, account: this._account },
|
|
1458
1458
|
f
|
|
1459
1459
|
);
|
|
@@ -1471,7 +1471,7 @@ const M = class M extends x0 {
|
|
|
1471
1471
|
* @returns {ManagedBudgetWithFees}
|
|
1472
1472
|
*/
|
|
1473
1473
|
ManagedBudgetWithFees(f) {
|
|
1474
|
-
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [
|
|
1474
|
+
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [S.MANAGER, ...f.roles]), new M0(
|
|
1475
1475
|
{ config: this._config, account: this._account },
|
|
1476
1476
|
f
|
|
1477
1477
|
);
|
|
@@ -1489,7 +1489,7 @@ const M = class M extends x0 {
|
|
|
1489
1489
|
* @returns {ManagedBudgetWithFeesV2}
|
|
1490
1490
|
*/
|
|
1491
1491
|
ManagedBudgetWithFeesV2(f) {
|
|
1492
|
-
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [
|
|
1492
|
+
return typeof f != "string" && !f.authorized.includes(this.assertValidAddress()) && (f.authorized = [this.assertValidAddress(), ...f.authorized], f.roles = [S.MANAGER, ...f.roles]), new x0(
|
|
1493
1493
|
{ config: this._config, account: this._account },
|
|
1494
1494
|
f
|
|
1495
1495
|
);
|
|
@@ -1557,7 +1557,7 @@ const M = class M extends x0 {
|
|
|
1557
1557
|
* @returns {VestingBudget}
|
|
1558
1558
|
*/
|
|
1559
1559
|
AllowListIncentive(f) {
|
|
1560
|
-
return new
|
|
1560
|
+
return new z0(
|
|
1561
1561
|
{ config: this._config, account: this._account },
|
|
1562
1562
|
f
|
|
1563
1563
|
);
|
|
@@ -1574,7 +1574,7 @@ const M = class M extends x0 {
|
|
|
1574
1574
|
* @returns {CGDAIncentive}
|
|
1575
1575
|
*/
|
|
1576
1576
|
CGDAIncentive(f) {
|
|
1577
|
-
return new
|
|
1577
|
+
return new W0(
|
|
1578
1578
|
{ config: this._config, account: this._account },
|
|
1579
1579
|
f
|
|
1580
1580
|
);
|
|
@@ -1591,7 +1591,7 @@ const M = class M extends x0 {
|
|
|
1591
1591
|
* @returns {ERC20Incentive}
|
|
1592
1592
|
*/
|
|
1593
1593
|
ERC20Incentive(f) {
|
|
1594
|
-
return new
|
|
1594
|
+
return new q0(
|
|
1595
1595
|
{ config: this._config, account: this._account },
|
|
1596
1596
|
f
|
|
1597
1597
|
);
|
|
@@ -1608,7 +1608,7 @@ const M = class M extends x0 {
|
|
|
1608
1608
|
* @returns {ERC20PeggedIncentive}
|
|
1609
1609
|
*/
|
|
1610
1610
|
ERC20PeggedIncentive(f) {
|
|
1611
|
-
return new
|
|
1611
|
+
return new k0(
|
|
1612
1612
|
{ config: this._config, account: this._account },
|
|
1613
1613
|
f
|
|
1614
1614
|
);
|
|
@@ -1644,7 +1644,7 @@ const M = class M extends x0 {
|
|
|
1644
1644
|
* @returns {PointsIncentive}
|
|
1645
1645
|
*/
|
|
1646
1646
|
PointsIncentive(f) {
|
|
1647
|
-
return new
|
|
1647
|
+
return new K0(
|
|
1648
1648
|
{ config: this._config, account: this._account },
|
|
1649
1649
|
f
|
|
1650
1650
|
);
|
|
@@ -1662,7 +1662,7 @@ const M = class M extends x0 {
|
|
|
1662
1662
|
* @returns {SignerValidator}
|
|
1663
1663
|
*/
|
|
1664
1664
|
SignerValidator(f, e) {
|
|
1665
|
-
return new
|
|
1665
|
+
return new Q0(
|
|
1666
1666
|
{ config: this._config, account: this._account },
|
|
1667
1667
|
f,
|
|
1668
1668
|
e
|
|
@@ -1687,6 +1687,25 @@ const M = class M extends x0 {
|
|
|
1687
1687
|
e
|
|
1688
1688
|
);
|
|
1689
1689
|
}
|
|
1690
|
+
/**
|
|
1691
|
+
* Bound {@link PayableLimitedSignerValidator} constructor that reuses the same configuration as the Boost Core instance.
|
|
1692
|
+
*
|
|
1693
|
+
* @example
|
|
1694
|
+
* ```ts
|
|
1695
|
+
* const validator = core.PayableLimitedSignerValidator({ ... }) // is roughly equivalent to
|
|
1696
|
+
* const validator = new PayableLimitedSignerValidator({ config: core._config, account: core._account }, { ... })
|
|
1697
|
+
* ```
|
|
1698
|
+
* @param {DeployablePayloadOrAddress<PayableLimitedSignerValidatorPayload>} options
|
|
1699
|
+
* @param {?boolean} [isBase]
|
|
1700
|
+
* @returns {PayableLimitedSignerValidator}
|
|
1701
|
+
*/
|
|
1702
|
+
PayableLimitedSignerValidator(f, e) {
|
|
1703
|
+
return new J0(
|
|
1704
|
+
{ config: this._config, account: this._account },
|
|
1705
|
+
f,
|
|
1706
|
+
e ?? !1
|
|
1707
|
+
);
|
|
1708
|
+
}
|
|
1690
1709
|
/**
|
|
1691
1710
|
* Bound {@link ERC20VariableCriteriaIncentiveV2} constructor that reuses the same configuration as the Boost Core instance.
|
|
1692
1711
|
*
|
|
@@ -1700,7 +1719,7 @@ const M = class M extends x0 {
|
|
|
1700
1719
|
* @returns {ERC20VariableCrtieriaIncentiveV2}
|
|
1701
1720
|
* */
|
|
1702
1721
|
ERC20VariableCriteriaIncentiveV2(f, e) {
|
|
1703
|
-
return new
|
|
1722
|
+
return new H0(
|
|
1704
1723
|
{ config: this._config, account: this._account },
|
|
1705
1724
|
f,
|
|
1706
1725
|
e
|
|
@@ -1719,7 +1738,7 @@ const M = class M extends x0 {
|
|
|
1719
1738
|
* @returns {ERC20PeggedVariableCriteriaIncentiveV2}
|
|
1720
1739
|
* */
|
|
1721
1740
|
ERC20PeggedVariableCriteriaIncentiveV2(f, e) {
|
|
1722
|
-
return new
|
|
1741
|
+
return new U0(
|
|
1723
1742
|
{ config: this._config, account: this._account },
|
|
1724
1743
|
f,
|
|
1725
1744
|
e
|
|
@@ -1738,7 +1757,7 @@ const M = class M extends x0 {
|
|
|
1738
1757
|
* @returns {ERC20VariableIncentive}
|
|
1739
1758
|
*/
|
|
1740
1759
|
ERC20VariableIncentive(f, e) {
|
|
1741
|
-
return new
|
|
1760
|
+
return new i1(
|
|
1742
1761
|
{ config: this._config, account: this._account },
|
|
1743
1762
|
f,
|
|
1744
1763
|
e
|
|
@@ -1759,7 +1778,7 @@ const M = class M extends x0 {
|
|
|
1759
1778
|
);
|
|
1760
1779
|
return {
|
|
1761
1780
|
abi: y,
|
|
1762
|
-
bytecode:
|
|
1781
|
+
bytecode: o1,
|
|
1763
1782
|
args: t,
|
|
1764
1783
|
...this.optionallyAttachAccount(a.account)
|
|
1765
1784
|
};
|
|
@@ -1811,7 +1830,7 @@ const M = class M extends x0 {
|
|
|
1811
1830
|
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
1812
1831
|
*/
|
|
1813
1832
|
async topupIncentiveFromBudgetPostFee(f, e, t, a, b) {
|
|
1814
|
-
const d = await this.protocolFee(b), c = t *
|
|
1833
|
+
const d = await this.protocolFee(b), c = t * p / (p + d);
|
|
1815
1834
|
return this.topupIncentiveFromBudgetPreFee(
|
|
1816
1835
|
f,
|
|
1817
1836
|
e,
|
|
@@ -1864,7 +1883,7 @@ const M = class M extends x0 {
|
|
|
1864
1883
|
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
1865
1884
|
*/
|
|
1866
1885
|
async topupIncentiveFromSenderPostFee(f, e, t, a) {
|
|
1867
|
-
const b = await this.protocolFee(a), d = t *
|
|
1886
|
+
const b = await this.protocolFee(a), d = t * p / (p + b);
|
|
1868
1887
|
return this.topupIncentiveFromSenderPreFee(
|
|
1869
1888
|
f,
|
|
1870
1889
|
e,
|
|
@@ -1884,7 +1903,7 @@ const M = class M extends x0 {
|
|
|
1884
1903
|
* @returns {Promise<{ hash: Hex; result: void }>}
|
|
1885
1904
|
*/
|
|
1886
1905
|
async topupIncentiveFromSenderRaw(f, e, t, a) {
|
|
1887
|
-
const { request: b, result: d } = await
|
|
1906
|
+
const { request: b, result: d } = await v0(
|
|
1888
1907
|
this._config,
|
|
1889
1908
|
{
|
|
1890
1909
|
...this.optionallyAttachAccount(),
|
|
@@ -1893,7 +1912,7 @@ const M = class M extends x0 {
|
|
|
1893
1912
|
args: [f, e, t]
|
|
1894
1913
|
}
|
|
1895
1914
|
);
|
|
1896
|
-
return { hash: await
|
|
1915
|
+
return { hash: await A0(
|
|
1897
1916
|
this._config,
|
|
1898
1917
|
b
|
|
1899
1918
|
), result: d };
|
|
@@ -1918,7 +1937,7 @@ const M = class M extends x0 {
|
|
|
1918
1937
|
...this.optionallyAttachAccount(),
|
|
1919
1938
|
...b,
|
|
1920
1939
|
address: this.assertValidAddress(),
|
|
1921
|
-
args: [f, e, t, a ??
|
|
1940
|
+
args: [f, e, t, a ?? m]
|
|
1922
1941
|
}
|
|
1923
1942
|
);
|
|
1924
1943
|
return { hash: await C0(
|
|
@@ -1927,13 +1946,13 @@ const M = class M extends x0 {
|
|
|
1927
1946
|
), result: c };
|
|
1928
1947
|
}
|
|
1929
1948
|
};
|
|
1930
|
-
M.addresses =
|
|
1931
|
-
let
|
|
1949
|
+
M.addresses = O;
|
|
1950
|
+
let W = M;
|
|
1932
1951
|
export {
|
|
1933
1952
|
J1 as BOOST_CORE_ADDRESS,
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1953
|
+
O as BOOST_CORE_ADDRESSES,
|
|
1954
|
+
W as BoostCore,
|
|
1955
|
+
p as FEE_DENOMINATOR,
|
|
1937
1956
|
y as boostCoreAbi
|
|
1938
1957
|
};
|
|
1939
1958
|
//# sourceMappingURL=BoostCore.js.map
|