@boostxyz/sdk 8.0.1 → 8.0.2
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 +1 -2
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +218 -218
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.js.map +1 -1
- package/package.json +1 -1
- package/src/Actions/EventAction.test.ts +42 -0
- package/src/Actions/EventAction.ts +35 -34
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { du as
|
|
2
|
-
import { getTransaction as
|
|
3
|
-
import { isAddressEqual as h, zeroAddress as S, decodeFunctionData as
|
|
4
|
-
import { m as
|
|
5
|
-
import { DeployableTarget as
|
|
6
|
-
import { ValidationAbiMissingError as N, FunctionDataDecodeError as
|
|
7
|
-
import { RegistryType as
|
|
8
|
-
const I0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b608051611c666100945f395f6101510152611c665ff3fe6080604052600436106100ad575f3560e01c80639bc1cf8111610066578063d7768c471161004c578063d7768c4714610206578063dbdf211014610232578063ddd6ab0814610253575f80fd5b80639bc1cf81146101b9578063c26624e8146101da575f80fd5b806328d6183b1161009657806328d6183b14610106578063393df8cb14610140578063439fab9114610198575f80fd5b806301ffc9a7146100b157806309c5eabe146100e5575b5f80fd5b3480156100bc575f80fd5b506100d06100cb36600461128c565b610270565b60405190151581526020015b60405180910390f35b6100f86100f33660046112d2565b6102cb565b6040516100dc92919061138c565b348015610111575f80fd5b506040517f7687b0ed0000000000000000000000000000000000000000000000000000000081526020016100dc565b34801561014b575f80fd5b506101737f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100dc565b3480156101a3575f80fd5b506101b76101b23660046112d2565b610300565b005b3480156101c4575f80fd5b506101cd6103a0565b6040516100dc91906114a6565b3480156101e5575f80fd5b506101f96101f4366004611527565b61059f565b6040516100dc919061153e565b348015610211575f80fd5b506102256102203660046112d2565b61077a565b6040516100dc9190611550565b34801561023d575f80fd5b506102466107ae565b6040516100dc91906115b5565b34801561025e575f80fd5b506004546040519081526020016100dc565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7687b0ed0000000000000000000000000000000000000000000000000000000014806102c557506102c58261085e565b92915050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156103515760018160011c14303b106103485763f92ee8a95f526004601cfd5b818160ff1b1b91505b50610366610361838501856118e7565b6108b3565b801561039b576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610596578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff166001811115610410576104106113ae565b6001811115610421576104216113ae565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610494576104946113ae565b60078111156104a5576104a56113ae565b81528154602090910190610100900460ff1660058111156104c8576104c86113ae565b60058111156104d9576104d96113ae565b8152815462010000900463ffffffff166020820152600182018054604090920191610503906119e8565b80601f016020809104026020016040519081016040528092919081815260200182805461052f906119e8565b801561057a5780601f106105515761010080835404028352916020019161057a565b820191905f5260205f20905b81548152906001019060200180831161055d57829003601f168201915b50505050508152505081525050815260200190600101906103c3565b50505050905090565b6105a7611231565b600482815481106105ba576105ba611a39565b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156105fd576105fd6113ae565b600181111561060e5761060e6113ae565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610681576106816113ae565b6007811115610692576106926113ae565b81528154602090910190610100900460ff1660058111156106b5576106b56113ae565b60058111156106c6576106c66113ae565b8152815462010000900463ffffffff1660208201526001820180546040909201916106f0906119e8565b80601f016020809104026020016040519081016040528092919081815260200182805461071c906119e8565b80156107675780601f1061073e57610100808354040283529160200191610767565b820191905f5260205f20905b81548152906001019060200180831161074a57829003601f168201915b5050509190925250505090525092915050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a081019091525f8054829060ff1660018111156107fc576107fc6113ae565b600181111561080d5761080d6113ae565b815260018201546020820152600282015463ffffffff81166040830152640100000000900473ffffffffffffffffffffffffffffffffffffffff166060820152600390910154608090910152919050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe67157950000000000000000000000000000000000000000000000000000000014806102c557506102c582611161565b6108bb6111f7565b805180515f8054909190829060ff1916600183818111156108de576108de6113ae565b02179055506020828101516001808401919091556040840151600284018054606087015173ffffffffffffffffffffffffffffffffffffffff16640100000000027fffffffffffffffff00000000000000000000000000000000000000000000000090911663ffffffff90931692909217919091179055608090930151600390920191909155828101516004805480850182555f91909152815160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101918255928201517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c90930180549294919392909160ff199091169083818111156109ec576109ec6113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610aad57610aad6113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610af257610af26113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610b469082611ab1565b505050604083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610bd757610bd76113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610c9857610c986113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610cdd57610cdd6113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610d319082611ab1565b505050606083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610dc257610dc26113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610e8357610e836113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ec857610ec86113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610f1c9082611ab1565b505050608083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610fad57610fad6113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff199091169083600781111561106e5761106e6113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101008360058111156110b3576110b36113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff909116178155606082015160018201906111079082611ab1565b50505050507f7c54f3f7ef1d1e3acbe06bce75dbb6f17c64cb446c13bf354da8d7735b99f2a6815f01518260200151836040015184606001518560800151604051611156959493929190611bc8565b60405180910390a150565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806102c557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146102c5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132805460011661122e5763d7e6bcf85f526004601cfd5b50565b6040805160c081019091525f808252602082019081525f602082018190526040820181905260608201526080016112876040805160808101909152805f81526020015f81525f6020820152606060409091015290565b905290565b5f6020828403121561129c575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112cb575f80fd5b9392505050565b5f80602083850312156112e3575f80fd5b823567ffffffffffffffff8111156112f9575f80fd5b8301601f81018513611309575f80fd5b803567ffffffffffffffff81111561131f575f80fd5b856020828401011115611330575f80fd5b6020919091019590945092505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b8215158152604060208201525f6113a66040830184611340565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600281106113eb576113eb6113ae565b9052565b805182525f602082015161140660208501826113db565b5060ff604083015116604084015273ffffffffffffffffffffffffffffffffffffffff60608301511660608401526080820151608084015260a082015160c060a085015280516008811061145c5761145c6113ae565b60c0850152602081015160068110611476576114766113ae565b60e0850152604081015163ffffffff166101008501526060015160806101208501526113a6610140850182611340565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b8281101561151b577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184526115068583516113ef565b945060209384019391909101906001016114cc565b50929695505050505050565b5f60208284031215611537575f80fd5b5035919050565b602081525f6112cb60208301846113ef565b602081525f6112cb6020830184611340565b61156d8282516113db565b6020810151602083015263ffffffff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff6060820151166060830152608081015160808301525050565b60a081016102c58284611562565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160a0810167ffffffffffffffff81118282101715611613576116136115c3565b60405290565b6040516080810167ffffffffffffffff81118282101715611613576116136115c3565b60405160c0810167ffffffffffffffff81118282101715611613576116136115c3565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156116a6576116a66115c3565b604052919050565b8035600281106116bc575f80fd5b919050565b803563ffffffff811681146116bc575f80fd5b803573ffffffffffffffffffffffffffffffffffffffff811681146116bc575f80fd5b5f60a08284031215611707575f80fd5b61170f6115f0565b905061171a826116ae565b815260208281013590820152611732604083016116c1565b6040820152611743606083016116d4565b606082015260809182013591810191909152919050565b5f6080828403121561176a575f80fd5b611772611619565b9050813560088110611782575f80fd5b8152602082013560068110611795575f80fd5b60208201526117a6604083016116c1565b6040820152606082013567ffffffffffffffff8111156117c4575f80fd5b8201601f810184136117d4575f80fd5b803567ffffffffffffffff8111156117ee576117ee6115c3565b61181f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161165f565b818152856020838501011115611833575f80fd5b816020840160208301375f6020838301015280606085015250505092915050565b5f60c08284031215611864575f80fd5b61186c61163c565b82358152905061187e602083016116ae565b6020820152604082013560ff81168114611896575f80fd5b60408201526118a7606083016116d4565b60608201526080828101359082015260a082013567ffffffffffffffff8111156118cf575f80fd5b6118db8482850161175a565b60a08301525092915050565b5f602082840312156118f7575f80fd5b813567ffffffffffffffff81111561190d575f80fd5b8201610120818503121561191f575f80fd5b6119276115f0565b61193185836116f7565b815260a082013567ffffffffffffffff81111561194c575f80fd5b61195886828501611854565b60208301525060c082013567ffffffffffffffff811115611977575f80fd5b61198386828501611854565b60408301525060e082013567ffffffffffffffff8111156119a2575f80fd5b6119ae86828501611854565b60608301525061010082013567ffffffffffffffff8111156119ce575f80fd5b6119da86828501611854565b608083015250949350505050565b600181811c908216806119fc57607f821691505b602082108103611a33577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b601f82111561039b57805f5260205f20601f840160051c81016020851015611a8b5750805b601f840160051c820191505b81811015611aaa575f8155600101611a97565b5050505050565b815167ffffffffffffffff811115611acb57611acb6115c3565b611adf81611ad984546119e8565b84611a66565b6020601f821160018114611b30575f8315611afa5750848201515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b178455611aaa565b5f848152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08516915b82811015611b7d5787850151825560209485019460019092019101611b5d565b5084821015611bb957868401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b60f8161c191681555b50505050600190811b01905550565b611bd28187611562565b61012060a08201525f611be96101208301876113ef565b82810360c0840152611bfb81876113ef565b905082810360e0840152611c0f81866113ef565b9050828103610100840152611c2481856113ef565b9897505050505050505056fea2646970667358221220ec29c85e9420d542351535cfbb2c79285bfb5d86014ee966669d793fa2a4481264736f6c634300081a0033", E0 = {
|
|
1
|
+
import { du as K, dv as y0, dw as b0, dx as l0, dy as g0 } from "../generated-BHVNIVNJ.js";
|
|
2
|
+
import { getTransaction as P, getTransactionReceipt as G } from "@wagmi/core";
|
|
3
|
+
import { isAddressEqual as h, zeroAddress as S, decodeFunctionData as Y, isAddress as H, decodeEventLog as Z, zeroHash as k, fromHex as _, encodeAbiParameters as h0, pad as j, decodeAbiParameters as q, trim as x0 } from "viem";
|
|
4
|
+
import { m as m0 } from "../deployments-BU9mZtfo.js";
|
|
5
|
+
import { DeployableTarget as w0 } from "../Deployable/DeployableTarget.js";
|
|
6
|
+
import { ValidationAbiMissingError as N, FunctionDataDecodeError as J, UnparseableAbiParamError as f0, DecodedArgsMalformedError as A0, DecodedArgsError as v, FieldValueUndefinedError as e0, InvalidTupleDecodingError as E, UnrecognizedFilterTypeError as T0, FieldValueNotComparableError as t0, InvalidNumericalCriteriaError as D, NoEventActionStepsProvidedError as v0, TooManyEventActionStepsProvidedError as I0, InvalidTupleEncodingError as U } from "../errors.js";
|
|
7
|
+
import { RegistryType as E0, CheatCodes as R, TRANSFER_SIGNATURE as B } from "../utils.js";
|
|
8
|
+
const C0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b608051611c666100945f395f6101510152611c665ff3fe6080604052600436106100ad575f3560e01c80639bc1cf8111610066578063d7768c471161004c578063d7768c4714610206578063dbdf211014610232578063ddd6ab0814610253575f80fd5b80639bc1cf81146101b9578063c26624e8146101da575f80fd5b806328d6183b1161009657806328d6183b14610106578063393df8cb14610140578063439fab9114610198575f80fd5b806301ffc9a7146100b157806309c5eabe146100e5575b5f80fd5b3480156100bc575f80fd5b506100d06100cb36600461128c565b610270565b60405190151581526020015b60405180910390f35b6100f86100f33660046112d2565b6102cb565b6040516100dc92919061138c565b348015610111575f80fd5b506040517f7687b0ed0000000000000000000000000000000000000000000000000000000081526020016100dc565b34801561014b575f80fd5b506101737f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100dc565b3480156101a3575f80fd5b506101b76101b23660046112d2565b610300565b005b3480156101c4575f80fd5b506101cd6103a0565b6040516100dc91906114a6565b3480156101e5575f80fd5b506101f96101f4366004611527565b61059f565b6040516100dc919061153e565b348015610211575f80fd5b506102256102203660046112d2565b61077a565b6040516100dc9190611550565b34801561023d575f80fd5b506102466107ae565b6040516100dc91906115b5565b34801561025e575f80fd5b506004546040519081526020016100dc565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7687b0ed0000000000000000000000000000000000000000000000000000000014806102c557506102c58261085e565b92915050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156103515760018160011c14303b106103485763f92ee8a95f526004601cfd5b818160ff1b1b91505b50610366610361838501856118e7565b6108b3565b801561039b576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610596578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff166001811115610410576104106113ae565b6001811115610421576104216113ae565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610494576104946113ae565b60078111156104a5576104a56113ae565b81528154602090910190610100900460ff1660058111156104c8576104c86113ae565b60058111156104d9576104d96113ae565b8152815462010000900463ffffffff166020820152600182018054604090920191610503906119e8565b80601f016020809104026020016040519081016040528092919081815260200182805461052f906119e8565b801561057a5780601f106105515761010080835404028352916020019161057a565b820191905f5260205f20905b81548152906001019060200180831161055d57829003601f168201915b50505050508152505081525050815260200190600101906103c3565b50505050905090565b6105a7611231565b600482815481106105ba576105ba611a39565b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156105fd576105fd6113ae565b600181111561060e5761060e6113ae565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610681576106816113ae565b6007811115610692576106926113ae565b81528154602090910190610100900460ff1660058111156106b5576106b56113ae565b60058111156106c6576106c66113ae565b8152815462010000900463ffffffff1660208201526001820180546040909201916106f0906119e8565b80601f016020809104026020016040519081016040528092919081815260200182805461071c906119e8565b80156107675780601f1061073e57610100808354040283529160200191610767565b820191905f5260205f20905b81548152906001019060200180831161074a57829003601f168201915b5050509190925250505090525092915050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a081019091525f8054829060ff1660018111156107fc576107fc6113ae565b600181111561080d5761080d6113ae565b815260018201546020820152600282015463ffffffff81166040830152640100000000900473ffffffffffffffffffffffffffffffffffffffff166060820152600390910154608090910152919050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe67157950000000000000000000000000000000000000000000000000000000014806102c557506102c582611161565b6108bb6111f7565b805180515f8054909190829060ff1916600183818111156108de576108de6113ae565b02179055506020828101516001808401919091556040840151600284018054606087015173ffffffffffffffffffffffffffffffffffffffff16640100000000027fffffffffffffffff00000000000000000000000000000000000000000000000090911663ffffffff90931692909217919091179055608090930151600390920191909155828101516004805480850182555f91909152815160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101918255928201517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c90930180549294919392909160ff199091169083818111156109ec576109ec6113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610aad57610aad6113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610af257610af26113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610b469082611ab1565b505050604083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610bd757610bd76113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610c9857610c986113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610cdd57610cdd6113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610d319082611ab1565b505050606083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610dc257610dc26113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610e8357610e836113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ec857610ec86113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610f1c9082611ab1565b505050608083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610fad57610fad6113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff199091169083600781111561106e5761106e6113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101008360058111156110b3576110b36113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff909116178155606082015160018201906111079082611ab1565b50505050507f7c54f3f7ef1d1e3acbe06bce75dbb6f17c64cb446c13bf354da8d7735b99f2a6815f01518260200151836040015184606001518560800151604051611156959493929190611bc8565b60405180910390a150565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806102c557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146102c5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132805460011661122e5763d7e6bcf85f526004601cfd5b50565b6040805160c081019091525f808252602082019081525f602082018190526040820181905260608201526080016112876040805160808101909152805f81526020015f81525f6020820152606060409091015290565b905290565b5f6020828403121561129c575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112cb575f80fd5b9392505050565b5f80602083850312156112e3575f80fd5b823567ffffffffffffffff8111156112f9575f80fd5b8301601f81018513611309575f80fd5b803567ffffffffffffffff81111561131f575f80fd5b856020828401011115611330575f80fd5b6020919091019590945092505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b8215158152604060208201525f6113a66040830184611340565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600281106113eb576113eb6113ae565b9052565b805182525f602082015161140660208501826113db565b5060ff604083015116604084015273ffffffffffffffffffffffffffffffffffffffff60608301511660608401526080820151608084015260a082015160c060a085015280516008811061145c5761145c6113ae565b60c0850152602081015160068110611476576114766113ae565b60e0850152604081015163ffffffff166101008501526060015160806101208501526113a6610140850182611340565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b8281101561151b577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184526115068583516113ef565b945060209384019391909101906001016114cc565b50929695505050505050565b5f60208284031215611537575f80fd5b5035919050565b602081525f6112cb60208301846113ef565b602081525f6112cb6020830184611340565b61156d8282516113db565b6020810151602083015263ffffffff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff6060820151166060830152608081015160808301525050565b60a081016102c58284611562565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160a0810167ffffffffffffffff81118282101715611613576116136115c3565b60405290565b6040516080810167ffffffffffffffff81118282101715611613576116136115c3565b60405160c0810167ffffffffffffffff81118282101715611613576116136115c3565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156116a6576116a66115c3565b604052919050565b8035600281106116bc575f80fd5b919050565b803563ffffffff811681146116bc575f80fd5b803573ffffffffffffffffffffffffffffffffffffffff811681146116bc575f80fd5b5f60a08284031215611707575f80fd5b61170f6115f0565b905061171a826116ae565b815260208281013590820152611732604083016116c1565b6040820152611743606083016116d4565b606082015260809182013591810191909152919050565b5f6080828403121561176a575f80fd5b611772611619565b9050813560088110611782575f80fd5b8152602082013560068110611795575f80fd5b60208201526117a6604083016116c1565b6040820152606082013567ffffffffffffffff8111156117c4575f80fd5b8201601f810184136117d4575f80fd5b803567ffffffffffffffff8111156117ee576117ee6115c3565b61181f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161165f565b818152856020838501011115611833575f80fd5b816020840160208301375f6020838301015280606085015250505092915050565b5f60c08284031215611864575f80fd5b61186c61163c565b82358152905061187e602083016116ae565b6020820152604082013560ff81168114611896575f80fd5b60408201526118a7606083016116d4565b60608201526080828101359082015260a082013567ffffffffffffffff8111156118cf575f80fd5b6118db8482850161175a565b60a08301525092915050565b5f602082840312156118f7575f80fd5b813567ffffffffffffffff81111561190d575f80fd5b8201610120818503121561191f575f80fd5b6119276115f0565b61193185836116f7565b815260a082013567ffffffffffffffff81111561194c575f80fd5b61195886828501611854565b60208301525060c082013567ffffffffffffffff811115611977575f80fd5b61198386828501611854565b60408301525060e082013567ffffffffffffffff8111156119a2575f80fd5b6119ae86828501611854565b60608301525061010082013567ffffffffffffffff8111156119ce575f80fd5b6119da86828501611854565b608083015250949350505050565b600181811c908216806119fc57607f821691505b602082108103611a33577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b601f82111561039b57805f5260205f20601f840160051c81016020851015611a8b5750805b601f840160051c820191505b81811015611aaa575f8155600101611a97565b5050505050565b815167ffffffffffffffff811115611acb57611acb6115c3565b611adf81611ad984546119e8565b84611a66565b6020601f821160018114611b30575f8315611afa5750848201515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b178455611aaa565b5f848152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08516915b82811015611b7d5787850151825560209485019460019092019101611b5d565b5084821015611bb957868401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b60f8161c191681555b50505050600190811b01905550565b611bd28187611562565b61012060a08201525f611be96101208301876113ef565b82810360c0840152611bfb81876113ef565b905082810360e0840152611c0f81866113ef565b9050828103610100840152611c2481856113ef565b9897505050505050505056fea2646970667358221220ec29c85e9420d542351535cfbb2c79285bfb5d86014ee966669d793fa2a4481264736f6c634300081a0033", N0 = {
|
|
9
9
|
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
|
|
10
10
|
name: "Transfer",
|
|
11
11
|
type: "event",
|
|
@@ -1380,7 +1380,7 @@ const I0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
1380
1380
|
}
|
|
1381
1381
|
]
|
|
1382
1382
|
}
|
|
1383
|
-
}, x = Symbol.for("@ts-pattern/matcher"),
|
|
1383
|
+
}, x = Symbol.for("@ts-pattern/matcher"), S0 = Symbol.for("@ts-pattern/isVariadic"), M = "@ts-pattern/anonymous-select-key", z = (t) => !!(t && typeof t == "object"), O = (t) => t && !!t[x], g = (t, f, e) => {
|
|
1384
1384
|
if (O(t)) {
|
|
1385
1385
|
const n = t[x](), { matched: d, selections: i } = n.match(f);
|
|
1386
1386
|
return d && i && Object.keys(i).forEach((r) => e(r, i[r])), d;
|
|
@@ -1392,13 +1392,13 @@ const I0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
1392
1392
|
let n = [], d = [], i = [];
|
|
1393
1393
|
for (const r of t.keys()) {
|
|
1394
1394
|
const a = t[r];
|
|
1395
|
-
O(a) && a[
|
|
1395
|
+
O(a) && a[S0] ? i.push(a) : i.length ? d.push(a) : n.push(a);
|
|
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.");
|
|
1399
1399
|
if (f.length < n.length + d.length) return !1;
|
|
1400
|
-
const r = f.slice(0, n.length), a = d.length === 0 ? [] : f.slice(-d.length),
|
|
1401
|
-
return n.every((
|
|
1400
|
+
const r = f.slice(0, n.length), a = d.length === 0 ? [] : f.slice(-d.length), u = f.slice(n.length, d.length === 0 ? 1 / 0 : -d.length);
|
|
1401
|
+
return n.every((s, p) => g(s, r[p], e)) && d.every((s, p) => g(s, a[p], e)) && (i.length === 0 || g(i[0], u, e));
|
|
1402
1402
|
}
|
|
1403
1403
|
return t.length === f.length && t.every((r, a) => g(r, f[a], e));
|
|
1404
1404
|
}
|
|
@@ -1409,51 +1409,51 @@ const I0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
1409
1409
|
});
|
|
1410
1410
|
}
|
|
1411
1411
|
return Object.is(f, t);
|
|
1412
|
-
},
|
|
1412
|
+
}, I = (t) => {
|
|
1413
1413
|
var f, e, n;
|
|
1414
|
-
return z(t) ? O(t) ? (f = (e = (n = t[x]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? L(t,
|
|
1414
|
+
return z(t) ? O(t) ? (f = (e = (n = t[x]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? L(t, I) : L(Object.values(t), I) : [];
|
|
1415
1415
|
}, L = (t, f) => t.reduce((e, n) => e.concat(f(n)), []);
|
|
1416
|
-
function
|
|
1417
|
-
return Object.assign(t, { optional: () =>
|
|
1416
|
+
function y(t) {
|
|
1417
|
+
return Object.assign(t, { optional: () => B0(t), and: (f) => c(t, f), or: (f) => k0(t, f), select: (f) => f === void 0 ? n0(t) : n0(f, t) });
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1420
|
-
return
|
|
1419
|
+
function B0(t) {
|
|
1420
|
+
return y({ [x]: () => ({ match: (f) => {
|
|
1421
1421
|
let e = {};
|
|
1422
1422
|
const n = (d, i) => {
|
|
1423
1423
|
e[d] = i;
|
|
1424
1424
|
};
|
|
1425
|
-
return f === void 0 ? (
|
|
1426
|
-
}, getSelectionKeys: () =>
|
|
1425
|
+
return f === void 0 ? (I(t).forEach((d) => n(d, void 0)), { matched: !0, selections: e }) : { matched: g(t, f, n), selections: e };
|
|
1426
|
+
}, getSelectionKeys: () => I(t), matcherType: "optional" }) });
|
|
1427
1427
|
}
|
|
1428
|
-
function
|
|
1429
|
-
return
|
|
1428
|
+
function c(...t) {
|
|
1429
|
+
return y({ [x]: () => ({ 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) => g(d, f, n)), selections: e };
|
|
1435
|
-
}, getSelectionKeys: () => L(t,
|
|
1435
|
+
}, getSelectionKeys: () => L(t, I), matcherType: "and" }) });
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1438
|
-
return
|
|
1437
|
+
function k0(...t) {
|
|
1438
|
+
return y({ [x]: () => ({ match: (f) => {
|
|
1439
1439
|
let e = {};
|
|
1440
1440
|
const n = (d, i) => {
|
|
1441
1441
|
e[d] = i;
|
|
1442
1442
|
};
|
|
1443
|
-
return L(t,
|
|
1444
|
-
}, getSelectionKeys: () => L(t,
|
|
1443
|
+
return L(t, I).forEach((d) => n(d, void 0)), { matched: t.some((d) => g(d, f, n)), selections: e };
|
|
1444
|
+
}, getSelectionKeys: () => L(t, I), matcherType: "or" }) });
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function o(t) {
|
|
1447
1447
|
return { [x]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function n0(...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 y({ [x]: () => ({ match: (n) => {
|
|
1452
1452
|
let d = { [f ?? M]: n };
|
|
1453
1453
|
return { matched: e === void 0 || g(e, n, (i, r) => {
|
|
1454
1454
|
d[i] = r;
|
|
1455
1455
|
}), selections: d };
|
|
1456
|
-
}, getSelectionKeys: () => [f ?? M].concat(e === void 0 ? [] :
|
|
1456
|
+
}, getSelectionKeys: () => [f ?? M].concat(e === void 0 ? [] : I(e)) }) });
|
|
1457
1457
|
}
|
|
1458
1458
|
function b(t) {
|
|
1459
1459
|
return typeof t == "number";
|
|
@@ -1464,40 +1464,40 @@ function m(t) {
|
|
|
1464
1464
|
function w(t) {
|
|
1465
1465
|
return typeof t == "bigint";
|
|
1466
1466
|
}
|
|
1467
|
-
|
|
1467
|
+
y(o(function(t) {
|
|
1468
1468
|
return !0;
|
|
1469
1469
|
}));
|
|
1470
|
-
const A = (t) => Object.assign(
|
|
1471
|
-
return A(
|
|
1470
|
+
const A = (t) => Object.assign(y(t), { startsWith: (f) => {
|
|
1471
|
+
return A(c(t, (e = f, o((n) => m(n) && n.startsWith(e)))));
|
|
1472
1472
|
var e;
|
|
1473
1473
|
}, endsWith: (f) => {
|
|
1474
|
-
return A(
|
|
1474
|
+
return A(c(t, (e = f, o((n) => m(n) && n.endsWith(e)))));
|
|
1475
1475
|
var e;
|
|
1476
|
-
}, minLength: (f) => A(
|
|
1477
|
-
return A(
|
|
1476
|
+
}, minLength: (f) => A(c(t, ((e) => o((n) => m(n) && n.length >= e))(f))), length: (f) => A(c(t, ((e) => o((n) => m(n) && n.length === e))(f))), maxLength: (f) => A(c(t, ((e) => o((n) => m(n) && n.length <= e))(f))), includes: (f) => {
|
|
1477
|
+
return A(c(t, (e = f, o((n) => m(n) && n.includes(e)))));
|
|
1478
1478
|
var e;
|
|
1479
1479
|
}, regex: (f) => {
|
|
1480
|
-
return A(
|
|
1480
|
+
return A(c(t, (e = f, o((n) => m(n) && !!n.match(e)))));
|
|
1481
1481
|
var e;
|
|
1482
1482
|
} });
|
|
1483
|
-
A(
|
|
1484
|
-
const l = (t) => Object.assign(
|
|
1485
|
-
l(
|
|
1486
|
-
const T = (t) => Object.assign(
|
|
1487
|
-
T(
|
|
1488
|
-
|
|
1483
|
+
A(o(m));
|
|
1484
|
+
const l = (t) => Object.assign(y(t), { between: (f, e) => l(c(t, ((n, d) => o((i) => b(i) && n <= i && d >= i))(f, e))), lt: (f) => l(c(t, ((e) => o((n) => b(n) && n < e))(f))), gt: (f) => l(c(t, ((e) => o((n) => b(n) && n > e))(f))), lte: (f) => l(c(t, ((e) => o((n) => b(n) && n <= e))(f))), gte: (f) => l(c(t, ((e) => o((n) => b(n) && n >= e))(f))), int: () => l(c(t, o((f) => b(f) && Number.isInteger(f)))), finite: () => l(c(t, o((f) => b(f) && Number.isFinite(f)))), positive: () => l(c(t, o((f) => b(f) && f > 0))), negative: () => l(c(t, o((f) => b(f) && f < 0))) });
|
|
1485
|
+
l(o(b));
|
|
1486
|
+
const T = (t) => Object.assign(y(t), { between: (f, e) => T(c(t, ((n, d) => o((i) => w(i) && n <= i && d >= i))(f, e))), lt: (f) => T(c(t, ((e) => o((n) => w(n) && n < e))(f))), gt: (f) => T(c(t, ((e) => o((n) => w(n) && n > e))(f))), lte: (f) => T(c(t, ((e) => o((n) => w(n) && n <= e))(f))), gte: (f) => T(c(t, ((e) => o((n) => w(n) && n >= e))(f))), positive: () => T(c(t, o((f) => w(f) && f > 0))), negative: () => T(c(t, o((f) => w(f) && f < 0))) });
|
|
1487
|
+
T(o(w));
|
|
1488
|
+
y(o(function(t) {
|
|
1489
1489
|
return typeof t == "boolean";
|
|
1490
1490
|
}));
|
|
1491
|
-
|
|
1491
|
+
y(o(function(t) {
|
|
1492
1492
|
return typeof t == "symbol";
|
|
1493
1493
|
}));
|
|
1494
|
-
|
|
1494
|
+
y(o(function(t) {
|
|
1495
1495
|
return t == null;
|
|
1496
1496
|
}));
|
|
1497
|
-
|
|
1497
|
+
y(o(function(t) {
|
|
1498
1498
|
return t != null;
|
|
1499
1499
|
}));
|
|
1500
|
-
class
|
|
1500
|
+
class R0 extends Error {
|
|
1501
1501
|
constructor(f) {
|
|
1502
1502
|
let e;
|
|
1503
1503
|
try {
|
|
@@ -1509,7 +1509,7 @@ class B0 extends Error {
|
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
1511
|
const X = { matched: !1, value: void 0 };
|
|
1512
|
-
function
|
|
1512
|
+
function d0(t) {
|
|
1513
1513
|
return new $(t, X);
|
|
1514
1514
|
}
|
|
1515
1515
|
class $ {
|
|
@@ -1522,10 +1522,10 @@ class $ {
|
|
|
1522
1522
|
let d;
|
|
1523
1523
|
f.length === 3 && typeof f[1] == "function" ? d = f[1] : f.length > 2 && n.push(...f.slice(1, f.length - 1));
|
|
1524
1524
|
let i = !1, r = {};
|
|
1525
|
-
const a = (
|
|
1526
|
-
i = !0, r[
|
|
1527
|
-
},
|
|
1528
|
-
return new $(this.input,
|
|
1525
|
+
const a = (s, p) => {
|
|
1526
|
+
i = !0, r[s] = p;
|
|
1527
|
+
}, u = !n.some((s) => g(s, this.input, a)) || d && !d(this.input) ? X : { matched: !0, value: e(i ? M in r ? r[M] : r : this.input, this.input) };
|
|
1528
|
+
return new $(this.input, u);
|
|
1529
1529
|
}
|
|
1530
1530
|
when(f, e) {
|
|
1531
1531
|
if (this.state.matched) return this;
|
|
@@ -1537,7 +1537,7 @@ class $ {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
exhaustive() {
|
|
1539
1539
|
if (this.state.matched) return this.state.value;
|
|
1540
|
-
throw new
|
|
1540
|
+
throw new R0(this.input);
|
|
1541
1541
|
}
|
|
1542
1542
|
run() {
|
|
1543
1543
|
return this.exhaustive();
|
|
@@ -1547,13 +1547,13 @@ class $ {
|
|
|
1547
1547
|
}
|
|
1548
1548
|
}
|
|
1549
1549
|
const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" };
|
|
1550
|
-
var
|
|
1551
|
-
function
|
|
1550
|
+
var L0 = /* @__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))(L0 || {}), P0 = /* @__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[t.INT = 5] = "INT", t))(P0 || {}), _0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(_0 || {}), D0 = /* @__PURE__ */ ((t) => (t[t.RAW = 0] = "RAW", t[t.WAD = 1] = "WAD", t))(D0 || {});
|
|
1551
|
+
function F0(t) {
|
|
1552
1552
|
return Array.isArray(t.actionSteps);
|
|
1553
1553
|
}
|
|
1554
|
-
const V = class V extends
|
|
1554
|
+
const V = class V extends w0 {
|
|
1555
1555
|
constructor() {
|
|
1556
|
-
super(...arguments), this.abi =
|
|
1556
|
+
super(...arguments), this.abi = K;
|
|
1557
1557
|
}
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Gets a specific action event by index
|
|
@@ -1576,13 +1576,13 @@ const V = class V extends x0 {
|
|
|
1576
1576
|
* @returns {Promise<ActionStep[]>}
|
|
1577
1577
|
*/
|
|
1578
1578
|
async getActionSteps(f) {
|
|
1579
|
-
const e = await
|
|
1579
|
+
const e = await y0(this._config, {
|
|
1580
1580
|
address: this.assertValidAddress(),
|
|
1581
1581
|
...this.optionallyAttachAccount(),
|
|
1582
1582
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1583
1583
|
...f
|
|
1584
1584
|
});
|
|
1585
|
-
return
|
|
1585
|
+
return O0(e.map(r0));
|
|
1586
1586
|
}
|
|
1587
1587
|
/**
|
|
1588
1588
|
* Gets the count of action events
|
|
@@ -1604,12 +1604,12 @@ const V = class V extends x0 {
|
|
|
1604
1604
|
* @returns {Promise<ActionClaimant>}
|
|
1605
1605
|
*/
|
|
1606
1606
|
async getActionClaimant(f) {
|
|
1607
|
-
const e = await
|
|
1607
|
+
const e = await b0(this._config, {
|
|
1608
1608
|
address: this.assertValidAddress(),
|
|
1609
1609
|
...this.optionallyAttachAccount(),
|
|
1610
1610
|
...f
|
|
1611
1611
|
});
|
|
1612
|
-
return
|
|
1612
|
+
return r0(e);
|
|
1613
1613
|
}
|
|
1614
1614
|
/**
|
|
1615
1615
|
* Executes a prepared event action
|
|
@@ -1633,14 +1633,14 @@ const V = class V extends x0 {
|
|
|
1633
1633
|
* @returns {Promise<{ hash: `0x${string}`; result: readonly [boolean, `0x${string}`]; }>}
|
|
1634
1634
|
*/
|
|
1635
1635
|
async executeRaw(f, e) {
|
|
1636
|
-
const { request: n, result: d } = await
|
|
1636
|
+
const { request: n, result: d } = await l0(this._config, {
|
|
1637
1637
|
address: this.assertValidAddress(),
|
|
1638
1638
|
...this.optionallyAttachAccount(),
|
|
1639
1639
|
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
1640
1640
|
...e,
|
|
1641
1641
|
args: [f]
|
|
1642
1642
|
});
|
|
1643
|
-
return { hash: await
|
|
1643
|
+
return { hash: await g0(this._config, n), result: d };
|
|
1644
1644
|
}
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Derives the action claimant address from a transaction based on the provided ActionClaimant configuration.
|
|
@@ -1679,7 +1679,7 @@ const V = class V extends x0 {
|
|
|
1679
1679
|
async deriveActionClaimantFromTransaction(f, e) {
|
|
1680
1680
|
if (f.fieldIndex === R.TX_SENDER_CLAIMANT) {
|
|
1681
1681
|
if ("hash" in e) {
|
|
1682
|
-
const i = await
|
|
1682
|
+
const i = await P(this._config, {
|
|
1683
1683
|
...e,
|
|
1684
1684
|
chainId: f.chainid
|
|
1685
1685
|
});
|
|
@@ -1688,7 +1688,7 @@ const V = class V extends x0 {
|
|
|
1688
1688
|
if ("logs" in e) {
|
|
1689
1689
|
for (let i of e.logs)
|
|
1690
1690
|
if (i.transactionHash) {
|
|
1691
|
-
const r = await
|
|
1691
|
+
const r = await P(this._config, {
|
|
1692
1692
|
...e,
|
|
1693
1693
|
hash: i.transactionHash,
|
|
1694
1694
|
chainId: f.chainid
|
|
@@ -1707,15 +1707,15 @@ const V = class V extends x0 {
|
|
|
1707
1707
|
if (e.abiItem ? i = e.abiItem : i = e.knownSignatures[n], !i)
|
|
1708
1708
|
throw new N(n);
|
|
1709
1709
|
if ("logs" in e) {
|
|
1710
|
-
const
|
|
1711
|
-
for (const
|
|
1712
|
-
if (!d && !h(
|
|
1710
|
+
const u = e.logs.filter((s) => s.topics[0] === n).map((s) => W(i, s));
|
|
1711
|
+
for (const s of u) {
|
|
1712
|
+
if (!d && !h(s.address, f.targetContract))
|
|
1713
1713
|
continue;
|
|
1714
|
-
const
|
|
1714
|
+
const p = this.validateClaimantAgainstArgs(
|
|
1715
1715
|
f,
|
|
1716
|
-
|
|
1716
|
+
s
|
|
1717
1717
|
);
|
|
1718
|
-
if (
|
|
1718
|
+
if (p) return p;
|
|
1719
1719
|
}
|
|
1720
1720
|
}
|
|
1721
1721
|
if (!("hash" in e))
|
|
@@ -1727,16 +1727,16 @@ const V = class V extends x0 {
|
|
|
1727
1727
|
if (e.notBeforeBlockNumber && r.blockNumber < e.notBeforeBlockNumber)
|
|
1728
1728
|
return;
|
|
1729
1729
|
let a;
|
|
1730
|
-
n === B ? { decodedLogs: a } = await this.decodeTransferLogs(r) : a = r.logs.filter((
|
|
1731
|
-
for (let
|
|
1732
|
-
if (!d && !h(
|
|
1730
|
+
n === B ? { decodedLogs: a } = await this.decodeTransferLogs(r) : a = r.logs.filter((u) => u.topics[0] === n).map((u) => W(i, u));
|
|
1731
|
+
for (let u of a) {
|
|
1732
|
+
if (!d && !h(u.address, f.targetContract))
|
|
1733
1733
|
continue;
|
|
1734
|
-
let
|
|
1735
|
-
if (
|
|
1734
|
+
let s = this.validateClaimantAgainstArgs(f, u);
|
|
1735
|
+
if (s) return s;
|
|
1736
1736
|
}
|
|
1737
1737
|
}
|
|
1738
1738
|
if (f.signatureType === 1 && "hash" in e) {
|
|
1739
|
-
const i = await
|
|
1739
|
+
const i = await P(this._config, {
|
|
1740
1740
|
...e,
|
|
1741
1741
|
chainId: f.chainid
|
|
1742
1742
|
});
|
|
@@ -1747,12 +1747,12 @@ const V = class V extends x0 {
|
|
|
1747
1747
|
throw new N(f.signature);
|
|
1748
1748
|
let a;
|
|
1749
1749
|
try {
|
|
1750
|
-
a =
|
|
1750
|
+
a = Y({
|
|
1751
1751
|
abi: [r],
|
|
1752
1752
|
data: i.input
|
|
1753
1753
|
});
|
|
1754
|
-
} catch (
|
|
1755
|
-
throw new
|
|
1754
|
+
} catch (u) {
|
|
1755
|
+
throw new J([r], u);
|
|
1756
1756
|
}
|
|
1757
1757
|
return this.validateClaimantAgainstArgs(f, a);
|
|
1758
1758
|
}
|
|
@@ -1768,8 +1768,8 @@ const V = class V extends x0 {
|
|
|
1768
1768
|
validateClaimantAgainstArgs(f, e) {
|
|
1769
1769
|
if (!e || !Array.isArray(e == null ? void 0 : e.args))
|
|
1770
1770
|
return;
|
|
1771
|
-
if (
|
|
1772
|
-
const [d, i] =
|
|
1771
|
+
if (H0(f.fieldIndex)) {
|
|
1772
|
+
const [d, i] = Q0(f.fieldIndex);
|
|
1773
1773
|
if (e.args.length <= d)
|
|
1774
1774
|
return;
|
|
1775
1775
|
const r = e.args[d];
|
|
@@ -1817,7 +1817,7 @@ const V = class V extends x0 {
|
|
|
1817
1817
|
if (e.abiItem ? d = e.abiItem : d = e.knownSignatures[n], !d)
|
|
1818
1818
|
throw new N(n);
|
|
1819
1819
|
if (this.isArraylikeIndexed(f, d))
|
|
1820
|
-
throw new
|
|
1820
|
+
throw new f0(
|
|
1821
1821
|
f.actionParameter.fieldIndex,
|
|
1822
1822
|
d
|
|
1823
1823
|
);
|
|
@@ -1830,14 +1830,14 @@ const V = class V extends x0 {
|
|
|
1830
1830
|
if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber)
|
|
1831
1831
|
return !1;
|
|
1832
1832
|
if (f.signature === B) {
|
|
1833
|
-
const { decodedLogs: a, event:
|
|
1834
|
-
return this.isActionEventValid(f, a,
|
|
1833
|
+
const { decodedLogs: a, event: u } = await this.decodeTransferLogs(i);
|
|
1834
|
+
return this.isActionEventValid(f, a, u);
|
|
1835
1835
|
}
|
|
1836
1836
|
const r = i.logs.filter((a) => a.topics[0] === n).map((a) => W(d, a));
|
|
1837
1837
|
return this.isActionEventValid(f, r, d);
|
|
1838
1838
|
}
|
|
1839
1839
|
if (f.signatureType === 1 && "hash" in e) {
|
|
1840
|
-
const n = await
|
|
1840
|
+
const n = await P(this._config, {
|
|
1841
1841
|
...e,
|
|
1842
1842
|
chainId: f.chainid
|
|
1843
1843
|
});
|
|
@@ -1861,7 +1861,7 @@ const V = class V extends x0 {
|
|
|
1861
1861
|
if (!(f.targetContract !== S && !h(i.address, f.targetContract)))
|
|
1862
1862
|
try {
|
|
1863
1863
|
if (!Array.isArray(i.args))
|
|
1864
|
-
throw new
|
|
1864
|
+
throw new A0({
|
|
1865
1865
|
log: i,
|
|
1866
1866
|
criteria: d,
|
|
1867
1867
|
fieldValue: void 0
|
|
@@ -1871,8 +1871,8 @@ const V = class V extends x0 {
|
|
|
1871
1871
|
d.fieldIndex,
|
|
1872
1872
|
n.inputs || [],
|
|
1873
1873
|
d.fieldType
|
|
1874
|
-
),
|
|
1875
|
-
if (this.validateFieldAgainstCriteria(
|
|
1874
|
+
), u = { ...d, fieldType: a };
|
|
1875
|
+
if (this.validateFieldAgainstCriteria(u, r, { log: i }))
|
|
1876
1876
|
return !0;
|
|
1877
1877
|
} catch {
|
|
1878
1878
|
}
|
|
@@ -1898,12 +1898,12 @@ const V = class V extends x0 {
|
|
|
1898
1898
|
const e = f.logs.filter(
|
|
1899
1899
|
(d) => d.topics[0] === B
|
|
1900
1900
|
), n = structuredClone(
|
|
1901
|
-
|
|
1901
|
+
N0["Transfer(address indexed,address indexed,uint256 indexed)"]
|
|
1902
1902
|
);
|
|
1903
1903
|
try {
|
|
1904
1904
|
return {
|
|
1905
1905
|
decodedLogs: e.map((i) => {
|
|
1906
|
-
const { eventName: r, args: a } =
|
|
1906
|
+
const { eventName: r, args: a } = Z({
|
|
1907
1907
|
abi: [n],
|
|
1908
1908
|
data: i.data,
|
|
1909
1909
|
topics: i.topics
|
|
@@ -1916,7 +1916,7 @@ const V = class V extends x0 {
|
|
|
1916
1916
|
try {
|
|
1917
1917
|
return n.inputs[2].indexed = !1, {
|
|
1918
1918
|
decodedLogs: e.map((i) => {
|
|
1919
|
-
const { eventName: r, args: a } =
|
|
1919
|
+
const { eventName: r, args: a } = Z({
|
|
1920
1920
|
abi: [n],
|
|
1921
1921
|
data: i.data,
|
|
1922
1922
|
topics: i.topics
|
|
@@ -1926,7 +1926,7 @@ const V = class V extends x0 {
|
|
|
1926
1926
|
event: n
|
|
1927
1927
|
};
|
|
1928
1928
|
} catch {
|
|
1929
|
-
throw new
|
|
1929
|
+
throw new v("Failed to decode transfer logs");
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
@@ -1951,7 +1951,7 @@ const V = class V extends x0 {
|
|
|
1951
1951
|
};
|
|
1952
1952
|
if (d !== 4) {
|
|
1953
1953
|
if (!Array.isArray(f) || e >= f.length)
|
|
1954
|
-
throw new
|
|
1954
|
+
throw new e0({
|
|
1955
1955
|
fieldValue: f,
|
|
1956
1956
|
criteria: {
|
|
1957
1957
|
filterType: 0,
|
|
@@ -1962,22 +1962,22 @@ const V = class V extends x0 {
|
|
|
1962
1962
|
});
|
|
1963
1963
|
const r = n[e];
|
|
1964
1964
|
if (!r || !r.type)
|
|
1965
|
-
throw new
|
|
1966
|
-
const a = f[e],
|
|
1967
|
-
if (
|
|
1968
|
-
throw new
|
|
1965
|
+
throw new f0(e, r);
|
|
1966
|
+
const a = f[e], u = s0(r.type);
|
|
1967
|
+
if (u === 1 && (typeof a != "string" || !H(a)))
|
|
1968
|
+
throw new e0({
|
|
1969
1969
|
fieldValue: a,
|
|
1970
1970
|
criteria: {
|
|
1971
1971
|
fieldIndex: e,
|
|
1972
1972
|
filterType: 0,
|
|
1973
|
-
fieldType:
|
|
1973
|
+
fieldType: u,
|
|
1974
1974
|
filterData: k
|
|
1975
1975
|
}
|
|
1976
1976
|
});
|
|
1977
|
-
return { value: a, type:
|
|
1977
|
+
return { value: a, type: u };
|
|
1978
1978
|
}
|
|
1979
|
-
const i =
|
|
1980
|
-
return
|
|
1979
|
+
const i = c0(e);
|
|
1980
|
+
return a0(f, i, n);
|
|
1981
1981
|
}
|
|
1982
1982
|
/**
|
|
1983
1983
|
* Validates a single action function with a given criteria against the transaction input.
|
|
@@ -2001,23 +2001,23 @@ const V = class V extends x0 {
|
|
|
2001
2001
|
throw new N(i);
|
|
2002
2002
|
let a;
|
|
2003
2003
|
try {
|
|
2004
|
-
a =
|
|
2004
|
+
a = Y({
|
|
2005
2005
|
abi: [r],
|
|
2006
2006
|
data: e.input
|
|
2007
2007
|
});
|
|
2008
|
-
} catch (
|
|
2009
|
-
throw new
|
|
2008
|
+
} catch (u) {
|
|
2009
|
+
throw new J([r], u);
|
|
2010
2010
|
}
|
|
2011
2011
|
if (!(a != null && a.args))
|
|
2012
2012
|
return !1;
|
|
2013
2013
|
try {
|
|
2014
|
-
const { value:
|
|
2014
|
+
const { value: u, type: s } = this.parseFieldFromAbi(
|
|
2015
2015
|
a.args,
|
|
2016
2016
|
d.fieldIndex,
|
|
2017
2017
|
r.inputs || [],
|
|
2018
2018
|
d.fieldType
|
|
2019
|
-
),
|
|
2020
|
-
return this.validateFieldAgainstCriteria(
|
|
2019
|
+
), p = { ...d, fieldType: s };
|
|
2020
|
+
return this.validateFieldAgainstCriteria(p, u, {
|
|
2021
2021
|
decodedArgs: a.args
|
|
2022
2022
|
});
|
|
2023
2023
|
} catch {
|
|
@@ -2046,7 +2046,7 @@ const V = class V extends x0 {
|
|
|
2046
2046
|
const d = f.fieldType;
|
|
2047
2047
|
switch (f.filterType) {
|
|
2048
2048
|
case 0:
|
|
2049
|
-
return
|
|
2049
|
+
return d0(d).with(
|
|
2050
2050
|
1,
|
|
2051
2051
|
() => h(f.filterData, e)
|
|
2052
2052
|
).with(
|
|
@@ -2054,10 +2054,10 @@ const V = class V extends x0 {
|
|
|
2054
2054
|
() => BigInt(e) === BigInt(f.filterData)
|
|
2055
2055
|
).with(
|
|
2056
2056
|
3,
|
|
2057
|
-
() => e ===
|
|
2057
|
+
() => e === _(f.filterData, "string")
|
|
2058
2058
|
).otherwise(() => e === f.filterData);
|
|
2059
2059
|
case 1:
|
|
2060
|
-
return
|
|
2060
|
+
return d0(d).with(
|
|
2061
2061
|
1,
|
|
2062
2062
|
() => !h(f.filterData, e)
|
|
2063
2063
|
).with(
|
|
@@ -2068,7 +2068,7 @@ const V = class V extends x0 {
|
|
|
2068
2068
|
() => BigInt(e) !== BigInt(f.filterData)
|
|
2069
2069
|
).with(
|
|
2070
2070
|
3,
|
|
2071
|
-
() => e !==
|
|
2071
|
+
() => e !== _(f.filterData, "string")
|
|
2072
2072
|
).otherwise(() => e !== f.filterData);
|
|
2073
2073
|
case 2:
|
|
2074
2074
|
if (d === 0 || d === 5)
|
|
@@ -2105,26 +2105,26 @@ const V = class V extends x0 {
|
|
|
2105
2105
|
case 4:
|
|
2106
2106
|
if (d === 2 || d === 3) {
|
|
2107
2107
|
let i;
|
|
2108
|
-
return d === 3 ? i =
|
|
2108
|
+
return d === 3 ? i = _(f.filterData, "string") : i = f.filterData.slice(2), e.includes(i);
|
|
2109
2109
|
}
|
|
2110
|
-
throw new
|
|
2110
|
+
throw new t0({
|
|
2111
2111
|
...n,
|
|
2112
2112
|
criteria: f,
|
|
2113
2113
|
fieldValue: e
|
|
2114
2114
|
});
|
|
2115
2115
|
case 5:
|
|
2116
2116
|
if (typeof e != "string")
|
|
2117
|
-
throw new
|
|
2117
|
+
throw new t0({
|
|
2118
2118
|
...n,
|
|
2119
2119
|
criteria: f,
|
|
2120
2120
|
fieldValue: e
|
|
2121
2121
|
});
|
|
2122
2122
|
if (d === 3) {
|
|
2123
|
-
const i =
|
|
2123
|
+
const i = _(f.filterData, "string");
|
|
2124
2124
|
return new RegExp(i).test(e);
|
|
2125
2125
|
}
|
|
2126
2126
|
default:
|
|
2127
|
-
throw new
|
|
2127
|
+
throw new T0({
|
|
2128
2128
|
...n,
|
|
2129
2129
|
criteria: f,
|
|
2130
2130
|
fieldValue: e
|
|
@@ -2145,13 +2145,13 @@ const V = class V extends x0 {
|
|
|
2145
2145
|
e
|
|
2146
2146
|
);
|
|
2147
2147
|
let i;
|
|
2148
|
-
if (
|
|
2149
|
-
let r = n.actionSteps.filter((
|
|
2148
|
+
if (F0(n)) {
|
|
2149
|
+
let r = n.actionSteps.filter((u) => !!u);
|
|
2150
2150
|
if (r.length === 0)
|
|
2151
|
-
throw new
|
|
2151
|
+
throw new v0();
|
|
2152
2152
|
if (r.length > 4)
|
|
2153
|
-
throw new
|
|
2154
|
-
let a = Array.from({ length: 4 }, (
|
|
2153
|
+
throw new I0();
|
|
2154
|
+
let a = Array.from({ length: 4 }, (u, s) => r.at(s) || r.at(-1));
|
|
2155
2155
|
i = {
|
|
2156
2156
|
actionClaimant: n.actionClaimant,
|
|
2157
2157
|
actionStepOne: a[0],
|
|
@@ -2162,9 +2162,9 @@ const V = class V extends x0 {
|
|
|
2162
2162
|
} else
|
|
2163
2163
|
i = n;
|
|
2164
2164
|
return {
|
|
2165
|
-
abi:
|
|
2166
|
-
bytecode:
|
|
2167
|
-
args: [
|
|
2165
|
+
abi: K,
|
|
2166
|
+
bytecode: C0,
|
|
2167
|
+
args: [M0(i)],
|
|
2168
2168
|
...this.optionallyAttachAccount(d.account)
|
|
2169
2169
|
};
|
|
2170
2170
|
}
|
|
@@ -2227,11 +2227,11 @@ const V = class V extends x0 {
|
|
|
2227
2227
|
if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber)
|
|
2228
2228
|
return [];
|
|
2229
2229
|
if (f.signature === B) {
|
|
2230
|
-
const { decodedLogs: a, event:
|
|
2230
|
+
const { decodedLogs: a, event: u } = await this.decodeTransferLogs(i);
|
|
2231
2231
|
return this.filterLogsByActionStepCriteria(
|
|
2232
2232
|
f,
|
|
2233
2233
|
a,
|
|
2234
|
-
|
|
2234
|
+
u
|
|
2235
2235
|
);
|
|
2236
2236
|
}
|
|
2237
2237
|
const r = i.logs.filter((a) => a.topics[0] === n).map((a) => W(d, a));
|
|
@@ -2254,13 +2254,13 @@ const V = class V extends x0 {
|
|
|
2254
2254
|
try {
|
|
2255
2255
|
if (!Array.isArray(r.args))
|
|
2256
2256
|
continue;
|
|
2257
|
-
const { value: a, type:
|
|
2257
|
+
const { value: a, type: u } = this.parseFieldFromAbi(
|
|
2258
2258
|
r.args,
|
|
2259
2259
|
d.fieldIndex,
|
|
2260
2260
|
n.inputs || [],
|
|
2261
2261
|
d.fieldType
|
|
2262
|
-
),
|
|
2263
|
-
this.validateFieldAgainstCriteria(
|
|
2262
|
+
), s = { ...d, fieldType: u };
|
|
2263
|
+
this.validateFieldAgainstCriteria(s, a, { log: r }) && i.push(r);
|
|
2264
2264
|
} catch {
|
|
2265
2265
|
}
|
|
2266
2266
|
return i;
|
|
@@ -2268,13 +2268,13 @@ const V = class V extends x0 {
|
|
|
2268
2268
|
};
|
|
2269
2269
|
V.bases = {
|
|
2270
2270
|
...Q != null && Q.VITE_EVENT_ACTION_BASE ? { 31337: void 0 } : {},
|
|
2271
|
-
...
|
|
2272
|
-
}, V.registryType =
|
|
2273
|
-
let
|
|
2274
|
-
function
|
|
2271
|
+
...m0
|
|
2272
|
+
}, V.registryType = E0.ACTION;
|
|
2273
|
+
let i0 = V;
|
|
2274
|
+
function W0(t) {
|
|
2275
2275
|
return t.type === "tuple" || t.type.startsWith("tuple[");
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function a0(t, f, e) {
|
|
2278
2278
|
if (!f.length)
|
|
2279
2279
|
throw new E(
|
|
2280
2280
|
"No indexes found; cannot parse TUPLE field"
|
|
@@ -2283,9 +2283,9 @@ function r0(t, f, e) {
|
|
|
2283
2283
|
if (n >= e.length)
|
|
2284
2284
|
throw new E(void 0, n);
|
|
2285
2285
|
const d = e[n], i = t[n];
|
|
2286
|
-
if (!
|
|
2287
|
-
const
|
|
2288
|
-
return { value: i, type:
|
|
2286
|
+
if (!W0(d)) {
|
|
2287
|
+
const u = s0(d.type);
|
|
2288
|
+
return { value: i, type: u };
|
|
2289
2289
|
}
|
|
2290
2290
|
if (!Array.isArray(i))
|
|
2291
2291
|
throw new E(
|
|
@@ -2297,9 +2297,9 @@ function r0(t, f, e) {
|
|
|
2297
2297
|
const a = r[0] ?? d.components.length + 1;
|
|
2298
2298
|
if (a >= d.components.length)
|
|
2299
2299
|
throw new E(void 0, a);
|
|
2300
|
-
return
|
|
2300
|
+
return a0(i, r, d.components);
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2302
|
+
function s0(t) {
|
|
2303
2303
|
const f = t.toLowerCase();
|
|
2304
2304
|
if (f.startsWith("uint"))
|
|
2305
2305
|
return 0;
|
|
@@ -2311,9 +2311,9 @@ function a0(t) {
|
|
|
2311
2311
|
return 2;
|
|
2312
2312
|
if (f === "string")
|
|
2313
2313
|
return 3;
|
|
2314
|
-
throw new
|
|
2314
|
+
throw new v(`Unrecognized ABI type: ${t}`);
|
|
2315
2315
|
}
|
|
2316
|
-
function
|
|
2316
|
+
function O0(t) {
|
|
2317
2317
|
const f = [], e = {};
|
|
2318
2318
|
for (let n of t) {
|
|
2319
2319
|
const d = JSON.stringify(n);
|
|
@@ -2321,13 +2321,13 @@ function F0(t) {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
return f;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2324
|
+
function u0(t) {
|
|
2325
2325
|
return {
|
|
2326
2326
|
...t,
|
|
2327
2327
|
chainid: BigInt(t.chainid)
|
|
2328
2328
|
};
|
|
2329
2329
|
}
|
|
2330
|
-
function
|
|
2330
|
+
function r0(t) {
|
|
2331
2331
|
if (t.chainid > BigInt(Number.MAX_SAFE_INTEGER))
|
|
2332
2332
|
throw new Error("Chain ID exceeds max safe integer");
|
|
2333
2333
|
return {
|
|
@@ -2335,7 +2335,7 @@ function i0(t) {
|
|
|
2335
2335
|
chainid: Number(t.chainid)
|
|
2336
2336
|
};
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function o0(t) {
|
|
2339
2339
|
const f = t.slice(2);
|
|
2340
2340
|
if (f.length === 8)
|
|
2341
2341
|
return 1;
|
|
@@ -2343,29 +2343,29 @@ function u0(t) {
|
|
|
2343
2343
|
return f.slice(0, 56) === "0".repeat(56) ? 1 : 0;
|
|
2344
2344
|
throw new Error("Invalid signature format");
|
|
2345
2345
|
}
|
|
2346
|
-
function
|
|
2347
|
-
return
|
|
2346
|
+
function U0(t) {
|
|
2347
|
+
return x0(j(t));
|
|
2348
2348
|
}
|
|
2349
2349
|
function F(t) {
|
|
2350
2350
|
return {
|
|
2351
|
-
...
|
|
2352
|
-
signatureType: t.signatureType ??
|
|
2353
|
-
signature:
|
|
2351
|
+
...u0(t),
|
|
2352
|
+
signatureType: t.signatureType ?? o0(t.signature),
|
|
2353
|
+
signature: j(t.signature),
|
|
2354
2354
|
actionType: t.actionType || 0,
|
|
2355
2355
|
actionParameter: t.actionParameter.fieldType === 0 ? {
|
|
2356
2356
|
...t.actionParameter,
|
|
2357
|
-
filterData:
|
|
2357
|
+
filterData: U0(t.actionParameter.filterData)
|
|
2358
2358
|
} : t.actionParameter
|
|
2359
2359
|
};
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2361
|
+
function M0({
|
|
2362
2362
|
actionClaimant: t,
|
|
2363
2363
|
actionStepOne: f,
|
|
2364
2364
|
actionStepTwo: e,
|
|
2365
2365
|
actionStepThree: n,
|
|
2366
2366
|
actionStepFour: d
|
|
2367
2367
|
}) {
|
|
2368
|
-
return
|
|
2368
|
+
return h0(
|
|
2369
2369
|
[
|
|
2370
2370
|
{
|
|
2371
2371
|
type: "tuple",
|
|
@@ -2472,9 +2472,9 @@ function O0({
|
|
|
2472
2472
|
[
|
|
2473
2473
|
{
|
|
2474
2474
|
actionClaimant: {
|
|
2475
|
-
...
|
|
2476
|
-
signatureType: t.signatureType ??
|
|
2477
|
-
signature:
|
|
2475
|
+
...u0(t),
|
|
2476
|
+
signatureType: t.signatureType ?? o0(t.signature),
|
|
2477
|
+
signature: j(t.signature)
|
|
2478
2478
|
},
|
|
2479
2479
|
actionStepOne: F(f),
|
|
2480
2480
|
actionStepTwo: F(e),
|
|
@@ -2484,7 +2484,7 @@ function O0({
|
|
|
2484
2484
|
]
|
|
2485
2485
|
);
|
|
2486
2486
|
}
|
|
2487
|
-
function
|
|
2487
|
+
function ff() {
|
|
2488
2488
|
return {
|
|
2489
2489
|
filterType: 0,
|
|
2490
2490
|
fieldType: 2,
|
|
@@ -2492,7 +2492,7 @@ function q0() {
|
|
|
2492
2492
|
filterData: k
|
|
2493
2493
|
};
|
|
2494
2494
|
}
|
|
2495
|
-
function
|
|
2495
|
+
function ef(t) {
|
|
2496
2496
|
return {
|
|
2497
2497
|
signatureType: 0,
|
|
2498
2498
|
signature: k,
|
|
@@ -2502,7 +2502,7 @@ function J0(t) {
|
|
|
2502
2502
|
};
|
|
2503
2503
|
}
|
|
2504
2504
|
const C = 63;
|
|
2505
|
-
function
|
|
2505
|
+
function tf(t) {
|
|
2506
2506
|
if (t.length > 5)
|
|
2507
2507
|
throw new U("Can only pack up to 5 indexes.");
|
|
2508
2508
|
let f = 0;
|
|
@@ -2514,7 +2514,7 @@ function ff(t) {
|
|
|
2514
2514
|
f |= (e & C) << n * 6;
|
|
2515
2515
|
}), t.length < 5 && (f |= C << t.length * 6), f;
|
|
2516
2516
|
}
|
|
2517
|
-
function
|
|
2517
|
+
function c0(t) {
|
|
2518
2518
|
const f = [];
|
|
2519
2519
|
for (let e = 0; e < 5; e++) {
|
|
2520
2520
|
const n = t >> e * 6 & C;
|
|
@@ -2525,39 +2525,39 @@ function o0(t) {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
function W(t, f) {
|
|
2527
2527
|
t.name === "Transfer" && f.topics[0] === B && f.topics.length === 4 && (t = structuredClone(t), t.inputs[2].indexed = !0);
|
|
2528
|
-
const e =
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
}
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2528
|
+
const e = [], n = [];
|
|
2529
|
+
for (let s = 0; s < t.inputs.length; s++) {
|
|
2530
|
+
const p = t.inputs[s];
|
|
2531
|
+
p.indexed ? e.push(p) : n.push(p);
|
|
2532
|
+
}
|
|
2533
|
+
const d = [];
|
|
2534
|
+
for (let s = 0; s < e.length; s++) {
|
|
2535
|
+
const p = f.topics[s + 1];
|
|
2536
|
+
if (!p)
|
|
2537
|
+
throw new v(
|
|
2538
|
+
`Missing topic at index ${s + 1} for indexed parameter "${e[s].name ?? s}"`
|
|
2539
|
+
);
|
|
2540
|
+
const [p0] = q([e[s]], p);
|
|
2541
|
+
d.push(p0);
|
|
2542
|
+
}
|
|
2543
|
+
const i = n.length > 0 && f.data && f.data !== "0x" ? q(n, f.data) : [], r = new Array(t.inputs.length);
|
|
2544
|
+
let a = 0, u = 0;
|
|
2539
2545
|
for (let s = 0; s < t.inputs.length; s++)
|
|
2540
|
-
t.inputs[s].indexed ?
|
|
2541
|
-
const r = Array.from({ length: t.inputs.length });
|
|
2542
|
-
let a = 0;
|
|
2543
|
-
for (let s = 0; s < d.length; s++)
|
|
2544
|
-
r[d[s]] = n[a++];
|
|
2545
|
-
for (let s = 0; s < i.length; s++)
|
|
2546
|
-
r[i[s]] = n[a++];
|
|
2546
|
+
t.inputs[s].indexed ? r[s] = d[a++] : r[s] = i[u++];
|
|
2547
2547
|
return {
|
|
2548
2548
|
...f,
|
|
2549
|
-
eventName:
|
|
2549
|
+
eventName: t.name,
|
|
2550
2550
|
args: r
|
|
2551
2551
|
};
|
|
2552
2552
|
}
|
|
2553
|
-
function
|
|
2553
|
+
function $0([t, f]) {
|
|
2554
2554
|
if (t < 0 || t > 13 || f < 0 || f > 13)
|
|
2555
2555
|
throw new U(
|
|
2556
2556
|
`Tuple indices must be between 0-13, got: [${t}, ${f}]`
|
|
2557
2557
|
);
|
|
2558
2558
|
return 32 + (t << 4) + f;
|
|
2559
2559
|
}
|
|
2560
|
-
function
|
|
2560
|
+
function V0(t) {
|
|
2561
2561
|
if (t < 32 || t > 253)
|
|
2562
2562
|
throw new U(
|
|
2563
2563
|
`Field index must be between 32-253, got: ${t}`
|
|
@@ -2565,71 +2565,71 @@ function M0(t) {
|
|
|
2565
2565
|
const f = t - 32, e = f >> 4 & 15, n = f & 15;
|
|
2566
2566
|
return [e, n];
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2568
|
+
function G0(t) {
|
|
2569
2569
|
return t >= 32;
|
|
2570
2570
|
}
|
|
2571
|
-
function
|
|
2572
|
-
return
|
|
2571
|
+
function H0(t) {
|
|
2572
|
+
return G0(t);
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2575
|
-
return
|
|
2574
|
+
function nf(t) {
|
|
2575
|
+
return $0(t);
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2578
|
-
return
|
|
2577
|
+
function Q0(t) {
|
|
2578
|
+
return V0(t);
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2581
|
-
const e =
|
|
2580
|
+
function z0(t, f) {
|
|
2581
|
+
const e = c0(f);
|
|
2582
2582
|
if (e.length === 0)
|
|
2583
|
-
throw new
|
|
2583
|
+
throw new v(
|
|
2584
2584
|
`Failed to unpack any indexes from fieldIndex ${f}`
|
|
2585
2585
|
);
|
|
2586
2586
|
let n = t;
|
|
2587
2587
|
for (let d = 0; d < e.length; d++) {
|
|
2588
2588
|
const i = e[d];
|
|
2589
2589
|
if (i === void 0)
|
|
2590
|
-
throw new
|
|
2590
|
+
throw new v(`Undefined index at level ${d}`);
|
|
2591
2591
|
if (typeof n == "bigint")
|
|
2592
2592
|
return n;
|
|
2593
2593
|
if (!Array.isArray(n))
|
|
2594
|
-
throw new
|
|
2594
|
+
throw new v(
|
|
2595
2595
|
`Expected array at level ${d}, but got ${typeof n}`
|
|
2596
2596
|
);
|
|
2597
2597
|
if (i >= n.length)
|
|
2598
|
-
throw new
|
|
2598
|
+
throw new v(
|
|
2599
2599
|
`Index ${i} is out of bounds at level ${d}. Array length is ${n.length}`
|
|
2600
2600
|
);
|
|
2601
2601
|
n = n[i];
|
|
2602
2602
|
}
|
|
2603
2603
|
if (typeof n != "bigint")
|
|
2604
|
-
throw new
|
|
2604
|
+
throw new v(
|
|
2605
2605
|
`Expected bigint at final position, but got ${typeof n}`
|
|
2606
2606
|
);
|
|
2607
2607
|
return n;
|
|
2608
2608
|
}
|
|
2609
|
-
function
|
|
2610
|
-
return
|
|
2609
|
+
function df(t, f) {
|
|
2610
|
+
return z0(t, f);
|
|
2611
2611
|
}
|
|
2612
2612
|
export {
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2613
|
+
i0 as EventAction,
|
|
2614
|
+
L0 as FilterType,
|
|
2615
|
+
P0 as PrimitiveType,
|
|
2616
|
+
_0 as SignatureType,
|
|
2617
|
+
D0 as ValueType,
|
|
2618
|
+
ff as anyActionParameter,
|
|
2619
2619
|
W as decodeAndReorderLogArgs,
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2620
|
+
o0 as detectSignatureType,
|
|
2621
|
+
z0 as getScalarValue,
|
|
2622
|
+
df as getScalarValueFromTuple,
|
|
2623
|
+
H0 as isClaimantFieldIndexTuple,
|
|
2624
|
+
G0 as isCriteriaFieldIndexTuple,
|
|
2625
|
+
F0 as isEventActionPayloadSimple,
|
|
2626
|
+
nf as packClaimantFieldIndexes,
|
|
2627
|
+
$0 as packCriteriaFieldIndexes,
|
|
2628
|
+
tf as packFieldIndexes,
|
|
2629
|
+
M0 as prepareEventActionPayload,
|
|
2630
|
+
ef as transactionSenderClaimant,
|
|
2631
|
+
Q0 as unpackClaimantFieldIndexes,
|
|
2632
|
+
V0 as unpackCriteriaFieldIndexes,
|
|
2633
|
+
c0 as unpackFieldIndexes
|
|
2634
2634
|
};
|
|
2635
2635
|
//# sourceMappingURL=EventAction.js.map
|