@boostxyz/sdk 5.3.1 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +11 -2
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +179 -161
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +154 -153
- package/package.json +1 -1
- package/src/Actions/EventAction.ts +83 -21
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { bL as
|
|
2
|
-
import { getTransaction as
|
|
3
|
-
import { isAddressEqual as
|
|
4
|
-
import { f as
|
|
5
|
-
import { DeployableTarget as
|
|
6
|
-
import { ValidationAbiMissingError as
|
|
7
|
-
import { RegistryType as
|
|
8
|
-
const m0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6080516124506100c85f395f61034a01526124505ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b591906113b2565b610273565b6040516100c791906113f7565b60405180910390f35b6100ea60048036038101906100e59190611471565b6102ec565b6040516100f892919061152c565b60405180910390f35b34801561010c575f80fd5b50610115610321565b6040516101229190611569565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c91906115fc565b60405180910390f35b348015610160575f80fd5b5061017b60048036038101906101769190611471565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e9190611986565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c891906119d0565b610651565b6040516101da9190611a81565b60405180910390f35b3480156101ee575f80fd5b5061020960048036038101906102049190611471565b610887565b6040516102169190611aa1565b60405180910390f35b34801561022a575f80fd5b506102336108bb565b6040516102409190611b27565b60405180910390f35b348015610254575f80fd5b5061025d610993565b60405161026a9190611b4f565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261099f565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a18565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190612077565b610a41565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610648578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a57610469611656565b5b600181111561047c5761047b611656565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660078111156105305761052f611656565b5b600781111561054257610541611656565b5b81526020015f820160019054906101000a900460ff16600481111561056a57610569611656565b5b600481111561057c5761057b611656565b5b81526020015f820160029054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820180546105b5906120eb565b80601f01602080910402602001604051908101604052809291908181526020018280546105e1906120eb565b801561062c5780601f106106035761010080835404028352916020019161062c565b820191905f5260205f20905b81548152906001019060200180831161060f57829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b610659611240565b6004828154811061066d5761066c61211b565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106b1576106b0611656565b5b60018111156106c3576106c2611656565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600781111561077757610776611656565b5b600781111561078957610788611656565b5b81526020015f820160019054906101000a900460ff1660048111156107b1576107b0611656565b5b60048111156107c3576107c2611656565b5b81526020015f820160029054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820180546107fc906120eb565b80601f0160208091040260200160405190810160405280929190818152602001828054610828906120eb565b80156108735780601f1061084a57610100808354040283529160200191610873565b820191905f5260205f20905b81548152906001019060200180831161085657829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108c36112a5565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108f2576108f1611656565b5b600181111561090457610903611656565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a115750610a108261113a565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a496111b3565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a7657610a75611656565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b5857610b57611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610c0057610bff611656565b5b02179055506020820151815f0160016101000a81548160ff02191690836004811115610c2f57610c2e611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff1602179055506060820151816001019081610c6f91906122dc565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cd357610cd2611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610d7b57610d7a611656565b5b02179055506020820151815f0160016101000a81548160ff02191690836004811115610daa57610da9611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff1602179055506060820151816001019081610dea91906122dc565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e4e57610e4d611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610ef657610ef5611656565b5b02179055506020820151815f0160016101000a81548160ff02191690836004811115610f2557610f24611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff1602179055506060820151816001019081610f6591906122dc565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fc957610fc8611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600781111561107157611070611656565b5b02179055506020820151815f0160016101000a81548160ff021916908360048111156110a05761109f611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160010190816110e091906122dc565b50505050507fdc8145a6c863ebd27b18aa903b7f82f1015527a05a81f227ef06ab79616082b4815f0151826020015183604001518460600151856080015160405161112f9594939291906123ab565b60405180910390a150565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806111ac57506111ab826111d7565b5b9050919050565b5f6111bc610a18565b905080546001166111d45763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f600181111561126757611266611656565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f815260200161129f6112fd565b81525090565b6040518060a001604052805f60018111156112c3576112c2611656565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600781111561131b5761131a611656565b5b81526020015f600481111561133357611332611656565b5b81526020015f63ffffffff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6113918161135d565b811461139b575f80fd5b50565b5f813590506113ac81611388565b92915050565b5f602082840312156113c7576113c6611355565b5b5f6113d48482850161139e565b91505092915050565b5f8115159050919050565b6113f1816113dd565b82525050565b5f60208201905061140a5f8301846113e8565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261143157611430611410565b5b8235905067ffffffffffffffff81111561144e5761144d611414565b5b60208301915083600182028301111561146a57611469611418565b5b9250929050565b5f806020838503121561148757611486611355565b5b5f83013567ffffffffffffffff8111156114a4576114a3611359565b5b6114b08582860161141c565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6114fe826114bc565b61150881856114c6565b93506115188185602086016114d6565b611521816114e4565b840191505092915050565b5f60408201905061153f5f8301856113e8565b818103602083015261155181846114f4565b90509392505050565b6115638161135d565b82525050565b5f60208201905061157c5f83018461155a565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f6115c46115bf6115ba84611582565b6115a1565b611582565b9050919050565b5f6115d5826115aa565b9050919050565b5f6115e6826115cb565b9050919050565b6115f6816115dc565b82525050565b5f60208201905061160f5f8301846115ed565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6116508161163e565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6002811061169457611693611656565b5b50565b5f8190506116a482611683565b919050565b5f6116b382611697565b9050919050565b6116c3816116a9565b82525050565b5f60ff82169050919050565b6116de816116c9565b82525050565b5f6116ee82611582565b9050919050565b6116fe816116e4565b82525050565b5f819050919050565b61171681611704565b82525050565b6008811061172d5761172c611656565b5b50565b5f81905061173d8261171c565b919050565b5f61174c82611730565b9050919050565b61175c81611742565b82525050565b6005811061177357611772611656565b5b50565b5f81905061178382611762565b919050565b5f61179282611776565b9050919050565b6117a281611788565b82525050565b5f63ffffffff82169050919050565b6117c0816117a8565b82525050565b5f82825260208201905092915050565b5f6117e0826114bc565b6117ea81856117c6565b93506117fa8185602086016114d6565b611803816114e4565b840191505092915050565b5f608083015f8301516118235f860182611753565b5060208301516118366020860182611799565b50604083015161184960408601826117b7565b506060830151848203606086015261186182826117d6565b9150508091505092915050565b5f60c083015f8301516118835f860182611647565b50602083015161189660208601826116ba565b5060408301516118a960408601826116d5565b5060608301516118bc60608601826116f5565b5060808301516118cf608086018261170d565b5060a083015184820360a08601526118e7828261180e565b9150508091505092915050565b5f6118ff838361186e565b905092915050565b5f602082019050919050565b5f61191d82611615565b611927818561161f565b9350836020820285016119398561162f565b805f5b85811015611974578484038952815161195585826118f4565b945061196083611907565b925060208a0199505060018101905061193c565b50829750879550505050505092915050565b5f6020820190508181035f83015261199e8184611913565b905092915050565b6119af81611704565b81146119b9575f80fd5b50565b5f813590506119ca816119a6565b92915050565b5f602082840312156119e5576119e4611355565b5b5f6119f2848285016119bc565b91505092915050565b5f60c083015f830151611a105f860182611647565b506020830151611a2360208601826116ba565b506040830151611a3660408601826116d5565b506060830151611a4960608601826116f5565b506080830151611a5c608086018261170d565b5060a083015184820360a0860152611a74828261180e565b9150508091505092915050565b5f6020820190508181035f830152611a9981846119fb565b905092915050565b5f6020820190508181035f830152611ab981846114f4565b905092915050565b60a082015f820151611ad55f8501826116ba565b506020820151611ae86020850182611647565b506040820151611afb60408501826116d5565b506060820151611b0e60608501826116f5565b506080820151611b21608085018261170d565b50505050565b5f60a082019050611b3a5f830184611ac1565b92915050565b611b4981611704565b82525050565b5f602082019050611b625f830184611b40565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611ba2826114e4565b810181811067ffffffffffffffff82111715611bc157611bc0611b6c565b5b80604052505050565b5f611bd361134c565b9050611bdf8282611b99565b919050565b5f80fd5b60028110611bf4575f80fd5b50565b5f81359050611c0581611be8565b92915050565b611c148161163e565b8114611c1e575f80fd5b50565b5f81359050611c2f81611c0b565b92915050565b611c3e816116c9565b8114611c48575f80fd5b50565b5f81359050611c5981611c35565b92915050565b611c68816116e4565b8114611c72575f80fd5b50565b5f81359050611c8381611c5f565b92915050565b5f60a08284031215611c9e57611c9d611b68565b5b611ca860a0611bca565b90505f611cb784828501611bf7565b5f830152506020611cca84828501611c21565b6020830152506040611cde84828501611c4b565b6040830152506060611cf284828501611c75565b6060830152506080611d06848285016119bc565b60808301525092915050565b60088110611d1e575f80fd5b50565b5f81359050611d2f81611d12565b92915050565b60058110611d41575f80fd5b50565b5f81359050611d5281611d35565b92915050565b611d61816117a8565b8114611d6b575f80fd5b50565b5f81359050611d7c81611d58565b92915050565b5f80fd5b5f67ffffffffffffffff821115611da057611d9f611b6c565b5b611da9826114e4565b9050602081019050919050565b828183375f83830152505050565b5f611dd6611dd184611d86565b611bca565b905082815260208101848484011115611df257611df1611d82565b5b611dfd848285611db6565b509392505050565b5f82601f830112611e1957611e18611410565b5b8135611e29848260208601611dc4565b91505092915050565b5f60808284031215611e4757611e46611b68565b5b611e516080611bca565b90505f611e6084828501611d21565b5f830152506020611e7384828501611d44565b6020830152506040611e8784828501611d6e565b604083015250606082013567ffffffffffffffff811115611eab57611eaa611be4565b5b611eb784828501611e05565b60608301525092915050565b5f60c08284031215611ed857611ed7611b68565b5b611ee260c0611bca565b90505f611ef184828501611c21565b5f830152506020611f0484828501611bf7565b6020830152506040611f1884828501611c4b565b6040830152506060611f2c84828501611c75565b6060830152506080611f40848285016119bc565b60808301525060a082013567ffffffffffffffff811115611f6457611f63611be4565b5b611f7084828501611e32565b60a08301525092915050565b5f6101208284031215611f9257611f91611b68565b5b611f9c60a0611bca565b90505f611fab84828501611c89565b5f8301525060a082013567ffffffffffffffff811115611fce57611fcd611be4565b5b611fda84828501611ec3565b60208301525060c082013567ffffffffffffffff811115611ffe57611ffd611be4565b5b61200a84828501611ec3565b60408301525060e082013567ffffffffffffffff81111561202e5761202d611be4565b5b61203a84828501611ec3565b60608301525061010082013567ffffffffffffffff81111561205f5761205e611be4565b5b61206b84828501611ec3565b60808301525092915050565b5f6020828403121561208c5761208b611355565b5b5f82013567ffffffffffffffff8111156120a9576120a8611359565b5b6120b584828501611f7c565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061210257607f821691505b602082108103612115576121146120be565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026121a47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612169565b6121ae8683612169565b95508019841693508086168417925050509392505050565b5f6121e06121db6121d684611704565b6115a1565b611704565b9050919050565b5f819050919050565b6121f9836121c6565b61220d612205826121e7565b848454612175565b825550505050565b5f90565b612221612215565b61222c8184846121f0565b505050565b5b8181101561224f576122445f82612219565b600181019050612232565b5050565b601f8211156122945761226581612148565b61226e8461215a565b8101602085101561227d578190505b6122916122898561215a565b830182612231565b50505b505050565b5f82821c905092915050565b5f6122b45f1984600802612299565b1980831691505092915050565b5f6122cc83836122a5565b9150826002028217905092915050565b6122e5826114bc565b67ffffffffffffffff8111156122fe576122fd611b6c565b5b61230882546120eb565b612313828285612253565b5f60209050601f831160018114612344575f8415612332578287015190505b61233c85826122c1565b8655506123a3565b601f19841661235286612148565b5f5b8281101561237957848901518255600182019150602085019450602081019050612354565b868310156123965784890151612392601f8916826122a5565b8355505b6001600288020188555050505b505050505050565b5f610120820190506123bf5f830188611ac1565b81810360a08301526123d181876119fb565b905081810360c08301526123e581866119fb565b905081810360e08301526123f981856119fb565b905081810361010083015261240e81846119fb565b9050969550505050505056fea2646970667358221220c7ff4a150897568d1b0cf381b80c7477adfb1d4a61c0f1dbe23de1a9fd54af2f64736f6c634300081a0033", w0 = {
|
|
1
|
+
import { bL as V, bM as b0, bN as u0, bO as o0, bP as c0 } from "../generated-Cyvr_Tjx.js";
|
|
2
|
+
import { getTransaction as B, getTransactionReceipt as Q } from "@wagmi/core";
|
|
3
|
+
import { isAddressEqual as I, toEventSelector as j, decodeFunctionData as X, isAddress as z, decodeEventLog as O, zeroHash as N, fromHex as k, encodeAbiParameters as p0, pad as G, zeroAddress as y0, trim as l0 } from "viem";
|
|
4
|
+
import { f as h0 } from "../deployments-D0fs26TV.js";
|
|
5
|
+
import { DeployableTarget as g0 } from "../Deployable/DeployableTarget.js";
|
|
6
|
+
import { ValidationAbiMissingError as R, FunctionDataDecodeError as K, UnparseableAbiParamError as $, DecodedArgsMalformedError as x0, DecodedArgsError as d0, FieldValueUndefinedError as Y, InvalidTupleDecodingError as v, UnrecognizedFilterTypeError as m0, FieldValueNotComparableError as Z, InvalidNumericalCriteriaError as P, NoEventActionStepsProvidedError as w0, TooManyEventActionStepsProvidedError as A0, InvalidTupleEncodingError as q } from "../errors.js";
|
|
7
|
+
import { RegistryType as v0, CheatCodes as S, TRANSFER_SIGNATURE as M } from "../utils.js";
|
|
8
|
+
const T0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6080516124506100c85f395f61034a01526124505ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b591906113b2565b610273565b6040516100c791906113f7565b60405180910390f35b6100ea60048036038101906100e59190611471565b6102ec565b6040516100f892919061152c565b60405180910390f35b34801561010c575f80fd5b50610115610321565b6040516101229190611569565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c91906115fc565b60405180910390f35b348015610160575f80fd5b5061017b60048036038101906101769190611471565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e9190611986565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c891906119d0565b610651565b6040516101da9190611a81565b60405180910390f35b3480156101ee575f80fd5b5061020960048036038101906102049190611471565b610887565b6040516102169190611aa1565b60405180910390f35b34801561022a575f80fd5b506102336108bb565b6040516102409190611b27565b60405180910390f35b348015610254575f80fd5b5061025d610993565b60405161026a9190611b4f565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261099f565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a18565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190612077565b610a41565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610648578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a57610469611656565b5b600181111561047c5761047b611656565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660078111156105305761052f611656565b5b600781111561054257610541611656565b5b81526020015f820160019054906101000a900460ff16600481111561056a57610569611656565b5b600481111561057c5761057b611656565b5b81526020015f820160029054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820180546105b5906120eb565b80601f01602080910402602001604051908101604052809291908181526020018280546105e1906120eb565b801561062c5780601f106106035761010080835404028352916020019161062c565b820191905f5260205f20905b81548152906001019060200180831161060f57829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b610659611240565b6004828154811061066d5761066c61211b565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106b1576106b0611656565b5b60018111156106c3576106c2611656565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600781111561077757610776611656565b5b600781111561078957610788611656565b5b81526020015f820160019054906101000a900460ff1660048111156107b1576107b0611656565b5b60048111156107c3576107c2611656565b5b81526020015f820160029054906101000a900463ffffffff1663ffffffff1663ffffffff1681526020016001820180546107fc906120eb565b80601f0160208091040260200160405190810160405280929190818152602001828054610828906120eb565b80156108735780601f1061084a57610100808354040283529160200191610873565b820191905f5260205f20905b81548152906001019060200180831161085657829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108c36112a5565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108f2576108f1611656565b5b600181111561090457610903611656565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610a115750610a108261113a565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a496111b3565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a7657610a75611656565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b5857610b57611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610c0057610bff611656565b5b02179055506020820151815f0160016101000a81548160ff02191690836004811115610c2f57610c2e611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff1602179055506060820151816001019081610c6f91906122dc565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cd357610cd2611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610d7b57610d7a611656565b5b02179055506020820151815f0160016101000a81548160ff02191690836004811115610daa57610da9611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff1602179055506060820151816001019081610dea91906122dc565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e4e57610e4d611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610ef657610ef5611656565b5b02179055506020820151815f0160016101000a81548160ff02191690836004811115610f2557610f24611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff1602179055506060820151816001019081610f6591906122dc565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fc957610fc8611656565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600781111561107157611070611656565b5b02179055506020820151815f0160016101000a81548160ff021916908360048111156110a05761109f611656565b5b02179055506040820151815f0160026101000a81548163ffffffff021916908363ffffffff16021790555060608201518160010190816110e091906122dc565b50505050507fdc8145a6c863ebd27b18aa903b7f82f1015527a05a81f227ef06ab79616082b4815f0151826020015183604001518460600151856080015160405161112f9594939291906123ab565b60405180910390a150565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806111ac57506111ab826111d7565b5b9050919050565b5f6111bc610a18565b905080546001166111d45763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f600181111561126757611266611656565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f815260200161129f6112fd565b81525090565b6040518060a001604052805f60018111156112c3576112c2611656565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600781111561131b5761131a611656565b5b81526020015f600481111561133357611332611656565b5b81526020015f63ffffffff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6113918161135d565b811461139b575f80fd5b50565b5f813590506113ac81611388565b92915050565b5f602082840312156113c7576113c6611355565b5b5f6113d48482850161139e565b91505092915050565b5f8115159050919050565b6113f1816113dd565b82525050565b5f60208201905061140a5f8301846113e8565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261143157611430611410565b5b8235905067ffffffffffffffff81111561144e5761144d611414565b5b60208301915083600182028301111561146a57611469611418565b5b9250929050565b5f806020838503121561148757611486611355565b5b5f83013567ffffffffffffffff8111156114a4576114a3611359565b5b6114b08582860161141c565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6114fe826114bc565b61150881856114c6565b93506115188185602086016114d6565b611521816114e4565b840191505092915050565b5f60408201905061153f5f8301856113e8565b818103602083015261155181846114f4565b90509392505050565b6115638161135d565b82525050565b5f60208201905061157c5f83018461155a565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f6115c46115bf6115ba84611582565b6115a1565b611582565b9050919050565b5f6115d5826115aa565b9050919050565b5f6115e6826115cb565b9050919050565b6115f6816115dc565b82525050565b5f60208201905061160f5f8301846115ed565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6116508161163e565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6002811061169457611693611656565b5b50565b5f8190506116a482611683565b919050565b5f6116b382611697565b9050919050565b6116c3816116a9565b82525050565b5f60ff82169050919050565b6116de816116c9565b82525050565b5f6116ee82611582565b9050919050565b6116fe816116e4565b82525050565b5f819050919050565b61171681611704565b82525050565b6008811061172d5761172c611656565b5b50565b5f81905061173d8261171c565b919050565b5f61174c82611730565b9050919050565b61175c81611742565b82525050565b6005811061177357611772611656565b5b50565b5f81905061178382611762565b919050565b5f61179282611776565b9050919050565b6117a281611788565b82525050565b5f63ffffffff82169050919050565b6117c0816117a8565b82525050565b5f82825260208201905092915050565b5f6117e0826114bc565b6117ea81856117c6565b93506117fa8185602086016114d6565b611803816114e4565b840191505092915050565b5f608083015f8301516118235f860182611753565b5060208301516118366020860182611799565b50604083015161184960408601826117b7565b506060830151848203606086015261186182826117d6565b9150508091505092915050565b5f60c083015f8301516118835f860182611647565b50602083015161189660208601826116ba565b5060408301516118a960408601826116d5565b5060608301516118bc60608601826116f5565b5060808301516118cf608086018261170d565b5060a083015184820360a08601526118e7828261180e565b9150508091505092915050565b5f6118ff838361186e565b905092915050565b5f602082019050919050565b5f61191d82611615565b611927818561161f565b9350836020820285016119398561162f565b805f5b85811015611974578484038952815161195585826118f4565b945061196083611907565b925060208a0199505060018101905061193c565b50829750879550505050505092915050565b5f6020820190508181035f83015261199e8184611913565b905092915050565b6119af81611704565b81146119b9575f80fd5b50565b5f813590506119ca816119a6565b92915050565b5f602082840312156119e5576119e4611355565b5b5f6119f2848285016119bc565b91505092915050565b5f60c083015f830151611a105f860182611647565b506020830151611a2360208601826116ba565b506040830151611a3660408601826116d5565b506060830151611a4960608601826116f5565b506080830151611a5c608086018261170d565b5060a083015184820360a0860152611a74828261180e565b9150508091505092915050565b5f6020820190508181035f830152611a9981846119fb565b905092915050565b5f6020820190508181035f830152611ab981846114f4565b905092915050565b60a082015f820151611ad55f8501826116ba565b506020820151611ae86020850182611647565b506040820151611afb60408501826116d5565b506060820151611b0e60608501826116f5565b506080820151611b21608085018261170d565b50505050565b5f60a082019050611b3a5f830184611ac1565b92915050565b611b4981611704565b82525050565b5f602082019050611b625f830184611b40565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611ba2826114e4565b810181811067ffffffffffffffff82111715611bc157611bc0611b6c565b5b80604052505050565b5f611bd361134c565b9050611bdf8282611b99565b919050565b5f80fd5b60028110611bf4575f80fd5b50565b5f81359050611c0581611be8565b92915050565b611c148161163e565b8114611c1e575f80fd5b50565b5f81359050611c2f81611c0b565b92915050565b611c3e816116c9565b8114611c48575f80fd5b50565b5f81359050611c5981611c35565b92915050565b611c68816116e4565b8114611c72575f80fd5b50565b5f81359050611c8381611c5f565b92915050565b5f60a08284031215611c9e57611c9d611b68565b5b611ca860a0611bca565b90505f611cb784828501611bf7565b5f830152506020611cca84828501611c21565b6020830152506040611cde84828501611c4b565b6040830152506060611cf284828501611c75565b6060830152506080611d06848285016119bc565b60808301525092915050565b60088110611d1e575f80fd5b50565b5f81359050611d2f81611d12565b92915050565b60058110611d41575f80fd5b50565b5f81359050611d5281611d35565b92915050565b611d61816117a8565b8114611d6b575f80fd5b50565b5f81359050611d7c81611d58565b92915050565b5f80fd5b5f67ffffffffffffffff821115611da057611d9f611b6c565b5b611da9826114e4565b9050602081019050919050565b828183375f83830152505050565b5f611dd6611dd184611d86565b611bca565b905082815260208101848484011115611df257611df1611d82565b5b611dfd848285611db6565b509392505050565b5f82601f830112611e1957611e18611410565b5b8135611e29848260208601611dc4565b91505092915050565b5f60808284031215611e4757611e46611b68565b5b611e516080611bca565b90505f611e6084828501611d21565b5f830152506020611e7384828501611d44565b6020830152506040611e8784828501611d6e565b604083015250606082013567ffffffffffffffff811115611eab57611eaa611be4565b5b611eb784828501611e05565b60608301525092915050565b5f60c08284031215611ed857611ed7611b68565b5b611ee260c0611bca565b90505f611ef184828501611c21565b5f830152506020611f0484828501611bf7565b6020830152506040611f1884828501611c4b565b6040830152506060611f2c84828501611c75565b6060830152506080611f40848285016119bc565b60808301525060a082013567ffffffffffffffff811115611f6457611f63611be4565b5b611f7084828501611e32565b60a08301525092915050565b5f6101208284031215611f9257611f91611b68565b5b611f9c60a0611bca565b90505f611fab84828501611c89565b5f8301525060a082013567ffffffffffffffff811115611fce57611fcd611be4565b5b611fda84828501611ec3565b60208301525060c082013567ffffffffffffffff811115611ffe57611ffd611be4565b5b61200a84828501611ec3565b60408301525060e082013567ffffffffffffffff81111561202e5761202d611be4565b5b61203a84828501611ec3565b60608301525061010082013567ffffffffffffffff81111561205f5761205e611be4565b5b61206b84828501611ec3565b60808301525092915050565b5f6020828403121561208c5761208b611355565b5b5f82013567ffffffffffffffff8111156120a9576120a8611359565b5b6120b584828501611f7c565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061210257607f821691505b602082108103612115576121146120be565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026121a47fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612169565b6121ae8683612169565b95508019841693508086168417925050509392505050565b5f6121e06121db6121d684611704565b6115a1565b611704565b9050919050565b5f819050919050565b6121f9836121c6565b61220d612205826121e7565b848454612175565b825550505050565b5f90565b612221612215565b61222c8184846121f0565b505050565b5b8181101561224f576122445f82612219565b600181019050612232565b5050565b601f8211156122945761226581612148565b61226e8461215a565b8101602085101561227d578190505b6122916122898561215a565b830182612231565b50505b505050565b5f82821c905092915050565b5f6122b45f1984600802612299565b1980831691505092915050565b5f6122cc83836122a5565b9150826002028217905092915050565b6122e5826114bc565b67ffffffffffffffff8111156122fe576122fd611b6c565b5b61230882546120eb565b612313828285612253565b5f60209050601f831160018114612344575f8415612332578287015190505b61233c85826122c1565b8655506123a3565b601f19841661235286612148565b5f5b8281101561237957848901518255600182019150602085019450602081019050612354565b868310156123965784890151612392601f8916826122a5565b8355505b6001600288020188555050505b505050505050565b5f610120820190506123bf5f830188611ac1565b81810360a08301526123d181876119fb565b905081810360c08301526123e581866119fb565b905081810360e08301526123f981856119fb565b905081810361010083015261240e81846119fb565b9050969550505050505056fea2646970667358221220c7ff4a150897568d1b0cf381b80c7477adfb1d4a61c0f1dbe23de1a9fd54af2f64736f6c634300081a0033", E0 = {
|
|
9
9
|
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
|
|
10
10
|
name: "Transfer",
|
|
11
11
|
type: "event",
|
|
@@ -1380,8 +1380,8 @@ const m0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f
|
|
|
1380
1380
|
}
|
|
1381
1381
|
]
|
|
1382
1382
|
}
|
|
1383
|
-
}, h = Symbol.for("@ts-pattern/matcher"),
|
|
1384
|
-
if (
|
|
1383
|
+
}, h = Symbol.for("@ts-pattern/matcher"), I0 = Symbol.for("@ts-pattern/isVariadic"), D = "@ts-pattern/anonymous-select-key", H = (t) => !!(t && typeof t == "object"), L = (t) => t && !!t[h], l = (t, f, e) => {
|
|
1384
|
+
if (L(t)) {
|
|
1385
1385
|
const n = t[h](), { matched: d, selections: i } = n.match(f);
|
|
1386
1386
|
return d && i && Object.keys(i).forEach((a) => e(a, i[a])), d;
|
|
1387
1387
|
}
|
|
@@ -1392,7 +1392,7 @@ const m0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f
|
|
|
1392
1392
|
let n = [], d = [], i = [];
|
|
1393
1393
|
for (const a of t.keys()) {
|
|
1394
1394
|
const s = t[a];
|
|
1395
|
-
|
|
1395
|
+
L(s) && s[I0] ? i.push(s) : i.length ? d.push(s) : n.push(s);
|
|
1396
1396
|
}
|
|
1397
1397
|
if (i.length) {
|
|
1398
1398
|
if (i.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
@@ -1404,20 +1404,20 @@ const m0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f
|
|
|
1404
1404
|
}
|
|
1405
1405
|
return Reflect.ownKeys(t).every((n) => {
|
|
1406
1406
|
const d = t[n];
|
|
1407
|
-
return (n in f ||
|
|
1407
|
+
return (n in f || L(i = d) && i[h]().matcherType === "optional") && l(d, f[n], e);
|
|
1408
1408
|
var i;
|
|
1409
1409
|
});
|
|
1410
1410
|
}
|
|
1411
1411
|
return Object.is(f, t);
|
|
1412
1412
|
}, A = (t) => {
|
|
1413
1413
|
var f, e, n;
|
|
1414
|
-
return H(t) ?
|
|
1415
|
-
},
|
|
1416
|
-
function
|
|
1417
|
-
return Object.assign(t, { optional: () =>
|
|
1414
|
+
return H(t) ? L(t) ? (f = (e = (n = t[h]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? C(t, A) : C(Object.values(t), A) : [];
|
|
1415
|
+
}, C = (t, f) => t.reduce((e, n) => e.concat(f(n)), []);
|
|
1416
|
+
function c(t) {
|
|
1417
|
+
return Object.assign(t, { optional: () => N0(t), and: (f) => u(t, f), or: (f) => S0(t, f), select: (f) => f === void 0 ? J(t) : J(f, t) });
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1419
|
+
function N0(t) {
|
|
1420
|
+
return c({ [h]: () => ({ match: (f) => {
|
|
1421
1421
|
let e = {};
|
|
1422
1422
|
const n = (d, i) => {
|
|
1423
1423
|
e[d] = i;
|
|
@@ -1426,36 +1426,36 @@ function v0(t) {
|
|
|
1426
1426
|
}, getSelectionKeys: () => A(t), matcherType: "optional" }) });
|
|
1427
1427
|
}
|
|
1428
1428
|
function u(...t) {
|
|
1429
|
-
return
|
|
1429
|
+
return c({ [h]: () => ({ match: (f) => {
|
|
1430
1430
|
let e = {};
|
|
1431
1431
|
const n = (d, i) => {
|
|
1432
1432
|
e[d] = i;
|
|
1433
1433
|
};
|
|
1434
1434
|
return { matched: t.every((d) => l(d, f, n)), selections: e };
|
|
1435
|
-
}, getSelectionKeys: () =>
|
|
1435
|
+
}, getSelectionKeys: () => C(t, A), matcherType: "and" }) });
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1438
|
-
return
|
|
1437
|
+
function S0(...t) {
|
|
1438
|
+
return c({ [h]: () => ({ match: (f) => {
|
|
1439
1439
|
let e = {};
|
|
1440
1440
|
const n = (d, i) => {
|
|
1441
1441
|
e[d] = i;
|
|
1442
1442
|
};
|
|
1443
|
-
return
|
|
1444
|
-
}, getSelectionKeys: () =>
|
|
1443
|
+
return C(t, A).forEach((d) => n(d, void 0)), { matched: t.some((d) => l(d, f, n)), selections: e };
|
|
1444
|
+
}, getSelectionKeys: () => C(t, A), matcherType: "or" }) });
|
|
1445
1445
|
}
|
|
1446
1446
|
function b(t) {
|
|
1447
1447
|
return { [h]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function J(...t) {
|
|
1450
1450
|
const f = typeof t[0] == "string" ? t[0] : void 0, e = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
1451
|
-
return
|
|
1451
|
+
return c({ [h]: () => ({ match: (n) => {
|
|
1452
1452
|
let d = { [f ?? D]: n };
|
|
1453
1453
|
return { matched: e === void 0 || l(e, n, (i, a) => {
|
|
1454
1454
|
d[i] = a;
|
|
1455
1455
|
}), selections: d };
|
|
1456
1456
|
}, getSelectionKeys: () => [f ?? D].concat(e === void 0 ? [] : A(e)) }) });
|
|
1457
1457
|
}
|
|
1458
|
-
function
|
|
1458
|
+
function p(t) {
|
|
1459
1459
|
return typeof t == "number";
|
|
1460
1460
|
}
|
|
1461
1461
|
function g(t) {
|
|
@@ -1464,10 +1464,10 @@ function g(t) {
|
|
|
1464
1464
|
function x(t) {
|
|
1465
1465
|
return typeof t == "bigint";
|
|
1466
1466
|
}
|
|
1467
|
-
|
|
1467
|
+
c(b(function(t) {
|
|
1468
1468
|
return !0;
|
|
1469
1469
|
}));
|
|
1470
|
-
const m = (t) => Object.assign(
|
|
1470
|
+
const m = (t) => Object.assign(c(t), { startsWith: (f) => {
|
|
1471
1471
|
return m(u(t, (e = f, b((n) => g(n) && n.startsWith(e)))));
|
|
1472
1472
|
var e;
|
|
1473
1473
|
}, endsWith: (f) => {
|
|
@@ -1481,23 +1481,23 @@ const m = (t) => Object.assign(p(t), { startsWith: (f) => {
|
|
|
1481
1481
|
var e;
|
|
1482
1482
|
} });
|
|
1483
1483
|
m(b(g));
|
|
1484
|
-
const y = (t) => Object.assign(
|
|
1485
|
-
y(b(
|
|
1486
|
-
const w = (t) => Object.assign(
|
|
1484
|
+
const y = (t) => Object.assign(c(t), { between: (f, e) => y(u(t, ((n, d) => b((i) => p(i) && n <= i && d >= i))(f, e))), lt: (f) => y(u(t, ((e) => b((n) => p(n) && n < e))(f))), gt: (f) => y(u(t, ((e) => b((n) => p(n) && n > e))(f))), lte: (f) => y(u(t, ((e) => b((n) => p(n) && n <= e))(f))), gte: (f) => y(u(t, ((e) => b((n) => p(n) && n >= e))(f))), int: () => y(u(t, b((f) => p(f) && Number.isInteger(f)))), finite: () => y(u(t, b((f) => p(f) && Number.isFinite(f)))), positive: () => y(u(t, b((f) => p(f) && f > 0))), negative: () => y(u(t, b((f) => p(f) && f < 0))) });
|
|
1485
|
+
y(b(p));
|
|
1486
|
+
const w = (t) => Object.assign(c(t), { between: (f, e) => w(u(t, ((n, d) => b((i) => x(i) && n <= i && d >= i))(f, e))), lt: (f) => w(u(t, ((e) => b((n) => x(n) && n < e))(f))), gt: (f) => w(u(t, ((e) => b((n) => x(n) && n > e))(f))), lte: (f) => w(u(t, ((e) => b((n) => x(n) && n <= e))(f))), gte: (f) => w(u(t, ((e) => b((n) => x(n) && n >= e))(f))), positive: () => w(u(t, b((f) => x(f) && f > 0))), negative: () => w(u(t, b((f) => x(f) && f < 0))) });
|
|
1487
1487
|
w(b(x));
|
|
1488
|
-
|
|
1488
|
+
c(b(function(t) {
|
|
1489
1489
|
return typeof t == "boolean";
|
|
1490
1490
|
}));
|
|
1491
|
-
|
|
1491
|
+
c(b(function(t) {
|
|
1492
1492
|
return typeof t == "symbol";
|
|
1493
1493
|
}));
|
|
1494
|
-
|
|
1494
|
+
c(b(function(t) {
|
|
1495
1495
|
return t == null;
|
|
1496
1496
|
}));
|
|
1497
|
-
|
|
1497
|
+
c(b(function(t) {
|
|
1498
1498
|
return t != null;
|
|
1499
1499
|
}));
|
|
1500
|
-
class
|
|
1500
|
+
class C0 extends Error {
|
|
1501
1501
|
constructor(f) {
|
|
1502
1502
|
let e;
|
|
1503
1503
|
try {
|
|
@@ -1508,9 +1508,9 @@ class E0 extends Error {
|
|
|
1508
1508
|
super(`Pattern matching error: no pattern matches value ${e}`), this.input = void 0, this.input = f;
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
|
-
const
|
|
1512
|
-
function
|
|
1513
|
-
return new U(t,
|
|
1511
|
+
const F = { matched: !1, value: void 0 };
|
|
1512
|
+
function f0(t) {
|
|
1513
|
+
return new U(t, F);
|
|
1514
1514
|
}
|
|
1515
1515
|
class U {
|
|
1516
1516
|
constructor(f, e) {
|
|
@@ -1524,20 +1524,20 @@ class U {
|
|
|
1524
1524
|
let i = !1, a = {};
|
|
1525
1525
|
const s = (o, E) => {
|
|
1526
1526
|
i = !0, a[o] = E;
|
|
1527
|
-
}, r = !n.some((o) => l(o, this.input, s)) || d && !d(this.input) ?
|
|
1527
|
+
}, r = !n.some((o) => l(o, this.input, s)) || d && !d(this.input) ? F : { matched: !0, value: e(i ? D in a ? a[D] : a : this.input, this.input) };
|
|
1528
1528
|
return new U(this.input, r);
|
|
1529
1529
|
}
|
|
1530
1530
|
when(f, e) {
|
|
1531
1531
|
if (this.state.matched) return this;
|
|
1532
1532
|
const n = !!f(this.input);
|
|
1533
|
-
return new U(this.input, n ? { matched: !0, value: e(this.input, this.input) } :
|
|
1533
|
+
return new U(this.input, n ? { matched: !0, value: e(this.input, this.input) } : F);
|
|
1534
1534
|
}
|
|
1535
1535
|
otherwise(f) {
|
|
1536
1536
|
return this.state.matched ? this.state.value : f(this.input);
|
|
1537
1537
|
}
|
|
1538
1538
|
exhaustive() {
|
|
1539
1539
|
if (this.state.matched) return this.state.value;
|
|
1540
|
-
throw new
|
|
1540
|
+
throw new C0(this.input);
|
|
1541
1541
|
}
|
|
1542
1542
|
run() {
|
|
1543
1543
|
return this.exhaustive();
|
|
@@ -1546,13 +1546,13 @@ class U {
|
|
|
1546
1546
|
return this;
|
|
1547
1547
|
}
|
|
1548
1548
|
}
|
|
1549
|
-
var
|
|
1550
|
-
function
|
|
1549
|
+
var B0 = /* @__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[t.GREATER_THAN_OR_EQUAL = 6] = "GREATER_THAN_OR_EQUAL", t[t.LESS_THAN_OR_EQUAL = 7] = "LESS_THAN_OR_EQUAL", t))(B0 || {}), k0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t[t.TUPLE = 4] = "TUPLE", t))(k0 || {}), R0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(R0 || {});
|
|
1550
|
+
function P0(t) {
|
|
1551
1551
|
return Array.isArray(t.actionSteps);
|
|
1552
1552
|
}
|
|
1553
|
-
const W = class W extends
|
|
1553
|
+
const W = class W extends g0 {
|
|
1554
1554
|
constructor() {
|
|
1555
|
-
super(...arguments), this.abi =
|
|
1555
|
+
super(...arguments), this.abi = V;
|
|
1556
1556
|
}
|
|
1557
1557
|
/**
|
|
1558
1558
|
* Gets a specific action event by index
|
|
@@ -1575,13 +1575,13 @@ const W = class W extends c0 {
|
|
|
1575
1575
|
* @returns {Promise<ActionStep[]>}
|
|
1576
1576
|
*/
|
|
1577
1577
|
async getActionSteps(f) {
|
|
1578
|
-
const e = await
|
|
1578
|
+
const e = await b0(this._config, {
|
|
1579
1579
|
address: this.assertValidAddress(),
|
|
1580
1580
|
...this.optionallyAttachAccount(),
|
|
1581
1581
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1582
1582
|
...f
|
|
1583
1583
|
});
|
|
1584
|
-
return
|
|
1584
|
+
return L0(e.map(t0));
|
|
1585
1585
|
}
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Gets the count of action events
|
|
@@ -1603,12 +1603,12 @@ const W = class W extends c0 {
|
|
|
1603
1603
|
* @returns {Promise<ActionClaimant>}
|
|
1604
1604
|
*/
|
|
1605
1605
|
async getActionClaimant(f) {
|
|
1606
|
-
const e = await
|
|
1606
|
+
const e = await u0(this._config, {
|
|
1607
1607
|
address: this.assertValidAddress(),
|
|
1608
1608
|
...this.optionallyAttachAccount(),
|
|
1609
1609
|
...f
|
|
1610
1610
|
});
|
|
1611
|
-
return
|
|
1611
|
+
return t0(e);
|
|
1612
1612
|
}
|
|
1613
1613
|
/**
|
|
1614
1614
|
* Executes a prepared event action
|
|
@@ -1632,14 +1632,14 @@ const W = class W extends c0 {
|
|
|
1632
1632
|
* @returns {Promise<{ hash: `0x${string}`; result: readonly [boolean, `0x${string}`]; }>}
|
|
1633
1633
|
*/
|
|
1634
1634
|
async executeRaw(f, e) {
|
|
1635
|
-
const { request: n, result: d } = await
|
|
1635
|
+
const { request: n, result: d } = await o0(this._config, {
|
|
1636
1636
|
address: this.assertValidAddress(),
|
|
1637
1637
|
...this.optionallyAttachAccount(),
|
|
1638
1638
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1639
1639
|
...e,
|
|
1640
1640
|
args: [f]
|
|
1641
1641
|
});
|
|
1642
|
-
return { hash: await
|
|
1642
|
+
return { hash: await c0(this._config, n), result: d };
|
|
1643
1643
|
}
|
|
1644
1644
|
/**
|
|
1645
1645
|
* Derives the action claimant address from a transaction based on the provided ActionClaimant configuration.
|
|
@@ -1676,9 +1676,9 @@ const W = class W extends c0 {
|
|
|
1676
1676
|
* @throws {FunctionDataDecodeError} If there's an error decoding function data (for function-based derivation).
|
|
1677
1677
|
*/
|
|
1678
1678
|
async deriveActionClaimantFromTransaction(f, e) {
|
|
1679
|
-
if (f.fieldIndex ===
|
|
1679
|
+
if (f.fieldIndex === S.TX_SENDER_CLAIMANT) {
|
|
1680
1680
|
if ("hash" in e) {
|
|
1681
|
-
const d = await
|
|
1681
|
+
const d = await B(this._config, {
|
|
1682
1682
|
...e,
|
|
1683
1683
|
chainId: f.chainid
|
|
1684
1684
|
});
|
|
@@ -1687,7 +1687,7 @@ const W = class W extends c0 {
|
|
|
1687
1687
|
if ("logs" in e) {
|
|
1688
1688
|
for (let d of e.logs)
|
|
1689
1689
|
if (d.transactionHash) {
|
|
1690
|
-
const i = await
|
|
1690
|
+
const i = await B(this._config, {
|
|
1691
1691
|
...e,
|
|
1692
1692
|
hash: d.transactionHash,
|
|
1693
1693
|
chainId: f.chainid
|
|
@@ -1701,11 +1701,11 @@ const W = class W extends c0 {
|
|
|
1701
1701
|
if (f.signatureType === 0) {
|
|
1702
1702
|
let d;
|
|
1703
1703
|
if (e.abiItem ? d = e.abiItem : d = e.knownSignatures[n], !d)
|
|
1704
|
-
throw new
|
|
1704
|
+
throw new R(n);
|
|
1705
1705
|
let i;
|
|
1706
1706
|
if ("logs" in e) {
|
|
1707
1707
|
for (let r of e.logs) {
|
|
1708
|
-
if (!
|
|
1708
|
+
if (!I(r.address, f.targetContract)) continue;
|
|
1709
1709
|
let o = this.validateClaimantAgainstArgs(
|
|
1710
1710
|
f,
|
|
1711
1711
|
r
|
|
@@ -1714,33 +1714,33 @@ const W = class W extends c0 {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
return i;
|
|
1716
1716
|
}
|
|
1717
|
-
const a = await
|
|
1717
|
+
const a = await Q(this._config, {
|
|
1718
1718
|
...e,
|
|
1719
1719
|
chainId: f.chainid
|
|
1720
1720
|
});
|
|
1721
1721
|
if (e.notBeforeBlockNumber && a.blockNumber < e.notBeforeBlockNumber)
|
|
1722
1722
|
return;
|
|
1723
1723
|
let s;
|
|
1724
|
-
n === M ? { decodedLogs: s } = await this.decodeTransferLogs(a) : s = a.logs.filter((r) => r.topics[0] ===
|
|
1724
|
+
n === M ? { decodedLogs: s } = await this.decodeTransferLogs(a) : s = a.logs.filter((r) => r.topics[0] === j(d)).map((r) => n0(d, r));
|
|
1725
1725
|
for (let r of s) {
|
|
1726
|
-
if (!
|
|
1726
|
+
if (!I(r.address, f.targetContract)) continue;
|
|
1727
1727
|
let o = this.validateClaimantAgainstArgs(f, r);
|
|
1728
1728
|
o && (i = o);
|
|
1729
1729
|
}
|
|
1730
1730
|
return i;
|
|
1731
1731
|
}
|
|
1732
1732
|
if (f.signatureType === 1 && "hash" in e) {
|
|
1733
|
-
const d = await
|
|
1733
|
+
const d = await B(this._config, {
|
|
1734
1734
|
...e,
|
|
1735
1735
|
chainId: f.chainid
|
|
1736
1736
|
});
|
|
1737
|
-
if (e.notBeforeBlockNumber && d.blockNumber < e.notBeforeBlockNumber || !
|
|
1737
|
+
if (e.notBeforeBlockNumber && d.blockNumber < e.notBeforeBlockNumber || !I(d.to, f.targetContract)) return;
|
|
1738
1738
|
let i;
|
|
1739
1739
|
if (e.abiItem ? i = e.abiItem : i = e.knownSignatures[n], !i)
|
|
1740
|
-
throw new
|
|
1740
|
+
throw new R(f.signature);
|
|
1741
1741
|
let a;
|
|
1742
1742
|
try {
|
|
1743
|
-
a =
|
|
1743
|
+
a = X({
|
|
1744
1744
|
abi: [i],
|
|
1745
1745
|
data: d.input
|
|
1746
1746
|
});
|
|
@@ -1762,7 +1762,7 @@ const W = class W extends c0 {
|
|
|
1762
1762
|
if (!e || !Array.isArray(e == null ? void 0 : e.args) || (e == null ? void 0 : e.args.length) <= f.fieldIndex)
|
|
1763
1763
|
return;
|
|
1764
1764
|
const n = e.args.at(f.fieldIndex);
|
|
1765
|
-
if (
|
|
1765
|
+
if (z(n)) return n;
|
|
1766
1766
|
}
|
|
1767
1767
|
/**
|
|
1768
1768
|
* Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
|
|
@@ -1796,7 +1796,7 @@ const W = class W extends c0 {
|
|
|
1796
1796
|
const n = f.signature;
|
|
1797
1797
|
let d;
|
|
1798
1798
|
if (e.abiItem ? d = e.abiItem : d = e.knownSignatures[n], !d)
|
|
1799
|
-
throw new
|
|
1799
|
+
throw new R(n);
|
|
1800
1800
|
if (this.isArraylikeIndexed(f, d))
|
|
1801
1801
|
throw new $(
|
|
1802
1802
|
f.actionParameter.fieldIndex,
|
|
@@ -1804,7 +1804,7 @@ const W = class W extends c0 {
|
|
|
1804
1804
|
);
|
|
1805
1805
|
if ("logs" in e)
|
|
1806
1806
|
return this.isActionEventValid(f, e.logs, d);
|
|
1807
|
-
const i = await
|
|
1807
|
+
const i = await Q(this._config, {
|
|
1808
1808
|
...e,
|
|
1809
1809
|
chainId: f.chainid
|
|
1810
1810
|
});
|
|
@@ -1814,11 +1814,11 @@ const W = class W extends c0 {
|
|
|
1814
1814
|
const { decodedLogs: s, event: r } = await this.decodeTransferLogs(i);
|
|
1815
1815
|
return this.isActionEventValid(f, s, r);
|
|
1816
1816
|
}
|
|
1817
|
-
const a = i.logs.filter((s) => s.topics[0] ===
|
|
1817
|
+
const a = i.logs.filter((s) => s.topics[0] === j(d)).map((s) => n0(d, s));
|
|
1818
1818
|
return this.isActionEventValid(f, a, d);
|
|
1819
1819
|
}
|
|
1820
1820
|
if (f.signatureType === 1 && "hash" in e) {
|
|
1821
|
-
const n = await
|
|
1821
|
+
const n = await B(this._config, {
|
|
1822
1822
|
...e,
|
|
1823
1823
|
chainId: f.chainid
|
|
1824
1824
|
});
|
|
@@ -1841,7 +1841,7 @@ const W = class W extends c0 {
|
|
|
1841
1841
|
for (let i of e)
|
|
1842
1842
|
try {
|
|
1843
1843
|
if (!Array.isArray(i.args))
|
|
1844
|
-
throw new
|
|
1844
|
+
throw new x0({
|
|
1845
1845
|
log: i,
|
|
1846
1846
|
criteria: d,
|
|
1847
1847
|
fieldValue: void 0
|
|
@@ -1877,7 +1877,9 @@ const W = class W extends c0 {
|
|
|
1877
1877
|
async decodeTransferLogs(f) {
|
|
1878
1878
|
const e = f.logs.filter(
|
|
1879
1879
|
(d) => d.topics[0] === M
|
|
1880
|
-
), n =
|
|
1880
|
+
), n = structuredClone(
|
|
1881
|
+
E0["Transfer(address indexed,address indexed,uint256 indexed)"]
|
|
1882
|
+
);
|
|
1881
1883
|
try {
|
|
1882
1884
|
return {
|
|
1883
1885
|
decodedLogs: e.map((i) => {
|
|
@@ -1904,7 +1906,7 @@ const W = class W extends c0 {
|
|
|
1904
1906
|
event: n
|
|
1905
1907
|
};
|
|
1906
1908
|
} catch {
|
|
1907
|
-
throw new
|
|
1909
|
+
throw new d0("Failed to decode transfer logs");
|
|
1908
1910
|
}
|
|
1909
1911
|
}
|
|
1910
1912
|
}
|
|
@@ -1921,41 +1923,41 @@ const W = class W extends c0 {
|
|
|
1921
1923
|
* @returns {{ value: string | bigint | Hex; type: Exclude<PrimitiveType, PrimitiveType.TUPLE> }}
|
|
1922
1924
|
*/
|
|
1923
1925
|
parseFieldFromAbi(f, e, n, d) {
|
|
1924
|
-
if (e ===
|
|
1926
|
+
if (e === S.ANY_ACTION_PARAM)
|
|
1925
1927
|
return {
|
|
1926
|
-
value:
|
|
1928
|
+
value: N,
|
|
1927
1929
|
type: 2
|
|
1928
1930
|
/* BYTES */
|
|
1929
1931
|
};
|
|
1930
1932
|
if (d !== 4) {
|
|
1931
1933
|
if (!Array.isArray(f) || e >= f.length)
|
|
1932
|
-
throw new
|
|
1934
|
+
throw new Y({
|
|
1933
1935
|
fieldValue: f,
|
|
1934
1936
|
criteria: {
|
|
1935
1937
|
filterType: 0,
|
|
1936
1938
|
fieldType: d,
|
|
1937
1939
|
fieldIndex: e,
|
|
1938
|
-
filterData:
|
|
1940
|
+
filterData: N
|
|
1939
1941
|
}
|
|
1940
1942
|
});
|
|
1941
1943
|
const a = n[e];
|
|
1942
1944
|
if (!a || !a.type)
|
|
1943
1945
|
throw new $(e, a);
|
|
1944
|
-
const s = f[e], r =
|
|
1945
|
-
if (r === 1 && (typeof s != "string" || !
|
|
1946
|
-
throw new
|
|
1946
|
+
const s = f[e], r = a0(a.type);
|
|
1947
|
+
if (r === 1 && (typeof s != "string" || !z(s)))
|
|
1948
|
+
throw new Y({
|
|
1947
1949
|
fieldValue: s,
|
|
1948
1950
|
criteria: {
|
|
1949
1951
|
fieldIndex: e,
|
|
1950
1952
|
filterType: 0,
|
|
1951
1953
|
fieldType: r,
|
|
1952
|
-
filterData:
|
|
1954
|
+
filterData: N
|
|
1953
1955
|
}
|
|
1954
1956
|
});
|
|
1955
1957
|
return { value: s, type: r };
|
|
1956
1958
|
}
|
|
1957
|
-
const i =
|
|
1958
|
-
return
|
|
1959
|
+
const i = W0(e);
|
|
1960
|
+
return i0(f, i, n);
|
|
1959
1961
|
}
|
|
1960
1962
|
/**
|
|
1961
1963
|
* Validates a single action function with a given criteria against the transaction input.
|
|
@@ -1974,10 +1976,10 @@ const W = class W extends c0 {
|
|
|
1974
1976
|
const d = f.actionParameter, i = f.signature;
|
|
1975
1977
|
let a;
|
|
1976
1978
|
if (n.abiItem ? a = n.abiItem : a = n.knownSignatures[i], !a)
|
|
1977
|
-
throw new
|
|
1979
|
+
throw new R(i);
|
|
1978
1980
|
let s;
|
|
1979
1981
|
try {
|
|
1980
|
-
s =
|
|
1982
|
+
s = X({
|
|
1981
1983
|
abi: [a],
|
|
1982
1984
|
data: e.input
|
|
1983
1985
|
});
|
|
@@ -2013,7 +2015,7 @@ const W = class W extends c0 {
|
|
|
2013
2015
|
* @returns {boolean} - Returns true if the field passes the criteria, false otherwise.
|
|
2014
2016
|
*/
|
|
2015
2017
|
validateFieldAgainstCriteria(f, e, n) {
|
|
2016
|
-
if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex ===
|
|
2018
|
+
if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex === S.ANY_ACTION_PARAM)
|
|
2017
2019
|
return !0;
|
|
2018
2020
|
if (f.fieldType === 4)
|
|
2019
2021
|
throw new v(
|
|
@@ -2022,31 +2024,31 @@ const W = class W extends c0 {
|
|
|
2022
2024
|
const d = f.fieldType;
|
|
2023
2025
|
switch (f.filterType) {
|
|
2024
2026
|
case 0:
|
|
2025
|
-
return
|
|
2027
|
+
return f0(d).with(
|
|
2026
2028
|
1,
|
|
2027
|
-
() =>
|
|
2029
|
+
() => I(f.filterData, e)
|
|
2028
2030
|
).with(
|
|
2029
2031
|
0,
|
|
2030
2032
|
() => BigInt(e) === BigInt(f.filterData)
|
|
2031
2033
|
).with(
|
|
2032
2034
|
3,
|
|
2033
|
-
() => e ===
|
|
2035
|
+
() => e === k(f.filterData, "string")
|
|
2034
2036
|
).otherwise(() => e === f.filterData);
|
|
2035
2037
|
case 1:
|
|
2036
|
-
return
|
|
2038
|
+
return f0(d).with(
|
|
2037
2039
|
1,
|
|
2038
|
-
() => !
|
|
2040
|
+
() => !I(f.filterData, e)
|
|
2039
2041
|
).with(
|
|
2040
2042
|
0,
|
|
2041
2043
|
() => BigInt(e) !== BigInt(f.filterData)
|
|
2042
2044
|
).with(
|
|
2043
2045
|
3,
|
|
2044
|
-
() => e !==
|
|
2046
|
+
() => e !== k(f.filterData, "string")
|
|
2045
2047
|
).otherwise(() => e !== f.filterData);
|
|
2046
2048
|
case 2:
|
|
2047
2049
|
if (d === 0)
|
|
2048
2050
|
return BigInt(e) > BigInt(f.filterData);
|
|
2049
|
-
throw new
|
|
2051
|
+
throw new P({
|
|
2050
2052
|
...n,
|
|
2051
2053
|
criteria: f,
|
|
2052
2054
|
fieldValue: e
|
|
@@ -2054,7 +2056,7 @@ const W = class W extends c0 {
|
|
|
2054
2056
|
case 6:
|
|
2055
2057
|
if (d === 0)
|
|
2056
2058
|
return BigInt(e) >= BigInt(f.filterData);
|
|
2057
|
-
throw new
|
|
2059
|
+
throw new P({
|
|
2058
2060
|
...n,
|
|
2059
2061
|
criteria: f,
|
|
2060
2062
|
fieldValue: e
|
|
@@ -2062,7 +2064,7 @@ const W = class W extends c0 {
|
|
|
2062
2064
|
case 3:
|
|
2063
2065
|
if (d === 0)
|
|
2064
2066
|
return BigInt(e) < BigInt(f.filterData);
|
|
2065
|
-
throw new
|
|
2067
|
+
throw new P({
|
|
2066
2068
|
...n,
|
|
2067
2069
|
criteria: f,
|
|
2068
2070
|
fieldValue: e
|
|
@@ -2070,7 +2072,7 @@ const W = class W extends c0 {
|
|
|
2070
2072
|
case 7:
|
|
2071
2073
|
if (d === 0)
|
|
2072
2074
|
return BigInt(e) <= BigInt(f.filterData);
|
|
2073
|
-
throw new
|
|
2075
|
+
throw new P({
|
|
2074
2076
|
...n,
|
|
2075
2077
|
criteria: f,
|
|
2076
2078
|
fieldValue: e
|
|
@@ -2078,26 +2080,26 @@ const W = class W extends c0 {
|
|
|
2078
2080
|
case 4:
|
|
2079
2081
|
if (d === 2 || d === 3) {
|
|
2080
2082
|
let i;
|
|
2081
|
-
return d === 3 ? i =
|
|
2083
|
+
return d === 3 ? i = k(f.filterData, "string") : i = f.filterData.slice(2), e.includes(i);
|
|
2082
2084
|
}
|
|
2083
|
-
throw new
|
|
2085
|
+
throw new Z({
|
|
2084
2086
|
...n,
|
|
2085
2087
|
criteria: f,
|
|
2086
2088
|
fieldValue: e
|
|
2087
2089
|
});
|
|
2088
2090
|
case 5:
|
|
2089
2091
|
if (typeof e != "string")
|
|
2090
|
-
throw new
|
|
2092
|
+
throw new Z({
|
|
2091
2093
|
...n,
|
|
2092
2094
|
criteria: f,
|
|
2093
2095
|
fieldValue: e
|
|
2094
2096
|
});
|
|
2095
2097
|
if (d === 3) {
|
|
2096
|
-
const i =
|
|
2098
|
+
const i = k(f.filterData, "string");
|
|
2097
2099
|
return new RegExp(i).test(e);
|
|
2098
2100
|
}
|
|
2099
2101
|
default:
|
|
2100
|
-
throw new
|
|
2102
|
+
throw new m0({
|
|
2101
2103
|
...n,
|
|
2102
2104
|
criteria: f,
|
|
2103
2105
|
fieldValue: e
|
|
@@ -2118,12 +2120,12 @@ const W = class W extends c0 {
|
|
|
2118
2120
|
e
|
|
2119
2121
|
);
|
|
2120
2122
|
let i;
|
|
2121
|
-
if (
|
|
2123
|
+
if (P0(n)) {
|
|
2122
2124
|
let a = n.actionSteps.filter((r) => !!r);
|
|
2123
2125
|
if (a.length === 0)
|
|
2124
|
-
throw new
|
|
2126
|
+
throw new w0();
|
|
2125
2127
|
if (a.length > 4)
|
|
2126
|
-
throw new
|
|
2128
|
+
throw new A0();
|
|
2127
2129
|
let s = Array.from({ length: 4 }, (r, o) => a.at(o) || a.at(-1));
|
|
2128
2130
|
i = {
|
|
2129
2131
|
actionClaimant: n.actionClaimant,
|
|
@@ -2135,9 +2137,9 @@ const W = class W extends c0 {
|
|
|
2135
2137
|
} else
|
|
2136
2138
|
i = n;
|
|
2137
2139
|
return {
|
|
2138
|
-
abi:
|
|
2139
|
-
bytecode:
|
|
2140
|
-
args: [
|
|
2140
|
+
abi: V,
|
|
2141
|
+
bytecode: T0,
|
|
2142
|
+
args: [U0(i)],
|
|
2141
2143
|
...this.optionallyAttachAccount(d.account)
|
|
2142
2144
|
};
|
|
2143
2145
|
}
|
|
@@ -2157,13 +2159,13 @@ const W = class W extends c0 {
|
|
|
2157
2159
|
};
|
|
2158
2160
|
W.bases = {
|
|
2159
2161
|
31337: void 0,
|
|
2160
|
-
...
|
|
2161
|
-
}, W.registryType =
|
|
2162
|
-
let
|
|
2163
|
-
function
|
|
2162
|
+
...h0
|
|
2163
|
+
}, W.registryType = v0.ACTION;
|
|
2164
|
+
let e0 = W;
|
|
2165
|
+
function _0(t) {
|
|
2164
2166
|
return t.type === "tuple" || t.type.startsWith("tuple[");
|
|
2165
2167
|
}
|
|
2166
|
-
function
|
|
2168
|
+
function i0(t, f, e) {
|
|
2167
2169
|
if (!f.length)
|
|
2168
2170
|
throw new v(
|
|
2169
2171
|
"No indexes found; cannot parse TUPLE field"
|
|
@@ -2172,8 +2174,8 @@ function d0(t, f, e) {
|
|
|
2172
2174
|
if (n >= e.length)
|
|
2173
2175
|
throw new v(void 0, n);
|
|
2174
2176
|
const d = e[n], i = t[n];
|
|
2175
|
-
if (!
|
|
2176
|
-
const r =
|
|
2177
|
+
if (!_0(d)) {
|
|
2178
|
+
const r = a0(d.type);
|
|
2177
2179
|
return { value: i, type: r };
|
|
2178
2180
|
}
|
|
2179
2181
|
if (!Array.isArray(i))
|
|
@@ -2186,9 +2188,9 @@ function d0(t, f, e) {
|
|
|
2186
2188
|
const s = a[0] ?? d.components.length + 1;
|
|
2187
2189
|
if (s >= d.components.length)
|
|
2188
2190
|
throw new v(void 0, s);
|
|
2189
|
-
return
|
|
2191
|
+
return i0(i, a, d.components);
|
|
2190
2192
|
}
|
|
2191
|
-
function
|
|
2193
|
+
function a0(t) {
|
|
2192
2194
|
const f = t.toLowerCase();
|
|
2193
2195
|
if (f.startsWith("uint") || f.startsWith("int"))
|
|
2194
2196
|
return 0;
|
|
@@ -2198,9 +2200,9 @@ function i0(t) {
|
|
|
2198
2200
|
return 2;
|
|
2199
2201
|
if (f === "string")
|
|
2200
2202
|
return 3;
|
|
2201
|
-
throw new
|
|
2203
|
+
throw new d0(`Unrecognized ABI type: ${t}`);
|
|
2202
2204
|
}
|
|
2203
|
-
function
|
|
2205
|
+
function L0(t) {
|
|
2204
2206
|
const f = [], e = {};
|
|
2205
2207
|
for (let n of t) {
|
|
2206
2208
|
const d = JSON.stringify(n);
|
|
@@ -2208,13 +2210,13 @@ function k0(t) {
|
|
|
2208
2210
|
}
|
|
2209
2211
|
return f;
|
|
2210
2212
|
}
|
|
2211
|
-
function
|
|
2213
|
+
function s0(t) {
|
|
2212
2214
|
return {
|
|
2213
2215
|
...t,
|
|
2214
2216
|
chainid: BigInt(t.chainid)
|
|
2215
2217
|
};
|
|
2216
2218
|
}
|
|
2217
|
-
function
|
|
2219
|
+
function t0(t) {
|
|
2218
2220
|
if (t.chainid > BigInt(Number.MAX_SAFE_INTEGER))
|
|
2219
2221
|
throw new Error("Chain ID exceeds max safe integer");
|
|
2220
2222
|
return {
|
|
@@ -2222,14 +2224,37 @@ function e0(t) {
|
|
|
2222
2224
|
chainid: Number(t.chainid)
|
|
2223
2225
|
};
|
|
2224
2226
|
}
|
|
2225
|
-
function
|
|
2227
|
+
function r0(t) {
|
|
2228
|
+
const f = t.slice(2);
|
|
2229
|
+
if (f.length === 8)
|
|
2230
|
+
return 1;
|
|
2231
|
+
if (f.length === 64)
|
|
2232
|
+
return f.slice(0, 56) === "0".repeat(56) ? 1 : 0;
|
|
2233
|
+
throw new Error("Invalid signature format");
|
|
2234
|
+
}
|
|
2235
|
+
function D0(t) {
|
|
2236
|
+
return l0(G(t));
|
|
2237
|
+
}
|
|
2238
|
+
function _(t) {
|
|
2239
|
+
return {
|
|
2240
|
+
...s0(t),
|
|
2241
|
+
signatureType: t.signatureType ?? r0(t.signature),
|
|
2242
|
+
signature: G(t.signature),
|
|
2243
|
+
actionType: t.actionType || 0,
|
|
2244
|
+
actionParameter: t.actionParameter.fieldType === 0 ? {
|
|
2245
|
+
...t.actionParameter,
|
|
2246
|
+
filterData: D0(t.actionParameter.filterData)
|
|
2247
|
+
} : t.actionParameter
|
|
2248
|
+
};
|
|
2249
|
+
}
|
|
2250
|
+
function U0({
|
|
2226
2251
|
actionClaimant: t,
|
|
2227
2252
|
actionStepOne: f,
|
|
2228
2253
|
actionStepTwo: e,
|
|
2229
2254
|
actionStepThree: n,
|
|
2230
2255
|
actionStepFour: d
|
|
2231
2256
|
}) {
|
|
2232
|
-
return
|
|
2257
|
+
return p0(
|
|
2233
2258
|
[
|
|
2234
2259
|
{
|
|
2235
2260
|
type: "tuple",
|
|
@@ -2335,58 +2360,50 @@ function R0({
|
|
|
2335
2360
|
],
|
|
2336
2361
|
[
|
|
2337
2362
|
{
|
|
2338
|
-
actionClaimant:
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2363
|
+
actionClaimant: {
|
|
2364
|
+
...s0(t),
|
|
2365
|
+
signatureType: t.signatureType ?? r0(t.signature),
|
|
2366
|
+
signature: G(t.signature)
|
|
2342
2367
|
},
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
actionStepThree: {
|
|
2348
|
-
...I(n),
|
|
2349
|
-
actionType: n.actionType || 0
|
|
2350
|
-
},
|
|
2351
|
-
actionStepFour: {
|
|
2352
|
-
...I(d),
|
|
2353
|
-
actionType: d.actionType || 0
|
|
2354
|
-
}
|
|
2368
|
+
actionStepOne: _(f),
|
|
2369
|
+
actionStepTwo: _(e),
|
|
2370
|
+
actionStepThree: _(n),
|
|
2371
|
+
actionStepFour: _(d)
|
|
2355
2372
|
}
|
|
2356
2373
|
]
|
|
2357
2374
|
);
|
|
2358
2375
|
}
|
|
2359
|
-
function
|
|
2376
|
+
function j0() {
|
|
2360
2377
|
return {
|
|
2361
2378
|
filterType: 0,
|
|
2362
2379
|
fieldType: 2,
|
|
2363
|
-
fieldIndex:
|
|
2364
|
-
filterData:
|
|
2380
|
+
fieldIndex: S.ANY_ACTION_PARAM,
|
|
2381
|
+
filterData: N
|
|
2365
2382
|
};
|
|
2366
2383
|
}
|
|
2367
|
-
function
|
|
2384
|
+
function X0(t) {
|
|
2368
2385
|
return {
|
|
2369
2386
|
signatureType: 0,
|
|
2370
|
-
signature:
|
|
2371
|
-
fieldIndex:
|
|
2372
|
-
targetContract:
|
|
2387
|
+
signature: N,
|
|
2388
|
+
fieldIndex: S.TX_SENDER_CLAIMANT,
|
|
2389
|
+
targetContract: y0,
|
|
2373
2390
|
chainid: t
|
|
2374
2391
|
};
|
|
2375
2392
|
}
|
|
2376
2393
|
const T = 63;
|
|
2377
|
-
function
|
|
2394
|
+
function z0(t) {
|
|
2378
2395
|
if (t.length > 5)
|
|
2379
|
-
throw new
|
|
2396
|
+
throw new q("Can only pack up to 5 indexes.");
|
|
2380
2397
|
let f = 0;
|
|
2381
2398
|
return t.forEach((e, n) => {
|
|
2382
2399
|
if (e > T)
|
|
2383
|
-
throw new
|
|
2400
|
+
throw new q(
|
|
2384
2401
|
`Index ${e} exceeds the maximum allowed value (${T}).`
|
|
2385
2402
|
);
|
|
2386
2403
|
f |= (e & T) << n * 6;
|
|
2387
2404
|
}), t.length < 5 && (f |= T << t.length * 6), f;
|
|
2388
2405
|
}
|
|
2389
|
-
function
|
|
2406
|
+
function W0(t) {
|
|
2390
2407
|
const f = [];
|
|
2391
2408
|
for (let e = 0; e < 5; e++) {
|
|
2392
2409
|
const n = t >> e * 6 & T;
|
|
@@ -2395,7 +2412,7 @@ function _0(t) {
|
|
|
2395
2412
|
}
|
|
2396
2413
|
return f;
|
|
2397
2414
|
}
|
|
2398
|
-
function
|
|
2415
|
+
function n0(t, f) {
|
|
2399
2416
|
const e = O({
|
|
2400
2417
|
abi: [t],
|
|
2401
2418
|
data: f.data,
|
|
@@ -2422,16 +2439,17 @@ function t0(t, f) {
|
|
|
2422
2439
|
};
|
|
2423
2440
|
}
|
|
2424
2441
|
export {
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2442
|
+
e0 as EventAction,
|
|
2443
|
+
B0 as FilterType,
|
|
2444
|
+
k0 as PrimitiveType,
|
|
2445
|
+
R0 as SignatureType,
|
|
2446
|
+
j0 as anyActionParameter,
|
|
2447
|
+
n0 as decodeAndReorderLogArgs,
|
|
2448
|
+
r0 as detectSignatureType,
|
|
2449
|
+
P0 as isEventActionPayloadSimple,
|
|
2450
|
+
z0 as packFieldIndexes,
|
|
2451
|
+
U0 as prepareEventActionPayload,
|
|
2452
|
+
X0 as transactionSenderClaimant,
|
|
2453
|
+
W0 as unpackFieldIndexes
|
|
2436
2454
|
};
|
|
2437
2455
|
//# sourceMappingURL=EventAction.js.map
|