@boostxyz/sdk 5.1.0 → 5.2.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/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.js +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.js +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.js +2 -2
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +75 -75
- package/dist/BoostCore.js.map +1 -1
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +1 -1
- package/dist/{Budget-CTxrE06r.js → Budget-C0SMvfEl.js} +2 -2
- package/dist/{Budget-CTxrE06r.js.map → Budget-C0SMvfEl.js.map} +1 -1
- package/dist/{Budget-Cui2BUr4.cjs → Budget-N0YEfSt2.cjs} +2 -2
- package/dist/{Budget-Cui2BUr4.cjs.map → Budget-N0YEfSt2.cjs.map} +1 -1
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.js +1 -1
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.js +1 -1
- package/dist/{Incentive-CsFJZxYl.js → Incentive-BwRH0A6j.js} +92 -81
- package/dist/Incentive-BwRH0A6j.js.map +1 -0
- package/dist/Incentive-CZw_hu64.cjs +2 -0
- package/dist/Incentive-CZw_hu64.cjs.map +1 -0
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.js +2 -2
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.js +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.js +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts +10 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js +1 -1
- package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableIncentive.js +1 -1
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.js +1 -1
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.js +1 -1
- package/dist/{SimpleDenyList-kcqV-01w.js → SimpleDenyList-B8QeJthf.js} +2 -2
- package/dist/{SimpleDenyList-kcqV-01w.js.map → SimpleDenyList-B8QeJthf.js.map} +1 -1
- package/dist/{SimpleDenyList-DQT0Fj3v.cjs → SimpleDenyList-DIb4xX3j.cjs} +2 -2
- package/dist/{SimpleDenyList-DQT0Fj3v.cjs.map → SimpleDenyList-DIb4xX3j.cjs.map} +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs +1 -1
- package/dist/Validators/LimitedSignerValidator.js +1 -1
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.js +1 -1
- package/dist/{deployments-BNFI9vnc.cjs → deployments-BGpr4ppG.cjs} +2 -2
- package/dist/deployments-BGpr4ppG.cjs.map +1 -0
- package/dist/{deployments-D68FgefY.js → deployments-COxshLqt.js} +26 -16
- package/dist/deployments-COxshLqt.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/BoostCore.ts +11 -1
- package/src/Incentives/ERC20PeggedIncentive.ts +2 -2
- package/src/Incentives/ERC20PeggedVariableCriteriaIncentive.ts +15 -2
- package/dist/Incentive-AWwdbmix.cjs +0 -2
- package/dist/Incentive-AWwdbmix.cjs.map +0 -1
- package/dist/Incentive-CsFJZxYl.js.map +0 -1
- package/dist/deployments-BNFI9vnc.cjs.map +0 -1
- package/dist/deployments-D68FgefY.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { k as r, bp as u, bq as h, br as m, bs as y, bt as p, bu as g, bv as w, bw as A } from "../generated-ClbO_ULI.js";
|
|
2
2
|
import { encodeAbiParameters as s } from "viem";
|
|
3
|
-
import { d as v } from "../deployments-
|
|
3
|
+
import { d as v } from "../deployments-COxshLqt.js";
|
|
4
4
|
import { DeployableTarget as D } from "../Deployable/DeployableTarget.js";
|
|
5
5
|
import { RegistryType as V } from "../utils.js";
|
|
6
6
|
const S = "0x610120604052348015610010575f80fd5b503073ffffffffffffffffffffffffffffffffffffffff16608081815250504660a0818152505060608061004861013960201b60201c565b6100635761005a61014160201b60201c565b80925081935050505b5f61007261013960201b60201c565b610083578280519060200120610087565b5f801b5b90505f61009861013960201b60201c565b6100a95782805190602001206100ad565b5f801b5b90508160c081815250508060e081815250505f6100ce61013960201b60201c565b610118576040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f815283602082015282604082015246606082015230608082015260a081209150505b80610100818152505050505050506101346101b860201b60201c565b61024d565b5f6001905090565b6060806040518060400160405280600f81526020017f5369676e657256616c696461746f72000000000000000000000000000000000081525091506040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525090509091565b5f6101c761022460201b60201c565b9050805460018116156101e15763f92ee8a95f526004601cfd5b8160c01c808260011c1461021f578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805160a05160c05160e05161010051611efa61028a5f395f610f8f01525f6110ce01525f6110ab01525f61113d01525f6111610152611efa5ff3fe6080604052600436106100f2575f3560e01c8063736c0d5b11610089578063d3de6e7511610058578063d3de6e75146102b8578063f04e283e146102f4578063f2fde38b14610310578063fee81cf41461032c576100f2565b8063736c0d5b146101fa57806384b0196e146102365780638da5cb5b14610266578063a1d2756f14610290576100f2565b8063439fab91116100c5578063439fab911461018e57806354d1f13d146101b6578063703b6900146101c0578063715018a6146101f0576100f2565b806301ffc9a7146100f6578063256929621461013257806328d6183b1461013c5780634359d28a14610166575b5f80fd5b348015610101575f80fd5b5061011c60048036038101906101179190611260565b610368565b60405161012991906112a5565b60405180910390f35b61013a6103e1565b005b348015610147575f80fd5b50610150610432565b60405161015d91906112cd565b60405180910390f35b348015610171575f80fd5b5061018c6004803603810190610187919061139c565b610459565b005b348015610199575f80fd5b506101b460048036038101906101af919061146f565b610562565b005b6101be610710565b005b6101da60048036038101906101d59190611547565b610749565b6040516101e791906112a5565b60405180910390f35b6101f861093c565b005b348015610205575f80fd5b50610220600480360381019061021b91906115cb565b61094f565b60405161022d91906112a5565b60405180910390f35b348015610241575f80fd5b5061024a61096b565b60405161025d979695949392919061178d565b60405180910390f35b348015610271575f80fd5b5061027a6109b6565b604051610287919061180f565b60405180910390f35b34801561029b575f80fd5b506102b660048036038101906102b191906115cb565b6109de565b005b3480156102c3575f80fd5b506102de60048036038101906102d99190611986565b610a29565b6040516102eb9190611a06565b60405180910390f35b61030e600480360381019061030991906115cb565b610a92565b005b61032a600480360381019061032591906115cb565b610ad0565b005b348015610337575f80fd5b50610352600480360381019061034d91906115cb565b610af9565b60405161035f9190611a1f565b60405180910390f35b5f7fb8ce7b22000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806103da57506103d982610b12565b5b9050919050565b5f6103ea610b8b565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f7fb8ce7b2200000000000000000000000000000000000000000000000000000000905090565b610461610b95565b8181905084849050146104a0576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8484905081101561055b578282828181106104c0576104bf611a38565b5b90506020020160208101906104d59190611a8f565b5f808787858181106104ea576104e9611a38565b5b90506020020160208101906104ff91906115cb565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff02191690831515021790555080806001019150506104a2565b5050505050565b5f61056b610bcc565b9050805460038255801561059d5760018160011c14303b106105945763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f8084848101906105af9190611bb5565b915091506105d6825f815181106105c9576105c8611a38565b5b6020026020010151610bf5565b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f5b825181101561069c5760015f8085848151811061063857610637611a38565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508080600101915050610618565b507f8098ebafc4f95fe5a577ff9be7c88d4445b6ef0acf915dad2b538c81b0384d7c816040516106cc919061180f565b60405180910390a15050801561070b576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146107d0576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f83838101906107e09190611c9c565b90505f815f01518060200190518101906107fa9190611df6565b90505f610811898360400151898660200151610a29565b905087826040015160ff1611610864578160400151886040517f17c66bc700000000000000000000000000000000000000000000000000000000815260040161085b929190611e4c565b60405180910390fd5b5f80835f015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff166108e6576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108fc81896001610ccb9092919063ffffffff16565b61092e818360200151845f015173ffffffffffffffffffffffffffffffffffffffff16610d309092919063ffffffff16565b935050505095945050505050565b610944610b95565b61094d5f610e33565b565b5f602052805f5260405f205f915054906101000a900460ff1681565b5f6060805f805f60607f0f00000000000000000000000000000000000000000000000000000000000000965061099f610ef9565b809650819750505046935030925090919293949596565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b6109e6610b95565b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f610a887ffea51d5bd45bcd3c2ecc3679b43a3b80b0bd0923f8c16f822455b8cdecd9852f8686868680519060200120604051602001610a6d959493929190611e73565b60405160208183030381529060405280519060200120610f70565b9050949350505050565b610a9a610b95565b63389a75e1600c52805f526020600c208054421115610ac057636f5e88185f526004601cfd5b5f815550610acd81610e33565b50565b610ad8610b95565b8060601b610aed57637448fbae5f526004601cfd5b610af681610e33565b50565b5f63389a75e1600c52815f526020600c20549050919050565b5f7f5912b89c000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b845750610b8382610fec565b5b9050919050565b5f6202a300905090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314610bca576382b429005f526004601cfd5b565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610bfd611065565b15610c75577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805415610c3757630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a350610cc8565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b5f633f57fc5c60e01b90505f634de1225a60e01b90506007831115610cf657815f528260045260245ffd5b84602052835f5260405f206001841b81541880851c6001166001188015610d2357835f528560045260245ffd5b8183555050505050505050565b5f8360601b60601c93508315610e2c57604051835f5260208301516040526040835103610d9d576040830151601b8160ff1c016020528060011b60011c6060526020600160805f60015afa805187183d1517610d9a57600193505f60605282604052505050610e2c565b50505b6041835103610de35760608301515f1a60205260408301516060526020600160805f60015afa805186183d1517610de157600192505f606052816040525050610e2c565b505b5f60605280604052631626ba7e60e01b808252846004830152602482016040815284516020018060448501828860045afa5060208260443d01868b5afa83835114169450505050505b9392505050565b610e3b611065565b15610ea0577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b8217815550610ef6565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b6060806040518060400160405280600f81526020017f5369676e657256616c696461746f72000000000000000000000000000000000081525091506040518060400160405280600181526020017f310000000000000000000000000000000000000000000000000000000000000081525090509091565b5f610f79611069565b15610f8d57610f86611071565b9050610fc9565b7f00000000000000000000000000000000000000000000000000000000000000009050610fb8611139565b15610fc857610fc5611071565b90505b5b6719010000000000005f5280601a5281603a52604260182090505f603a52919050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061105e575061105d82611191565b5b9050919050565b5f90565b5f6001905090565b5f8061107b611069565b156110a9575f8061108a610ef9565b91509150818051906020012093508080519060200120925050506110f0565b7f000000000000000000000000000000000000000000000000000000000000000091507f000000000000000000000000000000000000000000000000000000000000000090505b6040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f815282602082015281604082015246606082015230608082015260a081209250505090565b5f807f000000000000000000000000000000000000000000000000000000000000000090505f7f0000000000000000000000000000000000000000000000000000000000000000905080301482461416159250505090565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61123f8161120b565b8114611249575f80fd5b50565b5f8135905061125a81611236565b92915050565b5f6020828403121561127557611274611203565b5b5f6112828482850161124c565b91505092915050565b5f8115159050919050565b61129f8161128b565b82525050565b5f6020820190506112b85f830184611296565b92915050565b6112c78161120b565b82525050565b5f6020820190506112e05f8301846112be565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112611307576113066112e6565b5b8235905067ffffffffffffffff811115611324576113236112ea565b5b6020830191508360208202830111156113405761133f6112ee565b5b9250929050565b5f8083601f84011261135c5761135b6112e6565b5b8235905067ffffffffffffffff811115611379576113786112ea565b5b602083019150836020820283011115611395576113946112ee565b5b9250929050565b5f805f80604085870312156113b4576113b3611203565b5b5f85013567ffffffffffffffff8111156113d1576113d0611207565b5b6113dd878288016112f2565b9450945050602085013567ffffffffffffffff811115611400576113ff611207565b5b61140c87828801611347565b925092505092959194509250565b5f8083601f84011261142f5761142e6112e6565b5b8235905067ffffffffffffffff81111561144c5761144b6112ea565b5b602083019150836001820283011115611468576114676112ee565b5b9250929050565b5f806020838503121561148557611484611203565b5b5f83013567ffffffffffffffff8111156114a2576114a1611207565b5b6114ae8582860161141a565b92509250509250929050565b5f819050919050565b6114cc816114ba565b81146114d6575f80fd5b50565b5f813590506114e7816114c3565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611516826114ed565b9050919050565b6115268161150c565b8114611530575f80fd5b50565b5f813590506115418161151d565b92915050565b5f805f805f608086880312156115605761155f611203565b5b5f61156d888289016114d9565b955050602061157e888289016114d9565b945050604061158f88828901611533565b935050606086013567ffffffffffffffff8111156115b0576115af611207565b5b6115bc8882890161141a565b92509250509295509295909350565b5f602082840312156115e0576115df611203565b5b5f6115ed84828501611533565b91505092915050565b5f7fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b61162a816115f6565b82525050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61167282611630565b61167c818561163a565b935061168c81856020860161164a565b61169581611658565b840191505092915050565b6116a9816114ba565b82525050565b6116b88161150c565b82525050565b5f819050919050565b6116d0816116be565b82525050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b611708816114ba565b82525050565b5f61171983836116ff565b60208301905092915050565b5f602082019050919050565b5f61173b826116d6565b61174581856116e0565b9350611750836116f0565b805f5b83811015611780578151611767888261170e565b975061177283611725565b925050600181019050611753565b5085935050505092915050565b5f60e0820190506117a05f83018a611621565b81810360208301526117b28189611668565b905081810360408301526117c68188611668565b90506117d560608301876116a0565b6117e260808301866116af565b6117ef60a08301856116c7565b81810360c08301526118018184611731565b905098975050505050505050565b5f6020820190506118225f8301846116af565b92915050565b5f60ff82169050919050565b61183d81611828565b8114611847575f80fd5b50565b5f8135905061185881611834565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61189882611658565b810181811067ffffffffffffffff821117156118b7576118b6611862565b5b80604052505050565b5f6118c96111fa565b90506118d5828261188f565b919050565b5f67ffffffffffffffff8211156118f4576118f3611862565b5b6118fd82611658565b9050602081019050919050565b828183375f83830152505050565b5f61192a611925846118da565b6118c0565b9050828152602081018484840111156119465761194561185e565b5b61195184828561190a565b509392505050565b5f82601f83011261196d5761196c6112e6565b5b813561197d848260208601611918565b91505092915050565b5f805f806080858703121561199e5761199d611203565b5b5f6119ab878288016114d9565b94505060206119bc8782880161184a565b93505060406119cd87828801611533565b925050606085013567ffffffffffffffff8111156119ee576119ed611207565b5b6119fa87828801611959565b91505092959194509250565b5f602082019050611a195f8301846116c7565b92915050565b5f602082019050611a325f8301846116a0565b92915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b611a6e8161128b565b8114611a78575f80fd5b50565b5f81359050611a8981611a65565b92915050565b5f60208284031215611aa457611aa3611203565b5b5f611ab184828501611a7b565b91505092915050565b5f67ffffffffffffffff821115611ad457611ad3611862565b5b602082029050602081019050919050565b5f611af7611af284611aba565b6118c0565b90508083825260208201905060208402830185811115611b1a57611b196112ee565b5b835b81811015611b435780611b2f8882611533565b845260208401935050602081019050611b1c565b5050509392505050565b5f82601f830112611b6157611b606112e6565b5b8135611b71848260208601611ae5565b91505092915050565b5f611b84826114ed565b9050919050565b611b9481611b7a565b8114611b9e575f80fd5b50565b5f81359050611baf81611b8b565b92915050565b5f8060408385031215611bcb57611bca611203565b5b5f83013567ffffffffffffffff811115611be857611be7611207565b5b611bf485828601611b4d565b9250506020611c0585828601611ba1565b9150509250929050565b5f80fd5b5f80fd5b5f60408284031215611c2c57611c2b611c0f565b5b611c3660406118c0565b90505f82013567ffffffffffffffff811115611c5557611c54611c13565b5b611c6184828501611959565b5f83015250602082013567ffffffffffffffff811115611c8457611c83611c13565b5b611c9084828501611959565b60208301525092915050565b5f60208284031215611cb157611cb0611203565b5b5f82013567ffffffffffffffff811115611cce57611ccd611207565b5b611cda84828501611c17565b91505092915050565b5f81519050611cf18161151d565b92915050565b5f611d09611d04846118da565b6118c0565b905082815260208101848484011115611d2557611d2461185e565b5b611d3084828561164a565b509392505050565b5f82601f830112611d4c57611d4b6112e6565b5b8151611d5c848260208601611cf7565b91505092915050565b5f81519050611d7381611834565b92915050565b5f60608284031215611d8e57611d8d611c0f565b5b611d9860606118c0565b90505f611da784828501611ce3565b5f83015250602082015167ffffffffffffffff811115611dca57611dc9611c13565b5b611dd684828501611d38565b6020830152506040611dea84828501611d65565b60408301525092915050565b5f60208284031215611e0b57611e0a611203565b5b5f82015167ffffffffffffffff811115611e2857611e27611207565b5b611e3484828501611d79565b91505092915050565b611e4681611828565b82525050565b5f604082019050611e5f5f830185611e3d565b611e6c60208301846116a0565b9392505050565b5f60a082019050611e865f8301886116c7565b611e9360208301876116a0565b611ea06040830186611e3d565b611ead60608301856116af565b611eba60808301846116c7565b969550505050505056fea2646970667358221220df7e7dceed473a00c9aa36f5d0e419cf9b288b3195c47bc070ff38cb5ac9d20064736f6c634300081a0033", t = class t extends D {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
//# sourceMappingURL=deployments-
|
|
1
|
+
"use strict";const e={10:"0xE79Cc2063A470087604F7690F3Ff5e0759addA06",8453:"0xCB74EdD24917238c98e7c6d20B047C6D7e0feDdc",42161:"0xE79Cc2063A470087604F7690F3Ff5e0759addA06",84532:"0xCB74EdD24917238c98e7c6d20B047C6D7e0feDdc",11155111:"0xCB74EdD24917238c98e7c6d20B047C6D7e0feDdc"},d={10:"0xa017d8DBeB026a80b3E99F8e118bfFC3efd842BC",8453:"0xDCFFcE9d8185706780A46Cf04D9c6b86b3451497",42161:"0xa017d8DBeB026a80b3E99F8e118bfFC3efd842BC",84532:"0xDCFFcE9d8185706780A46Cf04D9c6b86b3451497",11155111:"0xDCFFcE9d8185706780A46Cf04D9c6b86b3451497"},a={10:"0xCF9A795Fed701aa214598998a2D4566413D906Ce",8453:"0x54aBB00F12755Be99729E50dade1BA62c75F8879",42161:"0xCF9A795Fed701aa214598998a2D4566413D906Ce",84532:"0x54aBB00F12755Be99729E50dade1BA62c75F8879",11155111:"0x54aBB00F12755Be99729E50dade1BA62c75F8879"},C={10:"0x7Df4b5625567AA946d93118Fe8e81Fa4d6b10Cfd",8453:"0x9Ed41B9834d6865092520D34ee75292242d3fA56",42161:"0x7Df4b5625567AA946d93118Fe8e81Fa4d6b10Cfd",84532:"0x9Ed41B9834d6865092520D34ee75292242d3fA56",11155111:"0x9Ed41B9834d6865092520D34ee75292242d3fA56"},E={10:"0x67f6185EB855aCd514fAC9d9e6Bd83b01040Ce33",8453:"0x775c30cc9f5A1a7AAf4dFe2B1994Dda5F4586F15",42161:"0x67f6185EB855aCd514fAC9d9e6Bd83b01040Ce33",84532:"0x775c30cc9f5A1a7AAf4dFe2B1994Dda5F4586F15",11155111:"0x775c30cc9f5A1a7AAf4dFe2B1994Dda5F4586F15"},B={10:"0xB58d3bA94d16305bf35F8D2055faB44b01063F9B",8453:"0xE7763684b43bE4491A93469aA5D7868591343dEa",42161:"0xB58d3bA94d16305bf35F8D2055faB44b01063F9B",84532:"0xE7763684b43bE4491A93469aA5D7868591343dEa",11155111:"0xE7763684b43bE4491A93469aA5D7868591343dEa"},c={10:"0x3647EF9212033976204D9d3df3Ed46832888F7fB",8453:"0xC502d89B01b0137327adC0bd393fCee2dE6EA6d0",42161:"0x3647EF9212033976204D9d3df3Ed46832888F7fB",84532:"0xC502d89B01b0137327adC0bd393fCee2dE6EA6d0",11155111:"0xC502d89B01b0137327adC0bd393fCee2dE6EA6d0"},f={10:"0xa4b9E4278Fc1C2Cd7f298D6Ab77fE5ed0BAEFa09",8453:"0xF1c51f679A250a542c38ed45fd5B6D050648669E",42161:"0xa4b9E4278Fc1C2Cd7f298D6Ab77fE5ed0BAEFa09",84532:"0xF1c51f679A250a542c38ed45fd5B6D050648669E",11155111:"0xF1c51f679A250a542c38ed45fd5B6D050648669E"},A={10:"0xA1aDC1b479e5188C4c3780B161426fc25A11d45E",8453:"0xf109BAFC51aA2a78C831e5460dEDbDf68E866976",42161:"0xA1aDC1b479e5188C4c3780B161426fc25A11d45E",84532:"0xf109BAFC51aA2a78C831e5460dEDbDf68E866976",11155111:"0xf109BAFC51aA2a78C831e5460dEDbDf68E866976"},D={10:"0xaEAB5967508DE105fa66bED2575cdF3b17631682",8453:"0x18C217895bd8f1d8aD4F26844aAb5957Eb61C2bA",42161:"0xaEAB5967508DE105fa66bED2575cdF3b17631682",84532:"0x18C217895bd8f1d8aD4F26844aAb5957Eb61C2bA",11155111:"0x18C217895bd8f1d8aD4F26844aAb5957Eb61C2bA"},b={10:"0x290D20454bC26b68924c193e981fCa38f2588975",8453:"0xC94a7785fDA51B849f2E781e112A4353F315e057",42161:"0x290D20454bC26b68924c193e981fCa38f2588975",84532:"0xC94a7785fDA51B849f2E781e112A4353F315e057",11155111:"0xC94a7785fDA51B849f2E781e112A4353F315e057"},F={10:"0xEB43d4fCf7F64863b3D066EE005Fa298F0CFd8eC",8453:"0x1FC4208467B485f841D1B8AaDbDBBa987bD81a82",42161:"0xEB43d4fCf7F64863b3D066EE005Fa298F0CFd8eC",84532:"0x1FC4208467B485f841D1B8AaDbDBBa987bD81a82",11155111:"0x1FC4208467B485f841D1B8AaDbDBBa987bD81a82"},x={10:"0x6dA00E864f55ceA64d0d24968fb8bb02Cd8C43E8",8453:"0xa75E05550D6D3A7C6E960Ac8f8c4155fC64c12eF",42161:"0x6dA00E864f55ceA64d0d24968fb8bb02Cd8C43E8",84532:"0xa75E05550D6D3A7C6E960Ac8f8c4155fC64c12eF",11155111:"0xa75E05550D6D3A7C6E960Ac8f8c4155fC64c12eF"},t={10:"0x2399DAB7d25bE315C2074BEcd50f243f4982D655",8453:"0x01B1dB35a5f91080c7518d917aE124E863abB0EB",42161:"0x2399DAB7d25bE315C2074BEcd50f243f4982D655",84532:"0x01B1dB35a5f91080c7518d917aE124E863abB0EB",11155111:"0x01B1dB35a5f91080c7518d917aE124E863abB0EB"},n={8453:"0x64DFAE63662107c9C68589c726991790D00Fbc29",84532:"0x64DFAE63662107c9C68589c726991790D00Fbc29",11155111:"0x64DFAE63662107c9C68589c726991790D00Fbc29"},i={8453:"0xBA9C0739350C42d5f4bB55d779356C3CfEaB257a",84532:"0xBA9C0739350C42d5f4bB55d779356C3CfEaB257a",11155111:"0xBA9C0739350C42d5f4bB55d779356C3CfEaB257a"};exports.AllowListIncentive=e;exports.BoostCore=d;exports.BoostRegistry=a;exports.CGDAIncentive=C;exports.ERC20Incentive=E;exports.ERC20PeggedIncentive=n;exports.ERC20PeggedVariableCriteriaIncentive=i;exports.ERC20VariableCriteriaIncentive=B;exports.ERC20VariableIncentive=c;exports.EventAction=f;exports.ManagedBudget=A;exports.ManagedBudgetWithFees=D;exports.PointsIncentive=b;exports.SignerValidator=F;exports.SimpleAllowList=x;exports.SimpleDenyList=t;
|
|
2
|
+
//# sourceMappingURL=deployments-BGpr4ppG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployments-BGpr4ppG.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -16,25 +16,25 @@ const d = {
|
|
|
16
16
|
42161: "0xCF9A795Fed701aa214598998a2D4566413D906Ce",
|
|
17
17
|
84532: "0x54aBB00F12755Be99729E50dade1BA62c75F8879",
|
|
18
18
|
11155111: "0x54aBB00F12755Be99729E50dade1BA62c75F8879"
|
|
19
|
-
},
|
|
19
|
+
}, C = {
|
|
20
20
|
10: "0x7Df4b5625567AA946d93118Fe8e81Fa4d6b10Cfd",
|
|
21
21
|
8453: "0x9Ed41B9834d6865092520D34ee75292242d3fA56",
|
|
22
22
|
42161: "0x7Df4b5625567AA946d93118Fe8e81Fa4d6b10Cfd",
|
|
23
23
|
84532: "0x9Ed41B9834d6865092520D34ee75292242d3fA56",
|
|
24
24
|
11155111: "0x9Ed41B9834d6865092520D34ee75292242d3fA56"
|
|
25
|
-
},
|
|
25
|
+
}, E = {
|
|
26
26
|
10: "0x67f6185EB855aCd514fAC9d9e6Bd83b01040Ce33",
|
|
27
27
|
8453: "0x775c30cc9f5A1a7AAf4dFe2B1994Dda5F4586F15",
|
|
28
28
|
42161: "0x67f6185EB855aCd514fAC9d9e6Bd83b01040Ce33",
|
|
29
29
|
84532: "0x775c30cc9f5A1a7AAf4dFe2B1994Dda5F4586F15",
|
|
30
30
|
11155111: "0x775c30cc9f5A1a7AAf4dFe2B1994Dda5F4586F15"
|
|
31
|
-
},
|
|
31
|
+
}, f = {
|
|
32
32
|
10: "0xB58d3bA94d16305bf35F8D2055faB44b01063F9B",
|
|
33
33
|
8453: "0xE7763684b43bE4491A93469aA5D7868591343dEa",
|
|
34
34
|
42161: "0xB58d3bA94d16305bf35F8D2055faB44b01063F9B",
|
|
35
35
|
84532: "0xE7763684b43bE4491A93469aA5D7868591343dEa",
|
|
36
36
|
11155111: "0xE7763684b43bE4491A93469aA5D7868591343dEa"
|
|
37
|
-
},
|
|
37
|
+
}, B = {
|
|
38
38
|
10: "0x3647EF9212033976204D9d3df3Ed46832888F7fB",
|
|
39
39
|
8453: "0xC502d89B01b0137327adC0bd393fCee2dE6EA6d0",
|
|
40
40
|
42161: "0x3647EF9212033976204D9d3df3Ed46832888F7fB",
|
|
@@ -46,19 +46,19 @@ const d = {
|
|
|
46
46
|
42161: "0xa4b9E4278Fc1C2Cd7f298D6Ab77fE5ed0BAEFa09",
|
|
47
47
|
84532: "0xF1c51f679A250a542c38ed45fd5B6D050648669E",
|
|
48
48
|
11155111: "0xF1c51f679A250a542c38ed45fd5B6D050648669E"
|
|
49
|
-
},
|
|
49
|
+
}, c = {
|
|
50
50
|
10: "0xA1aDC1b479e5188C4c3780B161426fc25A11d45E",
|
|
51
51
|
8453: "0xf109BAFC51aA2a78C831e5460dEDbDf68E866976",
|
|
52
52
|
42161: "0xA1aDC1b479e5188C4c3780B161426fc25A11d45E",
|
|
53
53
|
84532: "0xf109BAFC51aA2a78C831e5460dEDbDf68E866976",
|
|
54
54
|
11155111: "0xf109BAFC51aA2a78C831e5460dEDbDf68E866976"
|
|
55
|
-
},
|
|
55
|
+
}, D = {
|
|
56
56
|
10: "0xaEAB5967508DE105fa66bED2575cdF3b17631682",
|
|
57
57
|
8453: "0x18C217895bd8f1d8aD4F26844aAb5957Eb61C2bA",
|
|
58
58
|
42161: "0xaEAB5967508DE105fa66bED2575cdF3b17631682",
|
|
59
59
|
84532: "0x18C217895bd8f1d8aD4F26844aAb5957Eb61C2bA",
|
|
60
60
|
11155111: "0x18C217895bd8f1d8aD4F26844aAb5957Eb61C2bA"
|
|
61
|
-
},
|
|
61
|
+
}, b = {
|
|
62
62
|
10: "0x290D20454bC26b68924c193e981fCa38f2588975",
|
|
63
63
|
8453: "0xC94a7785fDA51B849f2E781e112A4353F315e057",
|
|
64
64
|
42161: "0x290D20454bC26b68924c193e981fCa38f2588975",
|
|
@@ -82,21 +82,31 @@ const d = {
|
|
|
82
82
|
42161: "0x2399DAB7d25bE315C2074BEcd50f243f4982D655",
|
|
83
83
|
84532: "0x01B1dB35a5f91080c7518d917aE124E863abB0EB",
|
|
84
84
|
11155111: "0x01B1dB35a5f91080c7518d917aE124E863abB0EB"
|
|
85
|
+
}, t = {
|
|
86
|
+
8453: "0x64DFAE63662107c9C68589c726991790D00Fbc29",
|
|
87
|
+
84532: "0x64DFAE63662107c9C68589c726991790D00Fbc29",
|
|
88
|
+
11155111: "0x64DFAE63662107c9C68589c726991790D00Fbc29"
|
|
89
|
+
}, n = {
|
|
90
|
+
8453: "0xBA9C0739350C42d5f4bB55d779356C3CfEaB257a",
|
|
91
|
+
84532: "0xBA9C0739350C42d5f4bB55d779356C3CfEaB257a",
|
|
92
|
+
11155111: "0xBA9C0739350C42d5f4bB55d779356C3CfEaB257a"
|
|
85
93
|
};
|
|
86
94
|
export {
|
|
87
95
|
d as A,
|
|
88
96
|
e as B,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
97
|
+
C,
|
|
98
|
+
E,
|
|
99
|
+
c as M,
|
|
100
|
+
b as P,
|
|
93
101
|
x as S,
|
|
94
102
|
s as a,
|
|
95
|
-
|
|
96
|
-
|
|
103
|
+
f as b,
|
|
104
|
+
B as c,
|
|
97
105
|
F as d,
|
|
98
|
-
|
|
106
|
+
D as e,
|
|
99
107
|
A as f,
|
|
100
|
-
|
|
108
|
+
t as g,
|
|
109
|
+
n as h,
|
|
110
|
+
a as i
|
|
101
111
|
};
|
|
102
|
-
//# sourceMappingURL=deployments-
|
|
112
|
+
//# sourceMappingURL=deployments-COxshLqt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deployments-COxshLqt.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./BoostRegistry.cjs"),l=require("./BoostCore.cjs"),A=require("./Boost.cjs"),u=require("./Actions/Action.cjs"),a=require("./Actions/EventAction.cjs"),g=require("./AllowLists/AllowList.cjs"),y=require("./AllowLists/SimpleAllowList.cjs"),I=require("./SimpleDenyList-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./BoostRegistry.cjs"),l=require("./BoostCore.cjs"),A=require("./Boost.cjs"),u=require("./Actions/Action.cjs"),a=require("./Actions/EventAction.cjs"),g=require("./AllowLists/AllowList.cjs"),y=require("./AllowLists/SimpleAllowList.cjs"),I=require("./SimpleDenyList-DIb4xX3j.cjs"),d=require("./Budget-N0YEfSt2.cjs"),t=require("./Budgets/ManagedBudget.cjs"),D=require("./Deployable/Deployable.cjs"),T=require("./Deployable/Contract.cjs"),V=require("./Deployable/DeployableTarget.cjs"),P=require("./Deployable/DeployableTargetWithRBAC.cjs"),v=require("./Incentives/AllowListIncentive.cjs"),R=require("./Incentives/CGDAIncentive.cjs"),S=require("./Incentives/ERC20Incentive.cjs"),o=require("./Incentive-CZw_hu64.cjs"),m=require("./Incentives/ERC20VariableIncentive.cjs"),C=require("./Incentives/ERC20VariableCriteriaIncentive.cjs"),b=require("./Incentives/PointsIncentive.cjs"),s=require("./Validators/SignerValidator.cjs"),p=require("./Validators/LimitedSignerValidator.cjs"),c=require("./Validators/Validator.cjs"),e=require("./errors.cjs"),i=require("./utils.cjs"),B=require("./claiming.cjs"),n=require("./transfers.cjs"),F=require("./Auth/PassthroughAuth.cjs"),r=require("./generated-CRD9XfOT.cjs");exports.BOOST_REGISTRY_ADDRESS=E.BOOST_REGISTRY_ADDRESS;exports.BOOST_REGISTRY_ADDRESSES=E.BOOST_REGISTRY_ADDRESSES;exports.BoostRegistry=E.BoostRegistry;exports.BOOST_CORE_ADDRESS=l.BOOST_CORE_ADDRESS;exports.BOOST_CORE_ADDRESSES=l.BOOST_CORE_ADDRESSES;exports.BoostCore=l.BoostCore;exports.FEE_DENOMINATOR=l.FEE_DENOMINATOR;exports.Boost=A.Boost;exports.prepareBoostPayload=A.prepareBoostPayload;exports.ActionByComponentInterface=u.ActionByComponentInterface;exports.actionFromAddress=u.actionFromAddress;exports.EventAction=a.EventAction;exports.FilterType=a.FilterType;exports.PrimitiveType=a.PrimitiveType;exports.SignatureType=a.SignatureType;exports.anyActionParameter=a.anyActionParameter;exports.isEventActionPayloadSimple=a.isEventActionPayloadSimple;exports.prepareEventActionPayload=a.prepareEventActionPayload;exports.transactionSenderClaimant=a.transactionSenderClaimant;exports.AllowListByComponentInterface=g.AllowListByComponentInterface;exports.OpenAllowList=g.OpenAllowList;exports.allowListFromAddress=g.allowListFromAddress;exports.LIST_MANAGER_ROLE=y.LIST_MANAGER_ROLE;exports.SimpleAllowList=y.SimpleAllowList;exports.prepareSimpleAllowListPayload=y.prepareSimpleAllowListPayload;exports.SimpleDenyList=I.SimpleDenyList;exports.prepareSimpleDenyListPayload=I.prepareSimpleDenyListPayload;exports.BudgetByComponentInterface=d.BudgetByComponentInterface;exports.ManagedBudgetWithFees=d.ManagedBudgetWithFees;exports.budgetFromAddress=d.budgetFromAddress;exports.prepareManagedBudgetWithFeesPayload=d.prepareManagedBudgetWithFeesPayload;exports.ManagedBudget=t.ManagedBudget;exports.ManagedBudgetRoles=t.ManagedBudgetRoles;exports.isERC1155TransferPayload=t.isERC1155TransferPayload;exports.isFungibleTransfer=t.isFungibleTransfer;exports.prepareManagedBudgetPayload=t.prepareManagedBudgetPayload;exports.prepareTransfer=t.prepareTransfer;exports.Deployable=D.Deployable;exports.Contract=T.Contract;exports.DeployableTarget=V.DeployableTarget;exports.DeployableTargetWithRBAC=P.DeployableTargetWithRBAC;exports.Roles=P.Roles;exports.AllowListIncentive=v.AllowListIncentive;exports.prepareAllowListIncentivePayload=v.prepareAllowListIncentivePayload;exports.CGDAIncentive=R.CGDAIncentive;exports.prepareCGDAIncentivePayload=R.prepareCGDAIncentivePayload;exports.ERC20Incentive=S.ERC20Incentive;exports.prepareERC20IncentivePayload=S.prepareERC20IncentivePayload;exports.ERC20PeggedIncentive=o.ERC20PeggedIncentive;exports.ERC20PeggedVariableCriteriaIncentive=o.ERC20PeggedVariableCriteriaIncentive;exports.IncentiveByComponentInterface=o.IncentiveByComponentInterface;exports.incentiveFromAddress=o.incentiveFromAddress;exports.prepareERC20PeggedIncentivePayload=o.prepareERC20PeggedIncentivePayload;exports.prepareERC20PeggedVariableCriteriaIncentivePayload=o.prepareERC20PeggedVariableCriteriaIncentivePayload;exports.ERC20VariableIncentive=m.ERC20VariableIncentive;exports.prepareERC20VariableIncentivePayload=m.prepareERC20VariableIncentivePayload;exports.ERC20VariableCriteriaIncentive=C.ERC20VariableCriteriaIncentive;exports.gasRebateIncentiveCriteria=C.gasRebateIncentiveCriteria;exports.prepareERC20VariableCriteriaIncentivePayload=C.prepareERC20VariableCriteriaIncentivePayload;exports.PointsIncentive=b.PointsIncentive;exports.preparePointsIncentivePayload=b.preparePointsIncentivePayload;exports.SignerValidator=s.SignerValidator;exports.prepareSignerValidatorClaimDataPayload=s.prepareSignerValidatorClaimDataPayload;exports.prepareSignerValidatorInputParams=s.prepareSignerValidatorInputParams;exports.prepareSignerValidatorPayload=s.prepareSignerValidatorPayload;exports.LimitedSignerValidator=p.LimitedSignerValidator;exports.prepareLimitedSignerValidatorClaimDataPayload=p.prepareLimitedSignerValidatorClaimDataPayload;exports.prepareLimitedSignerValidatorInputParams=p.prepareLimitedSignerValidatorInputParams;exports.prepareLimitedSignerValidatorPayload=p.prepareLimitedSignerValidatorPayload;exports.BoostValidatorEOA=c.BoostValidatorEOA;exports.ValidatorByComponentInterface=c.ValidatorByComponentInterface;exports.decodeClaimData=c.decodeClaimData;exports.validatorFromAddress=c.validatorFromAddress;exports.BoostCoreNoIdentifierEmitted=e.BoostCoreNoIdentifierEmitted;exports.BoostNotFoundError=e.BoostNotFoundError;exports.BudgetMustAuthorizeBoostCore=e.BudgetMustAuthorizeBoostCore;exports.ContractAddressRequiredError=e.ContractAddressRequiredError;exports.DecodedArgsError=e.DecodedArgsError;exports.DecodedArgsMalformedError=e.DecodedArgsMalformedError;exports.DeployableAlreadyDeployedError=e.DeployableAlreadyDeployedError;exports.DeployableBuildParametersUnspecifiedError=e.DeployableBuildParametersUnspecifiedError;exports.DeployableMissingPayloadError=e.DeployableMissingPayloadError;exports.DeployableUnknownOwnerProvidedError=e.DeployableUnknownOwnerProvidedError;exports.DeployableWagmiConfigurationRequiredError=e.DeployableWagmiConfigurationRequiredError;exports.FieldActionValidationError=e.FieldActionValidationError;exports.FieldValueNotComparableError=e.FieldValueNotComparableError;exports.FieldValueUndefinedError=e.FieldValueUndefinedError;exports.FunctionDataDecodeError=e.FunctionDataDecodeError;exports.IncentiveCriteriaNotFoundError=e.IncentiveCriteriaNotFoundError;exports.IncentiveNotCloneableError=e.IncentiveNotCloneableError;exports.InvalidComponentInterfaceError=e.InvalidComponentInterfaceError;exports.InvalidCriteriaTypeError=e.InvalidCriteriaTypeError;exports.InvalidNumericalCriteriaError=e.InvalidNumericalCriteriaError;exports.InvalidProtocolChainIdError=e.InvalidProtocolChainIdError;exports.MustInitializeBudgetError=e.MustInitializeBudgetError;exports.NoConnectedChainIdError=e.NoConnectedChainIdError;exports.NoContractAddressUponReceiptError=e.NoContractAddressUponReceiptError;exports.NoEventActionStepsProvidedError=e.NoEventActionStepsProvidedError;exports.NoMatchingLogsError=e.NoMatchingLogsError;exports.TooManyEventActionStepsProvidedError=e.TooManyEventActionStepsProvidedError;exports.UnknownTransferPayloadSupplied=e.UnknownTransferPayloadSupplied;exports.UnparseableAbiParamError=e.UnparseableAbiParamError;exports.UnrecognizedFilterTypeError=e.UnrecognizedFilterTypeError;exports.ValidationAbiMissingError=e.ValidationAbiMissingError;exports.CheatCodes=i.CheatCodes;exports.RegistryType=i.RegistryType;exports.TRANSFER_SIGNATURE=i.TRANSFER_SIGNATURE;exports.assertValidAddressByChainId=i.assertValidAddressByChainId;exports.awaitResult=i.awaitResult;exports.bytes4=i.bytes4;exports.getDeployedContractAddress=i.getDeployedContractAddress;exports.getErc20Balance=i.getErc20Balance;exports.StrategyType=B.StrategyType;exports.prepareClaimPayload=B.prepareClaimPayload;exports.AssetType=n.AssetType;exports.prepareERC1155Payload=n.prepareERC1155Payload;exports.prepareERC1155Transfer=n.prepareERC1155Transfer;exports.prepareFungiblePayload=n.prepareFungiblePayload;exports.prepareFungibleTransfer=n.prepareFungibleTransfer;exports.prepareTransferPayload=n.prepareTransferPayload;exports.PassthroughAuth=F.PassthroughAuth;exports.allowListIncentiveAbi=r.B;exports.boostCoreAbi=r.I;exports.boostRegistryAbi=r.ce;exports.cgdaIncentiveAbi=r.A;exports.erc20IncentiveAbi=r.f;exports.erc20PeggedIncentiveAbi=r.v;exports.erc20PeggedVariableCriteriaIncentiveAbi=r.l;exports.erc20VariableCriteriaIncentiveAbi=r.d;exports.erc20VariableIncentiveAbi=r.g;exports.limitedSignerValidatorAbi=r.V;exports.managedBudgetAbi=r.w;exports.managedBudgetWithFeesAbi=r.o;exports.passthroughAuthAbi=r.We;exports.pointsIncentiveAbi=r.N;exports.rbacAbi=r.H;exports.signerValidatorAbi=r.k;exports.simpleAllowListAbi=r.C;exports.simpleDenyListAbi=r.E;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@ import { ActionByComponentInterface as g, actionFromAddress as A } from "./Actio
|
|
|
5
5
|
import { EventAction as C, FilterType as I, PrimitiveType as b, SignatureType as f, anyActionParameter as P, isEventActionPayloadSimple as v, prepareEventActionPayload as R, transactionSenderClaimant as S } from "./Actions/EventAction.js";
|
|
6
6
|
import { AllowListByComponentInterface as B, OpenAllowList as D, allowListFromAddress as x } from "./AllowLists/AllowList.js";
|
|
7
7
|
import { LIST_MANAGER_ROLE as V, SimpleAllowList as F, prepareSimpleAllowListPayload as L } from "./AllowLists/SimpleAllowList.js";
|
|
8
|
-
import { S as N, p as O } from "./SimpleDenyList-
|
|
9
|
-
import { B as w, M as _, b as U, p as G } from "./Budget-
|
|
8
|
+
import { S as N, p as O } from "./SimpleDenyList-B8QeJthf.js";
|
|
9
|
+
import { B as w, M as _, b as U, p as G } from "./Budget-C0SMvfEl.js";
|
|
10
10
|
import { ManagedBudget as k, ManagedBudgetRoles as z, isERC1155TransferPayload as q, isFungibleTransfer as Y, prepareManagedBudgetPayload as H, prepareTransfer as j } from "./Budgets/ManagedBudget.js";
|
|
11
11
|
import { Deployable as K } from "./Deployable/Deployable.js";
|
|
12
12
|
import { Contract as X } from "./Deployable/Contract.js";
|
|
@@ -15,7 +15,7 @@ import { DeployableTargetWithRBAC as re, Roles as ae } from "./Deployable/Deploy
|
|
|
15
15
|
import { AllowListIncentive as te, prepareAllowListIncentivePayload as ie } from "./Incentives/AllowListIncentive.js";
|
|
16
16
|
import { CGDAIncentive as de, prepareCGDAIncentivePayload as pe } from "./Incentives/CGDAIncentive.js";
|
|
17
17
|
import { ERC20Incentive as se, prepareERC20IncentivePayload as ce } from "./Incentives/ERC20Incentive.js";
|
|
18
|
-
import { E as Ee, a as ge, I as Ae, i as ye, p as Ce, b as Ie } from "./Incentive-
|
|
18
|
+
import { E as Ee, a as ge, I as Ae, i as ye, p as Ce, b as Ie } from "./Incentive-BwRH0A6j.js";
|
|
19
19
|
import { ERC20VariableIncentive as fe, prepareERC20VariableIncentivePayload as Pe } from "./Incentives/ERC20VariableIncentive.js";
|
|
20
20
|
import { ERC20VariableCriteriaIncentive as Re, gasRebateIncentiveCriteria as Se, prepareERC20VariableCriteriaIncentivePayload as ue } from "./Incentives/ERC20VariableCriteriaIncentive.js";
|
|
21
21
|
import { PointsIncentive as De, preparePointsIncentivePayload as xe } from "./Incentives/PointsIncentive.js";
|
package/package.json
CHANGED
package/src/BoostCore.ts
CHANGED
|
@@ -1281,6 +1281,13 @@ export class BoostCore extends Deployable<
|
|
|
1281
1281
|
* @returns {ManagedBudget}
|
|
1282
1282
|
*/
|
|
1283
1283
|
ManagedBudget(options: DeployablePayloadOrAddress<ManagedBudgetPayload>) {
|
|
1284
|
+
if (
|
|
1285
|
+
typeof options !== 'string' &&
|
|
1286
|
+
!options.authorized.includes(this.assertValidAddress())
|
|
1287
|
+
) {
|
|
1288
|
+
options.authorized = [this.assertValidAddress(), ...options.authorized];
|
|
1289
|
+
options.roles = [Roles.MANAGER, ...options.roles];
|
|
1290
|
+
}
|
|
1284
1291
|
return new ManagedBudget(
|
|
1285
1292
|
{ config: this._config, account: this._account },
|
|
1286
1293
|
options,
|
|
@@ -1301,7 +1308,10 @@ export class BoostCore extends Deployable<
|
|
|
1301
1308
|
ManagedBudgetWithFees(
|
|
1302
1309
|
options: DeployablePayloadOrAddress<ManagedBudgetWithFeesPayload>,
|
|
1303
1310
|
) {
|
|
1304
|
-
if (
|
|
1311
|
+
if (
|
|
1312
|
+
typeof options !== 'string' &&
|
|
1313
|
+
!options.authorized.includes(this.assertValidAddress())
|
|
1314
|
+
) {
|
|
1305
1315
|
options.authorized = [this.assertValidAddress(), ...options.authorized];
|
|
1306
1316
|
options.roles = [Roles.MANAGER, ...options.roles];
|
|
1307
1317
|
}
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
zeroAddress,
|
|
26
26
|
zeroHash,
|
|
27
27
|
} from 'viem';
|
|
28
|
-
import {
|
|
28
|
+
import { ERC20PeggedIncentive as ERC20PeggedIncentiveBases } from '../../dist/deployments.json';
|
|
29
29
|
import type {
|
|
30
30
|
DeployableOptions,
|
|
31
31
|
GenericDeployableParams,
|
|
@@ -119,7 +119,7 @@ export class ERC20PeggedIncentive extends DeployableTarget<
|
|
|
119
119
|
*/
|
|
120
120
|
public static override bases: Record<number, Address> = {
|
|
121
121
|
31337: import.meta.env.VITE_ERC20_INCENTIVE_BASE,
|
|
122
|
-
...(
|
|
122
|
+
...(ERC20PeggedIncentiveBases as Record<number, Address>),
|
|
123
123
|
};
|
|
124
124
|
/**
|
|
125
125
|
* @inheritdoc
|
|
@@ -26,12 +26,13 @@ import {
|
|
|
26
26
|
type Address,
|
|
27
27
|
type ContractEventName,
|
|
28
28
|
type Hex,
|
|
29
|
+
decodeAbiParameters,
|
|
29
30
|
decodeFunctionData,
|
|
30
31
|
encodeAbiParameters,
|
|
31
32
|
parseEventLogs,
|
|
32
33
|
zeroAddress,
|
|
33
34
|
} from 'viem';
|
|
34
|
-
import {
|
|
35
|
+
import { ERC20PeggedVariableCriteriaIncentive as ERC20PeggedVariableCriteriaIncentiveBases } from '../../dist/deployments.json';
|
|
35
36
|
import { SignatureType } from '../Actions/EventAction';
|
|
36
37
|
import type {
|
|
37
38
|
DeployableOptions,
|
|
@@ -149,7 +150,7 @@ export class ERC20PeggedVariableCriteriaIncentive extends DeployableTarget<
|
|
|
149
150
|
*/
|
|
150
151
|
public static override bases: Record<number, Address> = {
|
|
151
152
|
31337: import.meta.env.VITE_ERC20_INCENTIVE_BASE,
|
|
152
|
-
...(
|
|
153
|
+
...(ERC20PeggedVariableCriteriaIncentiveBases as Record<number, Address>),
|
|
153
154
|
};
|
|
154
155
|
/**
|
|
155
156
|
* @inheritdoc
|
|
@@ -660,6 +661,18 @@ export class ERC20PeggedVariableCriteriaIncentive extends DeployableTarget<
|
|
|
660
661
|
[rewardAmount],
|
|
661
662
|
);
|
|
662
663
|
}
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* Decodes claim data for the ERC20PeggedVariableCriteriaIncentive, returning the encoded claim amount.
|
|
667
|
+
* Useful when deriving amount claimed from logs.
|
|
668
|
+
*
|
|
669
|
+
* @public
|
|
670
|
+
* @param {Hex} claimData
|
|
671
|
+
* @returns {BigInt} Returns the reward amount from a claim data payload
|
|
672
|
+
*/
|
|
673
|
+
public decodeClaimData(data: Hex) {
|
|
674
|
+
return BigInt(decodeAbiParameters([{ type: 'uint256' }], data)[0]);
|
|
675
|
+
}
|
|
663
676
|
}
|
|
664
677
|
|
|
665
678
|
/**
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const a=require("./generated-CRD9XfOT.cjs"),i=require("./componentInterfaces-D7r9xJmt.cjs"),A=require("@wagmi/core"),s=require("./errors.cjs"),T=require("./Incentives/AllowListIncentive.cjs"),N=require("./Incentives/CGDAIncentive.cjs"),q=require("./Incentives/ERC20Incentive.cjs"),t=require("viem"),R=require("./deployments-BNFI9vnc.cjs"),E=require("./Deployable/DeployableTarget.cjs"),h=require("./claiming.cjs"),I=require("./utils.cjs"),V=require("./Actions/EventAction.cjs"),D=require("./Incentives/ERC20VariableCriteriaIncentive.cjs"),x=require("./Incentives/ERC20VariableIncentive.cjs"),B=require("./Incentives/PointsIncentive.cjs"),F="0x6080604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6127bf806100bd5f395ff3fe60806040526004361061020e575f3560e01c806354d1f13d11610117578063d54ad2a11161009f578063ec87621c1161006e578063ec87621c14610739578063f04e283e14610763578063f2fde38b1461077f578063fe9fbb801461079b578063fee81cf4146107d75761020e565b8063d54ad2a114610681578063db09da12146106ab578063dcc21361146106e7578063dcc59b6f1461070f5761020e565b80639214fa4d116100e65780639214fa4d1461058d578063a4d66daf146105b7578063bb1757cf146105e1578063be4994f81461061d578063c884ef83146106455761020e565b806354d1f13d14610525578063715018a61461052f57806375b238fc146105395780638da5cb5b146105635761020e565b80632de948071161019a578063474f5a4411610169578063474f5a441461042a5780634a4ee7b1146104675780634e7165a214610483578063514e62fc146104bf578063547d1864146104fb5761020e565b80632de948071461037457806338d52e0f146103b05780634359d28a146103da578063439fab91146104025761020e565b80631cd64df4116101e15780631cd64df4146102b05780631f1cb62b146102ec578063228cb73314610316578063256929621461034057806328d6183b1461034a5761020e565b806301ffc9a71461021257806307621eca1461024e578063183a4f6e146102785780631c10893f14610294575b5f80fd5b34801561021d575f80fd5b5061023860048036038101906102339190611a8c565b610813565b6040516102459190611ad1565b60405180910390f35b348015610259575f80fd5b5061026261088c565b60405161026f9190611b02565b60405180910390f35b610292600480360381019061028d9190611b45565b610894565b005b6102ae60048036038101906102a99190611bca565b6108a1565b005b3480156102bb575f80fd5b506102d660048036038101906102d19190611bca565b6108b7565b6040516102e39190611ad1565b60405180910390f35b3480156102f7575f80fd5b506103006108cd565b60405161030d9190611c17565b60405180910390f35b348015610321575f80fd5b5061032a6108f2565b6040516103379190611b02565b60405180910390f35b6103486108f7565b005b348015610355575f80fd5b5061035e610948565b60405161036b9190611c3f565b60405180910390f35b34801561037f575f80fd5b5061039a60048036038101906103959190611c58565b61096f565b6040516103a79190611b02565b60405180910390f35b3480156103bb575f80fd5b506103c4610988565b6040516103d19190611c17565b60405180910390f35b3480156103e5575f80fd5b5061040060048036038101906103fb9190611d39565b6109ad565b005b34801561040d575f80fd5b5061042860048036038101906104239190611e0c565b610abb565b005b348015610435575f80fd5b50610450600480360381019061044b9190611e0c565b610d45565b60405161045e929190611e57565b60405180910390f35b610481600480360381019061047c9190611bca565b610eaf565b005b34801561048e575f80fd5b506104a960048036038101906104a49190611e0c565b610ec5565b6040516104b69190611eee565b60405180910390f35b3480156104ca575f80fd5b506104e560048036038101906104e09190611bca565b610f9a565b6040516104f29190611ad1565b60405180910390f35b348015610506575f80fd5b5061050f610fb1565b60405161051c9190611b02565b60405180910390f35b61052d610fb7565b005b610537610ff0565b005b348015610544575f80fd5b5061054d611003565b60405161055a9190611b02565b60405180910390f35b34801561056e575f80fd5b50610577611008565b6040516105849190611c17565b60405180910390f35b348015610598575f80fd5b506105a1611030565b6040516105ae9190611c17565b60405180910390f35b3480156105c2575f80fd5b506105cb611058565b6040516105d89190611b02565b60405180910390f35b3480156105ec575f80fd5b5061060760048036038101906106029190611f0e565b61105e565b6040516106149190611ad1565b60405180910390f35b348015610628575f80fd5b50610643600480360381019061063e9190611fc0565b611239565b005b348015610650575f80fd5b5061066b60048036038101906106669190611c58565b6112ef565b6040516106789190611ad1565b60405180910390f35b34801561068c575f80fd5b5061069561130c565b6040516106a29190611b02565b60405180910390f35b3480156106b6575f80fd5b506106d160048036038101906106cc9190611f0e565b611312565b6040516106de9190611ad1565b60405180910390f35b3480156106f2575f80fd5b5061070d60048036038101906107089190611fc0565b611355565b005b34801561071a575f80fd5b5061072361140b565b6040516107309190611b02565b60405180910390f35b348015610744575f80fd5b5061074d611411565b60405161075a9190611b02565b60405180910390f35b61077d60048036038101906107789190611c58565b611416565b005b61079960048036038101906107949190611c58565b611454565b005b3480156107a6575f80fd5b506107c160048036038101906107bc9190611c58565b61147d565b6040516107ce9190611ad1565b60405180910390f35b3480156107e2575f80fd5b506107fd60048036038101906107f89190611c58565b6114d0565b60405161080a9190611b02565b60405180910390f35b5f7f56586338000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806108855750610884826114e9565b5b9050919050565b5f8054905090565b61089e3382611562565b50565b6108a9611571565b6108b382826115a8565b5050565b5f81826108c38561096f565b1614905092915050565b60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5481565b5f6109006115b8565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f7f5658633800000000000000000000000000000000000000000000000000000000905090565b5f638b78c6d8600c52815f526020600c20549050919050565b60035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026109b8816115c2565b8282905085859050146109f7576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b85859050811015610ab3575f848483818110610a1857610a1761203e565b5b9050602002016020810190610a2d9190612095565b90506001151581151503610a7257610a6d878784818110610a5157610a5061203e565b5b9050602002016020810190610a669190611c58565b60016115a8565b610aa5565b610aa4878784818110610a8857610a8761203e565b5b9050602002016020810190610a9d9190611c58565b6001611562565b5b5080806001019150506109f9565b505050505050565b5f610ac46115f7565b90508054600382558015610af65760018160011c14303b10610aed5763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f8383810190610b0791906121c9565b90505f81604001511480610b1e57505f8160600151145b15610b55576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f816060015190505f610b8a30845f015173ffffffffffffffffffffffffffffffffffffffff1661162090919063ffffffff16565b905081811015610bd857825f015181836040517f5c54305e000000000000000000000000000000000000000000000000000000008152600401610bcf939291906121f4565b60405180910390fd5b825f015160035f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826020015160075f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082604001515f819055508260600151600581905550610c7d33611653565b610c8c83608001516001611729565b826020015173ffffffffffffffffffffffffffffffffffffffff16835f015173ffffffffffffffffffffffffffffffffffffffff167fd20715546497e6d32bc9b61b35416a25a8cc41d2fb7f389a1bb26dc040213a3b856040015186606001518760800151604051610d0093929190612229565b60405180910390a35050508015610d40576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f806001610d52816115c2565b5f8585810190610d629190612377565b90505f8160200151806020019051810190610d7d91906123d2565b90508060055f828254610d90919061242a565b92505081905550610de6825f01518260035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661176a9092919063ffffffff16565b815f015173ffffffffffffffffffffffffffffffffffffffff167f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16845f015184604051602001610e5a939291906124c2565b604051602081830303815290604052604051610e769190611eee565b60405180910390a28060035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16945094505050509250929050565b610eb7611571565b610ec18282611562565b5050565b60605f8383810190610ed791906121c9565b90505f81606001519050604051806080016040528060016002811115610f0057610eff6124fe565b5b8152602001835f015173ffffffffffffffffffffffffffffffffffffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff168152602001604051806020016040528084815250604051602001610f5f9190612554565b604051602081830303815290604052815250604051602001610f81919061266a565b6040516020818303038152906040529250505092915050565b5f8082610fa68561096f565b161415905092915050565b60025481565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b610ff8611571565b6110015f6117b3565b565b600281565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b5f60075f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60055481565b5f611067611571565b5f8383810190611077919061270f565b90505f816020015180602001905181019061109291906123d2565b905061109e8682611879565b6110d4576040517f6247a84e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600554816006546110e59190612756565b111561111d576040517f360e42e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060065f82825461112e9190612756565b92505081905550600160045f8282546111479190612756565b9250508190555061119a868260035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1661176a9092919063ffffffff16565b8573ffffffffffffffffffffffffffffffffffffffff167f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d360035f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff168884604051602001611208939291906124c2565b6040516020818303038152906040526040516112249190611eee565b60405180910390a26001925050509392505050565b6002611244816115c2565b828290508585905014611283576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b858590508110156112e7576112da8686838181106112a6576112a561203e565b5b90506020020160208101906112bb9190611c58565b8585848181106112ce576112cd61203e565b5b905060200201356115a8565b8080600101915050611285565b505050505050565b6001602052805f5260405f205f915054906101000a900460ff1681565b60065481565b5f808383810190611323919061270f565b90505f816020015180602001905181019061133e91906123d2565b905061134a8682611879565b925050509392505050565b6002611360816115c2565b82829050858590501461139f576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b85859050811015611403576113f68686838181106113c2576113c161203e565b5b90506020020160208101906113d79190611c58565b8585848181106113ea576113e961203e565b5b90506020020135611562565b80806001019150506113a1565b505050505050565b60045481565b600181565b61141e611571565b63389a75e1600c52805f526020600c20805442111561144457636f5e88185f526004601cfd5b5f815550611451816117b3565b50565b61145c611571565b8060601b61147157637448fbae5f526004601cfd5b61147a816117b3565b50565b5f8173ffffffffffffffffffffffffffffffffffffffff1661149d611008565b73ffffffffffffffffffffffffffffffffffffffff1614806114c957506114c8826002600117610f9a565b5b9050919050565b5f63389a75e1600c52815f526020600c20549050919050565b5f7fa9216705000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061155b575061155a826118e8565b5b9050919050565b61156d82825f611961565b5050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146115a6576382b429005f526004601cfd5b565b6115b482826001611961565b5050565b5f6202a300905090565b638b78c6d8195433146115f457638b78c6d8600c52335f52806020600c2054166115f3576382b429005f526004601cfd5b5b50565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b5f816014526f70a082310000000000000000000000005f5260208060246010865afa601f3d111660205102905092915050565b61165b6119b9565b156116d3577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780541561169557630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a350611726565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b638b78c6d8600c52815f52806020600c205580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a35050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af13d1560015f511417166117aa576390b8ec185f526004601cfd5b5f603452505050565b6117bb6119b9565b15611820577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b8217815550611876565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f60015f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff161580156118e05750600554826006546118dd9190612756565b11155b905092915050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061195a5750611959826119bd565b5b9050919050565b638b78c6d8600c52825f526020600c2080548381178361198357848216821890505b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f90565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611a6b81611a37565b8114611a75575f80fd5b50565b5f81359050611a8681611a62565b92915050565b5f60208284031215611aa157611aa0611a2f565b5b5f611aae84828501611a78565b91505092915050565b5f8115159050919050565b611acb81611ab7565b82525050565b5f602082019050611ae45f830184611ac2565b92915050565b5f819050919050565b611afc81611aea565b82525050565b5f602082019050611b155f830184611af3565b92915050565b611b2481611aea565b8114611b2e575f80fd5b50565b5f81359050611b3f81611b1b565b92915050565b5f60208284031215611b5a57611b59611a2f565b5b5f611b6784828501611b31565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611b9982611b70565b9050919050565b611ba981611b8f565b8114611bb3575f80fd5b50565b5f81359050611bc481611ba0565b92915050565b5f8060408385031215611be057611bdf611a2f565b5b5f611bed85828601611bb6565b9250506020611bfe85828601611b31565b9150509250929050565b611c1181611b8f565b82525050565b5f602082019050611c2a5f830184611c08565b92915050565b611c3981611a37565b82525050565b5f602082019050611c525f830184611c30565b92915050565b5f60208284031215611c6d57611c6c611a2f565b5b5f611c7a84828501611bb6565b91505092915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112611ca457611ca3611c83565b5b8235905067ffffffffffffffff811115611cc157611cc0611c87565b5b602083019150836020820283011115611cdd57611cdc611c8b565b5b9250929050565b5f8083601f840112611cf957611cf8611c83565b5b8235905067ffffffffffffffff811115611d1657611d15611c87565b5b602083019150836020820283011115611d3257611d31611c8b565b5b9250929050565b5f805f8060408587031215611d5157611d50611a2f565b5b5f85013567ffffffffffffffff811115611d6e57611d6d611a33565b5b611d7a87828801611c8f565b9450945050602085013567ffffffffffffffff811115611d9d57611d9c611a33565b5b611da987828801611ce4565b925092505092959194509250565b5f8083601f840112611dcc57611dcb611c83565b5b8235905067ffffffffffffffff811115611de957611de8611c87565b5b602083019150836001820283011115611e0557611e04611c8b565b5b9250929050565b5f8060208385031215611e2257611e21611a2f565b5b5f83013567ffffffffffffffff811115611e3f57611e3e611a33565b5b611e4b85828601611db7565b92509250509250929050565b5f604082019050611e6a5f830185611af3565b611e776020830184611c08565b9392505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f611ec082611e7e565b611eca8185611e88565b9350611eda818560208601611e98565b611ee381611ea6565b840191505092915050565b5f6020820190508181035f830152611f068184611eb6565b905092915050565b5f805f60408486031215611f2557611f24611a2f565b5b5f611f3286828701611bb6565b935050602084013567ffffffffffffffff811115611f5357611f52611a33565b5b611f5f86828701611db7565b92509250509250925092565b5f8083601f840112611f8057611f7f611c83565b5b8235905067ffffffffffffffff811115611f9d57611f9c611c87565b5b602083019150836020820283011115611fb957611fb8611c8b565b5b9250929050565b5f805f8060408587031215611fd857611fd7611a2f565b5b5f85013567ffffffffffffffff811115611ff557611ff4611a33565b5b61200187828801611c8f565b9450945050602085013567ffffffffffffffff81111561202457612023611a33565b5b61203087828801611f6b565b925092505092959194509250565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b61207481611ab7565b811461207e575f80fd5b50565b5f8135905061208f8161206b565b92915050565b5f602082840312156120aa576120a9611a2f565b5b5f6120b784828501612081565b91505092915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b6120fa82611ea6565b810181811067ffffffffffffffff82111715612119576121186120c4565b5b80604052505050565b5f61212b611a26565b905061213782826120f1565b919050565b5f80fd5b5f60a08284031215612155576121546120c0565b5b61215f60a0612122565b90505f61216e84828501611bb6565b5f83015250602061218184828501611bb6565b602083015250604061219584828501611b31565b60408301525060606121a984828501611b31565b60608301525060806121bd84828501611bb6565b60808301525092915050565b5f60a082840312156121de576121dd611a2f565b5b5f6121eb84828501612140565b91505092915050565b5f6060820190506122075f830186611c08565b6122146020830185611af3565b6122216040830184611af3565b949350505050565b5f60608201905061223c5f830186611af3565b6122496020830185611af3565b6122566040830184611c08565b949350505050565b5f80fd5b5f67ffffffffffffffff82111561227c5761227b6120c4565b5b61228582611ea6565b9050602081019050919050565b828183375f83830152505050565b5f6122b26122ad84612262565b612122565b9050828152602081018484840111156122ce576122cd61225e565b5b6122d9848285612292565b509392505050565b5f82601f8301126122f5576122f4611c83565b5b81356123058482602086016122a0565b91505092915050565b5f60408284031215612323576123226120c0565b5b61232d6040612122565b90505f61233c84828501611bb6565b5f83015250602082013567ffffffffffffffff81111561235f5761235e61213c565b5b61236b848285016122e1565b60208301525092915050565b5f6020828403121561238c5761238b611a2f565b5b5f82013567ffffffffffffffff8111156123a9576123a8611a33565b5b6123b58482850161230e565b91505092915050565b5f815190506123cc81611b1b565b92915050565b5f602082840312156123e7576123e6611a2f565b5b5f6123f4848285016123be565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61243482611aea565b915061243f83611aea565b9250828203905081811115612457576124566123fd565b5b92915050565b5f8160601b9050919050565b5f6124738261245d565b9050919050565b5f61248482612469565b9050919050565b61249c61249782611b8f565b61247a565b82525050565b5f819050919050565b6124bc6124b782611aea565b6124a2565b82525050565b5f6124cd828661248b565b6014820191506124dd828561248b565b6014820191506124ed82846124ab565b602082019150819050949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b61253481611aea565b82525050565b602082015f82015161254e5f85018261252b565b50505050565b5f6020820190506125675f83018461253a565b92915050565b6003811061257e5761257d6124fe565b5b50565b5f81905061258e8261256d565b919050565b5f61259d82612581565b9050919050565b6125ad81612593565b82525050565b6125bc81611b8f565b82525050565b5f82825260208201905092915050565b5f6125dc82611e7e565b6125e681856125c2565b93506125f6818560208601611e98565b6125ff81611ea6565b840191505092915050565b5f608083015f83015161261f5f8601826125a4565b50602083015161263260208601826125b3565b50604083015161264560408601826125b3565b506060830151848203606086015261265d82826125d2565b9150508091505092915050565b5f6020820190508181035f830152612682818461260a565b905092915050565b5f6040828403121561269f5761269e6120c0565b5b6126a96040612122565b90505f82013567ffffffffffffffff8111156126c8576126c761213c565b5b6126d4848285016122e1565b5f83015250602082013567ffffffffffffffff8111156126f7576126f661213c565b5b612703848285016122e1565b60208301525092915050565b5f6020828403121561272457612723611a2f565b5b5f82013567ffffffffffffffff81111561274157612740611a33565b5b61274d8482850161268a565b91505092915050565b5f61276082611aea565b915061276b83611aea565b9250828201905080821115612783576127826123fd565b5b9291505056fea2646970667358221220dac302ea2cd5b1bd043f32307b4b55326db7520539ec80e9572f86826d8305f064736f6c634300081a0033",m=class m extends E.DeployableTarget{constructor(){super(...arguments),this.abi=a.v}async owner(f){return await a.qI(this._config,{address:this.assertValidAddress(),args:[],...f})}async currentReward(f){return await a.VI(this._config,{address:this.assertValidAddress(),args:[],...f})}async claims(f){return await a.xI(this._config,{address:this.assertValidAddress(),args:[],...f})}async totalClaimed(f){return await a.JI(this._config,{address:this.assertValidAddress(),args:[],...f})}async claimed(f,b){return await a.BI(this._config,{address:this.assertValidAddress(),args:[f],...b})}async asset(f){return await a.HI(this._config,{address:this.assertValidAddress(),...f})}async peg(f){return await a.UI(this._config,{address:this.assertValidAddress(),...f})}async reward(f){return await a.ZI(this._config,{address:this.assertValidAddress(),...f})}async limit(f){return await a.DI(this._config,{address:this.assertValidAddress(),...f})}async claim(f,b){return await this.awaitResult(this.claimRaw(f,b))}async claimRaw(f,b){const{request:e,result:d}=await a.mh(this._config,{address:this.assertValidAddress(),args:[h.prepareClaimPayload(f)],...this.optionallyAttachAccount(),...b});return{hash:await a.YI(this._config,e),result:d}}async clawback(f,b){return await this.awaitResult(this.clawbackRaw(f,b))}async clawbackRaw(f,b){const{request:e,result:d}=await a.bh(this._config,{address:this.assertValidAddress(),args:[h.prepareClaimPayload(f)],...this.optionallyAttachAccount(),...b});return{hash:await a.eh(this._config,e),result:d}}async isClaimable(f,b){return await a._I(this._config,{address:this.assertValidAddress(),args:[f.target,f.data],...b})}async getPeg(f){return await a.FI(this._config,{address:this.assertValidAddress(),args:[],...f})}async getTotalBudget(f){return await this.limit(f)}async canBeClaimed(f){return await this.getRemainingClaimPotential(f)>0n}async getRemainingClaimPotential(f){const[b,e]=await Promise.all([this.claims(f),this.limit(f)]);return e-b}buildParameters(f,b){const[e,d]=this.validateDeploymentConfig(f,b);return{abi:a.v,bytecode:F,args:[_(e)],...this.optionallyAttachAccount(d.account)}}buildClawbackData(f){return t.encodeAbiParameters([{type:"uint256"}],[f])}buildClaimData(f){return t.encodeAbiParameters([{type:"uint256",name:"rewardAmount"}],[f])}};m.bases={31337:void 0,...R.ERC20Incentive},m.registryType=I.RegistryType.INCENTIVE;let y=m;function _({asset:l,peg:f,reward:b,limit:e,manager:d=t.zeroAddress}){return t.encodeAbiParameters([{type:"address",name:"asset"},{type:"address",name:"peg"},{type:"uint256",name:"reward"},{type:"uint256",name:"limit"},{type:"address",name:"manager"}],[l,f,b,e,d])}const $="0x6080604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b612e66806100bd5f395ff3fe60806040526004361061022f575f3560e01c8063715018a61161012d578063c884ef83116100aa578063ec87621c1161006e578063ec87621c146107db578063f04e283e14610805578063f2fde38b14610821578063fe9fbb801461083d578063fee81cf4146108795761022f565b8063c884ef83146106e7578063d54ad2a114610723578063db09da121461074d578063dcc2136114610789578063dcc59b6f146107b15761022f565b8063a4d66daf116100f1578063a4d66daf14610605578063a871ced21461062f578063bb1757cf14610659578063be4994f814610695578063c213f3f9146106bd5761022f565b8063715018a61461055057806375b238fc1461055a57806377548687146105845780638da5cb5b146105b15780639214fa4d146105db5761022f565b80632de94807116101bb5780634a4ee7b11161017f5780634a4ee7b1146104885780634e7165a2146104a4578063514e62fc146104e0578063547d18641461051c57806354d1f13d146105465761022f565b80632de948071461039557806338d52e0f146103d15780634359d28a146103fb578063439fab9114610423578063474f5a441461044b5761022f565b80631cd64df4116102025780631cd64df4146102d15780631f1cb62b1461030d578063228cb73314610337578063256929621461036157806328d6183b1461036b5761022f565b806301ffc9a71461023357806307621eca1461026f578063183a4f6e146102995780631c10893f146102b5575b5f80fd5b34801561023e575f80fd5b5061025960048036038101906102549190611e0d565b6108b5565b6040516102669190611e52565b60405180910390f35b34801561027a575f80fd5b5061028361092e565b6040516102909190611e83565b60405180910390f35b6102b360048036038101906102ae9190611ec6565b610936565b005b6102cf60048036038101906102ca9190611f4b565b610943565b005b3480156102dc575f80fd5b506102f760048036038101906102f29190611f4b565b610959565b6040516103049190611e52565b60405180910390f35b348015610318575f80fd5b5061032161096f565b60405161032e9190611f98565b60405180910390f35b348015610342575f80fd5b5061034b610994565b6040516103589190611e83565b60405180910390f35b610369610999565b005b348015610376575f80fd5b5061037f6109ea565b60405161038c9190611fc0565b60405180910390f35b3480156103a0575f80fd5b506103bb60048036038101906103b69190611fd9565b610a11565b6040516103c89190611e83565b60405180910390f35b3480156103dc575f80fd5b506103e5610a2a565b6040516103f29190611f98565b60405180910390f35b348015610406575f80fd5b50610421600480360381019061041c91906120ba565b610a4f565b005b34801561042e575f80fd5b506104496004803603810190610444919061218d565b610b5d565b005b348015610456575f80fd5b50610471600480360381019061046c919061218d565b610e9c565b60405161047f9291906121d8565b60405180910390f35b6104a2600480360381019061049d9190611f4b565b611006565b005b3480156104af575f80fd5b506104ca60048036038101906104c5919061218d565b61101c565b6040516104d7919061226f565b60405180910390f35b3480156104eb575f80fd5b5061050660048036038101906105019190611f4b565b6110f1565b6040516105139190611e52565b60405180910390f35b348015610527575f80fd5b50610530611108565b60405161053d9190611e83565b60405180910390f35b61054e61110e565b005b610558611147565b005b348015610565575f80fd5b5061056e61115a565b60405161057b9190611e83565b60405180910390f35b34801561058f575f80fd5b5061059861115f565b6040516105a89493929190612335565b60405180910390f35b3480156105bc575f80fd5b506105c56111b4565b6040516105d29190611f98565b60405180910390f35b3480156105e6575f80fd5b506105ef6111dc565b6040516105fc9190611f98565b60405180910390f35b348015610610575f80fd5b50610619611204565b6040516106269190611e83565b60405180910390f35b34801561063a575f80fd5b5061064361120a565b6040516106509190612407565b60405180910390f35b348015610664575f80fd5b5061067f600480360381019061067a9190612420565b6112d9565b60405161068c9190611e52565b60405180910390f35b3480156106a0575f80fd5b506106bb60048036038101906106b691906124d2565b611506565b005b3480156106c8575f80fd5b506106d16115bc565b6040516106de9190611e83565b60405180910390f35b3480156106f2575f80fd5b5061070d60048036038101906107089190611fd9565b6115c5565b60405161071a9190611e52565b60405180910390f35b34801561072e575f80fd5b506107376115e2565b6040516107449190611e83565b60405180910390f35b348015610758575f80fd5b50610773600480360381019061076e9190612420565b6115e8565b6040516107809190611e52565b60405180910390f35b348015610794575f80fd5b506107af60048036038101906107aa91906124d2565b61165f565b005b3480156107bc575f80fd5b506107c5611715565b6040516107d29190611e83565b60405180910390f35b3480156107e6575f80fd5b506107ef61171b565b6040516107fc9190611e83565b60405180910390f35b61081f600480360381019061081a9190611fd9565b611720565b005b61083b60048036038101906108369190611fd9565b61175e565b005b348015610848575f80fd5b50610863600480360381019061085e9190611fd9565b611787565b6040516108709190611e52565b60405180910390f35b348015610884575f80fd5b5061089f600480360381019061089a9190611fd9565b6117da565b6040516108ac9190611e83565b60405180910390f35b5f7ff60c99c9000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109275750610926826117f3565b5b9050919050565b5f8054905090565b610940338261186c565b50565b61094b61187b565b61095582826118b2565b5050565b5f818261096585610a11565b1614905092915050565b600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5481565b5f6109a26118c2565b67ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b5f7ff60c99c900000000000000000000000000000000000000000000000000000000905090565b5f638b78c6d8600c52815f526020600c20549050919050565b60065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002610a5a816118cc565b828290508585905014610a99576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b85859050811015610b55575f848483818110610aba57610ab9612550565b5b9050602002016020810190610acf91906125a7565b90506001151581151503610b1457610b0f878784818110610af357610af2612550565b5b9050602002016020810190610b089190611fd9565b60016118b2565b610b47565b610b46878784818110610b2a57610b29612550565b5b9050602002016020810190610b3f9190611fd9565b600161186c565b5b508080600101915050610a9b565b505050505050565b5f610b66611901565b90508054600382558015610b985760018160011c14303b10610b8f5763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f8383810190610ba991906127f0565b90505f816060015103610be8576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f816060015190505f610c1d30845f015173ffffffffffffffffffffffffffffffffffffffff1661192a90919063ffffffff16565b905081811015610c6b57825f015181836040517f5c54305e000000000000000000000000000000000000000000000000000000008152600401610c629392919061281c565b60405180910390fd5b5f8360c001519050835f015160065f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508360200151600a5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083604001515f8190555083606001516008819055508360a00151600b819055508060035f820151815f015f6101000a81548160ff02191690836001811115610d4557610d4461228f565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050610dc73361195d565b610dd684608001516001611a33565b836020015173ffffffffffffffffffffffffffffffffffffffff16845f015173ffffffffffffffffffffffffffffffffffffffff167fdc505a50c6f2c816d981a377c8177e2604d8302821a502bc9f742e0748f338428660400151876060015188608001518960a001518a60c00151604051610e56959493929190612851565b60405180910390a3505050508015610e97576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f806001610ea9816118cc565b5f8585810190610eb991906129bc565b90505f8160200151806020019051810190610ed49190612a17565b90508060085f828254610ee79190612a6f565b92505081905550610f3d825f01518260065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a749092919063ffffffff16565b815f015173ffffffffffffffffffffffffffffffffffffffff167f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d360065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16845f015184604051602001610fb193929190612b07565b604051602081830303815290604052604051610fcd919061226f565b60405180910390a28060065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16945094505050509250929050565b61100e61187b565b611018828261186c565b5050565b60605f838381019061102e91906127f0565b90505f816060015190506040518060800160405280600160028111156110575761105661228f565b5b8152602001835f015173ffffffffffffffffffffffffffffffffffffffff1681526020013073ffffffffffffffffffffffffffffffffffffffff1681526020016040518060200160405280848152506040516020016110b69190612b6c565b6040516020818303038152906040528152506040516020016110d89190612c73565b6040516020818303038152906040529250505092915050565b5f80826110fd85610a11565b161415905092915050565b60025481565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b61114f61187b565b6111585f611abd565b565b600281565b6003805f015f9054906101000a900460ff1690806001015490806002015f9054906101000a900460ff16908060020160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905084565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392754905090565b5f600a5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60085481565b611212611d55565b60036040518060800160405290815f82015f9054906101000a900460ff1660018111156112425761124161228f565b5b60018111156112545761125361228f565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905090565b5f6112e261187b565b5f83838101906112f29190612d18565b90505f816020015180602001905181019061130d9190612a17565b90505f805f540361132057819050611343565b670de0b6b3a7640000825f546113369190612d5f565b6113409190612dcd565b90505b5f600b54141580156113565750600b5481115b1561136157600b5490505b61136a81611b83565b6113a0576040517f6247a84e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600854816009546113b19190612dfd565b11156113e9576040517f360e42e100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060095f8282546113fa9190612dfd565b92505081905550600160075f8282546114139190612dfd565b92505081905550611466878260065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16611a749092919063ffffffff16565b8673ffffffffffffffffffffffffffffffffffffffff167f9ad2e7a4af16dceda9cce4274b2f59c328d8c012eb0e15eb5e1e73b7d8f264d360065f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1689846040516020016114d493929190612b07565b6040516020818303038152906040526040516114f0919061226f565b60405180910390a2600193505050509392505050565b6002611511816118cc565b828290508585905014611550576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b858590508110156115b4576115a786868381811061157357611572612550565b5b90506020020160208101906115889190611fd9565b85858481811061159b5761159a612550565b5b905060200201356118b2565b8080600101915050611552565b505050505050565b5f600b54905090565b6001602052805f5260405f205f915054906101000a900460ff1681565b60095481565b5f805f84848101906115fa9190612d18565b90505f81602001518060200190518101906116159190612a17565b90505f8054036116275780925061164a565b670de0b6b3a7640000815f5461163d9190612d5f565b6116479190612dcd565b92505b61165383611b83565b93505050509392505050565b600261166a816118cc565b8282905085859050146116a9576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b8585905081101561170d576117008686838181106116cc576116cb612550565b5b90506020020160208101906116e19190611fd9565b8585848181106116f4576116f3612550565b5b9050602002013561186c565b80806001019150506116ab565b505050505050565b60075481565b600181565b61172861187b565b63389a75e1600c52805f526020600c20805442111561174e57636f5e88185f526004601cfd5b5f81555061175b81611abd565b50565b61176661187b565b8060601b61177b57637448fbae5f526004601cfd5b61178481611abd565b50565b5f8173ffffffffffffffffffffffffffffffffffffffff166117a76111b4565b73ffffffffffffffffffffffffffffffffffffffff1614806117d357506117d28260026001176110f1565b5b9050919050565b5f63389a75e1600c52815f526020600c20549050919050565b5f7f56586338000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611865575061186482611b9e565b5b9050919050565b61187782825f611c17565b5050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146118b0576382b429005f526004601cfd5b565b6118be82826001611c17565b5050565b5f6202a300905090565b638b78c6d8195433146118fe57638b78c6d8600c52335f52806020600c2054166118fd576382b429005f526004601cfd5b5b50565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b5f816014526f70a082310000000000000000000000005f5260208060246010865afa601f3d111660205102905092915050565b611965611c6f565b156119dd577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392780541561199f57630dc149f05f526004601cfd5b8160601b60601c9150811560ff1b82178155815f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a350611a30565b8060601b60601c9050807fffffffffffffffffffffffffffffffffffffffffffffffffffffffff7487392755805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a35b50565b638b78c6d8600c52815f52806020600c205580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a35050565b81601452806034526fa9059cbb0000000000000000000000005f5260205f604460105f875af13d1560015f51141716611ab4576390b8ec185f526004601cfd5b5f603452505050565b611ac5611c6f565b15611b2a577fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3811560ff1b8217815550611b80565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739278160601b60601c91508181547f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a3818155505b50565b5f60085482600954611b959190612dfd565b11159050919050565b5f7fa9216705000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611c105750611c0f82611c73565b5b9050919050565b638b78c6d8600c52825f526020600c20805483811783611c3957848216821890505b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b5f90565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611ce55750611ce482611cec565b5b9050919050565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60405180608001604052805f6001811115611d7357611d7261228f565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611dec81611db8565b8114611df6575f80fd5b50565b5f81359050611e0781611de3565b92915050565b5f60208284031215611e2257611e21611db0565b5b5f611e2f84828501611df9565b91505092915050565b5f8115159050919050565b611e4c81611e38565b82525050565b5f602082019050611e655f830184611e43565b92915050565b5f819050919050565b611e7d81611e6b565b82525050565b5f602082019050611e965f830184611e74565b92915050565b611ea581611e6b565b8114611eaf575f80fd5b50565b5f81359050611ec081611e9c565b92915050565b5f60208284031215611edb57611eda611db0565b5b5f611ee884828501611eb2565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f611f1a82611ef1565b9050919050565b611f2a81611f10565b8114611f34575f80fd5b50565b5f81359050611f4581611f21565b92915050565b5f8060408385031215611f6157611f60611db0565b5b5f611f6e85828601611f37565b9250506020611f7f85828601611eb2565b9150509250929050565b611f9281611f10565b82525050565b5f602082019050611fab5f830184611f89565b92915050565b611fba81611db8565b82525050565b5f602082019050611fd35f830184611fb1565b92915050565b5f60208284031215611fee57611fed611db0565b5b5f611ffb84828501611f37565b91505092915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261202557612024612004565b5b8235905067ffffffffffffffff81111561204257612041612008565b5b60208301915083602082028301111561205e5761205d61200c565b5b9250929050565b5f8083601f84011261207a57612079612004565b5b8235905067ffffffffffffffff81111561209757612096612008565b5b6020830191508360208202830111156120b3576120b261200c565b5b9250929050565b5f805f80604085870312156120d2576120d1611db0565b5b5f85013567ffffffffffffffff8111156120ef576120ee611db4565b5b6120fb87828801612010565b9450945050602085013567ffffffffffffffff81111561211e5761211d611db4565b5b61212a87828801612065565b925092505092959194509250565b5f8083601f84011261214d5761214c612004565b5b8235905067ffffffffffffffff81111561216a57612169612008565b5b6020830191508360018202830111156121865761218561200c565b5b9250929050565b5f80602083850312156121a3576121a2611db0565b5b5f83013567ffffffffffffffff8111156121c0576121bf611db4565b5b6121cc85828601612138565b92509250509250929050565b5f6040820190506121eb5f830185611e74565b6121f86020830184611f89565b9392505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f612241826121ff565b61224b8185612209565b935061225b818560208601612219565b61226481612227565b840191505092915050565b5f6020820190508181035f8301526122878184612237565b905092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600281106122cd576122cc61228f565b5b50565b5f8190506122dd826122bc565b919050565b5f6122ec826122d0565b9050919050565b6122fc816122e2565b82525050565b5f819050919050565b61231481612302565b82525050565b5f60ff82169050919050565b61232f8161231a565b82525050565b5f6080820190506123485f8301876122f3565b612355602083018661230b565b6123626040830185612326565b61236f6060830184611f89565b95945050505050565b612381816122e2565b82525050565b61239081612302565b82525050565b61239f8161231a565b82525050565b6123ae81611f10565b82525050565b608082015f8201516123c85f850182612378565b5060208201516123db6020850182612387565b5060408201516123ee6040850182612396565b50606082015161240160608501826123a5565b50505050565b5f60808201905061241a5f8301846123b4565b92915050565b5f805f6040848603121561243757612436611db0565b5b5f61244486828701611f37565b935050602084013567ffffffffffffffff81111561246557612464611db4565b5b61247186828701612138565b92509250509250925092565b5f8083601f84011261249257612491612004565b5b8235905067ffffffffffffffff8111156124af576124ae612008565b5b6020830191508360208202830111156124cb576124ca61200c565b5b9250929050565b5f805f80604085870312156124ea576124e9611db0565b5b5f85013567ffffffffffffffff81111561250757612506611db4565b5b61251387828801612010565b9450945050602085013567ffffffffffffffff81111561253657612535611db4565b5b6125428782880161247d565b925092505092959194509250565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b61258681611e38565b8114612590575f80fd5b50565b5f813590506125a18161257d565b92915050565b5f602082840312156125bc576125bb611db0565b5b5f6125c984828501612593565b91505092915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b61260c82612227565b810181811067ffffffffffffffff8211171561262b5761262a6125d6565b5b80604052505050565b5f61263d611da7565b90506126498282612603565b919050565b5f80fd5b6002811061265e575f80fd5b50565b5f8135905061266f81612652565b92915050565b61267e81612302565b8114612688575f80fd5b50565b5f8135905061269981612675565b92915050565b6126a88161231a565b81146126b2575f80fd5b50565b5f813590506126c38161269f565b92915050565b5f608082840312156126de576126dd6125d2565b5b6126e86080612634565b90505f6126f784828501612661565b5f83015250602061270a8482850161268b565b602083015250604061271e848285016126b5565b604083015250606061273284828501611f37565b60608301525092915050565b5f6101408284031215612754576127536125d2565b5b61275e60e0612634565b90505f61276d84828501611f37565b5f83015250602061278084828501611f37565b602083015250604061279484828501611eb2565b60408301525060606127a884828501611eb2565b60608301525060806127bc84828501611f37565b60808301525060a06127d084828501611eb2565b60a08301525060c06127e4848285016126c9565b60c08301525092915050565b5f610140828403121561280657612805611db0565b5b5f6128138482850161273e565b91505092915050565b5f60608201905061282f5f830186611f89565b61283c6020830185611e74565b6128496040830184611e74565b949350505050565b5f610100820190506128655f830188611e74565b6128726020830187611e74565b61287f6040830186611f89565b61288c6060830185611e74565b61289960808301846123b4565b9695505050505050565b5f80fd5b5f67ffffffffffffffff8211156128c1576128c06125d6565b5b6128ca82612227565b9050602081019050919050565b828183375f83830152505050565b5f6128f76128f2846128a7565b612634565b905082815260208101848484011115612913576129126128a3565b5b61291e8482856128d7565b509392505050565b5f82601f83011261293a57612939612004565b5b813561294a8482602086016128e5565b91505092915050565b5f60408284031215612968576129676125d2565b5b6129726040612634565b90505f61298184828501611f37565b5f83015250602082013567ffffffffffffffff8111156129a4576129a361264e565b5b6129b084828501612926565b60208301525092915050565b5f602082840312156129d1576129d0611db0565b5b5f82013567ffffffffffffffff8111156129ee576129ed611db4565b5b6129fa84828501612953565b91505092915050565b5f81519050612a1181611e9c565b92915050565b5f60208284031215612a2c57612a2b611db0565b5b5f612a3984828501612a03565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f612a7982611e6b565b9150612a8483611e6b565b9250828203905081811115612a9c57612a9b612a42565b5b92915050565b5f8160601b9050919050565b5f612ab882612aa2565b9050919050565b5f612ac982612aae565b9050919050565b612ae1612adc82611f10565b612abf565b82525050565b5f819050919050565b612b01612afc82611e6b565b612ae7565b82525050565b5f612b128286612ad0565b601482019150612b228285612ad0565b601482019150612b328284612af0565b602082019150819050949350505050565b612b4c81611e6b565b82525050565b602082015f820151612b665f850182612b43565b50505050565b5f602082019050612b7f5f830184612b52565b92915050565b60038110612b9657612b9561228f565b5b50565b5f819050612ba682612b85565b919050565b5f612bb582612b99565b9050919050565b612bc581612bab565b82525050565b5f82825260208201905092915050565b5f612be5826121ff565b612bef8185612bcb565b9350612bff818560208601612219565b612c0881612227565b840191505092915050565b5f608083015f830151612c285f860182612bbc565b506020830151612c3b60208601826123a5565b506040830151612c4e60408601826123a5565b5060608301518482036060860152612c668282612bdb565b9150508091505092915050565b5f6020820190508181035f830152612c8b8184612c13565b905092915050565b5f60408284031215612ca857612ca76125d2565b5b612cb26040612634565b90505f82013567ffffffffffffffff811115612cd157612cd061264e565b5b612cdd84828501612926565b5f83015250602082013567ffffffffffffffff811115612d0057612cff61264e565b5b612d0c84828501612926565b60208301525092915050565b5f60208284031215612d2d57612d2c611db0565b5b5f82013567ffffffffffffffff811115612d4a57612d49611db4565b5b612d5684828501612c93565b91505092915050565b5f612d6982611e6b565b9150612d7483611e6b565b9250828202612d8281611e6b565b91508282048414831517612d9957612d98612a42565b5b5092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b5f612dd782611e6b565b9150612de283611e6b565b925082612df257612df1612da0565b5b828204905092915050565b5f612e0782611e6b565b9150612e1283611e6b565b9250828201905080821115612e2a57612e29612a42565b5b9291505056fea264697066735822122050bb6a176feb20b04fcded40293358e8fdba927c1e1bf68a160c7fa7cac6b41664736f6c634300081a0033",p=class p extends E.DeployableTarget{constructor(){super(...arguments),this.abi=a.l}async owner(f){return await a.Xh(this._config,{address:this.assertValidAddress(),args:[],...f})}async currentReward(f){return await a.Dh(this._config,{address:this.assertValidAddress(),args:[],...f})}async getMaxReward(f){return await a.Uh(this._config,{...f,address:this.assertValidAddress()})}async getIncentiveScalar({chainId:f,hash:b,knownSignatures:e},d){var r;const c=await this.getIncentiveCriteria(d);if(c.criteriaType===V.SignatureType.EVENT){const n=await A.getTransactionReceipt(this._config,{chainId:f,hash:b});if(c.fieldIndex===I.CheatCodes.GAS_REBATE_INCENTIVE)return n.gasUsed*n.effectiveGasPrice+(n.blobGasUsed??0n)*(n.blobGasPrice??0n);const u=n.logs;if(u.length===0)throw new s.NoMatchingLogsError(`No logs found for event signature ${c.signature}`);try{const g=e[c.signature],o=t.parseEventLogs({abi:[g],logs:u});if(o==null||o.length===0)throw new s.NoMatchingLogsError(`No logs found for event signature ${c.signature}`);const v=((r=o[0])==null?void 0:r.args)[c.fieldIndex];if(v===void 0)throw new s.DecodedArgsError(`Decoded argument at index ${c.fieldIndex} is undefined`);return BigInt(v)}catch(g){throw new s.DecodedArgsError(`Failed to decode event log for signature ${c.signature}: ${g.message}`)}}else if(c.criteriaType===V.SignatureType.FUNC){const n=await A.getTransaction(this._config,{chainId:f,hash:b});try{const u=e[c.signature],o=t.decodeFunctionData({abi:[u],data:n.input}).args[c.fieldIndex];if(o==null)throw new s.DecodedArgsError(`Decoded argument at index ${c.fieldIndex} is undefined`);return BigInt(o)}catch(u){throw new s.DecodedArgsError(`Failed to decode function data for signature ${c.signature}: ${u.message}`)}}else throw new s.InvalidCriteriaTypeError(`Invalid criteria type ${c.criteriaType}`)}async claims(f){return await a._h(this._config,{address:this.assertValidAddress(),args:[],...f})}async totalClaimed(f){return await a.rN(this._config,{address:this.assertValidAddress(),args:[],...f})}async claimed(f,b){return await a.Lh(this._config,{address:this.assertValidAddress(),args:[f],...b})}async asset(f){return await a.Ph(this._config,{address:this.assertValidAddress(),...f})}async peg(f){return await a.eN(this._config,{address:this.assertValidAddress(),...f})}async reward(f){return await a.nN(this._config,{address:this.assertValidAddress(),...f})}async limit(f){return await a.Kh(this._config,{address:this.assertValidAddress(),...f})}async claim(f,b){return await this.awaitResult(this.claimRaw(f,b))}async claimRaw(f,b){const{request:e,result:d}=await a.NN(this._config,{address:this.assertValidAddress(),args:[h.prepareClaimPayload(f)],...this.optionallyAttachAccount(),...b});return{hash:await a.uN(this._config,e),result:d}}async clawback(f,b){return await this.awaitResult(this.clawbackRaw(f,b))}async clawbackRaw(f,b){const{request:e,result:d}=await a.MN(this._config,{address:this.assertValidAddress(),args:[h.prepareClaimPayload(f)],...this.optionallyAttachAccount(),...b});return{hash:await a.lN(this._config,e),result:d}}async isClaimable(f,b){return await a.Jh(this._config,{address:this.assertValidAddress(),args:[f.target,f.data],...b})}async getPeg(f){return await a.Wh(this._config,{address:this.assertValidAddress(),args:[],...f})}async getTotalBudget(f){return await this.limit(f)}async canBeClaimed(f){return await this.getRemainingClaimPotential(f)>0n}async getRemainingClaimPotential(f){const[b,e]=await Promise.all([this.totalClaimed(f),this.limit(f)]);return e-b}async getIncentiveCriteria(f){try{return await a.Gh(this._config,{...f,address:this.assertValidAddress()})}catch(b){throw new s.IncentiveCriteriaNotFoundError(b)}}buildParameters(f,b){const[e,d]=this.validateDeploymentConfig(f,b);return{abi:a.l,bytecode:$,args:[P(e)],...this.optionallyAttachAccount(d.account)}}buildClawbackData(f){return t.encodeAbiParameters([{type:"uint256"}],[f])}buildClaimData(f){return t.encodeAbiParameters([{type:"uint256",name:"rewardAmount"}],[f])}};p.bases={31337:void 0,...R.ERC20Incentive},p.registryType=I.RegistryType.INCENTIVE;let w=p;function P({asset:l,peg:f,reward:b,limit:e,maxReward:d=0n,manager:c=t.zeroAddress,criteria:r}){return t.encodeAbiParameters([{type:"tuple",name:"initPayloadExtended",components:[{type:"address",name:"asset"},{type:"address",name:"peg"},{type:"uint256",name:"reward"},{type:"uint256",name:"limit"},{type:"address",name:"manager"},{type:"uint256",name:"maxReward"},{type:"tuple",name:"criteria",components:[{type:"uint8",name:"criteriaType"},{type:"bytes32",name:"signature"},{type:"uint8",name:"fieldIndex"},{type:"address",name:"targetContract"}]}]}],[{asset:l,peg:f,reward:b,limit:e,manager:c,maxReward:d,criteria:{criteriaType:r.criteriaType,signature:r.signature,fieldIndex:r.fieldIndex,targetContract:r.targetContract}}])}const C={[i.APointsIncentive]:B.PointsIncentive,[i.AERC20Incentive]:q.ERC20Incentive,[i.AERC20PeggedVariableCriteriaIncentive]:w,[i.AERC20PeggedIncentive]:y,[i.AAllowListIncentive]:T.AllowListIncentive,[i.ACGDAIncentive]:N.CGDAIncentive,[i.AERC20VariableIncentive]:x.ERC20VariableIncentive,[i.AERC20VariableCriteriaIncentive]:D.ERC20VariableCriteriaIncentive};async function k(l,f,b){const e=await A.readContract(l.config,{abi:a.Y,functionName:"getComponentInterface",address:f,...b}),d=C[e];if(!d)throw new s.InvalidComponentInterfaceError(Object.keys(C),e);return new d(l,f)}exports.ERC20PeggedIncentive=y;exports.ERC20PeggedVariableCriteriaIncentive=w;exports.IncentiveByComponentInterface=C;exports.incentiveFromAddress=k;exports.prepareERC20PeggedIncentivePayload=_;exports.prepareERC20PeggedVariableCriteriaIncentivePayload=P;
|
|
2
|
-
//# sourceMappingURL=Incentive-AWwdbmix.cjs.map
|