@boostxyz/sdk 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.js +5 -5
  3. package/dist/Actions/EventAction.cjs +1 -1
  4. package/dist/Actions/EventAction.cjs.map +1 -1
  5. package/dist/Actions/EventAction.d.ts +18 -0
  6. package/dist/Actions/EventAction.d.ts.map +1 -1
  7. package/dist/Actions/EventAction.js +201 -132
  8. package/dist/Actions/EventAction.js.map +1 -1
  9. package/dist/AllowLists/AllowList.cjs +1 -1
  10. package/dist/AllowLists/AllowList.js +3 -3
  11. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  12. package/dist/AllowLists/SimpleAllowList.js +8 -8
  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 -2
  18. package/dist/BoostCore.cjs.map +1 -1
  19. package/dist/BoostCore.d.ts +14 -0
  20. package/dist/BoostCore.d.ts.map +1 -1
  21. package/dist/BoostCore.js +94 -75
  22. package/dist/BoostCore.js.map +1 -1
  23. package/dist/BoostRegistry.cjs +1 -1
  24. package/dist/BoostRegistry.js +6 -6
  25. package/dist/{Budget-fHCvlPfB.js → Budget-CTxrE06r.js} +53 -53
  26. package/dist/{Budget-fHCvlPfB.js.map → Budget-CTxrE06r.js.map} +1 -1
  27. package/dist/{Budget-Cnyh81n5.cjs → Budget-Cui2BUr4.cjs} +2 -2
  28. package/dist/{Budget-Cnyh81n5.cjs.map → Budget-Cui2BUr4.cjs.map} +1 -1
  29. package/dist/Budgets/Budget.cjs +1 -1
  30. package/dist/Budgets/Budget.js +3 -3
  31. package/dist/Budgets/ManagedBudget.cjs +1 -1
  32. package/dist/Budgets/ManagedBudget.js +29 -29
  33. package/dist/Deployable/DeployableTarget.cjs +1 -1
  34. package/dist/Deployable/DeployableTarget.js +1 -1
  35. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  36. package/dist/Deployable/DeployableTargetWithRBAC.js +15 -15
  37. package/dist/Incentive-AWwdbmix.cjs +2 -0
  38. package/dist/Incentive-AWwdbmix.cjs.map +1 -0
  39. package/dist/Incentive-CsFJZxYl.js +901 -0
  40. package/dist/Incentive-CsFJZxYl.js.map +1 -0
  41. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  42. package/dist/Incentives/AllowListIncentive.js +11 -11
  43. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  44. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  45. package/dist/Incentives/CGDAIncentive.d.ts +1 -1
  46. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
  47. package/dist/Incentives/CGDAIncentive.js +24 -22
  48. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  49. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  50. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  51. package/dist/Incentives/ERC20Incentive.js +19 -19
  52. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  53. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts +1035 -0
  54. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts.map +1 -0
  55. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
  56. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
  57. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +19 -19
  58. package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
  59. package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
  60. package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -1
  61. package/dist/Incentives/ERC20VariableIncentive.d.ts +1 -1
  62. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  63. package/dist/Incentives/ERC20VariableIncentive.js +25 -23
  64. package/dist/Incentives/ERC20VariableIncentive.js.map +1 -1
  65. package/dist/Incentives/Incentive.cjs +1 -1
  66. package/dist/Incentives/Incentive.d.ts +6 -5
  67. package/dist/Incentives/Incentive.d.ts.map +1 -1
  68. package/dist/Incentives/Incentive.js +17 -16
  69. package/dist/Incentives/PointsIncentive.cjs +1 -1
  70. package/dist/Incentives/PointsIncentive.js +8 -8
  71. package/dist/{SimpleDenyList-CgQvS1ek.cjs → SimpleDenyList-DQT0Fj3v.cjs} +2 -2
  72. package/dist/{SimpleDenyList-CgQvS1ek.cjs.map → SimpleDenyList-DQT0Fj3v.cjs.map} +1 -1
  73. package/dist/{SimpleDenyList-GZlSeh2G.js → SimpleDenyList-kcqV-01w.js} +12 -12
  74. package/dist/{SimpleDenyList-GZlSeh2G.js.map → SimpleDenyList-kcqV-01w.js.map} +1 -1
  75. package/dist/Validators/LimitedSignerValidator.cjs +1 -1
  76. package/dist/Validators/LimitedSignerValidator.js +18 -18
  77. package/dist/Validators/SignerValidator.cjs +1 -1
  78. package/dist/Validators/SignerValidator.js +16 -16
  79. package/dist/Validators/Validator.cjs +1 -1
  80. package/dist/Validators/Validator.js +4 -4
  81. package/dist/componentInterfaces-D7r9xJmt.cjs +2 -0
  82. package/dist/componentInterfaces-D7r9xJmt.cjs.map +1 -0
  83. package/dist/componentInterfaces-PR3ijhgZ.js +18 -0
  84. package/dist/componentInterfaces-PR3ijhgZ.js.map +1 -0
  85. package/dist/{deployments-CMdsItcq.cjs → deployments-BNFI9vnc.cjs} +2 -2
  86. package/dist/deployments-BNFI9vnc.cjs.map +1 -0
  87. package/dist/{deployments-DzhmI-zL.js → deployments-D68FgefY.js} +31 -31
  88. package/dist/deployments-D68FgefY.js.map +1 -0
  89. package/dist/deployments.json +20 -15
  90. package/dist/generated-CRD9XfOT.cjs +3 -0
  91. package/dist/generated-CRD9XfOT.cjs.map +1 -0
  92. package/dist/{generated-Hbd0NIf9.js → generated-ClbO_ULI.js} +1274 -709
  93. package/dist/generated-ClbO_ULI.js.map +1 -0
  94. package/dist/index.cjs +1 -1
  95. package/dist/index.d.ts +1 -0
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +133 -129
  98. package/dist/utils.cjs +1 -1
  99. package/dist/utils.cjs.map +1 -1
  100. package/dist/utils.d.ts +7 -1
  101. package/dist/utils.d.ts.map +1 -1
  102. package/dist/utils.js +1121 -41
  103. package/dist/utils.js.map +1 -1
  104. package/package.json +1 -1
  105. package/src/Actions/EventAction.ts +85 -1
  106. package/src/BoostCore.ts +27 -0
  107. package/src/Incentives/CGDAIncentive.ts +3 -1
  108. package/src/Incentives/ERC20PeggedVariableCriteriaIncentive.test.ts +315 -0
  109. package/src/Incentives/ERC20PeggedVariableCriteriaIncentive.ts +728 -0
  110. package/src/Incentives/ERC20VariableIncentive.ts +3 -1
  111. package/src/Incentives/Incentive.ts +8 -2
  112. package/src/index.ts +1 -0
  113. package/src/utils.ts +10 -0
  114. package/dist/Incentive-M45PaQsT.js +0 -397
  115. package/dist/Incentive-M45PaQsT.js.map +0 -1
  116. package/dist/Incentive-axLU7ndr.cjs +0 -2
  117. package/dist/Incentive-axLU7ndr.cjs.map +0 -1
  118. package/dist/componentInterfaces-Bt-4sNB5.cjs +0 -2
  119. package/dist/componentInterfaces-Bt-4sNB5.cjs.map +0 -1
  120. package/dist/componentInterfaces-C4uAYjSo.js +0 -16
  121. package/dist/componentInterfaces-C4uAYjSo.js.map +0 -1
  122. package/dist/deployments-CMdsItcq.cjs.map +0 -1
  123. package/dist/deployments-DzhmI-zL.js.map +0 -1
  124. package/dist/generated-CNkDfjzI.cjs +0 -3
  125. package/dist/generated-CNkDfjzI.cjs.map +0 -1
  126. package/dist/generated-Hbd0NIf9.js.map +0 -1
@@ -1,47 +1,47 @@
1
- import { b_ as O, b$ as J, c0 as Z, c1 as V, c2 as F } from "../generated-Hbd0NIf9.js";
2
- import { getTransaction as C, getTransactionReceipt as H } from "@wagmi/core";
3
- import { isAddressEqual as I, toEventSelector as G, decodeEventLog as Q, decodeFunctionData as Y, isAddress as f0, fromHex as B, zeroHash as P, encodeAbiParameters as e0, zeroAddress as t0 } from "viem";
4
- import { f as b0 } from "../deployments-DzhmI-zL.js";
5
- import { DeployableTarget as n0 } from "../Deployable/DeployableTarget.js";
6
- import { ValidationAbiMissingError as _, FunctionDataDecodeError as j, UnparseableAbiParamError as a0, UnrecognizedFilterTypeError as i0, FieldValueNotComparableError as K, InvalidNumericalCriteriaError as x, DecodedArgsMalformedError as r0, FieldValueUndefinedError as W, NoEventActionStepsProvidedError as o0, TooManyEventActionStepsProvidedError as s0 } from "../errors.js";
7
- import { RegistryType as c0, CheatCodes as N } from "../utils.js";
8
- const d0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6080516123db6100c85f395f61034a01526123db5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611385565b610273565b6040516100c791906113ca565b60405180910390f35b6100ea60048036038101906100e59190611444565b6102ec565b6040516100f89291906114ff565b60405180910390f35b34801561010c575f80fd5b50610115610321565b604051610122919061153c565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c91906115cf565b60405180910390f35b348015610160575f80fd5b5061017b60048036038101906101769190611444565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e919061193b565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611985565b610648565b6040516101da9190611a36565b60405180910390f35b3480156101ee575f80fd5b5061020960048036038101906102049190611444565b610875565b6040516102169190611a56565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611adc565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611b04565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190612002565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a57610469611629565b5b600181111561047c5761047b611629565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660078111156105305761052f611629565b5b600781111561054257610541611629565b5b81526020015f820160019054906101000a900460ff16600381111561056a57610569611629565b5b600381111561057c5761057b611629565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612076565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612076565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b610650611216565b60048281548110610664576106636120a6565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a7611629565b5b60018111156106ba576106b9611629565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600781111561076e5761076d611629565b5b60078111156107805761077f611629565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a7611629565b5b60038111156107ba576107b9611629565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612076565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612076565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b161127b565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df611629565b5b60018111156108f2576108f1611629565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe82611110565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611189565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a63611629565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b45611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610bee57610bed611629565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612267565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610d6357610d62611629565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d91611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612267565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610ed857610ed7611629565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f06611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612267565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa4611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600781111561104d5761104c611629565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612267565b50505050507ff2cd382b92e0609edafee04c969decf0c2d04013cd112d0f0818268b11e84c69815f01518260200151836040015184606001518560800151604051611105959493929190612336565b60405180910390a150565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806111825750611181826111ad565b5b9050919050565b5f611192610a06565b905080546001166111aa5763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f600181111561123d5761123c611629565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020016112756112d3565b81525090565b6040518060a001604052805f600181111561129957611298611629565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f60078111156112f1576112f0611629565b5b81526020015f600381111561130957611308611629565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61136481611330565b811461136e575f80fd5b50565b5f8135905061137f8161135b565b92915050565b5f6020828403121561139a57611399611328565b5b5f6113a784828501611371565b91505092915050565b5f8115159050919050565b6113c4816113b0565b82525050565b5f6020820190506113dd5f8301846113bb565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112611404576114036113e3565b5b8235905067ffffffffffffffff811115611421576114206113e7565b5b60208301915083600182028301111561143d5761143c6113eb565b5b9250929050565b5f806020838503121561145a57611459611328565b5b5f83013567ffffffffffffffff8111156114775761147661132c565b5b611483858286016113ef565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6114d18261148f565b6114db8185611499565b93506114eb8185602086016114a9565b6114f4816114b7565b840191505092915050565b5f6040820190506115125f8301856113bb565b818103602083015261152481846114c7565b90509392505050565b61153681611330565b82525050565b5f60208201905061154f5f83018461152d565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61159761159261158d84611555565b611574565b611555565b9050919050565b5f6115a88261157d565b9050919050565b5f6115b98261159e565b9050919050565b6115c9816115af565b82525050565b5f6020820190506115e25f8301846115c0565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b61162381611611565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6002811061166757611666611629565b5b50565b5f81905061167782611656565b919050565b5f6116868261166a565b9050919050565b6116968161167c565b82525050565b5f60ff82169050919050565b6116b18161169c565b82525050565b5f6116c182611555565b9050919050565b6116d1816116b7565b82525050565b5f819050919050565b6116e9816116d7565b82525050565b60088110611700576116ff611629565b5b50565b5f819050611710826116ef565b919050565b5f61171f82611703565b9050919050565b61172f81611715565b82525050565b6004811061174657611745611629565b5b50565b5f81905061175682611735565b919050565b5f61176582611749565b9050919050565b6117758161175b565b82525050565b5f82825260208201905092915050565b5f6117958261148f565b61179f818561177b565b93506117af8185602086016114a9565b6117b8816114b7565b840191505092915050565b5f608083015f8301516117d85f860182611726565b5060208301516117eb602086018261176c565b5060408301516117fe60408601826116a8565b5060608301518482036060860152611816828261178b565b9150508091505092915050565b5f60c083015f8301516118385f86018261161a565b50602083015161184b602086018261168d565b50604083015161185e60408601826116a8565b50606083015161187160608601826116c8565b50608083015161188460808601826116e0565b5060a083015184820360a086015261189c82826117c3565b9150508091505092915050565b5f6118b48383611823565b905092915050565b5f602082019050919050565b5f6118d2826115e8565b6118dc81856115f2565b9350836020820285016118ee85611602565b805f5b85811015611929578484038952815161190a85826118a9565b9450611915836118bc565b925060208a019950506001810190506118f1565b50829750879550505050505092915050565b5f6020820190508181035f83015261195381846118c8565b905092915050565b611964816116d7565b811461196e575f80fd5b50565b5f8135905061197f8161195b565b92915050565b5f6020828403121561199a57611999611328565b5b5f6119a784828501611971565b91505092915050565b5f60c083015f8301516119c55f86018261161a565b5060208301516119d8602086018261168d565b5060408301516119eb60408601826116a8565b5060608301516119fe60608601826116c8565b506080830151611a1160808601826116e0565b5060a083015184820360a0860152611a2982826117c3565b9150508091505092915050565b5f6020820190508181035f830152611a4e81846119b0565b905092915050565b5f6020820190508181035f830152611a6e81846114c7565b905092915050565b60a082015f820151611a8a5f85018261168d565b506020820151611a9d602085018261161a565b506040820151611ab060408501826116a8565b506060820151611ac360608501826116c8565b506080820151611ad660808501826116e0565b50505050565b5f60a082019050611aef5f830184611a76565b92915050565b611afe816116d7565b82525050565b5f602082019050611b175f830184611af5565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b57826114b7565b810181811067ffffffffffffffff82111715611b7657611b75611b21565b5b80604052505050565b5f611b8861131f565b9050611b948282611b4e565b919050565b5f80fd5b60028110611ba9575f80fd5b50565b5f81359050611bba81611b9d565b92915050565b611bc981611611565b8114611bd3575f80fd5b50565b5f81359050611be481611bc0565b92915050565b611bf38161169c565b8114611bfd575f80fd5b50565b5f81359050611c0e81611bea565b92915050565b611c1d816116b7565b8114611c27575f80fd5b50565b5f81359050611c3881611c14565b92915050565b5f60a08284031215611c5357611c52611b1d565b5b611c5d60a0611b7f565b90505f611c6c84828501611bac565b5f830152506020611c7f84828501611bd6565b6020830152506040611c9384828501611c00565b6040830152506060611ca784828501611c2a565b6060830152506080611cbb84828501611971565b60808301525092915050565b60088110611cd3575f80fd5b50565b5f81359050611ce481611cc7565b92915050565b60048110611cf6575f80fd5b50565b5f81359050611d0781611cea565b92915050565b5f80fd5b5f67ffffffffffffffff821115611d2b57611d2a611b21565b5b611d34826114b7565b9050602081019050919050565b828183375f83830152505050565b5f611d61611d5c84611d11565b611b7f565b905082815260208101848484011115611d7d57611d7c611d0d565b5b611d88848285611d41565b509392505050565b5f82601f830112611da457611da36113e3565b5b8135611db4848260208601611d4f565b91505092915050565b5f60808284031215611dd257611dd1611b1d565b5b611ddc6080611b7f565b90505f611deb84828501611cd6565b5f830152506020611dfe84828501611cf9565b6020830152506040611e1284828501611c00565b604083015250606082013567ffffffffffffffff811115611e3657611e35611b99565b5b611e4284828501611d90565b60608301525092915050565b5f60c08284031215611e6357611e62611b1d565b5b611e6d60c0611b7f565b90505f611e7c84828501611bd6565b5f830152506020611e8f84828501611bac565b6020830152506040611ea384828501611c00565b6040830152506060611eb784828501611c2a565b6060830152506080611ecb84828501611971565b60808301525060a082013567ffffffffffffffff811115611eef57611eee611b99565b5b611efb84828501611dbd565b60a08301525092915050565b5f6101208284031215611f1d57611f1c611b1d565b5b611f2760a0611b7f565b90505f611f3684828501611c3e565b5f8301525060a082013567ffffffffffffffff811115611f5957611f58611b99565b5b611f6584828501611e4e565b60208301525060c082013567ffffffffffffffff811115611f8957611f88611b99565b5b611f9584828501611e4e565b60408301525060e082013567ffffffffffffffff811115611fb957611fb8611b99565b5b611fc584828501611e4e565b60608301525061010082013567ffffffffffffffff811115611fea57611fe9611b99565b5b611ff684828501611e4e565b60808301525092915050565b5f6020828403121561201757612016611328565b5b5f82013567ffffffffffffffff8111156120345761203361132c565b5b61204084828501611f07565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061208d57607f821691505b6020821081036120a05761209f612049565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261212f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120f4565b61213986836120f4565b95508019841693508086168417925050509392505050565b5f61216b612166612161846116d7565b611574565b6116d7565b9050919050565b5f819050919050565b61218483612151565b61219861219082612172565b848454612100565b825550505050565b5f90565b6121ac6121a0565b6121b781848461217b565b505050565b5b818110156121da576121cf5f826121a4565b6001810190506121bd565b5050565b601f82111561221f576121f0816120d3565b6121f9846120e5565b81016020851015612208578190505b61221c612214856120e5565b8301826121bc565b50505b505050565b5f82821c905092915050565b5f61223f5f1984600802612224565b1980831691505092915050565b5f6122578383612230565b9150826002028217905092915050565b6122708261148f565b67ffffffffffffffff81111561228957612288611b21565b5b6122938254612076565b61229e8282856121de565b5f60209050601f8311600181146122cf575f84156122bd578287015190505b6122c7858261224c565b86555061232e565b601f1984166122dd866120d3565b5f5b82811015612304578489015182556001820191506020850194506020810190506122df565b86831015612321578489015161231d601f891682612230565b8355505b6001600288020188555050505b505050505050565b5f6101208201905061234a5f830188611a76565b81810360a083015261235c81876119b0565b905081810360c083015261237081866119b0565b905081810360e083015261238481856119b0565b905081810361010083015261239981846119b0565b9050969550505050505056fea2646970667358221220c439b0e7103744e8335fa5fdedab4933ee347354f81aabdc240c3ec23e6a35fb64736f6c634300081a0033", y = Symbol.for("@ts-pattern/matcher"), u0 = Symbol.for("@ts-pattern/isVariadic"), k = "@ts-pattern/anonymous-select-key", U = (t) => !!(t && typeof t == "object"), R = (t) => t && !!t[y], g = (t, f, e) => {
9
- if (R(t)) {
1
+ import { bL as M, bM as V, bN as Z, bO as F, bP as f0 } from "../generated-ClbO_ULI.js";
2
+ import { getTransaction as C, getTransactionReceipt as G } from "@wagmi/core";
3
+ import { isAddressEqual as E, toEventSelector as Q, decodeEventLog as B, decodeFunctionData as Y, isAddress as e0, fromHex as _, zeroHash as k, encodeAbiParameters as t0, zeroAddress as b0 } from "viem";
4
+ import { f as n0 } from "../deployments-D68FgefY.js";
5
+ import { DeployableTarget as a0 } from "../Deployable/DeployableTarget.js";
6
+ import { ValidationAbiMissingError as x, FunctionDataDecodeError as j, UnparseableAbiParamError as i0, DecodedArgsError as r0, UnrecognizedFilterTypeError as s0, FieldValueNotComparableError as K, InvalidNumericalCriteriaError as R, DecodedArgsMalformedError as o0, FieldValueUndefinedError as W, NoEventActionStepsProvidedError as c0, TooManyEventActionStepsProvidedError as d0 } from "../errors.js";
7
+ import { RegistryType as u0, CheatCodes as N, TRANSFER_SIGNATURE as X } from "../utils.js";
8
+ const l0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b6080516123db6100c85f395f61034a01526123db5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611385565b610273565b6040516100c791906113ca565b60405180910390f35b6100ea60048036038101906100e59190611444565b6102ec565b6040516100f89291906114ff565b60405180910390f35b34801561010c575f80fd5b50610115610321565b604051610122919061153c565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c91906115cf565b60405180910390f35b348015610160575f80fd5b5061017b60048036038101906101769190611444565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e919061193b565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611985565b610648565b6040516101da9190611a36565b60405180910390f35b3480156101ee575f80fd5b5061020960048036038101906102049190611444565b610875565b6040516102169190611a56565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611adc565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611b04565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190612002565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a57610469611629565b5b600181111561047c5761047b611629565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660078111156105305761052f611629565b5b600781111561054257610541611629565b5b81526020015f820160019054906101000a900460ff16600381111561056a57610569611629565b5b600381111561057c5761057b611629565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612076565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612076565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b610650611216565b60048281548110610664576106636120a6565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a7611629565b5b60018111156106ba576106b9611629565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600781111561076e5761076d611629565b5b60078111156107805761077f611629565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a7611629565b5b60038111156107ba576107b9611629565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612076565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612076565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b161127b565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df611629565b5b60018111156108f2576108f1611629565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe82611110565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611189565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a63611629565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b45611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610bee57610bed611629565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612267565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610d6357610d62611629565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d91611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612267565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836007811115610ed857610ed7611629565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f06611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612267565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa4611629565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600781111561104d5761104c611629565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b611629565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612267565b50505050507ff2cd382b92e0609edafee04c969decf0c2d04013cd112d0f0818268b11e84c69815f01518260200151836040015184606001518560800151604051611105959493929190612336565b60405180910390a150565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806111825750611181826111ad565b5b9050919050565b5f611192610a06565b905080546001166111aa5763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f600181111561123d5761123c611629565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81526020016112756112d3565b81525090565b6040518060a001604052805f600181111561129957611298611629565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f60078111156112f1576112f0611629565b5b81526020015f600381111561130957611308611629565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61136481611330565b811461136e575f80fd5b50565b5f8135905061137f8161135b565b92915050565b5f6020828403121561139a57611399611328565b5b5f6113a784828501611371565b91505092915050565b5f8115159050919050565b6113c4816113b0565b82525050565b5f6020820190506113dd5f8301846113bb565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f840112611404576114036113e3565b5b8235905067ffffffffffffffff811115611421576114206113e7565b5b60208301915083600182028301111561143d5761143c6113eb565b5b9250929050565b5f806020838503121561145a57611459611328565b5b5f83013567ffffffffffffffff8111156114775761147661132c565b5b611483858286016113ef565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6114d18261148f565b6114db8185611499565b93506114eb8185602086016114a9565b6114f4816114b7565b840191505092915050565b5f6040820190506115125f8301856113bb565b818103602083015261152481846114c7565b90509392505050565b61153681611330565b82525050565b5f60208201905061154f5f83018461152d565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61159761159261158d84611555565b611574565b611555565b9050919050565b5f6115a88261157d565b9050919050565b5f6115b98261159e565b9050919050565b6115c9816115af565b82525050565b5f6020820190506115e25f8301846115c0565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b61162381611611565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b6002811061166757611666611629565b5b50565b5f81905061167782611656565b919050565b5f6116868261166a565b9050919050565b6116968161167c565b82525050565b5f60ff82169050919050565b6116b18161169c565b82525050565b5f6116c182611555565b9050919050565b6116d1816116b7565b82525050565b5f819050919050565b6116e9816116d7565b82525050565b60088110611700576116ff611629565b5b50565b5f819050611710826116ef565b919050565b5f61171f82611703565b9050919050565b61172f81611715565b82525050565b6004811061174657611745611629565b5b50565b5f81905061175682611735565b919050565b5f61176582611749565b9050919050565b6117758161175b565b82525050565b5f82825260208201905092915050565b5f6117958261148f565b61179f818561177b565b93506117af8185602086016114a9565b6117b8816114b7565b840191505092915050565b5f608083015f8301516117d85f860182611726565b5060208301516117eb602086018261176c565b5060408301516117fe60408601826116a8565b5060608301518482036060860152611816828261178b565b9150508091505092915050565b5f60c083015f8301516118385f86018261161a565b50602083015161184b602086018261168d565b50604083015161185e60408601826116a8565b50606083015161187160608601826116c8565b50608083015161188460808601826116e0565b5060a083015184820360a086015261189c82826117c3565b9150508091505092915050565b5f6118b48383611823565b905092915050565b5f602082019050919050565b5f6118d2826115e8565b6118dc81856115f2565b9350836020820285016118ee85611602565b805f5b85811015611929578484038952815161190a85826118a9565b9450611915836118bc565b925060208a019950506001810190506118f1565b50829750879550505050505092915050565b5f6020820190508181035f83015261195381846118c8565b905092915050565b611964816116d7565b811461196e575f80fd5b50565b5f8135905061197f8161195b565b92915050565b5f6020828403121561199a57611999611328565b5b5f6119a784828501611971565b91505092915050565b5f60c083015f8301516119c55f86018261161a565b5060208301516119d8602086018261168d565b5060408301516119eb60408601826116a8565b5060608301516119fe60608601826116c8565b506080830151611a1160808601826116e0565b5060a083015184820360a0860152611a2982826117c3565b9150508091505092915050565b5f6020820190508181035f830152611a4e81846119b0565b905092915050565b5f6020820190508181035f830152611a6e81846114c7565b905092915050565b60a082015f820151611a8a5f85018261168d565b506020820151611a9d602085018261161a565b506040820151611ab060408501826116a8565b506060820151611ac360608501826116c8565b506080820151611ad660808501826116e0565b50505050565b5f60a082019050611aef5f830184611a76565b92915050565b611afe816116d7565b82525050565b5f602082019050611b175f830184611af5565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b57826114b7565b810181811067ffffffffffffffff82111715611b7657611b75611b21565b5b80604052505050565b5f611b8861131f565b9050611b948282611b4e565b919050565b5f80fd5b60028110611ba9575f80fd5b50565b5f81359050611bba81611b9d565b92915050565b611bc981611611565b8114611bd3575f80fd5b50565b5f81359050611be481611bc0565b92915050565b611bf38161169c565b8114611bfd575f80fd5b50565b5f81359050611c0e81611bea565b92915050565b611c1d816116b7565b8114611c27575f80fd5b50565b5f81359050611c3881611c14565b92915050565b5f60a08284031215611c5357611c52611b1d565b5b611c5d60a0611b7f565b90505f611c6c84828501611bac565b5f830152506020611c7f84828501611bd6565b6020830152506040611c9384828501611c00565b6040830152506060611ca784828501611c2a565b6060830152506080611cbb84828501611971565b60808301525092915050565b60088110611cd3575f80fd5b50565b5f81359050611ce481611cc7565b92915050565b60048110611cf6575f80fd5b50565b5f81359050611d0781611cea565b92915050565b5f80fd5b5f67ffffffffffffffff821115611d2b57611d2a611b21565b5b611d34826114b7565b9050602081019050919050565b828183375f83830152505050565b5f611d61611d5c84611d11565b611b7f565b905082815260208101848484011115611d7d57611d7c611d0d565b5b611d88848285611d41565b509392505050565b5f82601f830112611da457611da36113e3565b5b8135611db4848260208601611d4f565b91505092915050565b5f60808284031215611dd257611dd1611b1d565b5b611ddc6080611b7f565b90505f611deb84828501611cd6565b5f830152506020611dfe84828501611cf9565b6020830152506040611e1284828501611c00565b604083015250606082013567ffffffffffffffff811115611e3657611e35611b99565b5b611e4284828501611d90565b60608301525092915050565b5f60c08284031215611e6357611e62611b1d565b5b611e6d60c0611b7f565b90505f611e7c84828501611bd6565b5f830152506020611e8f84828501611bac565b6020830152506040611ea384828501611c00565b6040830152506060611eb784828501611c2a565b6060830152506080611ecb84828501611971565b60808301525060a082013567ffffffffffffffff811115611eef57611eee611b99565b5b611efb84828501611dbd565b60a08301525092915050565b5f6101208284031215611f1d57611f1c611b1d565b5b611f2760a0611b7f565b90505f611f3684828501611c3e565b5f8301525060a082013567ffffffffffffffff811115611f5957611f58611b99565b5b611f6584828501611e4e565b60208301525060c082013567ffffffffffffffff811115611f8957611f88611b99565b5b611f9584828501611e4e565b60408301525060e082013567ffffffffffffffff811115611fb957611fb8611b99565b5b611fc584828501611e4e565b60608301525061010082013567ffffffffffffffff811115611fea57611fe9611b99565b5b611ff684828501611e4e565b60808301525092915050565b5f6020828403121561201757612016611328565b5b5f82013567ffffffffffffffff8111156120345761203361132c565b5b61204084828501611f07565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061208d57607f821691505b6020821081036120a05761209f612049565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f6008830261212f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120f4565b61213986836120f4565b95508019841693508086168417925050509392505050565b5f61216b612166612161846116d7565b611574565b6116d7565b9050919050565b5f819050919050565b61218483612151565b61219861219082612172565b848454612100565b825550505050565b5f90565b6121ac6121a0565b6121b781848461217b565b505050565b5b818110156121da576121cf5f826121a4565b6001810190506121bd565b5050565b601f82111561221f576121f0816120d3565b6121f9846120e5565b81016020851015612208578190505b61221c612214856120e5565b8301826121bc565b50505b505050565b5f82821c905092915050565b5f61223f5f1984600802612224565b1980831691505092915050565b5f6122578383612230565b9150826002028217905092915050565b6122708261148f565b67ffffffffffffffff81111561228957612288611b21565b5b6122938254612076565b61229e8282856121de565b5f60209050601f8311600181146122cf575f84156122bd578287015190505b6122c7858261224c565b86555061232e565b601f1984166122dd866120d3565b5f5b82811015612304578489015182556001820191506020850194506020810190506122df565b86831015612321578489015161231d601f891682612230565b8355505b6001600288020188555050505b505050505050565b5f6101208201905061234a5f830188611a76565b81810360a083015261235c81876119b0565b905081810360c083015261237081866119b0565b905081810360e083015261238481856119b0565b905081810361010083015261239981846119b0565b9050969550505050505056fea2646970667358221220c439b0e7103744e8335fa5fdedab4933ee347354f81aabdc240c3ec23e6a35fb64736f6c634300081a0033", y = Symbol.for("@ts-pattern/matcher"), h0 = Symbol.for("@ts-pattern/isVariadic"), L = "@ts-pattern/anonymous-select-key", O = (t) => !!(t && typeof t == "object"), P = (t) => t && !!t[y], g = (t, f, e) => {
9
+ if (P(t)) {
10
10
  const b = t[y](), { 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 (U(t)) {
14
- if (!U(f)) return !1;
13
+ if (O(t)) {
14
+ if (!O(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
- R(r) && r[u0] ? a.push(r) : a.length ? n.push(r) : b.push(r);
20
+ P(r) && r[h0] ? 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
- const i = f.slice(0, b.length), r = n.length === 0 ? [] : f.slice(-n.length), s = f.slice(b.length, n.length === 0 ? 1 / 0 : -n.length);
26
- return b.every((d, v) => g(d, i[v], e)) && n.every((d, v) => g(d, r[v], e)) && (a.length === 0 || g(a[0], s, e));
25
+ const i = f.slice(0, b.length), r = n.length === 0 ? [] : f.slice(-n.length), o = f.slice(b.length, n.length === 0 ? 1 / 0 : -n.length);
26
+ return b.every((d, v) => g(d, i[v], e)) && n.every((d, v) => g(d, r[v], e)) && (a.length === 0 || g(a[0], o, e));
27
27
  }
28
28
  return t.length === f.length && t.every((i, r) => g(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 || R(a = n) && a[y]().matcherType === "optional") && g(n, f[b], e);
32
+ return (b in f || P(a = n) && a[y]().matcherType === "optional") && g(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 U(t) ? R(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) : [];
39
+ return O(t) ? P(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
40
  }, S = (t, f) => t.reduce((e, b) => e.concat(f(b)), []);
41
41
  function u(t) {
42
- return Object.assign(t, { optional: () => l0(t), and: (f) => c(t, f), or: (f) => h0(t, f), select: (f) => f === void 0 ? X(t) : X(f, t) });
42
+ return Object.assign(t, { optional: () => g0(t), and: (f) => c(t, f), or: (f) => y0(t, f), select: (f) => f === void 0 ? z(t) : z(f, t) });
43
43
  }
44
- function l0(t) {
44
+ function g0(t) {
45
45
  return u({ [y]: () => ({ match: (f) => {
46
46
  let e = {};
47
47
  const b = (n, a) => {
@@ -59,7 +59,7 @@ function c(...t) {
59
59
  return { matched: t.every((n) => g(n, f, b)), selections: e };
60
60
  }, getSelectionKeys: () => S(t, T), matcherType: "and" }) });
61
61
  }
62
- function h0(...t) {
62
+ function y0(...t) {
63
63
  return u({ [y]: () => ({ match: (f) => {
64
64
  let e = {};
65
65
  const b = (n, a) => {
@@ -68,17 +68,17 @@ function h0(...t) {
68
68
  return S(t, T).forEach((n) => b(n, void 0)), { matched: t.some((n) => g(n, f, b)), selections: e };
69
69
  }, getSelectionKeys: () => S(t, T), matcherType: "or" }) });
70
70
  }
71
- function o(t) {
71
+ function s(t) {
72
72
  return { [y]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
73
73
  }
74
- function X(...t) {
74
+ function z(...t) {
75
75
  const f = typeof t[0] == "string" ? t[0] : void 0, e = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
76
76
  return u({ [y]: () => ({ match: (b) => {
77
- let n = { [f ?? k]: b };
77
+ let n = { [f ?? L]: b };
78
78
  return { matched: e === void 0 || g(e, b, (a, i) => {
79
79
  n[a] = i;
80
80
  }), selections: n };
81
- }, getSelectionKeys: () => [f ?? k].concat(e === void 0 ? [] : T(e)) }) });
81
+ }, getSelectionKeys: () => [f ?? L].concat(e === void 0 ? [] : T(e)) }) });
82
82
  }
83
83
  function l(t) {
84
84
  return typeof t == "number";
@@ -89,40 +89,40 @@ function p(t) {
89
89
  function m(t) {
90
90
  return typeof t == "bigint";
91
91
  }
92
- u(o(function(t) {
92
+ u(s(function(t) {
93
93
  return !0;
94
94
  }));
95
95
  const A = (t) => Object.assign(u(t), { startsWith: (f) => {
96
- return A(c(t, (e = f, o((b) => p(b) && b.startsWith(e)))));
96
+ return A(c(t, (e = f, s((b) => p(b) && b.startsWith(e)))));
97
97
  var e;
98
98
  }, endsWith: (f) => {
99
- return A(c(t, (e = f, o((b) => p(b) && b.endsWith(e)))));
99
+ return A(c(t, (e = f, s((b) => p(b) && b.endsWith(e)))));
100
100
  var e;
101
- }, minLength: (f) => A(c(t, ((e) => o((b) => p(b) && b.length >= e))(f))), length: (f) => A(c(t, ((e) => o((b) => p(b) && b.length === e))(f))), maxLength: (f) => A(c(t, ((e) => o((b) => p(b) && b.length <= e))(f))), includes: (f) => {
102
- return A(c(t, (e = f, o((b) => p(b) && b.includes(e)))));
101
+ }, minLength: (f) => A(c(t, ((e) => s((b) => p(b) && b.length >= e))(f))), length: (f) => A(c(t, ((e) => s((b) => p(b) && b.length === e))(f))), maxLength: (f) => A(c(t, ((e) => s((b) => p(b) && b.length <= e))(f))), includes: (f) => {
102
+ return A(c(t, (e = f, s((b) => p(b) && b.includes(e)))));
103
103
  var e;
104
104
  }, regex: (f) => {
105
- return A(c(t, (e = f, o((b) => p(b) && !!b.match(e)))));
105
+ return A(c(t, (e = f, s((b) => p(b) && !!b.match(e)))));
106
106
  var e;
107
107
  } });
108
- A(o(p));
109
- const h = (t) => Object.assign(u(t), { between: (f, e) => h(c(t, ((b, n) => o((a) => l(a) && b <= a && n >= a))(f, e))), lt: (f) => h(c(t, ((e) => o((b) => l(b) && b < e))(f))), gt: (f) => h(c(t, ((e) => o((b) => l(b) && b > e))(f))), lte: (f) => h(c(t, ((e) => o((b) => l(b) && b <= e))(f))), gte: (f) => h(c(t, ((e) => o((b) => l(b) && b >= e))(f))), int: () => h(c(t, o((f) => l(f) && Number.isInteger(f)))), finite: () => h(c(t, o((f) => l(f) && Number.isFinite(f)))), positive: () => h(c(t, o((f) => l(f) && f > 0))), negative: () => h(c(t, o((f) => l(f) && f < 0))) });
110
- h(o(l));
111
- const w = (t) => Object.assign(u(t), { between: (f, e) => w(c(t, ((b, n) => o((a) => m(a) && b <= a && n >= a))(f, e))), lt: (f) => w(c(t, ((e) => o((b) => m(b) && b < e))(f))), gt: (f) => w(c(t, ((e) => o((b) => m(b) && b > e))(f))), lte: (f) => w(c(t, ((e) => o((b) => m(b) && b <= e))(f))), gte: (f) => w(c(t, ((e) => o((b) => m(b) && b >= e))(f))), positive: () => w(c(t, o((f) => m(f) && f > 0))), negative: () => w(c(t, o((f) => m(f) && f < 0))) });
112
- w(o(m));
113
- u(o(function(t) {
108
+ A(s(p));
109
+ const h = (t) => Object.assign(u(t), { between: (f, e) => h(c(t, ((b, n) => s((a) => l(a) && b <= a && n >= a))(f, e))), lt: (f) => h(c(t, ((e) => s((b) => l(b) && b < e))(f))), gt: (f) => h(c(t, ((e) => s((b) => l(b) && b > e))(f))), lte: (f) => h(c(t, ((e) => s((b) => l(b) && b <= e))(f))), gte: (f) => h(c(t, ((e) => s((b) => l(b) && b >= e))(f))), int: () => h(c(t, s((f) => l(f) && Number.isInteger(f)))), finite: () => h(c(t, s((f) => l(f) && Number.isFinite(f)))), positive: () => h(c(t, s((f) => l(f) && f > 0))), negative: () => h(c(t, s((f) => l(f) && f < 0))) });
110
+ h(s(l));
111
+ const w = (t) => Object.assign(u(t), { between: (f, e) => w(c(t, ((b, n) => s((a) => m(a) && b <= a && n >= a))(f, e))), lt: (f) => w(c(t, ((e) => s((b) => m(b) && b < e))(f))), gt: (f) => w(c(t, ((e) => s((b) => m(b) && b > e))(f))), lte: (f) => w(c(t, ((e) => s((b) => m(b) && b <= e))(f))), gte: (f) => w(c(t, ((e) => s((b) => m(b) && b >= e))(f))), positive: () => w(c(t, s((f) => m(f) && f > 0))), negative: () => w(c(t, s((f) => m(f) && f < 0))) });
112
+ w(s(m));
113
+ u(s(function(t) {
114
114
  return typeof t == "boolean";
115
115
  }));
116
- u(o(function(t) {
116
+ u(s(function(t) {
117
117
  return typeof t == "symbol";
118
118
  }));
119
- u(o(function(t) {
119
+ u(s(function(t) {
120
120
  return t == null;
121
121
  }));
122
- u(o(function(t) {
122
+ u(s(function(t) {
123
123
  return t != null;
124
124
  }));
125
- class g0 extends Error {
125
+ class p0 extends Error {
126
126
  constructor(f) {
127
127
  let e;
128
128
  try {
@@ -133,9 +133,9 @@ class g0 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 M = { matched: !1, value: void 0 };
137
- function z(t) {
138
- return new D(t, M);
136
+ const H = { matched: !1, value: void 0 };
137
+ function $(t) {
138
+ return new D(t, H);
139
139
  }
140
140
  class D {
141
141
  constructor(f, e) {
@@ -149,20 +149,20 @@ class D {
149
149
  let a = !1, i = {};
150
150
  const r = (d, v) => {
151
151
  a = !0, i[d] = v;
152
- }, s = !b.some((d) => g(d, this.input, r)) || n && !n(this.input) ? M : { matched: !0, value: e(a ? k in i ? i[k] : i : this.input, this.input) };
153
- return new D(this.input, s);
152
+ }, o = !b.some((d) => g(d, this.input, r)) || n && !n(this.input) ? H : { matched: !0, value: e(a ? L in i ? i[L] : i : this.input, this.input) };
153
+ return new D(this.input, o);
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) } : M);
158
+ return new D(this.input, b ? { matched: !0, value: e(this.input, this.input) } : H);
159
159
  }
160
160
  otherwise(f) {
161
161
  return this.state.matched ? this.state.value : f(this.input);
162
162
  }
163
163
  exhaustive() {
164
164
  if (this.state.matched) return this.state.value;
165
- throw new g0(this.input);
165
+ throw new p0(this.input);
166
166
  }
167
167
  run() {
168
168
  return this.exhaustive();
@@ -171,13 +171,13 @@ class D {
171
171
  return this;
172
172
  }
173
173
  }
174
- var y0 = /* @__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))(y0 || {}), p0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t))(p0 || {}), m0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(m0 || {});
175
- function A0(t) {
174
+ var m0 = /* @__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))(m0 || {}), A0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t))(A0 || {}), w0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(w0 || {});
175
+ function T0(t) {
176
176
  return Array.isArray(t.actionSteps);
177
177
  }
178
- const L = class L extends n0 {
178
+ const U = class U extends a0 {
179
179
  constructor() {
180
- super(...arguments), this.abi = O;
180
+ super(...arguments), this.abi = M;
181
181
  }
182
182
  /**
183
183
  * Gets a specific action event by index
@@ -200,13 +200,13 @@ const L = class L extends n0 {
200
200
  * @returns {Promise<ActionStep[]>}
201
201
  */
202
202
  async getActionSteps(f) {
203
- const e = await J(this._config, {
203
+ const e = await V(this._config, {
204
204
  address: this.assertValidAddress(),
205
205
  ...this.optionallyAttachAccount(),
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 w0(e.map(q));
209
+ return v0(e.map(J));
210
210
  }
211
211
  /**
212
212
  * Gets the count of action events
@@ -233,7 +233,7 @@ const L = class L extends n0 {
233
233
  ...this.optionallyAttachAccount(),
234
234
  ...f
235
235
  });
236
- return q(e);
236
+ return J(e);
237
237
  }
238
238
  /**
239
239
  * Executes a prepared event action
@@ -257,14 +257,14 @@ const L = class L extends n0 {
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 V(this._config, {
260
+ const { request: b, result: n } = await F(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 F(this._config, b), result: n };
267
+ return { hash: await f0(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.
@@ -326,36 +326,36 @@ const L = class L extends n0 {
326
326
  if (f.signatureType === 0) {
327
327
  let n;
328
328
  if (e.abiItem ? n = e.abiItem : n = e.knownSignatures[b], !n)
329
- throw new _(b);
329
+ throw new x(b);
330
330
  let a;
331
331
  if ("logs" in e) {
332
- for (let s of e.logs) {
333
- if (!I(s.address, f.targetContract)) continue;
332
+ for (let o of e.logs) {
333
+ if (!E(o.address, f.targetContract)) continue;
334
334
  let d = this.validateClaimantAgainstArgs(
335
335
  f,
336
- s
336
+ o
337
337
  );
338
338
  d && (a = d);
339
339
  }
340
340
  return a;
341
341
  }
342
- const i = await H(this._config, {
342
+ const i = await G(this._config, {
343
343
  ...e,
344
344
  chainId: f.chainid
345
345
  });
346
346
  if (e.notBeforeBlockNumber && i.blockNumber < e.notBeforeBlockNumber)
347
347
  return;
348
- const r = i.logs.filter((s) => s.topics[0] === G(n)).map((s) => {
349
- const { eventName: d, args: v } = Q({
348
+ const r = i.logs.filter((o) => o.topics[0] === Q(n)).map((o) => {
349
+ const { eventName: d, args: v } = B({
350
350
  abi: [n],
351
- data: s.data,
352
- topics: s.topics
351
+ data: o.data,
352
+ topics: o.topics
353
353
  });
354
- return { ...s, eventName: d, args: v };
354
+ return { ...o, eventName: d, args: v };
355
355
  });
356
- for (let s of r) {
357
- if (!I(s.address, f.targetContract)) continue;
358
- let d = this.validateClaimantAgainstArgs(f, s);
356
+ for (let o of r) {
357
+ if (!E(o.address, f.targetContract)) continue;
358
+ let d = this.validateClaimantAgainstArgs(f, o);
359
359
  d && (a = d);
360
360
  }
361
361
  return a;
@@ -365,10 +365,10 @@ const L = class L extends n0 {
365
365
  ...e,
366
366
  chainId: f.chainid
367
367
  });
368
- if (e.notBeforeBlockNumber && n.blockNumber < e.notBeforeBlockNumber || !I(n.to, f.targetContract)) return;
368
+ if (e.notBeforeBlockNumber && n.blockNumber < e.notBeforeBlockNumber || !E(n.to, f.targetContract)) return;
369
369
  let a;
370
370
  if (e.abiItem ? a = e.abiItem : a = e.knownSignatures[b], !a)
371
- throw new _(f.signature);
371
+ throw new x(f.signature);
372
372
  let i;
373
373
  try {
374
374
  i = Y({
@@ -393,7 +393,7 @@ const L = class L extends n0 {
393
393
  if (!e || !Array.isArray(e == null ? void 0 : e.args) || (e == null ? void 0 : e.args.length) <= f.fieldIndex)
394
394
  return;
395
395
  const b = e.args.at(f.fieldIndex);
396
- if (f0(b)) return b;
396
+ if (e0(b)) return b;
397
397
  }
398
398
  /**
399
399
  * Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
@@ -427,27 +427,29 @@ const L = class L extends n0 {
427
427
  const b = f.signature;
428
428
  let n;
429
429
  if (e.abiItem ? n = e.abiItem : n = e.knownSignatures[b], !n)
430
- throw new _(b);
430
+ throw new x(b);
431
431
  if (this.isArraylikeIndexed(f, n))
432
- throw new a0(
432
+ throw new i0(
433
433
  f.actionParameter.fieldIndex,
434
434
  n
435
435
  );
436
436
  if ("logs" in e)
437
437
  return this.isActionEventValid(f, e.logs);
438
- const a = await H(this._config, {
438
+ const a = await G(this._config, {
439
439
  ...e,
440
440
  chainId: f.chainid
441
441
  });
442
442
  if (e.notBeforeBlockNumber && a.blockNumber < e.notBeforeBlockNumber)
443
443
  return !1;
444
- const i = a.logs.filter((r) => r.topics[0] === G(n)).map((r) => {
445
- const { eventName: s, args: d } = Q({
444
+ if (f.signature === X)
445
+ return this.decodeTransferLogs(a, f);
446
+ const i = a.logs.filter((r) => r.topics[0] === Q(n)).map((r) => {
447
+ const { eventName: o, args: d } = B({
446
448
  abi: [n],
447
449
  data: r.data,
448
450
  topics: r.topics
449
451
  });
450
- return { ...r, eventName: s, args: d };
452
+ return { ...r, eventName: o, args: d };
451
453
  });
452
454
  return this.isActionEventValid(f, i);
453
455
  }
@@ -478,6 +480,73 @@ const L = class L extends n0 {
478
480
  return !0;
479
481
  return !1;
480
482
  }
483
+ /**
484
+ * Decodes transfer logs specifically for ERC721 and ERC20 Transfer events.
485
+ *
486
+ * This special handling is required because both ERC20 and ERC721 Transfer events:
487
+ * 1. Share the same event signature (0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef)
488
+ * 2. Have similar but distinct structures:
489
+ * - ERC721: Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
490
+ * - ERC20: Transfer(address indexed from, address indexed to, uint256 value)
491
+ *
492
+ * This causes signature collisions in the known signatures package, requiring us to
493
+ * try decoding both ways to determine which type of Transfer event we're dealing with.
494
+ *
495
+ * @param {GetTransactionReceiptReturnType} receipt - The transaction receipt containing the logs
496
+ * @param {ActionStep} actionStep - The action step being validated
497
+ * @returns {Promise<boolean>} - Returns true if the transfer logs are valid for either ERC20 or ERC721
498
+ * @throws {DecodedArgsError} - Throws if neither ERC20 nor ERC721 decoding succeeds
499
+ */
500
+ async decodeTransferLogs(f, e) {
501
+ const b = f.logs.filter(
502
+ (n) => n.topics[0] === X
503
+ );
504
+ try {
505
+ const n = b.map((a) => {
506
+ const { eventName: i, args: r } = B({
507
+ abi: [
508
+ {
509
+ name: "Transfer",
510
+ type: "event",
511
+ inputs: [
512
+ { type: "address", indexed: !0 },
513
+ { type: "address", indexed: !0 },
514
+ { type: "uint256", indexed: !0 }
515
+ ]
516
+ }
517
+ ],
518
+ data: a.data,
519
+ topics: a.topics
520
+ });
521
+ return { ...a, eventName: i, args: r };
522
+ });
523
+ return this.isActionEventValid(e, n);
524
+ } catch {
525
+ try {
526
+ const n = b.map((a) => {
527
+ const { eventName: i, args: r } = B({
528
+ abi: [
529
+ {
530
+ name: "Transfer",
531
+ type: "event",
532
+ inputs: [
533
+ { type: "address", indexed: !0 },
534
+ { type: "address", indexed: !0 },
535
+ { type: "uint256" }
536
+ ]
537
+ }
538
+ ],
539
+ data: a.data,
540
+ topics: a.topics
541
+ });
542
+ return { ...a, eventName: i, args: r };
543
+ });
544
+ return this.isActionEventValid(e, n);
545
+ } catch {
546
+ throw new r0("Failed to decode transfer logs");
547
+ }
548
+ }
549
+ }
481
550
  /**
482
551
  * Validates a single action function with a given criteria against the transaction input.
483
552
  *
@@ -495,7 +564,7 @@ const L = class L extends n0 {
495
564
  const n = f.actionParameter;
496
565
  let a = f.signature, i;
497
566
  if (b.abiItem ? i = b == null ? void 0 : b.abiItem : i = b.knownSignatures[a], !i)
498
- throw new _(a);
567
+ throw new x(a);
499
568
  let r;
500
569
  try {
501
570
  r = Y({
@@ -505,10 +574,10 @@ const L = class L extends n0 {
505
574
  } catch (d) {
506
575
  throw new j([i], d);
507
576
  }
508
- const s = r.args;
509
- return !(!s || !r || !this.validateFunctionAgainstCriteria(
577
+ const o = r.args;
578
+ return !(!o || !r || !this.validateFunctionAgainstCriteria(
510
579
  n,
511
- s
580
+ o
512
581
  ));
513
582
  }
514
583
  /**
@@ -526,31 +595,31 @@ const L = class L extends n0 {
526
595
  return !0;
527
596
  switch (f.filterType) {
528
597
  case 0:
529
- return z(f.fieldType).with(
598
+ return $(f.fieldType).with(
530
599
  1,
531
- () => I(f.filterData, e)
600
+ () => E(f.filterData, e)
532
601
  ).with(
533
602
  0,
534
603
  () => BigInt(e) === BigInt(f.filterData)
535
604
  ).with(
536
605
  3,
537
- () => e === B(f.filterData, "string")
606
+ () => e === _(f.filterData, "string")
538
607
  ).otherwise(() => e === f.filterData);
539
608
  case 1:
540
- return z(f.fieldType).with(
609
+ return $(f.fieldType).with(
541
610
  1,
542
- () => !I(f.filterData, e)
611
+ () => !E(f.filterData, e)
543
612
  ).with(
544
613
  0,
545
614
  () => BigInt(e) !== BigInt(f.filterData)
546
615
  ).with(
547
616
  3,
548
- () => e !== B(f.filterData, "string")
617
+ () => e !== _(f.filterData, "string")
549
618
  ).otherwise(() => e !== f.filterData);
550
619
  case 2:
551
620
  if (f.fieldType === 0)
552
621
  return BigInt(e) > BigInt(f.filterData);
553
- throw new x({
622
+ throw new R({
554
623
  ...b,
555
624
  criteria: f,
556
625
  fieldValue: e
@@ -558,7 +627,7 @@ const L = class L extends n0 {
558
627
  case 6:
559
628
  if (f.fieldType === 0)
560
629
  return BigInt(e) >= BigInt(f.filterData);
561
- throw new x({
630
+ throw new R({
562
631
  ...b,
563
632
  criteria: f,
564
633
  fieldValue: e
@@ -566,7 +635,7 @@ const L = class L extends n0 {
566
635
  case 3:
567
636
  if (f.fieldType === 0)
568
637
  return BigInt(e) < BigInt(f.filterData);
569
- throw new x({
638
+ throw new R({
570
639
  ...b,
571
640
  criteria: f,
572
641
  fieldValue: e
@@ -574,7 +643,7 @@ const L = class L extends n0 {
574
643
  case 7:
575
644
  if (f.fieldType === 0)
576
645
  return BigInt(e) <= BigInt(f.filterData);
577
- throw new x({
646
+ throw new R({
578
647
  ...b,
579
648
  criteria: f,
580
649
  fieldValue: e
@@ -582,7 +651,7 @@ const L = class L extends n0 {
582
651
  case 4:
583
652
  if (f.fieldType === 2 || f.fieldType === 3) {
584
653
  let n;
585
- return f.fieldType === 3 ? n = B(f.filterData, "string") : n = f.filterData.slice(2), e.includes(n);
654
+ return f.fieldType === 3 ? n = _(f.filterData, "string") : n = f.filterData.slice(2), e.includes(n);
586
655
  }
587
656
  throw new K({
588
657
  ...b,
@@ -597,11 +666,11 @@ const L = class L extends n0 {
597
666
  fieldValue: e
598
667
  });
599
668
  if (f.fieldType === 3) {
600
- const n = B(f.filterData, "string");
669
+ const n = _(f.filterData, "string");
601
670
  return new RegExp(n).test(e);
602
671
  }
603
672
  default:
604
- throw new i0({
673
+ throw new s0({
605
674
  ...b,
606
675
  criteria: f,
607
676
  fieldValue: e
@@ -618,12 +687,12 @@ const L = class L extends n0 {
618
687
  */
619
688
  validateLogAgainstCriteria(f, e) {
620
689
  if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex && f.fieldIndex !== N.ANY_ACTION_PARAM)
621
- throw new r0({
690
+ throw new o0({
622
691
  log: e,
623
692
  criteria: f,
624
693
  fieldValue: void 0
625
694
  });
626
- const b = f.fieldIndex === N.ANY_ACTION_PARAM ? P : e.args.at(f.fieldIndex);
695
+ const b = f.fieldIndex === N.ANY_ACTION_PARAM ? k : e.args.at(f.fieldIndex);
627
696
  if (b === void 0)
628
697
  throw new W({ log: e, criteria: f, fieldValue: b });
629
698
  return this.validateFieldAgainstCriteria(f, b, { log: e });
@@ -637,7 +706,7 @@ const L = class L extends n0 {
637
706
  * @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
638
707
  */
639
708
  validateFunctionAgainstCriteria(f, e) {
640
- const b = f.fieldIndex === N.ANY_ACTION_PARAM ? P : e[f.fieldIndex];
709
+ const b = f.fieldIndex === N.ANY_ACTION_PARAM ? k : e[f.fieldIndex];
641
710
  if (b === void 0)
642
711
  throw new W({
643
712
  criteria: f,
@@ -661,13 +730,13 @@ const L = class L extends n0 {
661
730
  e
662
731
  );
663
732
  let a;
664
- if (A0(b)) {
665
- let i = b.actionSteps.filter((s) => !!s);
733
+ if (T0(b)) {
734
+ let i = b.actionSteps.filter((o) => !!o);
666
735
  if (i.length === 0)
667
- throw new o0();
736
+ throw new c0();
668
737
  if (i.length > 4)
669
- throw new s0();
670
- let r = Array.from({ length: 4 }, (s, d) => i.at(d) || i.at(-1));
738
+ throw new d0();
739
+ let r = Array.from({ length: 4 }, (o, d) => i.at(d) || i.at(-1));
671
740
  a = {
672
741
  actionClaimant: b.actionClaimant,
673
742
  actionStepOne: r[0],
@@ -678,9 +747,9 @@ const L = class L extends n0 {
678
747
  } else
679
748
  a = b;
680
749
  return {
681
- abi: O,
682
- bytecode: d0,
683
- args: [T0(a)],
750
+ abi: M,
751
+ bytecode: l0,
752
+ args: [N0(a)],
684
753
  ...this.optionallyAttachAccount(n.account)
685
754
  };
686
755
  }
@@ -689,12 +758,12 @@ const L = class L extends n0 {
689
758
  return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((b = e.inputs[f.actionParameter.fieldIndex]) != null && b.indexed));
690
759
  }
691
760
  };
692
- L.bases = {
761
+ U.bases = {
693
762
  31337: void 0,
694
- ...b0
695
- }, L.registryType = c0.ACTION;
696
- let $ = L;
697
- function w0(t) {
763
+ ...n0
764
+ }, U.registryType = u0.ACTION;
765
+ let q = U;
766
+ function v0(t) {
698
767
  const f = [], e = {};
699
768
  for (let b of t) {
700
769
  const n = JSON.stringify(b);
@@ -702,13 +771,13 @@ function w0(t) {
702
771
  }
703
772
  return f;
704
773
  }
705
- function E(t) {
774
+ function I(t) {
706
775
  return {
707
776
  ...t,
708
777
  chainid: BigInt(t.chainid)
709
778
  };
710
779
  }
711
- function q(t) {
780
+ function J(t) {
712
781
  if (t.chainid > BigInt(Number.MAX_SAFE_INTEGER))
713
782
  throw new Error("Chain ID exceeds max safe integer");
714
783
  return {
@@ -716,14 +785,14 @@ function q(t) {
716
785
  chainid: Number(t.chainid)
717
786
  };
718
787
  }
719
- function T0({
788
+ function N0({
720
789
  actionClaimant: t,
721
790
  actionStepOne: f,
722
791
  actionStepTwo: e,
723
792
  actionStepThree: b,
724
793
  actionStepFour: n
725
794
  }) {
726
- return e0(
795
+ return t0(
727
796
  [
728
797
  {
729
798
  type: "tuple",
@@ -829,52 +898,52 @@ function T0({
829
898
  ],
830
899
  [
831
900
  {
832
- actionClaimant: E(t),
901
+ actionClaimant: I(t),
833
902
  actionStepOne: {
834
- ...E(f),
903
+ ...I(f),
835
904
  actionType: f.actionType || 0
836
905
  },
837
906
  actionStepTwo: {
838
- ...E(e),
907
+ ...I(e),
839
908
  actionType: e.actionType || 0
840
909
  },
841
910
  actionStepThree: {
842
- ...E(b),
911
+ ...I(b),
843
912
  actionType: b.actionType || 0
844
913
  },
845
914
  actionStepFour: {
846
- ...E(n),
915
+ ...I(n),
847
916
  actionType: n.actionType || 0
848
917
  }
849
918
  }
850
919
  ]
851
920
  );
852
921
  }
853
- function _0() {
922
+ function R0() {
854
923
  return {
855
924
  filterType: 0,
856
925
  fieldType: 2,
857
926
  fieldIndex: N.ANY_ACTION_PARAM,
858
- filterData: P
927
+ filterData: k
859
928
  };
860
929
  }
861
- function x0(t) {
930
+ function P0(t) {
862
931
  return {
863
932
  signatureType: 0,
864
- signature: P,
933
+ signature: k,
865
934
  fieldIndex: N.TX_SENDER_CLAIMANT,
866
- targetContract: t0,
935
+ targetContract: b0,
867
936
  chainid: t
868
937
  };
869
938
  }
870
939
  export {
871
- $ as EventAction,
872
- y0 as FilterType,
873
- p0 as PrimitiveType,
874
- m0 as SignatureType,
875
- _0 as anyActionParameter,
876
- A0 as isEventActionPayloadSimple,
877
- T0 as prepareEventActionPayload,
878
- x0 as transactionSenderClaimant
940
+ q as EventAction,
941
+ m0 as FilterType,
942
+ A0 as PrimitiveType,
943
+ w0 as SignatureType,
944
+ R0 as anyActionParameter,
945
+ T0 as isEventActionPayloadSimple,
946
+ N0 as prepareEventActionPayload,
947
+ P0 as transactionSenderClaimant
879
948
  };
880
949
  //# sourceMappingURL=EventAction.js.map