@boostxyz/sdk 8.0.0-canary.7 → 8.0.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.
@@ -1,10 +1,10 @@
1
1
  import { du as Y, dv as c0, dw as p0, dx as y0, dy as b0 } from "../generated-DRbljODL.js";
2
- import { getTransaction as R, getTransactionReceipt as G } from "@wagmi/core";
3
- import { isAddressEqual as h, decodeFunctionData as Z, isAddress as H, zeroAddress as W, decodeEventLog as j, zeroHash as S, fromHex as L, encodeAbiParameters as l0, pad as K, trim as g0 } from "viem";
2
+ import { getTransaction as L, getTransactionReceipt as G } from "@wagmi/core";
3
+ import { isAddressEqual as h, zeroAddress as S, decodeFunctionData as Z, isAddress as H, decodeEventLog as j, zeroHash as B, fromHex as _, encodeAbiParameters as l0, pad as K, trim as g0 } from "viem";
4
4
  import { m as h0 } from "../deployments-CQ0jtRxR.js";
5
5
  import { DeployableTarget as x0 } from "../Deployable/DeployableTarget.js";
6
- import { ValidationAbiMissingError as N, FunctionDataDecodeError as q, UnparseableAbiParamError as J, DecodedArgsMalformedError as m0, DecodedArgsError as I, FieldValueUndefinedError as f0, InvalidTupleDecodingError as E, UnrecognizedFilterTypeError as w0, FieldValueNotComparableError as e0, InvalidNumericalCriteriaError as _, NoEventActionStepsProvidedError as A0, TooManyEventActionStepsProvidedError as T0, InvalidTupleEncodingError as U } from "../errors.js";
7
- import { RegistryType as v0, CheatCodes as B, TRANSFER_SIGNATURE as P } from "../utils.js";
6
+ import { ValidationAbiMissingError as N, FunctionDataDecodeError as q, UnparseableAbiParamError as J, DecodedArgsMalformedError as m0, DecodedArgsError as I, FieldValueUndefinedError as f0, InvalidTupleDecodingError as E, UnrecognizedFilterTypeError as w0, FieldValueNotComparableError as e0, InvalidNumericalCriteriaError as P, NoEventActionStepsProvidedError as A0, TooManyEventActionStepsProvidedError as T0, InvalidTupleEncodingError as U } from "../errors.js";
7
+ import { RegistryType as v0, CheatCodes as k, TRANSFER_SIGNATURE as D } from "../utils.js";
8
8
  const I0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b608051611c666100945f395f6101510152611c665ff3fe6080604052600436106100ad575f3560e01c80639bc1cf8111610066578063d7768c471161004c578063d7768c4714610206578063dbdf211014610232578063ddd6ab0814610253575f80fd5b80639bc1cf81146101b9578063c26624e8146101da575f80fd5b806328d6183b1161009657806328d6183b14610106578063393df8cb14610140578063439fab9114610198575f80fd5b806301ffc9a7146100b157806309c5eabe146100e5575b5f80fd5b3480156100bc575f80fd5b506100d06100cb36600461128c565b610270565b60405190151581526020015b60405180910390f35b6100f86100f33660046112d2565b6102cb565b6040516100dc92919061138c565b348015610111575f80fd5b506040517f7687b0ed0000000000000000000000000000000000000000000000000000000081526020016100dc565b34801561014b575f80fd5b506101737f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100dc565b3480156101a3575f80fd5b506101b76101b23660046112d2565b610300565b005b3480156101c4575f80fd5b506101cd6103a0565b6040516100dc91906114a6565b3480156101e5575f80fd5b506101f96101f4366004611527565b61059f565b6040516100dc919061153e565b348015610211575f80fd5b506102256102203660046112d2565b61077a565b6040516100dc9190611550565b34801561023d575f80fd5b506102466107ae565b6040516100dc91906115b5565b34801561025e575f80fd5b506004546040519081526020016100dc565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7687b0ed0000000000000000000000000000000000000000000000000000000014806102c557506102c58261085e565b92915050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156103515760018160011c14303b106103485763f92ee8a95f526004601cfd5b818160ff1b1b91505b50610366610361838501856118e7565b6108b3565b801561039b576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610596578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff166001811115610410576104106113ae565b6001811115610421576104216113ae565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610494576104946113ae565b60078111156104a5576104a56113ae565b81528154602090910190610100900460ff1660058111156104c8576104c86113ae565b60058111156104d9576104d96113ae565b8152815462010000900463ffffffff166020820152600182018054604090920191610503906119e8565b80601f016020809104026020016040519081016040528092919081815260200182805461052f906119e8565b801561057a5780601f106105515761010080835404028352916020019161057a565b820191905f5260205f20905b81548152906001019060200180831161055d57829003601f168201915b50505050508152505081525050815260200190600101906103c3565b50505050905090565b6105a7611231565b600482815481106105ba576105ba611a39565b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156105fd576105fd6113ae565b600181111561060e5761060e6113ae565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610681576106816113ae565b6007811115610692576106926113ae565b81528154602090910190610100900460ff1660058111156106b5576106b56113ae565b60058111156106c6576106c66113ae565b8152815462010000900463ffffffff1660208201526001820180546040909201916106f0906119e8565b80601f016020809104026020016040519081016040528092919081815260200182805461071c906119e8565b80156107675780601f1061073e57610100808354040283529160200191610767565b820191905f5260205f20905b81548152906001019060200180831161074a57829003601f168201915b5050509190925250505090525092915050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a081019091525f8054829060ff1660018111156107fc576107fc6113ae565b600181111561080d5761080d6113ae565b815260018201546020820152600282015463ffffffff81166040830152640100000000900473ffffffffffffffffffffffffffffffffffffffff166060820152600390910154608090910152919050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe67157950000000000000000000000000000000000000000000000000000000014806102c557506102c582611161565b6108bb6111f7565b805180515f8054909190829060ff1916600183818111156108de576108de6113ae565b02179055506020828101516001808401919091556040840151600284018054606087015173ffffffffffffffffffffffffffffffffffffffff16640100000000027fffffffffffffffff00000000000000000000000000000000000000000000000090911663ffffffff90931692909217919091179055608090930151600390920191909155828101516004805480850182555f91909152815160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101918255928201517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c90930180549294919392909160ff199091169083818111156109ec576109ec6113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610aad57610aad6113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610af257610af26113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610b469082611ab1565b505050604083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610bd757610bd76113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610c9857610c986113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610cdd57610cdd6113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610d319082611ab1565b505050606083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610dc257610dc26113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610e8357610e836113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ec857610ec86113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610f1c9082611ab1565b505050608083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610fad57610fad6113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff199091169083600781111561106e5761106e6113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101008360058111156110b3576110b36113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff909116178155606082015160018201906111079082611ab1565b50505050507f7c54f3f7ef1d1e3acbe06bce75dbb6f17c64cb446c13bf354da8d7735b99f2a6815f01518260200151836040015184606001518560800151604051611156959493929190611bc8565b60405180910390a150565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806102c557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146102c5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132805460011661122e5763d7e6bcf85f526004601cfd5b50565b6040805160c081019091525f808252602082019081525f602082018190526040820181905260608201526080016112876040805160808101909152805f81526020015f81525f6020820152606060409091015290565b905290565b5f6020828403121561129c575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112cb575f80fd5b9392505050565b5f80602083850312156112e3575f80fd5b823567ffffffffffffffff8111156112f9575f80fd5b8301601f81018513611309575f80fd5b803567ffffffffffffffff81111561131f575f80fd5b856020828401011115611330575f80fd5b6020919091019590945092505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b8215158152604060208201525f6113a66040830184611340565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600281106113eb576113eb6113ae565b9052565b805182525f602082015161140660208501826113db565b5060ff604083015116604084015273ffffffffffffffffffffffffffffffffffffffff60608301511660608401526080820151608084015260a082015160c060a085015280516008811061145c5761145c6113ae565b60c0850152602081015160068110611476576114766113ae565b60e0850152604081015163ffffffff166101008501526060015160806101208501526113a6610140850182611340565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b8281101561151b577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184526115068583516113ef565b945060209384019391909101906001016114cc565b50929695505050505050565b5f60208284031215611537575f80fd5b5035919050565b602081525f6112cb60208301846113ef565b602081525f6112cb6020830184611340565b61156d8282516113db565b6020810151602083015263ffffffff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff6060820151166060830152608081015160808301525050565b60a081016102c58284611562565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160a0810167ffffffffffffffff81118282101715611613576116136115c3565b60405290565b6040516080810167ffffffffffffffff81118282101715611613576116136115c3565b60405160c0810167ffffffffffffffff81118282101715611613576116136115c3565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156116a6576116a66115c3565b604052919050565b8035600281106116bc575f80fd5b919050565b803563ffffffff811681146116bc575f80fd5b803573ffffffffffffffffffffffffffffffffffffffff811681146116bc575f80fd5b5f60a08284031215611707575f80fd5b61170f6115f0565b905061171a826116ae565b815260208281013590820152611732604083016116c1565b6040820152611743606083016116d4565b606082015260809182013591810191909152919050565b5f6080828403121561176a575f80fd5b611772611619565b9050813560088110611782575f80fd5b8152602082013560068110611795575f80fd5b60208201526117a6604083016116c1565b6040820152606082013567ffffffffffffffff8111156117c4575f80fd5b8201601f810184136117d4575f80fd5b803567ffffffffffffffff8111156117ee576117ee6115c3565b61181f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161165f565b818152856020838501011115611833575f80fd5b816020840160208301375f6020838301015280606085015250505092915050565b5f60c08284031215611864575f80fd5b61186c61163c565b82358152905061187e602083016116ae565b6020820152604082013560ff81168114611896575f80fd5b60408201526118a7606083016116d4565b60608201526080828101359082015260a082013567ffffffffffffffff8111156118cf575f80fd5b6118db8482850161175a565b60a08301525092915050565b5f602082840312156118f7575f80fd5b813567ffffffffffffffff81111561190d575f80fd5b8201610120818503121561191f575f80fd5b6119276115f0565b61193185836116f7565b815260a082013567ffffffffffffffff81111561194c575f80fd5b61195886828501611854565b60208301525060c082013567ffffffffffffffff811115611977575f80fd5b61198386828501611854565b60408301525060e082013567ffffffffffffffff8111156119a2575f80fd5b6119ae86828501611854565b60608301525061010082013567ffffffffffffffff8111156119ce575f80fd5b6119da86828501611854565b608083015250949350505050565b600181811c908216806119fc57607f821691505b602082108103611a33577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b601f82111561039b57805f5260205f20601f840160051c81016020851015611a8b5750805b601f840160051c820191505b81811015611aaa575f8155600101611a97565b5050505050565b815167ffffffffffffffff811115611acb57611acb6115c3565b611adf81611ad984546119e8565b84611a66565b6020601f821160018114611b30575f8315611afa5750848201515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b178455611aaa565b5f848152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08516915b82811015611b7d5787850151825560209485019460019092019101611b5d565b5084821015611bb957868401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b60f8161c191681555b50505050600190811b01905550565b611bd28187611562565b61012060a08201525f611be96101208301876113ef565b82810360c0840152611bfb81876113ef565b905082810360e0840152611c0f81866113ef565b9050828103610100840152611c2481856113ef565b9897505050505050505056fea2646970667358221220ec29c85e9420d542351535cfbb2c79285bfb5d86014ee966669d793fa2a4481264736f6c634300081a0033", E0 = {
9
9
  "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
10
10
  name: "Transfer",
@@ -1380,111 +1380,111 @@ const I0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
1380
1380
  }
1381
1381
  ]
1382
1382
  }
1383
- }, g = Symbol.for("@ts-pattern/matcher"), C0 = Symbol.for("@ts-pattern/isVariadic"), M = "@ts-pattern/anonymous-select-key", z = (t) => !!(t && typeof t == "object"), O = (t) => t && !!t[g], l = (t, f, e) => {
1383
+ }, x = Symbol.for("@ts-pattern/matcher"), C0 = 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
- const n = t[g](), { matched: d, selections: i } = n.match(f);
1386
- return d && i && Object.keys(i).forEach((a) => e(a, i[a])), d;
1385
+ const n = t[x](), { matched: d, selections: i } = n.match(f);
1386
+ return d && i && Object.keys(i).forEach((r) => e(r, i[r])), d;
1387
1387
  }
1388
1388
  if (z(t)) {
1389
1389
  if (!z(f)) return !1;
1390
1390
  if (Array.isArray(t)) {
1391
1391
  if (!Array.isArray(f)) return !1;
1392
1392
  let n = [], d = [], i = [];
1393
- for (const a of t.keys()) {
1394
- const r = t[a];
1395
- O(r) && r[C0] ? i.push(r) : i.length ? d.push(r) : n.push(r);
1393
+ for (const r of t.keys()) {
1394
+ const a = t[r];
1395
+ O(a) && a[C0] ? 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 a = f.slice(0, n.length), r = d.length === 0 ? [] : f.slice(-d.length), s = f.slice(n.length, d.length === 0 ? 1 / 0 : -d.length);
1401
- return n.every((c, v) => l(c, a[v], e)) && d.every((c, v) => l(c, r[v], e)) && (i.length === 0 || l(i[0], s, e));
1400
+ const r = f.slice(0, n.length), a = d.length === 0 ? [] : f.slice(-d.length), s = f.slice(n.length, d.length === 0 ? 1 / 0 : -d.length);
1401
+ return n.every((c, y) => g(c, r[y], e)) && d.every((c, y) => g(c, a[y], e)) && (i.length === 0 || g(i[0], s, e));
1402
1402
  }
1403
- return t.length === f.length && t.every((a, r) => l(a, f[r], e));
1403
+ return t.length === f.length && t.every((r, a) => g(r, f[a], e));
1404
1404
  }
1405
1405
  return Reflect.ownKeys(t).every((n) => {
1406
1406
  const d = t[n];
1407
- return (n in f || O(i = d) && i[g]().matcherType === "optional") && l(d, f[n], e);
1407
+ return (n in f || O(i = d) && i[x]().matcherType === "optional") && g(d, f[n], e);
1408
1408
  var i;
1409
1409
  });
1410
1410
  }
1411
1411
  return Object.is(f, t);
1412
- }, T = (t) => {
1412
+ }, v = (t) => {
1413
1413
  var f, e, n;
1414
- return z(t) ? O(t) ? (f = (e = (n = t[g]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? k(t, T) : k(Object.values(t), T) : [];
1415
- }, k = (t, f) => t.reduce((e, n) => e.concat(f(n)), []);
1414
+ return z(t) ? O(t) ? (f = (e = (n = t[x]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? R(t, v) : R(Object.values(t), v) : [];
1415
+ }, R = (t, f) => t.reduce((e, n) => e.concat(f(n)), []);
1416
1416
  function p(t) {
1417
1417
  return Object.assign(t, { optional: () => N0(t), and: (f) => o(t, f), or: (f) => S0(t, f), select: (f) => f === void 0 ? t0(t) : t0(f, t) });
1418
1418
  }
1419
1419
  function N0(t) {
1420
- return p({ [g]: () => ({ match: (f) => {
1420
+ return p({ [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 ? (T(t).forEach((d) => n(d, void 0)), { matched: !0, selections: e }) : { matched: l(t, f, n), selections: e };
1426
- }, getSelectionKeys: () => T(t), matcherType: "optional" }) });
1425
+ return f === void 0 ? (v(t).forEach((d) => n(d, void 0)), { matched: !0, selections: e }) : { matched: g(t, f, n), selections: e };
1426
+ }, getSelectionKeys: () => v(t), matcherType: "optional" }) });
1427
1427
  }
1428
1428
  function o(...t) {
1429
- return p({ [g]: () => ({ match: (f) => {
1429
+ return p({ [x]: () => ({ match: (f) => {
1430
1430
  let e = {};
1431
1431
  const n = (d, i) => {
1432
1432
  e[d] = i;
1433
1433
  };
1434
- return { matched: t.every((d) => l(d, f, n)), selections: e };
1435
- }, getSelectionKeys: () => k(t, T), matcherType: "and" }) });
1434
+ return { matched: t.every((d) => g(d, f, n)), selections: e };
1435
+ }, getSelectionKeys: () => R(t, v), matcherType: "and" }) });
1436
1436
  }
1437
1437
  function S0(...t) {
1438
- return p({ [g]: () => ({ match: (f) => {
1438
+ return p({ [x]: () => ({ match: (f) => {
1439
1439
  let e = {};
1440
1440
  const n = (d, i) => {
1441
1441
  e[d] = i;
1442
1442
  };
1443
- return k(t, T).forEach((d) => n(d, void 0)), { matched: t.some((d) => l(d, f, n)), selections: e };
1444
- }, getSelectionKeys: () => k(t, T), matcherType: "or" }) });
1443
+ return R(t, v).forEach((d) => n(d, void 0)), { matched: t.some((d) => g(d, f, n)), selections: e };
1444
+ }, getSelectionKeys: () => R(t, v), matcherType: "or" }) });
1445
1445
  }
1446
1446
  function u(t) {
1447
- return { [g]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
1447
+ return { [x]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
1448
1448
  }
1449
1449
  function t0(...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 p({ [g]: () => ({ match: (n) => {
1451
+ return p({ [x]: () => ({ match: (n) => {
1452
1452
  let d = { [f ?? M]: n };
1453
- return { matched: e === void 0 || l(e, n, (i, a) => {
1454
- d[i] = a;
1453
+ return { matched: e === void 0 || g(e, n, (i, r) => {
1454
+ d[i] = r;
1455
1455
  }), selections: d };
1456
- }, getSelectionKeys: () => [f ?? M].concat(e === void 0 ? [] : T(e)) }) });
1456
+ }, getSelectionKeys: () => [f ?? M].concat(e === void 0 ? [] : v(e)) }) });
1457
1457
  }
1458
- function y(t) {
1458
+ function b(t) {
1459
1459
  return typeof t == "number";
1460
1460
  }
1461
- function x(t) {
1461
+ function m(t) {
1462
1462
  return typeof t == "string";
1463
1463
  }
1464
- function m(t) {
1464
+ function w(t) {
1465
1465
  return typeof t == "bigint";
1466
1466
  }
1467
1467
  p(u(function(t) {
1468
1468
  return !0;
1469
1469
  }));
1470
- const w = (t) => Object.assign(p(t), { startsWith: (f) => {
1471
- return w(o(t, (e = f, u((n) => x(n) && n.startsWith(e)))));
1470
+ const A = (t) => Object.assign(p(t), { startsWith: (f) => {
1471
+ return A(o(t, (e = f, u((n) => m(n) && n.startsWith(e)))));
1472
1472
  var e;
1473
1473
  }, endsWith: (f) => {
1474
- return w(o(t, (e = f, u((n) => x(n) && n.endsWith(e)))));
1474
+ return A(o(t, (e = f, u((n) => m(n) && n.endsWith(e)))));
1475
1475
  var e;
1476
- }, minLength: (f) => w(o(t, ((e) => u((n) => x(n) && n.length >= e))(f))), length: (f) => w(o(t, ((e) => u((n) => x(n) && n.length === e))(f))), maxLength: (f) => w(o(t, ((e) => u((n) => x(n) && n.length <= e))(f))), includes: (f) => {
1477
- return w(o(t, (e = f, u((n) => x(n) && n.includes(e)))));
1476
+ }, minLength: (f) => A(o(t, ((e) => u((n) => m(n) && n.length >= e))(f))), length: (f) => A(o(t, ((e) => u((n) => m(n) && n.length === e))(f))), maxLength: (f) => A(o(t, ((e) => u((n) => m(n) && n.length <= e))(f))), includes: (f) => {
1477
+ return A(o(t, (e = f, u((n) => m(n) && n.includes(e)))));
1478
1478
  var e;
1479
1479
  }, regex: (f) => {
1480
- return w(o(t, (e = f, u((n) => x(n) && !!n.match(e)))));
1480
+ return A(o(t, (e = f, u((n) => m(n) && !!n.match(e)))));
1481
1481
  var e;
1482
1482
  } });
1483
- w(u(x));
1484
- const b = (t) => Object.assign(p(t), { between: (f, e) => b(o(t, ((n, d) => u((i) => y(i) && n <= i && d >= i))(f, e))), lt: (f) => b(o(t, ((e) => u((n) => y(n) && n < e))(f))), gt: (f) => b(o(t, ((e) => u((n) => y(n) && n > e))(f))), lte: (f) => b(o(t, ((e) => u((n) => y(n) && n <= e))(f))), gte: (f) => b(o(t, ((e) => u((n) => y(n) && n >= e))(f))), int: () => b(o(t, u((f) => y(f) && Number.isInteger(f)))), finite: () => b(o(t, u((f) => y(f) && Number.isFinite(f)))), positive: () => b(o(t, u((f) => y(f) && f > 0))), negative: () => b(o(t, u((f) => y(f) && f < 0))) });
1485
- b(u(y));
1486
- const A = (t) => Object.assign(p(t), { between: (f, e) => A(o(t, ((n, d) => u((i) => m(i) && n <= i && d >= i))(f, e))), lt: (f) => A(o(t, ((e) => u((n) => m(n) && n < e))(f))), gt: (f) => A(o(t, ((e) => u((n) => m(n) && n > e))(f))), lte: (f) => A(o(t, ((e) => u((n) => m(n) && n <= e))(f))), gte: (f) => A(o(t, ((e) => u((n) => m(n) && n >= e))(f))), positive: () => A(o(t, u((f) => m(f) && f > 0))), negative: () => A(o(t, u((f) => m(f) && f < 0))) });
1487
1483
  A(u(m));
1484
+ const l = (t) => Object.assign(p(t), { between: (f, e) => l(o(t, ((n, d) => u((i) => b(i) && n <= i && d >= i))(f, e))), lt: (f) => l(o(t, ((e) => u((n) => b(n) && n < e))(f))), gt: (f) => l(o(t, ((e) => u((n) => b(n) && n > e))(f))), lte: (f) => l(o(t, ((e) => u((n) => b(n) && n <= e))(f))), gte: (f) => l(o(t, ((e) => u((n) => b(n) && n >= e))(f))), int: () => l(o(t, u((f) => b(f) && Number.isInteger(f)))), finite: () => l(o(t, u((f) => b(f) && Number.isFinite(f)))), positive: () => l(o(t, u((f) => b(f) && f > 0))), negative: () => l(o(t, u((f) => b(f) && f < 0))) });
1485
+ l(u(b));
1486
+ const T = (t) => Object.assign(p(t), { between: (f, e) => T(o(t, ((n, d) => u((i) => w(i) && n <= i && d >= i))(f, e))), lt: (f) => T(o(t, ((e) => u((n) => w(n) && n < e))(f))), gt: (f) => T(o(t, ((e) => u((n) => w(n) && n > e))(f))), lte: (f) => T(o(t, ((e) => u((n) => w(n) && n <= e))(f))), gte: (f) => T(o(t, ((e) => u((n) => w(n) && n >= e))(f))), positive: () => T(o(t, u((f) => w(f) && f > 0))), negative: () => T(o(t, u((f) => w(f) && f < 0))) });
1487
+ T(u(w));
1488
1488
  p(u(function(t) {
1489
1489
  return typeof t == "boolean";
1490
1490
  }));
@@ -1521,10 +1521,10 @@ class $ {
1521
1521
  const e = f[f.length - 1], n = [f[0]];
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
- let i = !1, a = {};
1525
- const r = (c, v) => {
1526
- i = !0, a[c] = v;
1527
- }, s = !n.some((c) => l(c, this.input, r)) || d && !d(this.input) ? X : { matched: !0, value: e(i ? M in a ? a[M] : a : this.input, this.input) };
1524
+ let i = !1, r = {};
1525
+ const a = (c, y) => {
1526
+ i = !0, r[c] = y;
1527
+ }, s = !n.some((c) => g(c, this.input, a)) || d && !d(this.input) ? X : { matched: !0, value: e(i ? M in r ? r[M] : r : this.input, this.input) };
1528
1528
  return new $(this.input, s);
1529
1529
  }
1530
1530
  when(f, e) {
@@ -1677,76 +1677,82 @@ const V = class V extends x0 {
1677
1677
  * @throws {FunctionDataDecodeError} If there's an error decoding function data (for function-based derivation).
1678
1678
  */
1679
1679
  async deriveActionClaimantFromTransaction(f, e) {
1680
- if (f.fieldIndex === B.TX_SENDER_CLAIMANT) {
1680
+ if (f.fieldIndex === k.TX_SENDER_CLAIMANT) {
1681
1681
  if ("hash" in e) {
1682
- const d = await R(this._config, {
1682
+ const i = await L(this._config, {
1683
1683
  ...e,
1684
1684
  chainId: f.chainid
1685
1685
  });
1686
- return e.notBeforeBlockNumber && d.blockNumber < e.notBeforeBlockNumber ? void 0 : d.from;
1686
+ return e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber ? void 0 : i.from;
1687
1687
  }
1688
1688
  if ("logs" in e) {
1689
- for (let d of e.logs)
1690
- if (d.transactionHash) {
1691
- const i = await R(this._config, {
1689
+ for (let i of e.logs)
1690
+ if (i.transactionHash) {
1691
+ const r = await L(this._config, {
1692
1692
  ...e,
1693
- hash: d.transactionHash,
1693
+ hash: i.transactionHash,
1694
1694
  chainId: f.chainid
1695
1695
  });
1696
- return e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber ? void 0 : i.from;
1696
+ return e.notBeforeBlockNumber && r.blockNumber < e.notBeforeBlockNumber ? void 0 : r.from;
1697
1697
  }
1698
1698
  }
1699
1699
  return;
1700
1700
  }
1701
- const n = f.signature;
1701
+ const n = f.signature, d = h(
1702
+ f.targetContract,
1703
+ S
1704
+ );
1702
1705
  if (f.signatureType === 0) {
1703
- let d;
1704
- if (e.abiItem ? d = e.abiItem : d = e.knownSignatures[n], !d)
1706
+ let i;
1707
+ if (e.abiItem ? i = e.abiItem : i = e.knownSignatures[n], !i)
1705
1708
  throw new N(n);
1706
1709
  if ("logs" in e) {
1707
- const r = e.logs.filter((s) => s.topics[0] === n).map((s) => F(d, s));
1708
- for (const s of r) {
1709
- if (!h(s.address, f.targetContract)) continue;
1710
- const c = this.validateClaimantAgainstArgs(
1710
+ const s = e.logs.filter((c) => c.topics[0] === n).map((c) => W(i, c));
1711
+ for (const c of s) {
1712
+ if (!d && !h(c.address, f.targetContract))
1713
+ continue;
1714
+ const y = this.validateClaimantAgainstArgs(
1711
1715
  f,
1712
- s
1716
+ c
1713
1717
  );
1714
- if (c) return c;
1718
+ if (y) return y;
1715
1719
  }
1716
1720
  }
1717
1721
  if (!("hash" in e))
1718
1722
  return;
1719
- const i = await G(this._config, {
1723
+ const r = await G(this._config, {
1720
1724
  ...e,
1721
1725
  chainId: f.chainid
1722
1726
  });
1723
- if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber)
1727
+ if (e.notBeforeBlockNumber && r.blockNumber < e.notBeforeBlockNumber)
1724
1728
  return;
1725
1729
  let a;
1726
- n === P ? { decodedLogs: a } = await this.decodeTransferLogs(i) : a = i.logs.filter((r) => r.topics[0] === n).map((r) => F(d, r));
1727
- for (let r of a) {
1728
- if (!h(r.address, f.targetContract)) continue;
1729
- let s = this.validateClaimantAgainstArgs(f, r);
1730
- if (s) return s;
1730
+ n === D ? { decodedLogs: a } = await this.decodeTransferLogs(r) : a = r.logs.filter((s) => s.topics[0] === n).map((s) => W(i, s));
1731
+ for (let s of a) {
1732
+ if (!d && !h(s.address, f.targetContract))
1733
+ continue;
1734
+ let c = this.validateClaimantAgainstArgs(f, s);
1735
+ if (c) return c;
1731
1736
  }
1732
1737
  }
1733
1738
  if (f.signatureType === 1 && "hash" in e) {
1734
- const d = await R(this._config, {
1739
+ const i = await L(this._config, {
1735
1740
  ...e,
1736
1741
  chainId: f.chainid
1737
1742
  });
1738
- if (e.notBeforeBlockNumber && d.blockNumber < e.notBeforeBlockNumber || !h(d.to, f.targetContract)) return;
1739
- let i;
1740
- if (e.abiItem ? i = e.abiItem : i = e.knownSignatures[n], !i)
1743
+ if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber || !d && !h(i.to, f.targetContract))
1744
+ return;
1745
+ let r;
1746
+ if (e.abiItem ? r = e.abiItem : r = e.knownSignatures[n], !r)
1741
1747
  throw new N(f.signature);
1742
1748
  let a;
1743
1749
  try {
1744
1750
  a = Z({
1745
- abi: [i],
1746
- data: d.input
1751
+ abi: [r],
1752
+ data: i.input
1747
1753
  });
1748
- } catch (r) {
1749
- throw new q([i], r);
1754
+ } catch (s) {
1755
+ throw new q([r], s);
1750
1756
  }
1751
1757
  return this.validateClaimantAgainstArgs(f, a);
1752
1758
  }
@@ -1766,11 +1772,11 @@ const V = class V extends x0 {
1766
1772
  const [d, i] = G0(f.fieldIndex);
1767
1773
  if (e.args.length <= d)
1768
1774
  return;
1769
- const a = e.args[d];
1770
- if (!Array.isArray(a) || a.length <= i)
1775
+ const r = e.args[d];
1776
+ if (!Array.isArray(r) || r.length <= i)
1771
1777
  return;
1772
- const r = a[i];
1773
- return H(r) ? r : void 0;
1778
+ const a = r[i];
1779
+ return H(a) ? a : void 0;
1774
1780
  }
1775
1781
  if (e.args.length <= f.fieldIndex)
1776
1782
  return;
@@ -1823,15 +1829,15 @@ const V = class V extends x0 {
1823
1829
  });
1824
1830
  if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber)
1825
1831
  return !1;
1826
- if (f.signature === P) {
1827
- const { decodedLogs: r, event: s } = await this.decodeTransferLogs(i);
1828
- return this.isActionEventValid(f, r, s);
1832
+ if (f.signature === D) {
1833
+ const { decodedLogs: a, event: s } = await this.decodeTransferLogs(i);
1834
+ return this.isActionEventValid(f, a, s);
1829
1835
  }
1830
- const a = i.logs.filter((r) => r.topics[0] === n).map((r) => F(d, r));
1831
- return this.isActionEventValid(f, a, d);
1836
+ const r = i.logs.filter((a) => a.topics[0] === n).map((a) => W(d, a));
1837
+ return this.isActionEventValid(f, r, d);
1832
1838
  }
1833
1839
  if (f.signatureType === 1 && "hash" in e) {
1834
- const n = await R(this._config, {
1840
+ const n = await L(this._config, {
1835
1841
  ...e,
1836
1842
  chainId: f.chainid
1837
1843
  });
@@ -1852,7 +1858,7 @@ const V = class V extends x0 {
1852
1858
  const d = f.actionParameter;
1853
1859
  if (!e.length) return !1;
1854
1860
  for (let i of e)
1855
- if (!(f.targetContract !== W && !h(i.address, f.targetContract)))
1861
+ if (!(f.targetContract !== S && !h(i.address, f.targetContract)))
1856
1862
  try {
1857
1863
  if (!Array.isArray(i.args))
1858
1864
  throw new m0({
@@ -1860,13 +1866,13 @@ const V = class V extends x0 {
1860
1866
  criteria: d,
1861
1867
  fieldValue: void 0
1862
1868
  });
1863
- const { value: a, type: r } = this.parseFieldFromAbi(
1869
+ const { value: r, type: a } = this.parseFieldFromAbi(
1864
1870
  i.args,
1865
1871
  d.fieldIndex,
1866
1872
  n.inputs || [],
1867
1873
  d.fieldType
1868
- ), s = { ...d, fieldType: r };
1869
- if (this.validateFieldAgainstCriteria(s, a, { log: i }))
1874
+ ), s = { ...d, fieldType: a };
1875
+ if (this.validateFieldAgainstCriteria(s, r, { log: i }))
1870
1876
  return !0;
1871
1877
  } catch {
1872
1878
  }
@@ -1890,19 +1896,19 @@ const V = class V extends x0 {
1890
1896
  */
1891
1897
  async decodeTransferLogs(f) {
1892
1898
  const e = f.logs.filter(
1893
- (d) => d.topics[0] === P
1899
+ (d) => d.topics[0] === D
1894
1900
  ), n = structuredClone(
1895
1901
  E0["Transfer(address indexed,address indexed,uint256 indexed)"]
1896
1902
  );
1897
1903
  try {
1898
1904
  return {
1899
1905
  decodedLogs: e.map((i) => {
1900
- const { eventName: a, args: r } = j({
1906
+ const { eventName: r, args: a } = j({
1901
1907
  abi: [n],
1902
1908
  data: i.data,
1903
1909
  topics: i.topics
1904
1910
  });
1905
- return { ...i, eventName: a, args: r };
1911
+ return { ...i, eventName: r, args: a };
1906
1912
  }),
1907
1913
  event: n
1908
1914
  };
@@ -1910,12 +1916,12 @@ const V = class V extends x0 {
1910
1916
  try {
1911
1917
  return n.inputs[2].indexed = !1, {
1912
1918
  decodedLogs: e.map((i) => {
1913
- const { eventName: a, args: r } = j({
1919
+ const { eventName: r, args: a } = j({
1914
1920
  abi: [n],
1915
1921
  data: i.data,
1916
1922
  topics: i.topics
1917
1923
  });
1918
- return { ...i, eventName: a, args: r };
1924
+ return { ...i, eventName: r, args: a };
1919
1925
  }),
1920
1926
  event: n
1921
1927
  };
@@ -1937,9 +1943,9 @@ const V = class V extends x0 {
1937
1943
  * @returns {{ value: string | bigint | Hex; type: Exclude<PrimitiveType, PrimitiveType.TUPLE> }}
1938
1944
  */
1939
1945
  parseFieldFromAbi(f, e, n, d) {
1940
- if (e === B.ANY_ACTION_PARAM)
1946
+ if (e === k.ANY_ACTION_PARAM)
1941
1947
  return {
1942
- value: S,
1948
+ value: B,
1943
1949
  type: 2
1944
1950
  /* BYTES */
1945
1951
  };
@@ -1951,24 +1957,24 @@ const V = class V extends x0 {
1951
1957
  filterType: 0,
1952
1958
  fieldType: d,
1953
1959
  fieldIndex: e,
1954
- filterData: S
1960
+ filterData: B
1955
1961
  }
1956
1962
  });
1957
- const a = n[e];
1958
- if (!a || !a.type)
1959
- throw new J(e, a);
1960
- const r = f[e], s = a0(a.type);
1961
- if (s === 1 && (typeof r != "string" || !H(r)))
1963
+ const r = n[e];
1964
+ if (!r || !r.type)
1965
+ throw new J(e, r);
1966
+ const a = f[e], s = a0(r.type);
1967
+ if (s === 1 && (typeof a != "string" || !H(a)))
1962
1968
  throw new f0({
1963
- fieldValue: r,
1969
+ fieldValue: a,
1964
1970
  criteria: {
1965
1971
  fieldIndex: e,
1966
1972
  filterType: 0,
1967
1973
  fieldType: s,
1968
- filterData: S
1974
+ filterData: B
1969
1975
  }
1970
1976
  });
1971
- return { value: r, type: s };
1977
+ return { value: a, type: s };
1972
1978
  }
1973
1979
  const i = o0(e);
1974
1980
  return r0(f, i, n);
@@ -1987,32 +1993,32 @@ const V = class V extends x0 {
1987
1993
  * @throws {FunctionDataDecodeError} Throws if there's an error decoding the function data.
1988
1994
  */
1989
1995
  isActionFunctionValid(f, e, n) {
1990
- if (f.targetContract !== W && (!e.to || !h(e.to, f.targetContract)))
1996
+ if (f.targetContract !== S && (!e.to || !h(e.to, f.targetContract)))
1991
1997
  return !1;
1992
1998
  const d = f.actionParameter, i = f.signature;
1993
- let a;
1994
- if (n.abiItem ? a = n.abiItem : a = n.knownSignatures[i], !a)
1995
- throw new N(i);
1996
1999
  let r;
2000
+ if (n.abiItem ? r = n.abiItem : r = n.knownSignatures[i], !r)
2001
+ throw new N(i);
2002
+ let a;
1997
2003
  try {
1998
- r = Z({
1999
- abi: [a],
2004
+ a = Z({
2005
+ abi: [r],
2000
2006
  data: e.input
2001
2007
  });
2002
2008
  } catch (s) {
2003
- throw new q([a], s);
2009
+ throw new q([r], s);
2004
2010
  }
2005
- if (!(r != null && r.args))
2011
+ if (!(a != null && a.args))
2006
2012
  return !1;
2007
2013
  try {
2008
2014
  const { value: s, type: c } = this.parseFieldFromAbi(
2009
- r.args,
2015
+ a.args,
2010
2016
  d.fieldIndex,
2011
- a.inputs || [],
2017
+ r.inputs || [],
2012
2018
  d.fieldType
2013
- ), v = { ...d, fieldType: c };
2014
- return this.validateFieldAgainstCriteria(v, s, {
2015
- decodedArgs: r.args
2019
+ ), y = { ...d, fieldType: c };
2020
+ return this.validateFieldAgainstCriteria(y, s, {
2021
+ decodedArgs: a.args
2016
2022
  });
2017
2023
  } catch {
2018
2024
  return !1;
@@ -2031,7 +2037,7 @@ const V = class V extends x0 {
2031
2037
  * @returns {boolean} - Returns true if the field passes the criteria, false otherwise.
2032
2038
  */
2033
2039
  validateFieldAgainstCriteria(f, e, n) {
2034
- if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex === B.ANY_ACTION_PARAM)
2040
+ if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex === k.ANY_ACTION_PARAM)
2035
2041
  return !0;
2036
2042
  if (f.fieldType === 4)
2037
2043
  throw new E(
@@ -2048,7 +2054,7 @@ const V = class V extends x0 {
2048
2054
  () => BigInt(e) === BigInt(f.filterData)
2049
2055
  ).with(
2050
2056
  3,
2051
- () => e === L(f.filterData, "string")
2057
+ () => e === _(f.filterData, "string")
2052
2058
  ).otherwise(() => e === f.filterData);
2053
2059
  case 1:
2054
2060
  return n0(d).with(
@@ -2062,12 +2068,12 @@ const V = class V extends x0 {
2062
2068
  () => BigInt(e) !== BigInt(f.filterData)
2063
2069
  ).with(
2064
2070
  3,
2065
- () => e !== L(f.filterData, "string")
2071
+ () => e !== _(f.filterData, "string")
2066
2072
  ).otherwise(() => e !== f.filterData);
2067
2073
  case 2:
2068
2074
  if (d === 0 || d === 5)
2069
2075
  return BigInt(e) > BigInt(f.filterData);
2070
- throw new _({
2076
+ throw new P({
2071
2077
  ...n,
2072
2078
  criteria: f,
2073
2079
  fieldValue: e
@@ -2075,7 +2081,7 @@ const V = class V extends x0 {
2075
2081
  case 6:
2076
2082
  if (d === 0 || d === 5)
2077
2083
  return BigInt(e) >= BigInt(f.filterData);
2078
- throw new _({
2084
+ throw new P({
2079
2085
  ...n,
2080
2086
  criteria: f,
2081
2087
  fieldValue: e
@@ -2083,7 +2089,7 @@ const V = class V extends x0 {
2083
2089
  case 3:
2084
2090
  if (d === 0 || d === 5)
2085
2091
  return BigInt(e) < BigInt(f.filterData);
2086
- throw new _({
2092
+ throw new P({
2087
2093
  ...n,
2088
2094
  criteria: f,
2089
2095
  fieldValue: e
@@ -2091,7 +2097,7 @@ const V = class V extends x0 {
2091
2097
  case 7:
2092
2098
  if (d === 0 || d === 5)
2093
2099
  return BigInt(e) <= BigInt(f.filterData);
2094
- throw new _({
2100
+ throw new P({
2095
2101
  ...n,
2096
2102
  criteria: f,
2097
2103
  fieldValue: e
@@ -2099,7 +2105,7 @@ const V = class V extends x0 {
2099
2105
  case 4:
2100
2106
  if (d === 2 || d === 3) {
2101
2107
  let i;
2102
- return d === 3 ? i = L(f.filterData, "string") : i = f.filterData.slice(2), e.includes(i);
2108
+ return d === 3 ? i = _(f.filterData, "string") : i = f.filterData.slice(2), e.includes(i);
2103
2109
  }
2104
2110
  throw new e0({
2105
2111
  ...n,
@@ -2114,7 +2120,7 @@ const V = class V extends x0 {
2114
2120
  fieldValue: e
2115
2121
  });
2116
2122
  if (d === 3) {
2117
- const i = L(f.filterData, "string");
2123
+ const i = _(f.filterData, "string");
2118
2124
  return new RegExp(i).test(e);
2119
2125
  }
2120
2126
  default:
@@ -2140,18 +2146,18 @@ const V = class V extends x0 {
2140
2146
  );
2141
2147
  let i;
2142
2148
  if (P0(n)) {
2143
- let a = n.actionSteps.filter((s) => !!s);
2144
- if (a.length === 0)
2149
+ let r = n.actionSteps.filter((s) => !!s);
2150
+ if (r.length === 0)
2145
2151
  throw new A0();
2146
- if (a.length > 4)
2152
+ if (r.length > 4)
2147
2153
  throw new T0();
2148
- let r = Array.from({ length: 4 }, (s, c) => a.at(c) || a.at(-1));
2154
+ let a = Array.from({ length: 4 }, (s, c) => r.at(c) || r.at(-1));
2149
2155
  i = {
2150
2156
  actionClaimant: n.actionClaimant,
2151
- actionStepOne: r[0],
2152
- actionStepTwo: r[1],
2153
- actionStepThree: r[2],
2154
- actionStepFour: r[3]
2157
+ actionStepOne: a[0],
2158
+ actionStepTwo: a[1],
2159
+ actionStepThree: a[2],
2160
+ actionStepFour: a[3]
2155
2161
  };
2156
2162
  } else
2157
2163
  i = n;
@@ -2220,16 +2226,16 @@ const V = class V extends x0 {
2220
2226
  });
2221
2227
  if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber)
2222
2228
  return [];
2223
- if (f.signature === P) {
2224
- const { decodedLogs: r, event: s } = await this.decodeTransferLogs(i);
2229
+ if (f.signature === D) {
2230
+ const { decodedLogs: a, event: s } = await this.decodeTransferLogs(i);
2225
2231
  return this.filterLogsByActionStepCriteria(
2226
2232
  f,
2227
- r,
2233
+ a,
2228
2234
  s
2229
2235
  );
2230
2236
  }
2231
- const a = i.logs.filter((r) => r.topics[0] === n).map((r) => F(d, r));
2232
- return this.filterLogsByActionStepCriteria(f, a, d);
2237
+ const r = i.logs.filter((a) => a.topics[0] === n).map((a) => W(d, a));
2238
+ return this.filterLogsByActionStepCriteria(f, r, d);
2233
2239
  }
2234
2240
  /**
2235
2241
  * Filters logs that meet the given action step criteria
@@ -2243,18 +2249,18 @@ const V = class V extends x0 {
2243
2249
  filterLogsByActionStepCriteria(f, e, n) {
2244
2250
  const d = f.actionParameter, i = [];
2245
2251
  if (!e.length) return i;
2246
- for (let a of e)
2247
- if (!(f.targetContract !== W && !h(a.address, f.targetContract)))
2252
+ for (let r of e)
2253
+ if (!(f.targetContract !== S && !h(r.address, f.targetContract)))
2248
2254
  try {
2249
- if (!Array.isArray(a.args))
2255
+ if (!Array.isArray(r.args))
2250
2256
  continue;
2251
- const { value: r, type: s } = this.parseFieldFromAbi(
2252
- a.args,
2257
+ const { value: a, type: s } = this.parseFieldFromAbi(
2258
+ r.args,
2253
2259
  d.fieldIndex,
2254
2260
  n.inputs || [],
2255
2261
  d.fieldType
2256
2262
  ), c = { ...d, fieldType: s };
2257
- this.validateFieldAgainstCriteria(c, r, { log: a }) && i.push(a);
2263
+ this.validateFieldAgainstCriteria(c, a, { log: r }) && i.push(r);
2258
2264
  } catch {
2259
2265
  }
2260
2266
  return i;
@@ -2285,13 +2291,13 @@ function r0(t, f, e) {
2285
2291
  throw new E(
2286
2292
  "rawValue is not an array, but param.type is tuple"
2287
2293
  );
2288
- const a = f.slice(1);
2289
- if (!a.length)
2294
+ const r = f.slice(1);
2295
+ if (!r.length)
2290
2296
  throw new E(void 0, -1);
2291
- const r = a[0] ?? d.components.length + 1;
2292
- if (r >= d.components.length)
2293
- throw new E(void 0, r);
2294
- return r0(i, a, d.components);
2297
+ const a = r[0] ?? d.components.length + 1;
2298
+ if (a >= d.components.length)
2299
+ throw new E(void 0, a);
2300
+ return r0(i, r, d.components);
2295
2301
  }
2296
2302
  function a0(t) {
2297
2303
  const f = t.toLowerCase();
@@ -2340,7 +2346,7 @@ function u0(t) {
2340
2346
  function W0(t) {
2341
2347
  return g0(K(t));
2342
2348
  }
2343
- function D(t) {
2349
+ function F(t) {
2344
2350
  return {
2345
2351
  ...s0(t),
2346
2352
  signatureType: t.signatureType ?? u0(t.signature),
@@ -2470,10 +2476,10 @@ function O0({
2470
2476
  signatureType: t.signatureType ?? u0(t.signature),
2471
2477
  signature: K(t.signature)
2472
2478
  },
2473
- actionStepOne: D(f),
2474
- actionStepTwo: D(e),
2475
- actionStepThree: D(n),
2476
- actionStepFour: D(d)
2479
+ actionStepOne: F(f),
2480
+ actionStepTwo: F(e),
2481
+ actionStepThree: F(n),
2482
+ actionStepFour: F(d)
2477
2483
  }
2478
2484
  ]
2479
2485
  );
@@ -2482,16 +2488,16 @@ function q0() {
2482
2488
  return {
2483
2489
  filterType: 0,
2484
2490
  fieldType: 2,
2485
- fieldIndex: B.ANY_ACTION_PARAM,
2486
- filterData: S
2491
+ fieldIndex: k.ANY_ACTION_PARAM,
2492
+ filterData: B
2487
2493
  };
2488
2494
  }
2489
2495
  function J0(t) {
2490
2496
  return {
2491
2497
  signatureType: 0,
2492
- signature: S,
2493
- fieldIndex: B.TX_SENDER_CLAIMANT,
2494
- targetContract: W,
2498
+ signature: B,
2499
+ fieldIndex: k.TX_SENDER_CLAIMANT,
2500
+ targetContract: S,
2495
2501
  chainid: t
2496
2502
  };
2497
2503
  }
@@ -2517,7 +2523,7 @@ function o0(t) {
2517
2523
  }
2518
2524
  return f;
2519
2525
  }
2520
- function F(t, f) {
2526
+ function W(t, f) {
2521
2527
  const e = j({
2522
2528
  abi: [t],
2523
2529
  data: f.data,
@@ -2531,16 +2537,16 @@ function F(t, f) {
2531
2537
  const d = [], i = [];
2532
2538
  for (let s = 0; s < t.inputs.length; s++)
2533
2539
  t.inputs[s].indexed ? d.push(s) : i.push(s);
2534
- const a = Array.from({ length: t.inputs.length });
2535
- let r = 0;
2540
+ const r = Array.from({ length: t.inputs.length });
2541
+ let a = 0;
2536
2542
  for (let s = 0; s < d.length; s++)
2537
- a[d[s]] = n[r++];
2543
+ r[d[s]] = n[a++];
2538
2544
  for (let s = 0; s < i.length; s++)
2539
- a[i[s]] = n[r++];
2545
+ r[i[s]] = n[a++];
2540
2546
  return {
2541
2547
  ...f,
2542
2548
  eventName: e.eventName,
2543
- args: a
2549
+ args: r
2544
2550
  };
2545
2551
  }
2546
2552
  function U0([t, f]) {
@@ -2609,7 +2615,7 @@ export {
2609
2615
  L0 as SignatureType,
2610
2616
  _0 as ValueType,
2611
2617
  q0 as anyActionParameter,
2612
- F as decodeAndReorderLogArgs,
2618
+ W as decodeAndReorderLogArgs,
2613
2619
  u0 as detectSignatureType,
2614
2620
  H0 as getScalarValue,
2615
2621
  tf as getScalarValueFromTuple,