@boostxyz/sdk 7.7.0 → 8.0.0-canary.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 +1 -1
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +25 -4
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +208 -184
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/{AllowList-DiU7g4Hs.js → AllowList-CWqAYlwr.js} +28 -28
- package/dist/{AllowList-DiU7g4Hs.js.map → AllowList-CWqAYlwr.js.map} +1 -1
- package/dist/{AllowList-BJ9HQGFs.cjs → AllowList-Lpqz7tn9.cjs} +2 -2
- package/dist/{AllowList-BJ9HQGFs.cjs.map → AllowList-Lpqz7tn9.cjs.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.js +8 -8
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.js +3 -3
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +1 -1
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +106 -23
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +518 -451
- package/dist/BoostCore.js.map +1 -1
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +46 -46
- package/dist/{Budget-YIhV65cc.js → Budget-BPPXnBAK.js} +36 -36
- package/dist/{Budget-YIhV65cc.js.map → Budget-BPPXnBAK.js.map} +1 -1
- package/dist/{Budget-D_zhh1rh.cjs → Budget-rZm-AY09.cjs} +2 -2
- package/dist/{Budget-D_zhh1rh.cjs.map → Budget-rZm-AY09.cjs.map} +1 -1
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.js +2 -2
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.js +24 -24
- package/dist/Deployable/Contract.cjs +1 -1
- package/dist/Deployable/Contract.cjs.map +1 -1
- package/dist/Deployable/Contract.d.ts +8 -0
- package/dist/Deployable/Contract.d.ts.map +1 -1
- package/dist/Deployable/Contract.js +14 -4
- package/dist/Deployable/Contract.js.map +1 -1
- package/dist/Deployable/Deployable.cjs +1 -1
- package/dist/Deployable/Deployable.cjs.map +1 -1
- package/dist/Deployable/Deployable.d.ts +7 -0
- package/dist/Deployable/Deployable.d.ts.map +1 -1
- package/dist/Deployable/Deployable.js +13 -4
- package/dist/Deployable/Deployable.js.map +1 -1
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.js +7 -7
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.js +16 -16
- package/dist/{Incentive-CrnbYN_a.cjs → Incentive-Bse5BKbF.cjs} +2 -2
- package/dist/{Incentive-CrnbYN_a.cjs.map → Incentive-Bse5BKbF.cjs.map} +1 -1
- package/dist/{Incentive-CeoEla-t.js → Incentive-D1sYPD0W.js} +23 -23
- package/dist/{Incentive-CeoEla-t.js.map → Incentive-D1sYPD0W.js.map} +1 -1
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.js +17 -17
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.js +38 -38
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.js +13 -13
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts +6 -6
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js +22 -22
- 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 +6 -6
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js +91 -91
- 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 +6 -6
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js +9 -9
- 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 +6 -6
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js +9 -9
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableIncentive.js +12 -12
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.js +2 -2
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.js +10 -10
- package/dist/{SimpleDenyList-Dr03aOeP.js → SimpleDenyList-BtEUdiAj.js} +14 -14
- package/dist/{SimpleDenyList-Dr03aOeP.js.map → SimpleDenyList-BtEUdiAj.js.map} +1 -1
- package/dist/{SimpleDenyList-7-VTqfsH.cjs → SimpleDenyList-DEoMIYhE.cjs} +2 -2
- package/dist/{SimpleDenyList-7-VTqfsH.cjs.map → SimpleDenyList-DEoMIYhE.cjs.map} +1 -1
- package/dist/{Validator-rYW7PMwW.cjs → Validator-DHS4vjSa.cjs} +2 -2
- package/dist/{Validator-rYW7PMwW.cjs.map → Validator-DHS4vjSa.cjs.map} +1 -1
- package/dist/{Validator-DgvB9wge.js → Validator-Kpvmj9Bs.js} +9 -9
- package/dist/{Validator-DgvB9wge.js.map → Validator-Kpvmj9Bs.js.map} +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs +1 -1
- package/dist/Validators/LimitedSignerValidator.js +17 -17
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.js +3 -3
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.js +2 -2
- package/dist/{deployments-CHQ30INq.js → deployments-Coa8CGi2.js} +67 -67
- package/dist/{deployments-CHQ30INq.js.map → deployments-Coa8CGi2.js.map} +1 -1
- package/dist/{deployments-BjBgk03b.cjs → deployments-Dgzcz4Ev.cjs} +2 -2
- package/dist/deployments-Dgzcz4Ev.cjs.map +1 -0
- package/dist/deployments.json +46 -46
- package/dist/generated-BzLYuFx3.cjs +3 -0
- package/dist/generated-BzLYuFx3.cjs.map +1 -0
- package/dist/{generated-B6mEIx8i.js → generated-D6oDILUw.js} +250 -193
- package/dist/generated-D6oDILUw.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +185 -182
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/src/Actions/EventAction.test.ts +161 -1
- package/src/Actions/EventAction.ts +52 -5
- package/src/BoostCore.test.ts +34 -23
- package/src/BoostCore.ts +124 -26
- package/src/Deployable/Contract.ts +11 -0
- package/src/Deployable/Deployable.ts +10 -0
- package/src/utils.ts +0 -1
- package/dist/deployments-BjBgk03b.cjs.map +0 -1
- package/dist/generated-B6mEIx8i.js.map +0 -1
- package/dist/generated-dd4FN0Fo.cjs +0 -3
- package/dist/generated-dd4FN0Fo.cjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../generated-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../generated-BzLYuFx3.cjs");require("../componentInterfaces-BZ3fSNkT.cjs");require("@wagmi/core");require("../errors.cjs");const e=require("../AllowList-Lpqz7tn9.cjs"),i=require("./SimpleAllowList.cjs"),l=require("../SimpleDenyList-DEoMIYhE.cjs");exports.AllowListByComponentInterface=e.AllowListByComponentInterface;exports.OffchainAccessList=e.OffchainAccessList;exports.OpenAllowList=e.OpenAllowList;exports.allowListFromAddress=e.allowListFromAddress;exports.SimpleAllowList=i.SimpleAllowList;exports.SimpleDenyList=l.SimpleDenyList;
|
|
2
2
|
//# sourceMappingURL=AllowList.cjs.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../generated-
|
|
1
|
+
import "../generated-D6oDILUw.js";
|
|
2
2
|
import "../componentInterfaces-D2s6AXlV.js";
|
|
3
3
|
import "@wagmi/core";
|
|
4
4
|
import "../errors.js";
|
|
5
|
-
import { A as m, O as p, a as l, b as a } from "../AllowList-
|
|
5
|
+
import { A as m, O as p, a as l, b as a } from "../AllowList-CWqAYlwr.js";
|
|
6
6
|
import { SimpleAllowList as n } from "./SimpleAllowList.js";
|
|
7
|
-
import { S as L } from "../SimpleDenyList-
|
|
7
|
+
import { S as L } from "../SimpleDenyList-BtEUdiAj.js";
|
|
8
8
|
export {
|
|
9
9
|
m as AllowListByComponentInterface,
|
|
10
10
|
p as OffchainAccessList,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../generated-dd4FN0Fo.cjs"),A=require("@wagmi/core"),o=require("viem"),h=require("../deployments-BjBgk03b.cjs"),n=require("../Deployable/DeployableTargetWithRBAC.cjs"),w=require("../errors.cjs"),y=require("../utils.cjs"),p="0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b611160806100895f395ff3fe608060405260043610610183575f3560e01c806354d1f13d116100d1578063e3f756de1161007c578063f2fde38b11610057578063f2fde38b14610445578063fe9fbb8014610458578063fee81cf414610477575f80fd5b8063e3f756de146103d8578063ec87621c1461041e578063f04e283e14610432575f80fd5b80638da5cb5b116100ac5780638da5cb5b14610362578063be4994f81461039a578063dcc21361146103b9575f80fd5b806354d1f13d1461033e578063715018a61461034657806375b238fc1461034e575f80fd5b80632de9480711610131578063439fab911161010c578063439fab91146102d75780634a4ee7b1146102f6578063514e62fc14610309575f80fd5b80632de948071461025a5780633abb0604146102995780634359d28a146102b8575f80fd5b80631cd64df4116101615780631cd64df4146101e3578063256929621461021857806328d6183b14610220575f80fd5b806301ffc9a714610187578063183a4f6e146101bb5780631c10893f146101d0575b5f80fd5b348015610192575f80fd5b506101a66101a1366004610d5e565b6104a8565b60405190151581526020015b60405180910390f35b6101ce6101c9366004610da4565b610503565b005b6101ce6101de366004610dec565b610510565b3480156101ee575f80fd5b506101a66101fd366004610dec565b638b78c6d8600c9081525f9290925260209091205481161490565b6101ce610526565b34801561022b575f80fd5b506040517f1392d7980000000000000000000000000000000000000000000000000000000081526020016101b2565b348015610265575f80fd5b5061028b610274366004610e16565b638b78c6d8600c9081525f91909152602090205490565b6040519081526020016101b2565b3480156102a4575f80fd5b506101ce6102b3366004610e79565b610573565b3480156102c3575f80fd5b506101ce6102d2366004610e79565b6106a6565b3480156102e2575f80fd5b506101ce6102f1366004610f23565b6107a0565b6101ce610304366004610dec565b6108cf565b348015610314575f80fd5b506101a6610323366004610dec565b638b78c6d8600c9081525f9290925260209091205416151590565b6101ce6108e1565b6101ce61091a565b348015610359575f80fd5b5061028b600281565b34801561036d575f80fd5b50638b78c6d8195460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b2565b3480156103a5575f80fd5b506101ce6103b4366004610e79565b61092d565b3480156103c4575f80fd5b506101ce6103d3366004610e79565b6109cb565b3480156103e3575f80fd5b506101a66103f2366004610f62565b505073ffffffffffffffffffffffffffffffffffffffff165f9081526020819052604090205460ff1690565b348015610429575f80fd5b5061028b600181565b6101ce610440366004610e16565b610a69565b6101ce610453366004610e16565b610aa3565b348015610463575f80fd5b506101a6610472366004610e16565b610ac9565b348015610482575f80fd5b5061028b610491366004610e16565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f1392d7980000000000000000000000000000000000000000000000000000000014806104fd57506104fd82610b28565b92915050565b61050d3382610b7d565b50565b610518610b88565b6105228282610ba2565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b61057c33610ac9565b6105b2576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8281146105eb576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8381101561069f5782828281811061060757610607610fb3565b905060200201602081019061061c9190610fe0565b5f8087878581811061063057610630610fb3565b90506020020160208101906106459190610e16565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f2080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790556001016105ed565b5050505050565b60026106b181610bae565b8382146106ea576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610798575f84848381811061070757610707610fb3565b905060200201602081019061071c9190610fe0565b905080151560010361075e5761075987878481811061073d5761073d610fb3565b90506020020160208101906107529190610e16565b6001610ba2565b61078f565b61078f87878481811061077357610773610fb3565b90506020020160208101906107889190610e16565b6001610b7d565b506001016106ec565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156107f15760018160011c14303b106107e85763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f806108008486018661102c565b9150915061080d82610bdf565b5f5b81518110156108925760015f8084848151811061082e5761082e610fb3565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff1682528101919091526040015f2080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560010161080f565b50505080156108ca576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b6108d7610b88565b6105228282610b7d565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b610922610b88565b61092b5f610c27565b565b600261093881610bae565b838214610971576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610798576109c386868381811061099057610990610fb3565b90506020020160208101906109a59190610e16565b8585848181106109b7576109b7610fb3565b90506020020135610ba2565b600101610973565b60026109d681610bae565b838214610a0f576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8481101561079857610a61868683818110610a2e57610a2e610fb3565b9050602002016020810190610a439190610e16565b858584818110610a5557610a55610fb3565b90506020020135610b7d565b600101610a11565b610a71610b88565b63389a75e1600c52805f526020600c208054421115610a9757636f5e88185f526004601cfd5b5f905561050d81610c27565b610aab610b88565b8060601b610ac057637448fbae5f526004601cfd5b61050d81610c27565b5f8173ffffffffffffffffffffffffffffffffffffffff16610aee638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff1614806104fd5750638b78c6d8600c9081525f839052602090205460031615156104fd565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe2089f790000000000000000000000000000000000000000000000000000000014806104fd57506104fd82610c71565b61052282825f610d07565b638b78c6d81954331461092b576382b429005f526004601cfd5b61052282826001610d07565b638b78c6d81954331461050d57638b78c6d8600c52335f52806020600c20541661050d576382b429005f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806104fd57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146104fd565b638b78c6d8600c52825f526020600c20805483811783610d28575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f60208284031215610d6e575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610d9d575f80fd5b9392505050565b5f60208284031215610db4575f80fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff8116811461050d575f80fd5b8035610de781610dbb565b919050565b5f8060408385031215610dfd575f80fd5b8235610e0881610dbb565b946020939093013593505050565b5f60208284031215610e26575f80fd5b8135610d9d81610dbb565b5f8083601f840112610e41575f80fd5b50813567ffffffffffffffff811115610e58575f80fd5b6020830191508360208260051b8501011115610e72575f80fd5b9250929050565b5f805f8060408587031215610e8c575f80fd5b843567ffffffffffffffff811115610ea2575f80fd5b610eae87828801610e31565b909550935050602085013567ffffffffffffffff811115610ecd575f80fd5b610ed987828801610e31565b95989497509550505050565b5f8083601f840112610ef5575f80fd5b50813567ffffffffffffffff811115610f0c575f80fd5b602083019150836020828501011115610e72575f80fd5b5f8060208385031215610f34575f80fd5b823567ffffffffffffffff811115610f4a575f80fd5b610f5685828601610ee5565b90969095509350505050565b5f805f60408486031215610f74575f80fd5b8335610f7f81610dbb565b9250602084013567ffffffffffffffff811115610f9a575f80fd5b610fa686828701610ee5565b9497909650939450505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215610ff0575f80fd5b81358015158114610d9d575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f806040838503121561103d575f80fd5b823561104881610dbb565b9150602083013567ffffffffffffffff811115611063575f80fd5b8301601f81018513611073575f80fd5b803567ffffffffffffffff81111561108d5761108d610fff565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811067ffffffffffffffff821117156110d8576110d8610fff565b6040529182526020818401810192908101888411156110f5575f80fd5b6020850194505b8385101561111b5761110d85610ddc565b8152602094850194016110fc565b5080945050505050925092905056fea26469706673582212208ea2f8d50b08c5f7201da49ca75834a3d5195e6d5f06fd686224f8d0cbbbc1f364736f6c634300081a0033",r={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"},E=n.Roles.MANAGER,t=class t extends n.DeployableTargetWithRBAC{constructor(){super(...arguments),this.abi=a.S}async owner(f){return await a.r3(this._config,{...this.optionallyAttachAccount(),...f,address:this.assertValidAddress(),args:[]})}async isAllowed(f,e){return await a.i3(this._config,{address:this.assertValidAddress(),args:[f,o.zeroHash],...this.optionallyAttachAccount(),...e})}async setAllowed(f,e,b){return await this.awaitResult(this.setAllowedRaw(f,e,b))}async setAllowedRaw(f,e,b){const{request:d,result:c}=await a.F3(this._config,{address:this.assertValidAddress(),args:[f,e],...this.optionallyAttachAccount(),...b});return{hash:await a.A3(this._config,d),result:c}}buildParameters(f,e){var c;const[b,d]=this.validateDeploymentConfig(f,e);if(!b.owner||b.owner===o.zeroAddress){const s=d.account?d.account.address:d.config?A.getAccount(d.config).address:(c=this._account)==null?void 0:c.address;if(s)b.owner=s;else throw new w.DeployableUnknownOwnerProvidedError}return{abi:a.S,bytecode:p,args:[l(b)],...this.optionallyAttachAccount(d.account)}}};t.bases={...r!=null&&r.VITE_SIMPLE_ALLOWLIST_BASE?{31337:void 0}:{},...h.SimpleAllowList},t.registryType=y.RegistryType.ALLOW_LIST;let i=t;function l({owner:u,allowed:f}){return o.encodeAbiParameters([{type:"address",name:"owner"},{type:"address[]",name:"allowed"}],[u,f])}exports.simpleAllowListAbi=a.S;exports.LIST_MANAGER_ROLE=E;exports.SimpleAllowList=i;exports.prepareSimpleAllowListPayload=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../generated-BzLYuFx3.cjs"),A=require("@wagmi/core"),o=require("viem"),h=require("../deployments-Dgzcz4Ev.cjs"),n=require("../Deployable/DeployableTargetWithRBAC.cjs"),w=require("../errors.cjs"),y=require("../utils.cjs"),p="0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b611160806100895f395ff3fe608060405260043610610183575f3560e01c806354d1f13d116100d1578063e3f756de1161007c578063f2fde38b11610057578063f2fde38b14610445578063fe9fbb8014610458578063fee81cf414610477575f80fd5b8063e3f756de146103d8578063ec87621c1461041e578063f04e283e14610432575f80fd5b80638da5cb5b116100ac5780638da5cb5b14610362578063be4994f81461039a578063dcc21361146103b9575f80fd5b806354d1f13d1461033e578063715018a61461034657806375b238fc1461034e575f80fd5b80632de9480711610131578063439fab911161010c578063439fab91146102d75780634a4ee7b1146102f6578063514e62fc14610309575f80fd5b80632de948071461025a5780633abb0604146102995780634359d28a146102b8575f80fd5b80631cd64df4116101615780631cd64df4146101e3578063256929621461021857806328d6183b14610220575f80fd5b806301ffc9a714610187578063183a4f6e146101bb5780631c10893f146101d0575b5f80fd5b348015610192575f80fd5b506101a66101a1366004610d5e565b6104a8565b60405190151581526020015b60405180910390f35b6101ce6101c9366004610da4565b610503565b005b6101ce6101de366004610dec565b610510565b3480156101ee575f80fd5b506101a66101fd366004610dec565b638b78c6d8600c9081525f9290925260209091205481161490565b6101ce610526565b34801561022b575f80fd5b506040517f1392d7980000000000000000000000000000000000000000000000000000000081526020016101b2565b348015610265575f80fd5b5061028b610274366004610e16565b638b78c6d8600c9081525f91909152602090205490565b6040519081526020016101b2565b3480156102a4575f80fd5b506101ce6102b3366004610e79565b610573565b3480156102c3575f80fd5b506101ce6102d2366004610e79565b6106a6565b3480156102e2575f80fd5b506101ce6102f1366004610f23565b6107a0565b6101ce610304366004610dec565b6108cf565b348015610314575f80fd5b506101a6610323366004610dec565b638b78c6d8600c9081525f9290925260209091205416151590565b6101ce6108e1565b6101ce61091a565b348015610359575f80fd5b5061028b600281565b34801561036d575f80fd5b50638b78c6d8195460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b2565b3480156103a5575f80fd5b506101ce6103b4366004610e79565b61092d565b3480156103c4575f80fd5b506101ce6103d3366004610e79565b6109cb565b3480156103e3575f80fd5b506101a66103f2366004610f62565b505073ffffffffffffffffffffffffffffffffffffffff165f9081526020819052604090205460ff1690565b348015610429575f80fd5b5061028b600181565b6101ce610440366004610e16565b610a69565b6101ce610453366004610e16565b610aa3565b348015610463575f80fd5b506101a6610472366004610e16565b610ac9565b348015610482575f80fd5b5061028b610491366004610e16565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f1392d7980000000000000000000000000000000000000000000000000000000014806104fd57506104fd82610b28565b92915050565b61050d3382610b7d565b50565b610518610b88565b6105228282610ba2565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b61057c33610ac9565b6105b2576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8281146105eb576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8381101561069f5782828281811061060757610607610fb3565b905060200201602081019061061c9190610fe0565b5f8087878581811061063057610630610fb3565b90506020020160208101906106459190610e16565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f2080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790556001016105ed565b5050505050565b60026106b181610bae565b8382146106ea576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610798575f84848381811061070757610707610fb3565b905060200201602081019061071c9190610fe0565b905080151560010361075e5761075987878481811061073d5761073d610fb3565b90506020020160208101906107529190610e16565b6001610ba2565b61078f565b61078f87878481811061077357610773610fb3565b90506020020160208101906107889190610e16565b6001610b7d565b506001016106ec565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156107f15760018160011c14303b106107e85763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f806108008486018661102c565b9150915061080d82610bdf565b5f5b81518110156108925760015f8084848151811061082e5761082e610fb3565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff1682528101919091526040015f2080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560010161080f565b50505080156108ca576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b6108d7610b88565b6105228282610b7d565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b610922610b88565b61092b5f610c27565b565b600261093881610bae565b838214610971576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610798576109c386868381811061099057610990610fb3565b90506020020160208101906109a59190610e16565b8585848181106109b7576109b7610fb3565b90506020020135610ba2565b600101610973565b60026109d681610bae565b838214610a0f576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8481101561079857610a61868683818110610a2e57610a2e610fb3565b9050602002016020810190610a439190610e16565b858584818110610a5557610a55610fb3565b90506020020135610b7d565b600101610a11565b610a71610b88565b63389a75e1600c52805f526020600c208054421115610a9757636f5e88185f526004601cfd5b5f905561050d81610c27565b610aab610b88565b8060601b610ac057637448fbae5f526004601cfd5b61050d81610c27565b5f8173ffffffffffffffffffffffffffffffffffffffff16610aee638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff1614806104fd5750638b78c6d8600c9081525f839052602090205460031615156104fd565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe2089f790000000000000000000000000000000000000000000000000000000014806104fd57506104fd82610c71565b61052282825f610d07565b638b78c6d81954331461092b576382b429005f526004601cfd5b61052282826001610d07565b638b78c6d81954331461050d57638b78c6d8600c52335f52806020600c20541661050d576382b429005f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806104fd57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146104fd565b638b78c6d8600c52825f526020600c20805483811783610d28575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f60208284031215610d6e575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610d9d575f80fd5b9392505050565b5f60208284031215610db4575f80fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff8116811461050d575f80fd5b8035610de781610dbb565b919050565b5f8060408385031215610dfd575f80fd5b8235610e0881610dbb565b946020939093013593505050565b5f60208284031215610e26575f80fd5b8135610d9d81610dbb565b5f8083601f840112610e41575f80fd5b50813567ffffffffffffffff811115610e58575f80fd5b6020830191508360208260051b8501011115610e72575f80fd5b9250929050565b5f805f8060408587031215610e8c575f80fd5b843567ffffffffffffffff811115610ea2575f80fd5b610eae87828801610e31565b909550935050602085013567ffffffffffffffff811115610ecd575f80fd5b610ed987828801610e31565b95989497509550505050565b5f8083601f840112610ef5575f80fd5b50813567ffffffffffffffff811115610f0c575f80fd5b602083019150836020828501011115610e72575f80fd5b5f8060208385031215610f34575f80fd5b823567ffffffffffffffff811115610f4a575f80fd5b610f5685828601610ee5565b90969095509350505050565b5f805f60408486031215610f74575f80fd5b8335610f7f81610dbb565b9250602084013567ffffffffffffffff811115610f9a575f80fd5b610fa686828701610ee5565b9497909650939450505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215610ff0575f80fd5b81358015158114610d9d575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f806040838503121561103d575f80fd5b823561104881610dbb565b9150602083013567ffffffffffffffff811115611063575f80fd5b8301601f81018513611073575f80fd5b803567ffffffffffffffff81111561108d5761108d610fff565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811067ffffffffffffffff821117156110d8576110d8610fff565b6040529182526020818401810192908101888411156110f5575f80fd5b6020850194505b8385101561111b5761110d85610ddc565b8152602094850194016110fc565b5080945050505050925092905056fea264697066735822122027fffd03dd768053e102d2296f2de3fb08c582f4cc6013e14d57229182f9dbd364736f6c634300081a0033",r={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"},E=n.Roles.MANAGER,t=class t extends n.DeployableTargetWithRBAC{constructor(){super(...arguments),this.abi=a.S}async owner(f){return await a.v7(this._config,{...this.optionallyAttachAccount(),...f,address:this.assertValidAddress(),args:[]})}async isAllowed(f,e){return await a.b7(this._config,{address:this.assertValidAddress(),args:[f,o.zeroHash],...this.optionallyAttachAccount(),...e})}async setAllowed(f,e,b){return await this.awaitResult(this.setAllowedRaw(f,e,b))}async setAllowedRaw(f,e,b){const{request:d,result:c}=await a.Z7(this._config,{address:this.assertValidAddress(),args:[f,e],...this.optionallyAttachAccount(),...b});return{hash:await a.B7(this._config,d),result:c}}buildParameters(f,e){var c;const[b,d]=this.validateDeploymentConfig(f,e);if(!b.owner||b.owner===o.zeroAddress){const s=d.account?d.account.address:d.config?A.getAccount(d.config).address:(c=this._account)==null?void 0:c.address;if(s)b.owner=s;else throw new w.DeployableUnknownOwnerProvidedError}return{abi:a.S,bytecode:p,args:[l(b)],...this.optionallyAttachAccount(d.account)}}};t.bases={...r!=null&&r.VITE_SIMPLE_ALLOWLIST_BASE?{31337:void 0}:{},...h.SimpleAllowList},t.registryType=y.RegistryType.ALLOW_LIST;let i=t;function l({owner:u,allowed:f}){return o.encodeAbiParameters([{type:"address",name:"owner"},{type:"address[]",name:"allowed"}],[u,f])}exports.simpleAllowListAbi=a.S;exports.LIST_MANAGER_ROLE=E;exports.SimpleAllowList=i;exports.prepareSimpleAllowListPayload=l;
|
|
2
2
|
//# sourceMappingURL=SimpleAllowList.cjs.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { S as
|
|
1
|
+
import { S as o, aw as n, ax as l, ay as A, az as h } from "../generated-D6oDILUw.js";
|
|
2
2
|
import { getAccount as u } from "@wagmi/core";
|
|
3
3
|
import { zeroHash as p, zeroAddress as w, encodeAbiParameters as y } from "viem";
|
|
4
|
-
import { S as E } from "../deployments-
|
|
4
|
+
import { S as E } from "../deployments-Coa8CGi2.js";
|
|
5
5
|
import { Roles as m, DeployableTargetWithRBAC as g } from "../Deployable/DeployableTargetWithRBAC.js";
|
|
6
6
|
import { DeployableUnknownOwnerProvidedError as T } from "../errors.js";
|
|
7
7
|
import { RegistryType as R } from "../utils.js";
|
|
8
|
-
const S = "
|
|
8
|
+
const S = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b611160806100895f395ff3fe608060405260043610610183575f3560e01c806354d1f13d116100d1578063e3f756de1161007c578063f2fde38b11610057578063f2fde38b14610445578063fe9fbb8014610458578063fee81cf414610477575f80fd5b8063e3f756de146103d8578063ec87621c1461041e578063f04e283e14610432575f80fd5b80638da5cb5b116100ac5780638da5cb5b14610362578063be4994f81461039a578063dcc21361146103b9575f80fd5b806354d1f13d1461033e578063715018a61461034657806375b238fc1461034e575f80fd5b80632de9480711610131578063439fab911161010c578063439fab91146102d75780634a4ee7b1146102f6578063514e62fc14610309575f80fd5b80632de948071461025a5780633abb0604146102995780634359d28a146102b8575f80fd5b80631cd64df4116101615780631cd64df4146101e3578063256929621461021857806328d6183b14610220575f80fd5b806301ffc9a714610187578063183a4f6e146101bb5780631c10893f146101d0575b5f80fd5b348015610192575f80fd5b506101a66101a1366004610d5e565b6104a8565b60405190151581526020015b60405180910390f35b6101ce6101c9366004610da4565b610503565b005b6101ce6101de366004610dec565b610510565b3480156101ee575f80fd5b506101a66101fd366004610dec565b638b78c6d8600c9081525f9290925260209091205481161490565b6101ce610526565b34801561022b575f80fd5b506040517f1392d7980000000000000000000000000000000000000000000000000000000081526020016101b2565b348015610265575f80fd5b5061028b610274366004610e16565b638b78c6d8600c9081525f91909152602090205490565b6040519081526020016101b2565b3480156102a4575f80fd5b506101ce6102b3366004610e79565b610573565b3480156102c3575f80fd5b506101ce6102d2366004610e79565b6106a6565b3480156102e2575f80fd5b506101ce6102f1366004610f23565b6107a0565b6101ce610304366004610dec565b6108cf565b348015610314575f80fd5b506101a6610323366004610dec565b638b78c6d8600c9081525f9290925260209091205416151590565b6101ce6108e1565b6101ce61091a565b348015610359575f80fd5b5061028b600281565b34801561036d575f80fd5b50638b78c6d8195460405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b2565b3480156103a5575f80fd5b506101ce6103b4366004610e79565b61092d565b3480156103c4575f80fd5b506101ce6103d3366004610e79565b6109cb565b3480156103e3575f80fd5b506101a66103f2366004610f62565b505073ffffffffffffffffffffffffffffffffffffffff165f9081526020819052604090205460ff1690565b348015610429575f80fd5b5061028b600181565b6101ce610440366004610e16565b610a69565b6101ce610453366004610e16565b610aa3565b348015610463575f80fd5b506101a6610472366004610e16565b610ac9565b348015610482575f80fd5b5061028b610491366004610e16565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f1392d7980000000000000000000000000000000000000000000000000000000014806104fd57506104fd82610b28565b92915050565b61050d3382610b7d565b50565b610518610b88565b6105228282610ba2565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b61057c33610ac9565b6105b2576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8281146105eb576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8381101561069f5782828281811061060757610607610fb3565b905060200201602081019061061c9190610fe0565b5f8087878581811061063057610630610fb3565b90506020020160208101906106459190610e16565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040015f2080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169115159190911790556001016105ed565b5050505050565b60026106b181610bae565b8382146106ea576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610798575f84848381811061070757610707610fb3565b905060200201602081019061071c9190610fe0565b905080151560010361075e5761075987878481811061073d5761073d610fb3565b90506020020160208101906107529190610e16565b6001610ba2565b61078f565b61078f87878481811061077357610773610fb3565b90506020020160208101906107889190610e16565b6001610b7d565b506001016106ec565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156107f15760018160011c14303b106107e85763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f806108008486018661102c565b9150915061080d82610bdf565b5f5b81518110156108925760015f8084848151811061082e5761082e610fb3565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff1682528101919091526040015f2080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905560010161080f565b50505080156108ca576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b6108d7610b88565b6105228282610b7d565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b610922610b88565b61092b5f610c27565b565b600261093881610bae565b838214610971576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610798576109c386868381811061099057610990610fb3565b90506020020160208101906109a59190610e16565b8585848181106109b7576109b7610fb3565b90506020020135610ba2565b600101610973565b60026109d681610bae565b838214610a0f576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8481101561079857610a61868683818110610a2e57610a2e610fb3565b9050602002016020810190610a439190610e16565b858584818110610a5557610a55610fb3565b90506020020135610b7d565b600101610a11565b610a71610b88565b63389a75e1600c52805f526020600c208054421115610a9757636f5e88185f526004601cfd5b5f905561050d81610c27565b610aab610b88565b8060601b610ac057637448fbae5f526004601cfd5b61050d81610c27565b5f8173ffffffffffffffffffffffffffffffffffffffff16610aee638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff1614806104fd5750638b78c6d8600c9081525f839052602090205460031615156104fd565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe2089f790000000000000000000000000000000000000000000000000000000014806104fd57506104fd82610c71565b61052282825f610d07565b638b78c6d81954331461092b576382b429005f526004601cfd5b61052282826001610d07565b638b78c6d81954331461050d57638b78c6d8600c52335f52806020600c20541661050d576382b429005f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806104fd57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146104fd565b638b78c6d8600c52825f526020600c20805483811783610d28575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f60208284031215610d6e575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114610d9d575f80fd5b9392505050565b5f60208284031215610db4575f80fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff8116811461050d575f80fd5b8035610de781610dbb565b919050565b5f8060408385031215610dfd575f80fd5b8235610e0881610dbb565b946020939093013593505050565b5f60208284031215610e26575f80fd5b8135610d9d81610dbb565b5f8083601f840112610e41575f80fd5b50813567ffffffffffffffff811115610e58575f80fd5b6020830191508360208260051b8501011115610e72575f80fd5b9250929050565b5f805f8060408587031215610e8c575f80fd5b843567ffffffffffffffff811115610ea2575f80fd5b610eae87828801610e31565b909550935050602085013567ffffffffffffffff811115610ecd575f80fd5b610ed987828801610e31565b95989497509550505050565b5f8083601f840112610ef5575f80fd5b50813567ffffffffffffffff811115610f0c575f80fd5b602083019150836020828501011115610e72575f80fd5b5f8060208385031215610f34575f80fd5b823567ffffffffffffffff811115610f4a575f80fd5b610f5685828601610ee5565b90969095509350505050565b5f805f60408486031215610f74575f80fd5b8335610f7f81610dbb565b9250602084013567ffffffffffffffff811115610f9a575f80fd5b610fa686828701610ee5565b9497909650939450505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215610ff0575f80fd5b81358015158114610d9d575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b5f806040838503121561103d575f80fd5b823561104881610dbb565b9150602083013567ffffffffffffffff811115611063575f80fd5b8301601f81018513611073575f80fd5b803567ffffffffffffffff81111561108d5761108d610fff565b8060051b6040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0603f830116810181811067ffffffffffffffff821117156110d8576110d8610fff565b6040529182526020818401810192908101888411156110f5575f80fd5b6020850194505b8385101561111b5761110d85610ddc565b8152602094850194016110fc565b5080945050505050925092905056fea264697066735822122027fffd03dd768053e102d2296f2de3fb08c582f4cc6013e14d57229182f9dbd364736f6c634300081a0033", t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" }, x = m.MANAGER, c = class c extends g {
|
|
9
9
|
constructor() {
|
|
10
|
-
super(...arguments), this.abi =
|
|
10
|
+
super(...arguments), this.abi = o;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Retrieves the owner
|
|
@@ -106,7 +106,7 @@ const S = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd19805
|
|
|
106
106
|
throw new T();
|
|
107
107
|
}
|
|
108
108
|
return {
|
|
109
|
-
abi:
|
|
109
|
+
abi: o,
|
|
110
110
|
bytecode: S,
|
|
111
111
|
args: [O(b)],
|
|
112
112
|
...this.optionallyAttachAccount(e.account)
|
|
@@ -117,7 +117,7 @@ c.bases = {
|
|
|
117
117
|
...t != null && t.VITE_SIMPLE_ALLOWLIST_BASE ? { 31337: void 0 } : {},
|
|
118
118
|
...E
|
|
119
119
|
}, c.registryType = R.ALLOW_LIST;
|
|
120
|
-
let
|
|
120
|
+
let r = c;
|
|
121
121
|
function O({
|
|
122
122
|
owner: i,
|
|
123
123
|
allowed: f
|
|
@@ -132,8 +132,8 @@ function O({
|
|
|
132
132
|
}
|
|
133
133
|
export {
|
|
134
134
|
x as LIST_MANAGER_ROLE,
|
|
135
|
-
|
|
135
|
+
r as SimpleAllowList,
|
|
136
136
|
O as prepareSimpleAllowListPayload,
|
|
137
|
-
|
|
137
|
+
o as simpleAllowListAbi
|
|
138
138
|
};
|
|
139
139
|
//# sourceMappingURL=SimpleAllowList.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../generated-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../generated-BzLYuFx3.cjs"),e=require("../SimpleDenyList-DEoMIYhE.cjs");require("@wagmi/core");require("viem");require("../deployments-Dgzcz4Ev.cjs");require("../Deployable/DeployableTargetWithRBAC.cjs");require("../errors.cjs");require("../utils.cjs");exports.simpleDenyListAbi=r.P;exports.SimpleDenyList=e.SimpleDenyList;exports.prepareSimpleDenyListPayload=e.prepareSimpleDenyListPayload;
|
|
2
2
|
//# sourceMappingURL=SimpleDenyList.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as a } from "../generated-
|
|
2
|
-
import { S as y, p as n } from "../SimpleDenyList-
|
|
1
|
+
import { P as a } from "../generated-D6oDILUw.js";
|
|
2
|
+
import { S as y, p as n } from "../SimpleDenyList-BtEUdiAj.js";
|
|
3
3
|
import "@wagmi/core";
|
|
4
4
|
import "viem";
|
|
5
|
-
import "../deployments-
|
|
5
|
+
import "../deployments-Coa8CGi2.js";
|
|
6
6
|
import "../Deployable/DeployableTargetWithRBAC.js";
|
|
7
7
|
import "../errors.js";
|
|
8
8
|
import "../utils.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../generated-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../generated-BzLYuFx3.cjs"),s=require("../Deployable/Deployable.cjs"),o="0x6080604052348015600e575f80fd5b5060bd80601a5f395ff3fe6080604052348015600e575f80fd5b50600436106026575f3560e01c8063fe9fbb8014602a575b5f80fd5b603b6035366004604f565b50600190565b604051901515815260200160405180910390f35b5f60208284031215605e575f80fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146080575f80fd5b939250505056fea26469706673582212209d268ab735201492a016395f826a0af564ff7d365d582344470d8cb83e05fc4464736f6c634300081a0033";class r extends s.Deployable{constructor(){super(...arguments),this.abi=f.ut}async isAuthorized(e,t){return await f.oW(this._config,{address:this.assertValidAddress(),args:[e],...t})}buildParameters(e,t){const[d,a]=this.validateDeploymentConfig({},t);return{abi:f.ut,bytecode:o,args:[],...this.optionallyAttachAccount(a.account)}}}exports.passthroughAuthAbi=f.ut;exports.PassthroughAuth=r;
|
|
2
2
|
//# sourceMappingURL=PassthroughAuth.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as t, a8 as e } from "../generated-D6oDILUw.js";
|
|
2
2
|
import { Deployable as o } from "../Deployable/Deployable.js";
|
|
3
3
|
const r = "0x6080604052348015600e575f80fd5b5060bd80601a5f395ff3fe6080604052348015600e575f80fd5b50600436106026575f3560e01c8063fe9fbb8014602a575b5f80fd5b603b6035366004604f565b50600190565b604051901515815260200160405180910390f35b5f60208284031215605e575f80fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146080575f80fd5b939250505056fea26469706673582212209d268ab735201492a016395f826a0af564ff7d365d582344470d8cb83e05fc4464736f6c634300081a0033";
|
|
4
4
|
class n extends o {
|
package/dist/BoostCore.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./generated-dd4FN0Fo.cjs"),R=require("@wagmi/core"),u=require("viem"),Y=require("./deployments-BjBgk03b.cjs"),J=require("./Actions/Action.cjs"),K=require("./Actions/EventAction.cjs"),T=require("./AllowList-BJ9HQGFs.cjs"),Q=require("./AllowLists/SimpleAllowList.cjs"),f0=require("./SimpleDenyList-7-VTqfsH.cjs"),e0=require("./Auth/PassthroughAuth.cjs"),y=require("./Boost.cjs"),V=require("./Budget-D_zhh1rh.cjs"),F=require("./Budgets/ManagedBudget.cjs"),a0=require("./Deployable/Deployable.cjs"),O=require("./Deployable/DeployableTargetWithRBAC.cjs"),t0=require("./Incentives/AllowListIncentive.cjs"),b0=require("./Incentives/CGDAIncentive.cjs"),d0=require("./Incentives/ERC20Incentive.cjs"),M=require("./Incentive-CrnbYN_a.cjs"),s0=require("./Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs"),c0=require("./Incentives/ERC20VariableCriteriaIncentiveV2.cjs"),n0=require("./Incentives/PointsIncentive.cjs"),i0=require("./Validators/LimitedSignerValidator.cjs"),p=require("./Validator-rYW7PMwW.cjs"),o0=require("./Validators/SignerValidator.cjs"),v=require("./errors.cjs"),g=require("./utils.cjs"),$=require("viem/actions"),x=require("viem/utils"),r0=require("./Incentives/ERC20VariableIncentive.cjs"),u0="0x608060405260048054607d60a31b600160a01b600160e01b0319909116179055600580546001600160401b0319166103e817905534801561003e575f80fd5b50604051614fbc380380614fbc83398101604081905261005d916100e8565b61006681610098565b50600180546001600160a01b039384166001600160a01b03199182161790915560038054929093169116179055610132565b6001600160a01b0316638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a35b50565b6001600160a01b03811681146100d1575f80fd5b5f805f606084860312156100fa575f80fd5b8351610105816100d4565b6020850151909350610116816100d4565b6040850151909250610127816100d4565b809150509250925092565b614e7d8061013f5f395ff3fe6080604052600436106101d0575f3560e01c80637b103999116100fd578063dd7dc9a911610092578063f04e283e11610062578063f04e283e14610551578063f2fde38b14610564578063fee81cf414610577578063fefceca9146105a8575f80fd5b8063dd7dc9a9146104b7578063dd98558c146104d7578063e21ff73114610513578063eccc19a614610532575f80fd5b8063b0e21e8a116100cd578063b0e21e8a14610413578063caa1647b14610464578063d5137b5214610483578063d73792a9146104a2575f80fd5b80637b1039991461038f5780638da5cb5b146103ae5780638fe4f523146103e1578063a92647dc146103f4575f80fd5b806343bc42d3116101735780635edb9eb0116101435780635edb9eb0146103385780635f32c23e14610355578063715018a614610374578063730f9c571461037c575f80fd5b806343bc42d3146102d357806346877b1a146102f25780635045b8661461031157806354d1f13d14610330575f80fd5b8063219f71f0116101ae578063219f71f0146102495780632569296214610268578063346339d51461027057806339a51be51461029c575f80fd5b806313c8e2de146101d457806316614282146102095780631fa2acdc1461022a575b5f80fd5b3480156101df575f80fd5b506101f36101ee366004613e9a565b61060b565b6040516102009190613ef4565b60405180910390f35b348015610214575f80fd5b50610228610223366004613ff2565b610740565b005b348015610235575f80fd5b50610228610244366004614055565b610eb3565b348015610254575f80fd5b506102286102633660046140bb565b611628565b61022861166a565b34801561027b575f80fd5b5061028f61028a366004613e9a565b6116b7565b6040516102009190614143565b3480156102a7575f80fd5b506003546102bb906001600160a01b031681565b6040516001600160a01b039091168152602001610200565b3480156102de575f80fd5b506102286102ed3660046141a1565b61176c565b3480156102fd575f80fd5b5061022861030c3660046140bb565b6117c7565b34801561031c575f80fd5b506004546102bb906001600160a01b031681565b610228611809565b348015610343575f80fd5b505f545b604051908152602001610200565b348015610360575f80fd5b5061022861036f3660046141bc565b611842565b6102286119db565b61022861038a3660046141dc565b6119ee565b34801561039a575f80fd5b506001546102bb906001600160a01b031681565b3480156103b9575f80fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927546102bb565b6102286103ef366004614253565b611e55565b3480156103ff575f80fd5b506002546102bb906001600160a01b031681565b34801561041e575f80fd5b5060045461044b9074010000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610200565b34801561046f575f80fd5b5061022861047e3660046141a1565b611e6a565b34801561048e575f80fd5b506102bb61049d3660046142b8565b611ef2565b3480156104ad575f80fd5b5061044b61271081565b3480156104c2575f80fd5b5060055461044b9067ffffffffffffffff1681565b3480156104e2575f80fd5b506104f66104f1366004614302565b61211e565b604080519283526001600160a01b03909116602083015201610200565b34801561051e575f80fd5b506101f361052d36600461434f565b61257a565b34801561053d575f80fd5b5061022861054c3660046140bb565b612dab565b61022861055f3660046140bb565b612ded565b6102286105723660046140bb565b612e2a565b348015610582575f80fd5b506103476105913660046140bb565b63389a75e1600c9081525f91909152602090205490565b3480156105b3575f80fd5b506105fa6105c2366004613e9a565b60066020525f9081526040902080546001820154600283015460039093015460ff8316936101009093046001600160a01b0316929085565b60405161020095949392919061438e565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e08101919091525f828154811061065c5761065c6143c7565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b039081168452600182015481168486015260028201548116848401526003820154166060840152600481018054835181870281018701909452808452939491936080860193928301828280156106ff57602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116106e1575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b031660609091015292915050565b3068929eee149b4bd21268540361075e5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f80858154811061077d5761077d6143c7565b905f5260205f20906008020190505f8160040185815481106107a1576107a16143c7565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a2906107f6908890889060040161441d565b5f60405180830381865afa158015610810573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526108379190810190614577565b905080515f03610873576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8180602001905181019061088891906145b4565b90505f8080806001855160028111156108a3576108a36140dd565b14806108c057505f855160028111156108be576108be6140dd565b145b15610924575f85606001518060200190518101906108de919061465c565b805160058b0154909650909150612710906109039067ffffffffffffffff16876146cb565b61090d91906146e2565b9350610919848661471a565b9081905291506109da565b600285516002811115610939576109396140dd565b036109a8575f8560600151806020019051810190610957919061472d565b602081015160058b01549096509091506127109061097f9067ffffffffffffffff16876146cb565b61098991906146e2565b9350610995848661471a565b60208201819052905190925090506109da565b6040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6109e58d8d612e50565b5f8181526006602052604081206001810180549394509092879290610a0b90849061471a565b909155505085159150610e99905057600185516002811115610a2f57610a2f6140dd565b1480610a4c57505f85516002811115610a4a57610a4a6140dd565b145b15610c6b5760208501516040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490526001600160a01b038216906323b872dd906064016020604051808303815f875af1158015610abf573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610ae391906147ba565b506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820187905282169063095ea7b3906044016020604051808303815f875af1158015610b49573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b6d91906147ba565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b038916906330db555f906024015f604051808303815f87803b158015610bc6575f80fd5b505af1158015610bd8573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015610c40573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c6491906147ba565b5050610e59565b60208501516040517ff242432a000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526064810184905260a060848201525f60a48201526001600160a01b0382169063f242432a9060c4015f604051808303815f87803b158015610ce8575f80fd5b505af1158015610cfa573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b81166004830152600160248301528416925063a22cb46591506044015f604051808303815f87803b158015610d5e575f80fd5b505af1158015610d70573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018890526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b158015610dcc575f80fd5b505af1158015610dde573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b158015610e41575f80fd5b505af1158015610e53573d5f803e3d5ffd5b50505050505b604080518581526020810185905233918d918f917f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f31876910160405180910390a45b50505050505050503868929eee149b4bd212685550505050565b3068929eee149b4bd212685403610ed15763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808681548110610ef057610ef06143c7565b905f5260205f20906008020190505f816004018681548110610f1457610f146143c7565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a290610f69908990899060040161441d565b5f60405180830381865afa158015610f83573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f19168201604052610faa9190810190614577565b905080515f03610fe6576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f81806020019051810190610ffb91906145b4565b90505f6001600160a01b038616156110135785611022565b60038501546001600160a01b03165b905061102d81612e7f565b5f8080600185516002811115611045576110456140dd565b148061106257505f85516002811115611060576110606140dd565b145b156110e9575f8560600151806020019051810190611080919061465c565b805160058b0154909550909150612710906110a59067ffffffffffffffff16866146cb565b6110af91906146e2565b92506110bb838561471a565b8082526040805160208101839052919350015b60408051601f19818403018152919052606087015250611174565b6002855160028111156110fe576110fe6140dd565b036109a8575f856060015180602001905181019061111c919061472d565b602081015160058b0154909550909150612710906111449067ffffffffffffffff16866146cb565b61114e91906146e2565b925061115a838561471a565b60208083018290526040519193506110ce91839101614803565b30604080870191909152515f9061118f908790602001614831565b60408051601f19818403018152908290527ffa4ca9b100000000000000000000000000000000000000000000000000000000825291506001600160a01b0386169063fa4ca9b1906111e4908490600401614882565b6020604051808303815f875af1158015611200573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061122491906147ba565b61125a576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6112658f8f612e50565b5f818152600660205260408120600181018054939450909287929061128b90849061471a565b90915550508515925061160d915050576001855160028111156112b0576112b06140dd565b14806112cd57505f855160028111156112cb576112cb6140dd565b145b1561145e5760208501516040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820186905282169063095ea7b3906044016020604051808303815f875af115801561133c573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061136091906147ba565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b038916906330db555f906024015f604051808303815f87803b1580156113b9575f80fd5b505af11580156113cb573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015611433573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061145791906147ba565b50506115be565b60208501516040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526001602483015282169063a22cb465906044015f604051808303815f87803b1580156114c3575f80fd5b505af11580156114d5573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b158015611531575f80fd5b505af1158015611543573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b1580156115a6575f80fd5b505af11580156115b8573d5f803e3d5ffd5b50505050505b336001600160a01b03168c8e7f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f318768686604051611604929190918252602082015260400190565b60405180910390a45b50505050505050503868929eee149b4bd21268555050505050565b611630612f5e565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b6116ee6040805160a08101909152805f81526020015f6001600160a01b031681526020015f81526020015f81526020015f81525090565b5f8281526006602052604090819020815160a081019092528054829060ff16600281111561171e5761171e6140dd565b600281111561172f5761172f6140dd565b8152815461010090046001600160a01b03166020820152600182015460408201526002820154606082015260039091015460809091015292915050565b611774612f5e565b6004805467ffffffffffffffff90921674010000000000000000000000000000000000000000027fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6117cf612f5e565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b3068929eee149b4bd2126854036118605763ab143c065f526004601cfd5b3068929eee149b4bd21268555f6118778383612e50565b5f81815260066020526040812081549293509181908690811061189c5761189c6143c7565b905f5260205f20906008020160040184815481106118bc576118bc6143c7565b5f918252602082200154600284015460018501546001600160a01b039092169350906118eb90612710906146cb565b6118f591906146e2565b90505f6119028484612f93565b9050818111156119c6575f6119178383614894565b90505f61271067ffffffffffffffff1686600201548361193791906146cb565b61194191906146e2565b905061194d86826130e1565b808660010154106119765780866001015f82825461196b9190614894565b9091555061197d9050565b5f60018701555b6003546040518281526001600160a01b039091169089908b907f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b179060200160405180910390a450505b50505050503868929eee149b4bd21268555050565b6119e3612f5e565b6119ec5f61321d565b565b3068929eee149b4bd212685403611a0c5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808781548110611a2b57611a2b6143c7565b905f5260205f20906008020190505f611a448888612e50565b5f81815260066020526040812060048501805493945090928a908110611a6c57611a6c6143c7565b5f9182526020909120015460028501546040517fe3f756de0000000000000000000000000000000000000000000000000000000081526001600160a01b03928316935091169063e3f756de90611aca9088908b908b906004016148a7565b602060405180830381865afa158015611ae5573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611b0991906147ba565b611b3f576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018401546040517f703b69000000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063703b6900903490611b94908e908e908b908e908e906004016148d2565b60206040518083038185885af1158015611bb0573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611bd591906147ba565b611c0b576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81545f9061010090046001600160a01b0316611c27575f611c31565b611c318383612f93565b6040517fbb1757cf0000000000000000000000000000000000000000000000000000000081529091506001600160a01b0383169063bb1757cf90611c7d9089908c908c906004016148a7565b6020604051808303815f875af1158015611c99573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cbd91906147ba565b611d02578588886040517f4139d81d000000000000000000000000000000000000000000000000000000008152600401611cf9939291906148a7565b60405180910390fd5b82545f9061010090046001600160a01b0316611d1e575f611d28565b611d288484612f93565b90505f818311611d38575f611d42565b611d428284614894565b90505f61271067ffffffffffffffff16866002015483611d6291906146cb565b611d6c91906146e2565b90508015611df257611d7e86826130e1565b80866001015f828254611d919190614894565b9250508190555060035f9054906101000a90046001600160a01b03166001600160a01b03168d8f7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b1784604051611de991815260200190565b60405180910390a45b886001600160a01b03168d8f7f0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b2595478f8f8f604051611e31939291906148a7565b60405180910390a450505050505050503868929eee149b4bd2126855505050505050565b611e638585858585336119ee565b5050505050565b611e72612f5e565b61271067ffffffffffffffff821610611eb7576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b5f3068929eee149b4bd212685403611f115763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808481548110611f3057611f306143c7565b5f918252602090912060089091020160078101549091506001600160a01b03163314611f88576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6003810154611f9f906001600160a01b0316612e7f565b6004808201805491549091905f906001600160a01b0316611fc0575f612052565b6004546040516001600160a01b039091169063c7f1ecff90611fe8908a908a9060200161490b565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016120139190614882565b602060405180830381865afa15801561202e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061205291906149c2565b905061208861206087614a2a565b600386015460058701546001600160a01b039091169067ffffffffffffffff16848b87613275565b83546001810185555f858152602080822090920180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03851690811790915560405191825292975084918a917f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae910160405180910390a4505050503868929eee149b4bd212685592915050565b5f803068929eee149b4bd21268540361213e5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f80858154811061215d5761215d6143c7565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b0390811684526001820154811684860152600282015481168484015260038201541660608401526004810180548351818702810187019094528084529394919360808601939283018282801561220057602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116121e2575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b039081166060928301529082015191925016331461227d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6122888686612e50565b5f8181526006602052604081209192506122a4898b018b614a93565b90505f81602001518060200190518101906122bf9190614b30565b90505f61271067ffffffffffffffff168460020154836122df91906146cb565b6122e991906146e2565b90508015612457576001845460ff166002811115612309576123096140dd565b148061232957505f845460ff166002811115612327576123276140dd565b145b15612351578251845461234c916101009091046001600160a01b03169083613615565b61240e565b6002845460ff166002811115612369576123696140dd565b0361240e578354835160038601546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b1580156123f7575f80fd5b505af1158015612409573d5f803e3d5ffd5b505050505b825f01516001600160a01b0316898b7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b178460405161244e91815260200190565b60405180910390a45b5f8087608001518b8151811061246f5761246f6143c7565b60200260200101516001600160a01b031663474f5a44866040516020016124969190614b47565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016124c19190614882565b60408051808303815f875af11580156124dc573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906125009190614b74565b91509150815f0361254357338e8e6040517f9ecd71a9000000000000000000000000000000000000000000000000000000008152600401611cf9939291906148a7565b82866001015f8282546125569190614894565b90915550503868929eee149b4bd2126855909d909c509a5050505050505050505050565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e081019190915260025433906001600160a01b03161580159061265757506002546040517ffe9fbb800000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301529091169063fe9fbb8090602401602060405180830381865afa158015612631573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061265591906147ba565b155b1561268e576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3068929eee149b4bd2126854036126ac5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f6126f785858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f9201919091525061366892505050565b80602001905181019061270a9190614c9c565b9050612718815f0151612e7f565b5f805460018101825590805260e082015160089091027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56a810180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b039485161790915583517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e566830180549092169084161790556004547f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563909101911661281c5760a0820151600454612817919074010000000000000000000000000000000000000000900467ffffffffffffffff16614dc7565b6128b4565b60a0820151600480546040517fb1539a6b0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163b1539a6b9161286b918b918b910161441d565b602060405180830381865afa158015612886573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128aa9190614de7565b6128b49190614dc7565b6005820180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff9290921691909117905560c08201516006820155602082015161292b907fe6715795000000000000000000000000000000000000000000000000000000009060016136fb565b81547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03919091161781556060820151612990907fe2089f79000000000000000000000000000000000000000000000000000000009060016136fb565b6002820180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039283161790556004545f91166129d6575f612a5f565b600480546040517fc7f1ecff0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163c7f1ecff91612a20918b918b910161441d565b602060405180830381865afa158015612a3b573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612a5f91906149c2565b608084015184516005850154929350612a829267ffffffffffffffff168461371c565b8051612a98916004850191602090910190613e0b565b506040830151602001516001600160a01b031615612ae557612ae07f5912b89c00000000000000000000000000000000000000000000000000000000846040015160016136fb565b612b9d565b81546040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa158015612b63573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612b8791906147ba565b612b91575f612b9d565b81546001600160a01b03165b6001830180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03929092169182179055612c34576040517fe1c444480000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201525f6024820152604401611cf9565b815460078301545f546001600160a01b039283169290911690612c5990600190614894565b6004850154600186015460028701546003880154604080519485526001600160a01b03938416602086015291831684830152919091166060830152517f116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd9181900360800190a4604080516101008101825283546001600160a01b03908116825260018501548116602080840191909152600286015482168385015260038601549091166060830152600485018054845181840281018401909552808552929386936080860193919291830182828015612d5957602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311612d3b575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b03166060909101523868929eee149b4bd2126855979650505050505050565b612db3612f5e565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b612df5612f5e565b63389a75e1600c52805f526020600c208054421115612e1b57636f5e88185f526004601cfd5b5f9055612e278161321d565b50565b612e32612f5e565b8060601b612e4757637448fbae5f526004601cfd5b612e278161321d565b604080516020808201859052818301849052825180830384018152606090920190925280519101205b92915050565b612ea97fe49cedd7000000000000000000000000000000000000000000000000000000008261384e565b6040517ffe9fbb800000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0382169063fe9fbb8090602401602060405180830381865afa158015612f04573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612f2891906147ba565b612e27576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146119ec576382b429005f526004601cfd5b5f6001835460ff166002811115612fac57612fac6140dd565b1480612fcc57505f835460ff166002811115612fca57612fca6140dd565b145b156130635782546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152610100909204909116906370a08231906024015b602060405180830381865afa158015613038573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061305c9190614b30565b9050612e79565b6002835460ff16600281111561307b5761307b6140dd565b036130d957825460038401546040517efdd58e0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526024820192909252610100909204169062fdd58e9060440161301d565b505f92915050565b6001825460ff1660028111156130f9576130f96140dd565b148061311957505f825460ff166002811115613117576131176140dd565b145b1561315c57600354825461313f916001600160a01b036101009092048216911683613615565b81546131589061010090046001600160a01b031661396c565b5050565b6002825460ff166002811115613174576131746140dd565b0361315857815460038054908401546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b158015613203575f80fd5b505af1158015613215573d5f803e3d5ffd5b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f80876040015190506132ac7fa921670500000000000000000000000000000000000000000000000000000000896020015161384e565b875161331b5760208801516040517fe1c444480000000000000000000000000000000000000000000000000000000081527fa92167050000000000000000000000000000000000000000000000000000000060048201526001600160a01b039091166024820152604401611cf9565b6133467fa921670500000000000000000000000000000000000000000000000000000000895f6136fb565b91505f826001600160a01b0316634e7165a2836040518263ffffffff1660e01b81526004016133759190614882565b5f60405180830381865afa15801561338f573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526133b69190810190614577565b905080515f14613597575f806133cc838a613a28565b6040517ffa4ca9b100000000000000000000000000000000000000000000000000000000815291935091506001600160a01b038b169063fa4ca9b190613416908590600401614882565b6020604051808303815f875af1158015613432573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061345691906147ba565b61348c576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517ffa4ca9b10000000000000000000000000000000000000000000000000000000081526001600160a01b038b169063fa4ca9b1906134d1908690600401614882565b6020604051808303815f875af11580156134ed573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061351191906147ba565b613547576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f8380602001905181019061355c91906145b4565b905061359388886001600160a01b038c1661357b57836020015161357d565b8b5b858e67ffffffffffffffff16865f01518b613bc1565b5050505b6040517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063439fab91906135dc908590600401614882565b5f604051808303815f87803b1580156135f3575f80fd5b505af1158015613605573d5f803e3d5ffd5b5050505050509695505050505050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661365e57803d853b15171061365e576390b8ec185f526004601cfd5b505f603452505050565b60608151156136f65760405190506020810160048301805184518501811983525b808610156136e0576001860195508551601f1a806136d1576001870196508651601f1a5f198652607f81116136c057600181013687375b607f16949094016001019350613689565b80855350600184019350613689565b509052601f198282030182525f81526020016040525b919050565b5f61370a84846020015161384e565b6137148383613cfd565b949350505050565b5f80546060919061372f90600190614894565b9050855167ffffffffffffffff81111561374b5761374b614430565b604051908082528060200260200182016040528015613774578160200160208202803683370190505b5091505f5b8651811015613844576137a9878281518110613797576137976143c7565b60200260200101518787878686613275565b8382815181106137bb576137bb6143c7565b60200260200101906001600160a01b031690816001600160a01b0316815250508281815181106137ed576137ed6143c7565b60200260200101516001600160a01b031681837f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae6001604051613834911515815260200190565b60405180910390a4600101613779565b5050949350505050565b6001600160a01b038116158061390257506040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa1580156138dc573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061390091906147ba565b155b15613158576040517fe1c444480000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b0382166024820152604401611cf9565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f906001600160a01b038316906370a0823190602401602060405180830381865afa1580156139c9573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906139ed9190614b30565b90505f81118015613a09575060055467ffffffffffffffff1681105b1561315857600354613158906001600160a01b03848116911683613615565b60605f8084806020019051810190613a4091906145b4565b905083600182516002811115613a5857613a586140dd565b1480613a7557505f82516002811115613a7357613a736140dd565b145b15613b23575f8260600151806020019051810190613a93919061465c565b80519091505f9061271090613ab39067ffffffffffffffff8616906146cb565b613abd91906146e2565b6040805160208082018352838252825190810184905292935091015b60408051601f198184030181529181526060870191909152308682015251613b05908690602001614831565b60405160208183030381529060405282965096505050505050613bba565b600282516002811115613b3857613b386140dd565b036109a8575f8260600151806020019051810190613b56919061472d565b90505f61271067ffffffffffffffff168367ffffffffffffffff168360200151613b8091906146cb565b613b8a91906146e2565b604080516060810182528451815260208082018490528583015182840152915192935091613ad991839101614803565b9250929050565b5f6002836002811115613bd657613bd66140dd565b03613bf35781806020019051810190613bef9190614e02565b5090505b5f6040518060a00160405280856002811115613c1157613c116140dd565b8152602001886001600160a01b031681526020018781526020018681526020018381525090508060065f613c458c8c612e50565b815260208101919091526040015f208151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001836002811115613c9057613c906140dd565b0217905550602082015181546001600160a01b03909116610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff9091161781556040820151600182015560608201516002820155608090910151600390910155505050505050505050565b81515f90613d0f578260200151613d25565b613d2583602001516001600160a01b0316613db4565b83519091508015613d335750815b15612e795760408084015190517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0383169163439fab9191613d819190600401614882565b5f604051808303815f87803b158015613d98575f80fd5b505af1158015613daa573d5f803e3d5ffd5b5050505092915050565b5f612e795f835f6c5af43d3d93803e602a57fd5bf36021528160145273602c3d8160093d39f33d3d3d3d363d3d37363d735f526035600c84f0905080613e015763301164255f526004601cfd5b5f60215292915050565b828054828255905f5260205f20908101928215613e76579160200282015b82811115613e7657825182547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178255602090920191600190910190613e29565b50613e82929150613e86565b5090565b5b80821115613e82575f8155600101613e87565b5f60208284031215613eaa575f80fd5b5035919050565b5f8151808452602084019350602083015f5b82811015613eea5781516001600160a01b0316865260209586019590910190600101613ec3565b5093949350505050565b602081526001600160a01b0382511660208201525f6020830151613f2360408401826001600160a01b03169052565b5060408301516001600160a01b03811660608401525060608301516001600160a01b038116608084015250608083015161010060a0840152613f69610120840182613eb1565b905060a0840151613f8660c085018267ffffffffffffffff169052565b5060c084015160e084015260e0840151613fac6101008501826001600160a01b03169052565b509392505050565b5f8083601f840112613fc4575f80fd5b50813567ffffffffffffffff811115613fdb575f80fd5b602083019150836020828501011115613bba575f80fd5b5f805f8060608587031215614005575f80fd5b8435935060208501359250604085013567ffffffffffffffff811115614029575f80fd5b61403587828801613fb4565b95989497509550505050565b6001600160a01b0381168114612e27575f80fd5b5f805f805f60808688031215614069575f80fd5b8535945060208601359350604086013567ffffffffffffffff81111561408d575f80fd5b61409988828901613fb4565b90945092505060608601356140ad81614041565b809150509295509295909350565b5f602082840312156140cb575f80fd5b81356140d681614041565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6003811061413f577f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b9052565b5f60a08201905061415582845161410a565b6001600160a01b03602084015116602083015260408301516040830152606083015160608301526080830151608083015292915050565b67ffffffffffffffff81168114612e27575f80fd5b5f602082840312156141b1575f80fd5b81356140d68161418c565b5f80604083850312156141cd575f80fd5b50508035926020909101359150565b5f805f805f8060a087890312156141f1575f80fd5b8635955060208701359450604087013561420a81614041565b9350606087013567ffffffffffffffff811115614225575f80fd5b61423189828a01613fb4565b909450925050608087013561424581614041565b809150509295509295509295565b5f805f805f60808688031215614267575f80fd5b8535945060208601359350604086013561428081614041565b9250606086013567ffffffffffffffff81111561429b575f80fd5b6142a788828901613fb4565b969995985093965092949392505050565b5f80604083850312156142c9575f80fd5b82359150602083013567ffffffffffffffff8111156142e6575f80fd5b8301606081860312156142f7575f80fd5b809150509250929050565b5f805f8060608587031215614315575f80fd5b843567ffffffffffffffff81111561432b575f80fd5b61433787828801613fb4565b90989097506020870135966040013595509350505050565b5f8060208385031215614360575f80fd5b823567ffffffffffffffff811115614376575f80fd5b61438285828601613fb4565b90969095509350505050565b60a0810161439c828861410a565b6001600160a01b03861660208301528460408301528360608301528260808301529695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81835281816020850137505f602082840101525f6020601f19601f840116840101905092915050565b602081525f6137146020830184866143f4565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff8111828210171561448057614480614430565b60405290565b6040516060810167ffffffffffffffff8111828210171561448057614480614430565b604051610100810167ffffffffffffffff8111828210171561448057614480614430565b604051601f8201601f1916810167ffffffffffffffff811182821017156144f6576144f6614430565b604052919050565b5f67ffffffffffffffff82111561451757614517614430565b50601f01601f191660200190565b5f82601f830112614534575f80fd5b8151614547614542826144fe565b6144cd565b81815284602083860101111561455b575f80fd5b8160208501602083015e5f918101602001919091529392505050565b5f60208284031215614587575f80fd5b815167ffffffffffffffff81111561459d575f80fd5b61371484828501614525565b80516136f681614041565b5f602082840312156145c4575f80fd5b815167ffffffffffffffff8111156145da575f80fd5b8201608081850312156145eb575f80fd5b6145f361445d565b815160038110614601575f80fd5b8152602082015161461181614041565b6020820152604082015161462481614041565b6040820152606082015167ffffffffffffffff811115614642575f80fd5b61464e86828501614525565b606083015250949350505050565b5f602082840312801561466d575f80fd5b506040516020810167ffffffffffffffff8111828210171561469157614691614430565b6040529151825250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8082028115828204841417612e7957612e7961469e565b5f82614715577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b80820180821115612e7957612e7961469e565b5f6020828403121561473d575f80fd5b815167ffffffffffffffff811115614753575f80fd5b820160608185031215614764575f80fd5b61476c614486565b8151815260208083015190820152604082015167ffffffffffffffff811115614793575f80fd5b61479f86828501614525565b604083015250949350505050565b8015158114612e27575f80fd5b5f602082840312156147ca575f80fd5b81516140d6816147ad565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b6020815281516020820152602082015160408201525f604083015160608084015261371460808401826147d5565b6020815261484360208201835161410a565b6001600160a01b0360208301511660408201526001600160a01b0360408301511660608201525f606083015160808084015261371460a08401826147d5565b602081525f6140d660208301846147d5565b81810381811115612e7957612e7961469e565b6001600160a01b0384168152604060208201525f6148c96040830184866143f4565b95945050505050565b8581528460208201526001600160a01b0384166040820152608060608201525f6149006080830184866143f4565b979650505050505050565b828152604060208201525f8235614921816147ad565b15156040830152602083013561493681614041565b6001600160a01b031660608301526040830135368490037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112614979575f80fd5b830160208101903567ffffffffffffffff811115614995575f80fd5b8036038213156149a3575f80fd5b606060808501526149b860a0850182846143f4565b9695505050505050565b5f602082840312156149d2575f80fd5b81516140d681614041565b5f82601f8301126149ec575f80fd5b81356149fa614542826144fe565b818152846020838601011115614a0e575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60608236031215614a3a575f80fd5b614a42614486565b8235614a4d816147ad565b81526020830135614a5d81614041565b6020820152604083013567ffffffffffffffff811115614a7b575f80fd5b614a87368286016149dd565b60408301525092915050565b5f60208284031215614aa3575f80fd5b813567ffffffffffffffff811115614ab9575f80fd5b820160408185031215614aca575f80fd5b6040805190810167ffffffffffffffff81118282101715614aed57614aed614430565b6040528135614afb81614041565b8152602082013567ffffffffffffffff811115614b16575f80fd5b614b22868285016149dd565b602083015250949350505050565b5f60208284031215614b40575f80fd5b5051919050565b602081526001600160a01b0382511660208201525f602083015160408084015261371460608401826147d5565b5f8060408385031215614b85575f80fd5b825160208401519092506142f781614041565b5f60608284031215614ba8575f80fd5b614bb0614486565b90508151614bbd816147ad565b81526020820151614bcd81614041565b6020820152604082015167ffffffffffffffff811115614beb575f80fd5b614a8784828501614525565b5f82601f830112614c06575f80fd5b815167ffffffffffffffff811115614c2057614c20614430565b8060051b614c30602082016144cd565b91825260208185018101929081019086841115614c4b575f80fd5b6020860192505b838310156149b857825167ffffffffffffffff811115614c70575f80fd5b614c7f886020838a0101614b98565b83525060209283019290910190614c52565b80516136f68161418c565b5f60208284031215614cac575f80fd5b815167ffffffffffffffff811115614cc2575f80fd5b82016101008185031215614cd4575f80fd5b614cdc6144a9565b614ce5826145a9565b8152602082015167ffffffffffffffff811115614d00575f80fd5b614d0c86828501614b98565b602083015250604082015167ffffffffffffffff811115614d2b575f80fd5b614d3786828501614b98565b604083015250606082015167ffffffffffffffff811115614d56575f80fd5b614d6286828501614b98565b606083015250608082015167ffffffffffffffff811115614d81575f80fd5b614d8d86828501614bf7565b608083015250614d9f60a08301614c91565b60a082015260c08281015190820152614dba60e083016145a9565b60e0820152949350505050565b67ffffffffffffffff8181168382160190811115612e7957612e7961469e565b5f60208284031215614df7575f80fd5b81516140d68161418c565b5f8060408385031215614e13575f80fd5b8251602084015190925067ffffffffffffffff811115614e31575f80fd5b614e3d85828601614525565b915050925092905056fea26469706673582212208286ae56352689fb64c76c3bbaaa898df87482cd394c79c101f009e07f87c00c64736f6c634300081a0033";function j(c){const f=c.state.current,e=c.state.connections.get(f),a=e==null?void 0:e.accounts,t=a==null?void 0:a[0],b=c.chains.find(s=>s.id===(e==null?void 0:e.chainId)),d=c.state.status;switch(d){case"connected":return{address:t,addresses:a,chain:b,chainId:e==null?void 0:e.chainId,connector:e==null?void 0:e.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:d};case"reconnecting":return{address:t,addresses:a,chain:b,chainId:e==null?void 0:e.chainId,connector:e==null?void 0:e.connector,isConnected:!!t,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:d};case"connecting":return{address:t,addresses:a,chain:b,chainId:e==null?void 0:e.chainId,connector:e==null?void 0:e.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:d};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:d}}}function h0(c){return c.state.chainId}function W(c,f,e){const a=c[f.name];if(typeof a=="function")return a;const t=c[e];return typeof t=="function"?t:b=>f(c,b)}const l0="2.13.8",g0=()=>`@wagmi/core@${l0}`;var G=function(c,f,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof f=="function"?c!==f||!a:!f.has(c))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(c):a?a.value:f.get(c)},S,k;class P extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return g0()}constructor(f,e={}){var b;super(),S.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const a=e.cause instanceof P?e.cause.details:(b=e.cause)!=null&&b.message?e.cause.message:e.details,t=e.cause instanceof P&&e.cause.docsPath||e.docsPath;this.message=[f||"An error occurred.","",...e.metaMessages?[...e.metaMessages,""]:[],...t?[`Docs: ${this.docsBaseUrl}${t}.html${e.docsSlug?`#${e.docsSlug}`:""}`]:[],...a?[`Details: ${a}`]:[],`Version: ${this.version}`].join(`
|
|
2
|
-
`),e.cause&&(this.cause=e.cause),this.details=a,this.docsPath=t,this.metaMessages=e.metaMessages,this.shortMessage=f}walk(f){return G(this,S,"m",k).call(this,this,f)}}S=new WeakSet,k=function c(f,e){return e!=null&&e(f)?f:f.cause?G(this,S,"m",c).call(this,f.cause,e):f};class w0 extends P{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class A0 extends P{constructor({address:f,connector:e}){super(`Account "${f}" not found for connector "${e.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class C0 extends P{constructor({connectionChainId:f,connectorChainId:e}){super(`The current chain of the connector (id: ${e}) does not match the connection's chain (id: ${f}).`,{metaMessages:[`Current Chain ID: ${e}`,`Expected Chain ID: ${f}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class I0 extends P{constructor({connector:f}){super(`Connector "${f.name}" unavailable while reconnecting.`,{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uuid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}async function U(c,f={}){let e;if(f.connector){const{connector:i}=f;if(c.state.status==="reconnecting"&&!i.getAccounts&&!i.getChainId)throw new I0({connector:i});const[w,A]=await Promise.all([i.getAccounts(),i.getChainId()]);e={accounts:w,chainId:A,connector:i}}else e=c.state.connections.get(c.state.current);if(!e)throw new w0;const a=f.chainId??e.chainId,t=await e.connector.getChainId();if(t!==e.chainId)throw new C0({connectionChainId:e.chainId,connectorChainId:t});const b=e.connector;if(b.getClient)return b.getClient({chainId:a});const d=x.parseAccount(f.account??e.accounts[0]);if(d.address=x.getAddress(d.address),f.account&&!e.accounts.some(i=>i.toLowerCase()===d.address.toLowerCase()))throw new A0({address:d.address,connector:b});const s=c.chains.find(i=>i.id===a),n=await e.connector.getProvider({chainId:a});return u.createClient({account:d,chain:s,name:"Connector Client",transport:i=>u.custom(n)({...i,retryCount:0})})}async function y0(c,f){const{abi:e,chainId:a,connector:t,...b}=f;let d;f.account?d=f.account:d=(await U(c,{chainId:a,connector:t})).account;const s=c.getClient({chainId:a}),n=W(s,$.simulateContract,"simulateContract"),{result:i,request:w}=await n({...b,abi:e,account:d});return{chainId:s.chain.id,result:i,request:{__mode:"prepared",...w,chainId:a}}}async function H(c,f){const{account:e,chainId:a,connector:t,__mode:b,...d}=f;let s;typeof e=="object"&&e.type==="local"?s=c.getClient({chainId:a}):s=await U(c,{account:e,chainId:a,connector:t});const{connector:n}=j(c);let i;if(b==="prepared"||n!=null&&n.supportsSimulation)i=d;else{const{request:r}=await y0(c,{...d,account:e,chainId:a});i=r}return await W(s,$.writeContract,"writeContract")({...i,...e?{account:e}:{},chain:a?{id:a}:null})}function L(c){return c.address!==void 0&&typeof c.address=="object"?(f,e)=>{var d;const a=h0(f),t=j(f);let b;return e.chainId?b=e.chainId:e.account&&e.account===t.address||e.account===void 0?b=t.chainId:b=a,H(f,{...e,...c.functionName?{functionName:c.functionName}:{},address:b?(d=c.address)==null?void 0:d[b]:void 0,abi:c.abi})}:(f,e)=>H(f,{...e,...c.address?{address:c.address}:{},...c.functionName?{functionName:c.functionName}:{},abi:c.abi})}const q={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"},m=10000n,D={...q!=null&&q.VITE_BOOST_CORE_ADDRESS?{31337:void 0}:{},...Y.BoostCore},v0=D[11155111]||u.zeroAddress;function B0(c){return c.address}function P0(c){return c.registryAddress&&c.protocolFeeReceiver&&c.owner}const N=class N extends a0.Deployable{get addresses(){return this.constructor.addresses}constructor({config:f,account:e,...a}){if(B0(a)&&a.address)super({account:e,config:f},a.address);else if(P0(a))super({account:e,config:f},[a.registryAddress,a.protocolFeeReceiver,a.owner]);else{const{address:t}=g.assertValidAddressByChainId(f,D);super({account:e,config:f},t)}this.abi=o.R}async createBoost(f,e){const[a,t]=this.validateDeploymentConfig(f),b=e==null?void 0:e.chainId,{chainId:d,address:s}=g.assertValidAddressByChainId(t.config,this.addresses,b),n=L({abi:o.R,functionName:"createBoost",address:s}),i=await this.prepareCreateBoostPayload(s,d,a,t),w=await n(t.config,{...this.optionallyAttachAccount(t.account),...e,chainId:d,args:[y.prepareBoostPayload(i)]}),A=await R.waitForTransactionReceipt(t.config,{hash:w}),r=u.parseEventLogs({abi:o.R,eventName:"BoostCreated",logs:A.logs}).at(0);let h=0n;if(!r)throw new v.BoostCoreNoIdentifierEmitted;h=r==null?void 0:r.args.boostId;const l=await this.readBoost(h);return new y.Boost({id:h,budget:a.budget.at(l.budget),action:a.action.at(l.action),validator:a.validator.at(l.validator),allowList:a.allowList.at(l.allowList),incentives:a.incentives.map((I,C)=>I.at(l.incentives.at(C))),protocolFee:l.protocolFee,maxParticipants:l.maxParticipants,owner:l.owner})}async createBoostRaw(f,e){const{request:a,result:t}=await this.simulateCreateBoost(f,e);return{hash:await o.fI(this._config,a),result:t}}async simulateCreateBoost(f,e){const[a,t]=this.validateDeploymentConfig(f),b=e==null?void 0:e.chainId,{chainId:d,address:s}=g.assertValidAddressByChainId(t.config,this.addresses,b),n=await this.prepareCreateBoostPayload(s,d,a,t);return await o.FI(this._config,{...this.optionallyAttachAccount(),...e,address:s,chainId:d,args:[y.prepareBoostPayload(n)]})}async createBoostWithTransparentBudget(f,e,a,t){const[b,d]=this.validateDeploymentConfig({...a,budget:this.TransparentBudget(typeof f=="string"?f:f.assertValidAddress())}),s=t==null?void 0:t.chainId,{chainId:n,address:i}=g.assertValidAddressByChainId(d.config,this.addresses,s),w=L({abi:o.b,functionName:"createBoost",address:typeof f=="string"?f:f.assertValidAddress()}),A=await this.prepareCreateBoostPayload(i,n,b,d),r=await w(d.config,{...this.optionallyAttachAccount(d.account),...t,chainId:n,args:[e.map(F.prepareTransfer),i,y.prepareBoostPayload(A)]}),h=await R.waitForTransactionReceipt(d.config,{hash:r}),l=u.parseEventLogs({abi:o.R,eventName:"BoostCreated",logs:h.logs}).at(0);let I=0n;if(!l)throw new v.BoostCoreNoIdentifierEmitted;I=l==null?void 0:l.args.boostId;const C=await this.readBoost(I);return new y.Boost({id:I,budget:b.budget.at(C.budget),action:b.action.at(C.action),validator:b.validator.at(C.validator),allowList:b.allowList.at(C.allowList),incentives:b.incentives.map((E,_)=>E.at(C.incentives.at(_))),protocolFee:C.protocolFee,maxParticipants:C.maxParticipants,owner:C.owner})}async createBoostWithTransparentBudgetRaw(f,e,a,t){const{request:b,result:d}=await this.simulateCreateBoostWithTransparentBudget(f,e,a,t);return{hash:await o.sZ(this._config,b),result:d}}async simulateCreateBoostWithTransparentBudget(f,e,a,t){const[b,d]=this.validateDeploymentConfig({...a,budget:this.TransparentBudget(typeof f=="string"?f:f.assertValidAddress())}),s=t==null?void 0:t.chainId,{chainId:n,address:i}=g.assertValidAddressByChainId(d.config,this.addresses,s),w=await this.prepareCreateBoostPayload(i,n,b,d);return await o.RZ(this._config,{...this.optionallyAttachAccount(),...t,address:typeof f=="string"?f:f.assertValidAddress(),chainId:n,args:[e.map(F.prepareTransfer),i,y.prepareBoostPayload(w)]})}async createBoostWithPermit2(f,e,a,t,b,d,s){const[n,i]=this.validateDeploymentConfig({...a,budget:this.TransparentBudget(typeof f=="string"?f:f.assertValidAddress())}),w=s==null?void 0:s.chainId,{chainId:A,address:r}=g.assertValidAddressByChainId(i.config,this.addresses,w),h=L({abi:o.b,functionName:"createBoostWithPermit2",address:typeof f=="string"?f:f.assertValidAddress()}),l=await this.prepareCreateBoostPayload(r,A,n,i),I=await h(i.config,{...this.optionallyAttachAccount(i.account),...s,chainId:A,args:[e.map(F.prepareTransfer),r,y.prepareBoostPayload(l),t,b,d]}),C=await R.waitForTransactionReceipt(i.config,{hash:I}),E=u.parseEventLogs({abi:o.R,eventName:"BoostCreated",logs:C.logs}).at(0);let _=0n;if(!E)throw new v.BoostCoreNoIdentifierEmitted;_=E==null?void 0:E.args.boostId;const B=await this.readBoost(_);return new y.Boost({id:_,budget:n.budget.at(B.budget),action:n.action.at(B.action),validator:n.validator.at(B.validator),allowList:n.allowList.at(B.allowList),incentives:n.incentives.map((Z,X)=>Z.at(B.incentives.at(X))),protocolFee:B.protocolFee,maxParticipants:B.maxParticipants,owner:B.owner})}async createBoostWithPermit2Raw(f,e,a,t,b,d,s){const{request:n,result:i}=await this.simulateCreateBoostWithPermit2(f,e,a,t,b,d,s);return{hash:await o.rZ(this._config,n),result:i}}async simulateCreateBoostWithPermit2(f,e,a,t,b,d,s){const[n,i]=this.validateDeploymentConfig({...a,budget:this.TransparentBudget(typeof f=="string"?f:f.assertValidAddress())}),w=s==null?void 0:s.chainId,{chainId:A,address:r}=g.assertValidAddressByChainId(i.config,this.addresses,w),h=await this.prepareCreateBoostPayload(r,A,n,i);return await o.OZ(this._config,{...this.optionallyAttachAccount(),...s,address:typeof f=="string"?f:f.assertValidAddress(),chainId:A,args:[e.map(F.prepareTransfer),r,y.prepareBoostPayload(h),t,b,d]})}async prepareCreateBoostPayload(f,e,a,t){var A;if(!a.owner&&(a.owner=((A=this._account)==null?void 0:A.address)||R.getAccount(t.config).address||u.zeroAddress,a.owner===u.zeroAddress))throw new v.DeployableUnknownOwnerProvidedError;if(!a.validator){const h=R.getChains(t.config).filter(C=>!!this.addresses[C.id]&&C.id===e).at(0);if(!h)throw new v.InvalidProtocolChainIdError(e,Object.keys(this.addresses).map(Number));const I=[h.testnet||h.id===31337?p.BoostValidatorEOA.TESTNET:p.BoostValidatorEOA.MAINNET];h.id===31337&&I.push("0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"),a.validator=this.LimitedSignerValidator({signers:I,validatorCaller:f,maxClaimCount:1})}let b=u.zeroAddress;if(a.budget.address){if(b=a.budget.address,!(a.budget instanceof V.TransparentBudget)&&!await a.budget.isAuthorized(f))throw new v.BudgetMustAuthorizeBoostCore(f)}else throw new v.MustInitializeBudgetError;let d={instance:u.zeroAddress,isBase:!0,parameters:u.zeroHash};if(a.action.address){const r=a.action.isBase;d={isBase:r,instance:a.action.address,parameters:r&&a.action.buildParameters(void 0,t).args.at(0)||u.zeroHash}}else d.parameters=a.action.buildParameters(void 0,t).args.at(0)||u.zeroHash,d.instance=g.assertValidAddressByChainId(t.config,a.action.bases,e).address;let s={instance:u.zeroAddress,isBase:!0,parameters:u.zeroHash};if(a.validator.address){const r=a.validator.isBase;s={isBase:r,instance:a.validator.address,parameters:r&&a.validator.buildParameters(void 0,t).args.at(0)||u.zeroHash}}else s.parameters=a.validator.buildParameters(void 0,t).args.at(0)||u.zeroHash,s.instance=g.assertValidAddressByChainId(t.config,a.validator.bases,e).address;let n={instance:u.zeroAddress,isBase:!0,parameters:u.zeroHash};if(a.allowList||(a.allowList=this.OpenAllowList()),a.allowList.address){const r=a.allowList.isBase;n={isBase:r,instance:a.allowList.address,parameters:u.zeroHash}}else n.parameters=a.allowList.buildParameters(void 0,t).args.at(0)||u.zeroHash,n.instance=g.assertValidAddressByChainId(t.config,a.allowList.bases,e).address;const i=a.incentives.map(()=>({instance:u.zeroAddress,isBase:!0,parameters:u.zeroHash}));for(let r=0;r<a.incentives.length;r++){const h=a.incentives.at(r);if(h.address){const l=h.isBase;if(!l)throw new v.IncentiveNotCloneableError(h);i[r]={isBase:l,instance:h.address,parameters:l&&h.buildParameters(void 0,t).args.at(0)||u.zeroHash}}else i[r].parameters=h.buildParameters(void 0,t).args.at(0)||u.zeroHash,i[r].instance=g.assertValidAddressByChainId(t.config,h.bases,e).address}return{budget:b,action:d,validator:s,allowList:n,incentives:i,protocolFee:a.protocolFee||0n,maxParticipants:a.maxParticipants||0n,owner:a.owner}}async claimIncentive(f,e,a,t,b){return await this.awaitResult(this.claimIncentiveRaw(f,e,a,t,b))}async claimIncentiveRaw(f,e,a,t,b){const{request:d,result:s}=await o.zI(this._config,{...g.assertValidAddressByChainId(this._config,this.addresses,b==null?void 0:b.chainId),args:[f,e,a,t],...this.optionallyAttachAccount(),...b});return{hash:await o.dI(this._config,d),result:s}}async claimIncentiveFor(f,e,a,t,b,d){return await this.awaitResult(this.claimIncentiveForRaw(f,e,a,t,b,d))}async claimIncentiveForRaw(f,e,a,t,b,d){const{request:s,result:n}=await o.BI(this._config,{...g.assertValidAddressByChainId(this._config,this.addresses,d==null?void 0:d.chainId),args:[f,e,a,t,b],...this.optionallyAttachAccount(),...d});return{hash:await o.cI(this._config,s),result:n}}async readBoost(f,e){var a;try{let t;return typeof f=="string"?t=BigInt(f):t=f,await o.Yh(this._config,{...g.assertValidAddressByChainId(this._config,this.addresses,e==null?void 0:e.chainId),args:[t],...this.optionallyAttachAccount(),...e})}catch(t){throw(a=t==null?void 0:t.message)!=null&&a.includes("bounds")?new v.BoostNotFoundError(String(f)):t}}async getBoost(f,e){let a;typeof f=="string"?a=BigInt(f):a=f;const{protocolFee:t,maxParticipants:b,owner:d,...s}=await this.readBoost(a,e),n={config:this._config,account:this._account},[i,w,A,r,h]=await Promise.all([J.actionFromAddress(n,s.action,e),V.budgetFromAddress(n,s.budget,e),p.validatorFromAddress(n,s.validator,e),T.allowListFromAddress(n,s.allowList,e),Promise.all(s.incentives.map(l=>M.incentiveFromAddress(n,l,e)))]);return new y.Boost({id:a,action:i,budget:w,validator:A,allowList:r,incentives:h,protocolFee:t,maxParticipants:b,owner:d})}async getBoostCount(f){return await o.eI(this._config,{...g.assertValidAddressByChainId(this._config,this.addresses,f==null?void 0:f.chainId),args:[],...this.optionallyAttachAccount(),...f})}async isAuthorized(f,e){const a=await this.createBoostAuth(e);return o.SF(this._config,{address:a,args:[f],...this.optionallyAttachAccount(),...e})}async createBoostAuth(f){return await o.Xh(this._config,{...g.assertValidAddressByChainId(this._config,this.addresses,f==null?void 0:f.chainId),args:[],...this.optionallyAttachAccount(),...f})}async setCreateBoostAuth(f,e){return await this.awaitResult(this.setCreateBoostAuthRaw(f.assertValidAddress(),{...e}))}async setCreateBoostAuthRaw(f,e){const{request:a,result:t}=await o.PI(this._config,{...g.assertValidAddressByChainId(this._config,this.addresses,e==null?void 0:e.chainId),args:[f],...this.optionallyAttachAccount(),...e});return{hash:await o.wI(this._config,a),result:t}}async protocolFee(f){return await o.sI(this._config,{...g.assertValidAddressByChainId(this._config,this.addresses,f==null?void 0:f.chainId),args:[],...this.optionallyAttachAccount(),...f})}async protocolFeeReceiver(f){return await o.oI(this._config,{...g.assertValidAddressByChainId(this._config,this.addresses,f==null?void 0:f.chainId),args:[],...this.optionallyAttachAccount(),...f})}async setProcolFeeReceiver(f,e){return await this.awaitResult(this.setProcolFeeReceiverRaw(f,{...e}))}async setProcolFeeReceiverRaw(f,e){const{request:a,result:t}=await o.qI(this._config,{...g.assertValidAddressByChainId(this._config,this.addresses,e==null?void 0:e.chainId),args:[f],...this.optionallyAttachAccount(),...e});return{hash:await o.II(this._config,a),result:t}}async getIncentiveFeesInfo(f,e,a){const t=u.keccak256(u.encodePacked(["uint256","uint256"],[f,e]));return await o.tI(this._config,{...g.assertValidAddressByChainId(this._config,this.addresses,a==null?void 0:a.chainId),args:[t],...this.optionallyAttachAccount(),...a})}async getClaimFromTransaction(f){var t;const e=await R.getTransactionReceipt(this._config,f);return(t=u.parseEventLogs({abi:o.R,eventName:"BoostClaimed",logs:e.logs}).at(0))==null?void 0:t.args}async calculateProtocolFee(f,e){const a=await this.protocolFee(e);return f*a/m}PassthroughAuth(f){return new e0.PassthroughAuth({config:this._config,account:this._account},f)}EventAction(f,e){return new K.EventAction({config:this._config,account:this._account},f,e)}OpenAllowList(f){return new T.OpenAllowList({config:this._config,account:this._account},void 0,f)}SimpleAllowList(f,e){return new Q.SimpleAllowList({config:this._config,account:this._account},f,e)}SimpleDenyList(f,e){return new f0.SimpleDenyList({config:this._config,account:this._account},f,e)}OffchainAccessList(f,e){return new T.OffchainAccessList({config:this._config,account:this._account},f,e)}ManagedBudget(f){return typeof f!="string"&&!f.authorized.includes(this.assertValidAddress())&&(f.authorized=[this.assertValidAddress(),...f.authorized],f.roles=[O.Roles.MANAGER,...f.roles]),new F.ManagedBudget({config:this._config,account:this._account},f)}ManagedBudgetWithFees(f){return typeof f!="string"&&!f.authorized.includes(this.assertValidAddress())&&(f.authorized=[this.assertValidAddress(),...f.authorized],f.roles=[O.Roles.MANAGER,...f.roles]),new V.ManagedBudgetWithFees({config:this._config,account:this._account},f)}ManagedBudgetWithFeesV2(f){return typeof f!="string"&&!f.authorized.includes(this.assertValidAddress())&&(f.authorized=[this.assertValidAddress(),...f.authorized],f.roles=[O.Roles.MANAGER,...f.roles]),new V.ManagedBudgetWithFeesV2({config:this._config,account:this._account},f)}TransparentBudget(f){return new V.TransparentBudget({config:this._config,account:this._account},f)}AllowListIncentive(f){return new t0.AllowListIncentive({config:this._config,account:this._account},f)}CGDAIncentive(f){return new b0.CGDAIncentive({config:this._config,account:this._account},f)}ERC20Incentive(f){return new d0.ERC20Incentive({config:this._config,account:this._account},f)}ERC20PeggedIncentive(f){return new M.ERC20PeggedIncentive({config:this._config,account:this._account},f)}PointsIncentive(f){return new n0.PointsIncentive({config:this._config,account:this._account},f)}SignerValidator(f,e){return new o0.SignerValidator({config:this._config,account:this._account},f,e)}LimitedSignerValidator(f,e){return new i0.LimitedSignerValidator({config:this._config,account:this._account},f,e)}PayableLimitedSignerValidator(f,e){return new p.PayableLimitedSignerValidator({config:this._config,account:this._account},f,e??!1)}ERC20VariableCriteriaIncentiveV2(f,e){return new c0.ERC20VariableCriteriaIncentiveV2({config:this._config,account:this._account},f,e)}ERC20PeggedVariableCriteriaIncentiveV2(f,e){return new s0.ERC20PeggedVariableCriteriaIncentiveV2({config:this._config,account:this._account},f,e)}ERC20VariableIncentive(f,e){return new r0.ERC20VariableIncentive({config:this._config,account:this._account},f,e)}buildParameters(f,e){const[a,t]=this.validateDeploymentConfig(f,e);return{abi:o.R,bytecode:u0,args:a,...this.optionallyAttachAccount(t.account)}}async topupIncentiveFromBudgetPreFee(f,e,a,t,b){const d=await this.getBoost(f,b);if(e>=d.incentives.length)throw new Error(`Incentive ID ${e} out of range`);const s=d.incentives[Number(e)];if(!s)throw new Error(`Incentive with ID ${e} not found`);const n=await s.getTopupPayload(a);if(!(a>0))throw new Error("Top-up amount must be greater than zero");return await this.topupIncentiveFromBudgetRaw(f,e,n,t,b)}async topupIncentiveFromBudgetPostFee(f,e,a,t,b){const d=await this.protocolFee(b),s=a*m/(m+d);return this.topupIncentiveFromBudgetPreFee(f,e,s,t,b)}async topupIncentiveFromSenderPreFee(f,e,a,t){const b=await this.getBoost(f,t);if(e>=b.incentives.length)throw new Error(`Incentive ID ${e} out of range`);const d=b.incentives[Number(e)];if(!d)throw new Error(`Incentive with ID ${e} not found`);if(!(a>0))throw new Error("Top-up amount must be greater than zero");const s=await d.getTopupPayload(a);return await this.topupIncentiveFromSenderRaw(f,e,s,t)}async topupIncentiveFromSenderPostFee(f,e,a,t){const b=await this.protocolFee(t),d=a*m/(m+b);return this.topupIncentiveFromSenderPreFee(f,e,d,t)}async topupIncentiveFromSenderRaw(f,e,a,t){const{request:b,result:d}=await o.UI(this._config,{...this.optionallyAttachAccount(),...t,address:this.assertValidAddress(),args:[f,e,a]});return{hash:await o.RI(this._config,b),result:d}}async topupIncentiveFromBudgetRaw(f,e,a,t,b){const{request:d,result:s}=await o.GI(this._config,{...this.optionallyAttachAccount(),...b,address:this.assertValidAddress(),args:[f,e,a,t??u.zeroAddress]});return{hash:await o.MI(this._config,d),result:s}}};N.addresses=D;let z=N;exports.boostCoreAbi=o.R;exports.BOOST_CORE_ADDRESS=v0;exports.BOOST_CORE_ADDRESSES=D;exports.BoostCore=z;exports.FEE_DENOMINATOR=m;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./generated-BzLYuFx3.cjs"),P=require("@wagmi/core"),u=require("viem"),Y=require("./deployments-Dgzcz4Ev.cjs"),K=require("./Actions/Action.cjs"),Q=require("./Actions/EventAction.cjs"),T=require("./AllowList-Lpqz7tn9.cjs"),f0=require("./AllowLists/SimpleAllowList.cjs"),e0=require("./SimpleDenyList-DEoMIYhE.cjs"),a0=require("./Auth/PassthroughAuth.cjs"),I=require("./Boost.cjs"),R=require("./Budget-rZm-AY09.cjs"),V=require("./Budgets/ManagedBudget.cjs"),t0=require("./Deployable/Deployable.cjs"),L=require("./Deployable/DeployableTargetWithRBAC.cjs"),b0=require("./Incentives/AllowListIncentive.cjs"),d0=require("./Incentives/CGDAIncentive.cjs"),c0=require("./Incentives/ERC20Incentive.cjs"),M=require("./Incentive-Bse5BKbF.cjs"),s0=require("./Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs"),n0=require("./Incentives/ERC20VariableCriteriaIncentiveV2.cjs"),i0=require("./Incentives/PointsIncentive.cjs"),o0=require("./Validators/LimitedSignerValidator.cjs"),F=require("./Validator-DHS4vjSa.cjs"),r0=require("./Validators/SignerValidator.cjs"),v=require("./errors.cjs"),h=require("./utils.cjs"),H=require("viem/actions"),x=require("viem/utils"),u0=require("./Incentives/ERC20VariableIncentive.cjs"),$="0x60a0604052306080523480156012575f80fd5b506019601d565b6080565b63409feecd1980546001811615603a5763f92ee8a95f526004601cfd5b6001600160401b03808260011c14607b578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b6080516153f361009f5f395f81816132b201526132e901526153f35ff3fe608060405260043610610229575f3560e01c8063730f9c5711610131578063d73792a9116100ac578063eccc19a61161007c578063f2fde38b11610062578063f2fde38b14610652578063fee81cf414610665578063fefceca914610696575f80fd5b8063eccc19a614610620578063f04e283e1461063f575f80fd5b8063d73792a914610590578063dd7dc9a9146105a5578063dd98558c146105c5578063e21ff73114610601575f80fd5b8063a92647dc11610101578063c0c53b8b116100e7578063c0c53b8b14610533578063caa1647b14610552578063d5137b5214610571575f80fd5b8063a92647dc146104c3578063b0e21e8a146104e2575f80fd5b8063730f9c571461044b5780637b1039991461045e5780638da5cb5b1461047d5780638fe4f523146104b0575f80fd5b806346877b1a116101c157806354d1f13d116101915780635edb9eb0116101775780635edb9eb0146104115780635f32c23e14610424578063715018a614610443575f80fd5b806354d1f13d146103be57806354fd4d50146103c6575f80fd5b806346877b1a1461034b5780634f1ef2861461036a5780635045b8661461037d57806352d1902d1461039c575f80fd5b806325692962116101fc57806325692962146102c1578063346339d5146102c957806339a51be5146102f557806343bc42d31461032c575f80fd5b806313c8e2de1461022d57806316614282146102625780631fa2acdc14610283578063219f71f0146102a2575b5f80fd5b348015610238575f80fd5b5061024c610247366004614377565b6106f9565b60405161025991906143d1565b60405180910390f35b34801561026d575f80fd5b5061028161027c3660046144cf565b61082e565b005b34801561028e575f80fd5b5061028161029d366004614532565b610fa1565b3480156102ad575f80fd5b506102816102bc366004614598565b611716565b610281611758565b3480156102d4575f80fd5b506102e86102e3366004614377565b6117a5565b6040516102599190614620565b348015610300575f80fd5b50600354610314906001600160a01b031681565b6040516001600160a01b039091168152602001610259565b348015610337575f80fd5b5061028161034636600461467e565b61185a565b348015610356575f80fd5b50610281610365366004614598565b6118b5565b610281610378366004614699565b6118f7565b348015610388575f80fd5b50600454610314906001600160a01b031681565b3480156103a7575f80fd5b506103b06119ac565b604051908152602001610259565b6102816119da565b3480156103d1575f80fd5b50604080518082018252600581527f312e302e30000000000000000000000000000000000000000000000000000000602082015290516102599190614718565b34801561041c575f80fd5b505f546103b0565b34801561042f575f80fd5b5061028161043e36600461472a565b611a13565b610281611bac565b61028161045936600461474a565b611bbf565b348015610469575f80fd5b50600154610314906001600160a01b031681565b348015610488575f80fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754610314565b6102816104be3660046147c1565b612026565b3480156104ce575f80fd5b50600254610314906001600160a01b031681565b3480156104ed575f80fd5b5060045461051a9074010000000000000000000000000000000000000000900467ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610259565b34801561053e575f80fd5b5061028161054d366004614826565b61203b565b34801561055d575f80fd5b5061028161056c36600461467e565b612186565b34801561057c575f80fd5b5061031461058b36600461486e565b61220e565b34801561059b575f80fd5b5061051a61271081565b3480156105b0575f80fd5b5060055461051a9067ffffffffffffffff1681565b3480156105d0575f80fd5b506105e46105df3660046148b8565b61243a565b604080519283526001600160a01b03909116602083015201610259565b34801561060c575f80fd5b5061024c61061b366004614905565b612896565b34801561062b575f80fd5b5061028161063a366004614598565b6130c7565b61028161064d366004614598565b613109565b610281610660366004614598565b613146565b348015610670575f80fd5b506103b061067f366004614598565b63389a75e1600c9081525f91909152602090205490565b3480156106a1575f80fd5b506106e86106b0366004614377565b60066020525f9081526040902080546001820154600283015460039093015460ff8316936101009093046001600160a01b0316929085565b604051610259959493929190614944565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e08101919091525f828154811061074a5761074a61497d565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b039081168452600182015481168486015260028201548116848401526003820154166060840152600481018054835181870281018701909452808452939491936080860193928301828280156107ed57602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116107cf575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b031660609091015292915050565b3068929eee149b4bd21268540361084c5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f80858154811061086b5761086b61497d565b905f5260205f20906008020190505f81600401858154811061088f5761088f61497d565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a2906108e490889088906004016149d3565b5f60405180830381865afa1580156108fe573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526109259190810190614b2d565b905080515f03610961576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f818060200190518101906109769190614b6a565b90505f808080600185516002811115610991576109916145ba565b14806109ae57505f855160028111156109ac576109ac6145ba565b145b15610a12575f85606001518060200190518101906109cc9190614c12565b805160058b0154909650909150612710906109f19067ffffffffffffffff1687614c81565b6109fb9190614c98565b9350610a078486614cd0565b908190529150610ac8565b600285516002811115610a2757610a276145ba565b03610a96575f8560600151806020019051810190610a459190614ce3565b602081015160058b015490965090915061271090610a6d9067ffffffffffffffff1687614c81565b610a779190614c98565b9350610a838486614cd0565b6020820181905290519092509050610ac8565b6040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f610ad38d8d61316c565b5f8181526006602052604081206001810180549394509092879290610af9908490614cd0565b909155505085159150610f87905057600185516002811115610b1d57610b1d6145ba565b1480610b3a57505f85516002811115610b3857610b386145ba565b145b15610d595760208501516040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018490526001600160a01b038216906323b872dd906064016020604051808303815f875af1158015610bad573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610bd19190614d70565b506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820187905282169063095ea7b3906044016020604051808303815f875af1158015610c37573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610c5b9190614d70565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b038916906330db555f906024015f604051808303815f87803b158015610cb4575f80fd5b505af1158015610cc6573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015610d2e573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610d529190614d70565b5050610f47565b60208501516040517ff242432a000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018390526064810184905260a060848201525f60a48201526001600160a01b0382169063f242432a9060c4015f604051808303815f87803b158015610dd6575f80fd5b505af1158015610de8573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b81166004830152600160248301528416925063a22cb46591506044015f604051808303815f87803b158015610e4c575f80fd5b505af1158015610e5e573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018890526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b158015610eba575f80fd5b505af1158015610ecc573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b158015610f2f575f80fd5b505af1158015610f41573d5f803e3d5ffd5b50505050505b604080518581526020810185905233918d918f917f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f31876910160405180910390a45b50505050505050503868929eee149b4bd212685550505050565b3068929eee149b4bd212685403610fbf5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808681548110610fde57610fde61497d565b905f5260205f20906008020190505f8160040186815481106110025761100261497d565b5f9182526020822001546040517f4e7165a20000000000000000000000000000000000000000000000000000000081526001600160a01b0390911692508290634e7165a29061105790899089906004016149d3565b5f60405180830381865afa158015611071573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526110989190810190614b2d565b905080515f036110d4576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f818060200190518101906110e99190614b6a565b90505f6001600160a01b038616156111015785611110565b60038501546001600160a01b03165b905061111b8161319b565b5f8080600185516002811115611133576111336145ba565b148061115057505f8551600281111561114e5761114e6145ba565b145b156111d7575f856060015180602001905181019061116e9190614c12565b805160058b0154909550909150612710906111939067ffffffffffffffff1686614c81565b61119d9190614c98565b92506111a98385614cd0565b8082526040805160208101839052919350015b60408051601f19818403018152919052606087015250611262565b6002855160028111156111ec576111ec6145ba565b03610a96575f856060015180602001905181019061120a9190614ce3565b602081015160058b0154909550909150612710906112329067ffffffffffffffff1686614c81565b61123c9190614c98565b92506112488385614cd0565b60208083018290526040519193506111bc91839101614d8b565b30604080870191909152515f9061127d908790602001614db9565b60408051601f19818403018152908290527ffa4ca9b100000000000000000000000000000000000000000000000000000000825291506001600160a01b0386169063fa4ca9b1906112d2908490600401614718565b6020604051808303815f875af11580156112ee573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906113129190614d70565b611348576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6113538f8f61316c565b5f8181526006602052604081206001810180549394509092879290611379908490614cd0565b9091555050851592506116fb9150505760018551600281111561139e5761139e6145ba565b14806113bb57505f855160028111156113b9576113b96145ba565b145b1561154c5760208501516040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526024820186905282169063095ea7b3906044016020604051808303815f875af115801561142a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061144e9190614d70565b506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018590526001600160a01b038916906330db555f906024015f604051808303815f87803b1580156114a7575f80fd5b505af11580156114b9573d5f803e3d5ffd5b50506040517f095ea7b30000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063095ea7b391506044016020604051808303815f875af1158015611521573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906115459190614d70565b50506116ac565b60208501516040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b0389811660048301526001602483015282169063a22cb465906044015f604051808303815f87803b1580156115b1575f80fd5b505af11580156115c3573d5f803e3d5ffd5b50506040517f30db555f000000000000000000000000000000000000000000000000000000008152600481018790526001600160a01b038b1692506330db555f91506024015f604051808303815f87803b15801561161f575f80fd5b505af1158015611631573d5f803e3d5ffd5b50506040517fa22cb4650000000000000000000000000000000000000000000000000000000081526001600160a01b038b811660048301525f60248301528416925063a22cb46591506044015f604051808303815f87803b158015611694575f80fd5b505af11580156116a6573d5f803e3d5ffd5b50505050505b336001600160a01b03168c8e7f2ad351412a5089670d592612b17f248e8526b92879399b24b35421b4c8f3187686866040516116f2929190918252602082015260400190565b60405180910390a45b50505050505050503868929eee149b4bd21268555050505050565b61171e61327a565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b6117dc6040805160a08101909152805f81526020015f6001600160a01b031681526020015f81526020015f81526020015f81525090565b5f8281526006602052604090819020815160a081019092528054829060ff16600281111561180c5761180c6145ba565b600281111561181d5761181d6145ba565b8152815461010090046001600160a01b03166020820152600182015460408201526002820154606082015260039091015460809091015292915050565b61186261327a565b6004805467ffffffffffffffff90921674010000000000000000000000000000000000000000027fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6118bd61327a565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6118ff6132af565b611908836132de565b8260601b60601c92503d5f526352d1902d6001527f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80602060016004601d885afa511461195d576355299b496001526004601dfd5b837fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b5f38a283905580156119a757604051818382375f388383875af46119a5573d5f823e3d81fd5b505b505050565b5f6119b56132e6565b507f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc90565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b3068929eee149b4bd212685403611a315763ab143c065f526004601cfd5b3068929eee149b4bd21268555f611a48838361316c565b5f818152600660205260408120815492935091819086908110611a6d57611a6d61497d565b905f5260205f2090600802016004018481548110611a8d57611a8d61497d565b5f918252602082200154600284015460018501546001600160a01b03909216935090611abc9061271090614c81565b611ac69190614c98565b90505f611ad38484613315565b905081811115611b97575f611ae88383614e0a565b90505f61271067ffffffffffffffff16866002015483611b089190614c81565b611b129190614c98565b9050611b1e8682613463565b80866001015410611b475780866001015f828254611b3c9190614e0a565b90915550611b4e9050565b5f60018701555b6003546040518281526001600160a01b039091169089908b907f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b179060200160405180910390a450505b50505050503868929eee149b4bd21268555050565b611bb461327a565b611bbd5f61359f565b565b3068929eee149b4bd212685403611bdd5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f808781548110611bfc57611bfc61497d565b905f5260205f20906008020190505f611c15888861316c565b5f81815260066020526040812060048501805493945090928a908110611c3d57611c3d61497d565b5f9182526020909120015460028501546040517fe3f756de0000000000000000000000000000000000000000000000000000000081526001600160a01b03928316935091169063e3f756de90611c9b9088908b908b90600401614e1d565b602060405180830381865afa158015611cb6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cda9190614d70565b611d10576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018401546040517f703b69000000000000000000000000000000000000000000000000000000000081526001600160a01b039091169063703b6900903490611d65908e908e908b908e908e90600401614e48565b60206040518083038185885af1158015611d81573d5f803e3d5ffd5b50505050506040513d601f19601f82011682018060405250810190611da69190614d70565b611ddc576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81545f9061010090046001600160a01b0316611df8575f611e02565b611e028383613315565b6040517fbb1757cf0000000000000000000000000000000000000000000000000000000081529091506001600160a01b0383169063bb1757cf90611e4e9089908c908c90600401614e1d565b6020604051808303815f875af1158015611e6a573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611e8e9190614d70565b611ed3578588886040517f4139d81d000000000000000000000000000000000000000000000000000000008152600401611eca93929190614e1d565b60405180910390fd5b82545f9061010090046001600160a01b0316611eef575f611ef9565b611ef98484613315565b90505f818311611f09575f611f13565b611f138284614e0a565b90505f61271067ffffffffffffffff16866002015483611f339190614c81565b611f3d9190614c98565b90508015611fc357611f4f8682613463565b80866001015f828254611f629190614e0a565b9250508190555060035f9054906101000a90046001600160a01b03166001600160a01b03168d8f7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b1784604051611fba91815260200190565b60405180910390a45b886001600160a01b03168d8f7f0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b2595478f8f8f60405161200293929190614e1d565b60405180910390a450505050505050503868929eee149b4bd2126855505050505050565b612034858585858533611bbf565b5050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132805460038255801561208c5760018160011c14303b106120835763f92ee8a95f526004601cfd5b818160ff1b1b91505b50612096826135f7565b600180546001600160a01b038087167fffffffffffffffffffffffff0000000000000000000000000000000000000000928316179092556003805492861692909116919091179055600480547503e800000000000000000000000000000000000000007fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff909116179055600580547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000166103e817905580156119a5576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a150505050565b61218e61327a565b61271067ffffffffffffffff8216106121d3576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600580547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b5f3068929eee149b4bd21268540361222d5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f80848154811061224c5761224c61497d565b5f918252602090912060089091020160078101549091506001600160a01b031633146122a4576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60038101546122bb906001600160a01b031661319b565b6004808201805491549091905f906001600160a01b03166122dc575f61236e565b6004546040516001600160a01b039091169063c7f1ecff90612304908a908a90602001614e81565b6040516020818303038152906040526040518263ffffffff1660e01b815260040161232f9190614718565b602060405180830381865afa15801561234a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061236e9190614f38565b90506123a461237c87614fa0565b600386015460058701546001600160a01b039091169067ffffffffffffffff16848b8761364d565b83546001810185555f858152602080822090920180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03851690811790915560405191825292975084918a917f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae910160405180910390a4505050503868929eee149b4bd212685592915050565b5f803068929eee149b4bd21268540361245a5763ab143c065f526004601cfd5b3068929eee149b4bd21268555f8085815481106124795761247961497d565b5f9182526020918290206040805161010081018252600890930290910180546001600160a01b0390811684526001820154811684860152600282015481168484015260038201541660608401526004810180548351818702810187019094528084529394919360808601939283018282801561251c57602002820191905f5260205f20905b81546001600160a01b031681526001909101906020018083116124fe575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b0390811660609283015290820151919250163314612599576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f6125a4868661316c565b5f8181526006602052604081209192506125c0898b018b615009565b90505f81602001518060200190518101906125db91906150a6565b90505f61271067ffffffffffffffff168460020154836125fb9190614c81565b6126059190614c98565b90508015612773576001845460ff166002811115612625576126256145ba565b148061264557505f845460ff166002811115612643576126436145ba565b145b1561266d5782518454612668916101009091046001600160a01b031690836139ed565b61272a565b6002845460ff166002811115612685576126856145ba565b0361272a578354835160038601546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b158015612713575f80fd5b505af1158015612725573d5f803e3d5ffd5b505050505b825f01516001600160a01b0316898b7f42ca2b02f2bdb76fff6e99ea9a7b4d9767b45bdd42d6be831eeb9f3d5cb20b178460405161276a91815260200190565b60405180910390a45b5f8087608001518b8151811061278b5761278b61497d565b60200260200101516001600160a01b031663474f5a44866040516020016127b291906150bd565b6040516020818303038152906040526040518263ffffffff1660e01b81526004016127dd9190614718565b60408051808303815f875af11580156127f8573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061281c91906150ea565b91509150815f0361285f57338e8e6040517f9ecd71a9000000000000000000000000000000000000000000000000000000008152600401611eca93929190614e1d565b82866001015f8282546128729190614e0a565b90915550503868929eee149b4bd2126855909d909c509a5050505050505050505050565b60408051610100810182525f808252602082018190529181018290526060808201839052608082015260a0810182905260c0810182905260e081019190915260025433906001600160a01b03161580159061297357506002546040517ffe9fbb800000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301529091169063fe9fbb8090602401602060405180830381865afa15801561294d573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906129719190614d70565b155b156129aa576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3068929eee149b4bd2126854036129c85763ab143c065f526004601cfd5b3068929eee149b4bd21268555f612a1385858080601f0160208091040260200160405190810160405280939291908181526020018383808284375f92019190915250613a4092505050565b806020019051810190612a269190615212565b9050612a34815f015161319b565b5f805460018101825590805260e082015160089091027f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56a810180547fffffffffffffffffffffffff00000000000000000000000000000000000000009081166001600160a01b039485161790915583517f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e566830180549092169084161790556004547f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5639091019116612b385760a0820151600454612b33919074010000000000000000000000000000000000000000900467ffffffffffffffff1661533d565b612bd0565b60a0820151600480546040517fb1539a6b0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163b1539a6b91612b87918b918b91016149d3565b602060405180830381865afa158015612ba2573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612bc6919061535d565b612bd0919061533d565b6005820180547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff9290921691909117905560c082015160068201556020820151612c47907fe671579500000000000000000000000000000000000000000000000000000000906001613bcb565b81547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03919091161781556060820151612cac907fe2089f7900000000000000000000000000000000000000000000000000000000906001613bcb565b6002820180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b039283161790556004545f9116612cf2575f612d7b565b600480546040517fc7f1ecff0000000000000000000000000000000000000000000000000000000081526001600160a01b039091169163c7f1ecff91612d3c918b918b91016149d3565b602060405180830381865afa158015612d57573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612d7b9190614f38565b608084015184516005850154929350612d9e9267ffffffffffffffff1684613bec565b8051612db49160048501916020909101906142e8565b506040830151602001516001600160a01b031615612e0157612dfc7f5912b89c0000000000000000000000000000000000000000000000000000000084604001516001613bcb565b612eb9565b81546040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201526001600160a01b03909116906301ffc9a790602401602060405180830381865afa158015612e7f573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612ea39190614d70565b612ead575f612eb9565b81546001600160a01b03165b6001830180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03929092169182179055612f50576040517fe1c444480000000000000000000000000000000000000000000000000000000081527f5912b89c0000000000000000000000000000000000000000000000000000000060048201525f6024820152604401611eca565b815460078301545f546001600160a01b039283169290911690612f7590600190614e0a565b6004850154600186015460028701546003880154604080519485526001600160a01b03938416602086015291831684830152919091166060830152517f116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd9181900360800190a4604080516101008101825283546001600160a01b0390811682526001850154811660208084019190915260028601548216838501526003860154909116606083015260048501805484518184028101840190955280855292938693608086019391929183018282801561307557602002820191905f5260205f20905b81546001600160a01b03168152600190910190602001808311613057575b5050509183525050600582015467ffffffffffffffff166020820152600682015460408201526007909101546001600160a01b03166060909101523868929eee149b4bd2126855979650505050505050565b6130cf61327a565b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b61311161327a565b63389a75e1600c52805f526020600c20805442111561313757636f5e88185f526004601cfd5b5f90556131438161359f565b50565b61314e61327a565b8060601b61316357637448fbae5f526004601cfd5b6131438161359f565b604080516020808201859052818301849052825180830384018152606090920190925280519101205b92915050565b6131c57fe49cedd70000000000000000000000000000000000000000000000000000000082613d1e565b6040517ffe9fbb800000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b0382169063fe9fbb8090602401602060405180830381865afa158015613220573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906132449190614d70565b613143576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314611bbd576382b429005f526004601cfd5b307f000000000000000000000000000000000000000000000000000000000000000003611bbd57611bbd613e3c565b61314361327a565b307f000000000000000000000000000000000000000000000000000000000000000014611bbd57611bbd613e3c565b5f6001835460ff16600281111561332e5761332e6145ba565b148061334e57505f835460ff16600281111561334c5761334c6145ba565b145b156133e55782546040517f70a082310000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152610100909204909116906370a08231906024015b602060405180830381865afa1580156133ba573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906133de91906150a6565b9050613195565b6002835460ff1660028111156133fd576133fd6145ba565b0361345b57825460038401546040517efdd58e0000000000000000000000000000000000000000000000000000000081526001600160a01b0385811660048301526024820192909252610100909204169062fdd58e9060440161339f565b505f92915050565b6001825460ff16600281111561347b5761347b6145ba565b148061349b57505f825460ff166002811115613499576134996145ba565b145b156134de5760035482546134c1916001600160a01b0361010090920482169116836139ed565b81546134da9061010090046001600160a01b0316613e49565b5050565b6002825460ff1660028111156134f6576134f66145ba565b036134da57815460038054908401546040517ff242432a0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b03928316602482015260448101919091526064810184905260a060848201525f60a4820152610100909204169063f242432a9060c4015f604051808303815f87803b158015613585575f80fd5b505af1158015613597573d5f803e3d5ffd5b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780546001600160a01b039092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b6001600160a01b03167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b5f80876040015190506136847fa9216705000000000000000000000000000000000000000000000000000000008960200151613d1e565b87516136f35760208801516040517fe1c444480000000000000000000000000000000000000000000000000000000081527fa92167050000000000000000000000000000000000000000000000000000000060048201526001600160a01b039091166024820152604401611eca565b61371e7fa921670500000000000000000000000000000000000000000000000000000000895f613bcb565b91505f826001600160a01b0316634e7165a2836040518263ffffffff1660e01b815260040161374d9190614718565b5f60405180830381865afa158015613767573d5f803e3d5ffd5b505050506040513d5f823e601f3d908101601f1916820160405261378e9190810190614b2d565b905080515f1461396f575f806137a4838a613f05565b6040517ffa4ca9b100000000000000000000000000000000000000000000000000000000815291935091506001600160a01b038b169063fa4ca9b1906137ee908590600401614718565b6020604051808303815f875af115801561380a573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061382e9190614d70565b613864576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040517ffa4ca9b10000000000000000000000000000000000000000000000000000000081526001600160a01b038b169063fa4ca9b1906138a9908690600401614718565b6020604051808303815f875af11580156138c5573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906138e99190614d70565b61391f576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f838060200190518101906139349190614b6a565b905061396b88886001600160a01b038c16613953578360200151613955565b8b5b858e67ffffffffffffffff16865f01518b61409e565b5050505b6040517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0384169063439fab91906139b4908590600401614718565b5f604051808303815f87803b1580156139cb575f80fd5b505af11580156139dd573d5f803e3d5ffd5b5050505050509695505050505050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f511416613a3657803d853b151710613a36576390b8ec185f526004601cfd5b505f603452505050565b6060815115613bc6576040519050600482018051835184602001017f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f6020850183198552866020015b8051805f1a613b1e57600190811a0160808111613ac1576002820191508036843791820191848210613abb5750613bac565b50613a89565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83529182017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff80019160029190910190848210613abb5750613bac565b80835283811684011783171980157fc0c8c8d0c8e8d0d8c8e8e0e8d0d8e0f0c8d0e8d0e0e0d8f0d0d0e0d8f8f8f8f8601f6f8421084210842108cc6318c6db6d54be660204081020408185821060071b86811c67ffffffffffffffff1060061b1795861c0260181a1c161a90911860031c019182019101838110613a895783811115613bac57838103820391505b509290935250601f198382030183525f8152602001604052505b919050565b5f613bda848460200151613d1e565b613be483836141da565b949350505050565b5f805460609190613bff90600190614e0a565b9050855167ffffffffffffffff811115613c1b57613c1b6149e6565b604051908082528060200260200182016040528015613c44578160200160208202803683370190505b5091505f5b8651811015613d1457613c79878281518110613c6757613c6761497d565b6020026020010151878787868661364d565b838281518110613c8b57613c8b61497d565b60200260200101906001600160a01b031690816001600160a01b031681525050828181518110613cbd57613cbd61497d565b60200260200101516001600160a01b031681837f500ae5072ea307af9f1d7b29f92e0379b973527e56e000e5445b7b9f5fbb09ae6001604051613d04911515815260200190565b60405180910390a4600101613c49565b5050949350505050565b6001600160a01b0381161580613dd257506040517f01ffc9a70000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b038216906301ffc9a790602401602060405180830381865afa158015613dac573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613dd09190614d70565b155b156134da576040517fe1c444480000000000000000000000000000000000000000000000000000000081527fffffffff00000000000000000000000000000000000000000000000000000000831660048201526001600160a01b0382166024820152604401611eca565b639f03a0265f526004601cfd5b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201525f906001600160a01b038316906370a0823190602401602060405180830381865afa158015613ea6573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190613eca91906150a6565b90505f81118015613ee6575060055467ffffffffffffffff1681105b156134da576003546134da906001600160a01b038481169116836139ed565b60605f8084806020019051810190613f1d9190614b6a565b905083600182516002811115613f3557613f356145ba565b1480613f5257505f82516002811115613f5057613f506145ba565b145b15614000575f8260600151806020019051810190613f709190614c12565b80519091505f9061271090613f909067ffffffffffffffff861690614c81565b613f9a9190614c98565b6040805160208082018352838252825190810184905292935091015b60408051601f198184030181529181526060870191909152308682015251613fe2908690602001614db9565b60405160208183030381529060405282965096505050505050614097565b600282516002811115614015576140156145ba565b03610a96575f82606001518060200190518101906140339190614ce3565b90505f61271067ffffffffffffffff168367ffffffffffffffff16836020015161405d9190614c81565b6140679190614c98565b604080516060810182528451815260208082018490528583015182840152915192935091613fb691839101614d8b565b9250929050565b5f60028360028111156140b3576140b36145ba565b036140d057818060200190518101906140cc9190615378565b5090505b5f6040518060a001604052808560028111156140ee576140ee6145ba565b8152602001886001600160a01b031681526020018781526020018681526020018381525090508060065f6141228c8c61316c565b815260208101919091526040015f208151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600183600281111561416d5761416d6145ba565b0217905550602082015181546001600160a01b03909116610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff9091161781556040820151600182015560608201516002820155608090910151600390910155505050505050505050565b81515f906141ec578260200151614202565b61420283602001516001600160a01b0316614291565b835190915080156142105750815b156131955760408084015190517f439fab910000000000000000000000000000000000000000000000000000000081526001600160a01b0383169163439fab919161425e9190600401614718565b5f604051808303815f87803b158015614275575f80fd5b505af1158015614287573d5f803e3d5ffd5b5050505092915050565b5f6131955f835f6c5af43d3d93803e602a57fd5bf36021528160145273602c3d8160093d39f33d3d3d3d363d3d37363d735f526035600c84f09050806142de5763301164255f526004601cfd5b5f60215292915050565b828054828255905f5260205f20908101928215614353579160200282015b8281111561435357825182547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03909116178255602090920191600190910190614306565b5061435f929150614363565b5090565b5b8082111561435f575f8155600101614364565b5f60208284031215614387575f80fd5b5035919050565b5f8151808452602084019350602083015f5b828110156143c75781516001600160a01b03168652602095860195909101906001016143a0565b5093949350505050565b602081526001600160a01b0382511660208201525f602083015161440060408401826001600160a01b03169052565b5060408301516001600160a01b03811660608401525060608301516001600160a01b038116608084015250608083015161010060a084015261444661012084018261438e565b905060a084015161446360c085018267ffffffffffffffff169052565b5060c084015160e084015260e08401516144896101008501826001600160a01b03169052565b509392505050565b5f8083601f8401126144a1575f80fd5b50813567ffffffffffffffff8111156144b8575f80fd5b602083019150836020828501011115614097575f80fd5b5f805f80606085870312156144e2575f80fd5b8435935060208501359250604085013567ffffffffffffffff811115614506575f80fd5b61451287828801614491565b95989497509550505050565b6001600160a01b0381168114613143575f80fd5b5f805f805f60808688031215614546575f80fd5b8535945060208601359350604086013567ffffffffffffffff81111561456a575f80fd5b61457688828901614491565b909450925050606086013561458a8161451e565b809150509295509295909350565b5f602082840312156145a8575f80fd5b81356145b38161451e565b9392505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6003811061461c577f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b9052565b5f60a0820190506146328284516145e7565b6001600160a01b03602084015116602083015260408301516040830152606083015160608301526080830151608083015292915050565b67ffffffffffffffff81168114613143575f80fd5b5f6020828403121561468e575f80fd5b81356145b381614669565b5f805f604084860312156146ab575f80fd5b83356146b68161451e565b9250602084013567ffffffffffffffff8111156146d1575f80fd5b6146dd86828701614491565b9497909650939450505050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6145b360208301846146ea565b5f806040838503121561473b575f80fd5b50508035926020909101359150565b5f805f805f8060a0878903121561475f575f80fd5b863595506020870135945060408701356147788161451e565b9350606087013567ffffffffffffffff811115614793575f80fd5b61479f89828a01614491565b90945092505060808701356147b38161451e565b809150509295509295509295565b5f805f805f608086880312156147d5575f80fd5b853594506020860135935060408601356147ee8161451e565b9250606086013567ffffffffffffffff811115614809575f80fd5b61481588828901614491565b969995985093965092949392505050565b5f805f60608486031215614838575f80fd5b83356148438161451e565b925060208401356148538161451e565b915060408401356148638161451e565b809150509250925092565b5f806040838503121561487f575f80fd5b82359150602083013567ffffffffffffffff81111561489c575f80fd5b8301606081860312156148ad575f80fd5b809150509250929050565b5f805f80606085870312156148cb575f80fd5b843567ffffffffffffffff8111156148e1575f80fd5b6148ed87828801614491565b90989097506020870135966040013595509350505050565b5f8060208385031215614916575f80fd5b823567ffffffffffffffff81111561492c575f80fd5b61493885828601614491565b90969095509350505050565b60a0810161495282886145e7565b6001600160a01b03861660208301528460408301528360608301528260808301529695505050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b81835281816020850137505f602082840101525f6020601f19601f840116840101905092915050565b602081525f613be46020830184866149aa565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6040516080810167ffffffffffffffff81118282101715614a3657614a366149e6565b60405290565b6040516060810167ffffffffffffffff81118282101715614a3657614a366149e6565b604051610100810167ffffffffffffffff81118282101715614a3657614a366149e6565b604051601f8201601f1916810167ffffffffffffffff81118282101715614aac57614aac6149e6565b604052919050565b5f67ffffffffffffffff821115614acd57614acd6149e6565b50601f01601f191660200190565b5f82601f830112614aea575f80fd5b8151614afd614af882614ab4565b614a83565b818152846020838601011115614b11575f80fd5b8160208501602083015e5f918101602001919091529392505050565b5f60208284031215614b3d575f80fd5b815167ffffffffffffffff811115614b53575f80fd5b613be484828501614adb565b8051613bc68161451e565b5f60208284031215614b7a575f80fd5b815167ffffffffffffffff811115614b90575f80fd5b820160808185031215614ba1575f80fd5b614ba9614a13565b815160038110614bb7575f80fd5b81526020820151614bc78161451e565b60208201526040820151614bda8161451e565b6040820152606082015167ffffffffffffffff811115614bf8575f80fd5b614c0486828501614adb565b606083015250949350505050565b5f6020828403128015614c23575f80fd5b506040516020810167ffffffffffffffff81118282101715614c4757614c476149e6565b6040529151825250919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b808202811582820484141761319557613195614c54565b5f82614ccb577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b500490565b8082018082111561319557613195614c54565b5f60208284031215614cf3575f80fd5b815167ffffffffffffffff811115614d09575f80fd5b820160608185031215614d1a575f80fd5b614d22614a3c565b8151815260208083015190820152604082015167ffffffffffffffff811115614d49575f80fd5b614d5586828501614adb565b604083015250949350505050565b8015158114613143575f80fd5b5f60208284031215614d80575f80fd5b81516145b381614d63565b6020815281516020820152602082015160408201525f6040830151606080840152613be460808401826146ea565b60208152614dcb6020820183516145e7565b6001600160a01b0360208301511660408201526001600160a01b0360408301511660608201525f6060830151608080840152613be460a08401826146ea565b8181038181111561319557613195614c54565b6001600160a01b0384168152604060208201525f614e3f6040830184866149aa565b95945050505050565b8581528460208201526001600160a01b0384166040820152608060608201525f614e766080830184866149aa565b979650505050505050565b828152604060208201525f8235614e9781614d63565b151560408301526020830135614eac8161451e565b6001600160a01b031660608301526040830135368490037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1018112614eef575f80fd5b830160208101903567ffffffffffffffff811115614f0b575f80fd5b803603821315614f19575f80fd5b60606080850152614f2e60a0850182846149aa565b9695505050505050565b5f60208284031215614f48575f80fd5b81516145b38161451e565b5f82601f830112614f62575f80fd5b8135614f70614af882614ab4565b818152846020838601011115614f84575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60608236031215614fb0575f80fd5b614fb8614a3c565b8235614fc381614d63565b81526020830135614fd38161451e565b6020820152604083013567ffffffffffffffff811115614ff1575f80fd5b614ffd36828601614f53565b60408301525092915050565b5f60208284031215615019575f80fd5b813567ffffffffffffffff81111561502f575f80fd5b820160408185031215615040575f80fd5b6040805190810167ffffffffffffffff81118282101715615063576150636149e6565b60405281356150718161451e565b8152602082013567ffffffffffffffff81111561508c575f80fd5b61509886828501614f53565b602083015250949350505050565b5f602082840312156150b6575f80fd5b5051919050565b602081526001600160a01b0382511660208201525f6020830151604080840152613be460608401826146ea565b5f80604083850312156150fb575f80fd5b825160208401519092506148ad8161451e565b5f6060828403121561511e575f80fd5b615126614a3c565b9050815161513381614d63565b815260208201516151438161451e565b6020820152604082015167ffffffffffffffff811115615161575f80fd5b614ffd84828501614adb565b5f82601f83011261517c575f80fd5b815167ffffffffffffffff811115615196576151966149e6565b8060051b6151a660208201614a83565b918252602081850181019290810190868411156151c1575f80fd5b6020860192505b83831015614f2e57825167ffffffffffffffff8111156151e6575f80fd5b6151f5886020838a010161510e565b835250602092830192909101906151c8565b8051613bc681614669565b5f60208284031215615222575f80fd5b815167ffffffffffffffff811115615238575f80fd5b8201610100818503121561524a575f80fd5b615252614a5f565b61525b82614b5f565b8152602082015167ffffffffffffffff811115615276575f80fd5b6152828682850161510e565b602083015250604082015167ffffffffffffffff8111156152a1575f80fd5b6152ad8682850161510e565b604083015250606082015167ffffffffffffffff8111156152cc575f80fd5b6152d88682850161510e565b606083015250608082015167ffffffffffffffff8111156152f7575f80fd5b6153038682850161516d565b60808301525061531560a08301615207565b60a082015260c0828101519082015261533060e08301614b5f565b60e0820152949350505050565b67ffffffffffffffff818116838216019081111561319557613195614c54565b5f6020828403121561536d575f80fd5b81516145b381614669565b5f8060408385031215615389575f80fd5b8251602084015190925067ffffffffffffffff8111156153a7575f80fd5b6153b385828601614adb565b915050925092905056fea264697066735822122081438b59615fe3a94ba762252425a044dcc524f7ed824e6c8650e5837ed9178164736f6c634300081a0033";function W(s){const f=s.state.current,e=s.state.connections.get(f),a=e==null?void 0:e.accounts,t=a==null?void 0:a[0],b=s.chains.find(c=>c.id===(e==null?void 0:e.chainId)),d=s.state.status;switch(d){case"connected":return{address:t,addresses:a,chain:b,chainId:e==null?void 0:e.chainId,connector:e==null?void 0:e.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:d};case"reconnecting":return{address:t,addresses:a,chain:b,chainId:e==null?void 0:e.chainId,connector:e==null?void 0:e.connector,isConnected:!!t,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:d};case"connecting":return{address:t,addresses:a,chain:b,chainId:e==null?void 0:e.chainId,connector:e==null?void 0:e.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:d};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:d}}}function l0(s){return s.state.chainId}function G(s,f,e){const a=s[f.name];if(typeof a=="function")return a;const t=s[e];return typeof t=="function"?t:b=>f(s,b)}const h0="2.13.8",g0=()=>`@wagmi/core@${h0}`;var k=function(s,f,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof f=="function"?s!==f||!a:!f.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(s):a?a.value:f.get(s)},D,U;class E extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return g0()}constructor(f,e={}){var b;super(),D.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const a=e.cause instanceof E?e.cause.details:(b=e.cause)!=null&&b.message?e.cause.message:e.details,t=e.cause instanceof E&&e.cause.docsPath||e.docsPath;this.message=[f||"An error occurred.","",...e.metaMessages?[...e.metaMessages,""]:[],...t?[`Docs: ${this.docsBaseUrl}${t}.html${e.docsSlug?`#${e.docsSlug}`:""}`]:[],...a?[`Details: ${a}`]:[],`Version: ${this.version}`].join(`
|
|
2
|
+
`),e.cause&&(this.cause=e.cause),this.details=a,this.docsPath=t,this.metaMessages=e.metaMessages,this.shortMessage=f}walk(f){return k(this,D,"m",U).call(this,this,f)}}D=new WeakSet,U=function s(f,e){return e!=null&&e(f)?f:f.cause?k(this,D,"m",s).call(this,f.cause,e):f};class w0 extends E{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class y0 extends E{constructor({address:f,connector:e}){super(`Account "${f}" not found for connector "${e.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}class A0 extends E{constructor({connectionChainId:f,connectorChainId:e}){super(`The current chain of the connector (id: ${e}) does not match the connection's chain (id: ${f}).`,{metaMessages:[`Current Chain ID: ${e}`,`Expected Chain ID: ${f}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorChainMismatchError"})}}class C0 extends E{constructor({connector:f}){super(`Connector "${f.name}" unavailable while reconnecting.`,{details:["During the reconnection step, the only connector methods guaranteed to be available are: `id`, `name`, `type`, `uuid`.","All other methods are not guaranteed to be available until reconnection completes and connectors are fully restored.","This error commonly occurs for connectors that asynchronously inject after reconnection has already started."].join(" ")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorUnavailableReconnectingError"})}}async function Z(s,f={}){let e;if(f.connector){const{connector:i}=f;if(s.state.status==="reconnecting"&&!i.getAccounts&&!i.getChainId)throw new C0({connector:i});const[w,y]=await Promise.all([i.getAccounts(),i.getChainId()]);e={accounts:w,chainId:y,connector:i}}else e=s.state.connections.get(s.state.current);if(!e)throw new w0;const a=f.chainId??e.chainId,t=await e.connector.getChainId();if(t!==e.chainId)throw new A0({connectionChainId:e.chainId,connectorChainId:t});const b=e.connector;if(b.getClient)return b.getClient({chainId:a});const d=x.parseAccount(f.account??e.accounts[0]);if(d.address=x.getAddress(d.address),f.account&&!e.accounts.some(i=>i.toLowerCase()===d.address.toLowerCase()))throw new y0({address:d.address,connector:b});const c=s.chains.find(i=>i.id===a),n=await e.connector.getProvider({chainId:a});return u.createClient({account:d,chain:c,name:"Connector Client",transport:i=>u.custom(n)({...i,retryCount:0})})}async function I0(s,f){const{abi:e,chainId:a,connector:t,...b}=f;let d;f.account?d=f.account:d=(await Z(s,{chainId:a,connector:t})).account;const c=s.getClient({chainId:a}),n=G(c,H.simulateContract,"simulateContract"),{result:i,request:w}=await n({...b,abi:e,account:d});return{chainId:c.chain.id,result:i,request:{__mode:"prepared",...w,chainId:a}}}async function j(s,f){const{account:e,chainId:a,connector:t,__mode:b,...d}=f;let c;typeof e=="object"&&e.type==="local"?c=s.getClient({chainId:a}):c=await Z(s,{account:e,chainId:a,connector:t});const{connector:n}=W(s);let i;if(b==="prepared"||n!=null&&n.supportsSimulation)i=d;else{const{request:r}=await I0(s,{...d,account:e,chainId:a});i=r}return await G(c,H.writeContract,"writeContract")({...i,...e?{account:e}:{},chain:a?{id:a}:null})}function O(s){return s.address!==void 0&&typeof s.address=="object"?(f,e)=>{var d;const a=l0(f),t=W(f);let b;return e.chainId?b=e.chainId:e.account&&e.account===t.address||e.account===void 0?b=t.chainId:b=a,j(f,{...e,...s.functionName?{functionName:s.functionName}:{},address:b?(d=s.address)==null?void 0:d[b]:void 0,abi:s.abi})}:(f,e)=>j(f,{...e,...s.address?{address:s.address}:{},...s.functionName?{functionName:s.functionName}:{},abi:s.abi})}const q={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"},m=10000n,S={...q!=null&&q.VITE_BOOST_CORE_ADDRESS?{31337:void 0}:{},...Y.BoostCore},v0=S[11155111]||u.zeroAddress;function B0(s){return s.address}const z=class z extends t0.Deployable{get addresses(){return this.constructor.addresses}constructor({config:f,account:e,...a}){if(B0(a)&&a.address)super({account:e,config:f},a.address);else{const{address:t}=h.assertValidAddressByChainId(f,S);super({account:e,config:f},t)}this.abi=o.y}async createBoost(f,e){const[a,t]=this.validateDeploymentConfig(f),b=e==null?void 0:e.chainId,{chainId:d,address:c}=h.assertValidAddressByChainId(t.config,this.addresses,b),n=O({abi:o.y,functionName:"createBoost",address:c}),i=await this.prepareCreateBoostPayload(c,d,a,t),w=await n(t.config,{...this.optionallyAttachAccount(t.account),...e,chainId:d,args:[I.prepareBoostPayload(i)]}),y=await P.waitForTransactionReceipt(t.config,{hash:w}),r=u.parseEventLogs({abi:o.y,eventName:"BoostCreated",logs:y.logs}).at(0);let l=0n;if(!r)throw new v.BoostCoreNoIdentifierEmitted;l=r==null?void 0:r.args.boostId;const g=await this.readBoost(l);return new I.Boost({id:l,budget:a.budget.at(g.budget),action:a.action.at(g.action),validator:a.validator.at(g.validator),allowList:a.allowList.at(g.allowList),incentives:a.incentives.map((C,A)=>C.at(g.incentives.at(A))),protocolFee:g.protocolFee,maxParticipants:g.maxParticipants,owner:g.owner})}async createBoostRaw(f,e){const{request:a,result:t}=await this.simulateCreateBoost(f,e);return{hash:await o.AI(this._config,a),result:t}}async simulateCreateBoost(f,e){const[a,t]=this.validateDeploymentConfig(f),b=e==null?void 0:e.chainId,{chainId:d,address:c}=h.assertValidAddressByChainId(t.config,this.addresses,b),n=await this.prepareCreateBoostPayload(c,d,a,t);return await o.qI(this._config,{...this.optionallyAttachAccount(),...e,address:c,chainId:d,args:[I.prepareBoostPayload(n)]})}async createBoostWithTransparentBudget(f,e,a,t){const[b,d]=this.validateDeploymentConfig({...a,budget:this.TransparentBudget(typeof f=="string"?f:f.assertValidAddress())}),c=t==null?void 0:t.chainId,{chainId:n,address:i}=h.assertValidAddressByChainId(d.config,this.addresses,c),w=O({abi:o.f,functionName:"createBoost",address:typeof f=="string"?f:f.assertValidAddress()}),y=await this.prepareCreateBoostPayload(i,n,b,d),r=await w(d.config,{...this.optionallyAttachAccount(d.account),...t,chainId:n,args:[e.map(V.prepareTransfer),i,I.prepareBoostPayload(y)]}),l=await P.waitForTransactionReceipt(d.config,{hash:r}),g=u.parseEventLogs({abi:o.y,eventName:"BoostCreated",logs:l.logs}).at(0);let C=0n;if(!g)throw new v.BoostCoreNoIdentifierEmitted;C=g==null?void 0:g.args.boostId;const A=await this.readBoost(C);return new I.Boost({id:C,budget:b.budget.at(A.budget),action:b.action.at(A.action),validator:b.validator.at(A.validator),allowList:b.allowList.at(A.allowList),incentives:b.incentives.map((p,_)=>p.at(A.incentives.at(_))),protocolFee:A.protocolFee,maxParticipants:A.maxParticipants,owner:A.owner})}async createBoostWithTransparentBudgetRaw(f,e,a,t){const{request:b,result:d}=await this.simulateCreateBoostWithTransparentBudget(f,e,a,t);return{hash:await o.fZ(this._config,b),result:d}}async simulateCreateBoostWithTransparentBudget(f,e,a,t){const[b,d]=this.validateDeploymentConfig({...a,budget:this.TransparentBudget(typeof f=="string"?f:f.assertValidAddress())}),c=t==null?void 0:t.chainId,{chainId:n,address:i}=h.assertValidAddressByChainId(d.config,this.addresses,c),w=await this.prepareCreateBoostPayload(i,n,b,d);return await o.SZ(this._config,{...this.optionallyAttachAccount(),...t,address:typeof f=="string"?f:f.assertValidAddress(),chainId:n,args:[e.map(V.prepareTransfer),i,I.prepareBoostPayload(w)]})}async createBoostWithPermit2(f,e,a,t,b,d,c){const[n,i]=this.validateDeploymentConfig({...a,budget:this.TransparentBudget(typeof f=="string"?f:f.assertValidAddress())}),w=c==null?void 0:c.chainId,{chainId:y,address:r}=h.assertValidAddressByChainId(i.config,this.addresses,w),l=O({abi:o.f,functionName:"createBoostWithPermit2",address:typeof f=="string"?f:f.assertValidAddress()}),g=await this.prepareCreateBoostPayload(r,y,n,i),C=await l(i.config,{...this.optionallyAttachAccount(i.account),...c,chainId:y,args:[e.map(V.prepareTransfer),r,I.prepareBoostPayload(g),t,b,d]}),A=await P.waitForTransactionReceipt(i.config,{hash:C}),p=u.parseEventLogs({abi:o.y,eventName:"BoostCreated",logs:A.logs}).at(0);let _=0n;if(!p)throw new v.BoostCoreNoIdentifierEmitted;_=p==null?void 0:p.args.boostId;const B=await this.readBoost(_);return new I.Boost({id:_,budget:n.budget.at(B.budget),action:n.action.at(B.action),validator:n.validator.at(B.validator),allowList:n.allowList.at(B.allowList),incentives:n.incentives.map((J,X)=>J.at(B.incentives.at(X))),protocolFee:B.protocolFee,maxParticipants:B.maxParticipants,owner:B.owner})}async createBoostWithPermit2Raw(f,e,a,t,b,d,c){const{request:n,result:i}=await this.simulateCreateBoostWithPermit2(f,e,a,t,b,d,c);return{hash:await o.vZ(this._config,n),result:i}}async simulateCreateBoostWithPermit2(f,e,a,t,b,d,c){const[n,i]=this.validateDeploymentConfig({...a,budget:this.TransparentBudget(typeof f=="string"?f:f.assertValidAddress())}),w=c==null?void 0:c.chainId,{chainId:y,address:r}=h.assertValidAddressByChainId(i.config,this.addresses,w),l=await this.prepareCreateBoostPayload(r,y,n,i);return await o.PZ(this._config,{...this.optionallyAttachAccount(),...c,address:typeof f=="string"?f:f.assertValidAddress(),chainId:y,args:[e.map(V.prepareTransfer),r,I.prepareBoostPayload(l),t,b,d]})}async prepareCreateBoostPayload(f,e,a,t){var y;if(!a.owner&&(a.owner=((y=this._account)==null?void 0:y.address)||P.getAccount(t.config).address||u.zeroAddress,a.owner===u.zeroAddress))throw new v.DeployableUnknownOwnerProvidedError;if(!a.validator){const l=P.getChains(t.config).filter(A=>!!this.addresses[A.id]&&A.id===e).at(0);if(!l)throw new v.InvalidProtocolChainIdError(e,Object.keys(this.addresses).map(Number));const C=[l.testnet||l.id===31337?F.BoostValidatorEOA.TESTNET:F.BoostValidatorEOA.MAINNET];l.id===31337&&C.push("0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"),a.validator=this.LimitedSignerValidator({signers:C,validatorCaller:f,maxClaimCount:1})}let b=u.zeroAddress;if(a.budget.address){if(b=a.budget.address,!(a.budget instanceof R.TransparentBudget)&&!await a.budget.isAuthorized(f))throw new v.BudgetMustAuthorizeBoostCore(f)}else throw new v.MustInitializeBudgetError;let d={instance:u.zeroAddress,isBase:!0,parameters:u.zeroHash};if(a.action.address){const r=a.action.isBase;d={isBase:r,instance:a.action.address,parameters:r&&a.action.buildParameters(void 0,t).args.at(0)||u.zeroHash}}else d.parameters=a.action.buildParameters(void 0,t).args.at(0)||u.zeroHash,d.instance=h.assertValidAddressByChainId(t.config,a.action.bases,e).address;let c={instance:u.zeroAddress,isBase:!0,parameters:u.zeroHash};if(a.validator.address){const r=a.validator.isBase;c={isBase:r,instance:a.validator.address,parameters:r&&a.validator.buildParameters(void 0,t).args.at(0)||u.zeroHash}}else c.parameters=a.validator.buildParameters(void 0,t).args.at(0)||u.zeroHash,c.instance=h.assertValidAddressByChainId(t.config,a.validator.bases,e).address;let n={instance:u.zeroAddress,isBase:!0,parameters:u.zeroHash};if(a.allowList||(a.allowList=this.OpenAllowList()),a.allowList.address){const r=a.allowList.isBase;n={isBase:r,instance:a.allowList.address,parameters:u.zeroHash}}else n.parameters=a.allowList.buildParameters(void 0,t).args.at(0)||u.zeroHash,n.instance=h.assertValidAddressByChainId(t.config,a.allowList.bases,e).address;const i=a.incentives.map(()=>({instance:u.zeroAddress,isBase:!0,parameters:u.zeroHash}));for(let r=0;r<a.incentives.length;r++){const l=a.incentives.at(r);if(l.address){const g=l.isBase;if(!g)throw new v.IncentiveNotCloneableError(l);i[r]={isBase:g,instance:l.address,parameters:g&&l.buildParameters(void 0,t).args.at(0)||u.zeroHash}}else i[r].parameters=l.buildParameters(void 0,t).args.at(0)||u.zeroHash,i[r].instance=h.assertValidAddressByChainId(t.config,l.bases,e).address}return{budget:b,action:d,validator:c,allowList:n,incentives:i,protocolFee:a.protocolFee||0n,maxParticipants:a.maxParticipants||0n,owner:a.owner}}async claimIncentive(f,e,a,t,b){return await this.awaitResult(this.claimIncentiveRaw(f,e,a,t,b))}async claimIncentiveRaw(f,e,a,t,b){const{request:d,result:c}=await o.PI(this._config,{...h.assertValidAddressByChainId(this._config,this.addresses,b==null?void 0:b.chainId),args:[f,e,a,t],...this.optionallyAttachAccount(),...b});return{hash:await o.vI(this._config,d),result:c}}async claimIncentiveFor(f,e,a,t,b,d){return await this.awaitResult(this.claimIncentiveForRaw(f,e,a,t,b,d))}async claimIncentiveForRaw(f,e,a,t,b,d){const{request:c,result:n}=await o.kI(this._config,{...h.assertValidAddressByChainId(this._config,this.addresses,d==null?void 0:d.chainId),args:[f,e,a,t,b],...this.optionallyAttachAccount(),...d});return{hash:await o.TI(this._config,c),result:n}}async readBoost(f,e){var a;try{let t;return typeof f=="string"?t=BigInt(f):t=f,await o.nI(this._config,{...h.assertValidAddressByChainId(this._config,this.addresses,e==null?void 0:e.chainId),args:[t],...this.optionallyAttachAccount(),...e})}catch(t){throw(a=t==null?void 0:t.message)!=null&&a.includes("bounds")?new v.BoostNotFoundError(String(f)):t}}async getBoost(f,e){let a;typeof f=="string"?a=BigInt(f):a=f;const{protocolFee:t,maxParticipants:b,owner:d,...c}=await this.readBoost(a,e),n={config:this._config,account:this._account},[i,w,y,r,l]=await Promise.all([K.actionFromAddress(n,c.action,e),R.budgetFromAddress(n,c.budget,e),F.validatorFromAddress(n,c.validator,e),T.allowListFromAddress(n,c.allowList,e),Promise.all(c.incentives.map(g=>M.incentiveFromAddress(n,g,e)))]);return new I.Boost({id:a,action:i,budget:w,validator:y,allowList:r,incentives:l,protocolFee:t,maxParticipants:b,owner:d})}async getBoostCount(f){return await o.aI(this._config,{...h.assertValidAddressByChainId(this._config,this.addresses,f==null?void 0:f.chainId),args:[],...this.optionallyAttachAccount(),...f})}async isAuthorized(f,e){const a=await this.createBoostAuth(e);return o.$F(this._config,{address:a,args:[f],...this.optionallyAttachAccount(),...e})}async createBoostAuth(f){return await o.tI(this._config,{...h.assertValidAddressByChainId(this._config,this.addresses,f==null?void 0:f.chainId),args:[],...this.optionallyAttachAccount(),...f})}async setCreateBoostAuth(f,e){return await this.awaitResult(this.setCreateBoostAuthRaw(f.assertValidAddress(),{...e}))}async setCreateBoostAuthRaw(f,e){const{request:a,result:t}=await o.ZI(this._config,{...h.assertValidAddressByChainId(this._config,this.addresses,e==null?void 0:e.chainId),args:[f],...this.optionallyAttachAccount(),...e});return{hash:await o.MI(this._config,a),result:t}}async protocolFee(f){return await o.pI(this._config,{...h.assertValidAddressByChainId(this._config,this.addresses,f==null?void 0:f.chainId),args:[],...this.optionallyAttachAccount(),...f})}async protocolFeeReceiver(f){return await o.lI(this._config,{...h.assertValidAddressByChainId(this._config,this.addresses,f==null?void 0:f.chainId),args:[],...this.optionallyAttachAccount(),...f})}async setProcolFeeReceiver(f,e){return await this.awaitResult(this.setProcolFeeReceiverRaw(f,{...e}))}async setProcolFeeReceiverRaw(f,e){const{request:a,result:t}=await o.JI(this._config,{...h.assertValidAddressByChainId(this._config,this.addresses,e==null?void 0:e.chainId),args:[f],...this.optionallyAttachAccount(),...e});return{hash:await o.EI(this._config,a),result:t}}async getIncentiveFeesInfo(f,e,a){const t=u.keccak256(u.encodePacked(["uint256","uint256"],[f,e]));return await o.iI(this._config,{...h.assertValidAddressByChainId(this._config,this.addresses,a==null?void 0:a.chainId),args:[t],...this.optionallyAttachAccount(),...a})}async getClaimFromTransaction(f){var t;const e=await P.getTransactionReceipt(this._config,f);return(t=u.parseEventLogs({abi:o.y,eventName:"BoostClaimed",logs:e.logs}).at(0))==null?void 0:t.args}async calculateProtocolFee(f,e){const a=await this.protocolFee(e);return f*a/m}PassthroughAuth(f){return new a0.PassthroughAuth({config:this._config,account:this._account},f)}EventAction(f,e){return new Q.EventAction({config:this._config,account:this._account},f,e)}OpenAllowList(f){return new T.OpenAllowList({config:this._config,account:this._account},void 0,f)}SimpleAllowList(f,e){return new f0.SimpleAllowList({config:this._config,account:this._account},f,e)}SimpleDenyList(f,e){return new e0.SimpleDenyList({config:this._config,account:this._account},f,e)}OffchainAccessList(f,e){return new T.OffchainAccessList({config:this._config,account:this._account},f,e)}ManagedBudget(f){return typeof f!="string"&&!f.authorized.includes(this.assertValidAddress())&&(f.authorized=[this.assertValidAddress(),...f.authorized],f.roles=[L.Roles.MANAGER,...f.roles]),new V.ManagedBudget({config:this._config,account:this._account},f)}ManagedBudgetWithFees(f){return typeof f!="string"&&!f.authorized.includes(this.assertValidAddress())&&(f.authorized=[this.assertValidAddress(),...f.authorized],f.roles=[L.Roles.MANAGER,...f.roles]),new R.ManagedBudgetWithFees({config:this._config,account:this._account},f)}ManagedBudgetWithFeesV2(f){return typeof f!="string"&&!f.authorized.includes(this.assertValidAddress())&&(f.authorized=[this.assertValidAddress(),...f.authorized],f.roles=[L.Roles.MANAGER,...f.roles]),new R.ManagedBudgetWithFeesV2({config:this._config,account:this._account},f)}TransparentBudget(f){return new R.TransparentBudget({config:this._config,account:this._account},f)}AllowListIncentive(f){return new b0.AllowListIncentive({config:this._config,account:this._account},f)}CGDAIncentive(f){return new d0.CGDAIncentive({config:this._config,account:this._account},f)}ERC20Incentive(f){return new c0.ERC20Incentive({config:this._config,account:this._account},f)}ERC20PeggedIncentive(f){return new M.ERC20PeggedIncentive({config:this._config,account:this._account},f)}PointsIncentive(f){return new i0.PointsIncentive({config:this._config,account:this._account},f)}SignerValidator(f,e){return new r0.SignerValidator({config:this._config,account:this._account},f,e)}LimitedSignerValidator(f,e){return new o0.LimitedSignerValidator({config:this._config,account:this._account},f,e)}PayableLimitedSignerValidator(f,e){return new F.PayableLimitedSignerValidator({config:this._config,account:this._account},f,e??!1)}ERC20VariableCriteriaIncentiveV2(f,e){return new n0.ERC20VariableCriteriaIncentiveV2({config:this._config,account:this._account},f,e)}ERC20PeggedVariableCriteriaIncentiveV2(f,e){return new s0.ERC20PeggedVariableCriteriaIncentiveV2({config:this._config,account:this._account},f,e)}ERC20VariableIncentive(f,e){return new u0.ERC20VariableIncentive({config:this._config,account:this._account},f,e)}buildParameters(f,e){const[a,t]=this.validateDeploymentConfig(f,e);return{abi:o.y,bytecode:$,args:[],...this.optionallyAttachAccount(t.account)}}async deploy(f,e,a){var b;const t=f||this._payload;if(t&&typeof t=="object"&&"registryAddress"in t){const d=t,c=e||{config:this._config,account:this._account},n=await h.getDeployedContractAddress(c.config,P.deployContract(c.config,{abi:o.y,bytecode:$,args:[],...this.optionallyAttachAccount(c.account)}),a),i=u.encodeFunctionData({abi:o.y,functionName:"initialize",args:[d.registryAddress,d.protocolFeeReceiver,d.owner]}),w=[{type:"constructor",inputs:[{name:"implementation",type:"address",internalType:"address"},{name:"_data",type:"bytes",internalType:"bytes"}],stateMutability:"payable"}],r=await h.getDeployedContractAddress(c.config,P.deployContract(c.config,{abi:w,bytecode:u.encodeDeployData({abi:w,bytecode:"0x60806040526040516103dc3803806103dc8339810160408190526100229161023b565b61002c8282610033565b5050610320565b61003c82610091565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561008557610080828261010c565b505050565b61008d61017f565b5050565b806001600160a01b03163b5f036100cb57604051634c9c8ce360e01b81526001600160a01b03821660048201526024015b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b031684604051610128919061030a565b5f60405180830381855af49150503d805f8114610160576040519150601f19603f3d011682016040523d82523d5f602084013e610165565b606091505b5090925090506101768583836101a0565b95945050505050565b341561019e5760405163b398979f60e01b815260040160405180910390fd5b565b6060826101b5576101b0826101ff565b6101f8565b81511580156101cc57506001600160a01b0384163b155b156101f557604051639996b31560e01b81526001600160a01b03851660048201526024016100c2565b50805b9392505050565b80511561020e57805160208201fd5b60405163d6bda27560e01b815260040160405180910390fd5b634e487b7160e01b5f52604160045260245ffd5b5f806040838503121561024c575f80fd5b82516001600160a01b0381168114610262575f80fd5b60208401519092506001600160401b0381111561027d575f80fd5b8301601f8101851361028d575f80fd5b80516001600160401b038111156102a6576102a6610227565b604051601f8201601f19908116603f011681016001600160401b03811182821017156102d4576102d4610227565b6040528181528282016020018710156102eb575f80fd5b8160208401602083015e5f602083830101528093505050509250929050565b5f82518060208501845e5f920191825250919050565b60b08061032c5f395ff3fe6080604052600a600c565b005b60186014601a565b605d565b565b5f60587f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b365f80375f80365f845af43d5f803e8080156076573d5ff35b3d5ffdfea2646970667358221220f563f31c0aa14bad619f09897012e95da451776c4af1ecde8d7624c84200077664736f6c634300081a0033",args:[n,i]}),args:[n,i],...this.optionallyAttachAccount(c.account)}),a);this._address=r;const l=(b=c.config.getClient().chain)==null?void 0:b.id;l?this.constructor.addresses[l]=r:console.log("WARNING: No chain ID found, cannot update addresses object")}else await super.deploy(f,e,a);return this}async topupIncentiveFromBudgetPreFee(f,e,a,t,b){const d=await this.getBoost(f,b);if(e>=d.incentives.length)throw new Error(`Incentive ID ${e} out of range`);const c=d.incentives[Number(e)];if(!c)throw new Error(`Incentive with ID ${e} not found`);const n=await c.getTopupPayload(a);if(!(a>0))throw new Error("Top-up amount must be greater than zero");return await this.topupIncentiveFromBudgetRaw(f,e,n,t,b)}async topupIncentiveFromBudgetPostFee(f,e,a,t,b){const d=await this.protocolFee(b),c=a*m/(m+d);return this.topupIncentiveFromBudgetPreFee(f,e,c,t,b)}async topupIncentiveFromSenderPreFee(f,e,a,t){const b=await this.getBoost(f,t);if(e>=b.incentives.length)throw new Error(`Incentive ID ${e} out of range`);const d=b.incentives[Number(e)];if(!d)throw new Error(`Incentive with ID ${e} not found`);if(!(a>0))throw new Error("Top-up amount must be greater than zero");const c=await d.getTopupPayload(a);return await this.topupIncentiveFromSenderRaw(f,e,c,t)}async topupIncentiveFromSenderPostFee(f,e,a,t){const b=await this.protocolFee(t),d=a*m/(m+b);return this.topupIncentiveFromSenderPreFee(f,e,d,t)}async topupIncentiveFromSenderRaw(f,e,a,t){const{request:b,result:d}=await o.YI(this._config,{...this.optionallyAttachAccount(),...t,address:this.assertValidAddress(),args:[f,e,a]});return{hash:await o.BI(this._config,b),result:d}}async topupIncentiveFromBudgetRaw(f,e,a,t,b){const{request:d,result:c}=await o.XI(this._config,{...this.optionallyAttachAccount(),...b,address:this.assertValidAddress(),args:[f,e,a,t??u.zeroAddress]});return{hash:await o.zI(this._config,d),result:c}}};z.addresses=S;let N=z;exports.boostCoreAbi=o.y;exports.BOOST_CORE_ADDRESS=v0;exports.BOOST_CORE_ADDRESSES=S;exports.BoostCore=N;exports.FEE_DENOMINATOR=m;
|
|
3
3
|
//# sourceMappingURL=BoostCore.cjs.map
|