@boostxyz/sdk 7.6.0 → 7.7.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/{AllowList-BYYm3b9d.cjs → AllowList-BJ9HQGFs.cjs} +2 -2
- package/dist/{AllowList-BYYm3b9d.cjs.map → AllowList-BJ9HQGFs.cjs.map} +1 -1
- package/dist/{AllowList-D_K4S6jV.js → AllowList-DiU7g4Hs.js} +3 -3
- package/dist/{AllowList-D_K4S6jV.js.map → AllowList-DiU7g4Hs.js.map} +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +2 -2
- 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 +1 -1
- package/dist/BoostCore.js +6 -6
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +1 -1
- package/dist/{Budget-DwVY-GGt.cjs → Budget-D_zhh1rh.cjs} +2 -2
- package/dist/{Budget-DwVY-GGt.cjs.map → Budget-D_zhh1rh.cjs.map} +1 -1
- package/dist/{Budget-DZlb1py_.js → Budget-YIhV65cc.js} +2 -2
- package/dist/{Budget-DZlb1py_.js.map → Budget-YIhV65cc.js.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-BKZisyIm.js → Incentive-CeoEla-t.js} +2 -2
- package/dist/{Incentive-BKZisyIm.js.map → Incentive-CeoEla-t.js.map} +1 -1
- package/dist/{Incentive-Ctfodrh5.cjs → Incentive-CrnbYN_a.cjs} +2 -2
- package/dist/{Incentive-Ctfodrh5.cjs.map → Incentive-CrnbYN_a.cjs.map} +1 -1
- 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.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.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-Bv2mSQJO.cjs → SimpleDenyList-7-VTqfsH.cjs} +2 -2
- package/dist/{SimpleDenyList-Bv2mSQJO.cjs.map → SimpleDenyList-7-VTqfsH.cjs.map} +1 -1
- package/dist/{SimpleDenyList-tEOqSTnD.js → SimpleDenyList-Dr03aOeP.js} +2 -2
- package/dist/{SimpleDenyList-tEOqSTnD.js.map → SimpleDenyList-Dr03aOeP.js.map} +1 -1
- package/dist/{Validator-ztOItKpP.js → Validator-DgvB9wge.js} +2 -2
- package/dist/{Validator-ztOItKpP.js.map → Validator-DgvB9wge.js.map} +1 -1
- package/dist/{Validator-CUGwkN06.cjs → Validator-rYW7PMwW.cjs} +2 -2
- package/dist/{Validator-CUGwkN06.cjs.map → Validator-rYW7PMwW.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/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.js +1 -1
- package/dist/deployments-BjBgk03b.cjs +2 -0
- package/dist/deployments-BjBgk03b.cjs.map +1 -0
- package/dist/{deployments-EFoHkvCp.js → deployments-CHQ30INq.js} +31 -9
- package/dist/deployments-CHQ30INq.js.map +1 -0
- package/dist/deployments.json +23 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/dist/deployments-EFoHkvCp.js.map +0 -1
- package/dist/deployments-xekPSd2S.cjs +0 -2
- package/dist/deployments-xekPSd2S.cjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../generated-dd4FN0Fo.cjs"),S=require("@wagmi/core"),o=require("viem"),t0=require("../deployments-xekPSd2S.cjs"),n0=require("../Deployable/DeployableTarget.cjs"),u=require("../errors.cjs"),h=require("../utils.cjs"),d0="0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b608051611c276100945f395f6101510152611c275ff3fe6080604052600436106100ad575f3560e01c80639bc1cf8111610066578063d7768c471161004c578063d7768c4714610206578063dbdf211014610232578063ddd6ab0814610253575f80fd5b80639bc1cf81146101b9578063c26624e8146101da575f80fd5b806328d6183b1161009657806328d6183b14610106578063393df8cb14610140578063439fab9114610198575f80fd5b806301ffc9a7146100b157806309c5eabe146100e5575b5f80fd5b3480156100bc575f80fd5b506100d06100cb366004611281565b610270565b60405190151581526020015b60405180910390f35b6100f86100f33660046112c7565b6102cb565b6040516100dc929190611381565b348015610111575f80fd5b506040517f7687b0ed0000000000000000000000000000000000000000000000000000000081526020016100dc565b34801561014b575f80fd5b506101737f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100dc565b3480156101a3575f80fd5b506101b76101b23660046112c7565b610300565b005b3480156101c4575f80fd5b506101cd6103a0565b6040516100dc919061149b565b3480156101e5575f80fd5b506101f96101f436600461151c565b61059f565b6040516100dc9190611533565b348015610211575f80fd5b506102256102203660046112c7565b61077a565b6040516100dc9190611545565b34801561023d575f80fd5b506102466107ae565b6040516100dc91906115a7565b34801561025e575f80fd5b506004546040519081526020016100dc565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7687b0ed0000000000000000000000000000000000000000000000000000000014806102c557506102c582610858565b92915050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156103515760018160011c14303b106103485763f92ee8a95f526004601cfd5b818160ff1b1b91505b50610366610361838501856118a8565b6108ad565b801561039b576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610596578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff166001811115610410576104106113a3565b6001811115610421576104216113a3565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610494576104946113a3565b60078111156104a5576104a56113a3565b81528154602090910190610100900460ff1660058111156104c8576104c86113a3565b60058111156104d9576104d96113a3565b8152815462010000900463ffffffff166020820152600182018054604090920191610503906119a9565b80601f016020809104026020016040519081016040528092919081815260200182805461052f906119a9565b801561057a5780601f106105515761010080835404028352916020019161057a565b820191905f5260205f20905b81548152906001019060200180831161055d57829003601f168201915b50505050508152505081525050815260200190600101906103c3565b50505050905090565b6105a7611226565b600482815481106105ba576105ba6119fa565b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156105fd576105fd6113a3565b600181111561060e5761060e6113a3565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610681576106816113a3565b6007811115610692576106926113a3565b81528154602090910190610100900460ff1660058111156106b5576106b56113a3565b60058111156106c6576106c66113a3565b8152815462010000900463ffffffff1660208201526001820180546040909201916106f0906119a9565b80601f016020809104026020016040519081016040528092919081815260200182805461071c906119a9565b80156107675780601f1061073e57610100808354040283529160200191610767565b820191905f5260205f20905b81548152906001019060200180831161074a57829003601f168201915b5050509190925250505090525092915050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a081019091525f8054829060ff1660018111156107fc576107fc6113a3565b600181111561080d5761080d6113a3565b815260018201546020820152600282015460ff81166040830152610100900473ffffffffffffffffffffffffffffffffffffffff166060820152600390910154608090910152919050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe67157950000000000000000000000000000000000000000000000000000000014806102c557506102c582611156565b6108b56111ec565b805180515f8054909190829060ff1916600183818111156108d8576108d86113a3565b02179055506020828101516001808401919091556040840151600284018054606087015173ffffffffffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffff00000000000000000000000000000000000000000090911660ff90931692909217919091179055608090930151600390920191909155828101516004805480850182555f91909152815160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101918255928201517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c90930180549294919392909160ff19919091169083818111156109e1576109e16113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610aa257610aa26113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ae757610ae76113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610b3b9082611a72565b505050604083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610bcc57610bcc6113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610c8d57610c8d6113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610cd257610cd26113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610d269082611a72565b505050606083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610db757610db76113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610e7857610e786113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ebd57610ebd6113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610f119082611a72565b505050608083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610fa257610fa26113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115611063576110636113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101008360058111156110a8576110a86113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff909116178155606082015160018201906110fc9082611a72565b50505050507fdc8145a6c863ebd27b18aa903b7f82f1015527a05a81f227ef06ab79616082b4815f0151826020015183604001518460600151856080015160405161114b959493929190611b89565b60405180910390a150565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806102c557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146102c5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546001166112235763d7e6bcf85f526004601cfd5b50565b6040805160c081019091525f808252602082019081525f6020820181905260408201819052606082015260800161127c6040805160808101909152805f81526020015f81525f6020820152606060409091015290565b905290565b5f60208284031215611291575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112c0575f80fd5b9392505050565b5f80602083850312156112d8575f80fd5b823567ffffffffffffffff8111156112ee575f80fd5b8301601f810185136112fe575f80fd5b803567ffffffffffffffff811115611314575f80fd5b856020828401011115611325575f80fd5b6020919091019590945092505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b8215158152604060208201525f61139b6040830184611335565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600281106113e0576113e06113a3565b9052565b805182525f60208201516113fb60208501826113d0565b5060ff604083015116604084015273ffffffffffffffffffffffffffffffffffffffff60608301511660608401526080820151608084015260a082015160c060a0850152805160088110611451576114516113a3565b60c085015260208101516006811061146b5761146b6113a3565b60e0850152604081015163ffffffff1661010085015260600151608061012085015261139b610140850182611335565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b82811015611510577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184526114fb8583516113e4565b945060209384019391909101906001016114c1565b50929695505050505050565b5f6020828403121561152c575f80fd5b5035919050565b602081525f6112c060208301846113e4565b602081525f6112c06020830184611335565b6115628282516113d0565b6020810151602083015260ff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff6060820151166060830152608081015160808301525050565b60a081016102c58284611557565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160a0810167ffffffffffffffff81118282101715611605576116056115b5565b60405290565b60405160c0810167ffffffffffffffff81118282101715611605576116056115b5565b6040516080810167ffffffffffffffff81118282101715611605576116056115b5565b80356002811061165f575f80fd5b919050565b803560ff8116811461165f575f80fd5b803573ffffffffffffffffffffffffffffffffffffffff8116811461165f575f80fd5b5f60a082840312156116a7575f80fd5b6116af6115e2565b90506116ba82611651565b8152602082810135908201526116d260408301611664565b60408201526116e360608301611674565b606082015260809182013591810191909152919050565b5f82601f830112611709575f80fd5b813567ffffffffffffffff811115611723576117236115b5565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff81118282101715611770576117706115b5565b604052818152838201602001851015611787575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60c082840312156117b3575f80fd5b6117bb61160b565b8235815290506117cd60208301611651565b60208201526117de60408301611664565b60408201526117ef60608301611674565b60608201526080828101359082015260a082013567ffffffffffffffff811115611817575f80fd5b820160808185031215611828575f80fd5b61183061162e565b81356008811061183e575f80fd5b8152602082013560068110611851575f80fd5b6020820152604082013563ffffffff8116811461186c575f80fd5b6040820152606082013567ffffffffffffffff81111561188a575f80fd5b611896868285016116fa565b60608301525060a08301525092915050565b5f602082840312156118b8575f80fd5b813567ffffffffffffffff8111156118ce575f80fd5b820161012081850312156118e0575f80fd5b6118e86115e2565b6118f28583611697565b815260a082013567ffffffffffffffff81111561190d575f80fd5b611919868285016117a3565b60208301525060c082013567ffffffffffffffff811115611938575f80fd5b611944868285016117a3565b60408301525060e082013567ffffffffffffffff811115611963575f80fd5b61196f868285016117a3565b60608301525061010082013567ffffffffffffffff81111561198f575f80fd5b61199b868285016117a3565b608083015250949350505050565b600181811c908216806119bd57607f821691505b6020821081036119f4577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b601f82111561039b57805f5260205f20601f840160051c81016020851015611a4c5750805b601f840160051c820191505b81811015611a6b575f8155600101611a58565b5050505050565b815167ffffffffffffffff811115611a8c57611a8c6115b5565b611aa081611a9a84546119a9565b84611a27565b6020601f821160018114611af1575f8315611abb5750848201515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b178455611a6b565b5f848152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08516915b82811015611b3e5787850151825560209485019460019092019101611b1e565b5084821015611b7a57868401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b60f8161c191681555b50505050600190811b01905550565b611b938187611557565b61012060a08201525f611baa6101208301876113e4565b82810360c0840152611bbc81876113e4565b905082810360e0840152611bd081866113e4565b9050828103610100840152611be581856113e4565b9897505050505050505056fea2646970667358221220a8f9468bd81df646b95b9d19599966d6a1b1f344117e00f66aa985f1fdfee66b64736f6c634300081a0033",i0={"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef":{name:"Transfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0}]},"Transfer(address indexed,address indexed,uint256 indexed)":{name:"Transfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0}]},"0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e":{name:"Purchased",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"uint256"},{type:"uint256"}]},"Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)":{name:"Purchased",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"uint256"},{type:"uint256"}]},"0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27":{name:"NameRegistered",type:"event",inputs:[{type:"string"},{type:"bytes32",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"NameRegistered(string,bytes32 indexed,address indexed,uint256,uint256,uint256)":{name:"NameRegistered",type:"event",inputs:[{type:"string"},{type:"bytes32",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0x0667086d08417333ce63f40d5bc2ef6fd330e25aaaf317b7c489541f8fe600fa":{name:"NameRegistered",type:"event",inputs:[{type:"string"},{type:"bytes32",indexed:!0},{type:"address",indexed:!0},{type:"uint256"}]},"NameRegistered(string,bytes32 indexed,address indexed,uint256)":{name:"NameRegistered",type:"event",inputs:[{type:"string"},{type:"bytes32",indexed:!0},{type:"address",indexed:!0},{type:"uint256"}]},"0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f":{name:"DelegateChanged",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0}]},"DelegateChanged(address indexed,address indexed,address indexed)":{name:"DelegateChanged",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0}]},"0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0":{name:"SwappedV3",type:"event",inputs:[{type:"bytes16"},{type:"address"},{type:"uint256"},{type:"address"},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)":{name:"SwappedV3",type:"event",inputs:[{type:"bytes16"},{type:"address"},{type:"uint256"},{type:"address"},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4":{name:"VoteCast",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256"},{type:"uint8"},{type:"uint256"},{type:"string"}]},"VoteCast(address indexed,uint256,uint8,uint256,string)":{name:"VoteCast",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256"},{type:"uint8"},{type:"uint256"},{type:"string"}]},"0x7ac572687bf4e66a8514fc2ec464fc2644c78bcb1d80a225fc51a33e0ee38bfa":{name:"Minted",type:"event",inputs:[{type:"uint8"},{type:"address"},{type:"uint256"},{type:"uint256"}]},"Minted(uint8,address,uint256,uint256)":{name:"Minted",type:"event",inputs:[{type:"uint8"},{type:"address"},{type:"uint256"},{type:"uint256"}]},"0x2a29f7402bd32f0e4bbe17d44be064f7f64d96ee174ed7cb27936d869bf9a888":{name:"Minted",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint8"},{type:"uint8"},{type:"address",indexed:!0},{type:"tuple",components:[{type:"uint32"},{type:"uint256"},{type:"address"},{type:"uint32"},{type:"uint32"},{type:"uint32"},{type:"address"},{type:"bool"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},{type:"uint256",indexed:!0}]},"Minted(address indexed,uint8,uint8,address indexed,(uint32,uint256,address,uint32,uint32,uint32,address,bool,uint256,uint256,uint256,uint256,uint256),uint256 indexed)":{name:"Minted",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint8"},{type:"uint8"},{type:"address",indexed:!0},{type:"tuple",components:[{type:"uint32"},{type:"uint256"},{type:"address"},{type:"uint32"},{type:"uint32"},{type:"uint32"},{type:"address"},{type:"bool"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},{type:"uint256",indexed:!0}]},"0xc773e203af3f3079b18c21f98bb8d8ccd2fea097d631d448df89de4edbe7a2a8":{name:"ZoraTimedSaleStrategyRewards",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"}]},"ZoraTimedSaleStrategyRewards(address indexed,uint256 indexed,address,uint256,address,uint256,address,uint256,address,uint256,address,uint256)":{name:"ZoraTimedSaleStrategyRewards",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"}]},"0x0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b259547":{name:"BoostClaimed",type:"event",inputs:[{type:"uint256",indexed:!0},{type:"uint256",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"bytes"}]},"BoostClaimed(uint256 indexed,uint256 indexed,address indexed,address,bytes)":{name:"BoostClaimed",type:"event",inputs:[{type:"uint256",indexed:!0},{type:"uint256",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"bytes"}]},"0x116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd":{name:"BoostCreated",type:"event",inputs:[{type:"uint256",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"address"},{type:"address"},{type:"address"}]},"BoostCreated(uint256 indexed,address indexed,address indexed,uint256,address,address,address)":{name:"BoostCreated",type:"event",inputs:[{type:"uint256",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"address"},{type:"address"},{type:"address"}]},"0x72d6b4b5ad0fb12b8a7bb3bcb60edd774c096403d611437859c156ecb3c03a36":{name:"SecondaryBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"}]},"SecondaryBuy(address indexed,address indexed,address indexed,uint256,uint256)":{name:"SecondaryBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"}]},"0x6779abc30cb1bfb05c1170de8e2ef5828c19a2590043d2fd9579d945929fd8a4":{name:"CoopTokenBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"CoopTokenBuy(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)":{name:"CoopTokenBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"0x49c4606c4f7f601127761fb65a512e6bca424f62b165476cf1cfdfa51772a6ab":{name:"WowTokenBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"WowTokenBuy(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)":{name:"WowTokenBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"0xeb3adfe7d8294092cd6b0e7ce95ed01c11d3c5d5d3dc1fecdeb87de43c5e40b2":{name:"CoopTokenSell",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"CoopTokenSell(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)":{name:"CoopTokenSell",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"0x0693c83d190a3d36d2ed6c3ac51b1335d2a3588d96f3f3601c8b1e780d0f952a":{name:"WowTokenSell",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"WowTokenSell(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)":{name:"WowTokenSell",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"0xd5468362e31bdcdc9884e72dcf3b00f9d46086067621224b7cb759308d597c6c":{name:"CoopTokenFees",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"CoopTokenFees(address indexed,address indexed,address indexed,address,uint256,uint256,uint256,uint256)":{name:"CoopTokenFees",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0xf349fe0373a901f0506d5343f4a872f385a7f0c26371d7b9e6bf5584b69d75fc":{name:"WowTokenFees",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"WowTokenFees(address indexed,address indexed,address indexed,address,uint256,uint256,uint256,uint256)":{name:"WowTokenFees",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0x3be2a577c218a9e2fca79115ab0381630afc182ee832bcad4011c37d323b4843":{name:"CoopTokenTransfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"CoopTokenTransfer(address indexed,address indexed,uint256,uint256,uint256,uint256)":{name:"CoopTokenTransfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0xd19736ba1cd2ffc8c99f90d6c6163e59274d333c89e471cd6668d93849835ac5":{name:"WowTokenTransfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"WowTokenTransfer(address indexed,address indexed,uint256,uint256,uint256,uint256)":{name:"WowTokenTransfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b":{name:"InfoIndexed",type:"event",inputs:[{type:"address",indexed:!0},{type:"string",indexed:!0}]},"InfoIndexed(address indexed,string indexed)":{name:"InfoIndexed",type:"event",inputs:[{type:"address",indexed:!0},{type:"string",indexed:!0}]},"0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c":{name:"Info",type:"event",inputs:[{type:"address"},{type:"string"}]},"Info(address,string)":{name:"Info",type:"event",inputs:[{type:"address"},{type:"string"}]}},m=Symbol.for("@ts-pattern/matcher"),r0=Symbol.for("@ts-pattern/isVariadic"),L="@ts-pattern/anonymous-select-key",U=t=>!!(t&&typeof t=="object"),D=t=>t&&!!t[m],x=(t,e,f)=>{if(D(t)){const n=t[m](),{matched:d,selections:i}=n.match(e);return d&&i&&Object.keys(i).forEach(a=>f(a,i[a])),d}if(U(t)){if(!U(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let n=[],d=[],i=[];for(const a of t.keys()){const r=t[a];D(r)&&r[r0]?i.push(r):i.length?d.push(r):n.push(r)}if(i.length){if(i.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<n.length+d.length)return!1;const a=e.slice(0,n.length),r=d.length===0?[]:e.slice(-d.length),s=e.slice(n.length,d.length===0?1/0:-d.length);return n.every((y,I)=>x(y,a[I],f))&&d.every((y,I)=>x(y,r[I],f))&&(i.length===0||x(i[0],s,f))}return t.length===e.length&&t.every((a,r)=>x(a,e[r],f))}return Reflect.ownKeys(t).every(n=>{const d=t[n];return(n in e||D(i=d)&&i[m]().matcherType==="optional")&&x(d,e[n],f);var i})}return Object.is(e,t)},E=t=>{var e,f,n;return U(t)?D(t)?(e=(f=(n=t[m]()).getSelectionKeys)==null?void 0:f.call(n))!=null?e:[]:Array.isArray(t)?R(t,E):R(Object.values(t),E):[]},R=(t,e)=>t.reduce((f,n)=>f.concat(e(n)),[]);function b(t){return Object.assign(t,{optional:()=>a0(t),and:e=>p(t,e),or:e=>s0(t,e),select:e=>e===void 0?V(t):V(e,t)})}function a0(t){return b({[m]:()=>({match:e=>{let f={};const n=(d,i)=>{f[d]=i};return e===void 0?(E(t).forEach(d=>n(d,void 0)),{matched:!0,selections:f}):{matched:x(t,e,n),selections:f}},getSelectionKeys:()=>E(t),matcherType:"optional"})})}function p(...t){return b({[m]:()=>({match:e=>{let f={};const n=(d,i)=>{f[d]=i};return{matched:t.every(d=>x(d,e,n)),selections:f}},getSelectionKeys:()=>R(t,E),matcherType:"and"})})}function s0(...t){return b({[m]:()=>({match:e=>{let f={};const n=(d,i)=>{f[d]=i};return R(t,E).forEach(d=>n(d,void 0)),{matched:t.some(d=>x(d,e,n)),selections:f}},getSelectionKeys:()=>R(t,E),matcherType:"or"})})}function c(t){return{[m]:()=>({match:e=>({matched:!!t(e)})})}}function V(...t){const e=typeof t[0]=="string"?t[0]:void 0,f=t.length===2?t[1]:typeof t[0]=="string"?void 0:t[0];return b({[m]:()=>({match:n=>{let d={[e??L]:n};return{matched:f===void 0||x(f,n,(i,a)=>{d[i]=a}),selections:d}},getSelectionKeys:()=>[e??L].concat(f===void 0?[]:E(f))})})}function l(t){return typeof t=="number"}function A(t){return typeof t=="string"}function T(t){return typeof t=="bigint"}b(c(function(t){return!0}));const w=t=>Object.assign(b(t),{startsWith:e=>{return w(p(t,(f=e,c(n=>A(n)&&n.startsWith(f)))));var f},endsWith:e=>{return w(p(t,(f=e,c(n=>A(n)&&n.endsWith(f)))));var f},minLength:e=>w(p(t,(f=>c(n=>A(n)&&n.length>=f))(e))),length:e=>w(p(t,(f=>c(n=>A(n)&&n.length===f))(e))),maxLength:e=>w(p(t,(f=>c(n=>A(n)&&n.length<=f))(e))),includes:e=>{return w(p(t,(f=e,c(n=>A(n)&&n.includes(f)))));var f},regex:e=>{return w(p(t,(f=e,c(n=>A(n)&&!!n.match(f)))));var f}});w(c(A));const g=t=>Object.assign(b(t),{between:(e,f)=>g(p(t,((n,d)=>c(i=>l(i)&&n<=i&&d>=i))(e,f))),lt:e=>g(p(t,(f=>c(n=>l(n)&&n<f))(e))),gt:e=>g(p(t,(f=>c(n=>l(n)&&n>f))(e))),lte:e=>g(p(t,(f=>c(n=>l(n)&&n<=f))(e))),gte:e=>g(p(t,(f=>c(n=>l(n)&&n>=f))(e))),int:()=>g(p(t,c(e=>l(e)&&Number.isInteger(e)))),finite:()=>g(p(t,c(e=>l(e)&&Number.isFinite(e)))),positive:()=>g(p(t,c(e=>l(e)&&e>0))),negative:()=>g(p(t,c(e=>l(e)&&e<0)))});g(c(l));const v=t=>Object.assign(b(t),{between:(e,f)=>v(p(t,((n,d)=>c(i=>T(i)&&n<=i&&d>=i))(e,f))),lt:e=>v(p(t,(f=>c(n=>T(n)&&n<f))(e))),gt:e=>v(p(t,(f=>c(n=>T(n)&&n>f))(e))),lte:e=>v(p(t,(f=>c(n=>T(n)&&n<=f))(e))),gte:e=>v(p(t,(f=>c(n=>T(n)&&n>=f))(e))),positive:()=>v(p(t,c(e=>T(e)&&e>0))),negative:()=>v(p(t,c(e=>T(e)&&e<0)))});v(c(T));b(c(function(t){return typeof t=="boolean"}));b(c(function(t){return typeof t=="symbol"}));b(c(function(t){return t==null}));b(c(function(t){return t!=null}));class u0 extends Error{constructor(e){let f;try{f=JSON.stringify(e)}catch{f=e}super(`Pattern matching error: no pattern matches value ${f}`),this.input=void 0,this.input=e}}const W={matched:!1,value:void 0};function H(t){return new _(t,W)}class _{constructor(e,f){this.input=void 0,this.state=void 0,this.input=e,this.state=f}with(...e){if(this.state.matched)return this;const f=e[e.length-1],n=[e[0]];let d;e.length===3&&typeof e[1]=="function"?d=e[1]:e.length>2&&n.push(...e.slice(1,e.length-1));let i=!1,a={};const r=(y,I)=>{i=!0,a[y]=I},s=!n.some(y=>x(y,this.input,r))||d&&!d(this.input)?W:{matched:!0,value:f(i?L in a?a[L]:a:this.input,this.input)};return new _(this.input,s)}when(e,f){if(this.state.matched)return this;const n=!!e(this.input);return new _(this.input,n?{matched:!0,value:f(this.input,this.input)}:W)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new u0(this.input)}run(){return this.exhaustive()}returnType(){return this}}const F={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"};var G=(t=>(t[t.EQUAL=0]="EQUAL",t[t.NOT_EQUAL=1]="NOT_EQUAL",t[t.GREATER_THAN=2]="GREATER_THAN",t[t.LESS_THAN=3]="LESS_THAN",t[t.CONTAINS=4]="CONTAINS",t[t.REGEX=5]="REGEX",t[t.GREATER_THAN_OR_EQUAL=6]="GREATER_THAN_OR_EQUAL",t[t.LESS_THAN_OR_EQUAL=7]="LESS_THAN_OR_EQUAL",t))(G||{}),q=(t=>(t[t.UINT=0]="UINT",t[t.ADDRESS=1]="ADDRESS",t[t.BYTES=2]="BYTES",t[t.STRING=3]="STRING",t[t.TUPLE=4]="TUPLE",t[t.INT=5]="INT",t))(q||{}),z=(t=>(t[t.EVENT=0]="EVENT",t[t.FUNC=1]="FUNC",t))(z||{}),j=(t=>(t[t.RAW=0]="RAW",t[t.WAD=1]="WAD",t))(j||{});function Q(t){return Array.isArray(t.actionSteps)}const P=class P extends n0.DeployableTarget{constructor(){super(...arguments),this.abi=C.fe}async getActionStep(e,f){return(await this.getActionSteps(f)).at(e)}async getActionSteps(e){const f=await C.gF(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...e});return c0(f.map($))}async getActionStepsCount(e){return(await this.getActionSteps(e)).length}async getActionClaimant(e){const f=await C.TF(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...e});return $(f)}async execute(e,f){return await this.awaitResult(this.executeRaw(e,f))}async executeRaw(e,f){const{request:n,result:d}=await C.EF(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...f,args:[e]});return{hash:await C.RF(this._config,n),result:d}}async deriveActionClaimantFromTransaction(e,f){if(e.fieldIndex===h.CheatCodes.TX_SENDER_CLAIMANT){if("hash"in f){const d=await S.getTransaction(this._config,{...f,chainId:e.chainid});return f.notBeforeBlockNumber&&d.blockNumber<f.notBeforeBlockNumber?void 0:d.from}if("logs"in f){for(let d of f.logs)if(d.transactionHash){const i=await S.getTransaction(this._config,{...f,hash:d.transactionHash,chainId:e.chainid});return f.notBeforeBlockNumber&&i.blockNumber<f.notBeforeBlockNumber?void 0:i.from}}return}const n=e.signature;if(e.signatureType===0){let d;if(f.abiItem?d=f.abiItem:d=f.knownSignatures[n],!d)throw new u.ValidationAbiMissingError(n);if("logs"in f){const r=f.logs.filter(s=>s.topics[0]===n).map(s=>B(d,s));for(const s of r){if(!o.isAddressEqual(s.address,e.targetContract))continue;const y=this.validateClaimantAgainstArgs(e,s);if(y)return y}}if(!("hash"in f))return;const i=await S.getTransactionReceipt(this._config,{...f,chainId:e.chainid});if(f.notBeforeBlockNumber&&i.blockNumber<f.notBeforeBlockNumber)return;let a;n===h.TRANSFER_SIGNATURE?{decodedLogs:a}=await this.decodeTransferLogs(i):a=i.logs.filter(r=>r.topics[0]===o.toEventSelector(d)).map(r=>B(d,r));for(let r of a){if(!o.isAddressEqual(r.address,e.targetContract))continue;let s=this.validateClaimantAgainstArgs(e,r);if(s)return s}}if(e.signatureType===1&&"hash"in f){const d=await S.getTransaction(this._config,{...f,chainId:e.chainid});if(f.notBeforeBlockNumber&&d.blockNumber<f.notBeforeBlockNumber||!o.isAddressEqual(d.to,e.targetContract))return;let i;if(f.abiItem?i=f.abiItem:i=f.knownSignatures[n],!i)throw new u.ValidationAbiMissingError(e.signature);let a;try{a=o.decodeFunctionData({abi:[i],data:d.input})}catch(r){throw new u.FunctionDataDecodeError([i],r)}return this.validateClaimantAgainstArgs(e,a)}}validateClaimantAgainstArgs(e,f){if(!f||!Array.isArray(f==null?void 0:f.args)||(f==null?void 0:f.args.length)<=e.fieldIndex)return;const n=f.args.at(e.fieldIndex);if(o.isAddress(n))return n}async validateActionSteps(e){const f=await this.getActionSteps();for(const n of f)if(!await this.isActionStepValid(n,e))return!1;return!0}async isActionStepValid(e,f){if(e.signatureType===0){const n=e.signature;let d;if(f.abiItem?d=f.abiItem:d=f.knownSignatures[n],!d)throw new u.ValidationAbiMissingError(n);if(this.isArraylikeIndexed(e,d))throw new u.UnparseableAbiParamError(e.actionParameter.fieldIndex,d);if("logs"in f)return this.isActionEventValid(e,f.logs,d);const i=await S.getTransactionReceipt(this._config,{...f,chainId:e.chainid});if(f.notBeforeBlockNumber&&i.blockNumber<f.notBeforeBlockNumber)return!1;if(e.signature===h.TRANSFER_SIGNATURE){const{decodedLogs:r,event:s}=await this.decodeTransferLogs(i);return this.isActionEventValid(e,r,s)}const a=i.logs.filter(r=>r.topics[0]===o.toEventSelector(d)).map(r=>B(d,r));return this.isActionEventValid(e,a,d)}if(e.signatureType===1&&"hash"in f){const n=await S.getTransaction(this._config,{...f,chainId:e.chainid});return f.notBeforeBlockNumber&&n.blockNumber<f.notBeforeBlockNumber?!1:this.isActionFunctionValid(e,n,f)}return!1}isActionEventValid(e,f,n){const d=e.actionParameter;if(!f.length)return!1;for(let i of f)try{if(!Array.isArray(i.args))throw new u.DecodedArgsMalformedError({log:i,criteria:d,fieldValue:void 0});const{value:a,type:r}=this.parseFieldFromAbi(i.args,d.fieldIndex,n.inputs||[],d.fieldType),s={...d,fieldType:r};if(this.validateFieldAgainstCriteria(s,a,{log:i}))return!0}catch{}return!1}async decodeTransferLogs(e){const f=e.logs.filter(d=>d.topics[0]===h.TRANSFER_SIGNATURE),n=structuredClone(i0["Transfer(address indexed,address indexed,uint256 indexed)"]);try{return{decodedLogs:f.map(i=>{const{eventName:a,args:r}=o.decodeEventLog({abi:[n],data:i.data,topics:i.topics});return{...i,eventName:a,args:r}}),event:n}}catch{try{return n.inputs[2].indexed=!1,{decodedLogs:f.map(i=>{const{eventName:a,args:r}=o.decodeEventLog({abi:[n],data:i.data,topics:i.topics});return{...i,eventName:a,args:r}}),event:n}}catch{throw new u.DecodedArgsError("Failed to decode transfer logs")}}}parseFieldFromAbi(e,f,n,d){if(f===h.CheatCodes.ANY_ACTION_PARAM)return{value:o.zeroHash,type:2};if(d!==4){if(!Array.isArray(e)||f>=e.length)throw new u.FieldValueUndefinedError({fieldValue:e,criteria:{filterType:0,fieldType:d,fieldIndex:f,filterData:o.zeroHash}});const a=n[f];if(!a||!a.type)throw new u.UnparseableAbiParamError(f,a);const r=e[f],s=K(a.type);if(s===1&&(typeof r!="string"||!o.isAddress(r)))throw new u.FieldValueUndefinedError({fieldValue:r,criteria:{fieldIndex:f,filterType:0,fieldType:s,filterData:o.zeroHash}});return{value:r,type:s}}const i=J(f);return X(e,i,n)}isActionFunctionValid(e,f,n){const d=e.actionParameter,i=e.signature;let a;if(n.abiItem?a=n.abiItem:a=n.knownSignatures[i],!a)throw new u.ValidationAbiMissingError(i);let r;try{r=o.decodeFunctionData({abi:[a],data:f.input})}catch(s){throw new u.FunctionDataDecodeError([a],s)}if(!(r!=null&&r.args))return!1;try{const{value:s,type:y}=this.parseFieldFromAbi(r.args,d.fieldIndex,a.inputs||[],d.fieldType),I={...d,fieldType:y};return this.validateFieldAgainstCriteria(I,s,{decodedArgs:r.args})}catch{return!1}}validateFieldAgainstCriteria(e,f,n){if(e.filterType===0&&e.fieldType===2&&e.fieldIndex===h.CheatCodes.ANY_ACTION_PARAM)return!0;if(e.fieldType===4)throw new u.InvalidTupleDecodingError("Tuples should not be passed into validateFieldAgainstCriteria");const d=e.fieldType;switch(e.filterType){case 0:return H(d).with(1,()=>o.isAddressEqual(e.filterData,f)).with(0,()=>BigInt(f)===BigInt(e.filterData)).with(3,()=>f===o.fromHex(e.filterData,"string")).otherwise(()=>f===e.filterData);case 1:return H(d).with(1,()=>!o.isAddressEqual(e.filterData,f)).with(0,()=>BigInt(f)!==BigInt(e.filterData)).with(5,()=>BigInt(f)!==BigInt(e.filterData)).with(3,()=>f!==o.fromHex(e.filterData,"string")).otherwise(()=>f!==e.filterData);case 2:if(d===0||d===5)return BigInt(f)>BigInt(e.filterData);throw new u.InvalidNumericalCriteriaError({...n,criteria:e,fieldValue:f});case 6:if(d===0||d===5)return BigInt(f)>=BigInt(e.filterData);throw new u.InvalidNumericalCriteriaError({...n,criteria:e,fieldValue:f});case 3:if(d===0||d===5)return BigInt(f)<BigInt(e.filterData);throw new u.InvalidNumericalCriteriaError({...n,criteria:e,fieldValue:f});case 7:if(d===0||d===5)return BigInt(f)<=BigInt(e.filterData);throw new u.InvalidNumericalCriteriaError({...n,criteria:e,fieldValue:f});case 4:if(d===2||d===3){let i;return d===3?i=o.fromHex(e.filterData,"string"):i=e.filterData.slice(2),f.includes(i)}throw new u.FieldValueNotComparableError({...n,criteria:e,fieldValue:f});case 5:if(typeof f!="string")throw new u.FieldValueNotComparableError({...n,criteria:e,fieldValue:f});if(d===3){const i=o.fromHex(e.filterData,"string");return new RegExp(i).test(f)}default:throw new u.UnrecognizedFilterTypeError({...n,criteria:e,fieldValue:f})}}buildParameters(e,f){const[n,d]=this.validateDeploymentConfig(e,f);let i;if(Q(n)){let a=n.actionSteps.filter(s=>!!s);if(a.length===0)throw new u.NoEventActionStepsProvidedError;if(a.length>4)throw new u.TooManyEventActionStepsProvidedError;let r=Array.from({length:4},(s,y)=>a.at(y)||a.at(-1));i={actionClaimant:n.actionClaimant,actionStepOne:r[0],actionStepTwo:r[1],actionStepThree:r[2],actionStepFour:r[3]}}else i=n;return{abi:C.fe,bytecode:d0,args:[Z(i)],...this.optionallyAttachAccount(d.account)}}isArraylikeIndexed(e,f){var n;return!!((e.actionParameter.fieldType===3||e.actionParameter.fieldType===2)&&((n=f.inputs[e.actionParameter.fieldIndex])!=null&&n.indexed))}async getLogsForActionSteps(e){const f=await this.getActionSteps(),n=[];for(const d of f)if(d.signatureType===0){const i=await this.getLogsForActionStep(d,e);n.push(...i)}return n}async getLogsForActionStep(e,f){if(e.signatureType!==0)return[];const n=e.signature;let d;if(f.abiItem?d=f.abiItem:d=f.knownSignatures[n],!d)throw new u.ValidationAbiMissingError(n);if("logs"in f)return this.filterLogsByActionStepCriteria(e,f.logs,d);const i=await S.getTransactionReceipt(this._config,{...f,chainId:e.chainid});if(f.notBeforeBlockNumber&&i.blockNumber<f.notBeforeBlockNumber)return[];if(e.signature===h.TRANSFER_SIGNATURE){const{decodedLogs:r,event:s}=await this.decodeTransferLogs(i);return this.filterLogsByActionStepCriteria(e,r,s)}const a=i.logs.filter(r=>r.topics[0]===o.toEventSelector(d)).map(r=>B(d,r));return this.filterLogsByActionStepCriteria(e,a,d)}filterLogsByActionStepCriteria(e,f,n){const d=e.actionParameter,i=[];if(!f.length)return i;for(let a of f)if(o.isAddressEqual(a.address,e.targetContract))try{if(!Array.isArray(a.args))continue;const{value:r,type:s}=this.parseFieldFromAbi(a.args,d.fieldIndex,n.inputs||[],d.fieldType),y={...d,fieldType:s};this.validateFieldAgainstCriteria(y,r,{log:a})&&i.push(a)}catch{}return i}};P.bases={...F!=null&&F.VITE_EVENT_ACTION_BASE?{31337:void 0}:{},...t0.EventAction},P.registryType=h.RegistryType.ACTION;let M=P;function o0(t){return t.type==="tuple"||t.type.startsWith("tuple[")}function X(t,e,f){if(!e.length)throw new u.InvalidTupleDecodingError("No indexes found; cannot parse TUPLE field");const n=e[0]??f.length+1;if(n>=f.length)throw new u.InvalidTupleDecodingError(void 0,n);const d=f[n],i=t[n];if(!o0(d)){const s=K(d.type);return{value:i,type:s}}if(!Array.isArray(i))throw new u.InvalidTupleDecodingError("rawValue is not an array, but param.type is tuple");const a=e.slice(1);if(!a.length)throw new u.InvalidTupleDecodingError(void 0,-1);const r=a[0]??d.components.length+1;if(r>=d.components.length)throw new u.InvalidTupleDecodingError(void 0,r);return X(i,a,d.components)}function K(t){const e=t.toLowerCase();if(e.startsWith("uint"))return 0;if(e.startsWith("int"))return 5;if(e==="address")return 1;if(e==="bytes"||e.startsWith("bytes"))return 2;if(e==="string")return 3;throw new u.DecodedArgsError(`Unrecognized ABI type: ${t}`)}function c0(t){const e=[],f={};for(let n of t){const d=JSON.stringify(n);f[d]||(e.push(n),f[d]=!0)}return e}function Y(t){return{...t,chainid:BigInt(t.chainid)}}function $(t){if(t.chainid>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("Chain ID exceeds max safe integer");return{...t,chainid:Number(t.chainid)}}function O(t){const e=t.slice(2);if(e.length===8)return 1;if(e.length===64)return e.slice(0,56)==="0".repeat(56)?1:0;throw new Error("Invalid signature format")}function p0(t){return o.trim(o.pad(t))}function k(t){return{...Y(t),signatureType:t.signatureType??O(t.signature),signature:o.pad(t.signature),actionType:t.actionType||0,actionParameter:t.actionParameter.fieldType===0?{...t.actionParameter,filterData:p0(t.actionParameter.filterData)}:t.actionParameter}}function Z({actionClaimant:t,actionStepOne:e,actionStepTwo:f,actionStepThree:n,actionStepFour:d}){return o.encodeAbiParameters([{type:"tuple",name:"initPayload",components:[{type:"tuple",name:"actionClaimant",components:[{type:"uint8",name:"signatureType"},{type:"bytes32",name:"signature"},{type:"uint8",name:"fieldIndex"},{type:"address",name:"targetContract"},{type:"uint256",name:"chainid"}]},{type:"tuple",name:"actionStepOne",components:[{type:"bytes32",name:"signature"},{type:"uint8",name:"signatureType"},{type:"uint8",name:"actionType"},{type:"address",name:"targetContract"},{type:"uint256",name:"chainid"},{type:"tuple",name:"actionParameter",components:[{type:"uint8",name:"filterType"},{type:"uint8",name:"fieldType"},{type:"uint32",name:"fieldIndex"},{type:"bytes",name:"filterData"}]}]},{type:"tuple",name:"actionStepTwo",components:[{type:"bytes32",name:"signature"},{type:"uint8",name:"signatureType"},{type:"uint8",name:"actionType"},{type:"address",name:"targetContract"},{type:"uint256",name:"chainid"},{type:"tuple",name:"actionParameter",components:[{type:"uint8",name:"filterType"},{type:"uint8",name:"fieldType"},{type:"uint32",name:"fieldIndex"},{type:"bytes",name:"filterData"}]}]},{type:"tuple",name:"actionStepThree",components:[{type:"bytes32",name:"signature"},{type:"uint8",name:"signatureType"},{type:"uint8",name:"actionType"},{type:"address",name:"targetContract"},{type:"uint256",name:"chainid"},{type:"tuple",name:"actionParameter",components:[{type:"uint8",name:"filterType"},{type:"uint8",name:"fieldType"},{type:"uint32",name:"fieldIndex"},{type:"bytes",name:"filterData"}]}]},{type:"tuple",name:"actionStepFour",components:[{type:"bytes32",name:"signature"},{type:"uint8",name:"signatureType"},{type:"uint8",name:"actionType"},{type:"address",name:"targetContract"},{type:"uint256",name:"chainid"},{type:"tuple",name:"actionParameter",components:[{type:"uint8",name:"filterType"},{type:"uint8",name:"fieldType"},{type:"uint32",name:"fieldIndex"},{type:"bytes",name:"filterData"}]}]}]}],[{actionClaimant:{...Y(t),signatureType:t.signatureType??O(t.signature),signature:o.pad(t.signature)},actionStepOne:k(e),actionStepTwo:k(f),actionStepThree:k(n),actionStepFour:k(d)}])}function y0(){return{filterType:0,fieldType:2,fieldIndex:h.CheatCodes.ANY_ACTION_PARAM,filterData:o.zeroHash}}function b0(t){return{signatureType:0,signature:o.zeroHash,fieldIndex:h.CheatCodes.TX_SENDER_CLAIMANT,targetContract:o.zeroAddress,chainid:t}}const N=63;function l0(t){if(t.length>5)throw new u.InvalidTupleEncodingError("Can only pack up to 5 indexes.");let e=0;return t.forEach((f,n)=>{if(f>N)throw new u.InvalidTupleEncodingError(`Index ${f} exceeds the maximum allowed value (${N}).`);e|=(f&N)<<n*6}),t.length<5&&(e|=N<<t.length*6),e}function J(t){const e=[];for(let f=0;f<5;f++){const n=t>>f*6&N;if(n===N)break;e.push(n)}return e}function B(t,e){const f=o.decodeEventLog({abi:[t],data:e.data,topics:e.topics}),n=Array.isArray(f.args)?f.args:Object.values(f.args);if(!t.inputs.some(s=>s.indexed))return{...e,...f};const d=[],i=[];for(let s=0;s<t.inputs.length;s++)t.inputs[s].indexed?d.push(s):i.push(s);const a=Array.from({length:t.inputs.length});let r=0;for(let s=0;s<d.length;s++)a[d[s]]=n[r++];for(let s=0;s<i.length;s++)a[i[s]]=n[r++];return{...e,eventName:f.eventName,args:a}}function g0([t,e]){if(t<0||t>13||e<0||e>13)throw new u.InvalidTupleEncodingError(`Tuple indices must be between 0-13, got: [${t}, ${e}]`);return 32+(t<<4)+e}function e0(t){if(t<32||t>253)throw new u.InvalidTupleEncodingError(`Field index must be between 32-253, got: ${t}`);const e=t-32,f=e>>4&15,n=e&15;return[f,n]}function f0(t){return t>=32}function h0(t,e){if(!f0(e))throw new u.DecodedArgsError(`Field index ${e} is invalid. Expected index >= 32`);const[f,n]=e0(e);if(f===void 0||n===void 0)throw new u.DecodedArgsError(`Failed to unpack field indexes from ${e}`);if(!t||t.length<=f)throw new u.DecodedArgsError(`Decoded args missing item at index ${f}`);const d=t[f];if(!d||!Array.isArray(d))throw new u.DecodedArgsError(`Expected array at index ${f}, but got ${typeof d}`);if(d.length<=n)throw new u.DecodedArgsError(`index ${n} is out of bounds. tuple length is ${d.length}`);const i=d[n];if(typeof i!="bigint")throw new u.DecodedArgsError(`Expected bigint at tuple index ${n}, but got ${typeof i}`);return i}exports.EventAction=M;exports.FilterType=G;exports.PrimitiveType=q;exports.SignatureType=z;exports.ValueType=j;exports.anyActionParameter=y0;exports.decodeAndReorderLogArgs=B;exports.detectSignatureType=O;exports.getScalarValueFromTuple=h0;exports.isCriteriaFieldIndexTuple=f0;exports.isEventActionPayloadSimple=Q;exports.packCriteriaFieldIndexes=g0;exports.packFieldIndexes=l0;exports.prepareEventActionPayload=Z;exports.transactionSenderClaimant=b0;exports.unpackCriteriaFieldIndexes=e0;exports.unpackFieldIndexes=J;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../generated-dd4FN0Fo.cjs"),S=require("@wagmi/core"),o=require("viem"),t0=require("../deployments-BjBgk03b.cjs"),n0=require("../Deployable/DeployableTarget.cjs"),u=require("../errors.cjs"),h=require("../utils.cjs"),d0="0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b608051611c276100945f395f6101510152611c275ff3fe6080604052600436106100ad575f3560e01c80639bc1cf8111610066578063d7768c471161004c578063d7768c4714610206578063dbdf211014610232578063ddd6ab0814610253575f80fd5b80639bc1cf81146101b9578063c26624e8146101da575f80fd5b806328d6183b1161009657806328d6183b14610106578063393df8cb14610140578063439fab9114610198575f80fd5b806301ffc9a7146100b157806309c5eabe146100e5575b5f80fd5b3480156100bc575f80fd5b506100d06100cb366004611281565b610270565b60405190151581526020015b60405180910390f35b6100f86100f33660046112c7565b6102cb565b6040516100dc929190611381565b348015610111575f80fd5b506040517f7687b0ed0000000000000000000000000000000000000000000000000000000081526020016100dc565b34801561014b575f80fd5b506101737f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100dc565b3480156101a3575f80fd5b506101b76101b23660046112c7565b610300565b005b3480156101c4575f80fd5b506101cd6103a0565b6040516100dc919061149b565b3480156101e5575f80fd5b506101f96101f436600461151c565b61059f565b6040516100dc9190611533565b348015610211575f80fd5b506102256102203660046112c7565b61077a565b6040516100dc9190611545565b34801561023d575f80fd5b506102466107ae565b6040516100dc91906115a7565b34801561025e575f80fd5b506004546040519081526020016100dc565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7687b0ed0000000000000000000000000000000000000000000000000000000014806102c557506102c582610858565b92915050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156103515760018160011c14303b106103485763f92ee8a95f526004601cfd5b818160ff1b1b91505b50610366610361838501856118a8565b6108ad565b801561039b576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610596578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff166001811115610410576104106113a3565b6001811115610421576104216113a3565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610494576104946113a3565b60078111156104a5576104a56113a3565b81528154602090910190610100900460ff1660058111156104c8576104c86113a3565b60058111156104d9576104d96113a3565b8152815462010000900463ffffffff166020820152600182018054604090920191610503906119a9565b80601f016020809104026020016040519081016040528092919081815260200182805461052f906119a9565b801561057a5780601f106105515761010080835404028352916020019161057a565b820191905f5260205f20905b81548152906001019060200180831161055d57829003601f168201915b50505050508152505081525050815260200190600101906103c3565b50505050905090565b6105a7611226565b600482815481106105ba576105ba6119fa565b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156105fd576105fd6113a3565b600181111561060e5761060e6113a3565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610681576106816113a3565b6007811115610692576106926113a3565b81528154602090910190610100900460ff1660058111156106b5576106b56113a3565b60058111156106c6576106c66113a3565b8152815462010000900463ffffffff1660208201526001820180546040909201916106f0906119a9565b80601f016020809104026020016040519081016040528092919081815260200182805461071c906119a9565b80156107675780601f1061073e57610100808354040283529160200191610767565b820191905f5260205f20905b81548152906001019060200180831161074a57829003601f168201915b5050509190925250505090525092915050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a081019091525f8054829060ff1660018111156107fc576107fc6113a3565b600181111561080d5761080d6113a3565b815260018201546020820152600282015460ff81166040830152610100900473ffffffffffffffffffffffffffffffffffffffff166060820152600390910154608090910152919050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe67157950000000000000000000000000000000000000000000000000000000014806102c557506102c582611156565b6108b56111ec565b805180515f8054909190829060ff1916600183818111156108d8576108d86113a3565b02179055506020828101516001808401919091556040840151600284018054606087015173ffffffffffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffff00000000000000000000000000000000000000000090911660ff90931692909217919091179055608090930151600390920191909155828101516004805480850182555f91909152815160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101918255928201517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c90930180549294919392909160ff19919091169083818111156109e1576109e16113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610aa257610aa26113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ae757610ae76113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610b3b9082611a72565b505050604083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610bcc57610bcc6113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610c8d57610c8d6113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610cd257610cd26113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610d269082611a72565b505050606083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610db757610db76113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610e7857610e786113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ebd57610ebd6113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610f119082611a72565b505050608083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610fa257610fa26113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115611063576110636113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101008360058111156110a8576110a86113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff909116178155606082015160018201906110fc9082611a72565b50505050507fdc8145a6c863ebd27b18aa903b7f82f1015527a05a81f227ef06ab79616082b4815f0151826020015183604001518460600151856080015160405161114b959493929190611b89565b60405180910390a150565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806102c557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146102c5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546001166112235763d7e6bcf85f526004601cfd5b50565b6040805160c081019091525f808252602082019081525f6020820181905260408201819052606082015260800161127c6040805160808101909152805f81526020015f81525f6020820152606060409091015290565b905290565b5f60208284031215611291575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112c0575f80fd5b9392505050565b5f80602083850312156112d8575f80fd5b823567ffffffffffffffff8111156112ee575f80fd5b8301601f810185136112fe575f80fd5b803567ffffffffffffffff811115611314575f80fd5b856020828401011115611325575f80fd5b6020919091019590945092505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b8215158152604060208201525f61139b6040830184611335565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600281106113e0576113e06113a3565b9052565b805182525f60208201516113fb60208501826113d0565b5060ff604083015116604084015273ffffffffffffffffffffffffffffffffffffffff60608301511660608401526080820151608084015260a082015160c060a0850152805160088110611451576114516113a3565b60c085015260208101516006811061146b5761146b6113a3565b60e0850152604081015163ffffffff1661010085015260600151608061012085015261139b610140850182611335565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b82811015611510577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184526114fb8583516113e4565b945060209384019391909101906001016114c1565b50929695505050505050565b5f6020828403121561152c575f80fd5b5035919050565b602081525f6112c060208301846113e4565b602081525f6112c06020830184611335565b6115628282516113d0565b6020810151602083015260ff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff6060820151166060830152608081015160808301525050565b60a081016102c58284611557565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160a0810167ffffffffffffffff81118282101715611605576116056115b5565b60405290565b60405160c0810167ffffffffffffffff81118282101715611605576116056115b5565b6040516080810167ffffffffffffffff81118282101715611605576116056115b5565b80356002811061165f575f80fd5b919050565b803560ff8116811461165f575f80fd5b803573ffffffffffffffffffffffffffffffffffffffff8116811461165f575f80fd5b5f60a082840312156116a7575f80fd5b6116af6115e2565b90506116ba82611651565b8152602082810135908201526116d260408301611664565b60408201526116e360608301611674565b606082015260809182013591810191909152919050565b5f82601f830112611709575f80fd5b813567ffffffffffffffff811115611723576117236115b5565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff81118282101715611770576117706115b5565b604052818152838201602001851015611787575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60c082840312156117b3575f80fd5b6117bb61160b565b8235815290506117cd60208301611651565b60208201526117de60408301611664565b60408201526117ef60608301611674565b60608201526080828101359082015260a082013567ffffffffffffffff811115611817575f80fd5b820160808185031215611828575f80fd5b61183061162e565b81356008811061183e575f80fd5b8152602082013560068110611851575f80fd5b6020820152604082013563ffffffff8116811461186c575f80fd5b6040820152606082013567ffffffffffffffff81111561188a575f80fd5b611896868285016116fa565b60608301525060a08301525092915050565b5f602082840312156118b8575f80fd5b813567ffffffffffffffff8111156118ce575f80fd5b820161012081850312156118e0575f80fd5b6118e86115e2565b6118f28583611697565b815260a082013567ffffffffffffffff81111561190d575f80fd5b611919868285016117a3565b60208301525060c082013567ffffffffffffffff811115611938575f80fd5b611944868285016117a3565b60408301525060e082013567ffffffffffffffff811115611963575f80fd5b61196f868285016117a3565b60608301525061010082013567ffffffffffffffff81111561198f575f80fd5b61199b868285016117a3565b608083015250949350505050565b600181811c908216806119bd57607f821691505b6020821081036119f4577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b601f82111561039b57805f5260205f20601f840160051c81016020851015611a4c5750805b601f840160051c820191505b81811015611a6b575f8155600101611a58565b5050505050565b815167ffffffffffffffff811115611a8c57611a8c6115b5565b611aa081611a9a84546119a9565b84611a27565b6020601f821160018114611af1575f8315611abb5750848201515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b178455611a6b565b5f848152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08516915b82811015611b3e5787850151825560209485019460019092019101611b1e565b5084821015611b7a57868401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b60f8161c191681555b50505050600190811b01905550565b611b938187611557565b61012060a08201525f611baa6101208301876113e4565b82810360c0840152611bbc81876113e4565b905082810360e0840152611bd081866113e4565b9050828103610100840152611be581856113e4565b9897505050505050505056fea2646970667358221220a8f9468bd81df646b95b9d19599966d6a1b1f344117e00f66aa985f1fdfee66b64736f6c634300081a0033",i0={"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef":{name:"Transfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0}]},"Transfer(address indexed,address indexed,uint256 indexed)":{name:"Transfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0}]},"0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e":{name:"Purchased",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"uint256"},{type:"uint256"}]},"Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)":{name:"Purchased",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"uint256"},{type:"uint256"}]},"0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27":{name:"NameRegistered",type:"event",inputs:[{type:"string"},{type:"bytes32",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"NameRegistered(string,bytes32 indexed,address indexed,uint256,uint256,uint256)":{name:"NameRegistered",type:"event",inputs:[{type:"string"},{type:"bytes32",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0x0667086d08417333ce63f40d5bc2ef6fd330e25aaaf317b7c489541f8fe600fa":{name:"NameRegistered",type:"event",inputs:[{type:"string"},{type:"bytes32",indexed:!0},{type:"address",indexed:!0},{type:"uint256"}]},"NameRegistered(string,bytes32 indexed,address indexed,uint256)":{name:"NameRegistered",type:"event",inputs:[{type:"string"},{type:"bytes32",indexed:!0},{type:"address",indexed:!0},{type:"uint256"}]},"0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f":{name:"DelegateChanged",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0}]},"DelegateChanged(address indexed,address indexed,address indexed)":{name:"DelegateChanged",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0}]},"0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0":{name:"SwappedV3",type:"event",inputs:[{type:"bytes16"},{type:"address"},{type:"uint256"},{type:"address"},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)":{name:"SwappedV3",type:"event",inputs:[{type:"bytes16"},{type:"address"},{type:"uint256"},{type:"address"},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4":{name:"VoteCast",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256"},{type:"uint8"},{type:"uint256"},{type:"string"}]},"VoteCast(address indexed,uint256,uint8,uint256,string)":{name:"VoteCast",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256"},{type:"uint8"},{type:"uint256"},{type:"string"}]},"0x7ac572687bf4e66a8514fc2ec464fc2644c78bcb1d80a225fc51a33e0ee38bfa":{name:"Minted",type:"event",inputs:[{type:"uint8"},{type:"address"},{type:"uint256"},{type:"uint256"}]},"Minted(uint8,address,uint256,uint256)":{name:"Minted",type:"event",inputs:[{type:"uint8"},{type:"address"},{type:"uint256"},{type:"uint256"}]},"0x2a29f7402bd32f0e4bbe17d44be064f7f64d96ee174ed7cb27936d869bf9a888":{name:"Minted",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint8"},{type:"uint8"},{type:"address",indexed:!0},{type:"tuple",components:[{type:"uint32"},{type:"uint256"},{type:"address"},{type:"uint32"},{type:"uint32"},{type:"uint32"},{type:"address"},{type:"bool"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},{type:"uint256",indexed:!0}]},"Minted(address indexed,uint8,uint8,address indexed,(uint32,uint256,address,uint32,uint32,uint32,address,bool,uint256,uint256,uint256,uint256,uint256),uint256 indexed)":{name:"Minted",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint8"},{type:"uint8"},{type:"address",indexed:!0},{type:"tuple",components:[{type:"uint32"},{type:"uint256"},{type:"address"},{type:"uint32"},{type:"uint32"},{type:"uint32"},{type:"address"},{type:"bool"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},{type:"uint256",indexed:!0}]},"0xc773e203af3f3079b18c21f98bb8d8ccd2fea097d631d448df89de4edbe7a2a8":{name:"ZoraTimedSaleStrategyRewards",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"}]},"ZoraTimedSaleStrategyRewards(address indexed,uint256 indexed,address,uint256,address,uint256,address,uint256,address,uint256,address,uint256)":{name:"ZoraTimedSaleStrategyRewards",type:"event",inputs:[{type:"address",indexed:!0},{type:"uint256",indexed:!0},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"},{type:"address"},{type:"uint256"}]},"0x0f29bbf4ce25d2346bbeb8a898e24e5d6d7d1d19bb895e71faecac833b259547":{name:"BoostClaimed",type:"event",inputs:[{type:"uint256",indexed:!0},{type:"uint256",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"bytes"}]},"BoostClaimed(uint256 indexed,uint256 indexed,address indexed,address,bytes)":{name:"BoostClaimed",type:"event",inputs:[{type:"uint256",indexed:!0},{type:"uint256",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"bytes"}]},"0x116812d3ad4507d72f2c428b63246d594ca055a1dc119394285504c23d1f34cd":{name:"BoostCreated",type:"event",inputs:[{type:"uint256",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"address"},{type:"address"},{type:"address"}]},"BoostCreated(uint256 indexed,address indexed,address indexed,uint256,address,address,address)":{name:"BoostCreated",type:"event",inputs:[{type:"uint256",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"address"},{type:"address"},{type:"address"}]},"0x72d6b4b5ad0fb12b8a7bb3bcb60edd774c096403d611437859c156ecb3c03a36":{name:"SecondaryBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"}]},"SecondaryBuy(address indexed,address indexed,address indexed,uint256,uint256)":{name:"SecondaryBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"}]},"0x6779abc30cb1bfb05c1170de8e2ef5828c19a2590043d2fd9579d945929fd8a4":{name:"CoopTokenBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"CoopTokenBuy(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)":{name:"CoopTokenBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"0x49c4606c4f7f601127761fb65a512e6bca424f62b165476cf1cfdfa51772a6ab":{name:"WowTokenBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"WowTokenBuy(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)":{name:"WowTokenBuy",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"0xeb3adfe7d8294092cd6b0e7ce95ed01c11d3c5d5d3dc1fecdeb87de43c5e40b2":{name:"CoopTokenSell",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"CoopTokenSell(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)":{name:"CoopTokenSell",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"0x0693c83d190a3d36d2ed6c3ac51b1335d2a3588d96f3f3601c8b1e780d0f952a":{name:"WowTokenSell",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"WowTokenSell(address indexed,address indexed,address indexed,uint256,uint256,uint256,uint256,uint256,string,uint256,uint8)":{name:"WowTokenSell",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"string"},{type:"uint256"},{type:"uint8"}]},"0xd5468362e31bdcdc9884e72dcf3b00f9d46086067621224b7cb759308d597c6c":{name:"CoopTokenFees",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"CoopTokenFees(address indexed,address indexed,address indexed,address,uint256,uint256,uint256,uint256)":{name:"CoopTokenFees",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0xf349fe0373a901f0506d5343f4a872f385a7f0c26371d7b9e6bf5584b69d75fc":{name:"WowTokenFees",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"WowTokenFees(address indexed,address indexed,address indexed,address,uint256,uint256,uint256,uint256)":{name:"WowTokenFees",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"address"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0x3be2a577c218a9e2fca79115ab0381630afc182ee832bcad4011c37d323b4843":{name:"CoopTokenTransfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"CoopTokenTransfer(address indexed,address indexed,uint256,uint256,uint256,uint256)":{name:"CoopTokenTransfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0xd19736ba1cd2ffc8c99f90d6c6163e59274d333c89e471cd6668d93849835ac5":{name:"WowTokenTransfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"WowTokenTransfer(address indexed,address indexed,uint256,uint256,uint256,uint256)":{name:"WowTokenTransfer",type:"event",inputs:[{type:"address",indexed:!0},{type:"address",indexed:!0},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"}]},"0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b":{name:"InfoIndexed",type:"event",inputs:[{type:"address",indexed:!0},{type:"string",indexed:!0}]},"InfoIndexed(address indexed,string indexed)":{name:"InfoIndexed",type:"event",inputs:[{type:"address",indexed:!0},{type:"string",indexed:!0}]},"0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c":{name:"Info",type:"event",inputs:[{type:"address"},{type:"string"}]},"Info(address,string)":{name:"Info",type:"event",inputs:[{type:"address"},{type:"string"}]}},m=Symbol.for("@ts-pattern/matcher"),r0=Symbol.for("@ts-pattern/isVariadic"),L="@ts-pattern/anonymous-select-key",U=t=>!!(t&&typeof t=="object"),D=t=>t&&!!t[m],x=(t,e,f)=>{if(D(t)){const n=t[m](),{matched:d,selections:i}=n.match(e);return d&&i&&Object.keys(i).forEach(a=>f(a,i[a])),d}if(U(t)){if(!U(e))return!1;if(Array.isArray(t)){if(!Array.isArray(e))return!1;let n=[],d=[],i=[];for(const a of t.keys()){const r=t[a];D(r)&&r[r0]?i.push(r):i.length?d.push(r):n.push(r)}if(i.length){if(i.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(e.length<n.length+d.length)return!1;const a=e.slice(0,n.length),r=d.length===0?[]:e.slice(-d.length),s=e.slice(n.length,d.length===0?1/0:-d.length);return n.every((y,I)=>x(y,a[I],f))&&d.every((y,I)=>x(y,r[I],f))&&(i.length===0||x(i[0],s,f))}return t.length===e.length&&t.every((a,r)=>x(a,e[r],f))}return Reflect.ownKeys(t).every(n=>{const d=t[n];return(n in e||D(i=d)&&i[m]().matcherType==="optional")&&x(d,e[n],f);var i})}return Object.is(e,t)},E=t=>{var e,f,n;return U(t)?D(t)?(e=(f=(n=t[m]()).getSelectionKeys)==null?void 0:f.call(n))!=null?e:[]:Array.isArray(t)?R(t,E):R(Object.values(t),E):[]},R=(t,e)=>t.reduce((f,n)=>f.concat(e(n)),[]);function b(t){return Object.assign(t,{optional:()=>a0(t),and:e=>p(t,e),or:e=>s0(t,e),select:e=>e===void 0?V(t):V(e,t)})}function a0(t){return b({[m]:()=>({match:e=>{let f={};const n=(d,i)=>{f[d]=i};return e===void 0?(E(t).forEach(d=>n(d,void 0)),{matched:!0,selections:f}):{matched:x(t,e,n),selections:f}},getSelectionKeys:()=>E(t),matcherType:"optional"})})}function p(...t){return b({[m]:()=>({match:e=>{let f={};const n=(d,i)=>{f[d]=i};return{matched:t.every(d=>x(d,e,n)),selections:f}},getSelectionKeys:()=>R(t,E),matcherType:"and"})})}function s0(...t){return b({[m]:()=>({match:e=>{let f={};const n=(d,i)=>{f[d]=i};return R(t,E).forEach(d=>n(d,void 0)),{matched:t.some(d=>x(d,e,n)),selections:f}},getSelectionKeys:()=>R(t,E),matcherType:"or"})})}function c(t){return{[m]:()=>({match:e=>({matched:!!t(e)})})}}function V(...t){const e=typeof t[0]=="string"?t[0]:void 0,f=t.length===2?t[1]:typeof t[0]=="string"?void 0:t[0];return b({[m]:()=>({match:n=>{let d={[e??L]:n};return{matched:f===void 0||x(f,n,(i,a)=>{d[i]=a}),selections:d}},getSelectionKeys:()=>[e??L].concat(f===void 0?[]:E(f))})})}function l(t){return typeof t=="number"}function A(t){return typeof t=="string"}function T(t){return typeof t=="bigint"}b(c(function(t){return!0}));const w=t=>Object.assign(b(t),{startsWith:e=>{return w(p(t,(f=e,c(n=>A(n)&&n.startsWith(f)))));var f},endsWith:e=>{return w(p(t,(f=e,c(n=>A(n)&&n.endsWith(f)))));var f},minLength:e=>w(p(t,(f=>c(n=>A(n)&&n.length>=f))(e))),length:e=>w(p(t,(f=>c(n=>A(n)&&n.length===f))(e))),maxLength:e=>w(p(t,(f=>c(n=>A(n)&&n.length<=f))(e))),includes:e=>{return w(p(t,(f=e,c(n=>A(n)&&n.includes(f)))));var f},regex:e=>{return w(p(t,(f=e,c(n=>A(n)&&!!n.match(f)))));var f}});w(c(A));const g=t=>Object.assign(b(t),{between:(e,f)=>g(p(t,((n,d)=>c(i=>l(i)&&n<=i&&d>=i))(e,f))),lt:e=>g(p(t,(f=>c(n=>l(n)&&n<f))(e))),gt:e=>g(p(t,(f=>c(n=>l(n)&&n>f))(e))),lte:e=>g(p(t,(f=>c(n=>l(n)&&n<=f))(e))),gte:e=>g(p(t,(f=>c(n=>l(n)&&n>=f))(e))),int:()=>g(p(t,c(e=>l(e)&&Number.isInteger(e)))),finite:()=>g(p(t,c(e=>l(e)&&Number.isFinite(e)))),positive:()=>g(p(t,c(e=>l(e)&&e>0))),negative:()=>g(p(t,c(e=>l(e)&&e<0)))});g(c(l));const v=t=>Object.assign(b(t),{between:(e,f)=>v(p(t,((n,d)=>c(i=>T(i)&&n<=i&&d>=i))(e,f))),lt:e=>v(p(t,(f=>c(n=>T(n)&&n<f))(e))),gt:e=>v(p(t,(f=>c(n=>T(n)&&n>f))(e))),lte:e=>v(p(t,(f=>c(n=>T(n)&&n<=f))(e))),gte:e=>v(p(t,(f=>c(n=>T(n)&&n>=f))(e))),positive:()=>v(p(t,c(e=>T(e)&&e>0))),negative:()=>v(p(t,c(e=>T(e)&&e<0)))});v(c(T));b(c(function(t){return typeof t=="boolean"}));b(c(function(t){return typeof t=="symbol"}));b(c(function(t){return t==null}));b(c(function(t){return t!=null}));class u0 extends Error{constructor(e){let f;try{f=JSON.stringify(e)}catch{f=e}super(`Pattern matching error: no pattern matches value ${f}`),this.input=void 0,this.input=e}}const W={matched:!1,value:void 0};function H(t){return new _(t,W)}class _{constructor(e,f){this.input=void 0,this.state=void 0,this.input=e,this.state=f}with(...e){if(this.state.matched)return this;const f=e[e.length-1],n=[e[0]];let d;e.length===3&&typeof e[1]=="function"?d=e[1]:e.length>2&&n.push(...e.slice(1,e.length-1));let i=!1,a={};const r=(y,I)=>{i=!0,a[y]=I},s=!n.some(y=>x(y,this.input,r))||d&&!d(this.input)?W:{matched:!0,value:f(i?L in a?a[L]:a:this.input,this.input)};return new _(this.input,s)}when(e,f){if(this.state.matched)return this;const n=!!e(this.input);return new _(this.input,n?{matched:!0,value:f(this.input,this.input)}:W)}otherwise(e){return this.state.matched?this.state.value:e(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new u0(this.input)}run(){return this.exhaustive()}returnType(){return this}}const F={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"};var G=(t=>(t[t.EQUAL=0]="EQUAL",t[t.NOT_EQUAL=1]="NOT_EQUAL",t[t.GREATER_THAN=2]="GREATER_THAN",t[t.LESS_THAN=3]="LESS_THAN",t[t.CONTAINS=4]="CONTAINS",t[t.REGEX=5]="REGEX",t[t.GREATER_THAN_OR_EQUAL=6]="GREATER_THAN_OR_EQUAL",t[t.LESS_THAN_OR_EQUAL=7]="LESS_THAN_OR_EQUAL",t))(G||{}),q=(t=>(t[t.UINT=0]="UINT",t[t.ADDRESS=1]="ADDRESS",t[t.BYTES=2]="BYTES",t[t.STRING=3]="STRING",t[t.TUPLE=4]="TUPLE",t[t.INT=5]="INT",t))(q||{}),z=(t=>(t[t.EVENT=0]="EVENT",t[t.FUNC=1]="FUNC",t))(z||{}),j=(t=>(t[t.RAW=0]="RAW",t[t.WAD=1]="WAD",t))(j||{});function Q(t){return Array.isArray(t.actionSteps)}const P=class P extends n0.DeployableTarget{constructor(){super(...arguments),this.abi=C.fe}async getActionStep(e,f){return(await this.getActionSteps(f)).at(e)}async getActionSteps(e){const f=await C.gF(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...e});return c0(f.map($))}async getActionStepsCount(e){return(await this.getActionSteps(e)).length}async getActionClaimant(e){const f=await C.TF(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...e});return $(f)}async execute(e,f){return await this.awaitResult(this.executeRaw(e,f))}async executeRaw(e,f){const{request:n,result:d}=await C.EF(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...f,args:[e]});return{hash:await C.RF(this._config,n),result:d}}async deriveActionClaimantFromTransaction(e,f){if(e.fieldIndex===h.CheatCodes.TX_SENDER_CLAIMANT){if("hash"in f){const d=await S.getTransaction(this._config,{...f,chainId:e.chainid});return f.notBeforeBlockNumber&&d.blockNumber<f.notBeforeBlockNumber?void 0:d.from}if("logs"in f){for(let d of f.logs)if(d.transactionHash){const i=await S.getTransaction(this._config,{...f,hash:d.transactionHash,chainId:e.chainid});return f.notBeforeBlockNumber&&i.blockNumber<f.notBeforeBlockNumber?void 0:i.from}}return}const n=e.signature;if(e.signatureType===0){let d;if(f.abiItem?d=f.abiItem:d=f.knownSignatures[n],!d)throw new u.ValidationAbiMissingError(n);if("logs"in f){const r=f.logs.filter(s=>s.topics[0]===n).map(s=>B(d,s));for(const s of r){if(!o.isAddressEqual(s.address,e.targetContract))continue;const y=this.validateClaimantAgainstArgs(e,s);if(y)return y}}if(!("hash"in f))return;const i=await S.getTransactionReceipt(this._config,{...f,chainId:e.chainid});if(f.notBeforeBlockNumber&&i.blockNumber<f.notBeforeBlockNumber)return;let a;n===h.TRANSFER_SIGNATURE?{decodedLogs:a}=await this.decodeTransferLogs(i):a=i.logs.filter(r=>r.topics[0]===o.toEventSelector(d)).map(r=>B(d,r));for(let r of a){if(!o.isAddressEqual(r.address,e.targetContract))continue;let s=this.validateClaimantAgainstArgs(e,r);if(s)return s}}if(e.signatureType===1&&"hash"in f){const d=await S.getTransaction(this._config,{...f,chainId:e.chainid});if(f.notBeforeBlockNumber&&d.blockNumber<f.notBeforeBlockNumber||!o.isAddressEqual(d.to,e.targetContract))return;let i;if(f.abiItem?i=f.abiItem:i=f.knownSignatures[n],!i)throw new u.ValidationAbiMissingError(e.signature);let a;try{a=o.decodeFunctionData({abi:[i],data:d.input})}catch(r){throw new u.FunctionDataDecodeError([i],r)}return this.validateClaimantAgainstArgs(e,a)}}validateClaimantAgainstArgs(e,f){if(!f||!Array.isArray(f==null?void 0:f.args)||(f==null?void 0:f.args.length)<=e.fieldIndex)return;const n=f.args.at(e.fieldIndex);if(o.isAddress(n))return n}async validateActionSteps(e){const f=await this.getActionSteps();for(const n of f)if(!await this.isActionStepValid(n,e))return!1;return!0}async isActionStepValid(e,f){if(e.signatureType===0){const n=e.signature;let d;if(f.abiItem?d=f.abiItem:d=f.knownSignatures[n],!d)throw new u.ValidationAbiMissingError(n);if(this.isArraylikeIndexed(e,d))throw new u.UnparseableAbiParamError(e.actionParameter.fieldIndex,d);if("logs"in f)return this.isActionEventValid(e,f.logs,d);const i=await S.getTransactionReceipt(this._config,{...f,chainId:e.chainid});if(f.notBeforeBlockNumber&&i.blockNumber<f.notBeforeBlockNumber)return!1;if(e.signature===h.TRANSFER_SIGNATURE){const{decodedLogs:r,event:s}=await this.decodeTransferLogs(i);return this.isActionEventValid(e,r,s)}const a=i.logs.filter(r=>r.topics[0]===o.toEventSelector(d)).map(r=>B(d,r));return this.isActionEventValid(e,a,d)}if(e.signatureType===1&&"hash"in f){const n=await S.getTransaction(this._config,{...f,chainId:e.chainid});return f.notBeforeBlockNumber&&n.blockNumber<f.notBeforeBlockNumber?!1:this.isActionFunctionValid(e,n,f)}return!1}isActionEventValid(e,f,n){const d=e.actionParameter;if(!f.length)return!1;for(let i of f)try{if(!Array.isArray(i.args))throw new u.DecodedArgsMalformedError({log:i,criteria:d,fieldValue:void 0});const{value:a,type:r}=this.parseFieldFromAbi(i.args,d.fieldIndex,n.inputs||[],d.fieldType),s={...d,fieldType:r};if(this.validateFieldAgainstCriteria(s,a,{log:i}))return!0}catch{}return!1}async decodeTransferLogs(e){const f=e.logs.filter(d=>d.topics[0]===h.TRANSFER_SIGNATURE),n=structuredClone(i0["Transfer(address indexed,address indexed,uint256 indexed)"]);try{return{decodedLogs:f.map(i=>{const{eventName:a,args:r}=o.decodeEventLog({abi:[n],data:i.data,topics:i.topics});return{...i,eventName:a,args:r}}),event:n}}catch{try{return n.inputs[2].indexed=!1,{decodedLogs:f.map(i=>{const{eventName:a,args:r}=o.decodeEventLog({abi:[n],data:i.data,topics:i.topics});return{...i,eventName:a,args:r}}),event:n}}catch{throw new u.DecodedArgsError("Failed to decode transfer logs")}}}parseFieldFromAbi(e,f,n,d){if(f===h.CheatCodes.ANY_ACTION_PARAM)return{value:o.zeroHash,type:2};if(d!==4){if(!Array.isArray(e)||f>=e.length)throw new u.FieldValueUndefinedError({fieldValue:e,criteria:{filterType:0,fieldType:d,fieldIndex:f,filterData:o.zeroHash}});const a=n[f];if(!a||!a.type)throw new u.UnparseableAbiParamError(f,a);const r=e[f],s=K(a.type);if(s===1&&(typeof r!="string"||!o.isAddress(r)))throw new u.FieldValueUndefinedError({fieldValue:r,criteria:{fieldIndex:f,filterType:0,fieldType:s,filterData:o.zeroHash}});return{value:r,type:s}}const i=J(f);return X(e,i,n)}isActionFunctionValid(e,f,n){const d=e.actionParameter,i=e.signature;let a;if(n.abiItem?a=n.abiItem:a=n.knownSignatures[i],!a)throw new u.ValidationAbiMissingError(i);let r;try{r=o.decodeFunctionData({abi:[a],data:f.input})}catch(s){throw new u.FunctionDataDecodeError([a],s)}if(!(r!=null&&r.args))return!1;try{const{value:s,type:y}=this.parseFieldFromAbi(r.args,d.fieldIndex,a.inputs||[],d.fieldType),I={...d,fieldType:y};return this.validateFieldAgainstCriteria(I,s,{decodedArgs:r.args})}catch{return!1}}validateFieldAgainstCriteria(e,f,n){if(e.filterType===0&&e.fieldType===2&&e.fieldIndex===h.CheatCodes.ANY_ACTION_PARAM)return!0;if(e.fieldType===4)throw new u.InvalidTupleDecodingError("Tuples should not be passed into validateFieldAgainstCriteria");const d=e.fieldType;switch(e.filterType){case 0:return H(d).with(1,()=>o.isAddressEqual(e.filterData,f)).with(0,()=>BigInt(f)===BigInt(e.filterData)).with(3,()=>f===o.fromHex(e.filterData,"string")).otherwise(()=>f===e.filterData);case 1:return H(d).with(1,()=>!o.isAddressEqual(e.filterData,f)).with(0,()=>BigInt(f)!==BigInt(e.filterData)).with(5,()=>BigInt(f)!==BigInt(e.filterData)).with(3,()=>f!==o.fromHex(e.filterData,"string")).otherwise(()=>f!==e.filterData);case 2:if(d===0||d===5)return BigInt(f)>BigInt(e.filterData);throw new u.InvalidNumericalCriteriaError({...n,criteria:e,fieldValue:f});case 6:if(d===0||d===5)return BigInt(f)>=BigInt(e.filterData);throw new u.InvalidNumericalCriteriaError({...n,criteria:e,fieldValue:f});case 3:if(d===0||d===5)return BigInt(f)<BigInt(e.filterData);throw new u.InvalidNumericalCriteriaError({...n,criteria:e,fieldValue:f});case 7:if(d===0||d===5)return BigInt(f)<=BigInt(e.filterData);throw new u.InvalidNumericalCriteriaError({...n,criteria:e,fieldValue:f});case 4:if(d===2||d===3){let i;return d===3?i=o.fromHex(e.filterData,"string"):i=e.filterData.slice(2),f.includes(i)}throw new u.FieldValueNotComparableError({...n,criteria:e,fieldValue:f});case 5:if(typeof f!="string")throw new u.FieldValueNotComparableError({...n,criteria:e,fieldValue:f});if(d===3){const i=o.fromHex(e.filterData,"string");return new RegExp(i).test(f)}default:throw new u.UnrecognizedFilterTypeError({...n,criteria:e,fieldValue:f})}}buildParameters(e,f){const[n,d]=this.validateDeploymentConfig(e,f);let i;if(Q(n)){let a=n.actionSteps.filter(s=>!!s);if(a.length===0)throw new u.NoEventActionStepsProvidedError;if(a.length>4)throw new u.TooManyEventActionStepsProvidedError;let r=Array.from({length:4},(s,y)=>a.at(y)||a.at(-1));i={actionClaimant:n.actionClaimant,actionStepOne:r[0],actionStepTwo:r[1],actionStepThree:r[2],actionStepFour:r[3]}}else i=n;return{abi:C.fe,bytecode:d0,args:[Z(i)],...this.optionallyAttachAccount(d.account)}}isArraylikeIndexed(e,f){var n;return!!((e.actionParameter.fieldType===3||e.actionParameter.fieldType===2)&&((n=f.inputs[e.actionParameter.fieldIndex])!=null&&n.indexed))}async getLogsForActionSteps(e){const f=await this.getActionSteps(),n=[];for(const d of f)if(d.signatureType===0){const i=await this.getLogsForActionStep(d,e);n.push(...i)}return n}async getLogsForActionStep(e,f){if(e.signatureType!==0)return[];const n=e.signature;let d;if(f.abiItem?d=f.abiItem:d=f.knownSignatures[n],!d)throw new u.ValidationAbiMissingError(n);if("logs"in f)return this.filterLogsByActionStepCriteria(e,f.logs,d);const i=await S.getTransactionReceipt(this._config,{...f,chainId:e.chainid});if(f.notBeforeBlockNumber&&i.blockNumber<f.notBeforeBlockNumber)return[];if(e.signature===h.TRANSFER_SIGNATURE){const{decodedLogs:r,event:s}=await this.decodeTransferLogs(i);return this.filterLogsByActionStepCriteria(e,r,s)}const a=i.logs.filter(r=>r.topics[0]===o.toEventSelector(d)).map(r=>B(d,r));return this.filterLogsByActionStepCriteria(e,a,d)}filterLogsByActionStepCriteria(e,f,n){const d=e.actionParameter,i=[];if(!f.length)return i;for(let a of f)if(o.isAddressEqual(a.address,e.targetContract))try{if(!Array.isArray(a.args))continue;const{value:r,type:s}=this.parseFieldFromAbi(a.args,d.fieldIndex,n.inputs||[],d.fieldType),y={...d,fieldType:s};this.validateFieldAgainstCriteria(y,r,{log:a})&&i.push(a)}catch{}return i}};P.bases={...F!=null&&F.VITE_EVENT_ACTION_BASE?{31337:void 0}:{},...t0.EventAction},P.registryType=h.RegistryType.ACTION;let M=P;function o0(t){return t.type==="tuple"||t.type.startsWith("tuple[")}function X(t,e,f){if(!e.length)throw new u.InvalidTupleDecodingError("No indexes found; cannot parse TUPLE field");const n=e[0]??f.length+1;if(n>=f.length)throw new u.InvalidTupleDecodingError(void 0,n);const d=f[n],i=t[n];if(!o0(d)){const s=K(d.type);return{value:i,type:s}}if(!Array.isArray(i))throw new u.InvalidTupleDecodingError("rawValue is not an array, but param.type is tuple");const a=e.slice(1);if(!a.length)throw new u.InvalidTupleDecodingError(void 0,-1);const r=a[0]??d.components.length+1;if(r>=d.components.length)throw new u.InvalidTupleDecodingError(void 0,r);return X(i,a,d.components)}function K(t){const e=t.toLowerCase();if(e.startsWith("uint"))return 0;if(e.startsWith("int"))return 5;if(e==="address")return 1;if(e==="bytes"||e.startsWith("bytes"))return 2;if(e==="string")return 3;throw new u.DecodedArgsError(`Unrecognized ABI type: ${t}`)}function c0(t){const e=[],f={};for(let n of t){const d=JSON.stringify(n);f[d]||(e.push(n),f[d]=!0)}return e}function Y(t){return{...t,chainid:BigInt(t.chainid)}}function $(t){if(t.chainid>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("Chain ID exceeds max safe integer");return{...t,chainid:Number(t.chainid)}}function O(t){const e=t.slice(2);if(e.length===8)return 1;if(e.length===64)return e.slice(0,56)==="0".repeat(56)?1:0;throw new Error("Invalid signature format")}function p0(t){return o.trim(o.pad(t))}function k(t){return{...Y(t),signatureType:t.signatureType??O(t.signature),signature:o.pad(t.signature),actionType:t.actionType||0,actionParameter:t.actionParameter.fieldType===0?{...t.actionParameter,filterData:p0(t.actionParameter.filterData)}:t.actionParameter}}function Z({actionClaimant:t,actionStepOne:e,actionStepTwo:f,actionStepThree:n,actionStepFour:d}){return o.encodeAbiParameters([{type:"tuple",name:"initPayload",components:[{type:"tuple",name:"actionClaimant",components:[{type:"uint8",name:"signatureType"},{type:"bytes32",name:"signature"},{type:"uint8",name:"fieldIndex"},{type:"address",name:"targetContract"},{type:"uint256",name:"chainid"}]},{type:"tuple",name:"actionStepOne",components:[{type:"bytes32",name:"signature"},{type:"uint8",name:"signatureType"},{type:"uint8",name:"actionType"},{type:"address",name:"targetContract"},{type:"uint256",name:"chainid"},{type:"tuple",name:"actionParameter",components:[{type:"uint8",name:"filterType"},{type:"uint8",name:"fieldType"},{type:"uint32",name:"fieldIndex"},{type:"bytes",name:"filterData"}]}]},{type:"tuple",name:"actionStepTwo",components:[{type:"bytes32",name:"signature"},{type:"uint8",name:"signatureType"},{type:"uint8",name:"actionType"},{type:"address",name:"targetContract"},{type:"uint256",name:"chainid"},{type:"tuple",name:"actionParameter",components:[{type:"uint8",name:"filterType"},{type:"uint8",name:"fieldType"},{type:"uint32",name:"fieldIndex"},{type:"bytes",name:"filterData"}]}]},{type:"tuple",name:"actionStepThree",components:[{type:"bytes32",name:"signature"},{type:"uint8",name:"signatureType"},{type:"uint8",name:"actionType"},{type:"address",name:"targetContract"},{type:"uint256",name:"chainid"},{type:"tuple",name:"actionParameter",components:[{type:"uint8",name:"filterType"},{type:"uint8",name:"fieldType"},{type:"uint32",name:"fieldIndex"},{type:"bytes",name:"filterData"}]}]},{type:"tuple",name:"actionStepFour",components:[{type:"bytes32",name:"signature"},{type:"uint8",name:"signatureType"},{type:"uint8",name:"actionType"},{type:"address",name:"targetContract"},{type:"uint256",name:"chainid"},{type:"tuple",name:"actionParameter",components:[{type:"uint8",name:"filterType"},{type:"uint8",name:"fieldType"},{type:"uint32",name:"fieldIndex"},{type:"bytes",name:"filterData"}]}]}]}],[{actionClaimant:{...Y(t),signatureType:t.signatureType??O(t.signature),signature:o.pad(t.signature)},actionStepOne:k(e),actionStepTwo:k(f),actionStepThree:k(n),actionStepFour:k(d)}])}function y0(){return{filterType:0,fieldType:2,fieldIndex:h.CheatCodes.ANY_ACTION_PARAM,filterData:o.zeroHash}}function b0(t){return{signatureType:0,signature:o.zeroHash,fieldIndex:h.CheatCodes.TX_SENDER_CLAIMANT,targetContract:o.zeroAddress,chainid:t}}const N=63;function l0(t){if(t.length>5)throw new u.InvalidTupleEncodingError("Can only pack up to 5 indexes.");let e=0;return t.forEach((f,n)=>{if(f>N)throw new u.InvalidTupleEncodingError(`Index ${f} exceeds the maximum allowed value (${N}).`);e|=(f&N)<<n*6}),t.length<5&&(e|=N<<t.length*6),e}function J(t){const e=[];for(let f=0;f<5;f++){const n=t>>f*6&N;if(n===N)break;e.push(n)}return e}function B(t,e){const f=o.decodeEventLog({abi:[t],data:e.data,topics:e.topics}),n=Array.isArray(f.args)?f.args:Object.values(f.args);if(!t.inputs.some(s=>s.indexed))return{...e,...f};const d=[],i=[];for(let s=0;s<t.inputs.length;s++)t.inputs[s].indexed?d.push(s):i.push(s);const a=Array.from({length:t.inputs.length});let r=0;for(let s=0;s<d.length;s++)a[d[s]]=n[r++];for(let s=0;s<i.length;s++)a[i[s]]=n[r++];return{...e,eventName:f.eventName,args:a}}function g0([t,e]){if(t<0||t>13||e<0||e>13)throw new u.InvalidTupleEncodingError(`Tuple indices must be between 0-13, got: [${t}, ${e}]`);return 32+(t<<4)+e}function e0(t){if(t<32||t>253)throw new u.InvalidTupleEncodingError(`Field index must be between 32-253, got: ${t}`);const e=t-32,f=e>>4&15,n=e&15;return[f,n]}function f0(t){return t>=32}function h0(t,e){if(!f0(e))throw new u.DecodedArgsError(`Field index ${e} is invalid. Expected index >= 32`);const[f,n]=e0(e);if(f===void 0||n===void 0)throw new u.DecodedArgsError(`Failed to unpack field indexes from ${e}`);if(!t||t.length<=f)throw new u.DecodedArgsError(`Decoded args missing item at index ${f}`);const d=t[f];if(!d||!Array.isArray(d))throw new u.DecodedArgsError(`Expected array at index ${f}, but got ${typeof d}`);if(d.length<=n)throw new u.DecodedArgsError(`index ${n} is out of bounds. tuple length is ${d.length}`);const i=d[n];if(typeof i!="bigint")throw new u.DecodedArgsError(`Expected bigint at tuple index ${n}, but got ${typeof i}`);return i}exports.EventAction=M;exports.FilterType=G;exports.PrimitiveType=q;exports.SignatureType=z;exports.ValueType=j;exports.anyActionParameter=y0;exports.decodeAndReorderLogArgs=B;exports.detectSignatureType=O;exports.getScalarValueFromTuple=h0;exports.isCriteriaFieldIndexTuple=f0;exports.isEventActionPayloadSimple=Q;exports.packCriteriaFieldIndexes=g0;exports.packFieldIndexes=l0;exports.prepareEventActionPayload=Z;exports.transactionSenderClaimant=b0;exports.unpackCriteriaFieldIndexes=e0;exports.unpackFieldIndexes=J;
|
|
2
2
|
//# sourceMappingURL=EventAction.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c$ as K, d0 as o0, d1 as c0, d2 as p0, d3 as y0 } from "../generated-B6mEIx8i.js";
|
|
2
2
|
import { getTransaction as R, getTransactionReceipt as V } from "@wagmi/core";
|
|
3
3
|
import { isAddressEqual as E, toEventSelector as G, decodeFunctionData as Y, isAddress as Z, decodeEventLog as j, zeroHash as C, fromHex as L, encodeAbiParameters as b0, pad as z, zeroAddress as l0, trim as g0 } from "viem";
|
|
4
|
-
import { j as h0 } from "../deployments-
|
|
4
|
+
import { j as h0 } from "../deployments-CHQ30INq.js";
|
|
5
5
|
import { DeployableTarget as x0 } from "../Deployable/DeployableTarget.js";
|
|
6
6
|
import { ValidationAbiMissingError as N, FunctionDataDecodeError as q, UnparseableAbiParamError as J, DecodedArgsMalformedError as m0, DecodedArgsError as A, FieldValueUndefinedError as f0, InvalidTupleDecodingError as S, UnrecognizedFilterTypeError as w0, FieldValueNotComparableError as e0, InvalidNumericalCriteriaError as _, NoEventActionStepsProvidedError as A0, TooManyEventActionStepsProvidedError as T0, InvalidTupleEncodingError as O } from "../errors.js";
|
|
7
7
|
import { RegistryType as v0, CheatCodes as B, TRANSFER_SIGNATURE as P } from "../utils.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const a=require("./generated-dd4FN0Fo.cjs"),r=require("./componentInterfaces-BZ3fSNkT.cjs"),u=require("@wagmi/core"),A=require("./errors.cjs"),h=require("viem"),p=require("./deployments-xekPSd2S.cjs"),g=require("./Deployable/DeployableTargetWithRBAC.cjs"),I=require("./utils.cjs"),s=require("./SimpleDenyList-Bv2mSQJO.cjs"),m=require("./AllowLists/SimpleAllowList.cjs"),D="0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b612127806100895f395ff3fe608060405260043610610229575f3560e01c8063859aa08911610131578063e89079fa116100ac578063f04e283e1161007c578063fdee627a11610062578063fdee627a14610620578063fe9fbb8014610634578063fee81cf414610653575f80fd5b8063f04e283e146105fa578063f2fde38b1461060d575f80fd5b8063e89079fa14610587578063ec87621c146105a6578063ef05bda9146105ba578063ef4550bf146105d9575f80fd5b8063be4994f811610101578063dcc21361116100e7578063dcc2136114610526578063e3f756de14610545578063e611205f14610568575f80fd5b8063be4994f8146104e8578063cbb7de5114610507575f80fd5b8063859aa089146104535780638da5cb5b14610472578063937d599c146104aa57806399927eec146104c9575f80fd5b80632de94807116101c1578063514e62fc11610191578063715018a611610177578063715018a61461041857806375b238fc146104205780637e973e8214610434575f80fd5b8063514e62fc146103db57806354d1f13d14610410575f80fd5b80632de948071461034b5780634359d28a1461038a578063439fab91146103a95780634a4ee7b1146103c8575f80fd5b80631cd64df4116101fc5780631cd64df4146102b557806325692962146102ea57806328d6183b146102f25780632c297c181461032c575f80fd5b806301ffc9a71461022d578063096f199f14610261578063183a4f6e1461028d5780631c10893f146102a2575b5f80fd5b348015610238575f80fd5b5061024c610247366004611725565b610684565b60405190151581526020015b60405180910390f35b34801561026c575f80fd5b5061028061027b36600461176b565b6106df565b60405161025891906117b0565b6102a061029b36600461176b565b610785565b005b6102a06102b03660046117e3565b610792565b3480156102c0575f80fd5b5061024c6102cf3660046117e3565b638b78c6d8600c9081525f9290925260209091205481161490565b6102a06107a8565b3480156102fd575f80fd5b506040517f2a6b3c38000000000000000000000000000000000000000000000000000000008152602001610258565b348015610337575f80fd5b506102a0610346366004611852565b6107f5565b348015610356575f80fd5b5061037c610365366004611891565b638b78c6d8600c9081525f91909152602090205490565b604051908152602001610258565b348015610395575f80fd5b506102a06103a43660046118ed565b6108ea565b3480156103b4575f80fd5b506102a06103c3366004611852565b6109e4565b6102a06103d63660046117e3565b610ab7565b3480156103e6575f80fd5b5061024c6103f53660046117e3565b638b78c6d8600c9081525f9290925260209091205416151590565b6102a0610ac9565b6102a0610b02565b34801561042b575f80fd5b5061037c600281565b34801561043f575f80fd5b506102a061044e366004611852565b610b15565b34801561045e575f80fd5b506102a061046d366004611959565b610bfe565b34801561047d575f80fd5b50638b78c6d8195460405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610258565b3480156104b5575f80fd5b5061024c6104c4366004611852565b610ca0565b3480156104d4575f80fd5b5061024c6104e3366004611852565b610d15565b3480156104f3575f80fd5b506102a06105023660046118ed565b610d7f565b348015610512575f80fd5b506102a0610521366004611959565b610e1d565b348015610531575f80fd5b506102a06105403660046118ed565b610ebd565b348015610550575f80fd5b5061024c61055f36600461198c565b60019392505050565b348015610573575f80fd5b5061028061058236600461176b565b610f5b565b348015610592575f80fd5b506102a06105a1366004611852565b610f69565b3480156105b1575f80fd5b5061037c600181565b3480156105c5575f80fd5b506102a06105d4366004611852565b6110bc565b3480156105e4575f80fd5b506105ed6111bc565b60405161025891906119dd565b6102a0610608366004611891565b611290565b6102a061061b366004611891565b6112ca565b34801561062b575f80fd5b506105ed6112f0565b34801561063f575f80fd5b5061024c61064e366004611891565b6113ba565b34801561065e575f80fd5b5061037c61066d366004611891565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f2a6b3c380000000000000000000000000000000000000000000000000000000014806106d957506106d982611419565b92915050565b600181815481106106ee575f80fd5b905f5260205f20015f91509050805461070690611a5e565b80601f016020809104026020016040519081016040528092919081815260200182805461073290611a5e565b801561077d5780601f106107545761010080835404028352916020019161077d565b820191905f5260205f20905b81548152906001019060200180831161076057829003601f168201915b505050505081565b61078f338261146e565b50565b61079a611479565b6107a48282611493565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b6107fe336113ba565b610834576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61083e8282610ca0565b156108aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f44656e796c69737420494420616c72656164792065786973747300000000000060448201526064015b60405180910390fd5b6001805480820182555f919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6016108e5828483611b27565b505050565b60026108f58161149f565b83821461092e576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848110156109dc575f84848381811061094b5761094b611be1565b90506020020160208101906109609190611c0e565b90508015156001036109a25761099d87878481811061098157610981611be1565b90506020020160208101906109969190611891565b6001611493565b6109d3565b6109d38787848181106109b7576109b7611be1565b90506020020160208101906109cc9190611891565b600161146e565b50600101610930565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011328054600382558015610a355760018160011c14303b10610a2c5763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f8080610a4585870187611d5e565b925092509250610a54836114d0565b8151610a66905f90602085019061164f565b508051610a7a90600190602084019061164f565b5050505080156108e5576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a1505050565b610abf611479565b6107a4828261146e565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b610b0a611479565b610b135f611518565b565b610b1e336113ba565b610b54576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b5e8282610d15565b15610bc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f416c6c6f776c69737420494420616c726561647920657869737473000000000060448201526064016108a1565b5f80546001810182559080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563016108e5828483611b27565b610c07336113ba565b610c3d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c4860015f6116a3565b5f5b818110156108e5576001838383818110610c6657610c66611be1565b9050602002810190610c789190611dd4565b82546001810184555f938452602090932090920191610c979183611b27565b50600101610c4a565b5f805b600154811015610d0c578383604051610cbd929190611e35565b604051809103902060018281548110610cd857610cd8611be1565b905f5260205f2001604051610ced9190611e44565b604051809103902003610d045760019150506106d9565b600101610ca3565b505f9392505050565b5f805b5f54811015610d0c578383604051610d31929190611e35565b60405180910390205f8281548110610d4b57610d4b611be1565b905f5260205f2001604051610d609190611e44565b604051809103902003610d775760019150506106d9565b600101610d18565b6002610d8a8161149f565b838214610dc3576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848110156109dc57610e15868683818110610de257610de2611be1565b9050602002016020810190610df79190611891565b858584818110610e0957610e09611be1565b90506020020135611493565b600101610dc5565b610e26336113ba565b610e5c576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e665f806116a3565b5f5b818110156108e5575f838383818110610e8357610e83611be1565b9050602002810190610e959190611dd4565b82546001810184555f938452602090932090920191610eb49183611b27565b50600101610e68565b6002610ec88161149f565b838214610f01576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848110156109dc57610f53868683818110610f2057610f20611be1565b9050602002016020810190610f359190611891565b858584818110610f4757610f47611be1565b9050602002013561146e565b600101610f03565b5f81815481106106ee575f80fd5b610f72336113ba565b610fa8576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b5f54811015611085578282604051610fc3929190611e35565b60405180910390205f8281548110610fdd57610fdd611be1565b905f5260205f2001604051610ff29190611e44565b60405180910390200361107d575f805461100e90600190611ed3565b8154811061101e5761101e611be1565b905f5260205f20015f828154811061103857611038611be1565b905f5260205f2001908161104c9190611f0b565b505f80548061105d5761105d611fe3565b600190038181905f5260205f20015f61107691906116be565b9055505050565b600101610faa565b5081816040517f8cf9845e0000000000000000000000000000000000000000000000000000000081526004016108a1929190612010565b6110c5336113ba565b6110fb576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b600154811015611085578282604051611117929190611e35565b60405180910390206001828154811061113257611132611be1565b905f5260205f20016040516111479190611e44565b6040518091039020036111b45760018054611163908290611ed3565b8154811061117357611173611be1565b905f5260205f20016001828154811061118e5761118e611be1565b905f5260205f200190816111a29190611f0b565b50600180548061105d5761105d611fe3565b6001016110fd565b60606001805480602002602001604051908101604052809291908181526020015f905b82821015611287578382905f5260205f200180546111fc90611a5e565b80601f016020809104026020016040519081016040528092919081815260200182805461122890611a5e565b80156112735780601f1061124a57610100808354040283529160200191611273565b820191905f5260205f20905b81548152906001019060200180831161125657829003601f168201915b5050505050815260200190600101906111df565b50505050905090565b611298611479565b63389a75e1600c52805f526020600c2080544211156112be57636f5e88185f526004601cfd5b5f905561078f81611518565b6112d2611479565b8060601b6112e757637448fbae5f526004601cfd5b61078f81611518565b60605f805480602002602001604051908101604052809291908181526020015f905b82821015611287578382905f5260205f2001805461132f90611a5e565b80601f016020809104026020016040519081016040528092919081815260200182805461135b90611a5e565b80156113a65780601f1061137d576101008083540402835291602001916113a6565b820191905f5260205f20905b81548152906001019060200180831161138957829003601f168201915b505050505081526020019060010190611312565b5f8173ffffffffffffffffffffffffffffffffffffffff166113df638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff1614806106d95750638b78c6d8600c9081525f839052602090205460031615156106d9565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe2089f790000000000000000000000000000000000000000000000000000000014806106d957506106d982611562565b6107a482825f6115f8565b638b78c6d819543314610b13576382b429005f526004601cfd5b6107a4828260016115f8565b638b78c6d81954331461078f57638b78c6d8600c52335f52806020600c20541661078f576382b429005f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806106d957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106d9565b638b78c6d8600c52825f526020600c20805483811783611619575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b828054828255905f5260205f20908101928215611693579160200282015b828111156116935782518290611683908261203e565b509160200191906001019061166d565b5061169f9291506116f5565b5090565b5080545f8255905f5260205f209081019061078f91906116f5565b5080546116ca90611a5e565b5f825580601f106116d9575050565b601f0160209004905f5260205f209081019061078f9190611711565b8082111561169f575f61170882826116be565b506001016116f5565b5b8082111561169f575f8155600101611712565b5f60208284031215611735575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611764575f80fd5b9392505050565b5f6020828403121561177b575f80fd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6117646020830184611782565b73ffffffffffffffffffffffffffffffffffffffff8116811461078f575f80fd5b5f80604083850312156117f4575f80fd5b82356117ff816117c2565b946020939093013593505050565b5f8083601f84011261181d575f80fd5b50813567ffffffffffffffff811115611834575f80fd5b60208301915083602082850101111561184b575f80fd5b9250929050565b5f8060208385031215611863575f80fd5b823567ffffffffffffffff811115611879575f80fd5b6118858582860161180d565b90969095509350505050565b5f602082840312156118a1575f80fd5b8135611764816117c2565b5f8083601f8401126118bc575f80fd5b50813567ffffffffffffffff8111156118d3575f80fd5b6020830191508360208260051b850101111561184b575f80fd5b5f805f8060408587031215611900575f80fd5b843567ffffffffffffffff811115611916575f80fd5b611922878288016118ac565b909550935050602085013567ffffffffffffffff811115611941575f80fd5b61194d878288016118ac565b95989497509550505050565b5f806020838503121561196a575f80fd5b823567ffffffffffffffff811115611980575f80fd5b611885858286016118ac565b5f805f6040848603121561199e575f80fd5b83356119a9816117c2565b9250602084013567ffffffffffffffff8111156119c4575f80fd5b6119d08682870161180d565b9497909650939450505050565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b82811015611a52577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0878603018452611a3d858351611782565b94506020938401939190910190600101611a03565b50929695505050505050565b600181811c90821680611a7257607f821691505b602082108103611aa9577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b601f8211156108e557805f5260205f20601f840160051c81016020851015611b015750805b601f840160051c820191505b81811015611b20575f8155600101611b0d565b5050505050565b67ffffffffffffffff831115611b3f57611b3f611aaf565b611b5383611b4d8354611a5e565b83611adc565b5f601f841160018114611b84575f8515611b6d5750838201355b5f19600387901b1c1916600186901b178355611b20565b5f83815260208120601f198716915b82811015611bb35786850135825560209485019460019092019101611b93565b5086821015611bcf575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215611c1e575f80fd5b81358015158114611764575f80fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c5657611c56611aaf565b604052919050565b5f82601f830112611c6d575f80fd5b813567ffffffffffffffff811115611c8757611c87611aaf565b8060051b611c9760208201611c2d565b91825260208185018101929081019086841115611cb2575f80fd5b6020860192505b83831015611d5457823567ffffffffffffffff811115611cd7575f80fd5b8601603f81018813611ce7575f80fd5b602081013567ffffffffffffffff811115611d0457611d04611aaf565b611d176020601f19601f84011601611c2d565b8181526040838301018a1015611d2b575f80fd5b816040840160208301375f60208383010152808552505050602082019150602083019250611cb9565b9695505050505050565b5f805f60608486031215611d70575f80fd5b8335611d7b816117c2565b9250602084013567ffffffffffffffff811115611d96575f80fd5b611da286828701611c5e565b925050604084013567ffffffffffffffff811115611dbe575f80fd5b611dca86828701611c5e565b9150509250925092565b5f8083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611e07575f80fd5b83018035915067ffffffffffffffff821115611e21575f80fd5b60200191503681900382131561184b575f80fd5b818382375f9101908152919050565b5f808354611e5181611a5e565b600182168015611e685760018114611e9b57611ec8565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0083168652811515820286019350611ec8565b865f5260205f205f5b83811015611ec057815488820152600190910190602001611ea4565b505081860193505b509195945050505050565b818103818111156106d9577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b818103611f16575050565b611f208254611a5e565b67ffffffffffffffff811115611f3857611f38611aaf565b611f4c81611f468454611a5e565b84611adc565b5f601f821160018114611f80575f8315611f665750848201545b600184901b5f19600386901b1c198216175b855550611b20565b5f8581526020808220868352908220601f198616925b83811015611fb65782860154825560019586019590910190602001611f96565b5085831015611fd357818501545f19600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b60208152816020820152818360408301375f818301604090810191909152601f909201601f19160101919050565b815167ffffffffffffffff81111561205857612058611aaf565b61206681611f468454611a5e565b6020601f821160018114612096575f8315611f66575081850151600184901b5f19600386901b1c19821617611f78565b5f84815260208120601f198516915b828110156120c557878501518255602094850194600190920191016120a5565b50848210156120e257868401515f19600387901b60f8161c191681555b50505050600190811b0190555056fea26469706673582212206100a11e4e0b5bdd589ed060e5af18faef222dc9a5fb78d50ce02911e161f36664736f6c634300081a0033",o={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"},n=class n extends g.DeployableTargetWithRBAC{constructor(){super(...arguments),this.abi=a.M}async owner(f){return await a.R4(this._config,{...this.optionallyAttachAccount(),...f,address:this.assertValidAddress(),args:[]})}isAllowed(f,b){throw new Error("isAllowed() not available for OffchainAccessList, implementation should be done offchain")}async getAllowlistIds(f){return await a.v4(this._config,{address:this.assertValidAddress(),args:[],...this.optionallyAttachAccount(),...f})}async getDenylistIds(f){return await a.w4(this._config,{address:this.assertValidAddress(),args:[],...this.optionallyAttachAccount(),...f})}async setAllowlistIds(f,b){return await this.awaitResult(this.setAllowlistIdsRaw(f,b))}async setAllowlistIdsRaw(f,b){const{request:d,result:e}=await a.lq(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.U4(this._config,d),result:e}}async setDenylistIds(f,b){return await this.awaitResult(this.setDenylistIdsRaw(f,b))}async setDenylistIdsRaw(f,b){const{request:d,result:e}=await a.dq(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.j4(this._config,d),result:e}}async addAllowlistId(f,b){return await this.awaitResult(this.addAllowlistIdRaw(f,b))}async addAllowlistIdRaw(f,b){const{request:d,result:e}=await a.J4(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.z4(this._config,d),result:e}}async addDenylistId(f,b){return await this.awaitResult(this.addDenylistIdRaw(f,b))}async addDenylistIdRaw(f,b){const{request:d,result:e}=await a.K4(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.B4(this._config,d),result:e}}async removeAllowlistId(f,b){return await this.awaitResult(this.removeAllowlistIdRaw(f,b))}async removeAllowlistIdRaw(f,b){const{request:d,result:e}=await a.aq(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.P4(this._config,d),result:e}}async removeDenylistId(f,b){return await this.awaitResult(this.removeDenylistIdRaw(f,b))}async removeDenylistIdRaw(f,b){const{request:d,result:e}=await a.iq(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.k4(this._config,d),result:e}}async hasAllowlistId(f,b){return await a.A4(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b})}async hasDenylistId(f,b){return await a.I4(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b})}buildParameters(f,b){var c;const[d,e]=this.validateDeploymentConfig(f,b);if(!d.owner||d.owner===h.zeroAddress){const w=e.account?e.account.address:e.config?u.getAccount(e.config).address:(c=this._account)==null?void 0:c.address;if(w)d.owner=w;else throw new A.DeployableUnknownOwnerProvidedError}return{abi:a.M,bytecode:D,args:[y(d)],...this.optionallyAttachAccount(e.account)}}};n.bases={...o!=null&&o.VITE_OFFCHAIN_ACCESS_LIST_BASE?{31337:void 0}:{},...p.OffchainAccessList},n.registryType=I.RegistryType.ALLOW_LIST;let i=n;function y({owner:t,allowlistIds:f,denylistIds:b}){return h.encodeAbiParameters([{type:"address",name:"owner"},{type:"string[]",name:"allowlistIds"},{type:"string[]",name:"denylistIds"}],[t,f,b])}const R=a.P;class _ extends s.SimpleDenyList{buildParameters(f,b){const[d,e]=this.validateDeploymentConfig({},b);return{abi:R,bytecode:s.bytecode,args:[s.prepareSimpleDenyListPayload({owner:h.zeroAddress,denied:[]})],...this.optionallyAttachAccount(e.account)}}}const l={[r.ASimpleAllowList]:m.SimpleAllowList,[r.ASimpleDenyList]:s.SimpleDenyList,[r.AOffchainAccessList]:i};async function L(t,f,b){const d=await u.readContract(t.config,{abi:a.k,functionName:"getComponentInterface",address:f,...b}),e=l[d];if(!e)throw new A.InvalidComponentInterfaceError(Object.keys(l),d);return new e(t,f)}exports.AllowListByComponentInterface=l;exports.OffchainAccessList=i;exports.OpenAllowList=_;exports.allowListFromAddress=L;exports.prepareOffchainAccessListPayload=y;
|
|
2
|
-
//# sourceMappingURL=AllowList-
|
|
1
|
+
"use strict";const a=require("./generated-dd4FN0Fo.cjs"),r=require("./componentInterfaces-BZ3fSNkT.cjs"),u=require("@wagmi/core"),A=require("./errors.cjs"),h=require("viem"),p=require("./deployments-BjBgk03b.cjs"),g=require("./Deployable/DeployableTargetWithRBAC.cjs"),I=require("./utils.cjs"),s=require("./SimpleDenyList-7-VTqfsH.cjs"),m=require("./AllowLists/SimpleAllowList.cjs"),D="0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b612127806100895f395ff3fe608060405260043610610229575f3560e01c8063859aa08911610131578063e89079fa116100ac578063f04e283e1161007c578063fdee627a11610062578063fdee627a14610620578063fe9fbb8014610634578063fee81cf414610653575f80fd5b8063f04e283e146105fa578063f2fde38b1461060d575f80fd5b8063e89079fa14610587578063ec87621c146105a6578063ef05bda9146105ba578063ef4550bf146105d9575f80fd5b8063be4994f811610101578063dcc21361116100e7578063dcc2136114610526578063e3f756de14610545578063e611205f14610568575f80fd5b8063be4994f8146104e8578063cbb7de5114610507575f80fd5b8063859aa089146104535780638da5cb5b14610472578063937d599c146104aa57806399927eec146104c9575f80fd5b80632de94807116101c1578063514e62fc11610191578063715018a611610177578063715018a61461041857806375b238fc146104205780637e973e8214610434575f80fd5b8063514e62fc146103db57806354d1f13d14610410575f80fd5b80632de948071461034b5780634359d28a1461038a578063439fab91146103a95780634a4ee7b1146103c8575f80fd5b80631cd64df4116101fc5780631cd64df4146102b557806325692962146102ea57806328d6183b146102f25780632c297c181461032c575f80fd5b806301ffc9a71461022d578063096f199f14610261578063183a4f6e1461028d5780631c10893f146102a2575b5f80fd5b348015610238575f80fd5b5061024c610247366004611725565b610684565b60405190151581526020015b60405180910390f35b34801561026c575f80fd5b5061028061027b36600461176b565b6106df565b60405161025891906117b0565b6102a061029b36600461176b565b610785565b005b6102a06102b03660046117e3565b610792565b3480156102c0575f80fd5b5061024c6102cf3660046117e3565b638b78c6d8600c9081525f9290925260209091205481161490565b6102a06107a8565b3480156102fd575f80fd5b506040517f2a6b3c38000000000000000000000000000000000000000000000000000000008152602001610258565b348015610337575f80fd5b506102a0610346366004611852565b6107f5565b348015610356575f80fd5b5061037c610365366004611891565b638b78c6d8600c9081525f91909152602090205490565b604051908152602001610258565b348015610395575f80fd5b506102a06103a43660046118ed565b6108ea565b3480156103b4575f80fd5b506102a06103c3366004611852565b6109e4565b6102a06103d63660046117e3565b610ab7565b3480156103e6575f80fd5b5061024c6103f53660046117e3565b638b78c6d8600c9081525f9290925260209091205416151590565b6102a0610ac9565b6102a0610b02565b34801561042b575f80fd5b5061037c600281565b34801561043f575f80fd5b506102a061044e366004611852565b610b15565b34801561045e575f80fd5b506102a061046d366004611959565b610bfe565b34801561047d575f80fd5b50638b78c6d8195460405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610258565b3480156104b5575f80fd5b5061024c6104c4366004611852565b610ca0565b3480156104d4575f80fd5b5061024c6104e3366004611852565b610d15565b3480156104f3575f80fd5b506102a06105023660046118ed565b610d7f565b348015610512575f80fd5b506102a0610521366004611959565b610e1d565b348015610531575f80fd5b506102a06105403660046118ed565b610ebd565b348015610550575f80fd5b5061024c61055f36600461198c565b60019392505050565b348015610573575f80fd5b5061028061058236600461176b565b610f5b565b348015610592575f80fd5b506102a06105a1366004611852565b610f69565b3480156105b1575f80fd5b5061037c600181565b3480156105c5575f80fd5b506102a06105d4366004611852565b6110bc565b3480156105e4575f80fd5b506105ed6111bc565b60405161025891906119dd565b6102a0610608366004611891565b611290565b6102a061061b366004611891565b6112ca565b34801561062b575f80fd5b506105ed6112f0565b34801561063f575f80fd5b5061024c61064e366004611891565b6113ba565b34801561065e575f80fd5b5061037c61066d366004611891565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f2a6b3c380000000000000000000000000000000000000000000000000000000014806106d957506106d982611419565b92915050565b600181815481106106ee575f80fd5b905f5260205f20015f91509050805461070690611a5e565b80601f016020809104026020016040519081016040528092919081815260200182805461073290611a5e565b801561077d5780601f106107545761010080835404028352916020019161077d565b820191905f5260205f20905b81548152906001019060200180831161076057829003601f168201915b505050505081565b61078f338261146e565b50565b61079a611479565b6107a48282611493565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b6107fe336113ba565b610834576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61083e8282610ca0565b156108aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f44656e796c69737420494420616c72656164792065786973747300000000000060448201526064015b60405180910390fd5b6001805480820182555f919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6016108e5828483611b27565b505050565b60026108f58161149f565b83821461092e576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848110156109dc575f84848381811061094b5761094b611be1565b90506020020160208101906109609190611c0e565b90508015156001036109a25761099d87878481811061098157610981611be1565b90506020020160208101906109969190611891565b6001611493565b6109d3565b6109d38787848181106109b7576109b7611be1565b90506020020160208101906109cc9190611891565b600161146e565b50600101610930565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011328054600382558015610a355760018160011c14303b10610a2c5763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f8080610a4585870187611d5e565b925092509250610a54836114d0565b8151610a66905f90602085019061164f565b508051610a7a90600190602084019061164f565b5050505080156108e5576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a1505050565b610abf611479565b6107a4828261146e565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b610b0a611479565b610b135f611518565b565b610b1e336113ba565b610b54576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b5e8282610d15565b15610bc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f416c6c6f776c69737420494420616c726561647920657869737473000000000060448201526064016108a1565b5f80546001810182559080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563016108e5828483611b27565b610c07336113ba565b610c3d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c4860015f6116a3565b5f5b818110156108e5576001838383818110610c6657610c66611be1565b9050602002810190610c789190611dd4565b82546001810184555f938452602090932090920191610c979183611b27565b50600101610c4a565b5f805b600154811015610d0c578383604051610cbd929190611e35565b604051809103902060018281548110610cd857610cd8611be1565b905f5260205f2001604051610ced9190611e44565b604051809103902003610d045760019150506106d9565b600101610ca3565b505f9392505050565b5f805b5f54811015610d0c578383604051610d31929190611e35565b60405180910390205f8281548110610d4b57610d4b611be1565b905f5260205f2001604051610d609190611e44565b604051809103902003610d775760019150506106d9565b600101610d18565b6002610d8a8161149f565b838214610dc3576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848110156109dc57610e15868683818110610de257610de2611be1565b9050602002016020810190610df79190611891565b858584818110610e0957610e09611be1565b90506020020135611493565b600101610dc5565b610e26336113ba565b610e5c576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e665f806116a3565b5f5b818110156108e5575f838383818110610e8357610e83611be1565b9050602002810190610e959190611dd4565b82546001810184555f938452602090932090920191610eb49183611b27565b50600101610e68565b6002610ec88161149f565b838214610f01576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848110156109dc57610f53868683818110610f2057610f20611be1565b9050602002016020810190610f359190611891565b858584818110610f4757610f47611be1565b9050602002013561146e565b600101610f03565b5f81815481106106ee575f80fd5b610f72336113ba565b610fa8576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b5f54811015611085578282604051610fc3929190611e35565b60405180910390205f8281548110610fdd57610fdd611be1565b905f5260205f2001604051610ff29190611e44565b60405180910390200361107d575f805461100e90600190611ed3565b8154811061101e5761101e611be1565b905f5260205f20015f828154811061103857611038611be1565b905f5260205f2001908161104c9190611f0b565b505f80548061105d5761105d611fe3565b600190038181905f5260205f20015f61107691906116be565b9055505050565b600101610faa565b5081816040517f8cf9845e0000000000000000000000000000000000000000000000000000000081526004016108a1929190612010565b6110c5336113ba565b6110fb576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b600154811015611085578282604051611117929190611e35565b60405180910390206001828154811061113257611132611be1565b905f5260205f20016040516111479190611e44565b6040518091039020036111b45760018054611163908290611ed3565b8154811061117357611173611be1565b905f5260205f20016001828154811061118e5761118e611be1565b905f5260205f200190816111a29190611f0b565b50600180548061105d5761105d611fe3565b6001016110fd565b60606001805480602002602001604051908101604052809291908181526020015f905b82821015611287578382905f5260205f200180546111fc90611a5e565b80601f016020809104026020016040519081016040528092919081815260200182805461122890611a5e565b80156112735780601f1061124a57610100808354040283529160200191611273565b820191905f5260205f20905b81548152906001019060200180831161125657829003601f168201915b5050505050815260200190600101906111df565b50505050905090565b611298611479565b63389a75e1600c52805f526020600c2080544211156112be57636f5e88185f526004601cfd5b5f905561078f81611518565b6112d2611479565b8060601b6112e757637448fbae5f526004601cfd5b61078f81611518565b60605f805480602002602001604051908101604052809291908181526020015f905b82821015611287578382905f5260205f2001805461132f90611a5e565b80601f016020809104026020016040519081016040528092919081815260200182805461135b90611a5e565b80156113a65780601f1061137d576101008083540402835291602001916113a6565b820191905f5260205f20905b81548152906001019060200180831161138957829003601f168201915b505050505081526020019060010190611312565b5f8173ffffffffffffffffffffffffffffffffffffffff166113df638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff1614806106d95750638b78c6d8600c9081525f839052602090205460031615156106d9565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe2089f790000000000000000000000000000000000000000000000000000000014806106d957506106d982611562565b6107a482825f6115f8565b638b78c6d819543314610b13576382b429005f526004601cfd5b6107a4828260016115f8565b638b78c6d81954331461078f57638b78c6d8600c52335f52806020600c20541661078f576382b429005f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806106d957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106d9565b638b78c6d8600c52825f526020600c20805483811783611619575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b828054828255905f5260205f20908101928215611693579160200282015b828111156116935782518290611683908261203e565b509160200191906001019061166d565b5061169f9291506116f5565b5090565b5080545f8255905f5260205f209081019061078f91906116f5565b5080546116ca90611a5e565b5f825580601f106116d9575050565b601f0160209004905f5260205f209081019061078f9190611711565b8082111561169f575f61170882826116be565b506001016116f5565b5b8082111561169f575f8155600101611712565b5f60208284031215611735575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611764575f80fd5b9392505050565b5f6020828403121561177b575f80fd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6117646020830184611782565b73ffffffffffffffffffffffffffffffffffffffff8116811461078f575f80fd5b5f80604083850312156117f4575f80fd5b82356117ff816117c2565b946020939093013593505050565b5f8083601f84011261181d575f80fd5b50813567ffffffffffffffff811115611834575f80fd5b60208301915083602082850101111561184b575f80fd5b9250929050565b5f8060208385031215611863575f80fd5b823567ffffffffffffffff811115611879575f80fd5b6118858582860161180d565b90969095509350505050565b5f602082840312156118a1575f80fd5b8135611764816117c2565b5f8083601f8401126118bc575f80fd5b50813567ffffffffffffffff8111156118d3575f80fd5b6020830191508360208260051b850101111561184b575f80fd5b5f805f8060408587031215611900575f80fd5b843567ffffffffffffffff811115611916575f80fd5b611922878288016118ac565b909550935050602085013567ffffffffffffffff811115611941575f80fd5b61194d878288016118ac565b95989497509550505050565b5f806020838503121561196a575f80fd5b823567ffffffffffffffff811115611980575f80fd5b611885858286016118ac565b5f805f6040848603121561199e575f80fd5b83356119a9816117c2565b9250602084013567ffffffffffffffff8111156119c4575f80fd5b6119d08682870161180d565b9497909650939450505050565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b82811015611a52577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0878603018452611a3d858351611782565b94506020938401939190910190600101611a03565b50929695505050505050565b600181811c90821680611a7257607f821691505b602082108103611aa9577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b601f8211156108e557805f5260205f20601f840160051c81016020851015611b015750805b601f840160051c820191505b81811015611b20575f8155600101611b0d565b5050505050565b67ffffffffffffffff831115611b3f57611b3f611aaf565b611b5383611b4d8354611a5e565b83611adc565b5f601f841160018114611b84575f8515611b6d5750838201355b5f19600387901b1c1916600186901b178355611b20565b5f83815260208120601f198716915b82811015611bb35786850135825560209485019460019092019101611b93565b5086821015611bcf575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215611c1e575f80fd5b81358015158114611764575f80fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c5657611c56611aaf565b604052919050565b5f82601f830112611c6d575f80fd5b813567ffffffffffffffff811115611c8757611c87611aaf565b8060051b611c9760208201611c2d565b91825260208185018101929081019086841115611cb2575f80fd5b6020860192505b83831015611d5457823567ffffffffffffffff811115611cd7575f80fd5b8601603f81018813611ce7575f80fd5b602081013567ffffffffffffffff811115611d0457611d04611aaf565b611d176020601f19601f84011601611c2d565b8181526040838301018a1015611d2b575f80fd5b816040840160208301375f60208383010152808552505050602082019150602083019250611cb9565b9695505050505050565b5f805f60608486031215611d70575f80fd5b8335611d7b816117c2565b9250602084013567ffffffffffffffff811115611d96575f80fd5b611da286828701611c5e565b925050604084013567ffffffffffffffff811115611dbe575f80fd5b611dca86828701611c5e565b9150509250925092565b5f8083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611e07575f80fd5b83018035915067ffffffffffffffff821115611e21575f80fd5b60200191503681900382131561184b575f80fd5b818382375f9101908152919050565b5f808354611e5181611a5e565b600182168015611e685760018114611e9b57611ec8565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0083168652811515820286019350611ec8565b865f5260205f205f5b83811015611ec057815488820152600190910190602001611ea4565b505081860193505b509195945050505050565b818103818111156106d9577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b818103611f16575050565b611f208254611a5e565b67ffffffffffffffff811115611f3857611f38611aaf565b611f4c81611f468454611a5e565b84611adc565b5f601f821160018114611f80575f8315611f665750848201545b600184901b5f19600386901b1c198216175b855550611b20565b5f8581526020808220868352908220601f198616925b83811015611fb65782860154825560019586019590910190602001611f96565b5085831015611fd357818501545f19600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b60208152816020820152818360408301375f818301604090810191909152601f909201601f19160101919050565b815167ffffffffffffffff81111561205857612058611aaf565b61206681611f468454611a5e565b6020601f821160018114612096575f8315611f66575081850151600184901b5f19600386901b1c19821617611f78565b5f84815260208120601f198516915b828110156120c557878501518255602094850194600190920191016120a5565b50848210156120e257868401515f19600387901b60f8161c191681555b50505050600190811b0190555056fea26469706673582212206100a11e4e0b5bdd589ed060e5af18faef222dc9a5fb78d50ce02911e161f36664736f6c634300081a0033",o={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_BOOST_MAINNET_SIGNER_EOA:"0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480",VITE_BOOST_TESTNET_SIGNER_EOA:"0xd63167e9db11B108940b2E8236581F961f33f396"},n=class n extends g.DeployableTargetWithRBAC{constructor(){super(...arguments),this.abi=a.M}async owner(f){return await a.R4(this._config,{...this.optionallyAttachAccount(),...f,address:this.assertValidAddress(),args:[]})}isAllowed(f,b){throw new Error("isAllowed() not available for OffchainAccessList, implementation should be done offchain")}async getAllowlistIds(f){return await a.v4(this._config,{address:this.assertValidAddress(),args:[],...this.optionallyAttachAccount(),...f})}async getDenylistIds(f){return await a.w4(this._config,{address:this.assertValidAddress(),args:[],...this.optionallyAttachAccount(),...f})}async setAllowlistIds(f,b){return await this.awaitResult(this.setAllowlistIdsRaw(f,b))}async setAllowlistIdsRaw(f,b){const{request:d,result:e}=await a.lq(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.U4(this._config,d),result:e}}async setDenylistIds(f,b){return await this.awaitResult(this.setDenylistIdsRaw(f,b))}async setDenylistIdsRaw(f,b){const{request:d,result:e}=await a.dq(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.j4(this._config,d),result:e}}async addAllowlistId(f,b){return await this.awaitResult(this.addAllowlistIdRaw(f,b))}async addAllowlistIdRaw(f,b){const{request:d,result:e}=await a.J4(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.z4(this._config,d),result:e}}async addDenylistId(f,b){return await this.awaitResult(this.addDenylistIdRaw(f,b))}async addDenylistIdRaw(f,b){const{request:d,result:e}=await a.K4(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.B4(this._config,d),result:e}}async removeAllowlistId(f,b){return await this.awaitResult(this.removeAllowlistIdRaw(f,b))}async removeAllowlistIdRaw(f,b){const{request:d,result:e}=await a.aq(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.P4(this._config,d),result:e}}async removeDenylistId(f,b){return await this.awaitResult(this.removeDenylistIdRaw(f,b))}async removeDenylistIdRaw(f,b){const{request:d,result:e}=await a.iq(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b});return{hash:await a.k4(this._config,d),result:e}}async hasAllowlistId(f,b){return await a.A4(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b})}async hasDenylistId(f,b){return await a.I4(this._config,{address:this.assertValidAddress(),args:[f],...this.optionallyAttachAccount(),...b})}buildParameters(f,b){var c;const[d,e]=this.validateDeploymentConfig(f,b);if(!d.owner||d.owner===h.zeroAddress){const w=e.account?e.account.address:e.config?u.getAccount(e.config).address:(c=this._account)==null?void 0:c.address;if(w)d.owner=w;else throw new A.DeployableUnknownOwnerProvidedError}return{abi:a.M,bytecode:D,args:[y(d)],...this.optionallyAttachAccount(e.account)}}};n.bases={...o!=null&&o.VITE_OFFCHAIN_ACCESS_LIST_BASE?{31337:void 0}:{},...p.OffchainAccessList},n.registryType=I.RegistryType.ALLOW_LIST;let i=n;function y({owner:t,allowlistIds:f,denylistIds:b}){return h.encodeAbiParameters([{type:"address",name:"owner"},{type:"string[]",name:"allowlistIds"},{type:"string[]",name:"denylistIds"}],[t,f,b])}const R=a.P;class _ extends s.SimpleDenyList{buildParameters(f,b){const[d,e]=this.validateDeploymentConfig({},b);return{abi:R,bytecode:s.bytecode,args:[s.prepareSimpleDenyListPayload({owner:h.zeroAddress,denied:[]})],...this.optionallyAttachAccount(e.account)}}}const l={[r.ASimpleAllowList]:m.SimpleAllowList,[r.ASimpleDenyList]:s.SimpleDenyList,[r.AOffchainAccessList]:i};async function L(t,f,b){const d=await u.readContract(t.config,{abi:a.k,functionName:"getComponentInterface",address:f,...b}),e=l[d];if(!e)throw new A.InvalidComponentInterfaceError(Object.keys(l),d);return new e(t,f)}exports.AllowListByComponentInterface=l;exports.OffchainAccessList=i;exports.OpenAllowList=_;exports.allowListFromAddress=L;exports.prepareOffchainAccessListPayload=y;
|
|
2
|
+
//# sourceMappingURL=AllowList-BJ9HQGFs.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllowList-BYYm3b9d.cjs","sources":["../src/AllowLists/OffchainAccessList.ts","../src/AllowLists/OpenAllowList.ts","../src/AllowLists/AllowList.ts"],"sourcesContent":["import {\n offchainAccessListAbi,\n readOffchainAccessListGetAllowListIds,\n readOffchainAccessListGetDenyListIds,\n readOffchainAccessListHasAllowListId,\n readOffchainAccessListHasDenyListId,\n readOffchainAccessListOwner,\n simulateOffchainAccessListAddAllowListId,\n simulateOffchainAccessListAddDenyListId,\n simulateOffchainAccessListRemoveAllowListId,\n simulateOffchainAccessListRemoveDenyListId,\n simulateOffchainAccessListSetAllowListIds,\n simulateOffchainAccessListSetDenyListIds,\n writeOffchainAccessListAddAllowListId,\n writeOffchainAccessListAddDenyListId,\n writeOffchainAccessListRemoveAllowListId,\n writeOffchainAccessListRemoveDenyListId,\n writeOffchainAccessListSetAllowListIds,\n writeOffchainAccessListSetDenyListIds,\n} from '@boostxyz/evm';\nimport { bytecode } from '@boostxyz/evm/artifacts/contracts/allowlists/OffchainAccessList.sol/OffchainAccessList.json';\nimport { getAccount } from '@wagmi/core';\nimport {\n type Address,\n type ContractEventName,\n type Hex,\n encodeAbiParameters,\n zeroAddress,\n} from 'viem';\nimport { OffchainAccessList as OffchainAccessListBases } from '../../dist/deployments.json';\nimport type {\n DeployableOptions,\n GenericDeployableParams,\n} from '../Deployable/Deployable';\nimport { DeployableTargetWithRBAC } from '../Deployable/DeployableTargetWithRBAC';\nimport { DeployableUnknownOwnerProvidedError } from '../errors';\nimport {\n type GenericLog,\n type ReadParams,\n RegistryType,\n type WriteParams,\n} from '../utils';\n\nexport { offchainAccessListAbi };\n\n/**\n * Object representation of a {@link OffchainAccessList} initialization payload.\n *\n * @export\n * @interface OffchainAccessListPayload\n * @typedef {OffchainAccessListPayload}\n */\nexport interface OffchainAccessListPayload {\n /**\n * The access list's owner\n *\n * @type {Address}\n */\n owner: Address;\n /**\n * List of off-chain allowlist IDs.\n *\n * @type {string[]}\n */\n allowlistIds: string[];\n /**\n * List of off-chain denylist IDs.\n *\n * @type {string[]}\n */\n denylistIds: string[];\n}\n\n/**\n * A generic `viem.Log` event with support for `OffchainAccessList` event types.\n *\n * @export\n * @typedef {OffchainAccessListLog}\n * @template {ContractEventName<typeof offchainAccessListAbi>} [event=ContractEventName<\n * typeof offchainAccessListAbi\n * >]\n */\nexport type OffchainAccessListLog<\n event extends ContractEventName<\n typeof offchainAccessListAbi\n > = ContractEventName<typeof offchainAccessListAbi>,\n> = GenericLog<typeof offchainAccessListAbi, event>;\n\n/**\n * An AllowList that links on-chain boosts to off-chain access lists stored in a database.\n * This implementation always allows everyone (returns true) but stores references to off-chain allowlist and denylist IDs.\n *\n * @export\n * @class OffchainAccessList\n * @typedef {OffchainAccessList}\n * @extends {DeployableTargetWithRBAC<OffchainAccessListPayload>}\n */\nexport class OffchainAccessList extends DeployableTargetWithRBAC<\n OffchainAccessListPayload,\n typeof offchainAccessListAbi\n> {\n public override readonly abi = offchainAccessListAbi;\n /**\n * @inheritdoc\n *\n * @public\n * @static\n * @type {Record<number, Address>}\n */\n public static override bases: Record<number, Address> = {\n ...(import.meta.env?.VITE_OFFCHAIN_ACCESS_LIST_BASE\n ? { 31337: import.meta.env.VITE_OFFCHAIN_ACCESS_LIST_BASE }\n : {}),\n ...(OffchainAccessListBases as Record<number, Address>),\n };\n /**\n * @inheritdoc\n *\n * @public\n * @static\n * @type {RegistryType}\n */\n public static override registryType: RegistryType = RegistryType.ALLOW_LIST;\n\n /**\n * Retrieves the owner\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<Address>} - The address of the owner\n */\n public async owner(params?: ReadParams): Promise<Address> {\n return await readOffchainAccessListOwner(this._config, {\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n address: this.assertValidAddress(),\n args: [],\n });\n }\n\n /**\n * Check if a user is authorized based on off-chain allowlists/denylists\n *\n * @public\n * @async\n * @param {Address} address - The address of the user\n * @param {?ReadParams} [params]\n * @returns {Promise<boolean>} - True if the user is allowed\n */\n public isAllowed(_address: Address, _params?: ReadParams) {\n // TODO: check address against offchain allowlist/denylist using api calls\n throw new Error(\n 'isAllowed() not available for OffchainAccessList, implementation should be done offchain',\n );\n }\n\n /**\n * Get all allowlist IDs\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<string[]>} - Array of allowlist IDs\n */\n public async getAllowlistIds(params?: ReadParams) {\n return await readOffchainAccessListGetAllowListIds(this._config, {\n address: this.assertValidAddress(),\n args: [],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * Get all denylist IDs\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<string[]>} - Array of denylist IDs\n */\n public async getDenylistIds(params?: ReadParams) {\n return await readOffchainAccessListGetDenyListIds(this._config, {\n address: this.assertValidAddress(),\n args: [],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * Set allowlist IDs, replacing all existing ones. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string[]} ids - The new allowlist IDs\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async setAllowlistIds(ids: string[], params?: WriteParams) {\n return await this.awaitResult(this.setAllowlistIdsRaw(ids, params));\n }\n\n /**\n * Set allowlist IDs, replacing all existing ones. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string[]} ids - The new allowlist IDs\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async setAllowlistIdsRaw(ids: string[], params?: WriteParams) {\n const { request, result } = await simulateOffchainAccessListSetAllowListIds(\n this._config,\n {\n address: this.assertValidAddress(),\n args: [ids],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n },\n );\n const hash = await writeOffchainAccessListSetAllowListIds(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Set denylist IDs, replacing all existing ones. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string[]} ids - The new denylist IDs\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async setDenylistIds(ids: string[], params?: WriteParams) {\n return await this.awaitResult(this.setDenylistIdsRaw(ids, params));\n }\n\n /**\n * Set denylist IDs, replacing all existing ones. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string[]} ids - The new denylist IDs\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async setDenylistIdsRaw(ids: string[], params?: WriteParams) {\n const { request, result } = await simulateOffchainAccessListSetDenyListIds(\n this._config,\n {\n address: this.assertValidAddress(),\n args: [ids],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n },\n );\n const hash = await writeOffchainAccessListSetDenyListIds(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Add a single allowlist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The allowlist ID to add\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async addAllowlistId(id: string, params?: WriteParams) {\n return await this.awaitResult(this.addAllowlistIdRaw(id, params));\n }\n\n /**\n * Add a single allowlist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The allowlist ID to add\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async addAllowlistIdRaw(id: string, params?: WriteParams) {\n const { request, result } = await simulateOffchainAccessListAddAllowListId(\n this._config,\n {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n },\n );\n const hash = await writeOffchainAccessListAddAllowListId(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Add a single denylist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The denylist ID to add\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async addDenylistId(id: string, params?: WriteParams) {\n return await this.awaitResult(this.addDenylistIdRaw(id, params));\n }\n\n /**\n * Add a single denylist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The denylist ID to add\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async addDenylistIdRaw(id: string, params?: WriteParams) {\n const { request, result } = await simulateOffchainAccessListAddDenyListId(\n this._config,\n {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n },\n );\n const hash = await writeOffchainAccessListAddDenyListId(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Remove a single allowlist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The allowlist ID to remove\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async removeAllowlistId(id: string, params?: WriteParams) {\n return await this.awaitResult(this.removeAllowlistIdRaw(id, params));\n }\n\n /**\n * Remove a single allowlist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The allowlist ID to remove\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async removeAllowlistIdRaw(id: string, params?: WriteParams) {\n const { request, result } =\n await simulateOffchainAccessListRemoveAllowListId(this._config, {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n const hash = await writeOffchainAccessListRemoveAllowListId(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Remove a single denylist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The denylist ID to remove\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async removeDenylistId(id: string, params?: WriteParams) {\n return await this.awaitResult(this.removeDenylistIdRaw(id, params));\n }\n\n /**\n * Remove a single denylist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The denylist ID to remove\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async removeDenylistIdRaw(id: string, params?: WriteParams) {\n const { request, result } =\n await simulateOffchainAccessListRemoveDenyListId(this._config, {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n const hash = await writeOffchainAccessListRemoveDenyListId(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Check if an allowlist ID exists\n *\n * @public\n * @async\n * @param {string} id - The allowlist ID to check\n * @param {?ReadParams} [params]\n * @returns {Promise<boolean>} - True if the ID exists\n */\n public async hasAllowlistId(\n id: string,\n params?: ReadParams,\n ): Promise<boolean> {\n return await readOffchainAccessListHasAllowListId(this._config, {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * Check if a denylist ID exists\n *\n * @public\n * @async\n * @param {string} id - The denylist ID to check\n * @param {?ReadParams} [params]\n * @returns {Promise<boolean>} - True if the ID exists\n */\n public async hasDenylistId(\n id: string,\n params?: ReadParams,\n ): Promise<boolean> {\n return await readOffchainAccessListHasDenyListId(this._config, {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * @inheritdoc\n *\n * @public\n * @param {?OffchainAccessListPayload} [_payload]\n * @param {?DeployableOptions} [_options]\n * @returns {GenericDeployableParams}\n */\n public override buildParameters(\n _payload?: OffchainAccessListPayload,\n _options?: DeployableOptions,\n ): GenericDeployableParams {\n const [payload, options] = this.validateDeploymentConfig(\n _payload,\n _options,\n );\n if (!payload.owner || payload.owner === zeroAddress) {\n const owner = options.account\n ? options.account.address\n : options.config\n ? getAccount(options.config).address\n : this._account?.address;\n if (owner) {\n payload.owner = owner;\n } else {\n throw new DeployableUnknownOwnerProvidedError();\n }\n }\n return {\n abi: offchainAccessListAbi,\n bytecode: bytecode as Hex,\n args: [prepareOffchainAccessListPayload(payload)],\n ...this.optionallyAttachAccount(options.account),\n };\n }\n}\n\n/**\n * Given a {@link OffchainAccessListPayload}, properly encode the initialization payload.\n *\n * @param {OffchainAccessListPayload} param0\n * @param {Address} param0.owner - The access list's owner\n * @param {string[]} param0.allowlistIds - List of off-chain allowlist IDs\n * @param {string[]} param0.denylistIds - List of off-chain denylist IDs\n * @returns {Hex}\n */\nexport function prepareOffchainAccessListPayload({\n owner,\n allowlistIds,\n denylistIds,\n}: OffchainAccessListPayload) {\n return encodeAbiParameters(\n [\n { type: 'address', name: 'owner' },\n { type: 'string[]', name: 'allowlistIds' },\n { type: 'string[]', name: 'denylistIds' },\n ],\n [owner, allowlistIds, denylistIds],\n );\n}\n","import { simpleDenyListAbi } from '@boostxyz/evm';\nimport { bytecode } from '@boostxyz/evm/artifacts/contracts/allowlists/SimpleDenyList.sol/SimpleDenyList.json';\nimport { type Hex, zeroAddress } from 'viem';\nimport type {\n DeployableOptions,\n GenericDeployableParams,\n} from '../Deployable/Deployable';\nimport {\n SimpleDenyList,\n type SimpleDenyListPayload,\n prepareSimpleDenyListPayload,\n} from './SimpleDenyList';\n\nexport const openAllowListAbi = simpleDenyListAbi;\n\n/**\n * A simple AllowList, extending {@link DenyList}, that is ownerless and allows anyone to claim.\n *\n * @export\n * @class OpenAllowList\n * @typedef {OpenAllowList}\n * @extends {DeployableTarget<OpenAllowListPayload>}\n */\nexport class OpenAllowList extends SimpleDenyList<undefined> {\n /**\n * @inheritdoc\n *\n * @public\n * @param {?SimpleDenyListPayload} [_payload]\n * @param {?DeployableOptions} [_options]\n * @returns {GenericDeployableParams}\n */\n public override buildParameters(\n _payload?: SimpleDenyListPayload,\n _options?: DeployableOptions,\n ): GenericDeployableParams {\n const [_, options] = this.validateDeploymentConfig({}, _options);\n return {\n abi: openAllowListAbi,\n bytecode: bytecode as Hex,\n args: [prepareSimpleDenyListPayload({ owner: zeroAddress, denied: [] })],\n ...this.optionallyAttachAccount(options.account),\n };\n }\n}\n","import { aAllowListAbi } from '@boostxyz/evm';\nimport {\n AOffchainAccessList,\n ASimpleAllowList,\n ASimpleDenyList,\n} from '@boostxyz/evm/deploys/componentInterfaces.json';\nimport { readContract } from '@wagmi/core';\nimport type { Address, Hex } from 'viem';\nimport type { DeployableOptions } from '../Deployable/Deployable';\nimport { InvalidComponentInterfaceError } from '../errors';\nimport type { ReadParams } from '../utils';\nimport { OffchainAccessList } from './OffchainAccessList';\nimport { OpenAllowList } from './OpenAllowList';\nimport { SimpleAllowList } from './SimpleAllowList';\nimport { SimpleDenyList } from './SimpleDenyList';\n\nexport { OffchainAccessList, OpenAllowList, SimpleAllowList, SimpleDenyList };\n\n/**\n * A union type representing all valid protocol AllowList implementations\n *\n * @export\n * @typedef {AllowList}\n */\nexport type AllowList =\n | OffchainAccessList\n | OpenAllowList\n | SimpleAllowList\n | SimpleDenyList;\n\n/**\n * A map of AllowList component interfaces to their constructors.\n *\n * @type {{ \"0x1392d798\": SimpleAllowList; \"0x3d30a22c\": SimpleDenyList; \"0x2a6b3c38\": OffchainAccessList; }}\n */\nexport const AllowListByComponentInterface = {\n [ASimpleAllowList as Hex]: SimpleAllowList,\n [ASimpleDenyList as Hex]: SimpleDenyList,\n [AOffchainAccessList as Hex]: OffchainAccessList,\n};\n\n/**\n * A function that will read a contract's component interface using `getComponentInterface` and return the correct instantiated instance.\n * This function will never return an instance of {@link OpenAllowList} because it has the same component interface as {@link SimpleDenyList}\n *\n * @export\n * @async\n * @param {DeployableOptions} options\n * @param {Address} address\n * @returns {Promise<SimpleAllowList | SimpleDenyList>}\n * @throws {@link InvalidComponentInterfaceError}\n */\nexport async function allowListFromAddress(\n options: DeployableOptions,\n address: Address,\n params?: ReadParams,\n) {\n const interfaceId = (await readContract(options.config, {\n abi: aAllowListAbi,\n functionName: 'getComponentInterface',\n address,\n ...params,\n })) as keyof typeof AllowListByComponentInterface;\n const Ctor = AllowListByComponentInterface[interfaceId];\n if (!Ctor) {\n throw new InvalidComponentInterfaceError(\n Object.keys(AllowListByComponentInterface) as Hex[],\n interfaceId as Hex,\n );\n }\n return new Ctor(options, address) as\n | SimpleDenyList\n | SimpleAllowList\n | OffchainAccessList;\n}\n"],"names":["_OffchainAccessList","DeployableTargetWithRBAC","offchainAccessListAbi","params","readOffchainAccessListOwner","_address","_params","readOffchainAccessListGetAllowListIds","readOffchainAccessListGetDenyListIds","ids","request","result","simulateOffchainAccessListSetAllowListIds","writeOffchainAccessListSetAllowListIds","simulateOffchainAccessListSetDenyListIds","writeOffchainAccessListSetDenyListIds","id","simulateOffchainAccessListAddAllowListId","writeOffchainAccessListAddAllowListId","simulateOffchainAccessListAddDenyListId","writeOffchainAccessListAddDenyListId","simulateOffchainAccessListRemoveAllowListId","writeOffchainAccessListRemoveAllowListId","simulateOffchainAccessListRemoveDenyListId","writeOffchainAccessListRemoveDenyListId","readOffchainAccessListHasAllowListId","readOffchainAccessListHasDenyListId","_payload","_options","payload","options","zeroAddress","owner","getAccount","_a","DeployableUnknownOwnerProvidedError","bytecode","prepareOffchainAccessListPayload","__vite_import_meta_env__","OffchainAccessListBases","RegistryType","OffchainAccessList","allowlistIds","denylistIds","encodeAbiParameters","openAllowListAbi","simpleDenyListAbi","OpenAllowList","SimpleDenyList","_","prepareSimpleDenyListPayload","AllowListByComponentInterface","ASimpleAllowList","SimpleAllowList","ASimpleDenyList","AOffchainAccessList","allowListFromAddress","address","interfaceId","readContract","aAllowListAbi","Ctor","InvalidComponentInterfaceError"],"mappings":"q7iBAiGaA,EAAN,MAAMA,UAA2BC,EAAAA,wBAGtC,CAHK,aAAA,CAAA,MAAA,GAAA,SAAA,EAIL,KAAyB,IAAMC,GAAA,CA+B/B,MAAa,MAAMC,EAAuC,CACjD,OAAA,MAAMC,EAAAA,GAA4B,KAAK,QAAS,CACrD,GAAG,KAAK,wBAAwB,EAEhC,GAAID,EACJ,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAAC,CAAA,CACR,CACH,CAWO,UAAUE,EAAmBC,EAAsB,CAExD,MAAM,IAAI,MACR,0FAAA,CAEJ,CAUA,MAAa,gBAAgBH,EAAqB,CACzC,OAAA,MAAMI,EAAAA,GAAsC,KAAK,QAAS,CAC/D,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAAC,EACP,GAAG,KAAK,wBAAwB,EAEhC,GAAIJ,CAAA,CACL,CACH,CAUA,MAAa,eAAeA,EAAqB,CACxC,OAAA,MAAMK,EAAAA,GAAqC,KAAK,QAAS,CAC9D,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAAC,EACP,GAAG,KAAK,wBAAwB,EAEhC,GAAIL,CAAA,CACL,CACH,CAWA,MAAa,gBAAgBM,EAAeN,EAAsB,CAChE,OAAO,MAAM,KAAK,YAAY,KAAK,mBAAmBM,EAAKN,CAAM,CAAC,CACpE,CAWA,MAAa,mBAAmBM,EAAeN,EAAsB,CACnE,KAAM,CAAE,QAAAO,EAAS,OAAAC,CAAO,EAAI,MAAMC,EAAA,GAChC,KAAK,QACL,CACE,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAACH,CAAG,EACV,GAAG,KAAK,wBAAwB,EAEhC,GAAIN,CACN,CAAA,EAMK,MAAA,CAAE,KAJI,MAAMU,EAAA,GACjB,KAAK,QACLH,CAAA,EAEa,OAAAC,EACjB,CAWA,MAAa,eAAeF,EAAeN,EAAsB,CAC/D,OAAO,MAAM,KAAK,YAAY,KAAK,kBAAkBM,EAAKN,CAAM,CAAC,CACnE,CAWA,MAAa,kBAAkBM,EAAeN,EAAsB,CAClE,KAAM,CAAE,QAAAO,EAAS,OAAAC,CAAO,EAAI,MAAMG,EAAA,GAChC,KAAK,QACL,CACE,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAACL,CAAG,EACV,GAAG,KAAK,wBAAwB,EAEhC,GAAIN,CACN,CAAA,EAMK,MAAA,CAAE,KAJI,MAAMY,EAAA,GACjB,KAAK,QACLL,CAAA,EAEa,OAAAC,EACjB,CAWA,MAAa,eAAeK,EAAYb,EAAsB,CAC5D,OAAO,MAAM,KAAK,YAAY,KAAK,kBAAkBa,EAAIb,CAAM,CAAC,CAClE,CAWA,MAAa,kBAAkBa,EAAYb,EAAsB,CAC/D,KAAM,CAAE,QAAAO,EAAS,OAAAC,CAAO,EAAI,MAAMM,EAAA,GAChC,KAAK,QACL,CACE,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAACD,CAAE,EACT,GAAG,KAAK,wBAAwB,EAEhC,GAAIb,CACN,CAAA,EAMK,MAAA,CAAE,KAJI,MAAMe,EAAA,GACjB,KAAK,QACLR,CAAA,EAEa,OAAAC,EACjB,CAWA,MAAa,cAAcK,EAAYb,EAAsB,CAC3D,OAAO,MAAM,KAAK,YAAY,KAAK,iBAAiBa,EAAIb,CAAM,CAAC,CACjE,CAWA,MAAa,iBAAiBa,EAAYb,EAAsB,CAC9D,KAAM,CAAE,QAAAO,EAAS,OAAAC,CAAO,EAAI,MAAMQ,EAAA,GAChC,KAAK,QACL,CACE,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAACH,CAAE,EACT,GAAG,KAAK,wBAAwB,EAEhC,GAAIb,CACN,CAAA,EAMK,MAAA,CAAE,KAJI,MAAMiB,EAAA,GACjB,KAAK,QACLV,CAAA,EAEa,OAAAC,EACjB,CAWA,MAAa,kBAAkBK,EAAYb,EAAsB,CAC/D,OAAO,MAAM,KAAK,YAAY,KAAK,qBAAqBa,EAAIb,CAAM,CAAC,CACrE,CAWA,MAAa,qBAAqBa,EAAYb,EAAsB,CAClE,KAAM,CAAE,QAAAO,EAAS,OAAAC,CAAA,EACf,MAAMU,EAAA,GAA4C,KAAK,QAAS,CAC9D,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAACL,CAAE,EACT,GAAG,KAAK,wBAAwB,EAEhC,GAAIb,CAAA,CACL,EAKI,MAAA,CAAE,KAJI,MAAMmB,EAAA,GACjB,KAAK,QACLZ,CAAA,EAEa,OAAAC,EACjB,CAWA,MAAa,iBAAiBK,EAAYb,EAAsB,CAC9D,OAAO,MAAM,KAAK,YAAY,KAAK,oBAAoBa,EAAIb,CAAM,CAAC,CACpE,CAWA,MAAa,oBAAoBa,EAAYb,EAAsB,CACjE,KAAM,CAAE,QAAAO,EAAS,OAAAC,CAAA,EACf,MAAMY,EAAA,GAA2C,KAAK,QAAS,CAC7D,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAACP,CAAE,EACT,GAAG,KAAK,wBAAwB,EAEhC,GAAIb,CAAA,CACL,EAKI,MAAA,CAAE,KAJI,MAAMqB,EAAA,GACjB,KAAK,QACLd,CAAA,EAEa,OAAAC,EACjB,CAWA,MAAa,eACXK,EACAb,EACkB,CACX,OAAA,MAAMsB,EAAAA,GAAqC,KAAK,QAAS,CAC9D,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAACT,CAAE,EACT,GAAG,KAAK,wBAAwB,EAEhC,GAAIb,CAAA,CACL,CACH,CAWA,MAAa,cACXa,EACAb,EACkB,CACX,OAAA,MAAMuB,EAAAA,GAAoC,KAAK,QAAS,CAC7D,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAACV,CAAE,EACT,GAAG,KAAK,wBAAwB,EAEhC,GAAIb,CAAA,CACL,CACH,CAUgB,gBACdwB,EACAC,EACyB,OACzB,KAAM,CAACC,EAASC,CAAO,EAAI,KAAK,yBAC9BH,EACAC,CAAA,EAEF,GAAI,CAACC,EAAQ,OAASA,EAAQ,QAAUE,EAAAA,YAAa,CACnD,MAAMC,EAAQF,EAAQ,QAClBA,EAAQ,QAAQ,QAChBA,EAAQ,OACNG,EAAA,WAAWH,EAAQ,MAAM,EAAE,SAC3BI,EAAA,KAAK,WAAL,YAAAA,EAAe,QACrB,GAAIF,EACFH,EAAQ,MAAQG,MAEhB,OAAM,IAAIG,EAAoC,mCAElD,CACO,MAAA,CACL,IAAKjC,EAAA,EACL,SAAAkC,EACA,KAAM,CAACC,EAAiCR,CAAO,CAAC,EAChD,GAAG,KAAK,wBAAwBC,EAAQ,OAAO,CAAA,CAEnD,CACF,EAhZE9B,EAAuB,MAAiC,CACtD,GAAIsC,GAAA,MAAAA,EAAiB,+BACjB,CAAE,MAAO,QACT,CAAC,EACL,GAAIC,EAAA,kBAAA,EASNvC,EAAuB,aAA6BwC,EAAa,aAAA,WAzB5D,IAAMC,EAANzC,EAuaA,SAASqC,EAAiC,CAC/C,MAAAL,EACA,aAAAU,EACA,YAAAC,CACF,EAA8B,CACrB,OAAAC,EAAA,oBACL,CACE,CAAE,KAAM,UAAW,KAAM,OAAQ,EACjC,CAAE,KAAM,WAAY,KAAM,cAAe,EACzC,CAAE,KAAM,WAAY,KAAM,aAAc,CAC1C,EACA,CAACZ,EAAOU,EAAcC,CAAW,CAAA,CAErC,CCxgBO,MAAME,EAAmBC,EAAAA,EAUzB,MAAMC,UAAsBC,EAAAA,cAA0B,CAS3C,gBACdrB,EACAC,EACyB,CACnB,KAAA,CAACqB,EAAGnB,CAAO,EAAI,KAAK,yBAAyB,CAAA,EAAIF,CAAQ,EACxD,MAAA,CACL,IAAKiB,EAAA,SACLT,EAAA,SACA,KAAM,CAACc,EAAAA,6BAA6B,CAAE,MAAOnB,EAAAA,YAAa,OAAQ,CAAG,CAAA,CAAC,CAAC,EACvE,GAAG,KAAK,wBAAwBD,EAAQ,OAAO,CAAA,CAEnD,CACF,CCTO,MAAMqB,EAAgC,CAC3C,CAACC,EAAuB,gBAAA,EAAGC,EAAA,gBAC3B,CAACC,EAAsB,eAAA,EAAGN,EAAA,eAC1B,CAACO,EAA0B,mBAAA,EAAGd,CAChC,EAasB,eAAAe,EACpB1B,EACA2B,EACAtD,EACA,CACA,MAAMuD,EAAe,MAAMC,eAAa7B,EAAQ,OAAQ,CACtD,IAAK8B,EAAA,EACL,aAAc,wBACd,QAAAH,EACA,GAAGtD,CAAA,CACJ,EACK0D,EAAOV,EAA8BO,CAAW,EACtD,GAAI,CAACG,EACH,MAAM,IAAIC,EAAA,+BACR,OAAO,KAAKX,CAA6B,EACzCO,CAAA,EAGG,OAAA,IAAIG,EAAK/B,EAAS2B,CAAO,CAIlC"}
|
|
1
|
+
{"version":3,"file":"AllowList-BJ9HQGFs.cjs","sources":["../src/AllowLists/OffchainAccessList.ts","../src/AllowLists/OpenAllowList.ts","../src/AllowLists/AllowList.ts"],"sourcesContent":["import {\n offchainAccessListAbi,\n readOffchainAccessListGetAllowListIds,\n readOffchainAccessListGetDenyListIds,\n readOffchainAccessListHasAllowListId,\n readOffchainAccessListHasDenyListId,\n readOffchainAccessListOwner,\n simulateOffchainAccessListAddAllowListId,\n simulateOffchainAccessListAddDenyListId,\n simulateOffchainAccessListRemoveAllowListId,\n simulateOffchainAccessListRemoveDenyListId,\n simulateOffchainAccessListSetAllowListIds,\n simulateOffchainAccessListSetDenyListIds,\n writeOffchainAccessListAddAllowListId,\n writeOffchainAccessListAddDenyListId,\n writeOffchainAccessListRemoveAllowListId,\n writeOffchainAccessListRemoveDenyListId,\n writeOffchainAccessListSetAllowListIds,\n writeOffchainAccessListSetDenyListIds,\n} from '@boostxyz/evm';\nimport { bytecode } from '@boostxyz/evm/artifacts/contracts/allowlists/OffchainAccessList.sol/OffchainAccessList.json';\nimport { getAccount } from '@wagmi/core';\nimport {\n type Address,\n type ContractEventName,\n type Hex,\n encodeAbiParameters,\n zeroAddress,\n} from 'viem';\nimport { OffchainAccessList as OffchainAccessListBases } from '../../dist/deployments.json';\nimport type {\n DeployableOptions,\n GenericDeployableParams,\n} from '../Deployable/Deployable';\nimport { DeployableTargetWithRBAC } from '../Deployable/DeployableTargetWithRBAC';\nimport { DeployableUnknownOwnerProvidedError } from '../errors';\nimport {\n type GenericLog,\n type ReadParams,\n RegistryType,\n type WriteParams,\n} from '../utils';\n\nexport { offchainAccessListAbi };\n\n/**\n * Object representation of a {@link OffchainAccessList} initialization payload.\n *\n * @export\n * @interface OffchainAccessListPayload\n * @typedef {OffchainAccessListPayload}\n */\nexport interface OffchainAccessListPayload {\n /**\n * The access list's owner\n *\n * @type {Address}\n */\n owner: Address;\n /**\n * List of off-chain allowlist IDs.\n *\n * @type {string[]}\n */\n allowlistIds: string[];\n /**\n * List of off-chain denylist IDs.\n *\n * @type {string[]}\n */\n denylistIds: string[];\n}\n\n/**\n * A generic `viem.Log` event with support for `OffchainAccessList` event types.\n *\n * @export\n * @typedef {OffchainAccessListLog}\n * @template {ContractEventName<typeof offchainAccessListAbi>} [event=ContractEventName<\n * typeof offchainAccessListAbi\n * >]\n */\nexport type OffchainAccessListLog<\n event extends ContractEventName<\n typeof offchainAccessListAbi\n > = ContractEventName<typeof offchainAccessListAbi>,\n> = GenericLog<typeof offchainAccessListAbi, event>;\n\n/**\n * An AllowList that links on-chain boosts to off-chain access lists stored in a database.\n * This implementation always allows everyone (returns true) but stores references to off-chain allowlist and denylist IDs.\n *\n * @export\n * @class OffchainAccessList\n * @typedef {OffchainAccessList}\n * @extends {DeployableTargetWithRBAC<OffchainAccessListPayload>}\n */\nexport class OffchainAccessList extends DeployableTargetWithRBAC<\n OffchainAccessListPayload,\n typeof offchainAccessListAbi\n> {\n public override readonly abi = offchainAccessListAbi;\n /**\n * @inheritdoc\n *\n * @public\n * @static\n * @type {Record<number, Address>}\n */\n public static override bases: Record<number, Address> = {\n ...(import.meta.env?.VITE_OFFCHAIN_ACCESS_LIST_BASE\n ? { 31337: import.meta.env.VITE_OFFCHAIN_ACCESS_LIST_BASE }\n : {}),\n ...(OffchainAccessListBases as Record<number, Address>),\n };\n /**\n * @inheritdoc\n *\n * @public\n * @static\n * @type {RegistryType}\n */\n public static override registryType: RegistryType = RegistryType.ALLOW_LIST;\n\n /**\n * Retrieves the owner\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<Address>} - The address of the owner\n */\n public async owner(params?: ReadParams): Promise<Address> {\n return await readOffchainAccessListOwner(this._config, {\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n address: this.assertValidAddress(),\n args: [],\n });\n }\n\n /**\n * Check if a user is authorized based on off-chain allowlists/denylists\n *\n * @public\n * @async\n * @param {Address} address - The address of the user\n * @param {?ReadParams} [params]\n * @returns {Promise<boolean>} - True if the user is allowed\n */\n public isAllowed(_address: Address, _params?: ReadParams) {\n // TODO: check address against offchain allowlist/denylist using api calls\n throw new Error(\n 'isAllowed() not available for OffchainAccessList, implementation should be done offchain',\n );\n }\n\n /**\n * Get all allowlist IDs\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<string[]>} - Array of allowlist IDs\n */\n public async getAllowlistIds(params?: ReadParams) {\n return await readOffchainAccessListGetAllowListIds(this._config, {\n address: this.assertValidAddress(),\n args: [],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * Get all denylist IDs\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<string[]>} - Array of denylist IDs\n */\n public async getDenylistIds(params?: ReadParams) {\n return await readOffchainAccessListGetDenyListIds(this._config, {\n address: this.assertValidAddress(),\n args: [],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * Set allowlist IDs, replacing all existing ones. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string[]} ids - The new allowlist IDs\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async setAllowlistIds(ids: string[], params?: WriteParams) {\n return await this.awaitResult(this.setAllowlistIdsRaw(ids, params));\n }\n\n /**\n * Set allowlist IDs, replacing all existing ones. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string[]} ids - The new allowlist IDs\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async setAllowlistIdsRaw(ids: string[], params?: WriteParams) {\n const { request, result } = await simulateOffchainAccessListSetAllowListIds(\n this._config,\n {\n address: this.assertValidAddress(),\n args: [ids],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n },\n );\n const hash = await writeOffchainAccessListSetAllowListIds(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Set denylist IDs, replacing all existing ones. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string[]} ids - The new denylist IDs\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async setDenylistIds(ids: string[], params?: WriteParams) {\n return await this.awaitResult(this.setDenylistIdsRaw(ids, params));\n }\n\n /**\n * Set denylist IDs, replacing all existing ones. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string[]} ids - The new denylist IDs\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async setDenylistIdsRaw(ids: string[], params?: WriteParams) {\n const { request, result } = await simulateOffchainAccessListSetDenyListIds(\n this._config,\n {\n address: this.assertValidAddress(),\n args: [ids],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n },\n );\n const hash = await writeOffchainAccessListSetDenyListIds(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Add a single allowlist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The allowlist ID to add\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async addAllowlistId(id: string, params?: WriteParams) {\n return await this.awaitResult(this.addAllowlistIdRaw(id, params));\n }\n\n /**\n * Add a single allowlist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The allowlist ID to add\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async addAllowlistIdRaw(id: string, params?: WriteParams) {\n const { request, result } = await simulateOffchainAccessListAddAllowListId(\n this._config,\n {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n },\n );\n const hash = await writeOffchainAccessListAddAllowListId(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Add a single denylist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The denylist ID to add\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async addDenylistId(id: string, params?: WriteParams) {\n return await this.awaitResult(this.addDenylistIdRaw(id, params));\n }\n\n /**\n * Add a single denylist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The denylist ID to add\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async addDenylistIdRaw(id: string, params?: WriteParams) {\n const { request, result } = await simulateOffchainAccessListAddDenyListId(\n this._config,\n {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n },\n );\n const hash = await writeOffchainAccessListAddDenyListId(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Remove a single allowlist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The allowlist ID to remove\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async removeAllowlistId(id: string, params?: WriteParams) {\n return await this.awaitResult(this.removeAllowlistIdRaw(id, params));\n }\n\n /**\n * Remove a single allowlist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The allowlist ID to remove\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async removeAllowlistIdRaw(id: string, params?: WriteParams) {\n const { request, result } =\n await simulateOffchainAccessListRemoveAllowListId(this._config, {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n const hash = await writeOffchainAccessListRemoveAllowListId(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Remove a single denylist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The denylist ID to remove\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async removeDenylistId(id: string, params?: WriteParams) {\n return await this.awaitResult(this.removeDenylistIdRaw(id, params));\n }\n\n /**\n * Remove a single denylist ID. This function can only be called by authorized users.\n *\n * @public\n * @async\n * @param {string} id - The denylist ID to remove\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async removeDenylistIdRaw(id: string, params?: WriteParams) {\n const { request, result } =\n await simulateOffchainAccessListRemoveDenyListId(this._config, {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n const hash = await writeOffchainAccessListRemoveDenyListId(\n this._config,\n request,\n );\n return { hash, result };\n }\n\n /**\n * Check if an allowlist ID exists\n *\n * @public\n * @async\n * @param {string} id - The allowlist ID to check\n * @param {?ReadParams} [params]\n * @returns {Promise<boolean>} - True if the ID exists\n */\n public async hasAllowlistId(\n id: string,\n params?: ReadParams,\n ): Promise<boolean> {\n return await readOffchainAccessListHasAllowListId(this._config, {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * Check if a denylist ID exists\n *\n * @public\n * @async\n * @param {string} id - The denylist ID to check\n * @param {?ReadParams} [params]\n * @returns {Promise<boolean>} - True if the ID exists\n */\n public async hasDenylistId(\n id: string,\n params?: ReadParams,\n ): Promise<boolean> {\n return await readOffchainAccessListHasDenyListId(this._config, {\n address: this.assertValidAddress(),\n args: [id],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * @inheritdoc\n *\n * @public\n * @param {?OffchainAccessListPayload} [_payload]\n * @param {?DeployableOptions} [_options]\n * @returns {GenericDeployableParams}\n */\n public override buildParameters(\n _payload?: OffchainAccessListPayload,\n _options?: DeployableOptions,\n ): GenericDeployableParams {\n const [payload, options] = this.validateDeploymentConfig(\n _payload,\n _options,\n );\n if (!payload.owner || payload.owner === zeroAddress) {\n const owner = options.account\n ? options.account.address\n : options.config\n ? getAccount(options.config).address\n : this._account?.address;\n if (owner) {\n payload.owner = owner;\n } else {\n throw new DeployableUnknownOwnerProvidedError();\n }\n }\n return {\n abi: offchainAccessListAbi,\n bytecode: bytecode as Hex,\n args: [prepareOffchainAccessListPayload(payload)],\n ...this.optionallyAttachAccount(options.account),\n };\n }\n}\n\n/**\n * Given a {@link OffchainAccessListPayload}, properly encode the initialization payload.\n *\n * @param {OffchainAccessListPayload} param0\n * @param {Address} param0.owner - The access list's owner\n * @param {string[]} param0.allowlistIds - List of off-chain allowlist IDs\n * @param {string[]} param0.denylistIds - List of off-chain denylist IDs\n * @returns {Hex}\n */\nexport function prepareOffchainAccessListPayload({\n owner,\n allowlistIds,\n denylistIds,\n}: OffchainAccessListPayload) {\n return encodeAbiParameters(\n [\n { type: 'address', name: 'owner' },\n { type: 'string[]', name: 'allowlistIds' },\n { type: 'string[]', name: 'denylistIds' },\n ],\n [owner, allowlistIds, denylistIds],\n );\n}\n","import { simpleDenyListAbi } from '@boostxyz/evm';\nimport { bytecode } from '@boostxyz/evm/artifacts/contracts/allowlists/SimpleDenyList.sol/SimpleDenyList.json';\nimport { type Hex, zeroAddress } from 'viem';\nimport type {\n DeployableOptions,\n GenericDeployableParams,\n} from '../Deployable/Deployable';\nimport {\n SimpleDenyList,\n type SimpleDenyListPayload,\n prepareSimpleDenyListPayload,\n} from './SimpleDenyList';\n\nexport const openAllowListAbi = simpleDenyListAbi;\n\n/**\n * A simple AllowList, extending {@link DenyList}, that is ownerless and allows anyone to claim.\n *\n * @export\n * @class OpenAllowList\n * @typedef {OpenAllowList}\n * @extends {DeployableTarget<OpenAllowListPayload>}\n */\nexport class OpenAllowList extends SimpleDenyList<undefined> {\n /**\n * @inheritdoc\n *\n * @public\n * @param {?SimpleDenyListPayload} [_payload]\n * @param {?DeployableOptions} [_options]\n * @returns {GenericDeployableParams}\n */\n public override buildParameters(\n _payload?: SimpleDenyListPayload,\n _options?: DeployableOptions,\n ): GenericDeployableParams {\n const [_, options] = this.validateDeploymentConfig({}, _options);\n return {\n abi: openAllowListAbi,\n bytecode: bytecode as Hex,\n args: [prepareSimpleDenyListPayload({ owner: zeroAddress, denied: [] })],\n ...this.optionallyAttachAccount(options.account),\n };\n }\n}\n","import { aAllowListAbi } from '@boostxyz/evm';\nimport {\n AOffchainAccessList,\n ASimpleAllowList,\n ASimpleDenyList,\n} from '@boostxyz/evm/deploys/componentInterfaces.json';\nimport { readContract } from '@wagmi/core';\nimport type { Address, Hex } from 'viem';\nimport type { DeployableOptions } from '../Deployable/Deployable';\nimport { InvalidComponentInterfaceError } from '../errors';\nimport type { ReadParams } from '../utils';\nimport { OffchainAccessList } from './OffchainAccessList';\nimport { OpenAllowList } from './OpenAllowList';\nimport { SimpleAllowList } from './SimpleAllowList';\nimport { SimpleDenyList } from './SimpleDenyList';\n\nexport { OffchainAccessList, OpenAllowList, SimpleAllowList, SimpleDenyList };\n\n/**\n * A union type representing all valid protocol AllowList implementations\n *\n * @export\n * @typedef {AllowList}\n */\nexport type AllowList =\n | OffchainAccessList\n | OpenAllowList\n | SimpleAllowList\n | SimpleDenyList;\n\n/**\n * A map of AllowList component interfaces to their constructors.\n *\n * @type {{ \"0x1392d798\": SimpleAllowList; \"0x3d30a22c\": SimpleDenyList; \"0x2a6b3c38\": OffchainAccessList; }}\n */\nexport const AllowListByComponentInterface = {\n [ASimpleAllowList as Hex]: SimpleAllowList,\n [ASimpleDenyList as Hex]: SimpleDenyList,\n [AOffchainAccessList as Hex]: OffchainAccessList,\n};\n\n/**\n * A function that will read a contract's component interface using `getComponentInterface` and return the correct instantiated instance.\n * This function will never return an instance of {@link OpenAllowList} because it has the same component interface as {@link SimpleDenyList}\n *\n * @export\n * @async\n * @param {DeployableOptions} options\n * @param {Address} address\n * @returns {Promise<SimpleAllowList | SimpleDenyList>}\n * @throws {@link InvalidComponentInterfaceError}\n */\nexport async function allowListFromAddress(\n options: DeployableOptions,\n address: Address,\n params?: ReadParams,\n) {\n const interfaceId = (await readContract(options.config, {\n abi: aAllowListAbi,\n functionName: 'getComponentInterface',\n address,\n ...params,\n })) as keyof typeof AllowListByComponentInterface;\n const Ctor = AllowListByComponentInterface[interfaceId];\n if (!Ctor) {\n throw new InvalidComponentInterfaceError(\n Object.keys(AllowListByComponentInterface) as Hex[],\n interfaceId as Hex,\n );\n }\n return new Ctor(options, address) as\n | SimpleDenyList\n | SimpleAllowList\n | OffchainAccessList;\n}\n"],"names":["_OffchainAccessList","DeployableTargetWithRBAC","offchainAccessListAbi","params","readOffchainAccessListOwner","_address","_params","readOffchainAccessListGetAllowListIds","readOffchainAccessListGetDenyListIds","ids","request","result","simulateOffchainAccessListSetAllowListIds","writeOffchainAccessListSetAllowListIds","simulateOffchainAccessListSetDenyListIds","writeOffchainAccessListSetDenyListIds","id","simulateOffchainAccessListAddAllowListId","writeOffchainAccessListAddAllowListId","simulateOffchainAccessListAddDenyListId","writeOffchainAccessListAddDenyListId","simulateOffchainAccessListRemoveAllowListId","writeOffchainAccessListRemoveAllowListId","simulateOffchainAccessListRemoveDenyListId","writeOffchainAccessListRemoveDenyListId","readOffchainAccessListHasAllowListId","readOffchainAccessListHasDenyListId","_payload","_options","payload","options","zeroAddress","owner","getAccount","_a","DeployableUnknownOwnerProvidedError","bytecode","prepareOffchainAccessListPayload","__vite_import_meta_env__","OffchainAccessListBases","RegistryType","OffchainAccessList","allowlistIds","denylistIds","encodeAbiParameters","openAllowListAbi","simpleDenyListAbi","OpenAllowList","SimpleDenyList","_","prepareSimpleDenyListPayload","AllowListByComponentInterface","ASimpleAllowList","SimpleAllowList","ASimpleDenyList","AOffchainAccessList","allowListFromAddress","address","interfaceId","readContract","aAllowListAbi","Ctor","InvalidComponentInterfaceError"],"mappings":"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"}
|
|
@@ -3,10 +3,10 @@ import { n as q, o as v, p as P } from "./componentInterfaces-D2s6AXlV.js";
|
|
|
3
3
|
import { getAccount as N, readContract as x } from "@wagmi/core";
|
|
4
4
|
import { DeployableUnknownOwnerProvidedError as F, InvalidComponentInterfaceError as k } from "./errors.js";
|
|
5
5
|
import { zeroAddress as l, encodeAbiParameters as M } from "viem";
|
|
6
|
-
import { O as U } from "./deployments-
|
|
6
|
+
import { O as U } from "./deployments-CHQ30INq.js";
|
|
7
7
|
import { DeployableTargetWithRBAC as W } from "./Deployable/DeployableTargetWithRBAC.js";
|
|
8
8
|
import { RegistryType as j } from "./utils.js";
|
|
9
|
-
import { S as h, b as z, p as G } from "./SimpleDenyList-
|
|
9
|
+
import { S as h, b as z, p as G } from "./SimpleDenyList-Dr03aOeP.js";
|
|
10
10
|
import { SimpleAllowList as J } from "./AllowLists/SimpleAllowList.js";
|
|
11
11
|
const K = "0x6080604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b612127806100895f395ff3fe608060405260043610610229575f3560e01c8063859aa08911610131578063e89079fa116100ac578063f04e283e1161007c578063fdee627a11610062578063fdee627a14610620578063fe9fbb8014610634578063fee81cf414610653575f80fd5b8063f04e283e146105fa578063f2fde38b1461060d575f80fd5b8063e89079fa14610587578063ec87621c146105a6578063ef05bda9146105ba578063ef4550bf146105d9575f80fd5b8063be4994f811610101578063dcc21361116100e7578063dcc2136114610526578063e3f756de14610545578063e611205f14610568575f80fd5b8063be4994f8146104e8578063cbb7de5114610507575f80fd5b8063859aa089146104535780638da5cb5b14610472578063937d599c146104aa57806399927eec146104c9575f80fd5b80632de94807116101c1578063514e62fc11610191578063715018a611610177578063715018a61461041857806375b238fc146104205780637e973e8214610434575f80fd5b8063514e62fc146103db57806354d1f13d14610410575f80fd5b80632de948071461034b5780634359d28a1461038a578063439fab91146103a95780634a4ee7b1146103c8575f80fd5b80631cd64df4116101fc5780631cd64df4146102b557806325692962146102ea57806328d6183b146102f25780632c297c181461032c575f80fd5b806301ffc9a71461022d578063096f199f14610261578063183a4f6e1461028d5780631c10893f146102a2575b5f80fd5b348015610238575f80fd5b5061024c610247366004611725565b610684565b60405190151581526020015b60405180910390f35b34801561026c575f80fd5b5061028061027b36600461176b565b6106df565b60405161025891906117b0565b6102a061029b36600461176b565b610785565b005b6102a06102b03660046117e3565b610792565b3480156102c0575f80fd5b5061024c6102cf3660046117e3565b638b78c6d8600c9081525f9290925260209091205481161490565b6102a06107a8565b3480156102fd575f80fd5b506040517f2a6b3c38000000000000000000000000000000000000000000000000000000008152602001610258565b348015610337575f80fd5b506102a0610346366004611852565b6107f5565b348015610356575f80fd5b5061037c610365366004611891565b638b78c6d8600c9081525f91909152602090205490565b604051908152602001610258565b348015610395575f80fd5b506102a06103a43660046118ed565b6108ea565b3480156103b4575f80fd5b506102a06103c3366004611852565b6109e4565b6102a06103d63660046117e3565b610ab7565b3480156103e6575f80fd5b5061024c6103f53660046117e3565b638b78c6d8600c9081525f9290925260209091205416151590565b6102a0610ac9565b6102a0610b02565b34801561042b575f80fd5b5061037c600281565b34801561043f575f80fd5b506102a061044e366004611852565b610b15565b34801561045e575f80fd5b506102a061046d366004611959565b610bfe565b34801561047d575f80fd5b50638b78c6d8195460405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610258565b3480156104b5575f80fd5b5061024c6104c4366004611852565b610ca0565b3480156104d4575f80fd5b5061024c6104e3366004611852565b610d15565b3480156104f3575f80fd5b506102a06105023660046118ed565b610d7f565b348015610512575f80fd5b506102a0610521366004611959565b610e1d565b348015610531575f80fd5b506102a06105403660046118ed565b610ebd565b348015610550575f80fd5b5061024c61055f36600461198c565b60019392505050565b348015610573575f80fd5b5061028061058236600461176b565b610f5b565b348015610592575f80fd5b506102a06105a1366004611852565b610f69565b3480156105b1575f80fd5b5061037c600181565b3480156105c5575f80fd5b506102a06105d4366004611852565b6110bc565b3480156105e4575f80fd5b506105ed6111bc565b60405161025891906119dd565b6102a0610608366004611891565b611290565b6102a061061b366004611891565b6112ca565b34801561062b575f80fd5b506105ed6112f0565b34801561063f575f80fd5b5061024c61064e366004611891565b6113ba565b34801561065e575f80fd5b5061037c61066d366004611891565b63389a75e1600c9081525f91909152602090205490565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f2a6b3c380000000000000000000000000000000000000000000000000000000014806106d957506106d982611419565b92915050565b600181815481106106ee575f80fd5b905f5260205f20015f91509050805461070690611a5e565b80601f016020809104026020016040519081016040528092919081815260200182805461073290611a5e565b801561077d5780601f106107545761010080835404028352916020019161077d565b820191905f5260205f20905b81548152906001019060200180831161076057829003601f168201915b505050505081565b61078f338261146e565b50565b61079a611479565b6107a48282611493565b5050565b5f6202a30067ffffffffffffffff164201905063389a75e1600c52335f52806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d5f80a250565b6107fe336113ba565b610834576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61083e8282610ca0565b156108aa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f44656e796c69737420494420616c72656164792065786973747300000000000060448201526064015b60405180910390fd5b6001805480820182555f919091527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6016108e5828483611b27565b505050565b60026108f58161149f565b83821461092e576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848110156109dc575f84848381811061094b5761094b611be1565b90506020020160208101906109609190611c0e565b90508015156001036109a25761099d87878481811061098157610981611be1565b90506020020160208101906109969190611891565b6001611493565b6109d3565b6109d38787848181106109b7576109b7611be1565b90506020020160208101906109cc9190611891565b600161146e565b50600101610930565b505050505050565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011328054600382558015610a355760018160011c14303b10610a2c5763f92ee8a95f526004601cfd5b818160ff1b1b91505b505f8080610a4585870187611d5e565b925092509250610a54836114d0565b8151610a66905f90602085019061164f565b508051610a7a90600190602084019061164f565b5050505080156108e5576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a1505050565b610abf611479565b6107a4828261146e565b63389a75e1600c52335f525f6020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c925f80a2565b610b0a611479565b610b135f611518565b565b610b1e336113ba565b610b54576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b5e8282610d15565b15610bc5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f416c6c6f776c69737420494420616c726561647920657869737473000000000060448201526064016108a1565b5f80546001810182559080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563016108e5828483611b27565b610c07336113ba565b610c3d576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c4860015f6116a3565b5f5b818110156108e5576001838383818110610c6657610c66611be1565b9050602002810190610c789190611dd4565b82546001810184555f938452602090932090920191610c979183611b27565b50600101610c4a565b5f805b600154811015610d0c578383604051610cbd929190611e35565b604051809103902060018281548110610cd857610cd8611be1565b905f5260205f2001604051610ced9190611e44565b604051809103902003610d045760019150506106d9565b600101610ca3565b505f9392505050565b5f805b5f54811015610d0c578383604051610d31929190611e35565b60405180910390205f8281548110610d4b57610d4b611be1565b905f5260205f2001604051610d609190611e44565b604051809103902003610d775760019150506106d9565b600101610d18565b6002610d8a8161149f565b838214610dc3576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848110156109dc57610e15868683818110610de257610de2611be1565b9050602002016020810190610df79190611891565b858584818110610e0957610e09611be1565b90506020020135611493565b600101610dc5565b610e26336113ba565b610e5c576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610e665f806116a3565b5f5b818110156108e5575f838383818110610e8357610e83611be1565b9050602002810190610e959190611dd4565b82546001810184555f938452602090932090920191610eb49183611b27565b50600101610e68565b6002610ec88161149f565b838214610f01576040517fff633a3800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b848110156109dc57610f53868683818110610f2057610f20611be1565b9050602002016020810190610f359190611891565b858584818110610f4757610f47611be1565b9050602002013561146e565b600101610f03565b5f81815481106106ee575f80fd5b610f72336113ba565b610fa8576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b5f54811015611085578282604051610fc3929190611e35565b60405180910390205f8281548110610fdd57610fdd611be1565b905f5260205f2001604051610ff29190611e44565b60405180910390200361107d575f805461100e90600190611ed3565b8154811061101e5761101e611be1565b905f5260205f20015f828154811061103857611038611be1565b905f5260205f2001908161104c9190611f0b565b505f80548061105d5761105d611fe3565b600190038181905f5260205f20015f61107691906116be565b9055505050565b600101610faa565b5081816040517f8cf9845e0000000000000000000000000000000000000000000000000000000081526004016108a1929190612010565b6110c5336113ba565b6110fb576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f5b600154811015611085578282604051611117929190611e35565b60405180910390206001828154811061113257611132611be1565b905f5260205f20016040516111479190611e44565b6040518091039020036111b45760018054611163908290611ed3565b8154811061117357611173611be1565b905f5260205f20016001828154811061118e5761118e611be1565b905f5260205f200190816111a29190611f0b565b50600180548061105d5761105d611fe3565b6001016110fd565b60606001805480602002602001604051908101604052809291908181526020015f905b82821015611287578382905f5260205f200180546111fc90611a5e565b80601f016020809104026020016040519081016040528092919081815260200182805461122890611a5e565b80156112735780601f1061124a57610100808354040283529160200191611273565b820191905f5260205f20905b81548152906001019060200180831161125657829003601f168201915b5050505050815260200190600101906111df565b50505050905090565b611298611479565b63389a75e1600c52805f526020600c2080544211156112be57636f5e88185f526004601cfd5b5f905561078f81611518565b6112d2611479565b8060601b6112e757637448fbae5f526004601cfd5b61078f81611518565b60605f805480602002602001604051908101604052809291908181526020015f905b82821015611287578382905f5260205f2001805461132f90611a5e565b80601f016020809104026020016040519081016040528092919081815260200182805461135b90611a5e565b80156113a65780601f1061137d576101008083540402835291602001916113a6565b820191905f5260205f20905b81548152906001019060200180831161138957829003601f168201915b505050505081526020019060010190611312565b5f8173ffffffffffffffffffffffffffffffffffffffff166113df638b78c6d8195490565b73ffffffffffffffffffffffffffffffffffffffff1614806106d95750638b78c6d8600c9081525f839052602090205460031615156106d9565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe2089f790000000000000000000000000000000000000000000000000000000014806106d957506106d982611562565b6107a482825f6115f8565b638b78c6d819543314610b13576382b429005f526004601cfd5b6107a4828260016115f8565b638b78c6d81954331461078f57638b78c6d8600c52335f52806020600c20541661078f576382b429005f526004601cfd5b73ffffffffffffffffffffffffffffffffffffffff16638b78c6d819819055805f7f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b638b78c6d819805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e05f80a355565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806106d957507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106d9565b638b78c6d8600c52825f526020600c20805483811783611619575080841681185b80835580600c5160601c7f715ad5ce61fc9595c7b415289d59cf203f23a94fa06f04af7e489a0a76e1fe265f80a3505050505050565b828054828255905f5260205f20908101928215611693579160200282015b828111156116935782518290611683908261203e565b509160200191906001019061166d565b5061169f9291506116f5565b5090565b5080545f8255905f5260205f209081019061078f91906116f5565b5080546116ca90611a5e565b5f825580601f106116d9575050565b601f0160209004905f5260205f209081019061078f9190611711565b8082111561169f575f61170882826116be565b506001016116f5565b5b8082111561169f575f8155600101611712565b5f60208284031215611735575f80fd5b81357fffffffff0000000000000000000000000000000000000000000000000000000081168114611764575f80fd5b9392505050565b5f6020828403121561177b575f80fd5b5035919050565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6117646020830184611782565b73ffffffffffffffffffffffffffffffffffffffff8116811461078f575f80fd5b5f80604083850312156117f4575f80fd5b82356117ff816117c2565b946020939093013593505050565b5f8083601f84011261181d575f80fd5b50813567ffffffffffffffff811115611834575f80fd5b60208301915083602082850101111561184b575f80fd5b9250929050565b5f8060208385031215611863575f80fd5b823567ffffffffffffffff811115611879575f80fd5b6118858582860161180d565b90969095509350505050565b5f602082840312156118a1575f80fd5b8135611764816117c2565b5f8083601f8401126118bc575f80fd5b50813567ffffffffffffffff8111156118d3575f80fd5b6020830191508360208260051b850101111561184b575f80fd5b5f805f8060408587031215611900575f80fd5b843567ffffffffffffffff811115611916575f80fd5b611922878288016118ac565b909550935050602085013567ffffffffffffffff811115611941575f80fd5b61194d878288016118ac565b95989497509550505050565b5f806020838503121561196a575f80fd5b823567ffffffffffffffff811115611980575f80fd5b611885858286016118ac565b5f805f6040848603121561199e575f80fd5b83356119a9816117c2565b9250602084013567ffffffffffffffff8111156119c4575f80fd5b6119d08682870161180d565b9497909650939450505050565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b82811015611a52577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0878603018452611a3d858351611782565b94506020938401939190910190600101611a03565b50929695505050505050565b600181811c90821680611a7257607f821691505b602082108103611aa9577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b601f8211156108e557805f5260205f20601f840160051c81016020851015611b015750805b601f840160051c820191505b81811015611b20575f8155600101611b0d565b5050505050565b67ffffffffffffffff831115611b3f57611b3f611aaf565b611b5383611b4d8354611a5e565b83611adc565b5f601f841160018114611b84575f8515611b6d5750838201355b5f19600387901b1c1916600186901b178355611b20565b5f83815260208120601f198716915b82811015611bb35786850135825560209485019460019092019101611b93565b5086821015611bcf575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f60208284031215611c1e575f80fd5b81358015158114611764575f80fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611c5657611c56611aaf565b604052919050565b5f82601f830112611c6d575f80fd5b813567ffffffffffffffff811115611c8757611c87611aaf565b8060051b611c9760208201611c2d565b91825260208185018101929081019086841115611cb2575f80fd5b6020860192505b83831015611d5457823567ffffffffffffffff811115611cd7575f80fd5b8601603f81018813611ce7575f80fd5b602081013567ffffffffffffffff811115611d0457611d04611aaf565b611d176020601f19601f84011601611c2d565b8181526040838301018a1015611d2b575f80fd5b816040840160208301375f60208383010152808552505050602082019150602083019250611cb9565b9695505050505050565b5f805f60608486031215611d70575f80fd5b8335611d7b816117c2565b9250602084013567ffffffffffffffff811115611d96575f80fd5b611da286828701611c5e565b925050604084013567ffffffffffffffff811115611dbe575f80fd5b611dca86828701611c5e565b9150509250925092565b5f8083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611e07575f80fd5b83018035915067ffffffffffffffff821115611e21575f80fd5b60200191503681900382131561184b575f80fd5b818382375f9101908152919050565b5f808354611e5181611a5e565b600182168015611e685760018114611e9b57611ec8565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0083168652811515820286019350611ec8565b865f5260205f205f5b83811015611ec057815488820152600190910190602001611ea4565b505081860193505b509195945050505050565b818103818111156106d9577f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b818103611f16575050565b611f208254611a5e565b67ffffffffffffffff811115611f3857611f38611aaf565b611f4c81611f468454611a5e565b84611adc565b5f601f821160018114611f80575f8315611f665750848201545b600184901b5f19600386901b1c198216175b855550611b20565b5f8581526020808220868352908220601f198616925b83811015611fb65782860154825560019586019590910190602001611f96565b5085831015611fd357818501545f19600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b60208152816020820152818360408301375f818301604090810191909152601f909201601f19160101919050565b815167ffffffffffffffff81111561205857612058611aaf565b61206681611f468454611a5e565b6020601f821160018114612096575f8315611f66575081850151600184901b5f19600386901b1c19821617611f78565b5f84815260208120601f198516915b828110156120c557878501518255602094850194600190920191016120a5565b50848210156120e257868401515f19600387901b60f8161c191681555b50505050600190811b0190555056fea26469706673582212206100a11e4e0b5bdd589ed060e5af18faef222dc9a5fb78d50ce02911e161f36664736f6c634300081a0033", t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" }, s = class s extends W {
|
|
12
12
|
constructor() {
|
|
@@ -423,4 +423,4 @@ export {
|
|
|
423
423
|
t0 as b,
|
|
424
424
|
$ as p
|
|
425
425
|
};
|
|
426
|
-
//# sourceMappingURL=AllowList-
|
|
426
|
+
//# sourceMappingURL=AllowList-DiU7g4Hs.js.map
|