@boostxyz/sdk 0.0.0-alpha.19 → 0.0.0-alpha.20

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.
@@ -1,10 +1,11 @@
1
- import { b8 as M, b9 as K, ba as H, bb as W, bc as $ } from "./generated-B7VaSah4.js";
2
- import { decodeEventLog as Q, decodeFunctionData as X, fromHex as I, isAddressEqual as B, encodeAbiParameters as q } from "viem";
3
- import { d as z } from "./deployments-BM42vImE.js";
4
- import { DeployableTarget as J } from "./Deployable/DeployableTarget.js";
5
- import { ValidationAbiMissingError as F, UnparseableAbiParamError as Y, ValidationLogsMissingError as Z, FunctionDataDecodeError as f0, UnrecognizedFilterTypeError as e0, FieldValueNotComparableError as O, InvalidNumericalCriteriaError as V, DecodedArgsMalformedError as t0, FieldValueUndefinedError as _, NoEventActionStepsProvidedError as n0, TooManyEventActionStepsProvidedError as a0 } from "./errors.js";
6
- import { RegistryType as b0 } from "./utils.js";
7
- const d0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660058111156105305761052f6115d7565b5b6005811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600581111561076e5761076d6115d7565b5b60058111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600581111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600581111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600681106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60068110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220c0fb13f888b0a69e33db3d7586e65062d85bac26cd33b0773ccbf5249746b2b264736f6c634300081a0033", s0 = {
1
+ import { b8 as _, b9 as q, ba as z, bb as J, bc as Y } from "./generated-B7VaSah4.js";
2
+ import { getTransactionReceipt as Z, getTransaction as f0 } from "@wagmi/core";
3
+ import { isAddressEqual as I, decodeEventLog as V, decodeFunctionData as L, isAddress as e0, fromHex as E, encodeAbiParameters as t0 } from "viem";
4
+ import { d as n0 } from "./deployments-BM42vImE.js";
5
+ import { DeployableTarget as a0 } from "./Deployable/DeployableTarget.js";
6
+ import { ValidationAbiMissingError as N, FunctionDataDecodeError as U, UnparseableAbiParamError as b0, UnrecognizedFilterTypeError as d0, FieldValueNotComparableError as F, InvalidNumericalCriteriaError as G, DecodedArgsMalformedError as i0, FieldValueUndefinedError as j, NoEventActionStepsProvidedError as s0, TooManyEventActionStepsProvidedError as r0 } from "./errors.js";
7
+ import { RegistryType as c0 } from "./utils.js";
8
+ const o0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660058111156105305761052f6115d7565b5b6005811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600581111561076e5761076d6115d7565b5b60058111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600581111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600581111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600681106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60068110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220c0fb13f888b0a69e33db3d7586e65062d85bac26cd33b0773ccbf5249746b2b264736f6c634300081a0033", u0 = {
8
9
  "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
9
10
  name: "Transfer",
10
11
  type: "event",
@@ -347,7 +348,7 @@ const d0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f
347
348
  }
348
349
  ]
349
350
  }
350
- }, i0 = {
351
+ }, p0 = {
351
352
  "Transfer(address indexed,address indexed,uint256 indexed)": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
352
353
  "Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
353
354
  "NameRegistered(string,bytes32,address,uint256,uint256,uint256)": "0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27",
@@ -356,10 +357,10 @@ const d0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f
356
357
  "VoteCast(address indexed,uint256,uint8,uint256,string)": "0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4",
357
358
  "InfoIndexed(address indexed,string indexed)": "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b",
358
359
  "Info(address,string)": "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c"
359
- }, r0 = {
360
- abi: s0,
361
- selectors: i0
362
- }, c0 = {
360
+ }, K = {
361
+ abi: u0,
362
+ selectors: p0
363
+ }, y0 = {
363
364
  "0x0000000000000000000000000000000000000000000000000000000040c10f19": {
364
365
  name: "mint",
365
366
  type: "function",
@@ -632,7 +633,7 @@ const d0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f
632
633
  ],
633
634
  outputs: []
634
635
  }
635
- }, o0 = {
636
+ }, l0 = {
636
637
  "mint(address to, uint256 amount)": "0x0000000000000000000000000000000000000000000000000000000040c10f19",
637
638
  "mintPayable(address to, uint256 amount)": "0x0000000000000000000000000000000000000000000000000000000017d304b0",
638
639
  "execute(bytes commands,bytes[] inputs)": "0x0000000000000000000000000000000000000000000000000000000024856bc3",
@@ -640,127 +641,127 @@ const d0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f
640
641
  "getVotes(address account, uint256 blockNumber) view returns (uint256)": "0x00000000000000000000000000000000000000000000000000000000eb9019d4",
641
642
  "transferFrom(address,address,uint256)": "0x0000000000000000000000000000000000000000000000000000000023b872dd",
642
643
  "mint(address)": "0x000000000000000000000000000000000000000000000000000000006a627842"
643
- }, u0 = {
644
- abi: c0,
645
- selectors: o0
646
- }, m = Symbol.for("@ts-pattern/matcher"), p0 = Symbol.for("@ts-pattern/isVariadic"), C = "@ts-pattern/anonymous-select-key", R = (t) => !!(t && typeof t == "object"), S = (t) => t && !!t[m], l = (t, f, e) => {
647
- if (S(t)) {
648
- const n = t[m](), { matched: a, selections: b } = n.match(f);
649
- return a && b && Object.keys(b).forEach((s) => e(s, b[s])), a;
650
- }
644
+ }, H = {
645
+ abi: y0,
646
+ selectors: l0
647
+ }, g = Symbol.for("@ts-pattern/matcher"), h0 = Symbol.for("@ts-pattern/isVariadic"), P = "@ts-pattern/anonymous-select-key", k = (t) => !!(t && typeof t == "object"), R = (t) => t && !!t[g], h = (t, f, e) => {
651
648
  if (R(t)) {
652
- if (!R(f)) return !1;
649
+ const n = t[g](), { matched: a, selections: b } = n.match(f);
650
+ return a && b && Object.keys(b).forEach((d) => e(d, b[d])), a;
651
+ }
652
+ if (k(t)) {
653
+ if (!k(f)) return !1;
653
654
  if (Array.isArray(t)) {
654
655
  if (!Array.isArray(f)) return !1;
655
656
  let n = [], a = [], b = [];
656
- for (const s of t.keys()) {
657
- const r = t[s];
658
- S(r) && r[p0] ? b.push(r) : b.length ? a.push(r) : n.push(r);
657
+ for (const d of t.keys()) {
658
+ const i = t[d];
659
+ R(i) && i[h0] ? b.push(i) : b.length ? a.push(i) : n.push(i);
659
660
  }
660
661
  if (b.length) {
661
662
  if (b.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
662
663
  if (f.length < n.length + a.length) return !1;
663
- const s = f.slice(0, n.length), r = a.length === 0 ? [] : f.slice(-a.length), u = f.slice(n.length, a.length === 0 ? 1 / 0 : -a.length);
664
- return n.every((c, A) => l(c, s[A], e)) && a.every((c, A) => l(c, r[A], e)) && (b.length === 0 || l(b[0], u, e));
664
+ const d = f.slice(0, n.length), i = a.length === 0 ? [] : f.slice(-a.length), u = f.slice(n.length, a.length === 0 ? 1 / 0 : -a.length);
665
+ return n.every((c, o) => h(c, d[o], e)) && a.every((c, o) => h(c, i[o], e)) && (b.length === 0 || h(b[0], u, e));
665
666
  }
666
- return t.length === f.length && t.every((s, r) => l(s, f[r], e));
667
+ return t.length === f.length && t.every((d, i) => h(d, f[i], e));
667
668
  }
668
669
  return Reflect.ownKeys(t).every((n) => {
669
670
  const a = t[n];
670
- return (n in f || S(b = a) && b[m]().matcherType === "optional") && l(a, f[n], e);
671
+ return (n in f || R(b = a) && b[g]().matcherType === "optional") && h(a, f[n], e);
671
672
  var b;
672
673
  });
673
674
  }
674
675
  return Object.is(f, t);
675
- }, v = (t) => {
676
+ }, T = (t) => {
676
677
  var f, e, n;
677
- return R(t) ? S(t) ? (f = (e = (n = t[m]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? E(t, v) : E(Object.values(t), v) : [];
678
- }, E = (t, f) => t.reduce((e, n) => e.concat(f(n)), []);
679
- function o(t) {
680
- return Object.assign(t, { optional: () => y0(t), and: (f) => i(t, f), or: (f) => l0(t, f), select: (f) => f === void 0 ? L(t) : L(f, t) });
678
+ return k(t) ? R(t) ? (f = (e = (n = t[g]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? C(t, T) : C(Object.values(t), T) : [];
679
+ }, C = (t, f) => t.reduce((e, n) => e.concat(f(n)), []);
680
+ function p(t) {
681
+ return Object.assign(t, { optional: () => m0(t), and: (f) => r(t, f), or: (f) => g0(t, f), select: (f) => f === void 0 ? O(t) : O(f, t) });
681
682
  }
682
- function y0(t) {
683
- return o({ [m]: () => ({ match: (f) => {
683
+ function m0(t) {
684
+ return p({ [g]: () => ({ match: (f) => {
684
685
  let e = {};
685
686
  const n = (a, b) => {
686
687
  e[a] = b;
687
688
  };
688
- return f === void 0 ? (v(t).forEach((a) => n(a, void 0)), { matched: !0, selections: e }) : { matched: l(t, f, n), selections: e };
689
- }, getSelectionKeys: () => v(t), matcherType: "optional" }) });
689
+ return f === void 0 ? (T(t).forEach((a) => n(a, void 0)), { matched: !0, selections: e }) : { matched: h(t, f, n), selections: e };
690
+ }, getSelectionKeys: () => T(t), matcherType: "optional" }) });
690
691
  }
691
- function i(...t) {
692
- return o({ [m]: () => ({ match: (f) => {
692
+ function r(...t) {
693
+ return p({ [g]: () => ({ match: (f) => {
693
694
  let e = {};
694
695
  const n = (a, b) => {
695
696
  e[a] = b;
696
697
  };
697
- return { matched: t.every((a) => l(a, f, n)), selections: e };
698
- }, getSelectionKeys: () => E(t, v), matcherType: "and" }) });
698
+ return { matched: t.every((a) => h(a, f, n)), selections: e };
699
+ }, getSelectionKeys: () => C(t, T), matcherType: "and" }) });
699
700
  }
700
- function l0(...t) {
701
- return o({ [m]: () => ({ match: (f) => {
701
+ function g0(...t) {
702
+ return p({ [g]: () => ({ match: (f) => {
702
703
  let e = {};
703
704
  const n = (a, b) => {
704
705
  e[a] = b;
705
706
  };
706
- return E(t, v).forEach((a) => n(a, void 0)), { matched: t.some((a) => l(a, f, n)), selections: e };
707
- }, getSelectionKeys: () => E(t, v), matcherType: "or" }) });
707
+ return C(t, T).forEach((a) => n(a, void 0)), { matched: t.some((a) => h(a, f, n)), selections: e };
708
+ }, getSelectionKeys: () => C(t, T), matcherType: "or" }) });
708
709
  }
709
- function d(t) {
710
- return { [m]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
710
+ function s(t) {
711
+ return { [g]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
711
712
  }
712
- function L(...t) {
713
+ function O(...t) {
713
714
  const f = typeof t[0] == "string" ? t[0] : void 0, e = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
714
- return o({ [m]: () => ({ match: (n) => {
715
- let a = { [f ?? C]: n };
716
- return { matched: e === void 0 || l(e, n, (b, s) => {
717
- a[b] = s;
715
+ return p({ [g]: () => ({ match: (n) => {
716
+ let a = { [f ?? P]: n };
717
+ return { matched: e === void 0 || h(e, n, (b, d) => {
718
+ a[b] = d;
718
719
  }), selections: a };
719
- }, getSelectionKeys: () => [f ?? C].concat(e === void 0 ? [] : v(e)) }) });
720
+ }, getSelectionKeys: () => [f ?? P].concat(e === void 0 ? [] : T(e)) }) });
720
721
  }
721
- function p(t) {
722
+ function y(t) {
722
723
  return typeof t == "number";
723
724
  }
724
- function h(t) {
725
+ function x(t) {
725
726
  return typeof t == "string";
726
727
  }
727
- function g(t) {
728
+ function w(t) {
728
729
  return typeof t == "bigint";
729
730
  }
730
- o(d(function(t) {
731
+ p(s(function(t) {
731
732
  return !0;
732
733
  }));
733
- const x = (t) => Object.assign(o(t), { startsWith: (f) => {
734
- return x(i(t, (e = f, d((n) => h(n) && n.startsWith(e)))));
734
+ const v = (t) => Object.assign(p(t), { startsWith: (f) => {
735
+ return v(r(t, (e = f, s((n) => x(n) && n.startsWith(e)))));
735
736
  var e;
736
737
  }, endsWith: (f) => {
737
- return x(i(t, (e = f, d((n) => h(n) && n.endsWith(e)))));
738
+ return v(r(t, (e = f, s((n) => x(n) && n.endsWith(e)))));
738
739
  var e;
739
- }, minLength: (f) => x(i(t, ((e) => d((n) => h(n) && n.length >= e))(f))), length: (f) => x(i(t, ((e) => d((n) => h(n) && n.length === e))(f))), maxLength: (f) => x(i(t, ((e) => d((n) => h(n) && n.length <= e))(f))), includes: (f) => {
740
- return x(i(t, (e = f, d((n) => h(n) && n.includes(e)))));
740
+ }, minLength: (f) => v(r(t, ((e) => s((n) => x(n) && n.length >= e))(f))), length: (f) => v(r(t, ((e) => s((n) => x(n) && n.length === e))(f))), maxLength: (f) => v(r(t, ((e) => s((n) => x(n) && n.length <= e))(f))), includes: (f) => {
741
+ return v(r(t, (e = f, s((n) => x(n) && n.includes(e)))));
741
742
  var e;
742
743
  }, regex: (f) => {
743
- return x(i(t, (e = f, d((n) => h(n) && !!n.match(e)))));
744
+ return v(r(t, (e = f, s((n) => x(n) && !!n.match(e)))));
744
745
  var e;
745
746
  } });
746
- x(d(h));
747
- const y = (t) => Object.assign(o(t), { between: (f, e) => y(i(t, ((n, a) => d((b) => p(b) && n <= b && a >= b))(f, e))), lt: (f) => y(i(t, ((e) => d((n) => p(n) && n < e))(f))), gt: (f) => y(i(t, ((e) => d((n) => p(n) && n > e))(f))), lte: (f) => y(i(t, ((e) => d((n) => p(n) && n <= e))(f))), gte: (f) => y(i(t, ((e) => d((n) => p(n) && n >= e))(f))), int: () => y(i(t, d((f) => p(f) && Number.isInteger(f)))), finite: () => y(i(t, d((f) => p(f) && Number.isFinite(f)))), positive: () => y(i(t, d((f) => p(f) && f > 0))), negative: () => y(i(t, d((f) => p(f) && f < 0))) });
748
- y(d(p));
749
- const w = (t) => Object.assign(o(t), { between: (f, e) => w(i(t, ((n, a) => d((b) => g(b) && n <= b && a >= b))(f, e))), lt: (f) => w(i(t, ((e) => d((n) => g(n) && n < e))(f))), gt: (f) => w(i(t, ((e) => d((n) => g(n) && n > e))(f))), lte: (f) => w(i(t, ((e) => d((n) => g(n) && n <= e))(f))), gte: (f) => w(i(t, ((e) => d((n) => g(n) && n >= e))(f))), positive: () => w(i(t, d((f) => g(f) && f > 0))), negative: () => w(i(t, d((f) => g(f) && f < 0))) });
750
- w(d(g));
751
- o(d(function(t) {
747
+ v(s(x));
748
+ const l = (t) => Object.assign(p(t), { between: (f, e) => l(r(t, ((n, a) => s((b) => y(b) && n <= b && a >= b))(f, e))), lt: (f) => l(r(t, ((e) => s((n) => y(n) && n < e))(f))), gt: (f) => l(r(t, ((e) => s((n) => y(n) && n > e))(f))), lte: (f) => l(r(t, ((e) => s((n) => y(n) && n <= e))(f))), gte: (f) => l(r(t, ((e) => s((n) => y(n) && n >= e))(f))), int: () => l(r(t, s((f) => y(f) && Number.isInteger(f)))), finite: () => l(r(t, s((f) => y(f) && Number.isFinite(f)))), positive: () => l(r(t, s((f) => y(f) && f > 0))), negative: () => l(r(t, s((f) => y(f) && f < 0))) });
749
+ l(s(y));
750
+ const A = (t) => Object.assign(p(t), { between: (f, e) => A(r(t, ((n, a) => s((b) => w(b) && n <= b && a >= b))(f, e))), lt: (f) => A(r(t, ((e) => s((n) => w(n) && n < e))(f))), gt: (f) => A(r(t, ((e) => s((n) => w(n) && n > e))(f))), lte: (f) => A(r(t, ((e) => s((n) => w(n) && n <= e))(f))), gte: (f) => A(r(t, ((e) => s((n) => w(n) && n >= e))(f))), positive: () => A(r(t, s((f) => w(f) && f > 0))), negative: () => A(r(t, s((f) => w(f) && f < 0))) });
751
+ A(s(w));
752
+ p(s(function(t) {
752
753
  return typeof t == "boolean";
753
754
  }));
754
- o(d(function(t) {
755
+ p(s(function(t) {
755
756
  return typeof t == "symbol";
756
757
  }));
757
- o(d(function(t) {
758
+ p(s(function(t) {
758
759
  return t == null;
759
760
  }));
760
- o(d(function(t) {
761
+ p(s(function(t) {
761
762
  return t != null;
762
763
  }));
763
- class m0 extends Error {
764
+ class x0 extends Error {
764
765
  constructor(f) {
765
766
  let e;
766
767
  try {
@@ -771,11 +772,11 @@ class m0 extends Error {
771
772
  super(`Pattern matching error: no pattern matches value ${e}`), this.input = void 0, this.input = f;
772
773
  }
773
774
  }
774
- const P = { matched: !1, value: void 0 };
775
- function U(t) {
776
- return new N(t, P);
775
+ const B = { matched: !1, value: void 0 };
776
+ function W(t) {
777
+ return new D(t, B);
777
778
  }
778
- class N {
779
+ class D {
779
780
  constructor(f, e) {
780
781
  this.input = void 0, this.state = void 0, this.input = f, this.state = e;
781
782
  }
@@ -784,23 +785,23 @@ class N {
784
785
  const e = f[f.length - 1], n = [f[0]];
785
786
  let a;
786
787
  f.length === 3 && typeof f[1] == "function" ? a = f[1] : f.length > 2 && n.push(...f.slice(1, f.length - 1));
787
- let b = !1, s = {};
788
- const r = (c, A) => {
789
- b = !0, s[c] = A;
790
- }, u = !n.some((c) => l(c, this.input, r)) || a && !a(this.input) ? P : { matched: !0, value: e(b ? C in s ? s[C] : s : this.input, this.input) };
791
- return new N(this.input, u);
788
+ let b = !1, d = {};
789
+ const i = (c, o) => {
790
+ b = !0, d[c] = o;
791
+ }, u = !n.some((c) => h(c, this.input, i)) || a && !a(this.input) ? B : { matched: !0, value: e(b ? P in d ? d[P] : d : this.input, this.input) };
792
+ return new D(this.input, u);
792
793
  }
793
794
  when(f, e) {
794
795
  if (this.state.matched) return this;
795
796
  const n = !!f(this.input);
796
- return new N(this.input, n ? { matched: !0, value: e(this.input, this.input) } : P);
797
+ return new D(this.input, n ? { matched: !0, value: e(this.input, this.input) } : B);
797
798
  }
798
799
  otherwise(f) {
799
800
  return this.state.matched ? this.state.value : f(this.input);
800
801
  }
801
802
  exhaustive() {
802
803
  if (this.state.matched) return this.state.value;
803
- throw new m0(this.input);
804
+ throw new x0(this.input);
804
805
  }
805
806
  run() {
806
807
  return this.exhaustive();
@@ -809,13 +810,13 @@ class N {
809
810
  return this;
810
811
  }
811
812
  }
812
- var h0 = /* @__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))(h0 || {}), g0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t))(g0 || {}), x0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(x0 || {});
813
- function w0(t) {
813
+ var w0 = /* @__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))(w0 || {}), v0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t))(v0 || {}), A0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(A0 || {});
814
+ function T0(t) {
814
815
  return Array.isArray(t.actionSteps);
815
816
  }
816
- const D = class D extends J {
817
+ const M = class M extends a0 {
817
818
  constructor() {
818
- super(...arguments), this.abi = M;
819
+ super(...arguments), this.abi = _;
819
820
  }
820
821
  /**
821
822
  * Gets a specific action event by index
@@ -838,13 +839,13 @@ const D = class D extends J {
838
839
  * @returns {Promise<ActionStep[]>}
839
840
  */
840
841
  async getActionSteps(f) {
841
- const e = await K(this._config, {
842
+ const e = await q(this._config, {
842
843
  address: this.assertValidAddress(),
843
844
  ...this.optionallyAttachAccount(),
844
845
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
845
846
  ...f
846
847
  });
847
- return v0(e.map(G));
848
+ return I0(e.map(Q));
848
849
  }
849
850
  /**
850
851
  * Gets the count of action events
@@ -866,12 +867,12 @@ const D = class D extends J {
866
867
  * @returns {Promise<ActionClaimant>}
867
868
  */
868
869
  async getActionClaimant(f) {
869
- const e = await H(this._config, {
870
+ const e = await z(this._config, {
870
871
  address: this.assertValidAddress(),
871
872
  ...this.optionallyAttachAccount(),
872
873
  ...f
873
874
  });
874
- return G(e);
875
+ return Q(e);
875
876
  }
876
877
  /**
877
878
  * Executes a prepared event action
@@ -895,14 +896,111 @@ const D = class D extends J {
895
896
  * @returns {Promise<{ hash: `0x${string}`; result: readonly [boolean, `0x${string}`]; }>}
896
897
  */
897
898
  async executeRaw(f, e) {
898
- const { request: n, result: a } = await W(this._config, {
899
+ const { request: n, result: a } = await J(this._config, {
899
900
  address: this.assertValidAddress(),
900
901
  ...this.optionallyAttachAccount(),
901
902
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
902
903
  ...e,
903
904
  args: [f]
904
905
  });
905
- return { hash: await $(this._config, n), result: a };
906
+ return { hash: await Y(this._config, n), result: a };
907
+ }
908
+ /**
909
+ * Derives the action claimant address from a transaction based on the provided ActionClaimant configuration.
910
+ * This method supports both event-based and function-based claimant derivation.
911
+ *
912
+ ** @example
913
+ * // Example usage
914
+ * const eventAction = boost.action as EventAction
915
+ * const claimant = await eventAction.getActionClaimant() // {
916
+ * signatureType: SignatureType.EVENT,
917
+ * signature: '0x1234...',
918
+ * fieldIndex: 2,
919
+ * targetContract: '0xabcd...',
920
+ * chainid: 1
921
+ * };
922
+ * const params: ValidateActionStepParams = {
923
+ * hash: '0x5678...',
924
+ * chainId: 1,
925
+ * knownSignatures?: {
926
+ * '0x1234...': {}
927
+ * }
928
+ * };
929
+ * const claimantAddress = await eventAction.deriveActionClaimantFromTransaction(claimant, params);
930
+ *
931
+ * @param {ActionClaimant} claimant - The configuration specifying how to derive the claimant.
932
+ * @param {ValidateActionStepParams} params - Parameters for validation, including transaction hash, known signatures, logs, and chain ID.
933
+ * @returns {Promise<Address | undefined>} The derived claimant address if found, undefined otherwise.
934
+ * @throws {ValidationAbiMissingError} If the ABI for the specified signature is not found.
935
+ * @throws {FunctionDataDecodeError} If there's an error decoding function data (for function-based derivation).
936
+ */
937
+ async deriveActionClaimantFromTransaction(f, e) {
938
+ var a, b;
939
+ const n = f.signature;
940
+ if (f.signatureType === 0) {
941
+ let d;
942
+ if (e.abiItem && (d = e.abiItem), e.knownSignatures ? d = (a = e.knownSignatures) == null ? void 0 : a[n] : d = K.abi[n], !d)
943
+ throw new N(n);
944
+ let i;
945
+ if ("logs" in e) {
946
+ for (let o of e.logs) {
947
+ if (!I(o.address, f.targetContract)) continue;
948
+ let m = this.validateClaimantAgainstArgs(
949
+ f,
950
+ o
951
+ );
952
+ m && (i = m);
953
+ }
954
+ return i;
955
+ }
956
+ const c = (await Z(this._config, e)).logs.map((o) => {
957
+ const { eventName: m, args: X } = V({
958
+ abi: [d],
959
+ data: o.data,
960
+ topics: o.topics
961
+ });
962
+ return { ...o, eventName: m, args: X };
963
+ });
964
+ for (let o of c) {
965
+ if (!I(o.address, f.targetContract)) continue;
966
+ let m = this.validateClaimantAgainstArgs(f, o);
967
+ m && (i = m);
968
+ }
969
+ return i;
970
+ }
971
+ if (f.signatureType === 1 && "hash" in e && "chainId" in e) {
972
+ const d = await f0(this._config, {
973
+ hash: e.hash
974
+ });
975
+ if (!I(d.to, f.targetContract)) return;
976
+ let i;
977
+ if (e.abiItem && (i = e.abiItem), e.knownSignatures ? i = (b = e.knownSignatures) == null ? void 0 : b[n] : i = H.abi[n], !i)
978
+ throw new N(f.signature);
979
+ let u;
980
+ try {
981
+ u = L({
982
+ abi: [i],
983
+ data: d.input
984
+ });
985
+ } catch (c) {
986
+ throw new U([i], c);
987
+ }
988
+ return this.validateClaimantAgainstArgs(f, u);
989
+ }
990
+ }
991
+ /**
992
+ * Validates the action claimant against the arguments of a log or function data.
993
+ *
994
+ * @param {ActionClaimant} claimant - The action claimant to validate.
995
+ * @param {Object} [logOrFnData] - Optional object containing the arguments to validate against.
996
+ * @param {Array<any> | readonly unknown[] | Record<string, unknown>} [logOrFnData.args] - The arguments from the log or function data.
997
+ * @returns {Address | undefined} The validated address if found and valid, otherwise undefined.
998
+ */
999
+ validateClaimantAgainstArgs(f, e) {
1000
+ if (!e || !Array.isArray(e == null ? void 0 : e.args) || (e == null ? void 0 : e.args.length) <= f.fieldIndex)
1001
+ return;
1002
+ const n = e.args.at(f.fieldIndex);
1003
+ if (e0(n)) return n;
906
1004
  }
907
1005
  /**
908
1006
  * Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
@@ -936,33 +1034,28 @@ const D = class D extends J {
936
1034
  if (f.signatureType === 0) {
937
1035
  const a = f.signature;
938
1036
  let b;
939
- if (e.knownEvents ? b = (n = e.knownEvents) == null ? void 0 : n[a] : b = r0.abi[a], !b)
940
- throw new F(a);
1037
+ if (e.abiItem && (b = e.abiItem), e.knownSignatures ? b = (n = e.knownSignatures) == null ? void 0 : n[a] : b = K.abi[a], !b)
1038
+ throw new N(a);
941
1039
  if (this.isArraylikeIndexed(f, b))
942
- throw new Y(
1040
+ throw new b0(
943
1041
  f.actionParameter.fieldIndex,
944
1042
  b
945
1043
  );
946
- if (e.event = b, "logs" in e)
947
- return this.isActionEventValid(f, {
948
- ...e
949
- });
1044
+ if ("logs" in e)
1045
+ return this.isActionEventValid(f, e.logs);
950
1046
  const u = (await this._config.getClient({
951
1047
  chainId: e.chainId
952
1048
  }).getTransactionReceipt({
953
1049
  hash: e.hash
954
1050
  })).logs.map((c) => {
955
- const { eventName: A, args: j } = Q({
1051
+ const { eventName: o, args: m } = V({
956
1052
  abi: [b],
957
1053
  data: c.data,
958
1054
  topics: c.topics
959
1055
  });
960
- return { ...c, eventName: A, args: j };
961
- });
962
- return this.isActionEventValid(f, {
963
- logs: u,
964
- ...e
1056
+ return { ...c, eventName: o, args: m };
965
1057
  });
1058
+ return this.isActionEventValid(f, u);
966
1059
  }
967
1060
  if (f.signatureType === 1 && "hash" in e && "chainId" in e) {
968
1061
  const b = await this._config.getClient({
@@ -970,7 +1063,7 @@ const D = class D extends J {
970
1063
  }).getTransaction({
971
1064
  hash: e.hash
972
1065
  });
973
- return this.isActionFunctionValid(f, b);
1066
+ return this.isActionFunctionValid(f, b, e);
974
1067
  }
975
1068
  return !1;
976
1069
  }
@@ -981,16 +1074,14 @@ const D = class D extends J {
981
1074
  * @public
982
1075
  * @async
983
1076
  * @param {ActionStep} actionStep - The action step containing the event to validate.
984
- * @param {ValidateActionStepParams} params - Additional parameters for validation, including known events and logs
1077
+ * @param {EventLogs} logs - Event logs to validate the given step against
985
1078
  * @returns {Promise<boolean>} Resolves to true if the action event is valid, throws if input is invalid, otherwise false.
986
1079
  */
987
1080
  isActionEventValid(f, e) {
988
- if (!("logs" in e))
989
- throw new Z();
990
- const n = f.actionParameter, a = e.logs;
991
- if (!a.length) return !1;
992
- for (let b of a)
993
- if (this.validateLogAgainstCriteria(n, b))
1081
+ const n = f.actionParameter;
1082
+ if (!e.length) return !1;
1083
+ for (let a of e)
1084
+ if (this.validateLogAgainstCriteria(n, a))
994
1085
  return !0;
995
1086
  return !1;
996
1087
  }
@@ -998,30 +1089,34 @@ const D = class D extends J {
998
1089
  * Validates a single action function with a given criteria against the transaction input.
999
1090
  *
1000
1091
  * @public
1001
- * @async
1002
1092
  * @param {ActionStep} actionStep - The action step containing the function to validate.
1003
1093
  * @param {Transaction} transaction - The transaction that will be validated against.
1004
- * @returns {Promise<boolean>} Resolves to true if the action function is valid, throws if the inputs are invalid, otherwise false.
1094
+ * @param {Object} [params] - Optional parameters for validation.
1095
+ * @param {AbiItem} [params.abiItem] - The ABI item for the function, if known.
1096
+ * @param {Record<Hex, AbiEvent | AbiFunction>} [params.knownSignatures] - A record of known signatures.
1097
+ * @returns {boolean} Returns true if the action function is valid, false otherwise.
1098
+ * @throws {ValidationAbiMissingError} Throws if the ABI for the function signature is not found.
1099
+ * @throws {FunctionDataDecodeError} Throws if there's an error decoding the function data.
1005
1100
  */
1006
- isActionFunctionValid(f, e) {
1007
- const n = f.actionParameter;
1008
- let a = f.signature;
1009
- const b = u0.abi[a];
1010
- if (!b)
1011
- throw new F(a);
1012
- let s;
1101
+ isActionFunctionValid(f, e, n) {
1102
+ var c;
1103
+ const a = f.actionParameter;
1104
+ let b = f.signature, d;
1105
+ if (n != null && n.abiItem && (d = n == null ? void 0 : n.abiItem), n != null && n.knownSignatures ? d = (c = n == null ? void 0 : n.knownSignatures) == null ? void 0 : c[b] : d = H.abi[b], !d)
1106
+ throw new N(b);
1107
+ let i;
1013
1108
  try {
1014
- s = X({
1015
- abi: [b],
1109
+ i = L({
1110
+ abi: [d],
1016
1111
  data: e.input
1017
1112
  });
1018
- } catch (u) {
1019
- throw new f0([b], u);
1113
+ } catch (o) {
1114
+ throw new U([d], o);
1020
1115
  }
1021
- const r = s.args;
1022
- return !(!r || !s || !this.validateFunctionAgainstCriteria(
1023
- n,
1024
- r
1116
+ const u = i.args;
1117
+ return !(!u || !i || !this.validateFunctionAgainstCriteria(
1118
+ a,
1119
+ u
1025
1120
  ));
1026
1121
  }
1027
1122
  /**
@@ -1037,31 +1132,31 @@ const D = class D extends J {
1037
1132
  validateFieldAgainstCriteria(f, e, n) {
1038
1133
  switch (f.filterType) {
1039
1134
  case 0:
1040
- return U(f.fieldType).with(
1135
+ return W(f.fieldType).with(
1041
1136
  1,
1042
- () => B(f.filterData, e)
1137
+ () => I(f.filterData, e)
1043
1138
  ).with(
1044
1139
  0,
1045
1140
  () => BigInt(e) === BigInt(f.filterData)
1046
1141
  ).with(
1047
1142
  3,
1048
- () => e === I(f.filterData, "string")
1143
+ () => e === E(f.filterData, "string")
1049
1144
  ).otherwise(() => e === f.filterData);
1050
1145
  case 1:
1051
- return U(f.fieldType).with(
1146
+ return W(f.fieldType).with(
1052
1147
  1,
1053
- () => !B(f.filterData, e)
1148
+ () => !I(f.filterData, e)
1054
1149
  ).with(
1055
1150
  0,
1056
1151
  () => BigInt(e) !== BigInt(f.filterData)
1057
1152
  ).with(
1058
1153
  3,
1059
- () => e !== I(f.filterData, "string")
1154
+ () => e !== E(f.filterData, "string")
1060
1155
  ).otherwise(() => e !== f.filterData);
1061
1156
  case 2:
1062
1157
  if (f.fieldType === 0)
1063
1158
  return BigInt(e) > BigInt(f.filterData);
1064
- throw new V({
1159
+ throw new G({
1065
1160
  ...n,
1066
1161
  criteria: f,
1067
1162
  fieldValue: e
@@ -1069,7 +1164,7 @@ const D = class D extends J {
1069
1164
  case 3:
1070
1165
  if (f.fieldType === 0)
1071
1166
  return BigInt(e) < BigInt(f.filterData);
1072
- throw new V({
1167
+ throw new G({
1073
1168
  ...n,
1074
1169
  criteria: f,
1075
1170
  fieldValue: e
@@ -1077,26 +1172,26 @@ const D = class D extends J {
1077
1172
  case 4:
1078
1173
  if (f.fieldType === 2 || f.fieldType === 3) {
1079
1174
  let a;
1080
- return f.fieldType === 3 ? a = I(f.filterData, "string") : a = f.filterData.slice(2), e.includes(a);
1175
+ return f.fieldType === 3 ? a = E(f.filterData, "string") : a = f.filterData.slice(2), e.includes(a);
1081
1176
  }
1082
- throw new O({
1177
+ throw new F({
1083
1178
  ...n,
1084
1179
  criteria: f,
1085
1180
  fieldValue: e
1086
1181
  });
1087
1182
  case 5:
1088
1183
  if (typeof e != "string")
1089
- throw new O({
1184
+ throw new F({
1090
1185
  ...n,
1091
1186
  criteria: f,
1092
1187
  fieldValue: e
1093
1188
  });
1094
1189
  if (f.fieldType === 3) {
1095
- const a = I(f.filterData, "string");
1190
+ const a = E(f.filterData, "string");
1096
1191
  return new RegExp(a).test(e);
1097
1192
  }
1098
1193
  default:
1099
- throw new e0({
1194
+ throw new d0({
1100
1195
  ...n,
1101
1196
  criteria: f,
1102
1197
  fieldValue: e
@@ -1108,18 +1203,18 @@ const D = class D extends J {
1108
1203
  *
1109
1204
  * @param {Criteria} criteria - The criteria to validate against.
1110
1205
  * @param {Log} log - The Viem event log.
1111
- * @returns {Promise<boolean>} - Returns true if the log passes the criteria, false otherwise.
1206
+ * @returns {boolean} - Returns true if the log passes the criteria, false otherwise.
1112
1207
  */
1113
1208
  validateLogAgainstCriteria(f, e) {
1114
1209
  if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex)
1115
- throw new t0({
1210
+ throw new i0({
1116
1211
  log: e,
1117
1212
  criteria: f,
1118
1213
  fieldValue: void 0
1119
1214
  });
1120
1215
  const n = e.args.at(f.fieldIndex);
1121
1216
  if (n === void 0)
1122
- throw new _({ log: e, criteria: f, fieldValue: n });
1217
+ throw new j({ log: e, criteria: f, fieldValue: n });
1123
1218
  return this.validateFieldAgainstCriteria(f, n, { log: e });
1124
1219
  }
1125
1220
  /**
@@ -1132,7 +1227,7 @@ const D = class D extends J {
1132
1227
  validateFunctionAgainstCriteria(f, e) {
1133
1228
  const n = e[f.fieldIndex];
1134
1229
  if (n === void 0)
1135
- throw new _({
1230
+ throw new j({
1136
1231
  criteria: f,
1137
1232
  fieldValue: n
1138
1233
  });
@@ -1154,26 +1249,26 @@ const D = class D extends J {
1154
1249
  e
1155
1250
  );
1156
1251
  let b;
1157
- if (w0(n)) {
1158
- let s = n.actionSteps.filter((u) => !!u);
1159
- if (s.length === 0)
1160
- throw new n0();
1161
- if (s.length > 4)
1162
- throw new a0();
1163
- let r = Array.from({ length: 4 }, (u, c) => s.at(c) || s.at(-1));
1252
+ if (T0(n)) {
1253
+ let d = n.actionSteps.filter((u) => !!u);
1254
+ if (d.length === 0)
1255
+ throw new s0();
1256
+ if (d.length > 4)
1257
+ throw new r0();
1258
+ let i = Array.from({ length: 4 }, (u, c) => d.at(c) || d.at(-1));
1164
1259
  b = {
1165
1260
  actionClaimant: n.actionClaimant,
1166
- actionStepOne: r[0],
1167
- actionStepTwo: r[1],
1168
- actionStepThree: r[2],
1169
- actionStepFour: r[3]
1261
+ actionStepOne: i[0],
1262
+ actionStepTwo: i[1],
1263
+ actionStepThree: i[2],
1264
+ actionStepFour: i[3]
1170
1265
  };
1171
1266
  } else
1172
1267
  b = n;
1173
1268
  return {
1174
- abi: M,
1175
- bytecode: d0,
1176
- args: [A0(b)],
1269
+ abi: _,
1270
+ bytecode: o0,
1271
+ args: [S0(b)],
1177
1272
  ...this.optionallyAttachAccount(a.account)
1178
1273
  };
1179
1274
  }
@@ -1182,11 +1277,11 @@ const D = class D extends J {
1182
1277
  return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((n = e.inputs[f.actionParameter.fieldIndex]) != null && n.indexed));
1183
1278
  }
1184
1279
  };
1185
- D.bases = {
1186
- ...z
1187
- }, D.registryType = b0.ACTION;
1188
- let k = D;
1189
- function v0(t) {
1280
+ M.bases = {
1281
+ ...n0
1282
+ }, M.registryType = c0.ACTION;
1283
+ let $ = M;
1284
+ function I0(t) {
1190
1285
  const f = [], e = {};
1191
1286
  for (let n of t) {
1192
1287
  const a = JSON.stringify(n);
@@ -1194,13 +1289,13 @@ function v0(t) {
1194
1289
  }
1195
1290
  return f;
1196
1291
  }
1197
- function T(t) {
1292
+ function S(t) {
1198
1293
  return {
1199
1294
  ...t,
1200
1295
  chainid: BigInt(t.chainid)
1201
1296
  };
1202
1297
  }
1203
- function G(t) {
1298
+ function Q(t) {
1204
1299
  if (t.chainid > BigInt(Number.MAX_SAFE_INTEGER))
1205
1300
  throw new Error("Chain ID exceeds max safe integer");
1206
1301
  return {
@@ -1208,14 +1303,14 @@ function G(t) {
1208
1303
  chainid: Number(t.chainid)
1209
1304
  };
1210
1305
  }
1211
- function A0({
1306
+ function S0({
1212
1307
  actionClaimant: t,
1213
1308
  actionStepOne: f,
1214
1309
  actionStepTwo: e,
1215
1310
  actionStepThree: n,
1216
1311
  actionStepFour: a
1217
1312
  }) {
1218
- return q(
1313
+ return t0(
1219
1314
  [
1220
1315
  {
1221
1316
  type: "tuple",
@@ -1321,21 +1416,21 @@ function A0({
1321
1416
  ],
1322
1417
  [
1323
1418
  {
1324
- actionClaimant: T(t),
1419
+ actionClaimant: S(t),
1325
1420
  actionStepOne: {
1326
- ...T(f),
1421
+ ...S(f),
1327
1422
  actionType: f.actionType || 0
1328
1423
  },
1329
1424
  actionStepTwo: {
1330
- ...T(e),
1425
+ ...S(e),
1331
1426
  actionType: e.actionType || 0
1332
1427
  },
1333
1428
  actionStepThree: {
1334
- ...T(n),
1429
+ ...S(n),
1335
1430
  actionType: n.actionType || 0
1336
1431
  },
1337
1432
  actionStepFour: {
1338
- ...T(a),
1433
+ ...S(a),
1339
1434
  actionType: a.actionType || 0
1340
1435
  }
1341
1436
  }
@@ -1343,13 +1438,13 @@ function A0({
1343
1438
  );
1344
1439
  }
1345
1440
  export {
1346
- k as E,
1347
- h0 as F,
1348
- g0 as P,
1349
- x0 as S,
1350
- r0 as e,
1351
- u0 as f,
1352
- w0 as i,
1353
- A0 as p
1441
+ $ as E,
1442
+ w0 as F,
1443
+ v0 as P,
1444
+ A0 as S,
1445
+ K as e,
1446
+ H as f,
1447
+ T0 as i,
1448
+ S0 as p
1354
1449
  };
1355
- //# sourceMappingURL=EventAction-D5tnm00s.js.map
1450
+ //# sourceMappingURL=EventAction-CIPqmAoP.js.map