@boostxyz/sdk 8.0.0-canary.1 → 8.0.0-canary.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/Action.cjs +1 -1
- package/dist/Actions/Action.js +1 -1
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +19 -0
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +209 -204
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/{AllowList-NPDlllP6.js → AllowList-DQf-8HQC.js} +30 -30
- package/dist/{AllowList-NPDlllP6.js.map → AllowList-DQf-8HQC.js.map} +1 -1
- package/dist/{AllowList-BacG3oLt.cjs → AllowList-DaX239DR.cjs} +2 -2
- package/dist/{AllowList-BacG3oLt.cjs.map → AllowList-DaX239DR.cjs.map} +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +3 -3
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.js +3 -3
- 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 +2 -2
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +35 -0
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +75 -75
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +12 -12
- package/dist/{Budget-Dq0K1LVM.js → Budget-LnAQ_Slw.js} +40 -40
- package/dist/{Budget-Dq0K1LVM.js.map → Budget-LnAQ_Slw.js.map} +1 -1
- package/dist/{Budget-Gk2p5v0g.cjs → Budget-WIB8IJoM.cjs} +2 -2
- package/dist/{Budget-Gk2p5v0g.cjs.map → Budget-WIB8IJoM.cjs.map} +1 -1
- 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 +3 -3
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.js +21 -21
- package/dist/{Incentive-DupDIsTS.js → Incentive-D_IBex5V.js} +22 -22
- package/dist/{Incentive-DupDIsTS.js.map → Incentive-D_IBex5V.js.map} +1 -1
- package/dist/{Incentive-YiX6zKm1.cjs → Incentive-gT7z-4v3.cjs} +2 -2
- package/dist/{Incentive-YiX6zKm1.cjs.map → Incentive-gT7z-4v3.cjs.map} +1 -1
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.js +12 -12
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.js +43 -43
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.js +15 -15
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js +35 -35
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.d.ts.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js +146 -161
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js +6 -6
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js +103 -118
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableIncentive.js +8 -8
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.js +2 -2
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.js +15 -15
- package/dist/{SimpleDenyList-DyKqIWYL.js → SimpleDenyList-CtdXM49y.js} +6 -6
- package/dist/{SimpleDenyList-DyKqIWYL.js.map → SimpleDenyList-CtdXM49y.js.map} +1 -1
- package/dist/{SimpleDenyList-DMdld3JN.cjs → SimpleDenyList-D5AoBdVi.cjs} +2 -2
- package/dist/{SimpleDenyList-DMdld3JN.cjs.map → SimpleDenyList-D5AoBdVi.cjs.map} +1 -1
- package/dist/{Validator-vn0kQ3Wu.js → Validator-BEUqV28V.js} +27 -27
- package/dist/{Validator-vn0kQ3Wu.js.map → Validator-BEUqV28V.js.map} +1 -1
- package/dist/{Validator-BwPDBcxh.cjs → Validator-FxcxYKhR.cjs} +2 -2
- package/dist/{Validator-BwPDBcxh.cjs.map → Validator-FxcxYKhR.cjs.map} +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs +1 -1
- package/dist/Validators/LimitedSignerValidator.js +3 -3
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.js +7 -7
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.js +2 -2
- package/dist/generated-Cf82M-QP.cjs +3 -0
- package/dist/generated-Cf82M-QP.cjs.map +1 -0
- package/dist/{generated-D6oDILUw.js → generated-krkFnwbV.js} +290 -247
- package/dist/generated-krkFnwbV.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +165 -164
- package/package.json +1 -1
- package/src/Actions/EventAction.test.ts +100 -71
- package/src/Actions/EventAction.ts +57 -30
- package/src/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.ts +13 -41
- package/src/Incentives/ERC20VariableCriteriaIncentiveV2.ts +13 -41
- package/dist/generated-BzLYuFx3.cjs +0 -3
- package/dist/generated-BzLYuFx3.cjs.map +0 -1
- package/dist/generated-D6oDILUw.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c$ as Y, d0 as
|
|
2
|
-
import { getTransaction as
|
|
3
|
-
import { isAddressEqual as E, toEventSelector as G, decodeFunctionData as Z, isAddress as H, decodeEventLog as Q, zeroHash as C, fromHex as
|
|
4
|
-
import { j as
|
|
5
|
-
import { DeployableTarget as
|
|
6
|
-
import { ValidationAbiMissingError as N, FunctionDataDecodeError as q, UnparseableAbiParamError as J, DecodedArgsMalformedError as
|
|
7
|
-
import { RegistryType as
|
|
8
|
-
const S0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b608051611c666100945f395f6101510152611c665ff3fe6080604052600436106100ad575f3560e01c80639bc1cf8111610066578063d7768c471161004c578063d7768c4714610206578063dbdf211014610232578063ddd6ab0814610253575f80fd5b80639bc1cf81146101b9578063c26624e8146101da575f80fd5b806328d6183b1161009657806328d6183b14610106578063393df8cb14610140578063439fab9114610198575f80fd5b806301ffc9a7146100b157806309c5eabe146100e5575b5f80fd5b3480156100bc575f80fd5b506100d06100cb36600461128c565b610270565b60405190151581526020015b60405180910390f35b6100f86100f33660046112d2565b6102cb565b6040516100dc92919061138c565b348015610111575f80fd5b506040517f7687b0ed0000000000000000000000000000000000000000000000000000000081526020016100dc565b34801561014b575f80fd5b506101737f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100dc565b3480156101a3575f80fd5b506101b76101b23660046112d2565b610300565b005b3480156101c4575f80fd5b506101cd6103a0565b6040516100dc91906114a6565b3480156101e5575f80fd5b506101f96101f4366004611527565b61059f565b6040516100dc919061153e565b348015610211575f80fd5b506102256102203660046112d2565b61077a565b6040516100dc9190611550565b34801561023d575f80fd5b506102466107ae565b6040516100dc91906115b5565b34801561025e575f80fd5b506004546040519081526020016100dc565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7687b0ed0000000000000000000000000000000000000000000000000000000014806102c557506102c58261085e565b92915050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156103515760018160011c14303b106103485763f92ee8a95f526004601cfd5b818160ff1b1b91505b50610366610361838501856118e7565b6108b3565b801561039b576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610596578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff166001811115610410576104106113ae565b6001811115610421576104216113ae565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610494576104946113ae565b60078111156104a5576104a56113ae565b81528154602090910190610100900460ff1660058111156104c8576104c86113ae565b60058111156104d9576104d96113ae565b8152815462010000900463ffffffff166020820152600182018054604090920191610503906119e8565b80601f016020809104026020016040519081016040528092919081815260200182805461052f906119e8565b801561057a5780601f106105515761010080835404028352916020019161057a565b820191905f5260205f20905b81548152906001019060200180831161055d57829003601f168201915b50505050508152505081525050815260200190600101906103c3565b50505050905090565b6105a7611231565b600482815481106105ba576105ba611a39565b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156105fd576105fd6113ae565b600181111561060e5761060e6113ae565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610681576106816113ae565b6007811115610692576106926113ae565b81528154602090910190610100900460ff1660058111156106b5576106b56113ae565b60058111156106c6576106c66113ae565b8152815462010000900463ffffffff1660208201526001820180546040909201916106f0906119e8565b80601f016020809104026020016040519081016040528092919081815260200182805461071c906119e8565b80156107675780601f1061073e57610100808354040283529160200191610767565b820191905f5260205f20905b81548152906001019060200180831161074a57829003601f168201915b5050509190925250505090525092915050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a081019091525f8054829060ff1660018111156107fc576107fc6113ae565b600181111561080d5761080d6113ae565b815260018201546020820152600282015463ffffffff81166040830152640100000000900473ffffffffffffffffffffffffffffffffffffffff166060820152600390910154608090910152919050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe67157950000000000000000000000000000000000000000000000000000000014806102c557506102c582611161565b6108bb6111f7565b805180515f8054909190829060ff1916600183818111156108de576108de6113ae565b02179055506020828101516001808401919091556040840151600284018054606087015173ffffffffffffffffffffffffffffffffffffffff16640100000000027fffffffffffffffff00000000000000000000000000000000000000000000000090911663ffffffff90931692909217919091179055608090930151600390920191909155828101516004805480850182555f91909152815160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101918255928201517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c90930180549294919392909160ff199091169083818111156109ec576109ec6113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610aad57610aad6113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610af257610af26113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610b469082611ab1565b505050604083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610bd757610bd76113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610c9857610c986113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610cdd57610cdd6113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610d319082611ab1565b505050606083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610dc257610dc26113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610e8357610e836113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ec857610ec86113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610f1c9082611ab1565b505050608083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610fad57610fad6113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff199091169083600781111561106e5761106e6113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101008360058111156110b3576110b36113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff909116178155606082015160018201906111079082611ab1565b50505050507f7c54f3f7ef1d1e3acbe06bce75dbb6f17c64cb446c13bf354da8d7735b99f2a6815f01518260200151836040015184606001518560800151604051611156959493929190611bc8565b60405180910390a150565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806102c557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146102c5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132805460011661122e5763d7e6bcf85f526004601cfd5b50565b6040805160c081019091525f808252602082019081525f602082018190526040820181905260608201526080016112876040805160808101909152805f81526020015f81525f6020820152606060409091015290565b905290565b5f6020828403121561129c575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112cb575f80fd5b9392505050565b5f80602083850312156112e3575f80fd5b823567ffffffffffffffff8111156112f9575f80fd5b8301601f81018513611309575f80fd5b803567ffffffffffffffff81111561131f575f80fd5b856020828401011115611330575f80fd5b6020919091019590945092505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b8215158152604060208201525f6113a66040830184611340565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600281106113eb576113eb6113ae565b9052565b805182525f602082015161140660208501826113db565b5060ff604083015116604084015273ffffffffffffffffffffffffffffffffffffffff60608301511660608401526080820151608084015260a082015160c060a085015280516008811061145c5761145c6113ae565b60c0850152602081015160068110611476576114766113ae565b60e0850152604081015163ffffffff166101008501526060015160806101208501526113a6610140850182611340565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b8281101561151b577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184526115068583516113ef565b945060209384019391909101906001016114cc565b50929695505050505050565b5f60208284031215611537575f80fd5b5035919050565b602081525f6112cb60208301846113ef565b602081525f6112cb6020830184611340565b61156d8282516113db565b6020810151602083015263ffffffff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff6060820151166060830152608081015160808301525050565b60a081016102c58284611562565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160a0810167ffffffffffffffff81118282101715611613576116136115c3565b60405290565b6040516080810167ffffffffffffffff81118282101715611613576116136115c3565b60405160c0810167ffffffffffffffff81118282101715611613576116136115c3565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156116a6576116a66115c3565b604052919050565b8035600281106116bc575f80fd5b919050565b803563ffffffff811681146116bc575f80fd5b803573ffffffffffffffffffffffffffffffffffffffff811681146116bc575f80fd5b5f60a08284031215611707575f80fd5b61170f6115f0565b905061171a826116ae565b815260208281013590820152611732604083016116c1565b6040820152611743606083016116d4565b606082015260809182013591810191909152919050565b5f6080828403121561176a575f80fd5b611772611619565b9050813560088110611782575f80fd5b8152602082013560068110611795575f80fd5b60208201526117a6604083016116c1565b6040820152606082013567ffffffffffffffff8111156117c4575f80fd5b8201601f810184136117d4575f80fd5b803567ffffffffffffffff8111156117ee576117ee6115c3565b61181f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161165f565b818152856020838501011115611833575f80fd5b816020840160208301375f6020838301015280606085015250505092915050565b5f60c08284031215611864575f80fd5b61186c61163c565b82358152905061187e602083016116ae565b6020820152604082013560ff81168114611896575f80fd5b60408201526118a7606083016116d4565b60608201526080828101359082015260a082013567ffffffffffffffff8111156118cf575f80fd5b6118db8482850161175a565b60a08301525092915050565b5f602082840312156118f7575f80fd5b813567ffffffffffffffff81111561190d575f80fd5b8201610120818503121561191f575f80fd5b6119276115f0565b61193185836116f7565b815260a082013567ffffffffffffffff81111561194c575f80fd5b61195886828501611854565b60208301525060c082013567ffffffffffffffff811115611977575f80fd5b61198386828501611854565b60408301525060e082013567ffffffffffffffff8111156119a2575f80fd5b6119ae86828501611854565b60608301525061010082013567ffffffffffffffff8111156119ce575f80fd5b6119da86828501611854565b608083015250949350505050565b600181811c908216806119fc57607f821691505b602082108103611a33577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b601f82111561039b57805f5260205f20601f840160051c81016020851015611a8b5750805b601f840160051c820191505b81811015611aaa575f8155600101611a97565b5050505050565b815167ffffffffffffffff811115611acb57611acb6115c3565b611adf81611ad984546119e8565b84611a66565b6020601f821160018114611b30575f8315611afa5750848201515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b178455611aaa565b5f848152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08516915b82811015611b7d5787850151825560209485019460019092019101611b5d565b5084821015611bb957868401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b60f8161c191681555b50505050600190811b01905550565b611bd28187611562565b61012060a08201525f611be96101208301876113ef565b82810360c0840152611bfb81876113ef565b905082810360e0840152611c0f81866113ef565b9050828103610100840152611c2481856113ef565b9897505050505050505056fea2646970667358221220ec29c85e9420d542351535cfbb2c79285bfb5d86014ee966669d793fa2a4481264736f6c634300081a0033", N0 = {
|
|
1
|
+
import { c$ as Y, d0 as c0, d1 as p0, d2 as y0, d3 as b0 } from "../generated-krkFnwbV.js";
|
|
2
|
+
import { getTransaction as L, getTransactionReceipt as V } from "@wagmi/core";
|
|
3
|
+
import { isAddressEqual as E, toEventSelector as G, decodeFunctionData as Z, isAddress as H, decodeEventLog as Q, zeroHash as C, fromHex as R, encodeAbiParameters as l0, pad as K, zeroAddress as g0, trim as h0 } from "viem";
|
|
4
|
+
import { j as x0 } from "../deployments-Dw5Suk_D.js";
|
|
5
|
+
import { DeployableTarget as m0 } from "../Deployable/DeployableTarget.js";
|
|
6
|
+
import { ValidationAbiMissingError as N, FunctionDataDecodeError as q, UnparseableAbiParamError as J, DecodedArgsMalformedError as w0, DecodedArgsError as v, FieldValueUndefinedError as f0, InvalidTupleDecodingError as I, UnrecognizedFilterTypeError as A0, FieldValueNotComparableError as e0, InvalidNumericalCriteriaError as _, NoEventActionStepsProvidedError as T0, TooManyEventActionStepsProvidedError as v0, InvalidTupleEncodingError as O } from "../errors.js";
|
|
7
|
+
import { RegistryType as E0, CheatCodes as B, TRANSFER_SIGNATURE as D } from "../utils.js";
|
|
8
|
+
const I0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b608051611c666100945f395f6101510152611c665ff3fe6080604052600436106100ad575f3560e01c80639bc1cf8111610066578063d7768c471161004c578063d7768c4714610206578063dbdf211014610232578063ddd6ab0814610253575f80fd5b80639bc1cf81146101b9578063c26624e8146101da575f80fd5b806328d6183b1161009657806328d6183b14610106578063393df8cb14610140578063439fab9114610198575f80fd5b806301ffc9a7146100b157806309c5eabe146100e5575b5f80fd5b3480156100bc575f80fd5b506100d06100cb36600461128c565b610270565b60405190151581526020015b60405180910390f35b6100f86100f33660046112d2565b6102cb565b6040516100dc92919061138c565b348015610111575f80fd5b506040517f7687b0ed0000000000000000000000000000000000000000000000000000000081526020016100dc565b34801561014b575f80fd5b506101737f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100dc565b3480156101a3575f80fd5b506101b76101b23660046112d2565b610300565b005b3480156101c4575f80fd5b506101cd6103a0565b6040516100dc91906114a6565b3480156101e5575f80fd5b506101f96101f4366004611527565b61059f565b6040516100dc919061153e565b348015610211575f80fd5b506102256102203660046112d2565b61077a565b6040516100dc9190611550565b34801561023d575f80fd5b506102466107ae565b6040516100dc91906115b5565b34801561025e575f80fd5b506004546040519081526020016100dc565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7687b0ed0000000000000000000000000000000000000000000000000000000014806102c557506102c58261085e565b92915050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156103515760018160011c14303b106103485763f92ee8a95f526004601cfd5b818160ff1b1b91505b50610366610361838501856118e7565b6108b3565b801561039b576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610596578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff166001811115610410576104106113ae565b6001811115610421576104216113ae565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610494576104946113ae565b60078111156104a5576104a56113ae565b81528154602090910190610100900460ff1660058111156104c8576104c86113ae565b60058111156104d9576104d96113ae565b8152815462010000900463ffffffff166020820152600182018054604090920191610503906119e8565b80601f016020809104026020016040519081016040528092919081815260200182805461052f906119e8565b801561057a5780601f106105515761010080835404028352916020019161057a565b820191905f5260205f20905b81548152906001019060200180831161055d57829003601f168201915b50505050508152505081525050815260200190600101906103c3565b50505050905090565b6105a7611231565b600482815481106105ba576105ba611a39565b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156105fd576105fd6113ae565b600181111561060e5761060e6113ae565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610681576106816113ae565b6007811115610692576106926113ae565b81528154602090910190610100900460ff1660058111156106b5576106b56113ae565b60058111156106c6576106c66113ae565b8152815462010000900463ffffffff1660208201526001820180546040909201916106f0906119e8565b80601f016020809104026020016040519081016040528092919081815260200182805461071c906119e8565b80156107675780601f1061073e57610100808354040283529160200191610767565b820191905f5260205f20905b81548152906001019060200180831161074a57829003601f168201915b5050509190925250505090525092915050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a081019091525f8054829060ff1660018111156107fc576107fc6113ae565b600181111561080d5761080d6113ae565b815260018201546020820152600282015463ffffffff81166040830152640100000000900473ffffffffffffffffffffffffffffffffffffffff166060820152600390910154608090910152919050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe67157950000000000000000000000000000000000000000000000000000000014806102c557506102c582611161565b6108bb6111f7565b805180515f8054909190829060ff1916600183818111156108de576108de6113ae565b02179055506020828101516001808401919091556040840151600284018054606087015173ffffffffffffffffffffffffffffffffffffffff16640100000000027fffffffffffffffff00000000000000000000000000000000000000000000000090911663ffffffff90931692909217919091179055608090930151600390920191909155828101516004805480850182555f91909152815160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101918255928201517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c90930180549294919392909160ff199091169083818111156109ec576109ec6113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610aad57610aad6113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610af257610af26113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610b469082611ab1565b505050604083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610bd757610bd76113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610c9857610c986113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610cdd57610cdd6113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610d319082611ab1565b505050606083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610dc257610dc26113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610e8357610e836113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ec857610ec86113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610f1c9082611ab1565b505050608083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610fad57610fad6113ae565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff199091169083600781111561106e5761106e6113ae565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101008360058111156110b3576110b36113ae565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff909116178155606082015160018201906111079082611ab1565b50505050507f7c54f3f7ef1d1e3acbe06bce75dbb6f17c64cb446c13bf354da8d7735b99f2a6815f01518260200151836040015184606001518560800151604051611156959493929190611bc8565b60405180910390a150565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806102c557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146102c5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf601132805460011661122e5763d7e6bcf85f526004601cfd5b50565b6040805160c081019091525f808252602082019081525f602082018190526040820181905260608201526080016112876040805160808101909152805f81526020015f81525f6020820152606060409091015290565b905290565b5f6020828403121561129c575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112cb575f80fd5b9392505050565b5f80602083850312156112e3575f80fd5b823567ffffffffffffffff8111156112f9575f80fd5b8301601f81018513611309575f80fd5b803567ffffffffffffffff81111561131f575f80fd5b856020828401011115611330575f80fd5b6020919091019590945092505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b8215158152604060208201525f6113a66040830184611340565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600281106113eb576113eb6113ae565b9052565b805182525f602082015161140660208501826113db565b5060ff604083015116604084015273ffffffffffffffffffffffffffffffffffffffff60608301511660608401526080820151608084015260a082015160c060a085015280516008811061145c5761145c6113ae565b60c0850152602081015160068110611476576114766113ae565b60e0850152604081015163ffffffff166101008501526060015160806101208501526113a6610140850182611340565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b8281101561151b577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184526115068583516113ef565b945060209384019391909101906001016114cc565b50929695505050505050565b5f60208284031215611537575f80fd5b5035919050565b602081525f6112cb60208301846113ef565b602081525f6112cb6020830184611340565b61156d8282516113db565b6020810151602083015263ffffffff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff6060820151166060830152608081015160808301525050565b60a081016102c58284611562565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160a0810167ffffffffffffffff81118282101715611613576116136115c3565b60405290565b6040516080810167ffffffffffffffff81118282101715611613576116136115c3565b60405160c0810167ffffffffffffffff81118282101715611613576116136115c3565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156116a6576116a66115c3565b604052919050565b8035600281106116bc575f80fd5b919050565b803563ffffffff811681146116bc575f80fd5b803573ffffffffffffffffffffffffffffffffffffffff811681146116bc575f80fd5b5f60a08284031215611707575f80fd5b61170f6115f0565b905061171a826116ae565b815260208281013590820152611732604083016116c1565b6040820152611743606083016116d4565b606082015260809182013591810191909152919050565b5f6080828403121561176a575f80fd5b611772611619565b9050813560088110611782575f80fd5b8152602082013560068110611795575f80fd5b60208201526117a6604083016116c1565b6040820152606082013567ffffffffffffffff8111156117c4575f80fd5b8201601f810184136117d4575f80fd5b803567ffffffffffffffff8111156117ee576117ee6115c3565b61181f60207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161165f565b818152856020838501011115611833575f80fd5b816020840160208301375f6020838301015280606085015250505092915050565b5f60c08284031215611864575f80fd5b61186c61163c565b82358152905061187e602083016116ae565b6020820152604082013560ff81168114611896575f80fd5b60408201526118a7606083016116d4565b60608201526080828101359082015260a082013567ffffffffffffffff8111156118cf575f80fd5b6118db8482850161175a565b60a08301525092915050565b5f602082840312156118f7575f80fd5b813567ffffffffffffffff81111561190d575f80fd5b8201610120818503121561191f575f80fd5b6119276115f0565b61193185836116f7565b815260a082013567ffffffffffffffff81111561194c575f80fd5b61195886828501611854565b60208301525060c082013567ffffffffffffffff811115611977575f80fd5b61198386828501611854565b60408301525060e082013567ffffffffffffffff8111156119a2575f80fd5b6119ae86828501611854565b60608301525061010082013567ffffffffffffffff8111156119ce575f80fd5b6119da86828501611854565b608083015250949350505050565b600181811c908216806119fc57607f821691505b602082108103611a33577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b601f82111561039b57805f5260205f20601f840160051c81016020851015611a8b5750805b601f840160051c820191505b81811015611aaa575f8155600101611a97565b5050505050565b815167ffffffffffffffff811115611acb57611acb6115c3565b611adf81611ad984546119e8565b84611a66565b6020601f821160018114611b30575f8315611afa5750848201515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b178455611aaa565b5f848152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08516915b82811015611b7d5787850151825560209485019460019092019101611b5d565b5084821015611bb957868401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b60f8161c191681555b50505050600190811b01905550565b611bd28187611562565b61012060a08201525f611be96101208301876113ef565b82810360c0840152611bfb81876113ef565b905082810360e0840152611c0f81866113ef565b9050828103610100840152611c2481856113ef565b9897505050505050505056fea2646970667358221220ec29c85e9420d542351535cfbb2c79285bfb5d86014ee966669d793fa2a4481264736f6c634300081a0033", S0 = {
|
|
9
9
|
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
|
|
10
10
|
name: "Transfer",
|
|
11
11
|
type: "event",
|
|
@@ -1380,27 +1380,27 @@ const S0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
1380
1380
|
}
|
|
1381
1381
|
]
|
|
1382
1382
|
}
|
|
1383
|
-
}, g = Symbol.for("@ts-pattern/matcher"),
|
|
1383
|
+
}, g = Symbol.for("@ts-pattern/matcher"), N0 = Symbol.for("@ts-pattern/isVariadic"), U = "@ts-pattern/anonymous-select-key", X = (t) => !!(t && typeof t == "object"), W = (t) => t && !!t[g], l = (t, f, e) => {
|
|
1384
1384
|
if (W(t)) {
|
|
1385
1385
|
const n = t[g](), { matched: d, selections: i } = n.match(f);
|
|
1386
|
-
return d && i && Object.keys(i).forEach((
|
|
1386
|
+
return d && i && Object.keys(i).forEach((a) => e(a, i[a])), d;
|
|
1387
1387
|
}
|
|
1388
|
-
if (
|
|
1389
|
-
if (!
|
|
1388
|
+
if (X(t)) {
|
|
1389
|
+
if (!X(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
|
|
1394
|
-
const r = t[
|
|
1395
|
-
W(r) && r[
|
|
1393
|
+
for (const a of t.keys()) {
|
|
1394
|
+
const r = t[a];
|
|
1395
|
+
W(r) && r[N0] ? i.push(r) : i.length ? d.push(r) : n.push(r);
|
|
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
|
|
1401
|
-
return n.every((c,
|
|
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, T) => l(c, a[T], e)) && d.every((c, T) => l(c, r[T], e)) && (i.length === 0 || l(i[0], s, e));
|
|
1402
1402
|
}
|
|
1403
|
-
return t.length === f.length && t.every((
|
|
1403
|
+
return t.length === f.length && t.every((a, r) => l(a, f[r], e));
|
|
1404
1404
|
}
|
|
1405
1405
|
return Reflect.ownKeys(t).every((n) => {
|
|
1406
1406
|
const d = t[n];
|
|
@@ -1409,21 +1409,21 @@ const S0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd1980
|
|
|
1409
1409
|
});
|
|
1410
1410
|
}
|
|
1411
1411
|
return Object.is(f, t);
|
|
1412
|
-
},
|
|
1412
|
+
}, A = (t) => {
|
|
1413
1413
|
var f, e, n;
|
|
1414
|
-
return
|
|
1414
|
+
return X(t) ? W(t) ? (f = (e = (n = t[g]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? k(t, A) : k(Object.values(t), A) : [];
|
|
1415
1415
|
}, k = (t, f) => t.reduce((e, n) => e.concat(f(n)), []);
|
|
1416
1416
|
function p(t) {
|
|
1417
|
-
return Object.assign(t, { optional: () =>
|
|
1417
|
+
return Object.assign(t, { optional: () => C0(t), and: (f) => o(t, f), or: (f) => B0(t, f), select: (f) => f === void 0 ? t0(t) : t0(f, t) });
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1419
|
+
function C0(t) {
|
|
1420
1420
|
return p({ [g]: () => ({ 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 ? (A(t).forEach((d) => n(d, void 0)), { matched: !0, selections: e }) : { matched: l(t, f, n), selections: e };
|
|
1426
|
+
}, getSelectionKeys: () => A(t), matcherType: "optional" }) });
|
|
1427
1427
|
}
|
|
1428
1428
|
function o(...t) {
|
|
1429
1429
|
return p({ [g]: () => ({ match: (f) => {
|
|
@@ -1432,16 +1432,16 @@ function o(...t) {
|
|
|
1432
1432
|
e[d] = i;
|
|
1433
1433
|
};
|
|
1434
1434
|
return { matched: t.every((d) => l(d, f, n)), selections: e };
|
|
1435
|
-
}, getSelectionKeys: () => k(t,
|
|
1435
|
+
}, getSelectionKeys: () => k(t, A), matcherType: "and" }) });
|
|
1436
1436
|
}
|
|
1437
|
-
function
|
|
1437
|
+
function B0(...t) {
|
|
1438
1438
|
return p({ [g]: () => ({ match: (f) => {
|
|
1439
1439
|
let e = {};
|
|
1440
1440
|
const n = (d, i) => {
|
|
1441
1441
|
e[d] = i;
|
|
1442
1442
|
};
|
|
1443
|
-
return k(t,
|
|
1444
|
-
}, getSelectionKeys: () => k(t,
|
|
1443
|
+
return k(t, A).forEach((d) => n(d, void 0)), { matched: t.some((d) => l(d, f, n)), selections: e };
|
|
1444
|
+
}, getSelectionKeys: () => k(t, A), matcherType: "or" }) });
|
|
1445
1445
|
}
|
|
1446
1446
|
function u(t) {
|
|
1447
1447
|
return { [g]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
|
|
@@ -1450,10 +1450,10 @@ 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
1451
|
return p({ [g]: () => ({ match: (n) => {
|
|
1452
1452
|
let d = { [f ?? U]: n };
|
|
1453
|
-
return { matched: e === void 0 || l(e, n, (i,
|
|
1454
|
-
d[i] =
|
|
1453
|
+
return { matched: e === void 0 || l(e, n, (i, a) => {
|
|
1454
|
+
d[i] = a;
|
|
1455
1455
|
}), selections: d };
|
|
1456
|
-
}, getSelectionKeys: () => [f ?? U].concat(e === void 0 ? [] :
|
|
1456
|
+
}, getSelectionKeys: () => [f ?? U].concat(e === void 0 ? [] : A(e)) }) });
|
|
1457
1457
|
}
|
|
1458
1458
|
function y(t) {
|
|
1459
1459
|
return typeof t == "number";
|
|
@@ -1497,7 +1497,7 @@ p(u(function(t) {
|
|
|
1497
1497
|
p(u(function(t) {
|
|
1498
1498
|
return t != null;
|
|
1499
1499
|
}));
|
|
1500
|
-
class
|
|
1500
|
+
class k0 extends Error {
|
|
1501
1501
|
constructor(f) {
|
|
1502
1502
|
let e;
|
|
1503
1503
|
try {
|
|
@@ -1508,9 +1508,9 @@ class R0 extends Error {
|
|
|
1508
1508
|
super(`Pattern matching error: no pattern matches value ${e}`), this.input = void 0, this.input = f;
|
|
1509
1509
|
}
|
|
1510
1510
|
}
|
|
1511
|
-
const
|
|
1511
|
+
const z = { matched: !1, value: void 0 };
|
|
1512
1512
|
function n0(t) {
|
|
1513
|
-
return new M(t,
|
|
1513
|
+
return new M(t, z);
|
|
1514
1514
|
}
|
|
1515
1515
|
class M {
|
|
1516
1516
|
constructor(f, e) {
|
|
@@ -1521,23 +1521,23 @@ class M {
|
|
|
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,
|
|
1525
|
-
const r = (c,
|
|
1526
|
-
i = !0,
|
|
1527
|
-
},
|
|
1528
|
-
return new M(this.input,
|
|
1524
|
+
let i = !1, a = {};
|
|
1525
|
+
const r = (c, T) => {
|
|
1526
|
+
i = !0, a[c] = T;
|
|
1527
|
+
}, s = !n.some((c) => l(c, this.input, r)) || d && !d(this.input) ? z : { matched: !0, value: e(i ? U in a ? a[U] : a : this.input, this.input) };
|
|
1528
|
+
return new M(this.input, s);
|
|
1529
1529
|
}
|
|
1530
1530
|
when(f, e) {
|
|
1531
1531
|
if (this.state.matched) return this;
|
|
1532
1532
|
const n = !!f(this.input);
|
|
1533
|
-
return new M(this.input, n ? { matched: !0, value: e(this.input, this.input) } :
|
|
1533
|
+
return new M(this.input, n ? { matched: !0, value: e(this.input, this.input) } : z);
|
|
1534
1534
|
}
|
|
1535
1535
|
otherwise(f) {
|
|
1536
1536
|
return this.state.matched ? this.state.value : f(this.input);
|
|
1537
1537
|
}
|
|
1538
1538
|
exhaustive() {
|
|
1539
1539
|
if (this.state.matched) return this.state.value;
|
|
1540
|
-
throw new
|
|
1540
|
+
throw new k0(this.input);
|
|
1541
1541
|
}
|
|
1542
1542
|
run() {
|
|
1543
1543
|
return this.exhaustive();
|
|
@@ -1547,11 +1547,11 @@ class M {
|
|
|
1547
1547
|
}
|
|
1548
1548
|
}
|
|
1549
1549
|
const j = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_BOOST_MAINNET_SIGNER_EOA: "0xCBD0C302040bC803B4B2EDaF21Be0e49Deff5480", VITE_BOOST_TESTNET_SIGNER_EOA: "0xd63167e9db11B108940b2E8236581F961f33f396" };
|
|
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 || {}),
|
|
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 || {}), R0 = /* @__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))(R0 || {}), _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 P0(t) {
|
|
1552
1552
|
return Array.isArray(t.actionSteps);
|
|
1553
1553
|
}
|
|
1554
|
-
const $ = class $ extends
|
|
1554
|
+
const $ = class $ extends m0 {
|
|
1555
1555
|
constructor() {
|
|
1556
1556
|
super(...arguments), this.abi = Y;
|
|
1557
1557
|
}
|
|
@@ -1576,13 +1576,13 @@ const $ = class $ extends w0 {
|
|
|
1576
1576
|
* @returns {Promise<ActionStep[]>}
|
|
1577
1577
|
*/
|
|
1578
1578
|
async getActionSteps(f) {
|
|
1579
|
-
const e = await
|
|
1579
|
+
const e = await c0(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 W0(e.map(i0));
|
|
1586
1586
|
}
|
|
1587
1587
|
/**
|
|
1588
1588
|
* Gets the count of action events
|
|
@@ -1604,7 +1604,7 @@ const $ = class $ extends w0 {
|
|
|
1604
1604
|
* @returns {Promise<ActionClaimant>}
|
|
1605
1605
|
*/
|
|
1606
1606
|
async getActionClaimant(f) {
|
|
1607
|
-
const e = await
|
|
1607
|
+
const e = await p0(this._config, {
|
|
1608
1608
|
address: this.assertValidAddress(),
|
|
1609
1609
|
...this.optionallyAttachAccount(),
|
|
1610
1610
|
...f
|
|
@@ -1633,14 +1633,14 @@ const $ = class $ extends w0 {
|
|
|
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 y0(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 b0(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 $ = class $ extends w0 {
|
|
|
1679
1679
|
async deriveActionClaimantFromTransaction(f, e) {
|
|
1680
1680
|
if (f.fieldIndex === B.TX_SENDER_CLAIMANT) {
|
|
1681
1681
|
if ("hash" in e) {
|
|
1682
|
-
const d = await
|
|
1682
|
+
const d = await L(this._config, {
|
|
1683
1683
|
...e,
|
|
1684
1684
|
chainId: f.chainid
|
|
1685
1685
|
});
|
|
@@ -1688,7 +1688,7 @@ const $ = class $ extends w0 {
|
|
|
1688
1688
|
if ("logs" in e) {
|
|
1689
1689
|
for (let d of e.logs)
|
|
1690
1690
|
if (d.transactionHash) {
|
|
1691
|
-
const i = await
|
|
1691
|
+
const i = await L(this._config, {
|
|
1692
1692
|
...e,
|
|
1693
1693
|
hash: d.transactionHash,
|
|
1694
1694
|
chainId: f.chainid
|
|
@@ -1704,12 +1704,12 @@ const $ = class $ extends w0 {
|
|
|
1704
1704
|
if (e.abiItem ? d = e.abiItem : d = e.knownSignatures[n], !d)
|
|
1705
1705
|
throw new N(n);
|
|
1706
1706
|
if ("logs" in e) {
|
|
1707
|
-
const r = e.logs.filter((
|
|
1708
|
-
for (const
|
|
1709
|
-
if (!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 (!E(s.address, f.targetContract)) continue;
|
|
1710
1710
|
const c = this.validateClaimantAgainstArgs(
|
|
1711
1711
|
f,
|
|
1712
|
-
|
|
1712
|
+
s
|
|
1713
1713
|
);
|
|
1714
1714
|
if (c) return c;
|
|
1715
1715
|
}
|
|
@@ -1722,16 +1722,16 @@ const $ = class $ extends w0 {
|
|
|
1722
1722
|
});
|
|
1723
1723
|
if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber)
|
|
1724
1724
|
return;
|
|
1725
|
-
let
|
|
1726
|
-
n === D ? { decodedLogs:
|
|
1727
|
-
for (let r of
|
|
1725
|
+
let a;
|
|
1726
|
+
n === D ? { decodedLogs: a } = await this.decodeTransferLogs(i) : a = i.logs.filter((r) => r.topics[0] === G(d)).map((r) => F(d, r));
|
|
1727
|
+
for (let r of a) {
|
|
1728
1728
|
if (!E(r.address, f.targetContract)) continue;
|
|
1729
|
-
let
|
|
1730
|
-
if (
|
|
1729
|
+
let s = this.validateClaimantAgainstArgs(f, r);
|
|
1730
|
+
if (s) return s;
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
1733
|
if (f.signatureType === 1 && "hash" in e) {
|
|
1734
|
-
const d = await
|
|
1734
|
+
const d = await L(this._config, {
|
|
1735
1735
|
...e,
|
|
1736
1736
|
chainId: f.chainid
|
|
1737
1737
|
});
|
|
@@ -1739,16 +1739,16 @@ const $ = class $ extends w0 {
|
|
|
1739
1739
|
let i;
|
|
1740
1740
|
if (e.abiItem ? i = e.abiItem : i = e.knownSignatures[n], !i)
|
|
1741
1741
|
throw new N(f.signature);
|
|
1742
|
-
let
|
|
1742
|
+
let a;
|
|
1743
1743
|
try {
|
|
1744
|
-
|
|
1744
|
+
a = Z({
|
|
1745
1745
|
abi: [i],
|
|
1746
1746
|
data: d.input
|
|
1747
1747
|
});
|
|
1748
1748
|
} catch (r) {
|
|
1749
1749
|
throw new q([i], r);
|
|
1750
1750
|
}
|
|
1751
|
-
return this.validateClaimantAgainstArgs(f,
|
|
1751
|
+
return this.validateClaimantAgainstArgs(f, a);
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
1754
1754
|
/**
|
|
@@ -1766,10 +1766,10 @@ const $ = class $ extends w0 {
|
|
|
1766
1766
|
const [d, i] = H0(f.fieldIndex);
|
|
1767
1767
|
if (e.args.length <= d)
|
|
1768
1768
|
return;
|
|
1769
|
-
const
|
|
1770
|
-
if (!Array.isArray(
|
|
1769
|
+
const a = e.args[d];
|
|
1770
|
+
if (!Array.isArray(a) || a.length <= i)
|
|
1771
1771
|
return;
|
|
1772
|
-
const r =
|
|
1772
|
+
const r = a[i];
|
|
1773
1773
|
return H(r) ? r : void 0;
|
|
1774
1774
|
}
|
|
1775
1775
|
if (e.args.length <= f.fieldIndex)
|
|
@@ -1824,14 +1824,14 @@ const $ = class $ extends w0 {
|
|
|
1824
1824
|
if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber)
|
|
1825
1825
|
return !1;
|
|
1826
1826
|
if (f.signature === D) {
|
|
1827
|
-
const { decodedLogs: r, event:
|
|
1828
|
-
return this.isActionEventValid(f, r,
|
|
1827
|
+
const { decodedLogs: r, event: s } = await this.decodeTransferLogs(i);
|
|
1828
|
+
return this.isActionEventValid(f, r, s);
|
|
1829
1829
|
}
|
|
1830
|
-
const
|
|
1831
|
-
return this.isActionEventValid(f,
|
|
1830
|
+
const a = i.logs.filter((r) => r.topics[0] === G(d)).map((r) => F(d, r));
|
|
1831
|
+
return this.isActionEventValid(f, a, d);
|
|
1832
1832
|
}
|
|
1833
1833
|
if (f.signatureType === 1 && "hash" in e) {
|
|
1834
|
-
const n = await
|
|
1834
|
+
const n = await L(this._config, {
|
|
1835
1835
|
...e,
|
|
1836
1836
|
chainId: f.chainid
|
|
1837
1837
|
});
|
|
@@ -1854,18 +1854,18 @@ const $ = class $ extends w0 {
|
|
|
1854
1854
|
for (let i of e)
|
|
1855
1855
|
try {
|
|
1856
1856
|
if (!Array.isArray(i.args))
|
|
1857
|
-
throw new
|
|
1857
|
+
throw new w0({
|
|
1858
1858
|
log: i,
|
|
1859
1859
|
criteria: d,
|
|
1860
1860
|
fieldValue: void 0
|
|
1861
1861
|
});
|
|
1862
|
-
const { value:
|
|
1862
|
+
const { value: a, type: r } = this.parseFieldFromAbi(
|
|
1863
1863
|
i.args,
|
|
1864
1864
|
d.fieldIndex,
|
|
1865
1865
|
n.inputs || [],
|
|
1866
1866
|
d.fieldType
|
|
1867
|
-
),
|
|
1868
|
-
if (this.validateFieldAgainstCriteria(
|
|
1867
|
+
), s = { ...d, fieldType: r };
|
|
1868
|
+
if (this.validateFieldAgainstCriteria(s, a, { log: i }))
|
|
1869
1869
|
return !0;
|
|
1870
1870
|
} catch {
|
|
1871
1871
|
}
|
|
@@ -1891,17 +1891,17 @@ const $ = class $ extends w0 {
|
|
|
1891
1891
|
const e = f.logs.filter(
|
|
1892
1892
|
(d) => d.topics[0] === D
|
|
1893
1893
|
), n = structuredClone(
|
|
1894
|
-
|
|
1894
|
+
S0["Transfer(address indexed,address indexed,uint256 indexed)"]
|
|
1895
1895
|
);
|
|
1896
1896
|
try {
|
|
1897
1897
|
return {
|
|
1898
1898
|
decodedLogs: e.map((i) => {
|
|
1899
|
-
const { eventName:
|
|
1899
|
+
const { eventName: a, args: r } = Q({
|
|
1900
1900
|
abi: [n],
|
|
1901
1901
|
data: i.data,
|
|
1902
1902
|
topics: i.topics
|
|
1903
1903
|
});
|
|
1904
|
-
return { ...i, eventName:
|
|
1904
|
+
return { ...i, eventName: a, args: r };
|
|
1905
1905
|
}),
|
|
1906
1906
|
event: n
|
|
1907
1907
|
};
|
|
@@ -1909,17 +1909,17 @@ const $ = class $ extends w0 {
|
|
|
1909
1909
|
try {
|
|
1910
1910
|
return n.inputs[2].indexed = !1, {
|
|
1911
1911
|
decodedLogs: e.map((i) => {
|
|
1912
|
-
const { eventName:
|
|
1912
|
+
const { eventName: a, args: r } = Q({
|
|
1913
1913
|
abi: [n],
|
|
1914
1914
|
data: i.data,
|
|
1915
1915
|
topics: i.topics
|
|
1916
1916
|
});
|
|
1917
|
-
return { ...i, eventName:
|
|
1917
|
+
return { ...i, eventName: a, args: r };
|
|
1918
1918
|
}),
|
|
1919
1919
|
event: n
|
|
1920
1920
|
};
|
|
1921
1921
|
} catch {
|
|
1922
|
-
throw new
|
|
1922
|
+
throw new v("Failed to decode transfer logs");
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
@@ -1953,23 +1953,23 @@ const $ = class $ extends w0 {
|
|
|
1953
1953
|
filterData: C
|
|
1954
1954
|
}
|
|
1955
1955
|
});
|
|
1956
|
-
const
|
|
1957
|
-
if (!
|
|
1958
|
-
throw new J(e,
|
|
1959
|
-
const r = f[e],
|
|
1960
|
-
if (
|
|
1956
|
+
const a = n[e];
|
|
1957
|
+
if (!a || !a.type)
|
|
1958
|
+
throw new J(e, a);
|
|
1959
|
+
const r = f[e], s = a0(a.type);
|
|
1960
|
+
if (s === 1 && (typeof r != "string" || !H(r)))
|
|
1961
1961
|
throw new f0({
|
|
1962
1962
|
fieldValue: r,
|
|
1963
1963
|
criteria: {
|
|
1964
1964
|
fieldIndex: e,
|
|
1965
1965
|
filterType: 0,
|
|
1966
|
-
fieldType:
|
|
1966
|
+
fieldType: s,
|
|
1967
1967
|
filterData: C
|
|
1968
1968
|
}
|
|
1969
1969
|
});
|
|
1970
|
-
return { value: r, type:
|
|
1970
|
+
return { value: r, type: s };
|
|
1971
1971
|
}
|
|
1972
|
-
const i =
|
|
1972
|
+
const i = o0(e);
|
|
1973
1973
|
return r0(f, i, n);
|
|
1974
1974
|
}
|
|
1975
1975
|
/**
|
|
@@ -1987,28 +1987,28 @@ const $ = class $ extends w0 {
|
|
|
1987
1987
|
*/
|
|
1988
1988
|
isActionFunctionValid(f, e, n) {
|
|
1989
1989
|
const d = f.actionParameter, i = f.signature;
|
|
1990
|
-
let
|
|
1991
|
-
if (n.abiItem ?
|
|
1990
|
+
let a;
|
|
1991
|
+
if (n.abiItem ? a = n.abiItem : a = n.knownSignatures[i], !a)
|
|
1992
1992
|
throw new N(i);
|
|
1993
1993
|
let r;
|
|
1994
1994
|
try {
|
|
1995
1995
|
r = Z({
|
|
1996
|
-
abi: [
|
|
1996
|
+
abi: [a],
|
|
1997
1997
|
data: e.input
|
|
1998
1998
|
});
|
|
1999
|
-
} catch (
|
|
2000
|
-
throw new q([
|
|
1999
|
+
} catch (s) {
|
|
2000
|
+
throw new q([a], s);
|
|
2001
2001
|
}
|
|
2002
2002
|
if (!(r != null && r.args))
|
|
2003
2003
|
return !1;
|
|
2004
2004
|
try {
|
|
2005
|
-
const { value:
|
|
2005
|
+
const { value: s, type: c } = this.parseFieldFromAbi(
|
|
2006
2006
|
r.args,
|
|
2007
2007
|
d.fieldIndex,
|
|
2008
|
-
|
|
2008
|
+
a.inputs || [],
|
|
2009
2009
|
d.fieldType
|
|
2010
|
-
),
|
|
2011
|
-
return this.validateFieldAgainstCriteria(
|
|
2010
|
+
), T = { ...d, fieldType: c };
|
|
2011
|
+
return this.validateFieldAgainstCriteria(T, s, {
|
|
2012
2012
|
decodedArgs: r.args
|
|
2013
2013
|
});
|
|
2014
2014
|
} catch {
|
|
@@ -2045,7 +2045,7 @@ const $ = class $ extends w0 {
|
|
|
2045
2045
|
() => BigInt(e) === BigInt(f.filterData)
|
|
2046
2046
|
).with(
|
|
2047
2047
|
3,
|
|
2048
|
-
() => e ===
|
|
2048
|
+
() => e === R(f.filterData, "string")
|
|
2049
2049
|
).otherwise(() => e === f.filterData);
|
|
2050
2050
|
case 1:
|
|
2051
2051
|
return n0(d).with(
|
|
@@ -2059,7 +2059,7 @@ const $ = class $ extends w0 {
|
|
|
2059
2059
|
() => BigInt(e) !== BigInt(f.filterData)
|
|
2060
2060
|
).with(
|
|
2061
2061
|
3,
|
|
2062
|
-
() => e !==
|
|
2062
|
+
() => e !== R(f.filterData, "string")
|
|
2063
2063
|
).otherwise(() => e !== f.filterData);
|
|
2064
2064
|
case 2:
|
|
2065
2065
|
if (d === 0 || d === 5)
|
|
@@ -2096,7 +2096,7 @@ const $ = class $ extends w0 {
|
|
|
2096
2096
|
case 4:
|
|
2097
2097
|
if (d === 2 || d === 3) {
|
|
2098
2098
|
let i;
|
|
2099
|
-
return d === 3 ? i =
|
|
2099
|
+
return d === 3 ? i = R(f.filterData, "string") : i = f.filterData.slice(2), e.includes(i);
|
|
2100
2100
|
}
|
|
2101
2101
|
throw new e0({
|
|
2102
2102
|
...n,
|
|
@@ -2111,11 +2111,11 @@ const $ = class $ extends w0 {
|
|
|
2111
2111
|
fieldValue: e
|
|
2112
2112
|
});
|
|
2113
2113
|
if (d === 3) {
|
|
2114
|
-
const i =
|
|
2114
|
+
const i = R(f.filterData, "string");
|
|
2115
2115
|
return new RegExp(i).test(e);
|
|
2116
2116
|
}
|
|
2117
2117
|
default:
|
|
2118
|
-
throw new
|
|
2118
|
+
throw new A0({
|
|
2119
2119
|
...n,
|
|
2120
2120
|
criteria: f,
|
|
2121
2121
|
fieldValue: e
|
|
@@ -2136,13 +2136,13 @@ const $ = class $ extends w0 {
|
|
|
2136
2136
|
e
|
|
2137
2137
|
);
|
|
2138
2138
|
let i;
|
|
2139
|
-
if (
|
|
2140
|
-
let
|
|
2141
|
-
if (
|
|
2139
|
+
if (P0(n)) {
|
|
2140
|
+
let a = n.actionSteps.filter((s) => !!s);
|
|
2141
|
+
if (a.length === 0)
|
|
2142
|
+
throw new T0();
|
|
2143
|
+
if (a.length > 4)
|
|
2142
2144
|
throw new v0();
|
|
2143
|
-
|
|
2144
|
-
throw new E0();
|
|
2145
|
-
let r = Array.from({ length: 4 }, (a, c) => s.at(c) || s.at(-1));
|
|
2145
|
+
let r = Array.from({ length: 4 }, (s, c) => a.at(c) || a.at(-1));
|
|
2146
2146
|
i = {
|
|
2147
2147
|
actionClaimant: n.actionClaimant,
|
|
2148
2148
|
actionStepOne: r[0],
|
|
@@ -2154,8 +2154,8 @@ const $ = class $ extends w0 {
|
|
|
2154
2154
|
i = n;
|
|
2155
2155
|
return {
|
|
2156
2156
|
abi: Y,
|
|
2157
|
-
bytecode:
|
|
2158
|
-
args: [
|
|
2157
|
+
bytecode: I0,
|
|
2158
|
+
args: [U0(i)],
|
|
2159
2159
|
...this.optionallyAttachAccount(d.account)
|
|
2160
2160
|
};
|
|
2161
2161
|
}
|
|
@@ -2218,15 +2218,15 @@ const $ = class $ extends w0 {
|
|
|
2218
2218
|
if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber)
|
|
2219
2219
|
return [];
|
|
2220
2220
|
if (f.signature === D) {
|
|
2221
|
-
const { decodedLogs: r, event:
|
|
2221
|
+
const { decodedLogs: r, event: s } = await this.decodeTransferLogs(i);
|
|
2222
2222
|
return this.filterLogsByActionStepCriteria(
|
|
2223
2223
|
f,
|
|
2224
2224
|
r,
|
|
2225
|
-
|
|
2225
|
+
s
|
|
2226
2226
|
);
|
|
2227
2227
|
}
|
|
2228
|
-
const
|
|
2229
|
-
return this.filterLogsByActionStepCriteria(f,
|
|
2228
|
+
const a = i.logs.filter((r) => r.topics[0] === G(d)).map((r) => F(d, r));
|
|
2229
|
+
return this.filterLogsByActionStepCriteria(f, a, d);
|
|
2230
2230
|
}
|
|
2231
2231
|
/**
|
|
2232
2232
|
* Filters logs that meet the given action step criteria
|
|
@@ -2240,18 +2240,18 @@ const $ = class $ extends w0 {
|
|
|
2240
2240
|
filterLogsByActionStepCriteria(f, e, n) {
|
|
2241
2241
|
const d = f.actionParameter, i = [];
|
|
2242
2242
|
if (!e.length) return i;
|
|
2243
|
-
for (let
|
|
2244
|
-
if (E(
|
|
2243
|
+
for (let a of e)
|
|
2244
|
+
if (E(a.address, f.targetContract))
|
|
2245
2245
|
try {
|
|
2246
|
-
if (!Array.isArray(
|
|
2246
|
+
if (!Array.isArray(a.args))
|
|
2247
2247
|
continue;
|
|
2248
|
-
const { value: r, type:
|
|
2249
|
-
|
|
2248
|
+
const { value: r, type: s } = this.parseFieldFromAbi(
|
|
2249
|
+
a.args,
|
|
2250
2250
|
d.fieldIndex,
|
|
2251
2251
|
n.inputs || [],
|
|
2252
2252
|
d.fieldType
|
|
2253
|
-
), c = { ...d, fieldType:
|
|
2254
|
-
this.validateFieldAgainstCriteria(c, r, { log:
|
|
2253
|
+
), c = { ...d, fieldType: s };
|
|
2254
|
+
this.validateFieldAgainstCriteria(c, r, { log: a }) && i.push(a);
|
|
2255
2255
|
} catch {
|
|
2256
2256
|
}
|
|
2257
2257
|
return i;
|
|
@@ -2259,10 +2259,10 @@ const $ = class $ extends w0 {
|
|
|
2259
2259
|
};
|
|
2260
2260
|
$.bases = {
|
|
2261
2261
|
...j != null && j.VITE_EVENT_ACTION_BASE ? { 31337: void 0 } : {},
|
|
2262
|
-
...
|
|
2263
|
-
}, $.registryType =
|
|
2262
|
+
...x0
|
|
2263
|
+
}, $.registryType = E0.ACTION;
|
|
2264
2264
|
let d0 = $;
|
|
2265
|
-
function
|
|
2265
|
+
function F0(t) {
|
|
2266
2266
|
return t.type === "tuple" || t.type.startsWith("tuple[");
|
|
2267
2267
|
}
|
|
2268
2268
|
function r0(t, f, e) {
|
|
@@ -2274,23 +2274,23 @@ function r0(t, f, e) {
|
|
|
2274
2274
|
if (n >= e.length)
|
|
2275
2275
|
throw new I(void 0, n);
|
|
2276
2276
|
const d = e[n], i = t[n];
|
|
2277
|
-
if (!
|
|
2278
|
-
const
|
|
2279
|
-
return { value: i, type:
|
|
2277
|
+
if (!F0(d)) {
|
|
2278
|
+
const s = a0(d.type);
|
|
2279
|
+
return { value: i, type: s };
|
|
2280
2280
|
}
|
|
2281
2281
|
if (!Array.isArray(i))
|
|
2282
2282
|
throw new I(
|
|
2283
2283
|
"rawValue is not an array, but param.type is tuple"
|
|
2284
2284
|
);
|
|
2285
|
-
const
|
|
2286
|
-
if (!
|
|
2285
|
+
const a = f.slice(1);
|
|
2286
|
+
if (!a.length)
|
|
2287
2287
|
throw new I(void 0, -1);
|
|
2288
|
-
const r =
|
|
2288
|
+
const r = a[0] ?? d.components.length + 1;
|
|
2289
2289
|
if (r >= d.components.length)
|
|
2290
2290
|
throw new I(void 0, r);
|
|
2291
|
-
return r0(i,
|
|
2291
|
+
return r0(i, a, d.components);
|
|
2292
2292
|
}
|
|
2293
|
-
function
|
|
2293
|
+
function a0(t) {
|
|
2294
2294
|
const f = t.toLowerCase();
|
|
2295
2295
|
if (f.startsWith("uint"))
|
|
2296
2296
|
return 0;
|
|
@@ -2302,9 +2302,9 @@ function s0(t) {
|
|
|
2302
2302
|
return 2;
|
|
2303
2303
|
if (f === "string")
|
|
2304
2304
|
return 3;
|
|
2305
|
-
throw new
|
|
2305
|
+
throw new v(`Unrecognized ABI type: ${t}`);
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2307
|
+
function W0(t) {
|
|
2308
2308
|
const f = [], e = {};
|
|
2309
2309
|
for (let n of t) {
|
|
2310
2310
|
const d = JSON.stringify(n);
|
|
@@ -2312,7 +2312,7 @@ function O0(t) {
|
|
|
2312
2312
|
}
|
|
2313
2313
|
return f;
|
|
2314
2314
|
}
|
|
2315
|
-
function
|
|
2315
|
+
function s0(t) {
|
|
2316
2316
|
return {
|
|
2317
2317
|
...t,
|
|
2318
2318
|
chainid: BigInt(t.chainid)
|
|
@@ -2334,29 +2334,29 @@ function u0(t) {
|
|
|
2334
2334
|
return f.slice(0, 56) === "0".repeat(56) ? 1 : 0;
|
|
2335
2335
|
throw new Error("Invalid signature format");
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2338
|
-
return
|
|
2337
|
+
function O0(t) {
|
|
2338
|
+
return h0(K(t));
|
|
2339
2339
|
}
|
|
2340
2340
|
function P(t) {
|
|
2341
2341
|
return {
|
|
2342
|
-
...
|
|
2342
|
+
...s0(t),
|
|
2343
2343
|
signatureType: t.signatureType ?? u0(t.signature),
|
|
2344
2344
|
signature: K(t.signature),
|
|
2345
2345
|
actionType: t.actionType || 0,
|
|
2346
2346
|
actionParameter: t.actionParameter.fieldType === 0 ? {
|
|
2347
2347
|
...t.actionParameter,
|
|
2348
|
-
filterData:
|
|
2348
|
+
filterData: O0(t.actionParameter.filterData)
|
|
2349
2349
|
} : t.actionParameter
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
2352
|
-
function
|
|
2352
|
+
function U0({
|
|
2353
2353
|
actionClaimant: t,
|
|
2354
2354
|
actionStepOne: f,
|
|
2355
2355
|
actionStepTwo: e,
|
|
2356
2356
|
actionStepThree: n,
|
|
2357
2357
|
actionStepFour: d
|
|
2358
2358
|
}) {
|
|
2359
|
-
return
|
|
2359
|
+
return l0(
|
|
2360
2360
|
[
|
|
2361
2361
|
{
|
|
2362
2362
|
type: "tuple",
|
|
@@ -2463,7 +2463,7 @@ function M0({
|
|
|
2463
2463
|
[
|
|
2464
2464
|
{
|
|
2465
2465
|
actionClaimant: {
|
|
2466
|
-
...
|
|
2466
|
+
...s0(t),
|
|
2467
2467
|
signatureType: t.signatureType ?? u0(t.signature),
|
|
2468
2468
|
signature: K(t.signature)
|
|
2469
2469
|
},
|
|
@@ -2475,7 +2475,7 @@ function M0({
|
|
|
2475
2475
|
]
|
|
2476
2476
|
);
|
|
2477
2477
|
}
|
|
2478
|
-
function
|
|
2478
|
+
function J0() {
|
|
2479
2479
|
return {
|
|
2480
2480
|
filterType: 0,
|
|
2481
2481
|
fieldType: 2,
|
|
@@ -2483,17 +2483,17 @@ function q0() {
|
|
|
2483
2483
|
filterData: C
|
|
2484
2484
|
};
|
|
2485
2485
|
}
|
|
2486
|
-
function
|
|
2486
|
+
function ff(t) {
|
|
2487
2487
|
return {
|
|
2488
2488
|
signatureType: 0,
|
|
2489
2489
|
signature: C,
|
|
2490
2490
|
fieldIndex: B.TX_SENDER_CLAIMANT,
|
|
2491
|
-
targetContract:
|
|
2491
|
+
targetContract: g0,
|
|
2492
2492
|
chainid: t
|
|
2493
2493
|
};
|
|
2494
2494
|
}
|
|
2495
2495
|
const S = 63;
|
|
2496
|
-
function
|
|
2496
|
+
function ef(t) {
|
|
2497
2497
|
if (t.length > 5)
|
|
2498
2498
|
throw new O("Can only pack up to 5 indexes.");
|
|
2499
2499
|
let f = 0;
|
|
@@ -2505,7 +2505,7 @@ function ff(t) {
|
|
|
2505
2505
|
f |= (e & S) << n * 6;
|
|
2506
2506
|
}), t.length < 5 && (f |= S << t.length * 6), f;
|
|
2507
2507
|
}
|
|
2508
|
-
function
|
|
2508
|
+
function o0(t) {
|
|
2509
2509
|
const f = [];
|
|
2510
2510
|
for (let e = 0; e < 5; e++) {
|
|
2511
2511
|
const n = t >> e * 6 & S;
|
|
@@ -2520,34 +2520,34 @@ function F(t, f) {
|
|
|
2520
2520
|
data: f.data,
|
|
2521
2521
|
topics: f.topics
|
|
2522
2522
|
}), n = Array.isArray(e.args) ? e.args : Object.values(e.args);
|
|
2523
|
-
if (!t.inputs.some((
|
|
2523
|
+
if (!t.inputs.some((s) => s.indexed))
|
|
2524
2524
|
return {
|
|
2525
2525
|
...f,
|
|
2526
2526
|
...e
|
|
2527
2527
|
};
|
|
2528
2528
|
const d = [], i = [];
|
|
2529
|
-
for (let
|
|
2530
|
-
t.inputs[
|
|
2531
|
-
const
|
|
2529
|
+
for (let s = 0; s < t.inputs.length; s++)
|
|
2530
|
+
t.inputs[s].indexed ? d.push(s) : i.push(s);
|
|
2531
|
+
const a = Array.from({ length: t.inputs.length });
|
|
2532
2532
|
let r = 0;
|
|
2533
|
-
for (let
|
|
2534
|
-
|
|
2535
|
-
for (let
|
|
2536
|
-
|
|
2533
|
+
for (let s = 0; s < d.length; s++)
|
|
2534
|
+
a[d[s]] = n[r++];
|
|
2535
|
+
for (let s = 0; s < i.length; s++)
|
|
2536
|
+
a[i[s]] = n[r++];
|
|
2537
2537
|
return {
|
|
2538
2538
|
...f,
|
|
2539
2539
|
eventName: e.eventName,
|
|
2540
|
-
args:
|
|
2540
|
+
args: a
|
|
2541
2541
|
};
|
|
2542
2542
|
}
|
|
2543
|
-
function
|
|
2543
|
+
function M0([t, f]) {
|
|
2544
2544
|
if (t < 0 || t > 13 || f < 0 || f > 13)
|
|
2545
2545
|
throw new O(
|
|
2546
2546
|
`Tuple indices must be between 0-13, got: [${t}, ${f}]`
|
|
2547
2547
|
);
|
|
2548
2548
|
return 32 + (t << 4) + f;
|
|
2549
2549
|
}
|
|
2550
|
-
function
|
|
2550
|
+
function $0(t) {
|
|
2551
2551
|
if (t < 32 || t > 253)
|
|
2552
2552
|
throw new O(
|
|
2553
2553
|
`Field index must be between 32-253, got: ${t}`
|
|
@@ -2555,66 +2555,71 @@ function o0(t) {
|
|
|
2555
2555
|
const f = t - 32, e = f >> 4 & 15, n = f & 15;
|
|
2556
2556
|
return [e, n];
|
|
2557
2557
|
}
|
|
2558
|
-
function
|
|
2558
|
+
function V0(t) {
|
|
2559
2559
|
return t >= 32;
|
|
2560
2560
|
}
|
|
2561
2561
|
function G0(t) {
|
|
2562
|
-
return c0(t);
|
|
2563
|
-
}
|
|
2564
|
-
function ef(t) {
|
|
2565
2562
|
return V0(t);
|
|
2566
2563
|
}
|
|
2564
|
+
function tf(t) {
|
|
2565
|
+
return M0(t);
|
|
2566
|
+
}
|
|
2567
2567
|
function H0(t) {
|
|
2568
|
-
return
|
|
2568
|
+
return $0(t);
|
|
2569
2569
|
}
|
|
2570
|
-
function
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2570
|
+
function j0(t, f) {
|
|
2571
|
+
const e = o0(f);
|
|
2572
|
+
if (e.length === 0)
|
|
2573
|
+
throw new v(
|
|
2574
|
+
`Failed to unpack any indexes from fieldIndex ${f}`
|
|
2574
2575
|
);
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
)
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
if (typeof
|
|
2593
|
-
throw new
|
|
2594
|
-
`Expected bigint at
|
|
2576
|
+
let n = t;
|
|
2577
|
+
for (let d = 0; d < e.length; d++) {
|
|
2578
|
+
const i = e[d];
|
|
2579
|
+
if (i === void 0)
|
|
2580
|
+
throw new v(`Undefined index at level ${d}`);
|
|
2581
|
+
if (typeof n == "bigint")
|
|
2582
|
+
return n;
|
|
2583
|
+
if (!Array.isArray(n))
|
|
2584
|
+
throw new v(
|
|
2585
|
+
`Expected array at level ${d}, but got ${typeof n}`
|
|
2586
|
+
);
|
|
2587
|
+
if (i >= n.length)
|
|
2588
|
+
throw new v(
|
|
2589
|
+
`Index ${i} is out of bounds at level ${d}. Array length is ${n.length}`
|
|
2590
|
+
);
|
|
2591
|
+
n = n[i];
|
|
2592
|
+
}
|
|
2593
|
+
if (typeof n != "bigint")
|
|
2594
|
+
throw new v(
|
|
2595
|
+
`Expected bigint at final position, but got ${typeof n}`
|
|
2595
2596
|
);
|
|
2596
|
-
return
|
|
2597
|
+
return n;
|
|
2598
|
+
}
|
|
2599
|
+
function nf(t, f) {
|
|
2600
|
+
return j0(t, f);
|
|
2597
2601
|
}
|
|
2598
2602
|
export {
|
|
2599
2603
|
d0 as EventAction,
|
|
2600
2604
|
L0 as FilterType,
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
+
R0 as PrimitiveType,
|
|
2606
|
+
_0 as SignatureType,
|
|
2607
|
+
D0 as ValueType,
|
|
2608
|
+
J0 as anyActionParameter,
|
|
2605
2609
|
F as decodeAndReorderLogArgs,
|
|
2606
2610
|
u0 as detectSignatureType,
|
|
2607
|
-
|
|
2611
|
+
j0 as getScalarValue,
|
|
2612
|
+
nf as getScalarValueFromTuple,
|
|
2608
2613
|
G0 as isClaimantFieldIndexTuple,
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2614
|
+
V0 as isCriteriaFieldIndexTuple,
|
|
2615
|
+
P0 as isEventActionPayloadSimple,
|
|
2616
|
+
tf as packClaimantFieldIndexes,
|
|
2617
|
+
M0 as packCriteriaFieldIndexes,
|
|
2618
|
+
ef as packFieldIndexes,
|
|
2619
|
+
U0 as prepareEventActionPayload,
|
|
2620
|
+
ff as transactionSenderClaimant,
|
|
2616
2621
|
H0 as unpackClaimantFieldIndexes,
|
|
2617
|
-
|
|
2618
|
-
|
|
2622
|
+
$0 as unpackCriteriaFieldIndexes,
|
|
2623
|
+
o0 as unpackFieldIndexes
|
|
2619
2624
|
};
|
|
2620
2625
|
//# sourceMappingURL=EventAction.js.map
|