@boostxyz/sdk 0.0.0-alpha.15 → 0.0.0-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Actions/Action.cjs +1 -1
- package/dist/Actions/Action.cjs.map +1 -1
- package/dist/Actions/Action.js +8 -8
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +416 -135
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.cjs.map +1 -1
- package/dist/AllowLists/AllowList.js +3 -3
- package/dist/AllowLists/OpenAllowList.d.ts +183 -0
- package/dist/AllowLists/OpenAllowList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
- package/dist/AllowLists/SimpleAllowList.d.ts +86 -31
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleAllowList.js +54 -73
- package/dist/AllowLists/SimpleAllowList.js.map +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.d.ts +195 -3
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleDenyList.js +4 -4
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +1 -1
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.js +22 -22
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +10 -10
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.cjs.map +1 -1
- package/dist/Budgets/Budget.d.ts.map +1 -1
- package/dist/Budgets/Budget.js +2 -2
- package/dist/Budgets/Budget.js.map +1 -1
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.cjs.map +1 -1
- package/dist/Budgets/ManagedBudget.d.ts +6 -156
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudget.js +60 -282
- package/dist/Budgets/ManagedBudget.js.map +1 -1
- package/dist/Budgets/VestingBudget.d.ts +158 -54
- package/dist/Budgets/VestingBudget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.js +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +2 -0
- package/dist/Deployable/DeployableTargetWithRBAC.cjs.map +1 -0
- package/dist/Deployable/DeployableTargetWithRBAC.d.ts +179 -0
- package/dist/Deployable/DeployableTargetWithRBAC.d.ts.map +1 -0
- package/dist/Deployable/DeployableTargetWithRBAC.js +222 -0
- package/dist/Deployable/DeployableTargetWithRBAC.js.map +1 -0
- package/dist/{Incentive-CSnbCt3P.js → Incentive-DJf-vdyL.js} +23 -23
- package/dist/{Incentive-CSnbCt3P.js.map → Incentive-DJf-vdyL.js.map} +1 -1
- package/dist/{Incentive-BroOQqVi.cjs → Incentive-DNwROd1r.cjs} +2 -2
- package/dist/{Incentive-BroOQqVi.cjs.map → Incentive-DNwROd1r.cjs.map} +1 -1
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.js +10 -10
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.js +9 -9
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.js +23 -23
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.js +3 -3
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.js +6 -6
- package/dist/SimpleDenyList-DMlUkmAn.cjs +2 -0
- package/dist/SimpleDenyList-DMlUkmAn.cjs.map +1 -0
- package/dist/SimpleDenyList-DvUvmOeE.js +132 -0
- package/dist/SimpleDenyList-DvUvmOeE.js.map +1 -0
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.js +7 -7
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.js +2 -2
- package/dist/componentInterfaces-BPVR_Ykd.js +13 -0
- package/dist/componentInterfaces-BPVR_Ykd.js.map +1 -0
- package/dist/{componentInterfaces-CKCBwG16.cjs → componentInterfaces-BfppSIl4.cjs} +2 -2
- package/dist/componentInterfaces-BfppSIl4.cjs.map +1 -0
- package/dist/generated-CMQ6ZC2_.cjs +3 -0
- package/dist/generated-CMQ6ZC2_.cjs.map +1 -0
- package/dist/{generated-CdXG-MpB.js → generated-C_7Jx3YG.js} +1666 -890
- package/dist/generated-C_7Jx3YG.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +100 -96
- package/dist/index.js.map +1 -1
- package/package.json +11 -4
- package/src/Actions/EventAction.test.ts +138 -0
- package/src/Actions/EventAction.ts +28 -7
- package/src/AllowLists/SimpleAllowList.ts +29 -54
- package/src/AllowLists/SimpleDenyList.ts +27 -3
- package/src/Budgets/Budget.ts +1 -2
- package/src/Budgets/ManagedBudget.ts +3 -277
- package/src/Budgets/VestingBudget.ts +3 -74
- package/src/Deployable/DeployableTargetWithRBAC.ts +323 -0
- package/src/index.test.ts +3 -4
- package/src/index.ts +1 -0
- package/dist/Budgets/SimpleBudget.d.ts +0 -824
- package/dist/Budgets/SimpleBudget.d.ts.map +0 -1
- package/dist/SimpleDenyList-CzNNbmmV.cjs +0 -2
- package/dist/SimpleDenyList-CzNNbmmV.cjs.map +0 -1
- package/dist/SimpleDenyList-sfskWLfa.js +0 -115
- package/dist/SimpleDenyList-sfskWLfa.js.map +0 -1
- package/dist/componentInterfaces-CKCBwG16.cjs.map +0 -1
- package/dist/componentInterfaces-Cmg8tUxq.js +0 -13
- package/dist/componentInterfaces-Cmg8tUxq.js.map +0 -1
- package/dist/generated-BulULVyy.cjs +0 -3
- package/dist/generated-BulULVyy.cjs.map +0 -1
- package/dist/generated-CdXG-MpB.js.map +0 -1
- package/src/Budgets/SimpleBudget.test.ts +0 -152
- package/src/Budgets/SimpleBudget.ts +0 -563
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b8 as
|
|
2
|
-
import { decodeFunctionData as
|
|
3
|
-
import { getLogs as
|
|
4
|
-
import { d as
|
|
5
|
-
import { DeployableTarget as
|
|
6
|
-
import { UnparseableAbiParamError as
|
|
7
|
-
import { RegistryType as
|
|
8
|
-
const G = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660058111156105305761052f6115d7565b5b6005811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600581111561076e5761076d6115d7565b5b60058111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600581111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600581111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600681106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60068110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220c0fb13f888b0a69e33db3d7586e65062d85bac26cd33b0773ccbf5249746b2b264736f6c634300081a0033", k = {
|
|
1
|
+
import { b8 as P, b9 as G, ba as K, bb as $, bc as H } from "../generated-C_7Jx3YG.js";
|
|
2
|
+
import { decodeFunctionData as W, fromHex as I, isAddressEqual as O, encodeAbiParameters as Q } from "viem";
|
|
3
|
+
import { getLogs as q } from "viem/actions";
|
|
4
|
+
import { d as X } from "../deployments-BvFcK_eR.js";
|
|
5
|
+
import { DeployableTarget as z } from "../Deployable/DeployableTarget.js";
|
|
6
|
+
import { UnparseableAbiParamError as J, FunctionDataDecodeError as V, UnrecognizedFilterTypeError as Y, FieldValueNotComparableError as _, InvalidNumericalCriteriaError as U, DecodedArgsMalformedError as Z, FieldValueUndefinedError as L, NoEventActionStepsProvidedError as f0, TooManyEventActionStepsProvidedError as e0 } from "../errors.js";
|
|
7
|
+
import { RegistryType as t0 } from "../utils.js";
|
|
8
|
+
const b0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660058111156105305761052f6115d7565b5b6005811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600581111561076e5761076d6115d7565b5b60058111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600581111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600581111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600681106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60068110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220c0fb13f888b0a69e33db3d7586e65062d85bac26cd33b0773ccbf5249746b2b264736f6c634300081a0033", n0 = {
|
|
9
9
|
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
|
|
10
10
|
name: "Transfer",
|
|
11
11
|
type: "event",
|
|
@@ -90,6 +90,45 @@ const G = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f6
|
|
|
90
90
|
}
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
|
+
"0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0": {
|
|
94
|
+
name: "SwappedV3",
|
|
95
|
+
type: "event",
|
|
96
|
+
inputs: [
|
|
97
|
+
{
|
|
98
|
+
type: "bytes16"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
type: "address"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
type: "uint256"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
type: "address"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
type: "address",
|
|
111
|
+
indexed: !0
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
type: "address",
|
|
115
|
+
indexed: !0
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: "address",
|
|
119
|
+
indexed: !0
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: "uint256"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
type: "uint256"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
type: "uint256"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
93
132
|
"0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b": {
|
|
94
133
|
name: "InfoIndexed",
|
|
95
134
|
type: "event",
|
|
@@ -116,17 +155,18 @@ const G = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f6
|
|
|
116
155
|
}
|
|
117
156
|
]
|
|
118
157
|
}
|
|
119
|
-
},
|
|
158
|
+
}, a0 = {
|
|
120
159
|
"Transfer(address indexed,address indexed,uint256 indexed)": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
|
|
121
160
|
"Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
|
|
122
161
|
"NameRegistered(string,bytes32,address,uint256,uint256,uint256)": "0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27",
|
|
123
162
|
"DelegateChanged(address indexed,address indexed,address indexed)": "0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f",
|
|
163
|
+
"SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)": "0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0",
|
|
124
164
|
"InfoIndexed(address indexed,string indexed)": "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b",
|
|
125
165
|
"Info(address,string)": "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c"
|
|
126
|
-
},
|
|
127
|
-
abi:
|
|
128
|
-
selectors:
|
|
129
|
-
},
|
|
166
|
+
}, d0 = {
|
|
167
|
+
abi: n0,
|
|
168
|
+
selectors: a0
|
|
169
|
+
}, i0 = {
|
|
130
170
|
"0x0000000000000000000000000000000000000000000000000000000040c10f19": {
|
|
131
171
|
name: "mint",
|
|
132
172
|
type: "function",
|
|
@@ -159,6 +199,62 @@ const G = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f6
|
|
|
159
199
|
],
|
|
160
200
|
outputs: []
|
|
161
201
|
},
|
|
202
|
+
"0x0000000000000000000000000000000000000000000000000000000024856bc3": {
|
|
203
|
+
name: "execute",
|
|
204
|
+
type: "function",
|
|
205
|
+
stateMutability: "nonpayable",
|
|
206
|
+
inputs: [
|
|
207
|
+
{
|
|
208
|
+
type: "bytes",
|
|
209
|
+
name: "commands"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
type: "bytes[]",
|
|
213
|
+
name: "inputs"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
outputs: []
|
|
217
|
+
},
|
|
218
|
+
"0x0000000000000000000000000000000000000000000000000000000074694a2b": {
|
|
219
|
+
name: "register",
|
|
220
|
+
type: "function",
|
|
221
|
+
stateMutability: "nonpayable",
|
|
222
|
+
inputs: [
|
|
223
|
+
{
|
|
224
|
+
type: "string",
|
|
225
|
+
name: "name"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
type: "address",
|
|
229
|
+
name: "owner"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
type: "uint256",
|
|
233
|
+
name: "duration"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
type: "bytes32",
|
|
237
|
+
name: "secret"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
type: "address",
|
|
241
|
+
name: "resolver"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
type: "bytes[]",
|
|
245
|
+
name: "data"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
type: "bool",
|
|
249
|
+
name: "reverseRecord"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
type: "uint16",
|
|
253
|
+
name: "ownerControlledFuses"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
outputs: []
|
|
257
|
+
},
|
|
162
258
|
"0x000000000000000000000000000000000000000000000000000000006a627842": {
|
|
163
259
|
name: "mint",
|
|
164
260
|
type: "function",
|
|
@@ -170,21 +266,188 @@ const G = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f6
|
|
|
170
266
|
],
|
|
171
267
|
outputs: []
|
|
172
268
|
}
|
|
173
|
-
},
|
|
269
|
+
}, s0 = {
|
|
174
270
|
"mint(address to, uint256 amount)": "0x0000000000000000000000000000000000000000000000000000000040c10f19",
|
|
175
271
|
"mintPayable(address to, uint256 amount)": "0x0000000000000000000000000000000000000000000000000000000017d304b0",
|
|
272
|
+
"execute(bytes commands,bytes[] inputs)": "0x0000000000000000000000000000000000000000000000000000000024856bc3",
|
|
273
|
+
"register(string name,address owner,uint256 duration,bytes32 secret,address resolver,bytes[] data,bool reverseRecord,uint16 ownerControlledFuses)": "0x0000000000000000000000000000000000000000000000000000000074694a2b",
|
|
176
274
|
"mint(address)": "0x000000000000000000000000000000000000000000000000000000006a627842"
|
|
177
|
-
},
|
|
178
|
-
abi:
|
|
179
|
-
selectors:
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
275
|
+
}, r0 = {
|
|
276
|
+
abi: i0,
|
|
277
|
+
selectors: s0
|
|
278
|
+
}, h = Symbol.for("@ts-pattern/matcher"), c0 = Symbol.for("@ts-pattern/isVariadic"), C = "@ts-pattern/anonymous-select-key", R = (t) => !!(t && typeof t == "object"), S = (t) => t && !!t[h], l = (t, f, e) => {
|
|
279
|
+
if (S(t)) {
|
|
280
|
+
const b = t[h](), { matched: n, selections: a } = b.match(f);
|
|
281
|
+
return n && a && Object.keys(a).forEach((i) => e(i, a[i])), n;
|
|
282
|
+
}
|
|
283
|
+
if (R(t)) {
|
|
284
|
+
if (!R(f)) return !1;
|
|
285
|
+
if (Array.isArray(t)) {
|
|
286
|
+
if (!Array.isArray(f)) return !1;
|
|
287
|
+
let b = [], n = [], a = [];
|
|
288
|
+
for (const i of t.keys()) {
|
|
289
|
+
const r = t[i];
|
|
290
|
+
S(r) && r[c0] ? a.push(r) : a.length ? n.push(r) : b.push(r);
|
|
291
|
+
}
|
|
292
|
+
if (a.length) {
|
|
293
|
+
if (a.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
294
|
+
if (f.length < b.length + n.length) return !1;
|
|
295
|
+
const i = f.slice(0, b.length), r = n.length === 0 ? [] : f.slice(-n.length), c = f.slice(b.length, n.length === 0 ? 1 / 0 : -n.length);
|
|
296
|
+
return b.every((o, A) => l(o, i[A], e)) && n.every((o, A) => l(o, r[A], e)) && (a.length === 0 || l(a[0], c, e));
|
|
297
|
+
}
|
|
298
|
+
return t.length === f.length && t.every((i, r) => l(i, f[r], e));
|
|
299
|
+
}
|
|
300
|
+
return Reflect.ownKeys(t).every((b) => {
|
|
301
|
+
const n = t[b];
|
|
302
|
+
return (b in f || S(a = n) && a[h]().matcherType === "optional") && l(n, f[b], e);
|
|
303
|
+
var a;
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
return Object.is(f, t);
|
|
307
|
+
}, v = (t) => {
|
|
308
|
+
var f, e, b;
|
|
309
|
+
return R(t) ? S(t) ? (f = (e = (b = t[h]()).getSelectionKeys) == null ? void 0 : e.call(b)) != null ? f : [] : Array.isArray(t) ? E(t, v) : E(Object.values(t), v) : [];
|
|
310
|
+
}, E = (t, f) => t.reduce((e, b) => e.concat(f(b)), []);
|
|
311
|
+
function u(t) {
|
|
312
|
+
return Object.assign(t, { optional: () => o0(t), and: (f) => s(t, f), or: (f) => u0(t, f), select: (f) => f === void 0 ? k(t) : k(f, t) });
|
|
313
|
+
}
|
|
314
|
+
function o0(t) {
|
|
315
|
+
return u({ [h]: () => ({ match: (f) => {
|
|
316
|
+
let e = {};
|
|
317
|
+
const b = (n, a) => {
|
|
318
|
+
e[n] = a;
|
|
319
|
+
};
|
|
320
|
+
return f === void 0 ? (v(t).forEach((n) => b(n, void 0)), { matched: !0, selections: e }) : { matched: l(t, f, b), selections: e };
|
|
321
|
+
}, getSelectionKeys: () => v(t), matcherType: "optional" }) });
|
|
322
|
+
}
|
|
323
|
+
function s(...t) {
|
|
324
|
+
return u({ [h]: () => ({ match: (f) => {
|
|
325
|
+
let e = {};
|
|
326
|
+
const b = (n, a) => {
|
|
327
|
+
e[n] = a;
|
|
328
|
+
};
|
|
329
|
+
return { matched: t.every((n) => l(n, f, b)), selections: e };
|
|
330
|
+
}, getSelectionKeys: () => E(t, v), matcherType: "and" }) });
|
|
331
|
+
}
|
|
332
|
+
function u0(...t) {
|
|
333
|
+
return u({ [h]: () => ({ match: (f) => {
|
|
334
|
+
let e = {};
|
|
335
|
+
const b = (n, a) => {
|
|
336
|
+
e[n] = a;
|
|
337
|
+
};
|
|
338
|
+
return E(t, v).forEach((n) => b(n, void 0)), { matched: t.some((n) => l(n, f, b)), selections: e };
|
|
339
|
+
}, getSelectionKeys: () => E(t, v), matcherType: "or" }) });
|
|
340
|
+
}
|
|
341
|
+
function d(t) {
|
|
342
|
+
return { [h]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
|
|
343
|
+
}
|
|
344
|
+
function k(...t) {
|
|
345
|
+
const f = typeof t[0] == "string" ? t[0] : void 0, e = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
346
|
+
return u({ [h]: () => ({ match: (b) => {
|
|
347
|
+
let n = { [f ?? C]: b };
|
|
348
|
+
return { matched: e === void 0 || l(e, b, (a, i) => {
|
|
349
|
+
n[a] = i;
|
|
350
|
+
}), selections: n };
|
|
351
|
+
}, getSelectionKeys: () => [f ?? C].concat(e === void 0 ? [] : v(e)) }) });
|
|
352
|
+
}
|
|
353
|
+
function p(t) {
|
|
354
|
+
return typeof t == "number";
|
|
355
|
+
}
|
|
356
|
+
function g(t) {
|
|
357
|
+
return typeof t == "string";
|
|
184
358
|
}
|
|
185
|
-
|
|
359
|
+
function m(t) {
|
|
360
|
+
return typeof t == "bigint";
|
|
361
|
+
}
|
|
362
|
+
u(d(function(t) {
|
|
363
|
+
return !0;
|
|
364
|
+
}));
|
|
365
|
+
const w = (t) => Object.assign(u(t), { startsWith: (f) => {
|
|
366
|
+
return w(s(t, (e = f, d((b) => g(b) && b.startsWith(e)))));
|
|
367
|
+
var e;
|
|
368
|
+
}, endsWith: (f) => {
|
|
369
|
+
return w(s(t, (e = f, d((b) => g(b) && b.endsWith(e)))));
|
|
370
|
+
var e;
|
|
371
|
+
}, minLength: (f) => w(s(t, ((e) => d((b) => g(b) && b.length >= e))(f))), length: (f) => w(s(t, ((e) => d((b) => g(b) && b.length === e))(f))), maxLength: (f) => w(s(t, ((e) => d((b) => g(b) && b.length <= e))(f))), includes: (f) => {
|
|
372
|
+
return w(s(t, (e = f, d((b) => g(b) && b.includes(e)))));
|
|
373
|
+
var e;
|
|
374
|
+
}, regex: (f) => {
|
|
375
|
+
return w(s(t, (e = f, d((b) => g(b) && !!b.match(e)))));
|
|
376
|
+
var e;
|
|
377
|
+
} });
|
|
378
|
+
w(d(g));
|
|
379
|
+
const y = (t) => Object.assign(u(t), { between: (f, e) => y(s(t, ((b, n) => d((a) => p(a) && b <= a && n >= a))(f, e))), lt: (f) => y(s(t, ((e) => d((b) => p(b) && b < e))(f))), gt: (f) => y(s(t, ((e) => d((b) => p(b) && b > e))(f))), lte: (f) => y(s(t, ((e) => d((b) => p(b) && b <= e))(f))), gte: (f) => y(s(t, ((e) => d((b) => p(b) && b >= e))(f))), int: () => y(s(t, d((f) => p(f) && Number.isInteger(f)))), finite: () => y(s(t, d((f) => p(f) && Number.isFinite(f)))), positive: () => y(s(t, d((f) => p(f) && f > 0))), negative: () => y(s(t, d((f) => p(f) && f < 0))) });
|
|
380
|
+
y(d(p));
|
|
381
|
+
const x = (t) => Object.assign(u(t), { between: (f, e) => x(s(t, ((b, n) => d((a) => m(a) && b <= a && n >= a))(f, e))), lt: (f) => x(s(t, ((e) => d((b) => m(b) && b < e))(f))), gt: (f) => x(s(t, ((e) => d((b) => m(b) && b > e))(f))), lte: (f) => x(s(t, ((e) => d((b) => m(b) && b <= e))(f))), gte: (f) => x(s(t, ((e) => d((b) => m(b) && b >= e))(f))), positive: () => x(s(t, d((f) => m(f) && f > 0))), negative: () => x(s(t, d((f) => m(f) && f < 0))) });
|
|
382
|
+
x(d(m));
|
|
383
|
+
u(d(function(t) {
|
|
384
|
+
return typeof t == "boolean";
|
|
385
|
+
}));
|
|
386
|
+
u(d(function(t) {
|
|
387
|
+
return typeof t == "symbol";
|
|
388
|
+
}));
|
|
389
|
+
u(d(function(t) {
|
|
390
|
+
return t == null;
|
|
391
|
+
}));
|
|
392
|
+
u(d(function(t) {
|
|
393
|
+
return t != null;
|
|
394
|
+
}));
|
|
395
|
+
class p0 extends Error {
|
|
396
|
+
constructor(f) {
|
|
397
|
+
let e;
|
|
398
|
+
try {
|
|
399
|
+
e = JSON.stringify(f);
|
|
400
|
+
} catch {
|
|
401
|
+
e = f;
|
|
402
|
+
}
|
|
403
|
+
super(`Pattern matching error: no pattern matches value ${e}`), this.input = void 0, this.input = f;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
const B = { matched: !1, value: void 0 };
|
|
407
|
+
function F(t) {
|
|
408
|
+
return new N(t, B);
|
|
409
|
+
}
|
|
410
|
+
class N {
|
|
411
|
+
constructor(f, e) {
|
|
412
|
+
this.input = void 0, this.state = void 0, this.input = f, this.state = e;
|
|
413
|
+
}
|
|
414
|
+
with(...f) {
|
|
415
|
+
if (this.state.matched) return this;
|
|
416
|
+
const e = f[f.length - 1], b = [f[0]];
|
|
417
|
+
let n;
|
|
418
|
+
f.length === 3 && typeof f[1] == "function" ? n = f[1] : f.length > 2 && b.push(...f.slice(1, f.length - 1));
|
|
419
|
+
let a = !1, i = {};
|
|
420
|
+
const r = (o, A) => {
|
|
421
|
+
a = !0, i[o] = A;
|
|
422
|
+
}, c = !b.some((o) => l(o, this.input, r)) || n && !n(this.input) ? B : { matched: !0, value: e(a ? C in i ? i[C] : i : this.input, this.input) };
|
|
423
|
+
return new N(this.input, c);
|
|
424
|
+
}
|
|
425
|
+
when(f, e) {
|
|
426
|
+
if (this.state.matched) return this;
|
|
427
|
+
const b = !!f(this.input);
|
|
428
|
+
return new N(this.input, b ? { matched: !0, value: e(this.input, this.input) } : B);
|
|
429
|
+
}
|
|
430
|
+
otherwise(f) {
|
|
431
|
+
return this.state.matched ? this.state.value : f(this.input);
|
|
432
|
+
}
|
|
433
|
+
exhaustive() {
|
|
434
|
+
if (this.state.matched) return this.state.value;
|
|
435
|
+
throw new p0(this.input);
|
|
436
|
+
}
|
|
437
|
+
run() {
|
|
438
|
+
return this.exhaustive();
|
|
439
|
+
}
|
|
440
|
+
returnType() {
|
|
441
|
+
return this;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
var y0 = /* @__PURE__ */ ((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))(y0 || {}), l0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t))(l0 || {}), h0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(h0 || {});
|
|
445
|
+
function g0(t) {
|
|
446
|
+
return Array.isArray(t.actionSteps);
|
|
447
|
+
}
|
|
448
|
+
const D = class D extends z {
|
|
186
449
|
constructor() {
|
|
187
|
-
super(...arguments), this.abi =
|
|
450
|
+
super(...arguments), this.abi = P;
|
|
188
451
|
}
|
|
189
452
|
/**
|
|
190
453
|
* Gets a specific action event by index
|
|
@@ -207,13 +470,13 @@ const o = class o extends D {
|
|
|
207
470
|
* @returns {Promise<ActionStep[]>}
|
|
208
471
|
*/
|
|
209
472
|
async getActionSteps(f) {
|
|
210
|
-
const e = await
|
|
473
|
+
const e = await G(this._config, {
|
|
211
474
|
address: this.assertValidAddress(),
|
|
212
475
|
...this.optionallyAttachAccount(),
|
|
213
476
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
214
477
|
...f
|
|
215
478
|
});
|
|
216
|
-
return
|
|
479
|
+
return m0(e.map(j));
|
|
217
480
|
}
|
|
218
481
|
/**
|
|
219
482
|
* Gets the count of action events
|
|
@@ -235,12 +498,12 @@ const o = class o extends D {
|
|
|
235
498
|
* @returns {Promise<ActionClaimant>}
|
|
236
499
|
*/
|
|
237
500
|
async getActionClaimant(f) {
|
|
238
|
-
const e = await
|
|
501
|
+
const e = await K(this._config, {
|
|
239
502
|
address: this.assertValidAddress(),
|
|
240
503
|
...this.optionallyAttachAccount(),
|
|
241
504
|
...f
|
|
242
505
|
});
|
|
243
|
-
return
|
|
506
|
+
return j(e);
|
|
244
507
|
}
|
|
245
508
|
/**
|
|
246
509
|
* Executes a prepared event action
|
|
@@ -264,14 +527,14 @@ const o = class o extends D {
|
|
|
264
527
|
* @returns {unknown}
|
|
265
528
|
*/
|
|
266
529
|
async executeRaw(f, e) {
|
|
267
|
-
const { request:
|
|
530
|
+
const { request: b, result: n } = await $(this._config, {
|
|
268
531
|
address: this.assertValidAddress(),
|
|
269
532
|
...this.optionallyAttachAccount(),
|
|
270
533
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
271
534
|
...e,
|
|
272
535
|
args: [f]
|
|
273
536
|
});
|
|
274
|
-
return { hash: await
|
|
537
|
+
return { hash: await H(this._config, b), result: n };
|
|
275
538
|
}
|
|
276
539
|
/**
|
|
277
540
|
* Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
|
|
@@ -284,8 +547,8 @@ const o = class o extends D {
|
|
|
284
547
|
*/
|
|
285
548
|
async validateActionSteps(f) {
|
|
286
549
|
const e = await this.getActionSteps();
|
|
287
|
-
for (const
|
|
288
|
-
if (!await this.isActionStepValid(
|
|
550
|
+
for (const b of e)
|
|
551
|
+
if (!await this.isActionStepValid(b, f))
|
|
289
552
|
return !1;
|
|
290
553
|
return !0;
|
|
291
554
|
}
|
|
@@ -317,24 +580,24 @@ const o = class o extends D {
|
|
|
317
580
|
* @returns {Promise<boolean>} Resolves to true if the action event is valid, throws if input is invalid, otherwise false.
|
|
318
581
|
*/
|
|
319
582
|
async isActionEventValid(f, e) {
|
|
320
|
-
const
|
|
321
|
-
let
|
|
322
|
-
if (e != null && e.knownEvents ?
|
|
323
|
-
throw new Error(`No known ABI for given event signature: ${
|
|
324
|
-
if (this.isArraylikeIndexed(f,
|
|
325
|
-
throw new
|
|
583
|
+
const b = f.actionParameter, n = f.signature;
|
|
584
|
+
let a;
|
|
585
|
+
if (e != null && e.knownEvents ? a = e.knownEvents[n] : a = d0.abi[n], !a)
|
|
586
|
+
throw new Error(`No known ABI for given event signature: ${n}`);
|
|
587
|
+
if (this.isArraylikeIndexed(f, a))
|
|
588
|
+
throw new J(
|
|
326
589
|
f.actionParameter.fieldIndex,
|
|
327
|
-
|
|
590
|
+
a
|
|
328
591
|
);
|
|
329
|
-
const i = f.targetContract,
|
|
592
|
+
const i = f.targetContract, r = (e == null ? void 0 : e.logs) || await q(this._config.getClient({ chainId: e == null ? void 0 : e.chainId }), {
|
|
330
593
|
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
331
594
|
...e,
|
|
332
595
|
address: i,
|
|
333
|
-
event:
|
|
596
|
+
event: a
|
|
334
597
|
});
|
|
335
|
-
if (!
|
|
336
|
-
for (let c of
|
|
337
|
-
if (!this.validateLogAgainstCriteria(
|
|
598
|
+
if (!r.length) return !1;
|
|
599
|
+
for (let c of r)
|
|
600
|
+
if (!this.validateLogAgainstCriteria(b, c))
|
|
338
601
|
return !1;
|
|
339
602
|
return !0;
|
|
340
603
|
}
|
|
@@ -350,30 +613,30 @@ const o = class o extends D {
|
|
|
350
613
|
* @returns {Promise<boolean>} Resolves to true if the action function is valid, throws if the inputs are invalid, otherwise false.
|
|
351
614
|
*/
|
|
352
615
|
async isActionFunctionValid(f, e) {
|
|
353
|
-
const
|
|
354
|
-
let
|
|
616
|
+
const b = f.actionParameter;
|
|
617
|
+
let n = f.signature;
|
|
355
618
|
if (!e || !(e != null && e.hash))
|
|
356
619
|
throw new Error("Hash is required for function validation");
|
|
357
620
|
const i = await this._config.getClient({
|
|
358
621
|
chainId: e == null ? void 0 : e.chainId
|
|
359
|
-
}).getTransaction({ hash: e.hash }),
|
|
360
|
-
if (!
|
|
622
|
+
}).getTransaction({ hash: e.hash }), r = r0.abi[n];
|
|
623
|
+
if (!r)
|
|
361
624
|
throw new Error(
|
|
362
|
-
`No known ABI for given function signature: ${
|
|
625
|
+
`No known ABI for given function signature: ${n}`
|
|
363
626
|
);
|
|
364
627
|
let c;
|
|
365
628
|
try {
|
|
366
|
-
c =
|
|
367
|
-
abi: [
|
|
629
|
+
c = W({
|
|
630
|
+
abi: [r],
|
|
368
631
|
data: i.input
|
|
369
632
|
});
|
|
370
633
|
} catch (A) {
|
|
371
|
-
throw new
|
|
634
|
+
throw new V([r], A);
|
|
372
635
|
}
|
|
373
|
-
const
|
|
374
|
-
return !(!
|
|
375
|
-
|
|
376
|
-
|
|
636
|
+
const o = c.args;
|
|
637
|
+
return !(!o || !c || !this.validateFunctionAgainstCriteria(
|
|
638
|
+
b,
|
|
639
|
+
o
|
|
377
640
|
));
|
|
378
641
|
}
|
|
379
642
|
/**
|
|
@@ -383,52 +646,70 @@ const o = class o extends D {
|
|
|
383
646
|
* @param {string | bigint} fieldValue - The field value to validate.
|
|
384
647
|
* @returns {Promise<boolean>} - Returns true if the field passes the criteria, false otherwise.
|
|
385
648
|
*/
|
|
386
|
-
validateFieldAgainstCriteria(f, e,
|
|
649
|
+
validateFieldAgainstCriteria(f, e, b) {
|
|
387
650
|
switch (f.filterType) {
|
|
388
651
|
case 0:
|
|
389
|
-
return f.fieldType
|
|
652
|
+
return F(f.fieldType).with(
|
|
653
|
+
1,
|
|
654
|
+
() => O(f.filterData, e)
|
|
655
|
+
).with(
|
|
656
|
+
0,
|
|
657
|
+
() => BigInt(e) === BigInt(f.filterData)
|
|
658
|
+
).with(
|
|
659
|
+
3,
|
|
660
|
+
() => e === I(f.filterData, "string")
|
|
661
|
+
).otherwise(() => e === f.filterData);
|
|
390
662
|
case 1:
|
|
391
|
-
return
|
|
663
|
+
return F(f.fieldType).with(
|
|
664
|
+
1,
|
|
665
|
+
() => !O(f.filterData, e)
|
|
666
|
+
).with(
|
|
667
|
+
0,
|
|
668
|
+
() => BigInt(e) !== BigInt(f.filterData)
|
|
669
|
+
).with(
|
|
670
|
+
3,
|
|
671
|
+
() => e !== I(f.filterData, "string")
|
|
672
|
+
).otherwise(() => e !== f.filterData);
|
|
392
673
|
case 2:
|
|
393
674
|
if (f.fieldType === 0)
|
|
394
675
|
return BigInt(e) > BigInt(f.filterData);
|
|
395
|
-
throw new
|
|
396
|
-
...
|
|
676
|
+
throw new U({
|
|
677
|
+
...b,
|
|
397
678
|
criteria: f,
|
|
398
679
|
fieldValue: e
|
|
399
680
|
});
|
|
400
681
|
case 3:
|
|
401
682
|
if (f.fieldType === 0)
|
|
402
683
|
return BigInt(e) < BigInt(f.filterData);
|
|
403
|
-
throw new
|
|
404
|
-
...
|
|
684
|
+
throw new U({
|
|
685
|
+
...b,
|
|
405
686
|
criteria: f,
|
|
406
687
|
fieldValue: e
|
|
407
688
|
});
|
|
408
689
|
case 4:
|
|
409
690
|
if (f.fieldType === 2 || f.fieldType === 3) {
|
|
410
|
-
let
|
|
411
|
-
return f.fieldType === 3 ?
|
|
691
|
+
let n;
|
|
692
|
+
return f.fieldType === 3 ? n = I(f.filterData, "string") : n = f.filterData.slice(2), e.includes(n);
|
|
412
693
|
}
|
|
413
|
-
throw new
|
|
414
|
-
...
|
|
694
|
+
throw new _({
|
|
695
|
+
...b,
|
|
415
696
|
criteria: f,
|
|
416
697
|
fieldValue: e
|
|
417
698
|
});
|
|
418
699
|
case 5:
|
|
419
700
|
if (typeof e != "string")
|
|
420
|
-
throw new
|
|
421
|
-
...
|
|
701
|
+
throw new _({
|
|
702
|
+
...b,
|
|
422
703
|
criteria: f,
|
|
423
704
|
fieldValue: e
|
|
424
705
|
});
|
|
425
706
|
if (f.fieldType === 3) {
|
|
426
|
-
const
|
|
427
|
-
return new RegExp(
|
|
707
|
+
const n = I(f.filterData, "string");
|
|
708
|
+
return new RegExp(n).test(e);
|
|
428
709
|
}
|
|
429
710
|
default:
|
|
430
|
-
throw new
|
|
431
|
-
...
|
|
711
|
+
throw new Y({
|
|
712
|
+
...b,
|
|
432
713
|
criteria: f,
|
|
433
714
|
fieldValue: e
|
|
434
715
|
});
|
|
@@ -443,15 +724,15 @@ const o = class o extends D {
|
|
|
443
724
|
*/
|
|
444
725
|
validateLogAgainstCriteria(f, e) {
|
|
445
726
|
if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex)
|
|
446
|
-
throw new
|
|
727
|
+
throw new Z({
|
|
447
728
|
log: e,
|
|
448
729
|
criteria: f,
|
|
449
730
|
fieldValue: void 0
|
|
450
731
|
});
|
|
451
|
-
const
|
|
452
|
-
if (
|
|
453
|
-
throw new
|
|
454
|
-
return this.validateFieldAgainstCriteria(f,
|
|
732
|
+
const b = e.args.at(f.fieldIndex);
|
|
733
|
+
if (b === void 0)
|
|
734
|
+
throw new L({ log: e, criteria: f, fieldValue: b });
|
|
735
|
+
return this.validateFieldAgainstCriteria(f, b, { log: e });
|
|
455
736
|
}
|
|
456
737
|
/**
|
|
457
738
|
* Validates a function's decoded arguments against a given criteria.
|
|
@@ -461,13 +742,13 @@ const o = class o extends D {
|
|
|
461
742
|
* @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
|
|
462
743
|
*/
|
|
463
744
|
validateFunctionAgainstCriteria(f, e) {
|
|
464
|
-
const
|
|
465
|
-
if (
|
|
466
|
-
throw new
|
|
745
|
+
const b = e[f.fieldIndex];
|
|
746
|
+
if (b === void 0)
|
|
747
|
+
throw new L({
|
|
467
748
|
criteria: f,
|
|
468
|
-
fieldValue:
|
|
749
|
+
fieldValue: b
|
|
469
750
|
});
|
|
470
|
-
return this.validateFieldAgainstCriteria(f,
|
|
751
|
+
return this.validateFieldAgainstCriteria(f, b, {
|
|
471
752
|
decodedArgs: e
|
|
472
753
|
});
|
|
473
754
|
}
|
|
@@ -480,73 +761,73 @@ const o = class o extends D {
|
|
|
480
761
|
* @returns {GenericDeployableParams}
|
|
481
762
|
*/
|
|
482
763
|
buildParameters(f, e) {
|
|
483
|
-
const [
|
|
764
|
+
const [b, n] = this.validateDeploymentConfig(
|
|
484
765
|
f,
|
|
485
766
|
e
|
|
486
767
|
);
|
|
487
|
-
let
|
|
488
|
-
if (
|
|
489
|
-
let i =
|
|
768
|
+
let a;
|
|
769
|
+
if (g0(b)) {
|
|
770
|
+
let i = b.actionSteps.filter((c) => !!c);
|
|
490
771
|
if (i.length === 0)
|
|
491
|
-
throw new
|
|
772
|
+
throw new f0();
|
|
492
773
|
if (i.length > 4)
|
|
493
|
-
throw new
|
|
494
|
-
let
|
|
495
|
-
|
|
496
|
-
actionClaimant:
|
|
497
|
-
actionStepOne:
|
|
498
|
-
actionStepTwo:
|
|
499
|
-
actionStepThree:
|
|
500
|
-
actionStepFour:
|
|
774
|
+
throw new e0();
|
|
775
|
+
let r = Array.from({ length: 4 }, (c, o) => i.at(o) || i.at(-1));
|
|
776
|
+
a = {
|
|
777
|
+
actionClaimant: b.actionClaimant,
|
|
778
|
+
actionStepOne: r[0],
|
|
779
|
+
actionStepTwo: r[1],
|
|
780
|
+
actionStepThree: r[2],
|
|
781
|
+
actionStepFour: r[3]
|
|
501
782
|
};
|
|
502
783
|
} else
|
|
503
|
-
|
|
784
|
+
a = b;
|
|
504
785
|
return {
|
|
505
|
-
abi:
|
|
506
|
-
bytecode:
|
|
507
|
-
args: [
|
|
508
|
-
...this.optionallyAttachAccount(
|
|
786
|
+
abi: P,
|
|
787
|
+
bytecode: b0,
|
|
788
|
+
args: [w0(a)],
|
|
789
|
+
...this.optionallyAttachAccount(n.account)
|
|
509
790
|
};
|
|
510
791
|
}
|
|
511
792
|
isArraylikeIndexed(f, e) {
|
|
512
|
-
var
|
|
513
|
-
return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((
|
|
793
|
+
var b;
|
|
794
|
+
return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((b = e.inputs[f.actionParameter.fieldIndex]) != null && b.indexed));
|
|
514
795
|
}
|
|
515
796
|
};
|
|
516
|
-
|
|
517
|
-
...
|
|
518
|
-
},
|
|
519
|
-
let
|
|
520
|
-
function
|
|
797
|
+
D.bases = {
|
|
798
|
+
...X
|
|
799
|
+
}, D.registryType = t0.ACTION;
|
|
800
|
+
let M = D;
|
|
801
|
+
function m0(t) {
|
|
521
802
|
const f = [], e = {};
|
|
522
|
-
for (let
|
|
523
|
-
const
|
|
524
|
-
e[
|
|
803
|
+
for (let b of t) {
|
|
804
|
+
const n = JSON.stringify(b);
|
|
805
|
+
e[n] || (f.push(b), e[n] = !0);
|
|
525
806
|
}
|
|
526
807
|
return f;
|
|
527
808
|
}
|
|
528
|
-
function
|
|
809
|
+
function T(t) {
|
|
529
810
|
return {
|
|
530
|
-
...
|
|
531
|
-
chainid: BigInt(
|
|
811
|
+
...t,
|
|
812
|
+
chainid: BigInt(t.chainid)
|
|
532
813
|
};
|
|
533
814
|
}
|
|
534
|
-
function
|
|
535
|
-
if (
|
|
815
|
+
function j(t) {
|
|
816
|
+
if (t.chainid > BigInt(Number.MAX_SAFE_INTEGER))
|
|
536
817
|
throw new Error("Chain ID exceeds max safe integer");
|
|
537
818
|
return {
|
|
538
|
-
...
|
|
539
|
-
chainid: Number(
|
|
819
|
+
...t,
|
|
820
|
+
chainid: Number(t.chainid)
|
|
540
821
|
};
|
|
541
822
|
}
|
|
542
|
-
function
|
|
543
|
-
actionClaimant:
|
|
823
|
+
function w0({
|
|
824
|
+
actionClaimant: t,
|
|
544
825
|
actionStepOne: f,
|
|
545
826
|
actionStepTwo: e,
|
|
546
|
-
actionStepThree:
|
|
547
|
-
actionStepFour:
|
|
827
|
+
actionStepThree: b,
|
|
828
|
+
actionStepFour: n
|
|
548
829
|
}) {
|
|
549
|
-
return
|
|
830
|
+
return Q(
|
|
550
831
|
[
|
|
551
832
|
{
|
|
552
833
|
type: "tuple",
|
|
@@ -652,33 +933,33 @@ function J({
|
|
|
652
933
|
],
|
|
653
934
|
[
|
|
654
935
|
{
|
|
655
|
-
actionClaimant:
|
|
936
|
+
actionClaimant: T(t),
|
|
656
937
|
actionStepOne: {
|
|
657
|
-
...
|
|
938
|
+
...T(f),
|
|
658
939
|
actionType: f.actionType || 0
|
|
659
940
|
},
|
|
660
941
|
actionStepTwo: {
|
|
661
|
-
...
|
|
942
|
+
...T(e),
|
|
662
943
|
actionType: e.actionType || 0
|
|
663
944
|
},
|
|
664
945
|
actionStepThree: {
|
|
665
|
-
...
|
|
666
|
-
actionType:
|
|
946
|
+
...T(b),
|
|
947
|
+
actionType: b.actionType || 0
|
|
667
948
|
},
|
|
668
949
|
actionStepFour: {
|
|
669
|
-
...
|
|
670
|
-
actionType:
|
|
950
|
+
...T(n),
|
|
951
|
+
actionType: n.actionType || 0
|
|
671
952
|
}
|
|
672
953
|
}
|
|
673
954
|
]
|
|
674
955
|
);
|
|
675
956
|
}
|
|
676
957
|
export {
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
958
|
+
M as EventAction,
|
|
959
|
+
y0 as FilterType,
|
|
960
|
+
l0 as PrimitiveType,
|
|
961
|
+
h0 as SignatureType,
|
|
962
|
+
g0 as isEventActionPayloadSimple,
|
|
963
|
+
w0 as prepareEventActionPayload
|
|
683
964
|
};
|
|
684
965
|
//# sourceMappingURL=EventAction.js.map
|