@boostxyz/sdk 2.0.0-alpha.26 → 2.0.0-alpha.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Actions/Action.cjs +1 -1
- package/dist/Actions/Action.js +8 -8
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +6 -7
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +99 -95
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +5 -5
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.js +6 -6
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.js +2 -2
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +1 -1
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.js +33 -33
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +12 -12
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.js +2 -2
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.js +25 -25
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.js +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.js +21 -21
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.js +9 -9
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.js +6 -6
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.js +22 -22
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js +20 -20
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableIncentive.js +16 -16
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.cjs.map +1 -1
- package/dist/Incentives/Incentive.d.ts +3 -3
- package/dist/Incentives/Incentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.js +30 -30
- package/dist/Incentives/Incentive.js.map +1 -1
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.js +11 -11
- package/dist/{SimpleDenyList-D0cyVUVv.js → SimpleDenyList-7BojkCuF.js} +12 -12
- package/dist/{SimpleDenyList-D0cyVUVv.js.map → SimpleDenyList-7BojkCuF.js.map} +1 -1
- package/dist/{SimpleDenyList-BdlpZdDz.cjs → SimpleDenyList-DqM-Bczx.cjs} +2 -2
- package/dist/{SimpleDenyList-BdlpZdDz.cjs.map → SimpleDenyList-DqM-Bczx.cjs.map} +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs +1 -1
- package/dist/Validators/LimitedSignerValidator.js +10 -10
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.cjs.map +1 -1
- package/dist/Validators/SignerValidator.d.ts.map +1 -1
- package/dist/Validators/SignerValidator.js +25 -27
- package/dist/Validators/SignerValidator.js.map +1 -1
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.js +6 -6
- package/dist/componentInterfaces-BJ_XfE8j.cjs +2 -0
- package/dist/componentInterfaces-BJ_XfE8j.cjs.map +1 -0
- package/dist/componentInterfaces-DBJaFhsl.js +15 -0
- package/dist/componentInterfaces-DBJaFhsl.js.map +1 -0
- package/dist/{generated-Cqn4wS01.cjs → generated-BSUMIFi5.cjs} +3 -3
- package/dist/generated-BSUMIFi5.cjs.map +1 -0
- package/dist/{generated-BAKNSOjJ.js → generated-Dz_g2mFT.js} +217 -217
- package/dist/generated-Dz_g2mFT.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +25 -25
- package/package.json +1 -1
- package/src/Actions/EventAction.test.ts +1 -1
- package/src/Actions/EventAction.ts +20 -17
- package/src/Incentives/Incentive.ts +3 -2
- package/src/Validators/SignerValidator.ts +7 -12
- package/dist/componentInterfaces-DRI_dQ-P.cjs +0 -2
- package/dist/componentInterfaces-DRI_dQ-P.cjs.map +0 -1
- package/dist/componentInterfaces-bIVo8eyA.js +0 -14
- package/dist/componentInterfaces-bIVo8eyA.js.map +0 -1
- package/dist/generated-BAKNSOjJ.js.map +0 -1
- package/dist/generated-Cqn4wS01.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventAction.d.ts","sourceRoot":"","sources":["../../src/Actions/EventAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAKf,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAEhB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,GAAG,
|
|
1
|
+
{"version":3,"file":"EventAction.d.ts","sourceRoot":"","sources":["../../src/Actions/EventAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAKf,MAAM,eAAe,CAAC;AAIvB,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,WAAW,EAEhB,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,GAAG,EAER,KAAK,WAAW,EASjB,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO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AE,QAAQ,EAClB,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,GAChB,OAAO;IAwBV;;;;;;;OAOG;IACI,+BAA+B,CACpC,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GACxC,OAAO;IAgBV;;;;;;;OAOG;IACa,eAAe,CAC7B,QAAQ,CAAC,EAAE,kBAAkB,EAC7B,QAAQ,CAAC,EAAE,iBAAiB,GAC3B,uBAAuB;IAsCnB,kBAAkB,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ;CAU5D;AAgDD;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CAAC,EACxC,cAAc,EACd,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,GACf,EAAE,qBAAqB,iBAiIvB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,IAAI,QAAQ,CAO7C;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,cAAc,CAQzE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { bo as O, bp as $, bq as J, br as V, bs as Z } from "../generated-
|
|
2
|
-
import { getTransaction as
|
|
3
|
-
import { isAddressEqual as E, decodeEventLog as H, decodeFunctionData as
|
|
1
|
+
import { bo as O, bp as $, bq as J, br as V, bs as Z } from "../generated-Dz_g2mFT.js";
|
|
2
|
+
import { getTransaction as S, getTransactionReceipt as k } from "@wagmi/core";
|
|
3
|
+
import { isAddressEqual as E, decodeEventLog as H, decodeFunctionData as j, isAddress as F, fromHex as x, zeroHash as R, encodeAbiParameters as f0, zeroAddress as e0 } from "viem";
|
|
4
4
|
import { e as t0 } from "../deployments-Ccx1MtoK.js";
|
|
5
5
|
import { DeployableTarget as b0 } from "../Deployable/DeployableTarget.js";
|
|
6
|
-
import { ValidationAbiMissingError as _, FunctionDataDecodeError as
|
|
7
|
-
import { RegistryType as d0, CheatCodes as
|
|
6
|
+
import { ValidationAbiMissingError as _, FunctionDataDecodeError as G, UnparseableAbiParamError as n0, UnrecognizedFilterTypeError as a0, FieldValueNotComparableError as Y, InvalidNumericalCriteriaError as K, DecodedArgsMalformedError as i0, FieldValueUndefinedError as X, NoEventActionStepsProvidedError as r0, TooManyEventActionStepsProvidedError as s0 } from "../errors.js";
|
|
7
|
+
import { RegistryType as d0, CheatCodes as I } from "../utils.js";
|
|
8
8
|
const c0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660058111156105305761052f6115d7565b5b6005811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600581111561076e5761076d6115d7565b5b60058111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600581111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600581111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600681106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60068110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220c09de9dc8770d5af6b81846a782092789609bf9d57e917b598897703755b10a864736f6c634300081a0033", g = Symbol.for("@ts-pattern/matcher"), o0 = Symbol.for("@ts-pattern/isVariadic"), D = "@ts-pattern/anonymous-select-key", U = (t) => !!(t && typeof t == "object"), P = (t) => t && !!t[g], p = (t, f, e) => {
|
|
9
9
|
if (P(t)) {
|
|
10
10
|
const b = t[g](), { matched: n, selections: a } = b.match(f);
|
|
@@ -16,16 +16,16 @@ const c0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f
|
|
|
16
16
|
if (!Array.isArray(f)) return !1;
|
|
17
17
|
let b = [], n = [], a = [];
|
|
18
18
|
for (const i of t.keys()) {
|
|
19
|
-
const
|
|
20
|
-
P(
|
|
19
|
+
const s = t[i];
|
|
20
|
+
P(s) && s[o0] ? a.push(s) : a.length ? n.push(s) : b.push(s);
|
|
21
21
|
}
|
|
22
22
|
if (a.length) {
|
|
23
23
|
if (a.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
|
|
24
24
|
if (f.length < b.length + n.length) return !1;
|
|
25
|
-
const i = f.slice(0, b.length),
|
|
26
|
-
return b.every((o,
|
|
25
|
+
const i = f.slice(0, b.length), s = n.length === 0 ? [] : f.slice(-n.length), c = f.slice(b.length, n.length === 0 ? 1 / 0 : -n.length);
|
|
26
|
+
return b.every((o, v) => p(o, i[v], e)) && n.every((o, v) => p(o, s[v], e)) && (a.length === 0 || p(a[0], c, e));
|
|
27
27
|
}
|
|
28
|
-
return t.length === f.length && t.every((i,
|
|
28
|
+
return t.length === f.length && t.every((i, s) => p(i, f[s], e));
|
|
29
29
|
}
|
|
30
30
|
return Reflect.ownKeys(t).every((b) => {
|
|
31
31
|
const n = t[b];
|
|
@@ -36,10 +36,10 @@ const c0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f
|
|
|
36
36
|
return Object.is(f, t);
|
|
37
37
|
}, T = (t) => {
|
|
38
38
|
var f, e, b;
|
|
39
|
-
return U(t) ? P(t) ? (f = (e = (b = t[g]()).getSelectionKeys) == null ? void 0 : e.call(b)) != null ? f : [] : Array.isArray(t) ?
|
|
40
|
-
},
|
|
39
|
+
return U(t) ? P(t) ? (f = (e = (b = t[g]()).getSelectionKeys) == null ? void 0 : e.call(b)) != null ? f : [] : Array.isArray(t) ? N(t, T) : N(Object.values(t), T) : [];
|
|
40
|
+
}, N = (t, f) => t.reduce((e, b) => e.concat(f(b)), []);
|
|
41
41
|
function u(t) {
|
|
42
|
-
return Object.assign(t, { optional: () => u0(t), and: (f) => d(t, f), or: (f) =>
|
|
42
|
+
return Object.assign(t, { optional: () => u0(t), and: (f) => d(t, f), or: (f) => l0(t, f), select: (f) => f === void 0 ? W(t) : W(f, t) });
|
|
43
43
|
}
|
|
44
44
|
function u0(t) {
|
|
45
45
|
return u({ [g]: () => ({ match: (f) => {
|
|
@@ -57,21 +57,21 @@ function d(...t) {
|
|
|
57
57
|
e[n] = a;
|
|
58
58
|
};
|
|
59
59
|
return { matched: t.every((n) => p(n, f, b)), selections: e };
|
|
60
|
-
}, getSelectionKeys: () =>
|
|
60
|
+
}, getSelectionKeys: () => N(t, T), matcherType: "and" }) });
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function l0(...t) {
|
|
63
63
|
return u({ [g]: () => ({ match: (f) => {
|
|
64
64
|
let e = {};
|
|
65
65
|
const b = (n, a) => {
|
|
66
66
|
e[n] = a;
|
|
67
67
|
};
|
|
68
|
-
return
|
|
69
|
-
}, getSelectionKeys: () =>
|
|
68
|
+
return N(t, T).forEach((n) => b(n, void 0)), { matched: t.some((n) => p(n, f, b)), selections: e };
|
|
69
|
+
}, getSelectionKeys: () => N(t, T), matcherType: "or" }) });
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function r(t) {
|
|
72
72
|
return { [g]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function W(...t) {
|
|
75
75
|
const f = typeof t[0] == "string" ? t[0] : void 0, e = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
|
|
76
76
|
return u({ [g]: () => ({ match: (b) => {
|
|
77
77
|
let n = { [f ?? D]: b };
|
|
@@ -80,7 +80,7 @@ function X(...t) {
|
|
|
80
80
|
}), selections: n };
|
|
81
81
|
}, getSelectionKeys: () => [f ?? D].concat(e === void 0 ? [] : T(e)) }) });
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function l(t) {
|
|
84
84
|
return typeof t == "number";
|
|
85
85
|
}
|
|
86
86
|
function y(t) {
|
|
@@ -89,40 +89,40 @@ function y(t) {
|
|
|
89
89
|
function m(t) {
|
|
90
90
|
return typeof t == "bigint";
|
|
91
91
|
}
|
|
92
|
-
u(
|
|
92
|
+
u(r(function(t) {
|
|
93
93
|
return !0;
|
|
94
94
|
}));
|
|
95
95
|
const A = (t) => Object.assign(u(t), { startsWith: (f) => {
|
|
96
|
-
return A(d(t, (e = f,
|
|
96
|
+
return A(d(t, (e = f, r((b) => y(b) && b.startsWith(e)))));
|
|
97
97
|
var e;
|
|
98
98
|
}, endsWith: (f) => {
|
|
99
|
-
return A(d(t, (e = f,
|
|
99
|
+
return A(d(t, (e = f, r((b) => y(b) && b.endsWith(e)))));
|
|
100
100
|
var e;
|
|
101
|
-
}, minLength: (f) => A(d(t, ((e) =>
|
|
102
|
-
return A(d(t, (e = f,
|
|
101
|
+
}, minLength: (f) => A(d(t, ((e) => r((b) => y(b) && b.length >= e))(f))), length: (f) => A(d(t, ((e) => r((b) => y(b) && b.length === e))(f))), maxLength: (f) => A(d(t, ((e) => r((b) => y(b) && b.length <= e))(f))), includes: (f) => {
|
|
102
|
+
return A(d(t, (e = f, r((b) => y(b) && b.includes(e)))));
|
|
103
103
|
var e;
|
|
104
104
|
}, regex: (f) => {
|
|
105
|
-
return A(d(t, (e = f,
|
|
105
|
+
return A(d(t, (e = f, r((b) => y(b) && !!b.match(e)))));
|
|
106
106
|
var e;
|
|
107
107
|
} });
|
|
108
|
-
A(
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
const w = (t) => Object.assign(u(t), { between: (f, e) => w(d(t, ((b, n) =>
|
|
112
|
-
w(
|
|
113
|
-
u(
|
|
108
|
+
A(r(y));
|
|
109
|
+
const h = (t) => Object.assign(u(t), { between: (f, e) => h(d(t, ((b, n) => r((a) => l(a) && b <= a && n >= a))(f, e))), lt: (f) => h(d(t, ((e) => r((b) => l(b) && b < e))(f))), gt: (f) => h(d(t, ((e) => r((b) => l(b) && b > e))(f))), lte: (f) => h(d(t, ((e) => r((b) => l(b) && b <= e))(f))), gte: (f) => h(d(t, ((e) => r((b) => l(b) && b >= e))(f))), int: () => h(d(t, r((f) => l(f) && Number.isInteger(f)))), finite: () => h(d(t, r((f) => l(f) && Number.isFinite(f)))), positive: () => h(d(t, r((f) => l(f) && f > 0))), negative: () => h(d(t, r((f) => l(f) && f < 0))) });
|
|
110
|
+
h(r(l));
|
|
111
|
+
const w = (t) => Object.assign(u(t), { between: (f, e) => w(d(t, ((b, n) => r((a) => m(a) && b <= a && n >= a))(f, e))), lt: (f) => w(d(t, ((e) => r((b) => m(b) && b < e))(f))), gt: (f) => w(d(t, ((e) => r((b) => m(b) && b > e))(f))), lte: (f) => w(d(t, ((e) => r((b) => m(b) && b <= e))(f))), gte: (f) => w(d(t, ((e) => r((b) => m(b) && b >= e))(f))), positive: () => w(d(t, r((f) => m(f) && f > 0))), negative: () => w(d(t, r((f) => m(f) && f < 0))) });
|
|
112
|
+
w(r(m));
|
|
113
|
+
u(r(function(t) {
|
|
114
114
|
return typeof t == "boolean";
|
|
115
115
|
}));
|
|
116
|
-
u(
|
|
116
|
+
u(r(function(t) {
|
|
117
117
|
return typeof t == "symbol";
|
|
118
118
|
}));
|
|
119
|
-
u(
|
|
119
|
+
u(r(function(t) {
|
|
120
120
|
return t == null;
|
|
121
121
|
}));
|
|
122
|
-
u(
|
|
122
|
+
u(r(function(t) {
|
|
123
123
|
return t != null;
|
|
124
124
|
}));
|
|
125
|
-
class
|
|
125
|
+
class h0 extends Error {
|
|
126
126
|
constructor(f) {
|
|
127
127
|
let e;
|
|
128
128
|
try {
|
|
@@ -147,9 +147,9 @@ class B {
|
|
|
147
147
|
let n;
|
|
148
148
|
f.length === 3 && typeof f[1] == "function" ? n = f[1] : f.length > 2 && b.push(...f.slice(1, f.length - 1));
|
|
149
149
|
let a = !1, i = {};
|
|
150
|
-
const
|
|
151
|
-
a = !0, i[o] =
|
|
152
|
-
}, c = !b.some((o) => p(o, this.input,
|
|
150
|
+
const s = (o, v) => {
|
|
151
|
+
a = !0, i[o] = v;
|
|
152
|
+
}, c = !b.some((o) => p(o, this.input, s)) || n && !n(this.input) ? M : { matched: !0, value: e(a ? D in i ? i[D] : i : this.input, this.input) };
|
|
153
153
|
return new B(this.input, c);
|
|
154
154
|
}
|
|
155
155
|
when(f, e) {
|
|
@@ -162,7 +162,7 @@ class B {
|
|
|
162
162
|
}
|
|
163
163
|
exhaustive() {
|
|
164
164
|
if (this.state.matched) return this.state.value;
|
|
165
|
-
throw new
|
|
165
|
+
throw new h0(this.input);
|
|
166
166
|
}
|
|
167
167
|
run() {
|
|
168
168
|
return this.exhaustive();
|
|
@@ -301,16 +301,17 @@ const L = class L extends b0 {
|
|
|
301
301
|
* @throws {FunctionDataDecodeError} If there's an error decoding function data (for function-based derivation).
|
|
302
302
|
*/
|
|
303
303
|
async deriveActionClaimantFromTransaction(f, e) {
|
|
304
|
-
if (f.fieldIndex ===
|
|
304
|
+
if (f.fieldIndex === I.TX_SENDER_CLAIMANT) {
|
|
305
305
|
if ("hash" in e)
|
|
306
|
-
return (await
|
|
307
|
-
|
|
308
|
-
chainId:
|
|
306
|
+
return (await S(this._config, {
|
|
307
|
+
...e,
|
|
308
|
+
chainId: f.chainid
|
|
309
309
|
})).from;
|
|
310
310
|
if ("logs" in e) {
|
|
311
311
|
for (let n of e.logs)
|
|
312
312
|
if (n.transactionHash)
|
|
313
|
-
return (await
|
|
313
|
+
return (await S(this._config, {
|
|
314
|
+
...e,
|
|
314
315
|
hash: n.transactionHash,
|
|
315
316
|
chainId: f.chainid
|
|
316
317
|
})).from;
|
|
@@ -334,15 +335,18 @@ const L = class L extends b0 {
|
|
|
334
335
|
}
|
|
335
336
|
return a;
|
|
336
337
|
}
|
|
337
|
-
const
|
|
338
|
-
|
|
338
|
+
const s = (await k(this._config, {
|
|
339
|
+
...e,
|
|
340
|
+
chainId: f.chainid
|
|
341
|
+
})).logs.map((c) => {
|
|
342
|
+
const { eventName: o, args: v } = H({
|
|
339
343
|
abi: [n],
|
|
340
344
|
data: c.data,
|
|
341
345
|
topics: c.topics
|
|
342
346
|
});
|
|
343
|
-
return { ...c, eventName: o, args:
|
|
347
|
+
return { ...c, eventName: o, args: v };
|
|
344
348
|
});
|
|
345
|
-
for (let c of
|
|
349
|
+
for (let c of s) {
|
|
346
350
|
if (!E(c.address, f.targetContract)) continue;
|
|
347
351
|
let o = this.validateClaimantAgainstArgs(f, c);
|
|
348
352
|
o && (a = o);
|
|
@@ -350,9 +354,9 @@ const L = class L extends b0 {
|
|
|
350
354
|
return a;
|
|
351
355
|
}
|
|
352
356
|
if (f.signatureType === 1 && "hash" in e) {
|
|
353
|
-
const n = await
|
|
354
|
-
|
|
355
|
-
chainId:
|
|
357
|
+
const n = await S(this._config, {
|
|
358
|
+
...e,
|
|
359
|
+
chainId: f.chainid
|
|
356
360
|
});
|
|
357
361
|
if (!E(n.to, f.targetContract)) return;
|
|
358
362
|
let a;
|
|
@@ -360,12 +364,12 @@ const L = class L extends b0 {
|
|
|
360
364
|
throw new _(f.signature);
|
|
361
365
|
let i;
|
|
362
366
|
try {
|
|
363
|
-
i =
|
|
367
|
+
i = j({
|
|
364
368
|
abi: [a],
|
|
365
369
|
data: n.input
|
|
366
370
|
});
|
|
367
|
-
} catch (
|
|
368
|
-
throw new
|
|
371
|
+
} catch (s) {
|
|
372
|
+
throw new G([a], s);
|
|
369
373
|
}
|
|
370
374
|
return this.validateClaimantAgainstArgs(f, i);
|
|
371
375
|
}
|
|
@@ -425,22 +429,22 @@ const L = class L extends b0 {
|
|
|
425
429
|
if ("logs" in e)
|
|
426
430
|
return this.isActionEventValid(f, e.logs);
|
|
427
431
|
const i = (await k(this._config, {
|
|
428
|
-
|
|
429
|
-
chainId:
|
|
430
|
-
})).logs.map((
|
|
432
|
+
...e,
|
|
433
|
+
chainId: f.chainid
|
|
434
|
+
})).logs.map((s) => {
|
|
431
435
|
const { eventName: c, args: o } = H({
|
|
432
436
|
abi: [n],
|
|
433
|
-
data:
|
|
434
|
-
topics:
|
|
437
|
+
data: s.data,
|
|
438
|
+
topics: s.topics
|
|
435
439
|
});
|
|
436
|
-
return { ...
|
|
440
|
+
return { ...s, eventName: c, args: o };
|
|
437
441
|
});
|
|
438
442
|
return this.isActionEventValid(f, i);
|
|
439
443
|
}
|
|
440
|
-
if (f.signatureType === 1 && "hash" in e
|
|
441
|
-
const b = await
|
|
442
|
-
|
|
443
|
-
chainId:
|
|
444
|
+
if (f.signatureType === 1 && "hash" in e) {
|
|
445
|
+
const b = await S(this._config, {
|
|
446
|
+
...e,
|
|
447
|
+
chainId: f.chainid
|
|
444
448
|
});
|
|
445
449
|
return this.isActionFunctionValid(f, b, e);
|
|
446
450
|
}
|
|
@@ -482,17 +486,17 @@ const L = class L extends b0 {
|
|
|
482
486
|
let a = f.signature, i;
|
|
483
487
|
if (b.abiItem ? i = b == null ? void 0 : b.abiItem : i = b.knownSignatures[a], !i)
|
|
484
488
|
throw new _(a);
|
|
485
|
-
let
|
|
489
|
+
let s;
|
|
486
490
|
try {
|
|
487
|
-
|
|
491
|
+
s = j({
|
|
488
492
|
abi: [i],
|
|
489
493
|
data: e.input
|
|
490
494
|
});
|
|
491
495
|
} catch (o) {
|
|
492
|
-
throw new
|
|
496
|
+
throw new G([i], o);
|
|
493
497
|
}
|
|
494
|
-
const c =
|
|
495
|
-
return !(!c || !
|
|
498
|
+
const c = s.args;
|
|
499
|
+
return !(!c || !s || !this.validateFunctionAgainstCriteria(
|
|
496
500
|
n,
|
|
497
501
|
c
|
|
498
502
|
));
|
|
@@ -508,7 +512,7 @@ const L = class L extends b0 {
|
|
|
508
512
|
* @returns {Promise<boolean>} - Returns true if the field passes the criteria, false otherwise.
|
|
509
513
|
*/
|
|
510
514
|
validateFieldAgainstCriteria(f, e, b) {
|
|
511
|
-
if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex ===
|
|
515
|
+
if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex === I.ANY_ACTION_PARAM)
|
|
512
516
|
return !0;
|
|
513
517
|
switch (f.filterType) {
|
|
514
518
|
case 0:
|
|
@@ -554,14 +558,14 @@ const L = class L extends b0 {
|
|
|
554
558
|
let n;
|
|
555
559
|
return f.fieldType === 3 ? n = x(f.filterData, "string") : n = f.filterData.slice(2), e.includes(n);
|
|
556
560
|
}
|
|
557
|
-
throw new
|
|
561
|
+
throw new Y({
|
|
558
562
|
...b,
|
|
559
563
|
criteria: f,
|
|
560
564
|
fieldValue: e
|
|
561
565
|
});
|
|
562
566
|
case 5:
|
|
563
567
|
if (typeof e != "string")
|
|
564
|
-
throw new
|
|
568
|
+
throw new Y({
|
|
565
569
|
...b,
|
|
566
570
|
criteria: f,
|
|
567
571
|
fieldValue: e
|
|
@@ -587,15 +591,15 @@ const L = class L extends b0 {
|
|
|
587
591
|
* @returns {boolean} - Returns true if the log passes the criteria, false otherwise.
|
|
588
592
|
*/
|
|
589
593
|
validateLogAgainstCriteria(f, e) {
|
|
590
|
-
if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex && f.fieldIndex !==
|
|
594
|
+
if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex && f.fieldIndex !== I.ANY_ACTION_PARAM)
|
|
591
595
|
throw new i0({
|
|
592
596
|
log: e,
|
|
593
597
|
criteria: f,
|
|
594
598
|
fieldValue: void 0
|
|
595
599
|
});
|
|
596
|
-
const b = f.fieldIndex ===
|
|
600
|
+
const b = f.fieldIndex === I.ANY_ACTION_PARAM ? R : e.args.at(f.fieldIndex);
|
|
597
601
|
if (b === void 0)
|
|
598
|
-
throw new
|
|
602
|
+
throw new X({ log: e, criteria: f, fieldValue: b });
|
|
599
603
|
return this.validateFieldAgainstCriteria(f, b, { log: e });
|
|
600
604
|
}
|
|
601
605
|
/**
|
|
@@ -607,9 +611,9 @@ const L = class L extends b0 {
|
|
|
607
611
|
* @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
|
|
608
612
|
*/
|
|
609
613
|
validateFunctionAgainstCriteria(f, e) {
|
|
610
|
-
const b = f.fieldIndex ===
|
|
614
|
+
const b = f.fieldIndex === I.ANY_ACTION_PARAM ? R : e[f.fieldIndex];
|
|
611
615
|
if (b === void 0)
|
|
612
|
-
throw new
|
|
616
|
+
throw new X({
|
|
613
617
|
criteria: f,
|
|
614
618
|
fieldValue: b
|
|
615
619
|
});
|
|
@@ -634,16 +638,16 @@ const L = class L extends b0 {
|
|
|
634
638
|
if (m0(b)) {
|
|
635
639
|
let i = b.actionSteps.filter((c) => !!c);
|
|
636
640
|
if (i.length === 0)
|
|
637
|
-
throw new s0();
|
|
638
|
-
if (i.length > 4)
|
|
639
641
|
throw new r0();
|
|
640
|
-
|
|
642
|
+
if (i.length > 4)
|
|
643
|
+
throw new s0();
|
|
644
|
+
let s = Array.from({ length: 4 }, (c, o) => i.at(o) || i.at(-1));
|
|
641
645
|
a = {
|
|
642
646
|
actionClaimant: b.actionClaimant,
|
|
643
|
-
actionStepOne:
|
|
644
|
-
actionStepTwo:
|
|
645
|
-
actionStepThree:
|
|
646
|
-
actionStepFour:
|
|
647
|
+
actionStepOne: s[0],
|
|
648
|
+
actionStepTwo: s[1],
|
|
649
|
+
actionStepThree: s[2],
|
|
650
|
+
actionStepFour: s[3]
|
|
647
651
|
};
|
|
648
652
|
} else
|
|
649
653
|
a = b;
|
|
@@ -672,7 +676,7 @@ function A0(t) {
|
|
|
672
676
|
}
|
|
673
677
|
return f;
|
|
674
678
|
}
|
|
675
|
-
function
|
|
679
|
+
function C(t) {
|
|
676
680
|
return {
|
|
677
681
|
...t,
|
|
678
682
|
chainid: BigInt(t.chainid)
|
|
@@ -799,21 +803,21 @@ function w0({
|
|
|
799
803
|
],
|
|
800
804
|
[
|
|
801
805
|
{
|
|
802
|
-
actionClaimant:
|
|
806
|
+
actionClaimant: C(t),
|
|
803
807
|
actionStepOne: {
|
|
804
|
-
...
|
|
808
|
+
...C(f),
|
|
805
809
|
actionType: f.actionType || 0
|
|
806
810
|
},
|
|
807
811
|
actionStepTwo: {
|
|
808
|
-
...
|
|
812
|
+
...C(e),
|
|
809
813
|
actionType: e.actionType || 0
|
|
810
814
|
},
|
|
811
815
|
actionStepThree: {
|
|
812
|
-
...
|
|
816
|
+
...C(b),
|
|
813
817
|
actionType: b.actionType || 0
|
|
814
818
|
},
|
|
815
819
|
actionStepFour: {
|
|
816
|
-
...
|
|
820
|
+
...C(n),
|
|
817
821
|
actionType: n.actionType || 0
|
|
818
822
|
}
|
|
819
823
|
}
|
|
@@ -824,17 +828,17 @@ function x0() {
|
|
|
824
828
|
return {
|
|
825
829
|
filterType: 0,
|
|
826
830
|
fieldType: 2,
|
|
827
|
-
fieldIndex:
|
|
831
|
+
fieldIndex: I.ANY_ACTION_PARAM,
|
|
828
832
|
filterData: R
|
|
829
833
|
};
|
|
830
834
|
}
|
|
831
|
-
function _0() {
|
|
835
|
+
function _0(t) {
|
|
832
836
|
return {
|
|
833
837
|
signatureType: 0,
|
|
834
838
|
signature: R,
|
|
835
|
-
fieldIndex:
|
|
839
|
+
fieldIndex: I.TX_SENDER_CLAIMANT,
|
|
836
840
|
targetContract: e0,
|
|
837
|
-
chainid:
|
|
841
|
+
chainid: t
|
|
838
842
|
};
|
|
839
843
|
}
|
|
840
844
|
export {
|