@boostxyz/sdk 1.1.0-alpha.24 → 2.0.0-alpha.25

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.
Files changed (133) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.js +7 -7
  3. package/dist/Actions/EventAction.cjs +1 -1
  4. package/dist/Actions/EventAction.cjs.map +1 -1
  5. package/dist/Actions/EventAction.d.ts +7 -7
  6. package/dist/Actions/EventAction.d.ts.map +1 -1
  7. package/dist/Actions/EventAction.js +153 -152
  8. package/dist/Actions/EventAction.js.map +1 -1
  9. package/dist/AllowLists/AllowList.cjs +1 -1
  10. package/dist/AllowLists/AllowList.js +10 -10
  11. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  12. package/dist/AllowLists/SimpleAllowList.js +10 -10
  13. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  14. package/dist/AllowLists/SimpleDenyList.js +3 -3
  15. package/dist/Auth/PassthroughAuth.cjs +1 -1
  16. package/dist/Auth/PassthroughAuth.js +1 -1
  17. package/dist/BoostCore.cjs +2 -1
  18. package/dist/BoostCore.cjs.map +1 -1
  19. package/dist/BoostCore.d.ts +564 -1
  20. package/dist/BoostCore.d.ts.map +1 -1
  21. package/dist/BoostCore.js +1322 -29
  22. package/dist/BoostCore.js.map +1 -1
  23. package/dist/BoostRegistry.cjs +1 -1
  24. package/dist/BoostRegistry.js +27 -27
  25. package/dist/Budgets/Budget.cjs +1 -1
  26. package/dist/Budgets/Budget.js +2 -2
  27. package/dist/Budgets/ManagedBudget.cjs +1 -1
  28. package/dist/Budgets/ManagedBudget.js +23 -23
  29. package/dist/Deployable/DeployableTarget.cjs +1 -1
  30. package/dist/Deployable/DeployableTarget.js +1 -1
  31. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  32. package/dist/Deployable/DeployableTargetWithRBAC.js +23 -23
  33. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  34. package/dist/Incentives/AllowListIncentive.js +8 -8
  35. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  36. package/dist/Incentives/CGDAIncentive.js +12 -12
  37. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  38. package/dist/Incentives/ERC20Incentive.js +16 -16
  39. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +2 -0
  40. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -0
  41. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts +42 -15
  42. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -1
  43. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +188 -0
  44. package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -0
  45. package/dist/Incentives/ERC20VariableIncentive.cjs +2 -0
  46. package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -0
  47. package/dist/Incentives/ERC20VariableIncentive.d.ts +7 -5
  48. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  49. package/dist/{Incentive-rM5nKznp.js → Incentives/ERC20VariableIncentive.js} +42 -67
  50. package/dist/Incentives/ERC20VariableIncentive.js.map +1 -0
  51. package/dist/Incentives/Incentive.cjs +1 -1
  52. package/dist/Incentives/Incentive.cjs.map +1 -1
  53. package/dist/Incentives/Incentive.d.ts +552 -3
  54. package/dist/Incentives/Incentive.d.ts.map +1 -1
  55. package/dist/Incentives/Incentive.js +40 -16
  56. package/dist/Incentives/Incentive.js.map +1 -1
  57. package/dist/Incentives/PointsIncentive.cjs +1 -1
  58. package/dist/Incentives/PointsIncentive.js +8 -8
  59. package/dist/{SimpleDenyList-DNj5qDWM.cjs → SimpleDenyList-BdlpZdDz.cjs} +2 -2
  60. package/dist/{SimpleDenyList-DNj5qDWM.cjs.map → SimpleDenyList-BdlpZdDz.cjs.map} +1 -1
  61. package/dist/{SimpleDenyList-BDXpY74P.js → SimpleDenyList-D0cyVUVv.js} +16 -16
  62. package/dist/{SimpleDenyList-BDXpY74P.js.map → SimpleDenyList-D0cyVUVv.js.map} +1 -1
  63. package/dist/Validators/LimitedSignerValidator.cjs +2 -0
  64. package/dist/Validators/LimitedSignerValidator.cjs.map +1 -0
  65. package/dist/Validators/LimitedSignerValidator.d.ts +806 -0
  66. package/dist/Validators/LimitedSignerValidator.d.ts.map +1 -0
  67. package/dist/Validators/LimitedSignerValidator.js +299 -0
  68. package/dist/Validators/LimitedSignerValidator.js.map +1 -0
  69. package/dist/Validators/SignerValidator.cjs +1 -1
  70. package/dist/Validators/SignerValidator.cjs.map +1 -1
  71. package/dist/Validators/SignerValidator.d.ts +2 -2
  72. package/dist/Validators/SignerValidator.js +5 -5
  73. package/dist/Validators/SignerValidator.js.map +1 -1
  74. package/dist/Validators/Validator.cjs +1 -1
  75. package/dist/Validators/Validator.cjs.map +1 -1
  76. package/dist/Validators/Validator.d.ts +22 -2
  77. package/dist/Validators/Validator.d.ts.map +1 -1
  78. package/dist/Validators/Validator.js +26 -17
  79. package/dist/Validators/Validator.js.map +1 -1
  80. package/dist/{componentInterfaces-BBCFkrZv.js → componentInterfaces-bIVo8eyA.js} +9 -9
  81. package/dist/componentInterfaces-bIVo8eyA.js.map +1 -0
  82. package/dist/{deployments-fJsWblwS.js → deployments-Ccx1MtoK.js} +5 -5
  83. package/dist/deployments-Ccx1MtoK.js.map +1 -0
  84. package/dist/{generated-CsNyWPKA.js → generated-BAKNSOjJ.js} +661 -381
  85. package/dist/generated-BAKNSOjJ.js.map +1 -0
  86. package/dist/generated-Cqn4wS01.cjs +3 -0
  87. package/dist/generated-Cqn4wS01.cjs.map +1 -0
  88. package/dist/index.cjs +1 -1
  89. package/dist/index.d.ts +1 -0
  90. package/dist/index.d.ts.map +1 -1
  91. package/dist/index.js +150 -138
  92. package/dist/index.js.map +1 -1
  93. package/dist/utils.cjs +1 -1
  94. package/dist/utils.cjs.map +1 -1
  95. package/dist/utils.d.ts +10 -0
  96. package/dist/utils.d.ts.map +1 -1
  97. package/dist/utils.js +27 -26
  98. package/dist/utils.js.map +1 -1
  99. package/package.json +21 -5
  100. package/src/Actions/EventAction.ts +29 -27
  101. package/src/BoostCore.test.ts +3 -3
  102. package/src/BoostCore.ts +51 -5
  103. package/src/Incentives/AllowListIncentive.test.ts +19 -21
  104. package/src/Incentives/CGDAIncentive.test.ts +20 -22
  105. package/src/Incentives/ERC1155Incentive.test.ts +14 -15
  106. package/src/Incentives/ERC20Incentive.test.ts +17 -19
  107. package/src/Incentives/ERC20VariableCriteriaIncentive.test.ts +62 -10
  108. package/src/Incentives/ERC20VariableCriteriaIncentive.ts +79 -37
  109. package/src/Incentives/ERC20VariableIncentive.test.ts +16 -18
  110. package/src/Incentives/ERC20VariableIncentive.ts +16 -8
  111. package/src/Incentives/Incentive.ts +4 -1
  112. package/src/Incentives/PointsIncentive.test.ts +3 -5
  113. package/src/Validators/LimitedSignerValidator.test.ts +223 -0
  114. package/src/Validators/LimitedSignerValidator.ts +707 -0
  115. package/src/Validators/SignerValidator.test.ts +21 -22
  116. package/src/Validators/SignerValidator.ts +2 -2
  117. package/src/Validators/Validator.test.ts +7 -1
  118. package/src/Validators/Validator.ts +30 -3
  119. package/src/index.test.ts +2 -0
  120. package/src/index.ts +1 -0
  121. package/src/utils.ts +11 -0
  122. package/dist/BoostCore-Btl5BdAs.cjs +0 -3
  123. package/dist/BoostCore-Btl5BdAs.cjs.map +0 -1
  124. package/dist/BoostCore-CD56zbYX.js +0 -2641
  125. package/dist/BoostCore-CD56zbYX.js.map +0 -1
  126. package/dist/Incentive-CcnOIc8L.cjs +0 -2
  127. package/dist/Incentive-CcnOIc8L.cjs.map +0 -1
  128. package/dist/Incentive-rM5nKznp.js.map +0 -1
  129. package/dist/componentInterfaces-BBCFkrZv.js.map +0 -1
  130. package/dist/deployments-fJsWblwS.js.map +0 -1
  131. package/dist/generated-CsNyWPKA.js.map +0 -1
  132. package/dist/generated-DHerxf1y.cjs +0 -3
  133. package/dist/generated-DHerxf1y.cjs.map +0 -1
@@ -1,115 +1,115 @@
1
- import { a$ as k, b0 as $, b1 as q, b2 as J, b3 as V } from "../generated-CsNyWPKA.js";
2
- import { getTransaction as B, getTransactionReceipt as Y } from "@wagmi/core";
3
- import { isAddressEqual as I, decodeEventLog as H, decodeFunctionData as G, isAddress as Z, fromHex as C, zeroHash as P, encodeAbiParameters as F, zeroAddress as f0 } from "viem";
4
- import { c as e0 } from "../deployments-fJsWblwS.js";
5
- import { DeployableTarget as t0 } from "../Deployable/DeployableTarget.js";
6
- import { ValidationAbiMissingError as x, FunctionDataDecodeError as j, UnparseableAbiParamError as b0, UnrecognizedFilterTypeError as n0, FieldValueNotComparableError as K, InvalidNumericalCriteriaError as O, DecodedArgsMalformedError as a0, FieldValueUndefinedError as W, NoEventActionStepsProvidedError as i0, TooManyEventActionStepsProvidedError as s0 } from "../errors.js";
7
- import { RegistryType as r0 } from "../utils.js";
8
- const c0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660058111156105305761052f6115d7565b5b6005811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600581111561076e5761076d6115d7565b5b60058111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600581111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600581111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600681106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60068110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea26469706673582212208eb365eda8d73b432dcac87772fa84d3bb11eb90f5c05dbe00a55fa3412254c364736f6c634300081a0033", y = Symbol.for("@ts-pattern/matcher"), d0 = Symbol.for("@ts-pattern/isVariadic"), R = "@ts-pattern/anonymous-select-key", L = (t) => !!(t && typeof t == "object"), N = (t) => t && !!t[y], g = (t, f, e) => {
9
- if (N(t)) {
10
- const b = t[y](), { matched: n, selections: a } = b.match(f);
1
+ import { bo as O, bp as $, bq as J, br as V, bs as Z } from "../generated-BAKNSOjJ.js";
2
+ import { getTransaction as N, getTransactionReceipt as k } from "@wagmi/core";
3
+ import { isAddressEqual as E, decodeEventLog as H, decodeFunctionData as Y, isAddress as F, fromHex as x, zeroHash as R, encodeAbiParameters as f0, zeroAddress as e0 } from "viem";
4
+ import { e as t0 } from "../deployments-Ccx1MtoK.js";
5
+ import { DeployableTarget as b0 } from "../Deployable/DeployableTarget.js";
6
+ import { ValidationAbiMissingError as _, FunctionDataDecodeError as j, UnparseableAbiParamError as n0, UnrecognizedFilterTypeError as a0, FieldValueNotComparableError as G, InvalidNumericalCriteriaError as K, DecodedArgsMalformedError as i0, FieldValueUndefinedError as W, NoEventActionStepsProvidedError as s0, TooManyEventActionStepsProvidedError as r0 } from "../errors.js";
7
+ import { RegistryType as d0, CheatCodes as v } from "../utils.js";
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
+ if (P(t)) {
10
+ const b = t[g](), { matched: n, selections: a } = b.match(f);
11
11
  return n && a && Object.keys(a).forEach((i) => e(i, a[i])), n;
12
12
  }
13
- if (L(t)) {
14
- if (!L(f)) return !1;
13
+ if (U(t)) {
14
+ if (!U(f)) return !1;
15
15
  if (Array.isArray(t)) {
16
16
  if (!Array.isArray(f)) return !1;
17
17
  let b = [], n = [], a = [];
18
18
  for (const i of t.keys()) {
19
19
  const r = t[i];
20
- N(r) && r[d0] ? a.push(r) : a.length ? n.push(r) : b.push(r);
20
+ P(r) && r[o0] ? a.push(r) : a.length ? n.push(r) : b.push(r);
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
25
  const i = f.slice(0, b.length), r = n.length === 0 ? [] : f.slice(-n.length), c = f.slice(b.length, n.length === 0 ? 1 / 0 : -n.length);
26
- return b.every((o, p) => g(o, i[p], e)) && n.every((o, p) => g(o, r[p], e)) && (a.length === 0 || g(a[0], c, e));
26
+ return b.every((o, I) => p(o, i[I], e)) && n.every((o, I) => p(o, r[I], e)) && (a.length === 0 || p(a[0], c, e));
27
27
  }
28
- return t.length === f.length && t.every((i, r) => g(i, f[r], e));
28
+ return t.length === f.length && t.every((i, r) => p(i, f[r], e));
29
29
  }
30
30
  return Reflect.ownKeys(t).every((b) => {
31
31
  const n = t[b];
32
- return (b in f || N(a = n) && a[y]().matcherType === "optional") && g(n, f[b], e);
32
+ return (b in f || P(a = n) && a[g]().matcherType === "optional") && p(n, f[b], e);
33
33
  var a;
34
34
  });
35
35
  }
36
36
  return Object.is(f, t);
37
37
  }, T = (t) => {
38
38
  var f, e, b;
39
- return L(t) ? N(t) ? (f = (e = (b = t[y]()).getSelectionKeys) == null ? void 0 : e.call(b)) != null ? f : [] : Array.isArray(t) ? S(t, T) : S(Object.values(t), T) : [];
40
- }, S = (t, f) => t.reduce((e, b) => e.concat(f(b)), []);
39
+ return U(t) ? P(t) ? (f = (e = (b = t[g]()).getSelectionKeys) == null ? void 0 : e.call(b)) != null ? f : [] : Array.isArray(t) ? C(t, T) : C(Object.values(t), T) : [];
40
+ }, C = (t, f) => t.reduce((e, b) => e.concat(f(b)), []);
41
41
  function u(t) {
42
- return Object.assign(t, { optional: () => o0(t), and: (f) => d(t, f), or: (f) => u0(t, f), select: (f) => f === void 0 ? z(t) : z(f, t) });
42
+ return Object.assign(t, { optional: () => u0(t), and: (f) => d(t, f), or: (f) => h0(t, f), select: (f) => f === void 0 ? X(t) : X(f, t) });
43
43
  }
44
- function o0(t) {
45
- return u({ [y]: () => ({ match: (f) => {
44
+ function u0(t) {
45
+ return u({ [g]: () => ({ match: (f) => {
46
46
  let e = {};
47
47
  const b = (n, a) => {
48
48
  e[n] = a;
49
49
  };
50
- return f === void 0 ? (T(t).forEach((n) => b(n, void 0)), { matched: !0, selections: e }) : { matched: g(t, f, b), selections: e };
50
+ return f === void 0 ? (T(t).forEach((n) => b(n, void 0)), { matched: !0, selections: e }) : { matched: p(t, f, b), selections: e };
51
51
  }, getSelectionKeys: () => T(t), matcherType: "optional" }) });
52
52
  }
53
53
  function d(...t) {
54
- return u({ [y]: () => ({ match: (f) => {
54
+ return u({ [g]: () => ({ match: (f) => {
55
55
  let e = {};
56
56
  const b = (n, a) => {
57
57
  e[n] = a;
58
58
  };
59
- return { matched: t.every((n) => g(n, f, b)), selections: e };
60
- }, getSelectionKeys: () => S(t, T), matcherType: "and" }) });
59
+ return { matched: t.every((n) => p(n, f, b)), selections: e };
60
+ }, getSelectionKeys: () => C(t, T), matcherType: "and" }) });
61
61
  }
62
- function u0(...t) {
63
- return u({ [y]: () => ({ match: (f) => {
62
+ function h0(...t) {
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 S(t, T).forEach((n) => b(n, void 0)), { matched: t.some((n) => g(n, f, b)), selections: e };
69
- }, getSelectionKeys: () => S(t, T), matcherType: "or" }) });
68
+ return C(t, T).forEach((n) => b(n, void 0)), { matched: t.some((n) => p(n, f, b)), selections: e };
69
+ }, getSelectionKeys: () => C(t, T), matcherType: "or" }) });
70
70
  }
71
71
  function s(t) {
72
- return { [y]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
72
+ return { [g]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
73
73
  }
74
- function z(...t) {
74
+ function X(...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
- return u({ [y]: () => ({ match: (b) => {
77
- let n = { [f ?? R]: b };
78
- return { matched: e === void 0 || g(e, b, (a, i) => {
76
+ return u({ [g]: () => ({ match: (b) => {
77
+ let n = { [f ?? D]: b };
78
+ return { matched: e === void 0 || p(e, b, (a, i) => {
79
79
  n[a] = i;
80
80
  }), selections: n };
81
- }, getSelectionKeys: () => [f ?? R].concat(e === void 0 ? [] : T(e)) }) });
81
+ }, getSelectionKeys: () => [f ?? D].concat(e === void 0 ? [] : T(e)) }) });
82
82
  }
83
- function l(t) {
83
+ function h(t) {
84
84
  return typeof t == "number";
85
85
  }
86
- function m(t) {
86
+ function y(t) {
87
87
  return typeof t == "string";
88
88
  }
89
- function A(t) {
89
+ function m(t) {
90
90
  return typeof t == "bigint";
91
91
  }
92
92
  u(s(function(t) {
93
93
  return !0;
94
94
  }));
95
- const w = (t) => Object.assign(u(t), { startsWith: (f) => {
96
- return w(d(t, (e = f, s((b) => m(b) && b.startsWith(e)))));
95
+ const A = (t) => Object.assign(u(t), { startsWith: (f) => {
96
+ return A(d(t, (e = f, s((b) => y(b) && b.startsWith(e)))));
97
97
  var e;
98
98
  }, endsWith: (f) => {
99
- return w(d(t, (e = f, s((b) => m(b) && b.endsWith(e)))));
99
+ return A(d(t, (e = f, s((b) => y(b) && b.endsWith(e)))));
100
100
  var e;
101
- }, minLength: (f) => w(d(t, ((e) => s((b) => m(b) && b.length >= e))(f))), length: (f) => w(d(t, ((e) => s((b) => m(b) && b.length === e))(f))), maxLength: (f) => w(d(t, ((e) => s((b) => m(b) && b.length <= e))(f))), includes: (f) => {
102
- return w(d(t, (e = f, s((b) => m(b) && b.includes(e)))));
101
+ }, minLength: (f) => A(d(t, ((e) => s((b) => y(b) && b.length >= e))(f))), length: (f) => A(d(t, ((e) => s((b) => y(b) && b.length === e))(f))), maxLength: (f) => A(d(t, ((e) => s((b) => y(b) && b.length <= e))(f))), includes: (f) => {
102
+ return A(d(t, (e = f, s((b) => y(b) && b.includes(e)))));
103
103
  var e;
104
104
  }, regex: (f) => {
105
- return w(d(t, (e = f, s((b) => m(b) && !!b.match(e)))));
105
+ return A(d(t, (e = f, s((b) => y(b) && !!b.match(e)))));
106
106
  var e;
107
107
  } });
108
+ A(s(y));
109
+ const l = (t) => Object.assign(u(t), { between: (f, e) => l(d(t, ((b, n) => s((a) => h(a) && b <= a && n >= a))(f, e))), lt: (f) => l(d(t, ((e) => s((b) => h(b) && b < e))(f))), gt: (f) => l(d(t, ((e) => s((b) => h(b) && b > e))(f))), lte: (f) => l(d(t, ((e) => s((b) => h(b) && b <= e))(f))), gte: (f) => l(d(t, ((e) => s((b) => h(b) && b >= e))(f))), int: () => l(d(t, s((f) => h(f) && Number.isInteger(f)))), finite: () => l(d(t, s((f) => h(f) && Number.isFinite(f)))), positive: () => l(d(t, s((f) => h(f) && f > 0))), negative: () => l(d(t, s((f) => h(f) && f < 0))) });
110
+ l(s(h));
111
+ const w = (t) => Object.assign(u(t), { between: (f, e) => w(d(t, ((b, n) => s((a) => m(a) && b <= a && n >= a))(f, e))), lt: (f) => w(d(t, ((e) => s((b) => m(b) && b < e))(f))), gt: (f) => w(d(t, ((e) => s((b) => m(b) && b > e))(f))), lte: (f) => w(d(t, ((e) => s((b) => m(b) && b <= e))(f))), gte: (f) => w(d(t, ((e) => s((b) => m(b) && b >= e))(f))), positive: () => w(d(t, s((f) => m(f) && f > 0))), negative: () => w(d(t, s((f) => m(f) && f < 0))) });
108
112
  w(s(m));
109
- const h = (t) => Object.assign(u(t), { between: (f, e) => h(d(t, ((b, n) => s((a) => l(a) && b <= a && n >= a))(f, e))), lt: (f) => h(d(t, ((e) => s((b) => l(b) && b < e))(f))), gt: (f) => h(d(t, ((e) => s((b) => l(b) && b > e))(f))), lte: (f) => h(d(t, ((e) => s((b) => l(b) && b <= e))(f))), gte: (f) => h(d(t, ((e) => s((b) => l(b) && b >= e))(f))), int: () => h(d(t, s((f) => l(f) && Number.isInteger(f)))), finite: () => h(d(t, s((f) => l(f) && Number.isFinite(f)))), positive: () => h(d(t, s((f) => l(f) && f > 0))), negative: () => h(d(t, s((f) => l(f) && f < 0))) });
110
- h(s(l));
111
- const v = (t) => Object.assign(u(t), { between: (f, e) => v(d(t, ((b, n) => s((a) => A(a) && b <= a && n >= a))(f, e))), lt: (f) => v(d(t, ((e) => s((b) => A(b) && b < e))(f))), gt: (f) => v(d(t, ((e) => s((b) => A(b) && b > e))(f))), lte: (f) => v(d(t, ((e) => s((b) => A(b) && b <= e))(f))), gte: (f) => v(d(t, ((e) => s((b) => A(b) && b >= e))(f))), positive: () => v(d(t, s((f) => A(f) && f > 0))), negative: () => v(d(t, s((f) => A(f) && f < 0))) });
112
- v(s(A));
113
113
  u(s(function(t) {
114
114
  return typeof t == "boolean";
115
115
  }));
@@ -133,11 +133,11 @@ class l0 extends Error {
133
133
  super(`Pattern matching error: no pattern matches value ${e}`), this.input = void 0, this.input = f;
134
134
  }
135
135
  }
136
- const U = { matched: !1, value: void 0 };
137
- function M(t) {
138
- return new D(t, U);
136
+ const M = { matched: !1, value: void 0 };
137
+ function z(t) {
138
+ return new B(t, M);
139
139
  }
140
- class D {
140
+ class B {
141
141
  constructor(f, e) {
142
142
  this.input = void 0, this.state = void 0, this.input = f, this.state = e;
143
143
  }
@@ -147,15 +147,15 @@ class D {
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 r = (o, p) => {
151
- a = !0, i[o] = p;
152
- }, c = !b.some((o) => g(o, this.input, r)) || n && !n(this.input) ? U : { matched: !0, value: e(a ? R in i ? i[R] : i : this.input, this.input) };
153
- return new D(this.input, c);
150
+ const r = (o, I) => {
151
+ a = !0, i[o] = I;
152
+ }, c = !b.some((o) => p(o, this.input, r)) || n && !n(this.input) ? M : { matched: !0, value: e(a ? D in i ? i[D] : i : this.input, this.input) };
153
+ return new B(this.input, c);
154
154
  }
155
155
  when(f, e) {
156
156
  if (this.state.matched) return this;
157
157
  const b = !!f(this.input);
158
- return new D(this.input, b ? { matched: !0, value: e(this.input, this.input) } : U);
158
+ return new B(this.input, b ? { matched: !0, value: e(this.input, this.input) } : M);
159
159
  }
160
160
  otherwise(f) {
161
161
  return this.state.matched ? this.state.value : f(this.input);
@@ -171,13 +171,13 @@ class D {
171
171
  return this;
172
172
  }
173
173
  }
174
- var h0 = /* @__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))(h0 || {}), g0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t))(g0 || {}), p0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(p0 || {});
175
- function y0(t) {
174
+ var p0 = /* @__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))(p0 || {}), g0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t))(g0 || {}), y0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(y0 || {});
175
+ function m0(t) {
176
176
  return Array.isArray(t.actionSteps);
177
177
  }
178
- const _ = class _ extends t0 {
178
+ const L = class L extends b0 {
179
179
  constructor() {
180
- super(...arguments), this.abi = k;
180
+ super(...arguments), this.abi = O;
181
181
  }
182
182
  /**
183
183
  * Gets a specific action event by index
@@ -206,7 +206,7 @@ const _ = class _ extends t0 {
206
206
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
207
207
  ...f
208
208
  });
209
- return m0(e.map(X));
209
+ return A0(e.map(q));
210
210
  }
211
211
  /**
212
212
  * Gets the count of action events
@@ -228,12 +228,12 @@ const _ = class _ extends t0 {
228
228
  * @returns {Promise<ActionClaimant>}
229
229
  */
230
230
  async getActionClaimant(f) {
231
- const e = await q(this._config, {
231
+ const e = await J(this._config, {
232
232
  address: this.assertValidAddress(),
233
233
  ...this.optionallyAttachAccount(),
234
234
  ...f
235
235
  });
236
- return X(e);
236
+ return q(e);
237
237
  }
238
238
  /**
239
239
  * Executes a prepared event action
@@ -257,19 +257,19 @@ const _ = class _ extends t0 {
257
257
  * @returns {Promise<{ hash: `0x${string}`; result: readonly [boolean, `0x${string}`]; }>}
258
258
  */
259
259
  async executeRaw(f, e) {
260
- const { request: b, result: n } = await J(this._config, {
260
+ const { request: b, result: n } = await V(this._config, {
261
261
  address: this.assertValidAddress(),
262
262
  ...this.optionallyAttachAccount(),
263
263
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
264
264
  ...e,
265
265
  args: [f]
266
266
  });
267
- return { hash: await V(this._config, b), result: n };
267
+ return { hash: await Z(this._config, b), result: n };
268
268
  }
269
269
  /**
270
270
  * Derives the action claimant address from a transaction based on the provided ActionClaimant configuration.
271
271
  * This method supports both event-based and function-based claimant derivation.
272
- * **Important**: The claimant is considered to be `transaction.from` when `claimant.fieldIndex` is 255.
272
+ * **Important**: The claimant is considered to be `transaction.from` when `claimant.fieldIndex` is 255 using CheatCodes enum.
273
273
  * This may have unintended side effects for bridged transactions and SCW transactions, so these are considered unsupported use cases for the time being.
274
274
  *
275
275
  ** @example
@@ -301,16 +301,18 @@ const _ = class _ extends t0 {
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 === 255) {
304
+ if (f.fieldIndex === v.TX_SENDER_CLAIMANT) {
305
305
  if ("hash" in e)
306
- return (await B(this._config, {
307
- hash: e.hash
306
+ return (await N(this._config, {
307
+ hash: e.hash,
308
+ chainId: e.chainId
308
309
  })).from;
309
310
  if ("logs" in e) {
310
311
  for (let n of e.logs)
311
312
  if (n.transactionHash)
312
- return (await B(this._config, {
313
- hash: n.transactionHash
313
+ return (await N(this._config, {
314
+ hash: n.transactionHash,
315
+ chainId: f.chainid
314
316
  })).from;
315
317
  }
316
318
  return;
@@ -319,11 +321,11 @@ const _ = class _ extends t0 {
319
321
  if (f.signatureType === 0) {
320
322
  let n;
321
323
  if (e.abiItem ? n = e.abiItem : n = e.knownSignatures[b], !n)
322
- throw new x(b);
324
+ throw new _(b);
323
325
  let a;
324
326
  if ("logs" in e) {
325
327
  for (let c of e.logs) {
326
- if (!I(c.address, f.targetContract)) continue;
328
+ if (!E(c.address, f.targetContract)) continue;
327
329
  let o = this.validateClaimantAgainstArgs(
328
330
  f,
329
331
  c
@@ -332,32 +334,33 @@ const _ = class _ extends t0 {
332
334
  }
333
335
  return a;
334
336
  }
335
- const r = (await Y(this._config, e)).logs.map((c) => {
336
- const { eventName: o, args: p } = H({
337
+ const r = (await k(this._config, e)).logs.map((c) => {
338
+ const { eventName: o, args: I } = H({
337
339
  abi: [n],
338
340
  data: c.data,
339
341
  topics: c.topics
340
342
  });
341
- return { ...c, eventName: o, args: p };
343
+ return { ...c, eventName: o, args: I };
342
344
  });
343
345
  for (let c of r) {
344
- if (!I(c.address, f.targetContract)) continue;
346
+ if (!E(c.address, f.targetContract)) continue;
345
347
  let o = this.validateClaimantAgainstArgs(f, c);
346
348
  o && (a = o);
347
349
  }
348
350
  return a;
349
351
  }
350
- if (f.signatureType === 1 && "hash" in e && "chainId" in e) {
351
- const n = await B(this._config, {
352
- hash: e.hash
352
+ if (f.signatureType === 1 && "hash" in e) {
353
+ const n = await N(this._config, {
354
+ hash: e.hash,
355
+ chainId: e.chainId
353
356
  });
354
- if (!I(n.to, f.targetContract)) return;
357
+ if (!E(n.to, f.targetContract)) return;
355
358
  let a;
356
359
  if (e.abiItem ? a = e.abiItem : a = e.knownSignatures[b], !a)
357
- throw new x(f.signature);
360
+ throw new _(f.signature);
358
361
  let i;
359
362
  try {
360
- i = G({
363
+ i = Y({
361
364
  abi: [a],
362
365
  data: n.input
363
366
  });
@@ -379,7 +382,7 @@ const _ = class _ extends t0 {
379
382
  if (!e || !Array.isArray(e == null ? void 0 : e.args) || (e == null ? void 0 : e.args.length) <= f.fieldIndex)
380
383
  return;
381
384
  const b = e.args.at(f.fieldIndex);
382
- if (Z(b)) return b;
385
+ if (F(b)) return b;
383
386
  }
384
387
  /**
385
388
  * Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
@@ -413,35 +416,33 @@ const _ = class _ extends t0 {
413
416
  const b = f.signature;
414
417
  let n;
415
418
  if (e.abiItem ? n = e.abiItem : n = e.knownSignatures[b], !n)
416
- throw new x(b);
419
+ throw new _(b);
417
420
  if (this.isArraylikeIndexed(f, n))
418
- throw new b0(
421
+ throw new n0(
419
422
  f.actionParameter.fieldIndex,
420
423
  n
421
424
  );
422
425
  if ("logs" in e)
423
426
  return this.isActionEventValid(f, e.logs);
424
- const r = (await this._config.getClient({
427
+ const i = (await k(this._config, {
428
+ hash: e.hash,
425
429
  chainId: e.chainId
426
- }).getTransactionReceipt({
427
- hash: e.hash
428
- })).logs.map((c) => {
429
- const { eventName: o, args: p } = H({
430
+ })).logs.map((r) => {
431
+ const { eventName: c, args: o } = H({
430
432
  abi: [n],
431
- data: c.data,
432
- topics: c.topics
433
+ data: r.data,
434
+ topics: r.topics
433
435
  });
434
- return { ...c, eventName: o, args: p };
436
+ return { ...r, eventName: c, args: o };
435
437
  });
436
- return this.isActionEventValid(f, r);
438
+ return this.isActionEventValid(f, i);
437
439
  }
438
440
  if (f.signatureType === 1 && "hash" in e && "chainId" in e) {
439
- const n = await this._config.getClient({
441
+ const b = await N(this._config, {
442
+ hash: e.hash,
440
443
  chainId: e.chainId
441
- }).getTransaction({
442
- hash: e.hash
443
444
  });
444
- return this.isActionFunctionValid(f, n, e);
445
+ return this.isActionFunctionValid(f, b, e);
445
446
  }
446
447
  return !1;
447
448
  }
@@ -480,10 +481,10 @@ const _ = class _ extends t0 {
480
481
  const n = f.actionParameter;
481
482
  let a = f.signature, i;
482
483
  if (b.abiItem ? i = b == null ? void 0 : b.abiItem : i = b.knownSignatures[a], !i)
483
- throw new x(a);
484
+ throw new _(a);
484
485
  let r;
485
486
  try {
486
- r = G({
487
+ r = Y({
487
488
  abi: [i],
488
489
  data: e.input
489
490
  });
@@ -507,35 +508,35 @@ const _ = class _ extends t0 {
507
508
  * @returns {Promise<boolean>} - Returns true if the field passes the criteria, false otherwise.
508
509
  */
509
510
  validateFieldAgainstCriteria(f, e, b) {
510
- if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex === 255)
511
+ if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex === v.ANY_ACTION_PARAM)
511
512
  return !0;
512
513
  switch (f.filterType) {
513
514
  case 0:
514
- return M(f.fieldType).with(
515
+ return z(f.fieldType).with(
515
516
  1,
516
- () => I(f.filterData, e)
517
+ () => E(f.filterData, e)
517
518
  ).with(
518
519
  0,
519
520
  () => BigInt(e) === BigInt(f.filterData)
520
521
  ).with(
521
522
  3,
522
- () => e === C(f.filterData, "string")
523
+ () => e === x(f.filterData, "string")
523
524
  ).otherwise(() => e === f.filterData);
524
525
  case 1:
525
- return M(f.fieldType).with(
526
+ return z(f.fieldType).with(
526
527
  1,
527
- () => !I(f.filterData, e)
528
+ () => !E(f.filterData, e)
528
529
  ).with(
529
530
  0,
530
531
  () => BigInt(e) !== BigInt(f.filterData)
531
532
  ).with(
532
533
  3,
533
- () => e !== C(f.filterData, "string")
534
+ () => e !== x(f.filterData, "string")
534
535
  ).otherwise(() => e !== f.filterData);
535
536
  case 2:
536
537
  if (f.fieldType === 0)
537
538
  return BigInt(e) > BigInt(f.filterData);
538
- throw new O({
539
+ throw new K({
539
540
  ...b,
540
541
  criteria: f,
541
542
  fieldValue: e
@@ -543,7 +544,7 @@ const _ = class _ extends t0 {
543
544
  case 3:
544
545
  if (f.fieldType === 0)
545
546
  return BigInt(e) < BigInt(f.filterData);
546
- throw new O({
547
+ throw new K({
547
548
  ...b,
548
549
  criteria: f,
549
550
  fieldValue: e
@@ -551,26 +552,26 @@ const _ = class _ extends t0 {
551
552
  case 4:
552
553
  if (f.fieldType === 2 || f.fieldType === 3) {
553
554
  let n;
554
- return f.fieldType === 3 ? n = C(f.filterData, "string") : n = f.filterData.slice(2), e.includes(n);
555
+ return f.fieldType === 3 ? n = x(f.filterData, "string") : n = f.filterData.slice(2), e.includes(n);
555
556
  }
556
- throw new K({
557
+ throw new G({
557
558
  ...b,
558
559
  criteria: f,
559
560
  fieldValue: e
560
561
  });
561
562
  case 5:
562
563
  if (typeof e != "string")
563
- throw new K({
564
+ throw new G({
564
565
  ...b,
565
566
  criteria: f,
566
567
  fieldValue: e
567
568
  });
568
569
  if (f.fieldType === 3) {
569
- const n = C(f.filterData, "string");
570
+ const n = x(f.filterData, "string");
570
571
  return new RegExp(n).test(e);
571
572
  }
572
573
  default:
573
- throw new n0({
574
+ throw new a0({
574
575
  ...b,
575
576
  criteria: f,
576
577
  fieldValue: e
@@ -579,34 +580,34 @@ const _ = class _ extends t0 {
579
580
  }
580
581
  /**
581
582
  * Validates a {@link Log} against a given criteria.
582
- * If the criteria's fieldIndex is 255, it is reserved for anyValidation
583
+ * If the criteria's fieldIndex is 255 (using CheatCodes enum), it is reserved for anyValidation
583
584
  *
584
585
  * @param {Criteria} criteria - The criteria to validate against.
585
586
  * @param {Log} log - The Viem event log.
586
587
  * @returns {boolean} - Returns true if the log passes the criteria, false otherwise.
587
588
  */
588
589
  validateLogAgainstCriteria(f, e) {
589
- if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex && f.fieldIndex !== 255)
590
- throw new a0({
590
+ if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex && f.fieldIndex !== v.ANY_ACTION_PARAM)
591
+ throw new i0({
591
592
  log: e,
592
593
  criteria: f,
593
594
  fieldValue: void 0
594
595
  });
595
- const b = f.fieldIndex === 255 ? P : e.args.at(f.fieldIndex);
596
+ const b = f.fieldIndex === v.ANY_ACTION_PARAM ? R : e.args.at(f.fieldIndex);
596
597
  if (b === void 0)
597
598
  throw new W({ log: e, criteria: f, fieldValue: b });
598
599
  return this.validateFieldAgainstCriteria(f, b, { log: e });
599
600
  }
600
601
  /**
601
602
  * Validates a function's decoded arguments against a given criteria.
602
- * If the criteria's fieldIndex is 255, it is reserved for anyValidation
603
+ * If the criteria's fieldIndex is 255 (using CheatCodes enum), it is reserved for anyValidation
603
604
  *
604
605
  * @param {Criteria} criteria - The criteria to validate against.
605
606
  * @param {unknown[]} decodedArgs - The decoded arguments of the function call.
606
607
  * @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
607
608
  */
608
609
  validateFunctionAgainstCriteria(f, e) {
609
- const b = f.fieldIndex === 255 ? P : e[f.fieldIndex];
610
+ const b = f.fieldIndex === v.ANY_ACTION_PARAM ? R : e[f.fieldIndex];
610
611
  if (b === void 0)
611
612
  throw new W({
612
613
  criteria: f,
@@ -630,12 +631,12 @@ const _ = class _ extends t0 {
630
631
  e
631
632
  );
632
633
  let a;
633
- if (y0(b)) {
634
+ if (m0(b)) {
634
635
  let i = b.actionSteps.filter((c) => !!c);
635
636
  if (i.length === 0)
636
- throw new i0();
637
- if (i.length > 4)
638
637
  throw new s0();
638
+ if (i.length > 4)
639
+ throw new r0();
639
640
  let r = Array.from({ length: 4 }, (c, o) => i.at(o) || i.at(-1));
640
641
  a = {
641
642
  actionClaimant: b.actionClaimant,
@@ -647,9 +648,9 @@ const _ = class _ extends t0 {
647
648
  } else
648
649
  a = b;
649
650
  return {
650
- abi: k,
651
+ abi: O,
651
652
  bytecode: c0,
652
- args: [A0(a)],
653
+ args: [w0(a)],
653
654
  ...this.optionallyAttachAccount(n.account)
654
655
  };
655
656
  }
@@ -658,12 +659,12 @@ const _ = class _ extends t0 {
658
659
  return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((b = e.inputs[f.actionParameter.fieldIndex]) != null && b.indexed));
659
660
  }
660
661
  };
661
- _.bases = {
662
+ L.bases = {
662
663
  31337: void 0,
663
- ...e0
664
- }, _.registryType = r0.ACTION;
665
- let Q = _;
666
- function m0(t) {
664
+ ...t0
665
+ }, L.registryType = d0.ACTION;
666
+ let Q = L;
667
+ function A0(t) {
667
668
  const f = [], e = {};
668
669
  for (let b of t) {
669
670
  const n = JSON.stringify(b);
@@ -671,13 +672,13 @@ function m0(t) {
671
672
  }
672
673
  return f;
673
674
  }
674
- function E(t) {
675
+ function S(t) {
675
676
  return {
676
677
  ...t,
677
678
  chainid: BigInt(t.chainid)
678
679
  };
679
680
  }
680
- function X(t) {
681
+ function q(t) {
681
682
  if (t.chainid > BigInt(Number.MAX_SAFE_INTEGER))
682
683
  throw new Error("Chain ID exceeds max safe integer");
683
684
  return {
@@ -685,14 +686,14 @@ function X(t) {
685
686
  chainid: Number(t.chainid)
686
687
  };
687
688
  }
688
- function A0({
689
+ function w0({
689
690
  actionClaimant: t,
690
691
  actionStepOne: f,
691
692
  actionStepTwo: e,
692
693
  actionStepThree: b,
693
694
  actionStepFour: n
694
695
  }) {
695
- return F(
696
+ return f0(
696
697
  [
697
698
  {
698
699
  type: "tuple",
@@ -798,21 +799,21 @@ function A0({
798
799
  ],
799
800
  [
800
801
  {
801
- actionClaimant: E(t),
802
+ actionClaimant: S(t),
802
803
  actionStepOne: {
803
- ...E(f),
804
+ ...S(f),
804
805
  actionType: f.actionType || 0
805
806
  },
806
807
  actionStepTwo: {
807
- ...E(e),
808
+ ...S(e),
808
809
  actionType: e.actionType || 0
809
810
  },
810
811
  actionStepThree: {
811
- ...E(b),
812
+ ...S(b),
812
813
  actionType: b.actionType || 0
813
814
  },
814
815
  actionStepFour: {
815
- ...E(n),
816
+ ...S(n),
816
817
  actionType: n.actionType || 0
817
818
  }
818
819
  }
@@ -823,27 +824,27 @@ function x0() {
823
824
  return {
824
825
  filterType: 0,
825
826
  fieldType: 2,
826
- fieldIndex: 255,
827
- filterData: P
827
+ fieldIndex: v.ANY_ACTION_PARAM,
828
+ filterData: R
828
829
  };
829
830
  }
830
- function N0() {
831
+ function _0() {
831
832
  return {
832
833
  signatureType: 0,
833
- signature: P,
834
- fieldIndex: 255,
835
- targetContract: f0,
834
+ signature: R,
835
+ fieldIndex: v.TX_SENDER_CLAIMANT,
836
+ targetContract: e0,
836
837
  chainid: 0
837
838
  };
838
839
  }
839
840
  export {
840
841
  Q as EventAction,
841
- h0 as FilterType,
842
+ p0 as FilterType,
842
843
  g0 as PrimitiveType,
843
- p0 as SignatureType,
844
+ y0 as SignatureType,
844
845
  x0 as anyActionParameter,
845
- y0 as isEventActionPayloadSimple,
846
- A0 as prepareEventActionPayload,
847
- N0 as transactionSenderClaimant
846
+ m0 as isEventActionPayloadSimple,
847
+ w0 as prepareEventActionPayload,
848
+ _0 as transactionSenderClaimant
848
849
  };
849
850
  //# sourceMappingURL=EventAction.js.map