@boostxyz/sdk 8.0.0-canary.1 → 8.0.0-canary.2
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 +19 -0
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +209 -204
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/{AllowList-NPDlllP6.js → AllowList-DQf-8HQC.js} +30 -30
- package/dist/{AllowList-NPDlllP6.js.map → AllowList-DQf-8HQC.js.map} +1 -1
- package/dist/{AllowList-BacG3oLt.cjs → AllowList-DaX239DR.cjs} +2 -2
- package/dist/{AllowList-BacG3oLt.cjs.map → AllowList-DaX239DR.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 +3 -3
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.js +2 -2
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +2 -2
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +35 -0
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +75 -75
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +12 -12
- package/dist/{Budget-Dq0K1LVM.js → Budget-LnAQ_Slw.js} +40 -40
- package/dist/{Budget-Dq0K1LVM.js.map → Budget-LnAQ_Slw.js.map} +1 -1
- package/dist/{Budget-Gk2p5v0g.cjs → Budget-WIB8IJoM.cjs} +2 -2
- package/dist/{Budget-Gk2p5v0g.cjs.map → Budget-WIB8IJoM.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 +25 -25
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.js +3 -3
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.js +21 -21
- package/dist/{Incentive-DupDIsTS.js → Incentive-D_IBex5V.js} +22 -22
- package/dist/{Incentive-DupDIsTS.js.map → Incentive-D_IBex5V.js.map} +1 -1
- package/dist/{Incentive-YiX6zKm1.cjs → Incentive-gT7z-4v3.cjs} +2 -2
- package/dist/{Incentive-YiX6zKm1.cjs.map → Incentive-gT7z-4v3.cjs.map} +1 -1
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.js +12 -12
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.js +43 -43
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.js +15 -15
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js +35 -35
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.d.ts.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js +146 -161
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js +6 -6
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js +103 -118
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableIncentive.js +8 -8
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.js +2 -2
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.js +15 -15
- package/dist/{SimpleDenyList-DyKqIWYL.js → SimpleDenyList-CtdXM49y.js} +6 -6
- package/dist/{SimpleDenyList-DyKqIWYL.js.map → SimpleDenyList-CtdXM49y.js.map} +1 -1
- package/dist/{SimpleDenyList-DMdld3JN.cjs → SimpleDenyList-D5AoBdVi.cjs} +2 -2
- package/dist/{SimpleDenyList-DMdld3JN.cjs.map → SimpleDenyList-D5AoBdVi.cjs.map} +1 -1
- package/dist/{Validator-vn0kQ3Wu.js → Validator-BEUqV28V.js} +27 -27
- package/dist/{Validator-vn0kQ3Wu.js.map → Validator-BEUqV28V.js.map} +1 -1
- package/dist/{Validator-BwPDBcxh.cjs → Validator-FxcxYKhR.cjs} +2 -2
- package/dist/{Validator-BwPDBcxh.cjs.map → Validator-FxcxYKhR.cjs.map} +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs +1 -1
- package/dist/Validators/LimitedSignerValidator.js +3 -3
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.js +7 -7
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.js +2 -2
- package/dist/generated-Cf82M-QP.cjs +3 -0
- package/dist/generated-Cf82M-QP.cjs.map +1 -0
- package/dist/{generated-D6oDILUw.js → generated-krkFnwbV.js} +290 -247
- package/dist/generated-krkFnwbV.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +165 -164
- package/package.json +1 -1
- package/src/Actions/EventAction.test.ts +100 -71
- package/src/Actions/EventAction.ts +57 -30
- package/src/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.ts +13 -41
- package/src/Incentives/ERC20VariableCriteriaIncentiveV2.ts +13 -41
- package/dist/generated-BzLYuFx3.cjs +0 -3
- package/dist/generated-BzLYuFx3.cjs.map +0 -1
- package/dist/generated-D6oDILUw.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getTransactionReceipt as
|
|
3
|
-
import { parseEventLogs as K, decodeFunctionData as
|
|
4
|
-
import { f as
|
|
5
|
-
import { SignatureType as
|
|
1
|
+
import { m as w, bC as _, bD as D, bE as v, bF as x, bG as N, bH as P, bI as S, bJ as F, bK as G, bL as O, bM as $, bN as L, bO as M, bP as U, bQ as k, bR as q, bS as z } from "../generated-krkFnwbV.js";
|
|
2
|
+
import { getTransactionReceipt as A, getTransaction as H } from "@wagmi/core";
|
|
3
|
+
import { parseEventLogs as K, decodeFunctionData as J, zeroAddress as i, zeroHash as Q, encodeAbiParameters as p, decodeAbiParameters as o, parseEther as E } from "viem";
|
|
4
|
+
import { f as W } from "../deployments-Dw5Suk_D.js";
|
|
5
|
+
import { SignatureType as C, decodeAndReorderLogArgs as X, getScalarValue as u } from "../Actions/EventAction.js";
|
|
6
6
|
import { DeployableTarget as Y } from "../Deployable/DeployableTarget.js";
|
|
7
|
-
import { prepareClaimPayload as
|
|
8
|
-
import { DecodedArgsError as
|
|
9
|
-
import { RegistryType as
|
|
10
|
-
const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b6122df806100895f395ff3fe6080604052600436106102ab575f3560e01c8063715018a611610165578063c884ef83116100c6578063ec87621c1161007c578063f2fde38b11610062578063f2fde38b146107b3578063fe9fbb80146107c6578063fee81cf4146107e5575f80fd5b8063ec87621c1461078c578063f04e283e146107a0575f80fd5b8063db09da12116100ac578063db09da1214610739578063dcc2136114610758578063dcc59b6f14610777575f80fd5b8063c884ef83146106f6578063d54ad2a114610724575f80fd5b8063a4d66daf1161011b578063bb1757cf11610101578063bb1757cf146106a4578063be4994f8146106c3578063c213f3f9146106e2575f80fd5b8063a4d66daf1461066e578063a871ced214610683575f80fd5b8063775486871161014b57806377548687146105b45780638da5cb5b1461062c5780639214fa4d14610644575f80fd5b8063715018a61461059857806375b238fc146105a0575f80fd5b806330db555f1161020f5780634a4ee7b1116101c5578063514e62fc116101ab578063514e62fc14610546578063547d18641461057b57806354d1f13d14610590575f80fd5b80634a4ee7b1146105075780634e7165a21461051a575f80fd5b80634359d28a116101f55780634359d28a14610480578063439fab911461049f578063474f5a44146104be575f80fd5b806330db555f1461043557806338d52e0f14610454575f80fd5b80631f1cb62b11610264578063256929621161024a57806325692962146103c257806328d6183b146103ca5780632de9480714610404575f80fd5b80631f1cb62b1461035d578063228cb733146103ae575f80fd5b8063183a4f6e11610294578063183a4f6e146103005780631c10893f146103155780631cd64df414610328575f80fd5b806301ffc9a7146102af57806307621eca146102e3575b5f80fd5b3480156102ba575f80fd5b506102ce6102c93660046119e1565b610816565b60405190151581526020015b60405180910390f35b3480156102ee575f80fd5b505f545b6040519081526020016102da565b61031361030e366004611a27565b610871565b005b610313610323366004611a66565b61087e565b348015610333575f80fd5b506102ce610342366004611a66565b638b78c6d8600c9081525f9290925260209091205481161490565b348015610368575f80fd5b50600a546103899073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102da565b3480156103b9575f80fd5b506102f25f5481565b610313610894565b3480156103d5575f80fd5b506040517ff60c99c90000000000000000000000000000000000000000000000000000000081526020016102da565b34801561040f575f80fd5b506102f261041e366004611a8e565b638b78c6d8600c9081525f91909152602090205490565b348015610440575f80fd5b5061031361044f366004611a27565b6108e1565b34801561045f575f80fd5b506006546103899073ffffffffffffffffffffffffffffffffffffffff1681565b34801561048b575f80fd5b5061031361049a366004611aef565b61099d565b3480156104aa575f80fd5b506103136104b9366004611b99565b610a97565b3480156104c9575f80fd5b506104dd6104d8366004611b99565b610e2f565b6040805192835273ffffffffffffffffffffffffffffffffffffffff9091166020830152016102da565b610313610515366004611a66565b610f91565b348015610525575f80fd5b50610539610534366004611b99565b610fa3565b6040516102da9190611c24565b348015610551575f80fd5b506102ce610560366004611a66565b638b78c6d8600c9081525f9290925260209091205416151590565b348015610586575f80fd5b506102f260025481565b61031361103d565b610313611076565b3480156105ab575f80fd5b506102f2600281565b3480156105bf575f80fd5b5060035460045460055461061b9260ff908116929163ffffffff81169173ffffffffffffffffffffffffffffffffffffffff64010000000083041691780100000000000000000000000000000000000000000000000090041685565b6040516102da959493929190611c73565b348015610637575f80fd5b50638b78c6d81954610389565b34801561064f575f80fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff16610389565b348015610679575f80fd5b506102f260085481565b34801561068e575f80fd5b50610697611089565b6040516102da9190611d2c565b3480156106af575f80fd5b506102ce6106be366004611d3a565b611178565b3480156106ce575f80fd5b506103136106dd366004611aef565b6113a5565b3480156106ed575f80fd5b50600b546102f2565b348015610701575f80fd5b506102ce610710366004611a8e565b60016020525f908152604090205460ff1681565b34801561072f575f80fd5b506102f260095481565b348015610744575f80fd5b506102ce610753366004611d3a565b611443565b348015610763575f80fd5b50610313610772366004611aef565b6114b6565b348015610782575f80fd5b506102f260075481565b348015610797575f80fd5b506102f2600181565b6103136107ae366004611a8e565b611554565b6103136107c1366004611a8e565b61158e565b3480156107d1575f80fd5b506102ce6107e0366004611a8e565b6115b4565b3480156107f0575f80fd5b506102f26107ff366004611a8e565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167ff60c99c900000000000000000000000000000000000000000000000000000000148061086b575061086b82611613565b92915050565b61087b3382611668565b50565b610886611673565b610890828261168d565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b60016108ec81611699565b815f03610925576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065461094a9073ffffffffffffffffffffffffffffffffffffffff163330856116ca565b8160085f82825461095b9190611db6565b909155505060408051338152602081018490527fa64c2da41decbd538f8629e54c8fa0b7362c9102b691386a0fb6a1797454e9c6910160405180910390a15050565b60026109a881611699565b8382146109e1576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a8f575f8484838181106109fe576109fe611dc9565b9050602002016020810190610a139190611df6565b9050801515600103610a5557610a50878784818110610a3457610a34611dc9565b9050602002016020810190610a499190611a8e565b600161168d565b610a86565b610a86878784818110610a6a57610a6a611dc9565b9050602002016020810190610a7f9190611a8e565b6001611668565b506001016109e3565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011328054600382558015610ae85760018160011c14303b10610adf5763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f610af683850185611ebd565b905080606001515f03610b35576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606081015181515f90610b5e9073ffffffffffffffffffffffffffffffffffffffff163061172c565b905081811015610bc75782516040517f5c54305e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602481018290526044810183905260640160405180910390fd5b60c083015183516006805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091556020860151600a805491909316911617905560408401515f55606084015160085560a0840151600b5580516003805483929082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018381811115610c7b57610c7b611c36565b021790555060208201516001808301919091556040830151600283018054606086015173ffffffffffffffffffffffffffffffffffffffff16640100000000027fffffffffffffffff00000000000000000000000000000000000000000000000090911663ffffffff90931692909217919091178082556080850151927fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff909116907801000000000000000000000000000000000000000000000000908490811115610d4957610d49611c36565b0217905550905050610d5a3361175f565b610d69846080015160016117a7565b836020015173ffffffffffffffffffffffffffffffffffffffff16845f015173ffffffffffffffffffffffffffffffffffffffff167f68c413c27d17fa0454f7f4da49ac4979f28e363c5fa9c158ae0dfdc9c3317e078660400151876060015188608001518960a001518a60c00151604051610de9959493929190611fc6565b60405180910390a3505050508015610e2a576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f806001610e3c81611699565b5f610e49858701876120b8565b90505f8160200151806020019051810190610e649190612135565b90508060085f828254610e77919061214c565b90915550508151600654610ea49173ffffffffffffffffffffffffffffffffffffffff90911690836117e8565b81516006546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529183901b90911660348201526048810183905273ffffffffffffffffffffffffffffffffffffffff909116907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610f6291611c24565b60405180910390a260065490945073ffffffffffffffffffffffffffffffffffffffff16925050509250929050565b610f99611673565b6108908282611668565b60605f610fb283850185611ebd565b6060818101516040805160808101825260018152845173ffffffffffffffffffffffffffffffffffffffff16602080830191909152308284015282518082018452849052825180820185905283518082038301815290840184529482019490945290519394509092611024920161215f565b6040516020818303038152906040529250505092915050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b61107e611673565b6110875f61183b565b565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a0810190915260038054829060ff1660018111156110d8576110d8611c36565b60018111156110e9576110e9611c36565b81526001828101546020830152600283015463ffffffff81166040840152640100000000810473ffffffffffffffffffffffffffffffffffffffff1660608401526080909201917801000000000000000000000000000000000000000000000000900460ff169081111561115f5761115f611c36565b600181111561117057611170611c36565b905250919050565b5f611181611673565b5f61118e838501856121dd565b90505f81602001518060200190518101906111a99190612135565b90505f80545f036111bb5750806111de565b670de0b6b3a7640000825f546111d1919061225a565b6111db9190612271565b90505b600b54158015906111f05750600b5481115b156111fa5750600b545b61120381611885565b611239576040517f6247a84e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008548160095461124a9190611db6565b1115611282576040517f360e42e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060095f8282546112939190611db6565b92505081905550600160075f8282546112ac9190611db6565b90915550506006546112d59073ffffffffffffffffffffffffffffffffffffffff1688836117e8565b6006546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529189901b90911660348201526048810182905273ffffffffffffffffffffffffffffffffffffffff8816907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261139091611c24565b60405180910390a25060019695505050505050565b60026113b081611699565b8382146113e9576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a8f5761143b86868381811061140857611408611dc9565b905060200201602081019061141d9190611a8e565b85858481811061142f5761142f611dc9565b9050602002013561168d565b6001016113eb565b5f8080611452848601866121dd565b90505f816020015180602001905181019061146d9190612135565b90505f545f0361147f578092506114a2565b670de0b6b3a7640000815f54611495919061225a565b61149f9190612271565b92505b6114ab83611885565b979650505050505050565b60026114c181611699565b8382146114fa576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a8f5761154c86868381811061151957611519611dc9565b905060200201602081019061152e9190611a8e565b85858481811061154057611540611dc9565b90506020020135611668565b6001016114fc565b61155c611673565b63389a75e1600c52805f526020600c20805442111561158257636f5e88185f526004601cfd5b5f905561087b8161183b565b611596611673565b8060601b6115ab57637448fbae5f526004601cfd5b61087b8161183b565b5f8173ffffffffffffffffffffffffffffffffffffffff166115d9638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff16148061086b5750638b78c6d8600c9081525f8390526020902054600316151561086b565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f5658633800000000000000000000000000000000000000000000000000000000148061086b575061086b8261189f565b61089082825f6118f4565b638b78c6d819543314611087576382b429005f526004601cfd5b610890828260016118f4565b638b78c6d81954331461087b57638b78c6d8600c52335f52806020600c20541661087b576382b429005f526004601cfd5b60405181606052826040528360601b602c526f23b872dd000000000000000000000000600c5260205f6064601c5f895af18060015f51141661171e57803d873b15171061171e57637939f4245f526004601cfd5b505f60605260405250505050565b5f816014526f70a082310000000000000000000000005f5260208060246010865afa601f3d111660205102905092915050565b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d8600c52815f52806020600c205580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a35050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661183157803d853b151710611831576390b8ec185f526004601cfd5b505f603452505050565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f600854826009546118979190611db6565b111592915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fa921670500000000000000000000000000000000000000000000000000000000148061086b575061086b8261194b565b638b78c6d8600c52825f526020600c20805483811783611915575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d00000000000000000000000000000000000000000000000000000000148061086b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461086b565b5f602082840312156119f1575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611a20575f80fd5b9392505050565b5f60208284031215611a37575f80fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a61575f80fd5b919050565b5f8060408385031215611a77575f80fd5b611a8083611a3e565b946020939093013593505050565b5f60208284031215611a9e575f80fd5b611a2082611a3e565b5f8083601f840112611ab7575f80fd5b50813567ffffffffffffffff811115611ace575f80fd5b6020830191508360208260051b8501011115611ae8575f80fd5b9250929050565b5f805f8060408587031215611b02575f80fd5b843567ffffffffffffffff811115611b18575f80fd5b611b2487828801611aa7565b909550935050602085013567ffffffffffffffff811115611b43575f80fd5b611b4f87828801611aa7565b95989497509550505050565b5f8083601f840112611b6b575f80fd5b50813567ffffffffffffffff811115611b82575f80fd5b602083019150836020828501011115611ae8575f80fd5b5f8060208385031215611baa575f80fd5b823567ffffffffffffffff811115611bc0575f80fd5b611bcc85828601611b5b565b90969095509350505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f611a206020830184611bd8565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6002811061087b5761087b611c36565b60a08101611c8087611c63565b86825285602083015263ffffffff8516604083015273ffffffffffffffffffffffffffffffffffffffff84166060830152611cba83611c63565b8260808301529695505050505050565b8051611cd581611c63565b808352506020810151602083015263ffffffff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff60608201511660608301526080810151611d2181611c63565b806080840152505050565b60a0810161086b8284611cca565b5f805f60408486031215611d4c575f80fd5b611d5584611a3e565b9250602084013567ffffffffffffffff811115611d70575f80fd5b611d7c86828701611b5b565b9497909650939450505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8082018082111561086b5761086b611d89565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215611e06575f80fd5b81358015158114611a20575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160e0810167ffffffffffffffff81118282101715611e6557611e65611e15565b60405290565b60405160a0810167ffffffffffffffff81118282101715611e6557611e65611e15565b6040805190810167ffffffffffffffff81118282101715611e6557611e65611e15565b6002811061087b575f80fd5b5f81830361016081128015611ed0575f80fd5b50611ed9611e42565b611ee284611a3e565b8152611ef060208501611a3e565b60208201526040848101359082015260608085013590820152611f1560808501611a3e565b608082015260a084810135818301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4083011215611f51575f80fd5b611f59611e6b565b915060c0840135611f6981611eb1565b825260e0840135602083015261010084013563ffffffff81168114611f8c575f80fd5b6040830152611f9e6101208501611a3e565b6060830152610140840135611fb281611eb1565b608083015260c08101919091529392505050565b8581526020810185905273ffffffffffffffffffffffffffffffffffffffff841660408201526060810183905261012081016120056080830184611cca565b9695505050505050565b5f82601f83011261201e575f80fd5b813567ffffffffffffffff81111561203857612038611e15565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff8111828210171561208557612085611e15565b60405281815283820160200185101561209c575f80fd5b816020850160208301375f918101602001919091529392505050565b5f602082840312156120c8575f80fd5b813567ffffffffffffffff8111156120de575f80fd5b8201604081850312156120ef575f80fd5b6120f7611e8e565b61210082611a3e565b8152602082013567ffffffffffffffff81111561211b575f80fd5b6121278682850161200f565b602083015250949350505050565b5f60208284031215612145575f80fd5b5051919050565b8181038181111561086b5761086b611d89565b602081525f82516003811061217657612176611c36565b8060208401525073ffffffffffffffffffffffffffffffffffffffff602084015116604083015273ffffffffffffffffffffffffffffffffffffffff604084015116606083015260608301516080808401526121d560a0840182611bd8565b949350505050565b5f602082840312156121ed575f80fd5b813567ffffffffffffffff811115612203575f80fd5b820160408185031215612214575f80fd5b61221c611e8e565b813567ffffffffffffffff811115612232575f80fd5b61223e8682850161200f565b825250602082013567ffffffffffffffff81111561211b575f80fd5b808202811582820484141761086b5761086b611d89565b5f826122a4577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b50049056fea2646970667358221220eddd99b4115a50f989fc036f59be415827f402b0d83b3e46667fbcfcb69547d164736f6c634300081a0033", y = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" }, u = class u extends Y {
|
|
7
|
+
import { prepareClaimPayload as T } from "../claiming.js";
|
|
8
|
+
import { DecodedArgsError as m, NoMatchingLogsError as R, InvalidCriteriaTypeError as j, IncentiveCriteriaNotFoundError as Z } from "../errors.js";
|
|
9
|
+
import { RegistryType as f0, CheatCodes as a0 } from "../utils.js";
|
|
10
|
+
const e0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b6122df806100895f395ff3fe6080604052600436106102ab575f3560e01c8063715018a611610165578063c884ef83116100c6578063ec87621c1161007c578063f2fde38b11610062578063f2fde38b146107b3578063fe9fbb80146107c6578063fee81cf4146107e5575f80fd5b8063ec87621c1461078c578063f04e283e146107a0575f80fd5b8063db09da12116100ac578063db09da1214610739578063dcc2136114610758578063dcc59b6f14610777575f80fd5b8063c884ef83146106f6578063d54ad2a114610724575f80fd5b8063a4d66daf1161011b578063bb1757cf11610101578063bb1757cf146106a4578063be4994f8146106c3578063c213f3f9146106e2575f80fd5b8063a4d66daf1461066e578063a871ced214610683575f80fd5b8063775486871161014b57806377548687146105b45780638da5cb5b1461062c5780639214fa4d14610644575f80fd5b8063715018a61461059857806375b238fc146105a0575f80fd5b806330db555f1161020f5780634a4ee7b1116101c5578063514e62fc116101ab578063514e62fc14610546578063547d18641461057b57806354d1f13d14610590575f80fd5b80634a4ee7b1146105075780634e7165a21461051a575f80fd5b80634359d28a116101f55780634359d28a14610480578063439fab911461049f578063474f5a44146104be575f80fd5b806330db555f1461043557806338d52e0f14610454575f80fd5b80631f1cb62b11610264578063256929621161024a57806325692962146103c257806328d6183b146103ca5780632de9480714610404575f80fd5b80631f1cb62b1461035d578063228cb733146103ae575f80fd5b8063183a4f6e11610294578063183a4f6e146103005780631c10893f146103155780631cd64df414610328575f80fd5b806301ffc9a7146102af57806307621eca146102e3575b5f80fd5b3480156102ba575f80fd5b506102ce6102c93660046119e1565b610816565b60405190151581526020015b60405180910390f35b3480156102ee575f80fd5b505f545b6040519081526020016102da565b61031361030e366004611a27565b610871565b005b610313610323366004611a66565b61087e565b348015610333575f80fd5b506102ce610342366004611a66565b638b78c6d8600c9081525f9290925260209091205481161490565b348015610368575f80fd5b50600a546103899073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102da565b3480156103b9575f80fd5b506102f25f5481565b610313610894565b3480156103d5575f80fd5b506040517ff60c99c90000000000000000000000000000000000000000000000000000000081526020016102da565b34801561040f575f80fd5b506102f261041e366004611a8e565b638b78c6d8600c9081525f91909152602090205490565b348015610440575f80fd5b5061031361044f366004611a27565b6108e1565b34801561045f575f80fd5b506006546103899073ffffffffffffffffffffffffffffffffffffffff1681565b34801561048b575f80fd5b5061031361049a366004611aef565b61099d565b3480156104aa575f80fd5b506103136104b9366004611b99565b610a97565b3480156104c9575f80fd5b506104dd6104d8366004611b99565b610e2f565b6040805192835273ffffffffffffffffffffffffffffffffffffffff9091166020830152016102da565b610313610515366004611a66565b610f91565b348015610525575f80fd5b50610539610534366004611b99565b610fa3565b6040516102da9190611c24565b348015610551575f80fd5b506102ce610560366004611a66565b638b78c6d8600c9081525f9290925260209091205416151590565b348015610586575f80fd5b506102f260025481565b61031361103d565b610313611076565b3480156105ab575f80fd5b506102f2600281565b3480156105bf575f80fd5b5060035460045460055461061b9260ff908116929163ffffffff81169173ffffffffffffffffffffffffffffffffffffffff64010000000083041691780100000000000000000000000000000000000000000000000090041685565b6040516102da959493929190611c73565b348015610637575f80fd5b50638b78c6d81954610389565b34801561064f575f80fd5b50600a5473ffffffffffffffffffffffffffffffffffffffff16610389565b348015610679575f80fd5b506102f260085481565b34801561068e575f80fd5b50610697611089565b6040516102da9190611d2c565b3480156106af575f80fd5b506102ce6106be366004611d3a565b611178565b3480156106ce575f80fd5b506103136106dd366004611aef565b6113a5565b3480156106ed575f80fd5b50600b546102f2565b348015610701575f80fd5b506102ce610710366004611a8e565b60016020525f908152604090205460ff1681565b34801561072f575f80fd5b506102f260095481565b348015610744575f80fd5b506102ce610753366004611d3a565b611443565b348015610763575f80fd5b50610313610772366004611aef565b6114b6565b348015610782575f80fd5b506102f260075481565b348015610797575f80fd5b506102f2600181565b6103136107ae366004611a8e565b611554565b6103136107c1366004611a8e565b61158e565b3480156107d1575f80fd5b506102ce6107e0366004611a8e565b6115b4565b3480156107f0575f80fd5b506102f26107ff366004611a8e565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167ff60c99c900000000000000000000000000000000000000000000000000000000148061086b575061086b82611613565b92915050565b61087b3382611668565b50565b610886611673565b610890828261168d565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b60016108ec81611699565b815f03610925576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60065461094a9073ffffffffffffffffffffffffffffffffffffffff163330856116ca565b8160085f82825461095b9190611db6565b909155505060408051338152602081018490527fa64c2da41decbd538f8629e54c8fa0b7362c9102b691386a0fb6a1797454e9c6910160405180910390a15050565b60026109a881611699565b8382146109e1576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a8f575f8484838181106109fe576109fe611dc9565b9050602002016020810190610a139190611df6565b9050801515600103610a5557610a50878784818110610a3457610a34611dc9565b9050602002016020810190610a499190611a8e565b600161168d565b610a86565b610a86878784818110610a6a57610a6a611dc9565b9050602002016020810190610a7f9190611a8e565b6001611668565b506001016109e3565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011328054600382558015610ae85760018160011c14303b10610adf5763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f610af683850185611ebd565b905080606001515f03610b35576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b606081015181515f90610b5e9073ffffffffffffffffffffffffffffffffffffffff163061172c565b905081811015610bc75782516040517f5c54305e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602481018290526044810183905260640160405180910390fd5b60c083015183516006805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff0000000000000000000000000000000000000000918216179091556020860151600a805491909316911617905560408401515f55606084015160085560a0840151600b5580516003805483929082907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660018381811115610c7b57610c7b611c36565b021790555060208201516001808301919091556040830151600283018054606086015173ffffffffffffffffffffffffffffffffffffffff16640100000000027fffffffffffffffff00000000000000000000000000000000000000000000000090911663ffffffff90931692909217919091178082556080850151927fffffffffffffff00ffffffffffffffffffffffffffffffffffffffffffffffff909116907801000000000000000000000000000000000000000000000000908490811115610d4957610d49611c36565b0217905550905050610d5a3361175f565b610d69846080015160016117a7565b836020015173ffffffffffffffffffffffffffffffffffffffff16845f015173ffffffffffffffffffffffffffffffffffffffff167f68c413c27d17fa0454f7f4da49ac4979f28e363c5fa9c158ae0dfdc9c3317e078660400151876060015188608001518960a001518a60c00151604051610de9959493929190611fc6565b60405180910390a3505050508015610e2a576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f806001610e3c81611699565b5f610e49858701876120b8565b90505f8160200151806020019051810190610e649190612135565b90508060085f828254610e77919061214c565b90915550508151600654610ea49173ffffffffffffffffffffffffffffffffffffffff90911690836117e8565b81516006546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529183901b90911660348201526048810183905273ffffffffffffffffffffffffffffffffffffffff909116907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052610f6291611c24565b60405180910390a260065490945073ffffffffffffffffffffffffffffffffffffffff16925050509250929050565b610f99611673565b6108908282611668565b60605f610fb283850185611ebd565b6060818101516040805160808101825260018152845173ffffffffffffffffffffffffffffffffffffffff16602080830191909152308284015282518082018452849052825180820185905283518082038301815290840184529482019490945290519394509092611024920161215f565b6040516020818303038152906040529250505092915050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b61107e611673565b6110875f61183b565b565b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a0810190915260038054829060ff1660018111156110d8576110d8611c36565b60018111156110e9576110e9611c36565b81526001828101546020830152600283015463ffffffff81166040840152640100000000810473ffffffffffffffffffffffffffffffffffffffff1660608401526080909201917801000000000000000000000000000000000000000000000000900460ff169081111561115f5761115f611c36565b600181111561117057611170611c36565b905250919050565b5f611181611673565b5f61118e838501856121dd565b90505f81602001518060200190518101906111a99190612135565b90505f80545f036111bb5750806111de565b670de0b6b3a7640000825f546111d1919061225a565b6111db9190612271565b90505b600b54158015906111f05750600b5481115b156111fa5750600b545b61120381611885565b611239576040517f6247a84e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6008548160095461124a9190611db6565b1115611282576040517f360e42e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060095f8282546112939190611db6565b92505081905550600160075f8282546112ac9190611db6565b90915550506006546112d59073ffffffffffffffffffffffffffffffffffffffff1688836117e8565b6006546040517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606092831b811660208301529189901b90911660348201526048810182905273ffffffffffffffffffffffffffffffffffffffff8816907f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d390606801604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905261139091611c24565b60405180910390a25060019695505050505050565b60026113b081611699565b8382146113e9576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a8f5761143b86868381811061140857611408611dc9565b905060200201602081019061141d9190611a8e565b85858481811061142f5761142f611dc9565b9050602002013561168d565b6001016113eb565b5f8080611452848601866121dd565b90505f816020015180602001905181019061146d9190612135565b90505f545f0361147f578092506114a2565b670de0b6b3a7640000815f54611495919061225a565b61149f9190612271565b92505b6114ab83611885565b979650505050505050565b60026114c181611699565b8382146114fa576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b84811015610a8f5761154c86868381811061151957611519611dc9565b905060200201602081019061152e9190611a8e565b85858481811061154057611540611dc9565b90506020020135611668565b6001016114fc565b61155c611673565b63389a75e1600c52805f526020600c20805442111561158257636f5e88185f526004601cfd5b5f905561087b8161183b565b611596611673565b8060601b6115ab57637448fbae5f526004601cfd5b61087b8161183b565b5f8173ffffffffffffffffffffffffffffffffffffffff166115d9638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff16148061086b5750638b78c6d8600c9081525f8390526020902054600316151561086b565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f5658633800000000000000000000000000000000000000000000000000000000148061086b575061086b8261189f565b61089082825f6118f4565b638b78c6d819543314611087576382b429005f526004601cfd5b610890828260016118f4565b638b78c6d81954331461087b57638b78c6d8600c52335f52806020600c20541661087b576382b429005f526004601cfd5b60405181606052826040528360601b602c526f23b872dd000000000000000000000000600c5260205f6064601c5f895af18060015f51141661171e57803d873b15171061171e57637939f4245f526004601cfd5b505f60605260405250505050565b5f816014526f70a082310000000000000000000000005f5260208060246010865afa601f3d111660205102905092915050565b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d8600c52815f52806020600c205580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a35050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af18060015f51141661183157803d853b151710611831576390b8ec185f526004601cfd5b505f603452505050565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f600854826009546118979190611db6565b111592915050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fa921670500000000000000000000000000000000000000000000000000000000148061086b575061086b8261194b565b638b78c6d8600c52825f526020600c20805483811783611915575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d00000000000000000000000000000000000000000000000000000000148061086b57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff0000000000000000000000000000000000000000000000000000000083161461086b565b5f602082840312156119f1575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611a20575f80fd5b9392505050565b5f60208284031215611a37575f80fd5b5035919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611a61575f80fd5b919050565b5f8060408385031215611a77575f80fd5b611a8083611a3e565b946020939093013593505050565b5f60208284031215611a9e575f80fd5b611a2082611a3e565b5f8083601f840112611ab7575f80fd5b50813567ffffffffffffffff811115611ace575f80fd5b6020830191508360208260051b8501011115611ae8575f80fd5b9250929050565b5f805f8060408587031215611b02575f80fd5b843567ffffffffffffffff811115611b18575f80fd5b611b2487828801611aa7565b909550935050602085013567ffffffffffffffff811115611b43575f80fd5b611b4f87828801611aa7565b95989497509550505050565b5f8083601f840112611b6b575f80fd5b50813567ffffffffffffffff811115611b82575f80fd5b602083019150836020828501011115611ae8575f80fd5b5f8060208385031215611baa575f80fd5b823567ffffffffffffffff811115611bc0575f80fd5b611bcc85828601611b5b565b90969095509350505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b602081525f611a206020830184611bd8565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6002811061087b5761087b611c36565b60a08101611c8087611c63565b86825285602083015263ffffffff8516604083015273ffffffffffffffffffffffffffffffffffffffff84166060830152611cba83611c63565b8260808301529695505050505050565b8051611cd581611c63565b808352506020810151602083015263ffffffff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff60608201511660608301526080810151611d2181611c63565b806080840152505050565b60a0810161086b8284611cca565b5f805f60408486031215611d4c575f80fd5b611d5584611a3e565b9250602084013567ffffffffffffffff811115611d70575f80fd5b611d7c86828701611b5b565b9497909650939450505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b8082018082111561086b5761086b611d89565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215611e06575f80fd5b81358015158114611a20575f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160e0810167ffffffffffffffff81118282101715611e6557611e65611e15565b60405290565b60405160a0810167ffffffffffffffff81118282101715611e6557611e65611e15565b6040805190810167ffffffffffffffff81118282101715611e6557611e65611e15565b6002811061087b575f80fd5b5f81830361016081128015611ed0575f80fd5b50611ed9611e42565b611ee284611a3e565b8152611ef060208501611a3e565b60208201526040848101359082015260608085013590820152611f1560808501611a3e565b608082015260a084810135818301527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4083011215611f51575f80fd5b611f59611e6b565b915060c0840135611f6981611eb1565b825260e0840135602083015261010084013563ffffffff81168114611f8c575f80fd5b6040830152611f9e6101208501611a3e565b6060830152610140840135611fb281611eb1565b608083015260c08101919091529392505050565b8581526020810185905273ffffffffffffffffffffffffffffffffffffffff841660408201526060810183905261012081016120056080830184611cca565b9695505050505050565b5f82601f83011261201e575f80fd5b813567ffffffffffffffff81111561203857612038611e15565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff8111828210171561208557612085611e15565b60405281815283820160200185101561209c575f80fd5b816020850160208301375f918101602001919091529392505050565b5f602082840312156120c8575f80fd5b813567ffffffffffffffff8111156120de575f80fd5b8201604081850312156120ef575f80fd5b6120f7611e8e565b61210082611a3e565b8152602082013567ffffffffffffffff81111561211b575f80fd5b6121278682850161200f565b602083015250949350505050565b5f60208284031215612145575f80fd5b5051919050565b8181038181111561086b5761086b611d89565b602081525f82516003811061217657612176611c36565b8060208401525073ffffffffffffffffffffffffffffffffffffffff602084015116604083015273ffffffffffffffffffffffffffffffffffffffff604084015116606083015260608301516080808401526121d560a0840182611bd8565b949350505050565b5f602082840312156121ed575f80fd5b813567ffffffffffffffff811115612203575f80fd5b820160408185031215612214575f80fd5b61221c611e8e565b813567ffffffffffffffff811115612232575f80fd5b61223e8682850161200f565b825250602082013567ffffffffffffffff81111561211b575f80fd5b808202811582820484141761086b5761086b611d89565b5f826122a4577f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b50049056fea2646970667358221220eddd99b4115a50f989fc036f59be415827f402b0d83b3e46667fbcfcb69547d164736f6c634300081a0033", y = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" }, l = class l extends Y {
|
|
11
11
|
constructor() {
|
|
12
|
-
super(...arguments), this.abi =
|
|
12
|
+
super(...arguments), this.abi = w;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* The owner of the incentive
|
|
@@ -20,7 +20,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
20
20
|
* @returns {Promise<Address>}
|
|
21
21
|
*/
|
|
22
22
|
async owner(f) {
|
|
23
|
-
return await
|
|
23
|
+
return await _(this._config, {
|
|
24
24
|
address: this.assertValidAddress(),
|
|
25
25
|
args: [],
|
|
26
26
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
@@ -36,7 +36,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
36
36
|
* @returns {Promise<bigint>} - The current reward
|
|
37
37
|
*/
|
|
38
38
|
async currentReward(f) {
|
|
39
|
-
return await
|
|
39
|
+
return await D(
|
|
40
40
|
this._config,
|
|
41
41
|
{
|
|
42
42
|
address: this.assertValidAddress(),
|
|
@@ -55,7 +55,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
55
55
|
* @returns {Promise<bigint>} The maximum reward amount per claim
|
|
56
56
|
*/
|
|
57
57
|
async getMaxReward(f) {
|
|
58
|
-
return await
|
|
58
|
+
return await v(
|
|
59
59
|
this._config,
|
|
60
60
|
{
|
|
61
61
|
...f,
|
|
@@ -71,100 +71,85 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
71
71
|
* @returns {Promise<bigint>}
|
|
72
72
|
* @throws {InvalidCriteriaTypeError | NoMatchingLogsError | DecodedArgsError}
|
|
73
73
|
*/
|
|
74
|
-
async getIncentiveScalar({ chainId: f, hash:
|
|
75
|
-
var
|
|
76
|
-
const
|
|
77
|
-
if (
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
const
|
|
74
|
+
async getIncentiveScalar({ chainId: f, hash: e, knownSignatures: b, logs: d }, t) {
|
|
75
|
+
var h;
|
|
76
|
+
const a = await this.getIncentiveCriteria(t);
|
|
77
|
+
if (a.criteriaType === C.EVENT) {
|
|
78
|
+
const g = b[a.signature];
|
|
79
|
+
if (a.fieldIndex === a0.GAS_REBATE_INCENTIVE) {
|
|
80
|
+
const c = await A(this._config, {
|
|
81
81
|
chainId: f,
|
|
82
|
-
hash:
|
|
82
|
+
hash: e
|
|
83
83
|
});
|
|
84
|
-
return
|
|
85
|
-
(
|
|
84
|
+
return c.gasUsed * c.effectiveGasPrice + // Normal gas cost
|
|
85
|
+
(c.blobGasUsed ?? 0n) * (c.blobGasPrice ?? 0n);
|
|
86
86
|
}
|
|
87
87
|
if (d && d.length > 0)
|
|
88
88
|
try {
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
-
for (const
|
|
92
|
-
|
|
93
|
-
return
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
const c = d.filter((s) => s.topics && s.topics[0] === a.signature).map((s) => X(g, s));
|
|
90
|
+
if (c.length > 0)
|
|
91
|
+
for (const s of c)
|
|
92
|
+
try {
|
|
93
|
+
return u(
|
|
94
|
+
s.args,
|
|
95
|
+
a.fieldIndex
|
|
96
96
|
);
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
`An error occurred while extracting scalar from logs: ${t.message}`
|
|
97
|
+
} catch {
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
100
|
+
} catch (c) {
|
|
101
|
+
throw new m(
|
|
102
|
+
`An error occurred while extracting scalar from logs: ${c.message}`
|
|
104
103
|
);
|
|
105
104
|
}
|
|
106
|
-
const
|
|
105
|
+
const n = (await A(this._config, {
|
|
107
106
|
chainId: f,
|
|
108
|
-
hash:
|
|
107
|
+
hash: e
|
|
109
108
|
})).logs;
|
|
110
|
-
if (
|
|
111
|
-
throw new
|
|
112
|
-
`No logs found for event signature ${
|
|
109
|
+
if (n.length === 0)
|
|
110
|
+
throw new R(
|
|
111
|
+
`No logs found for event signature ${a.signature}`
|
|
113
112
|
);
|
|
114
113
|
try {
|
|
115
|
-
const
|
|
116
|
-
abi: [
|
|
117
|
-
logs:
|
|
114
|
+
const c = b[a.signature], s = K({
|
|
115
|
+
abi: [c],
|
|
116
|
+
logs: n
|
|
118
117
|
});
|
|
119
|
-
if (
|
|
120
|
-
throw new
|
|
121
|
-
`No logs found for event signature ${
|
|
122
|
-
);
|
|
123
|
-
if (p(e.fieldIndex))
|
|
124
|
-
return h(
|
|
125
|
-
(E = c[0]) == null ? void 0 : E.args,
|
|
126
|
-
e.fieldIndex
|
|
127
|
-
);
|
|
128
|
-
const r = c[0] && c[0].args ? c[0].args[e.fieldIndex] : void 0;
|
|
129
|
-
if (r === void 0)
|
|
130
|
-
throw new n(
|
|
131
|
-
`Decoded argument at index ${e.fieldIndex} is undefined`
|
|
118
|
+
if (s == null || s.length === 0)
|
|
119
|
+
throw new R(
|
|
120
|
+
`No logs found for event signature ${a.signature}`
|
|
132
121
|
);
|
|
133
|
-
return
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
122
|
+
return u(
|
|
123
|
+
(h = s[0]) == null ? void 0 : h.args,
|
|
124
|
+
a.fieldIndex
|
|
125
|
+
);
|
|
126
|
+
} catch (c) {
|
|
127
|
+
throw new m(
|
|
128
|
+
`Failed to decode event log for signature ${a.signature}: ${c.message}`
|
|
137
129
|
);
|
|
138
130
|
}
|
|
139
|
-
} else if (
|
|
140
|
-
const
|
|
131
|
+
} else if (a.criteriaType === C.FUNC) {
|
|
132
|
+
const g = await H(this._config, {
|
|
141
133
|
chainId: f,
|
|
142
|
-
hash:
|
|
134
|
+
hash: e
|
|
143
135
|
});
|
|
144
136
|
try {
|
|
145
|
-
const
|
|
146
|
-
abi: [
|
|
147
|
-
data:
|
|
137
|
+
const r = b[a.signature], n = J({
|
|
138
|
+
abi: [r],
|
|
139
|
+
data: g.input
|
|
148
140
|
});
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
throw new n(
|
|
157
|
-
`Decoded argument at index ${e.fieldIndex} is undefined`
|
|
158
|
-
);
|
|
159
|
-
return BigInt(t);
|
|
160
|
-
} catch (l) {
|
|
161
|
-
throw new n(
|
|
162
|
-
`Failed to decode function data for signature ${e.signature}: ${l.message}`
|
|
141
|
+
return u(
|
|
142
|
+
n.args,
|
|
143
|
+
a.fieldIndex
|
|
144
|
+
);
|
|
145
|
+
} catch (r) {
|
|
146
|
+
throw new m(
|
|
147
|
+
`Failed to decode function data for signature ${a.signature}: ${r.message}`
|
|
163
148
|
);
|
|
164
149
|
}
|
|
165
150
|
} else
|
|
166
|
-
throw new
|
|
167
|
-
`Invalid criteria type ${
|
|
151
|
+
throw new j(
|
|
152
|
+
`Invalid criteria type ${a.criteriaType}`
|
|
168
153
|
);
|
|
169
154
|
}
|
|
170
155
|
/**
|
|
@@ -176,7 +161,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
176
161
|
* @returns {Promise<bigint>}
|
|
177
162
|
*/
|
|
178
163
|
async claims(f) {
|
|
179
|
-
return await
|
|
164
|
+
return await x(
|
|
180
165
|
this._config,
|
|
181
166
|
{
|
|
182
167
|
address: this.assertValidAddress(),
|
|
@@ -195,7 +180,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
195
180
|
* @returns {Promise<bigint>}
|
|
196
181
|
*/
|
|
197
182
|
async totalClaimed(f) {
|
|
198
|
-
return await
|
|
183
|
+
return await N(
|
|
199
184
|
this._config,
|
|
200
185
|
{
|
|
201
186
|
address: this.assertValidAddress(),
|
|
@@ -214,14 +199,14 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
214
199
|
* @param {?ReadParams} [params]
|
|
215
200
|
* @returns {Promise<boolean>}
|
|
216
201
|
*/
|
|
217
|
-
async claimed(f,
|
|
218
|
-
return await
|
|
202
|
+
async claimed(f, e) {
|
|
203
|
+
return await P(
|
|
219
204
|
this._config,
|
|
220
205
|
{
|
|
221
206
|
address: this.assertValidAddress(),
|
|
222
207
|
args: [f],
|
|
223
208
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
224
|
-
...
|
|
209
|
+
...e
|
|
225
210
|
}
|
|
226
211
|
);
|
|
227
212
|
}
|
|
@@ -234,7 +219,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
234
219
|
* @returns {Promise<Address>}
|
|
235
220
|
*/
|
|
236
221
|
async asset(f) {
|
|
237
|
-
return await
|
|
222
|
+
return await S(this._config, {
|
|
238
223
|
address: this.assertValidAddress(),
|
|
239
224
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
240
225
|
...f
|
|
@@ -249,7 +234,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
249
234
|
* @returns {Promise<Address>}
|
|
250
235
|
*/
|
|
251
236
|
async peg(f) {
|
|
252
|
-
return await
|
|
237
|
+
return await F(this._config, {
|
|
253
238
|
address: this.assertValidAddress(),
|
|
254
239
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
255
240
|
...f
|
|
@@ -264,7 +249,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
264
249
|
* @returns {Promise<bigint>}
|
|
265
250
|
*/
|
|
266
251
|
async reward(f) {
|
|
267
|
-
return await
|
|
252
|
+
return await G(
|
|
268
253
|
this._config,
|
|
269
254
|
{
|
|
270
255
|
address: this.assertValidAddress(),
|
|
@@ -297,8 +282,8 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
297
282
|
* @param {?WriteParams} [params]
|
|
298
283
|
* @returns {Promise<boolean>} - Returns true if successfully claimed
|
|
299
284
|
*/
|
|
300
|
-
async claim(f,
|
|
301
|
-
return await this.awaitResult(this.claimRaw(f,
|
|
285
|
+
async claim(f, e) {
|
|
286
|
+
return await this.awaitResult(this.claimRaw(f, e));
|
|
302
287
|
}
|
|
303
288
|
/**
|
|
304
289
|
* Claim the incentive
|
|
@@ -309,15 +294,15 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
309
294
|
* @param {?WriteParams} [params]
|
|
310
295
|
* @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - Returns true if successfully claimed
|
|
311
296
|
*/
|
|
312
|
-
async claimRaw(f,
|
|
313
|
-
const { request: b, result: d } = await
|
|
297
|
+
async claimRaw(f, e) {
|
|
298
|
+
const { request: b, result: d } = await $(this._config, {
|
|
314
299
|
address: this.assertValidAddress(),
|
|
315
|
-
args: [
|
|
300
|
+
args: [T(f)],
|
|
316
301
|
...this.optionallyAttachAccount(),
|
|
317
302
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
318
|
-
...
|
|
303
|
+
...e
|
|
319
304
|
});
|
|
320
|
-
return { hash: await
|
|
305
|
+
return { hash: await L(
|
|
321
306
|
this._config,
|
|
322
307
|
b
|
|
323
308
|
), result: d };
|
|
@@ -331,8 +316,8 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
331
316
|
* @param {?WriteParams} [params]
|
|
332
317
|
* @returns {Promise<boolean>} - True if the assets were successfully clawbacked
|
|
333
318
|
*/
|
|
334
|
-
async clawback(f,
|
|
335
|
-
return await this.awaitResult(this.clawbackRaw(f,
|
|
319
|
+
async clawback(f, e) {
|
|
320
|
+
return await this.awaitResult(this.clawbackRaw(f, e));
|
|
336
321
|
}
|
|
337
322
|
/**
|
|
338
323
|
* Clawback assets from the incentive
|
|
@@ -343,18 +328,18 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
343
328
|
* @param {?WriteParams} [params]
|
|
344
329
|
* @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - True if the assets were successfully clawbacked
|
|
345
330
|
*/
|
|
346
|
-
async clawbackRaw(f,
|
|
347
|
-
const { request: b, result: d } = await
|
|
331
|
+
async clawbackRaw(f, e) {
|
|
332
|
+
const { request: b, result: d } = await M(
|
|
348
333
|
this._config,
|
|
349
334
|
{
|
|
350
335
|
address: this.assertValidAddress(),
|
|
351
|
-
args: [
|
|
336
|
+
args: [T(f)],
|
|
352
337
|
...this.optionallyAttachAccount(),
|
|
353
338
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
354
|
-
...
|
|
339
|
+
...e
|
|
355
340
|
}
|
|
356
341
|
);
|
|
357
|
-
return { hash: await
|
|
342
|
+
return { hash: await U(
|
|
358
343
|
this._config,
|
|
359
344
|
b
|
|
360
345
|
), result: d };
|
|
@@ -368,14 +353,14 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
368
353
|
* @param {?ReadParams} [params]
|
|
369
354
|
* @returns {Promise<boolean>} = True if the incentive is claimable based on the data payload
|
|
370
355
|
*/
|
|
371
|
-
async isClaimable(f,
|
|
372
|
-
return await
|
|
356
|
+
async isClaimable(f, e) {
|
|
357
|
+
return await k(
|
|
373
358
|
this._config,
|
|
374
359
|
{
|
|
375
360
|
address: this.assertValidAddress(),
|
|
376
361
|
args: [f.target, f.data],
|
|
377
362
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
378
|
-
...
|
|
363
|
+
...e
|
|
379
364
|
}
|
|
380
365
|
);
|
|
381
366
|
}
|
|
@@ -388,7 +373,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
388
373
|
* @returns {Promise<Address>} = The address of the token the reward is pegged to
|
|
389
374
|
*/
|
|
390
375
|
async getPeg(f) {
|
|
391
|
-
return await
|
|
376
|
+
return await q(
|
|
392
377
|
this._config,
|
|
393
378
|
{
|
|
394
379
|
address: this.assertValidAddress(),
|
|
@@ -429,11 +414,11 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
429
414
|
* @returns {Promise<bigint>} - True if total claims is less than limit
|
|
430
415
|
*/
|
|
431
416
|
async getRemainingClaimPotential(f) {
|
|
432
|
-
const [
|
|
417
|
+
const [e, b] = await Promise.all([
|
|
433
418
|
this.totalClaimed(f),
|
|
434
419
|
this.limit(f)
|
|
435
420
|
]);
|
|
436
|
-
return b -
|
|
421
|
+
return b - e;
|
|
437
422
|
}
|
|
438
423
|
/**
|
|
439
424
|
*Functions from the ERC20VariableIncentive contract
|
|
@@ -447,15 +432,15 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
447
432
|
*/
|
|
448
433
|
async getIncentiveCriteria(f) {
|
|
449
434
|
try {
|
|
450
|
-
return await
|
|
435
|
+
return await z(
|
|
451
436
|
this._config,
|
|
452
437
|
{
|
|
453
438
|
...f,
|
|
454
439
|
address: this.assertValidAddress()
|
|
455
440
|
}
|
|
456
441
|
);
|
|
457
|
-
} catch (
|
|
458
|
-
throw new
|
|
442
|
+
} catch (e) {
|
|
443
|
+
throw new Z(e);
|
|
459
444
|
}
|
|
460
445
|
}
|
|
461
446
|
/**
|
|
@@ -468,19 +453,19 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
468
453
|
* @returns {Hex} The ABI-encoded payload with the updated `limit`.
|
|
469
454
|
*/
|
|
470
455
|
async getTopupPayload(f) {
|
|
471
|
-
var
|
|
472
|
-
return
|
|
473
|
-
asset: await this.asset() ??
|
|
474
|
-
peg: ((
|
|
456
|
+
var e, b, d, t, a;
|
|
457
|
+
return I({
|
|
458
|
+
asset: await this.asset() ?? i,
|
|
459
|
+
peg: ((e = this.payload) == null ? void 0 : e.peg) ?? i,
|
|
475
460
|
reward: ((b = this.payload) == null ? void 0 : b.reward) ?? 0n,
|
|
476
461
|
limit: f,
|
|
477
462
|
maxReward: ((d = this.payload) == null ? void 0 : d.maxReward) ?? 0n,
|
|
478
|
-
manager: ((
|
|
479
|
-
criteria: ((
|
|
463
|
+
manager: ((t = this.payload) == null ? void 0 : t.manager) ?? i,
|
|
464
|
+
criteria: ((a = this.payload) == null ? void 0 : a.criteria) ?? {
|
|
480
465
|
criteriaType: 0,
|
|
481
|
-
signature:
|
|
466
|
+
signature: Q,
|
|
482
467
|
fieldIndex: 0,
|
|
483
|
-
targetContract:
|
|
468
|
+
targetContract: i,
|
|
484
469
|
valueType: 0
|
|
485
470
|
}
|
|
486
471
|
});
|
|
@@ -493,15 +478,15 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
493
478
|
* @param {?DeployableOptions} [_options]
|
|
494
479
|
* @returns {GenericDeployableParams}
|
|
495
480
|
*/
|
|
496
|
-
buildParameters(f,
|
|
481
|
+
buildParameters(f, e) {
|
|
497
482
|
const [b, d] = this.validateDeploymentConfig(
|
|
498
483
|
f,
|
|
499
|
-
|
|
484
|
+
e
|
|
500
485
|
);
|
|
501
486
|
return {
|
|
502
|
-
abi:
|
|
503
|
-
bytecode:
|
|
504
|
-
args: [
|
|
487
|
+
abi: w,
|
|
488
|
+
bytecode: e0,
|
|
489
|
+
args: [I(b)],
|
|
505
490
|
...this.optionallyAttachAccount(d.account)
|
|
506
491
|
};
|
|
507
492
|
}
|
|
@@ -513,7 +498,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
513
498
|
* @returns {Hex} - Returns an encoded uint256
|
|
514
499
|
*/
|
|
515
500
|
buildClawbackData(f) {
|
|
516
|
-
return
|
|
501
|
+
return p([{ type: "uint256" }], [f]);
|
|
517
502
|
}
|
|
518
503
|
/**
|
|
519
504
|
* Builds the claim data for the ERC20PeggedVariableCriteriaIncentivePayload.
|
|
@@ -524,7 +509,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
524
509
|
* @description This function returns the encoded claim data for the ERC20PeggedVariableCriteriaIncentiveV2Payload.
|
|
525
510
|
*/
|
|
526
511
|
buildClaimData(f) {
|
|
527
|
-
return
|
|
512
|
+
return p(
|
|
528
513
|
[{ type: "uint256", name: "signedAmount" }],
|
|
529
514
|
[f]
|
|
530
515
|
);
|
|
@@ -538,7 +523,7 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
538
523
|
* @returns {Promise<bigint>} Returns the reward amount from a claim data payload
|
|
539
524
|
*/
|
|
540
525
|
async decodeClaimData(f) {
|
|
541
|
-
const
|
|
526
|
+
const e = o(
|
|
542
527
|
[
|
|
543
528
|
{
|
|
544
529
|
type: "tuple",
|
|
@@ -550,16 +535,16 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
550
535
|
}
|
|
551
536
|
],
|
|
552
537
|
f
|
|
553
|
-
), b =
|
|
538
|
+
), b = o(
|
|
554
539
|
[{ type: "uint256" }],
|
|
555
|
-
|
|
540
|
+
e[0].incentiveData
|
|
556
541
|
)[0];
|
|
557
542
|
let d = b;
|
|
558
|
-
const [
|
|
543
|
+
const [t, a] = await Promise.all([
|
|
559
544
|
this.reward(),
|
|
560
545
|
this.getMaxReward()
|
|
561
546
|
]);
|
|
562
|
-
return
|
|
547
|
+
return t === 0n || (d = t * b / E("1"), a !== 0n && d > a && (d = a)), d;
|
|
563
548
|
}
|
|
564
549
|
/**
|
|
565
550
|
* Decodes claim data for the ERC20PeggedVariableCriteriaIncentiveV2, returning the claim amount.
|
|
@@ -572,8 +557,8 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
572
557
|
* @param {bigint} [maxReward]
|
|
573
558
|
* @returns {BigInt} Returns the reward amount from a claim data payload
|
|
574
559
|
*/
|
|
575
|
-
decodeClaimDataWithRewardDetails(f,
|
|
576
|
-
const d =
|
|
560
|
+
decodeClaimDataWithRewardDetails(f, e, b) {
|
|
561
|
+
const d = o(
|
|
577
562
|
[
|
|
578
563
|
{
|
|
579
564
|
type: "tuple",
|
|
@@ -585,31 +570,31 @@ const d0 = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
585
570
|
}
|
|
586
571
|
],
|
|
587
572
|
f
|
|
588
|
-
),
|
|
573
|
+
), t = o(
|
|
589
574
|
[{ type: "uint256" }],
|
|
590
575
|
d[0].incentiveData
|
|
591
576
|
)[0];
|
|
592
|
-
let
|
|
593
|
-
return
|
|
577
|
+
let a = t;
|
|
578
|
+
return e === 0n || (a = e * t / E("1"), b !== 0n && a > b && (a = b)), a;
|
|
594
579
|
}
|
|
595
580
|
};
|
|
596
|
-
|
|
581
|
+
l.bases = {
|
|
597
582
|
...y != null && y.VITE_ERC20_PEGGED_VARIABLE_CRITERIA_INCENTIVE_V2_BASE ? {
|
|
598
583
|
31337: void 0
|
|
599
584
|
} : {},
|
|
600
|
-
...
|
|
601
|
-
},
|
|
602
|
-
let
|
|
603
|
-
function
|
|
604
|
-
asset:
|
|
585
|
+
...W
|
|
586
|
+
}, l.registryType = f0.INCENTIVE;
|
|
587
|
+
let B = l;
|
|
588
|
+
function I({
|
|
589
|
+
asset: V,
|
|
605
590
|
peg: f,
|
|
606
|
-
reward:
|
|
591
|
+
reward: e,
|
|
607
592
|
limit: b,
|
|
608
593
|
maxReward: d = 0n,
|
|
609
|
-
manager:
|
|
610
|
-
criteria:
|
|
594
|
+
manager: t = i,
|
|
595
|
+
criteria: a
|
|
611
596
|
}) {
|
|
612
|
-
return
|
|
597
|
+
return p(
|
|
613
598
|
[
|
|
614
599
|
{
|
|
615
600
|
type: "tuple",
|
|
@@ -637,26 +622,26 @@ function D({
|
|
|
637
622
|
],
|
|
638
623
|
[
|
|
639
624
|
{
|
|
640
|
-
asset:
|
|
625
|
+
asset: V,
|
|
641
626
|
peg: f,
|
|
642
|
-
reward:
|
|
627
|
+
reward: e,
|
|
643
628
|
limit: b,
|
|
644
|
-
manager:
|
|
629
|
+
manager: t,
|
|
645
630
|
maxReward: d,
|
|
646
631
|
criteria: {
|
|
647
|
-
criteriaType:
|
|
648
|
-
signature:
|
|
649
|
-
fieldIndex:
|
|
650
|
-
targetContract:
|
|
651
|
-
valueType:
|
|
632
|
+
criteriaType: a.criteriaType,
|
|
633
|
+
signature: a.signature,
|
|
634
|
+
fieldIndex: a.fieldIndex,
|
|
635
|
+
targetContract: a.targetContract,
|
|
636
|
+
valueType: a.valueType
|
|
652
637
|
}
|
|
653
638
|
}
|
|
654
639
|
]
|
|
655
640
|
);
|
|
656
641
|
}
|
|
657
642
|
export {
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
643
|
+
B as ERC20PeggedVariableCriteriaIncentiveV2,
|
|
644
|
+
w as erc20PeggedVariableCriteriaIncentiveV2Abi,
|
|
645
|
+
I as prepareERC20PeggedVariableCriteriaIncentiveV2Payload
|
|
661
646
|
};
|
|
662
647
|
//# sourceMappingURL=ERC20PeggedVariableCriteriaIncentiveV2.js.map
|