@boostxyz/sdk 6.1.2 → 7.0.0-canary.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 (180) hide show
  1. package/README.md +1 -1
  2. package/dist/Actions/Action.cjs +1 -1
  3. package/dist/Actions/Action.js +4 -4
  4. package/dist/Actions/EventAction.cjs +1 -1
  5. package/dist/Actions/EventAction.cjs.map +1 -1
  6. package/dist/Actions/EventAction.d.ts +10 -0
  7. package/dist/Actions/EventAction.d.ts.map +1 -1
  8. package/dist/Actions/EventAction.js +84 -83
  9. package/dist/Actions/EventAction.js.map +1 -1
  10. package/dist/AllowLists/AllowList.cjs +1 -1
  11. package/dist/AllowLists/AllowList.js +3 -3
  12. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  13. package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
  14. package/dist/AllowLists/SimpleAllowList.js +14 -14
  15. package/dist/AllowLists/SimpleAllowList.js.map +1 -1
  16. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  17. package/dist/AllowLists/SimpleDenyList.js +3 -3
  18. package/dist/Auth/PassthroughAuth.cjs +1 -1
  19. package/dist/Auth/PassthroughAuth.js +1 -1
  20. package/dist/BoostCore.cjs +2 -2
  21. package/dist/BoostCore.cjs.map +1 -1
  22. package/dist/BoostCore.d.ts +1894 -267
  23. package/dist/BoostCore.d.ts.map +1 -1
  24. package/dist/BoostCore.js +808 -497
  25. package/dist/BoostCore.js.map +1 -1
  26. package/dist/BoostRegistry.cjs +1 -1
  27. package/dist/BoostRegistry.js +47 -47
  28. package/dist/Budget-B_kgJGDu.cjs +2 -0
  29. package/dist/Budget-B_kgJGDu.cjs.map +1 -0
  30. package/dist/Budget-Bvi5Qjqp.js +1124 -0
  31. package/dist/Budget-Bvi5Qjqp.js.map +1 -0
  32. package/dist/Budgets/Budget.cjs +1 -1
  33. package/dist/Budgets/Budget.d.ts +5 -4
  34. package/dist/Budgets/Budget.d.ts.map +1 -1
  35. package/dist/Budgets/Budget.js +9 -6
  36. package/dist/Budgets/ManagedBudget.cjs +1 -1
  37. package/dist/Budgets/ManagedBudget.cjs.map +1 -1
  38. package/dist/Budgets/ManagedBudget.d.ts +4 -0
  39. package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
  40. package/dist/Budgets/ManagedBudget.js +25 -25
  41. package/dist/Budgets/ManagedBudgetWithFees.d.ts +4 -0
  42. package/dist/Budgets/ManagedBudgetWithFees.d.ts.map +1 -1
  43. package/dist/Budgets/ManagedBudgetWithFeesV2.d.ts +4 -0
  44. package/dist/Budgets/ManagedBudgetWithFeesV2.d.ts.map +1 -1
  45. package/dist/Budgets/TransparentBudget.d.ts +944 -0
  46. package/dist/Budgets/TransparentBudget.d.ts.map +1 -0
  47. package/dist/Budgets/VestingBudget.d.ts +4 -0
  48. package/dist/Budgets/VestingBudget.d.ts.map +1 -1
  49. package/dist/Deployable/Deployable.cjs.map +1 -1
  50. package/dist/Deployable/Deployable.d.ts +1 -1
  51. package/dist/Deployable/Deployable.d.ts.map +1 -1
  52. package/dist/Deployable/Deployable.js.map +1 -1
  53. package/dist/Deployable/DeployableTarget.cjs +1 -1
  54. package/dist/Deployable/DeployableTarget.js +1 -1
  55. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  56. package/dist/Deployable/DeployableTargetWithRBAC.js +19 -19
  57. package/dist/Incentive-CLKutfnD.js +445 -0
  58. package/dist/Incentive-CLKutfnD.js.map +1 -0
  59. package/dist/Incentive-CLSVNxDz.cjs +2 -0
  60. package/dist/Incentive-CLSVNxDz.cjs.map +1 -0
  61. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  62. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  63. package/dist/Incentives/AllowListIncentive.js +9 -9
  64. package/dist/Incentives/AllowListIncentive.js.map +1 -1
  65. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  66. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  67. package/dist/Incentives/CGDAIncentive.js +5 -5
  68. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  69. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  70. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  71. package/dist/Incentives/ERC20Incentive.js +17 -17
  72. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  73. package/dist/Incentives/ERC20PeggedIncentive.d.ts +1 -1
  74. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs +2 -0
  75. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs.map +1 -0
  76. package/dist/Incentives/{ERC20PeggedVariableCriteriaIncentive.d.ts → ERC20PeggedVariableCriteriaIncentiveV2.d.ts} +39 -27
  77. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.d.ts.map +1 -0
  78. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js +625 -0
  79. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js.map +1 -0
  80. package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs +2 -0
  81. package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs.map +1 -0
  82. package/dist/Incentives/{ERC20VariableCriteriaIncentive.d.ts → ERC20VariableCriteriaIncentiveV2.d.ts} +42 -13
  83. package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.d.ts.map +1 -0
  84. package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js +242 -0
  85. package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js.map +1 -0
  86. package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
  87. package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -1
  88. package/dist/Incentives/ERC20VariableIncentive.d.ts +3 -3
  89. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  90. package/dist/Incentives/ERC20VariableIncentive.js +22 -22
  91. package/dist/Incentives/ERC20VariableIncentive.js.map +1 -1
  92. package/dist/Incentives/Incentive.cjs +1 -1
  93. package/dist/Incentives/Incentive.d.ts +8 -8
  94. package/dist/Incentives/Incentive.d.ts.map +1 -1
  95. package/dist/Incentives/Incentive.js +13 -12
  96. package/dist/Incentives/Incentive.js.map +1 -1
  97. package/dist/Incentives/PointsIncentive.cjs +1 -1
  98. package/dist/Incentives/PointsIncentive.cjs.map +1 -1
  99. package/dist/Incentives/PointsIncentive.js +13 -13
  100. package/dist/Incentives/PointsIncentive.js.map +1 -1
  101. package/dist/SimpleDenyList-C1C_BHkY.js +133 -0
  102. package/dist/{SimpleDenyList-BKfPoTo1.js.map → SimpleDenyList-C1C_BHkY.js.map} +1 -1
  103. package/dist/SimpleDenyList-CWthbyj7.cjs +2 -0
  104. package/dist/{SimpleDenyList-DgjVf7FK.cjs.map → SimpleDenyList-CWthbyj7.cjs.map} +1 -1
  105. package/dist/Validators/LimitedSignerValidator.cjs +1 -1
  106. package/dist/Validators/LimitedSignerValidator.cjs.map +1 -1
  107. package/dist/Validators/LimitedSignerValidator.d.ts.map +1 -1
  108. package/dist/Validators/LimitedSignerValidator.js +48 -52
  109. package/dist/Validators/LimitedSignerValidator.js.map +1 -1
  110. package/dist/Validators/SignerValidator.cjs +1 -1
  111. package/dist/Validators/SignerValidator.cjs.map +1 -1
  112. package/dist/Validators/SignerValidator.js +54 -54
  113. package/dist/Validators/SignerValidator.js.map +1 -1
  114. package/dist/Validators/Validator.cjs +1 -1
  115. package/dist/Validators/Validator.js +2 -2
  116. package/dist/componentInterfaces-BVHB4Fjw.js +21 -0
  117. package/dist/componentInterfaces-BVHB4Fjw.js.map +1 -0
  118. package/dist/componentInterfaces-BqhL-meV.cjs +2 -0
  119. package/dist/componentInterfaces-BqhL-meV.cjs.map +1 -0
  120. package/dist/deployments-D9QxJGrC.cjs +2 -0
  121. package/dist/deployments-D9QxJGrC.cjs.map +1 -0
  122. package/dist/deployments-De8_J7SS.js +120 -0
  123. package/dist/{deployments-W_LUj833.js.map → deployments-De8_J7SS.js.map} +1 -1
  124. package/dist/deployments.json +63 -48
  125. package/dist/{generated-CElkFqkY.js → generated-BJfQ-EBO.js} +1268 -737
  126. package/dist/generated-BJfQ-EBO.js.map +1 -0
  127. package/dist/generated-mJJNq-xb.cjs +3 -0
  128. package/dist/generated-mJJNq-xb.cjs.map +1 -0
  129. package/dist/index.cjs +1 -1
  130. package/dist/index.d.ts +3 -2
  131. package/dist/index.d.ts.map +1 -1
  132. package/dist/index.js +162 -158
  133. package/dist/index.js.map +1 -1
  134. package/dist/utils.cjs.map +1 -1
  135. package/dist/utils.js.map +1 -1
  136. package/package.json +13 -7
  137. package/src/Actions/EventAction.ts +11 -0
  138. package/src/BoostCore.test.ts +14 -9
  139. package/src/BoostCore.ts +428 -26
  140. package/src/Budgets/Budget.ts +8 -1
  141. package/src/Budgets/TransparentBudget.test.ts +70 -0
  142. package/src/Budgets/TransparentBudget.ts +334 -0
  143. package/src/Deployable/Deployable.ts +1 -1
  144. package/src/Incentives/ERC20PeggedIncentive.ts +1 -1
  145. package/src/Incentives/{ERC20PeggedVariableCriteriaIncentive.test.ts → ERC20PeggedVariableCriteriaIncentiveV2.test.ts} +14 -10
  146. package/src/Incentives/{ERC20PeggedVariableCriteriaIncentive.ts → ERC20PeggedVariableCriteriaIncentiveV2.ts} +122 -100
  147. package/src/Incentives/{ERC20VariableCriteriaIncentive.test.ts → ERC20VariableCriteriaIncentiveV2.test.ts} +18 -13
  148. package/src/Incentives/{ERC20VariableCriteriaIncentive.ts → ERC20VariableCriteriaIncentiveV2.ts} +83 -24
  149. package/src/Incentives/ERC20VariableIncentive.ts +4 -2
  150. package/src/Incentives/Incentive.ts +12 -12
  151. package/src/Validators/LimitedSignerValidator.ts +1 -4
  152. package/src/index.test.ts +2 -2
  153. package/src/index.ts +3 -2
  154. package/src/utils.ts +1 -1
  155. package/dist/Budget-BjfL8dVX.cjs +0 -2
  156. package/dist/Budget-BjfL8dVX.cjs.map +0 -1
  157. package/dist/Budget-DD7IPuDx.js +0 -922
  158. package/dist/Budget-DD7IPuDx.js.map +0 -1
  159. package/dist/Incentive-V1RjH38L.js +0 -1036
  160. package/dist/Incentive-V1RjH38L.js.map +0 -1
  161. package/dist/Incentive-gVTfsnMB.cjs +0 -2
  162. package/dist/Incentive-gVTfsnMB.cjs.map +0 -1
  163. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts.map +0 -1
  164. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +0 -2
  165. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +0 -1
  166. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +0 -1
  167. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +0 -207
  168. package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +0 -1
  169. package/dist/SimpleDenyList-BKfPoTo1.js +0 -133
  170. package/dist/SimpleDenyList-DgjVf7FK.cjs +0 -2
  171. package/dist/componentInterfaces-CA1UIqWL.js +0 -20
  172. package/dist/componentInterfaces-CA1UIqWL.js.map +0 -1
  173. package/dist/componentInterfaces-aBgBbB7r.cjs +0 -2
  174. package/dist/componentInterfaces-aBgBbB7r.cjs.map +0 -1
  175. package/dist/deployments-CwTZr-cK.cjs +0 -2
  176. package/dist/deployments-CwTZr-cK.cjs.map +0 -1
  177. package/dist/deployments-W_LUj833.js +0 -117
  178. package/dist/generated-BPiHi7W2.cjs +0 -3
  179. package/dist/generated-BPiHi7W2.cjs.map +0 -1
  180. package/dist/generated-CElkFqkY.js.map +0 -1
@@ -1,11 +1,11 @@
1
- import { bG as V, bH as u0, bI as o0, bJ as p0, bK as c0 } from "../generated-CElkFqkY.js";
2
- import { getTransaction as B, getTransactionReceipt as Q } from "@wagmi/core";
3
- import { isAddressEqual as E, toEventSelector as j, decodeFunctionData as K, isAddress as X, decodeEventLog as O, zeroHash as N, fromHex as k, encodeAbiParameters as y0, pad as F, zeroAddress as b0, trim as l0 } from "viem";
4
- import { e as h0 } from "../deployments-W_LUj833.js";
1
+ import { cc as Q, cd as u0, ce as o0, cf as p0, cg as c0 } from "../generated-BJfQ-EBO.js";
2
+ import { getTransaction as B, getTransactionReceipt as j } from "@wagmi/core";
3
+ import { isAddressEqual as I, toEventSelector as z, decodeFunctionData as X, isAddress as K, decodeEventLog as O, zeroHash as N, fromHex as k, encodeAbiParameters as y0, pad as G, zeroAddress as b0, trim as l0 } from "viem";
4
+ import { g as h0 } from "../deployments-De8_J7SS.js";
5
5
  import { DeployableTarget as g0 } from "../Deployable/DeployableTarget.js";
6
- import { ValidationAbiMissingError as R, FunctionDataDecodeError as z, UnparseableAbiParamError as $, DecodedArgsMalformedError as x0, DecodedArgsError as d0, FieldValueUndefinedError as Y, InvalidTupleDecodingError as T, UnrecognizedFilterTypeError as m0, FieldValueNotComparableError as J, InvalidNumericalCriteriaError as _, NoEventActionStepsProvidedError as w0, TooManyEventActionStepsProvidedError as A0, InvalidTupleEncodingError as Z } from "../errors.js";
7
- import { RegistryType as T0, CheatCodes as S, TRANSFER_SIGNATURE as M } from "../utils.js";
8
- const v0 = "0x60a0604052348015600e575f80fd5b5060156019565b6078565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b8160c01c808260011c146073578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b608051611c276100905f395f6101510152611c275ff3fe6080604052600436106100ad575f3560e01c80639bc1cf8111610066578063d7768c471161004c578063d7768c4714610206578063dbdf211014610232578063ddd6ab0814610253575f80fd5b80639bc1cf81146101b9578063c26624e8146101da575f80fd5b806328d6183b1161009657806328d6183b14610106578063393df8cb14610140578063439fab9114610198575f80fd5b806301ffc9a7146100b157806309c5eabe146100e5575b5f80fd5b3480156100bc575f80fd5b506100d06100cb366004611281565b610270565b60405190151581526020015b60405180910390f35b6100f86100f33660046112c7565b6102cb565b6040516100dc929190611381565b348015610111575f80fd5b506040517f7687b0ed0000000000000000000000000000000000000000000000000000000081526020016100dc565b34801561014b575f80fd5b506101737f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100dc565b3480156101a3575f80fd5b506101b76101b23660046112c7565b610300565b005b3480156101c4575f80fd5b506101cd6103a0565b6040516100dc919061149b565b3480156101e5575f80fd5b506101f96101f436600461151c565b61059f565b6040516100dc9190611533565b348015610211575f80fd5b506102256102203660046112c7565b61077a565b6040516100dc9190611545565b34801561023d575f80fd5b506102466107ae565b6040516100dc91906115a7565b34801561025e575f80fd5b506004546040519081526020016100dc565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7687b0ed0000000000000000000000000000000000000000000000000000000014806102c557506102c582610858565b92915050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156103515760018160011c14303b106103485763f92ee8a95f526004601cfd5b818160ff1b1b91505b50610366610361838501856118a8565b6108ad565b801561039b576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610596578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff166001811115610410576104106113a3565b6001811115610421576104216113a3565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610494576104946113a3565b60078111156104a5576104a56113a3565b81528154602090910190610100900460ff1660058111156104c8576104c86113a3565b60058111156104d9576104d96113a3565b8152815462010000900463ffffffff166020820152600182018054604090920191610503906119a9565b80601f016020809104026020016040519081016040528092919081815260200182805461052f906119a9565b801561057a5780601f106105515761010080835404028352916020019161057a565b820191905f5260205f20905b81548152906001019060200180831161055d57829003601f168201915b50505050508152505081525050815260200190600101906103c3565b50505050905090565b6105a7611226565b600482815481106105ba576105ba6119fa565b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156105fd576105fd6113a3565b600181111561060e5761060e6113a3565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610681576106816113a3565b6007811115610692576106926113a3565b81528154602090910190610100900460ff1660058111156106b5576106b56113a3565b60058111156106c6576106c66113a3565b8152815462010000900463ffffffff1660208201526001820180546040909201916106f0906119a9565b80601f016020809104026020016040519081016040528092919081815260200182805461071c906119a9565b80156107675780601f1061073e57610100808354040283529160200191610767565b820191905f5260205f20905b81548152906001019060200180831161074a57829003601f168201915b5050509190925250505090525092915050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a081019091525f8054829060ff1660018111156107fc576107fc6113a3565b600181111561080d5761080d6113a3565b815260018201546020820152600282015460ff81166040830152610100900473ffffffffffffffffffffffffffffffffffffffff166060820152600390910154608090910152919050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe67157950000000000000000000000000000000000000000000000000000000014806102c557506102c582611156565b6108b56111ec565b805180515f8054909190829060ff1916600183818111156108d8576108d86113a3565b02179055506020828101516001808401919091556040840151600284018054606087015173ffffffffffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffff00000000000000000000000000000000000000000090911660ff90931692909217919091179055608090930151600390920191909155828101516004805480850182555f91909152815160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101918255928201517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c90930180549294919392909160ff19919091169083818111156109e1576109e16113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610aa257610aa26113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ae757610ae76113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610b3b9082611a72565b505050604083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610bcc57610bcc6113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610c8d57610c8d6113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610cd257610cd26113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610d269082611a72565b505050606083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610db757610db76113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610e7857610e786113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ebd57610ebd6113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610f119082611a72565b505050608083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610fa257610fa26113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115611063576110636113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101008360058111156110a8576110a86113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff909116178155606082015160018201906110fc9082611a72565b50505050507fdc8145a6c863ebd27b18aa903b7f82f1015527a05a81f227ef06ab79616082b4815f0151826020015183604001518460600151856080015160405161114b959493929190611b89565b60405180910390a150565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806102c557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146102c5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546001166112235763d7e6bcf85f526004601cfd5b50565b6040805160c081019091525f808252602082019081525f6020820181905260408201819052606082015260800161127c6040805160808101909152805f81526020015f81525f6020820152606060409091015290565b905290565b5f60208284031215611291575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112c0575f80fd5b9392505050565b5f80602083850312156112d8575f80fd5b823567ffffffffffffffff8111156112ee575f80fd5b8301601f810185136112fe575f80fd5b803567ffffffffffffffff811115611314575f80fd5b856020828401011115611325575f80fd5b6020919091019590945092505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b8215158152604060208201525f61139b6040830184611335565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600281106113e0576113e06113a3565b9052565b805182525f60208201516113fb60208501826113d0565b5060ff604083015116604084015273ffffffffffffffffffffffffffffffffffffffff60608301511660608401526080820151608084015260a082015160c060a0850152805160088110611451576114516113a3565b60c085015260208101516006811061146b5761146b6113a3565b60e0850152604081015163ffffffff1661010085015260600151608061012085015261139b610140850182611335565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b82811015611510577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184526114fb8583516113e4565b945060209384019391909101906001016114c1565b50929695505050505050565b5f6020828403121561152c575f80fd5b5035919050565b602081525f6112c060208301846113e4565b602081525f6112c06020830184611335565b6115628282516113d0565b6020810151602083015260ff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff6060820151166060830152608081015160808301525050565b60a081016102c58284611557565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160a0810167ffffffffffffffff81118282101715611605576116056115b5565b60405290565b60405160c0810167ffffffffffffffff81118282101715611605576116056115b5565b6040516080810167ffffffffffffffff81118282101715611605576116056115b5565b80356002811061165f575f80fd5b919050565b803560ff8116811461165f575f80fd5b803573ffffffffffffffffffffffffffffffffffffffff8116811461165f575f80fd5b5f60a082840312156116a7575f80fd5b6116af6115e2565b90506116ba82611651565b8152602082810135908201526116d260408301611664565b60408201526116e360608301611674565b606082015260809182013591810191909152919050565b5f82601f830112611709575f80fd5b813567ffffffffffffffff811115611723576117236115b5565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff81118282101715611770576117706115b5565b604052818152838201602001851015611787575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60c082840312156117b3575f80fd5b6117bb61160b565b8235815290506117cd60208301611651565b60208201526117de60408301611664565b60408201526117ef60608301611674565b60608201526080828101359082015260a082013567ffffffffffffffff811115611817575f80fd5b820160808185031215611828575f80fd5b61183061162e565b81356008811061183e575f80fd5b8152602082013560068110611851575f80fd5b6020820152604082013563ffffffff8116811461186c575f80fd5b6040820152606082013567ffffffffffffffff81111561188a575f80fd5b611896868285016116fa565b60608301525060a08301525092915050565b5f602082840312156118b8575f80fd5b813567ffffffffffffffff8111156118ce575f80fd5b820161012081850312156118e0575f80fd5b6118e86115e2565b6118f28583611697565b815260a082013567ffffffffffffffff81111561190d575f80fd5b611919868285016117a3565b60208301525060c082013567ffffffffffffffff811115611938575f80fd5b611944868285016117a3565b60408301525060e082013567ffffffffffffffff811115611963575f80fd5b61196f868285016117a3565b60608301525061010082013567ffffffffffffffff81111561198f575f80fd5b61199b868285016117a3565b608083015250949350505050565b600181811c908216806119bd57607f821691505b6020821081036119f4577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b601f82111561039b57805f5260205f20601f840160051c81016020851015611a4c5750805b601f840160051c820191505b81811015611a6b575f8155600101611a58565b5050505050565b815167ffffffffffffffff811115611a8c57611a8c6115b5565b611aa081611a9a84546119a9565b84611a27565b6020601f821160018114611af1575f8315611abb5750848201515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b178455611a6b565b5f848152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08516915b82811015611b3e5787850151825560209485019460019092019101611b1e565b5084821015611b7a57868401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b60f8161c191681555b50505050600190811b01905550565b611b938187611557565b61012060a08201525f611baa6101208301876113e4565b82810360c0840152611bbc81876113e4565b905082810360e0840152611bd081866113e4565b9050828103610100840152611be581856113e4565b9897505050505050505056fea2646970667358221220d56d85089e2c998c805bbe0d4e5ad7257c3cb379f303d0012771ee0f026004f864736f6c634300081a0033", I0 = {
6
+ import { ValidationAbiMissingError as R, FunctionDataDecodeError as V, UnparseableAbiParamError as $, DecodedArgsMalformedError as x0, DecodedArgsError as d0, FieldValueUndefinedError as Y, InvalidTupleDecodingError as v, UnrecognizedFilterTypeError as m0, FieldValueNotComparableError as Z, InvalidNumericalCriteriaError as _, NoEventActionStepsProvidedError as w0, TooManyEventActionStepsProvidedError as A0, InvalidTupleEncodingError as q } from "../errors.js";
7
+ import { RegistryType as v0, CheatCodes as S, TRANSFER_SIGNATURE as M } from "../utils.js";
8
+ const T0 = "0x60a0604052348015600e575f80fd5b5060156019565b607c565b63409feecd198054600181161560365763f92ee8a95f526004601cfd5b6001600160401b03808260011c146077578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b608051611c276100945f395f6101510152611c275ff3fe6080604052600436106100ad575f3560e01c80639bc1cf8111610066578063d7768c471161004c578063d7768c4714610206578063dbdf211014610232578063ddd6ab0814610253575f80fd5b80639bc1cf81146101b9578063c26624e8146101da575f80fd5b806328d6183b1161009657806328d6183b14610106578063393df8cb14610140578063439fab9114610198575f80fd5b806301ffc9a7146100b157806309c5eabe146100e5575b5f80fd5b3480156100bc575f80fd5b506100d06100cb366004611281565b610270565b60405190151581526020015b60405180910390f35b6100f86100f33660046112c7565b6102cb565b6040516100dc929190611381565b348015610111575f80fd5b506040517f7687b0ed0000000000000000000000000000000000000000000000000000000081526020016100dc565b34801561014b575f80fd5b506101737f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100dc565b3480156101a3575f80fd5b506101b76101b23660046112c7565b610300565b005b3480156101c4575f80fd5b506101cd6103a0565b6040516100dc919061149b565b3480156101e5575f80fd5b506101f96101f436600461151c565b61059f565b6040516100dc9190611533565b348015610211575f80fd5b506102256102203660046112c7565b61077a565b6040516100dc9190611545565b34801561023d575f80fd5b506102466107ae565b6040516100dc91906115a7565b34801561025e575f80fd5b506004546040519081526020016100dc565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f7687b0ed0000000000000000000000000000000000000000000000000000000014806102c557506102c582610858565b92915050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546003825580156103515760018160011c14303b106103485763f92ee8a95f526004601cfd5b818160ff1b1b91505b50610366610361838501856118a8565b6108ad565b801561039b576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b82821015610596578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff166001811115610410576104106113a3565b6001811115610421576104216113a3565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610494576104946113a3565b60078111156104a5576104a56113a3565b81528154602090910190610100900460ff1660058111156104c8576104c86113a3565b60058111156104d9576104d96113a3565b8152815462010000900463ffffffff166020820152600182018054604090920191610503906119a9565b80601f016020809104026020016040519081016040528092919081815260200182805461052f906119a9565b801561057a5780601f106105515761010080835404028352916020019161057a565b820191905f5260205f20905b81548152906001019060200180831161055d57829003601f168201915b50505050508152505081525050815260200190600101906103c3565b50505050905090565b6105a7611226565b600482815481106105ba576105ba6119fa565b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156105fd576105fd6113a3565b600181111561060e5761060e6113a3565b81526001820154610100810460ff90811660208401526201000090910473ffffffffffffffffffffffffffffffffffffffff1660408084019190915260028401546060840152805160808082019092526003850180549290940193909290918391166007811115610681576106816113a3565b6007811115610692576106926113a3565b81528154602090910190610100900460ff1660058111156106b5576106b56113a3565b60058111156106c6576106c66113a3565b8152815462010000900463ffffffff1660208201526001820180546040909201916106f0906119a9565b80601f016020809104026020016040519081016040528092919081815260200182805461071c906119a9565b80156107675780601f1061073e57610100808354040283529160200191610767565b820191905f5260205f20905b81548152906001019060200180831161074a57829003601f168201915b5050509190925250505090525092915050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040805160a0810182525f808252602082018190529181018290526060810182905260808101919091526040805160a081019091525f8054829060ff1660018111156107fc576107fc6113a3565b600181111561080d5761080d6113a3565b815260018201546020820152600282015460ff81166040830152610100900473ffffffffffffffffffffffffffffffffffffffff166060820152600390910154608090910152919050565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167fe67157950000000000000000000000000000000000000000000000000000000014806102c557506102c582611156565b6108b56111ec565b805180515f8054909190829060ff1916600183818111156108d8576108d86113a3565b02179055506020828101516001808401919091556040840151600284018054606087015173ffffffffffffffffffffffffffffffffffffffff16610100027fffffffffffffffffffffff00000000000000000000000000000000000000000090911660ff90931692909217919091179055608090930151600390920191909155828101516004805480850182555f91909152815160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b8101918255928201517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c90930180549294919392909160ff19919091169083818111156109e1576109e16113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610aa257610aa26113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ae757610ae76113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610b3b9082611a72565b505050604083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610bcc57610bcc6113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610c8d57610c8d6113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610cd257610cd26113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610d269082611a72565b505050606083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610db757610db76113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115610e7857610e786113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100836005811115610ebd57610ebd6113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff90911617815560608201516001820190610f119082611a72565b505050608083015160048054600181810183555f92909252825160059091027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b810191825560208401517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c909101805494965091945092909160ff19909116908381811115610fa257610fa26113a3565b0217905550604082015160018083018054606086015173ffffffffffffffffffffffffffffffffffffffff1662010000027fffffffffffffffffffff0000000000000000000000000000000000000000ffff60ff90951661010002949094167fffffffffffffffffffff000000000000000000000000000000000000000000ff90911617929092179091556080830151600283015560a0830151805160038401805492939092839160ff1990911690836007811115611063576110636113a3565b02179055506020820151815482907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff166101008360058111156110a8576110a86113a3565b02179055506040820151815463ffffffff90911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000ffff909116178155606082015160018201906110fc9082611a72565b50505050507fdc8145a6c863ebd27b18aa903b7f82f1015527a05a81f227ef06ab79616082b4815f0151826020015183604001518460600151856080015160405161114b959493929190611b89565b60405180910390a150565b5f7fffffffff0000000000000000000000000000000000000000000000000000000082167f6ab67a0d0000000000000000000000000000000000000000000000000000000014806102c557507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146102c5565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf60113280546001166112235763d7e6bcf85f526004601cfd5b50565b6040805160c081019091525f808252602082019081525f6020820181905260408201819052606082015260800161127c6040805160808101909152805f81526020015f81525f6020820152606060409091015290565b905290565b5f60208284031215611291575f80fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146112c0575f80fd5b9392505050565b5f80602083850312156112d8575f80fd5b823567ffffffffffffffff8111156112ee575f80fd5b8301601f810185136112fe575f80fd5b803567ffffffffffffffff811115611314575f80fd5b856020828401011115611325575f80fd5b6020919091019590945092505050565b5f81518084528060208401602086015e5f6020828601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f83011685010191505092915050565b8215158152604060208201525f61139b6040830184611335565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b600281106113e0576113e06113a3565b9052565b805182525f60208201516113fb60208501826113d0565b5060ff604083015116604084015273ffffffffffffffffffffffffffffffffffffffff60608301511660608401526080820151608084015260a082015160c060a0850152805160088110611451576114516113a3565b60c085015260208101516006811061146b5761146b6113a3565b60e0850152604081015163ffffffff1661010085015260600151608061012085015261139b610140850182611335565b5f602082016020835280845180835260408501915060408160051b8601019250602086015f5b82811015611510577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08786030184526114fb8583516113e4565b945060209384019391909101906001016114c1565b50929695505050505050565b5f6020828403121561152c575f80fd5b5035919050565b602081525f6112c060208301846113e4565b602081525f6112c06020830184611335565b6115628282516113d0565b6020810151602083015260ff604082015116604083015273ffffffffffffffffffffffffffffffffffffffff6060820151166060830152608081015160808301525050565b60a081016102c58284611557565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60405160a0810167ffffffffffffffff81118282101715611605576116056115b5565b60405290565b60405160c0810167ffffffffffffffff81118282101715611605576116056115b5565b6040516080810167ffffffffffffffff81118282101715611605576116056115b5565b80356002811061165f575f80fd5b919050565b803560ff8116811461165f575f80fd5b803573ffffffffffffffffffffffffffffffffffffffff8116811461165f575f80fd5b5f60a082840312156116a7575f80fd5b6116af6115e2565b90506116ba82611651565b8152602082810135908201526116d260408301611664565b60408201526116e360608301611674565b606082015260809182013591810191909152919050565b5f82601f830112611709575f80fd5b813567ffffffffffffffff811115611723576117236115b5565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810167ffffffffffffffff81118282101715611770576117706115b5565b604052818152838201602001851015611787575f80fd5b816020850160208301375f918101602001919091529392505050565b5f60c082840312156117b3575f80fd5b6117bb61160b565b8235815290506117cd60208301611651565b60208201526117de60408301611664565b60408201526117ef60608301611674565b60608201526080828101359082015260a082013567ffffffffffffffff811115611817575f80fd5b820160808185031215611828575f80fd5b61183061162e565b81356008811061183e575f80fd5b8152602082013560068110611851575f80fd5b6020820152604082013563ffffffff8116811461186c575f80fd5b6040820152606082013567ffffffffffffffff81111561188a575f80fd5b611896868285016116fa565b60608301525060a08301525092915050565b5f602082840312156118b8575f80fd5b813567ffffffffffffffff8111156118ce575f80fd5b820161012081850312156118e0575f80fd5b6118e86115e2565b6118f28583611697565b815260a082013567ffffffffffffffff81111561190d575f80fd5b611919868285016117a3565b60208301525060c082013567ffffffffffffffff811115611938575f80fd5b611944868285016117a3565b60408301525060e082013567ffffffffffffffff811115611963575f80fd5b61196f868285016117a3565b60608301525061010082013567ffffffffffffffff81111561198f575f80fd5b61199b868285016117a3565b608083015250949350505050565b600181811c908216806119bd57607f821691505b6020821081036119f4577f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b601f82111561039b57805f5260205f20601f840160051c81016020851015611a4c5750805b601f840160051c820191505b81811015611a6b575f8155600101611a58565b5050505050565b815167ffffffffffffffff811115611a8c57611a8c6115b5565b611aa081611a9a84546119a9565b84611a27565b6020601f821160018114611af1575f8315611abb5750848201515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600385901b1c1916600184901b178455611a6b565b5f848152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08516915b82811015611b3e5787850151825560209485019460019092019101611b1e565b5084821015611b7a57868401517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600387901b60f8161c191681555b50505050600190811b01905550565b611b938187611557565b61012060a08201525f611baa6101208301876113e4565b82810360c0840152611bbc81876113e4565b905082810360e0840152611bd081866113e4565b9050828103610100840152611be581856113e4565b9897505050505050505056fea2646970667358221220a8f9468bd81df646b95b9d19599966d6a1b1f344117e00f66aa985f1fdfee66b64736f6c634300081a0033", E0 = {
9
9
  "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
10
10
  name: "Transfer",
11
11
  type: "event",
@@ -1380,8 +1380,8 @@ const v0 = "0x60a0604052348015600e575f80fd5b5060156019565b6078565b63409feecd1980
1380
1380
  }
1381
1381
  ]
1382
1382
  }
1383
- }, h = Symbol.for("@ts-pattern/matcher"), E0 = Symbol.for("@ts-pattern/isVariadic"), D = "@ts-pattern/anonymous-select-key", H = (t) => !!(t && typeof t == "object"), L = (t) => t && !!t[h], l = (t, f, e) => {
1384
- if (L(t)) {
1383
+ }, h = Symbol.for("@ts-pattern/matcher"), I0 = Symbol.for("@ts-pattern/isVariadic"), L = "@ts-pattern/anonymous-select-key", H = (t) => !!(t && typeof t == "object"), D = (t) => t && !!t[h], l = (t, f, e) => {
1384
+ if (D(t)) {
1385
1385
  const n = t[h](), { matched: d, selections: i } = n.match(f);
1386
1386
  return d && i && Object.keys(i).forEach((a) => e(a, i[a])), d;
1387
1387
  }
@@ -1392,29 +1392,29 @@ const v0 = "0x60a0604052348015600e575f80fd5b5060156019565b6078565b63409feecd1980
1392
1392
  let n = [], d = [], i = [];
1393
1393
  for (const a of t.keys()) {
1394
1394
  const s = t[a];
1395
- L(s) && s[E0] ? i.push(s) : i.length ? d.push(s) : n.push(s);
1395
+ D(s) && s[I0] ? i.push(s) : i.length ? d.push(s) : n.push(s);
1396
1396
  }
1397
1397
  if (i.length) {
1398
1398
  if (i.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
1399
1399
  if (f.length < n.length + d.length) return !1;
1400
1400
  const a = f.slice(0, n.length), s = d.length === 0 ? [] : f.slice(-d.length), r = f.slice(n.length, d.length === 0 ? 1 / 0 : -d.length);
1401
- return n.every((p, I) => l(p, a[I], e)) && d.every((p, I) => l(p, s[I], e)) && (i.length === 0 || l(i[0], r, e));
1401
+ return n.every((p, E) => l(p, a[E], e)) && d.every((p, E) => l(p, s[E], e)) && (i.length === 0 || l(i[0], r, e));
1402
1402
  }
1403
1403
  return t.length === f.length && t.every((a, s) => l(a, f[s], e));
1404
1404
  }
1405
1405
  return Reflect.ownKeys(t).every((n) => {
1406
1406
  const d = t[n];
1407
- return (n in f || L(i = d) && i[h]().matcherType === "optional") && l(d, f[n], e);
1407
+ return (n in f || D(i = d) && i[h]().matcherType === "optional") && l(d, f[n], e);
1408
1408
  var i;
1409
1409
  });
1410
1410
  }
1411
1411
  return Object.is(f, t);
1412
1412
  }, A = (t) => {
1413
1413
  var f, e, n;
1414
- return H(t) ? L(t) ? (f = (e = (n = t[h]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? C(t, A) : C(Object.values(t), A) : [];
1414
+ return H(t) ? D(t) ? (f = (e = (n = t[h]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? C(t, A) : C(Object.values(t), A) : [];
1415
1415
  }, C = (t, f) => t.reduce((e, n) => e.concat(f(n)), []);
1416
1416
  function c(t) {
1417
- return Object.assign(t, { optional: () => N0(t), and: (f) => o(t, f), or: (f) => S0(t, f), select: (f) => f === void 0 ? q(t) : q(f, t) });
1417
+ return Object.assign(t, { optional: () => N0(t), and: (f) => o(t, f), or: (f) => S0(t, f), select: (f) => f === void 0 ? J(t) : J(f, t) });
1418
1418
  }
1419
1419
  function N0(t) {
1420
1420
  return c({ [h]: () => ({ match: (f) => {
@@ -1446,14 +1446,14 @@ function S0(...t) {
1446
1446
  function u(t) {
1447
1447
  return { [h]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
1448
1448
  }
1449
- function q(...t) {
1449
+ function J(...t) {
1450
1450
  const f = typeof t[0] == "string" ? t[0] : void 0, e = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
1451
1451
  return c({ [h]: () => ({ match: (n) => {
1452
- let d = { [f ?? D]: n };
1452
+ let d = { [f ?? L]: n };
1453
1453
  return { matched: e === void 0 || l(e, n, (i, a) => {
1454
1454
  d[i] = a;
1455
1455
  }), selections: d };
1456
- }, getSelectionKeys: () => [f ?? D].concat(e === void 0 ? [] : A(e)) }) });
1456
+ }, getSelectionKeys: () => [f ?? L].concat(e === void 0 ? [] : A(e)) }) });
1457
1457
  }
1458
1458
  function y(t) {
1459
1459
  return typeof t == "number";
@@ -1508,11 +1508,11 @@ class C0 extends Error {
1508
1508
  super(`Pattern matching error: no pattern matches value ${e}`), this.input = void 0, this.input = f;
1509
1509
  }
1510
1510
  }
1511
- const G = { matched: !1, value: void 0 };
1511
+ const F = { matched: !1, value: void 0 };
1512
1512
  function f0(t) {
1513
- return new U(t, G);
1513
+ return new W(t, F);
1514
1514
  }
1515
- class U {
1515
+ class W {
1516
1516
  constructor(f, e) {
1517
1517
  this.input = void 0, this.state = void 0, this.input = f, this.state = e;
1518
1518
  }
@@ -1522,15 +1522,15 @@ class U {
1522
1522
  let d;
1523
1523
  f.length === 3 && typeof f[1] == "function" ? d = f[1] : f.length > 2 && n.push(...f.slice(1, f.length - 1));
1524
1524
  let i = !1, a = {};
1525
- const s = (p, I) => {
1526
- i = !0, a[p] = I;
1527
- }, r = !n.some((p) => l(p, this.input, s)) || d && !d(this.input) ? G : { matched: !0, value: e(i ? D in a ? a[D] : a : this.input, this.input) };
1528
- return new U(this.input, r);
1525
+ const s = (p, E) => {
1526
+ i = !0, a[p] = E;
1527
+ }, r = !n.some((p) => l(p, this.input, s)) || d && !d(this.input) ? F : { matched: !0, value: e(i ? L in a ? a[L] : a : this.input, this.input) };
1528
+ return new W(this.input, r);
1529
1529
  }
1530
1530
  when(f, e) {
1531
1531
  if (this.state.matched) return this;
1532
1532
  const n = !!f(this.input);
1533
- return new U(this.input, n ? { matched: !0, value: e(this.input, this.input) } : G);
1533
+ return new W(this.input, n ? { matched: !0, value: e(this.input, this.input) } : F);
1534
1534
  }
1535
1535
  otherwise(f) {
1536
1536
  return this.state.matched ? this.state.value : f(this.input);
@@ -1546,13 +1546,13 @@ class U {
1546
1546
  return this;
1547
1547
  }
1548
1548
  }
1549
- var B0 = /* @__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))(B0 || {}), k0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t[t.TUPLE = 4] = "TUPLE", t[t.INT = 5] = "INT", t))(k0 || {}), R0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(R0 || {});
1550
- function _0(t) {
1549
+ var B0 = /* @__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))(B0 || {}), k0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t[t.TUPLE = 4] = "TUPLE", t[t.INT = 5] = "INT", t))(k0 || {}), R0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(R0 || {}), _0 = /* @__PURE__ */ ((t) => (t[t.RAW = 0] = "RAW", t[t.WAD = 1] = "WAD", t))(_0 || {});
1550
+ function P0(t) {
1551
1551
  return Array.isArray(t.actionSteps);
1552
1552
  }
1553
- const W = class W extends g0 {
1553
+ const U = class U extends g0 {
1554
1554
  constructor() {
1555
- super(...arguments), this.abi = V;
1555
+ super(...arguments), this.abi = Q;
1556
1556
  }
1557
1557
  /**
1558
1558
  * Gets a specific action event by index
@@ -1705,7 +1705,7 @@ const W = class W extends g0 {
1705
1705
  let i;
1706
1706
  if ("logs" in e) {
1707
1707
  for (let r of e.logs) {
1708
- if (!E(r.address, f.targetContract)) continue;
1708
+ if (!I(r.address, f.targetContract)) continue;
1709
1709
  let p = this.validateClaimantAgainstArgs(
1710
1710
  f,
1711
1711
  r
@@ -1714,16 +1714,16 @@ const W = class W extends g0 {
1714
1714
  }
1715
1715
  return i;
1716
1716
  }
1717
- const a = await Q(this._config, {
1717
+ const a = await j(this._config, {
1718
1718
  ...e,
1719
1719
  chainId: f.chainid
1720
1720
  });
1721
1721
  if (e.notBeforeBlockNumber && a.blockNumber < e.notBeforeBlockNumber)
1722
1722
  return;
1723
1723
  let s;
1724
- n === M ? { decodedLogs: s } = await this.decodeTransferLogs(a) : s = a.logs.filter((r) => r.topics[0] === j(d)).map((r) => n0(d, r));
1724
+ n === M ? { decodedLogs: s } = await this.decodeTransferLogs(a) : s = a.logs.filter((r) => r.topics[0] === z(d)).map((r) => n0(d, r));
1725
1725
  for (let r of s) {
1726
- if (!E(r.address, f.targetContract)) continue;
1726
+ if (!I(r.address, f.targetContract)) continue;
1727
1727
  let p = this.validateClaimantAgainstArgs(f, r);
1728
1728
  p && (i = p);
1729
1729
  }
@@ -1734,18 +1734,18 @@ const W = class W extends g0 {
1734
1734
  ...e,
1735
1735
  chainId: f.chainid
1736
1736
  });
1737
- if (e.notBeforeBlockNumber && d.blockNumber < e.notBeforeBlockNumber || !E(d.to, f.targetContract)) return;
1737
+ if (e.notBeforeBlockNumber && d.blockNumber < e.notBeforeBlockNumber || !I(d.to, f.targetContract)) return;
1738
1738
  let i;
1739
1739
  if (e.abiItem ? i = e.abiItem : i = e.knownSignatures[n], !i)
1740
1740
  throw new R(f.signature);
1741
1741
  let a;
1742
1742
  try {
1743
- a = K({
1743
+ a = X({
1744
1744
  abi: [i],
1745
1745
  data: d.input
1746
1746
  });
1747
1747
  } catch (s) {
1748
- throw new z([i], s);
1748
+ throw new V([i], s);
1749
1749
  }
1750
1750
  return this.validateClaimantAgainstArgs(f, a);
1751
1751
  }
@@ -1762,7 +1762,7 @@ const W = class W extends g0 {
1762
1762
  if (!e || !Array.isArray(e == null ? void 0 : e.args) || (e == null ? void 0 : e.args.length) <= f.fieldIndex)
1763
1763
  return;
1764
1764
  const n = e.args.at(f.fieldIndex);
1765
- if (X(n)) return n;
1765
+ if (K(n)) return n;
1766
1766
  }
1767
1767
  /**
1768
1768
  * Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
@@ -1804,7 +1804,7 @@ const W = class W extends g0 {
1804
1804
  );
1805
1805
  if ("logs" in e)
1806
1806
  return this.isActionEventValid(f, e.logs, d);
1807
- const i = await Q(this._config, {
1807
+ const i = await j(this._config, {
1808
1808
  ...e,
1809
1809
  chainId: f.chainid
1810
1810
  });
@@ -1814,7 +1814,7 @@ const W = class W extends g0 {
1814
1814
  const { decodedLogs: s, event: r } = await this.decodeTransferLogs(i);
1815
1815
  return this.isActionEventValid(f, s, r);
1816
1816
  }
1817
- const a = i.logs.filter((s) => s.topics[0] === j(d)).map((s) => n0(d, s));
1817
+ const a = i.logs.filter((s) => s.topics[0] === z(d)).map((s) => n0(d, s));
1818
1818
  return this.isActionEventValid(f, a, d);
1819
1819
  }
1820
1820
  if (f.signatureType === 1 && "hash" in e) {
@@ -1878,7 +1878,7 @@ const W = class W extends g0 {
1878
1878
  const e = f.logs.filter(
1879
1879
  (d) => d.topics[0] === M
1880
1880
  ), n = structuredClone(
1881
- I0["Transfer(address indexed,address indexed,uint256 indexed)"]
1881
+ E0["Transfer(address indexed,address indexed,uint256 indexed)"]
1882
1882
  );
1883
1883
  try {
1884
1884
  return {
@@ -1944,7 +1944,7 @@ const W = class W extends g0 {
1944
1944
  if (!a || !a.type)
1945
1945
  throw new $(e, a);
1946
1946
  const s = f[e], r = a0(a.type);
1947
- if (r === 1 && (typeof s != "string" || !X(s)))
1947
+ if (r === 1 && (typeof s != "string" || !K(s)))
1948
1948
  throw new Y({
1949
1949
  fieldValue: s,
1950
1950
  criteria: {
@@ -1956,7 +1956,7 @@ const W = class W extends g0 {
1956
1956
  });
1957
1957
  return { value: s, type: r };
1958
1958
  }
1959
- const i = W0(e);
1959
+ const i = M0(e);
1960
1960
  return i0(f, i, n);
1961
1961
  }
1962
1962
  /**
@@ -1979,12 +1979,12 @@ const W = class W extends g0 {
1979
1979
  throw new R(i);
1980
1980
  let s;
1981
1981
  try {
1982
- s = K({
1982
+ s = X({
1983
1983
  abi: [a],
1984
1984
  data: e.input
1985
1985
  });
1986
1986
  } catch (r) {
1987
- throw new z([a], r);
1987
+ throw new V([a], r);
1988
1988
  }
1989
1989
  if (!(s != null && s.args))
1990
1990
  return !1;
@@ -2018,7 +2018,7 @@ const W = class W extends g0 {
2018
2018
  if (f.filterType === 0 && f.fieldType === 2 && f.fieldIndex === S.ANY_ACTION_PARAM)
2019
2019
  return !0;
2020
2020
  if (f.fieldType === 4)
2021
- throw new T(
2021
+ throw new v(
2022
2022
  "Tuples should not be passed into validateFieldAgainstCriteria"
2023
2023
  );
2024
2024
  const d = f.fieldType;
@@ -2026,7 +2026,7 @@ const W = class W extends g0 {
2026
2026
  case 0:
2027
2027
  return f0(d).with(
2028
2028
  1,
2029
- () => E(f.filterData, e)
2029
+ () => I(f.filterData, e)
2030
2030
  ).with(
2031
2031
  0,
2032
2032
  () => BigInt(e) === BigInt(f.filterData)
@@ -2037,7 +2037,7 @@ const W = class W extends g0 {
2037
2037
  case 1:
2038
2038
  return f0(d).with(
2039
2039
  1,
2040
- () => !E(f.filterData, e)
2040
+ () => !I(f.filterData, e)
2041
2041
  ).with(
2042
2042
  0,
2043
2043
  () => BigInt(e) !== BigInt(f.filterData)
@@ -2085,14 +2085,14 @@ const W = class W extends g0 {
2085
2085
  let i;
2086
2086
  return d === 3 ? i = k(f.filterData, "string") : i = f.filterData.slice(2), e.includes(i);
2087
2087
  }
2088
- throw new J({
2088
+ throw new Z({
2089
2089
  ...n,
2090
2090
  criteria: f,
2091
2091
  fieldValue: e
2092
2092
  });
2093
2093
  case 5:
2094
2094
  if (typeof e != "string")
2095
- throw new J({
2095
+ throw new Z({
2096
2096
  ...n,
2097
2097
  criteria: f,
2098
2098
  fieldValue: e
@@ -2123,7 +2123,7 @@ const W = class W extends g0 {
2123
2123
  e
2124
2124
  );
2125
2125
  let i;
2126
- if (_0(n)) {
2126
+ if (P0(n)) {
2127
2127
  let a = n.actionSteps.filter((r) => !!r);
2128
2128
  if (a.length === 0)
2129
2129
  throw new w0();
@@ -2140,8 +2140,8 @@ const W = class W extends g0 {
2140
2140
  } else
2141
2141
  i = n;
2142
2142
  return {
2143
- abi: V,
2144
- bytecode: v0,
2143
+ abi: Q,
2144
+ bytecode: T0,
2145
2145
  args: [U0(i)],
2146
2146
  ...this.optionallyAttachAccount(d.account)
2147
2147
  };
@@ -2160,37 +2160,37 @@ const W = class W extends g0 {
2160
2160
  return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((n = e.inputs[f.actionParameter.fieldIndex]) != null && n.indexed));
2161
2161
  }
2162
2162
  };
2163
- W.bases = {
2163
+ U.bases = {
2164
2164
  31337: void 0,
2165
2165
  ...h0
2166
- }, W.registryType = T0.ACTION;
2167
- let e0 = W;
2168
- function P0(t) {
2166
+ }, U.registryType = v0.ACTION;
2167
+ let e0 = U;
2168
+ function D0(t) {
2169
2169
  return t.type === "tuple" || t.type.startsWith("tuple[");
2170
2170
  }
2171
2171
  function i0(t, f, e) {
2172
2172
  if (!f.length)
2173
- throw new T(
2173
+ throw new v(
2174
2174
  "No indexes found; cannot parse TUPLE field"
2175
2175
  );
2176
2176
  const n = f[0] ?? e.length + 1;
2177
2177
  if (n >= e.length)
2178
- throw new T(void 0, n);
2178
+ throw new v(void 0, n);
2179
2179
  const d = e[n], i = t[n];
2180
- if (!P0(d)) {
2180
+ if (!D0(d)) {
2181
2181
  const r = a0(d.type);
2182
2182
  return { value: i, type: r };
2183
2183
  }
2184
2184
  if (!Array.isArray(i))
2185
- throw new T(
2185
+ throw new v(
2186
2186
  "rawValue is not an array, but param.type is tuple"
2187
2187
  );
2188
2188
  const a = f.slice(1);
2189
2189
  if (!a.length)
2190
- throw new T(void 0, -1);
2190
+ throw new v(void 0, -1);
2191
2191
  const s = a[0] ?? d.components.length + 1;
2192
2192
  if (s >= d.components.length)
2193
- throw new T(void 0, s);
2193
+ throw new v(void 0, s);
2194
2194
  return i0(i, a, d.components);
2195
2195
  }
2196
2196
  function a0(t) {
@@ -2237,18 +2237,18 @@ function r0(t) {
2237
2237
  return f.slice(0, 56) === "0".repeat(56) ? 1 : 0;
2238
2238
  throw new Error("Invalid signature format");
2239
2239
  }
2240
- function D0(t) {
2241
- return l0(F(t));
2240
+ function W0(t) {
2241
+ return l0(G(t));
2242
2242
  }
2243
2243
  function P(t) {
2244
2244
  return {
2245
2245
  ...s0(t),
2246
2246
  signatureType: t.signatureType ?? r0(t.signature),
2247
- signature: F(t.signature),
2247
+ signature: G(t.signature),
2248
2248
  actionType: t.actionType || 0,
2249
2249
  actionParameter: t.actionParameter.fieldType === 0 ? {
2250
2250
  ...t.actionParameter,
2251
- filterData: D0(t.actionParameter.filterData)
2251
+ filterData: W0(t.actionParameter.filterData)
2252
2252
  } : t.actionParameter
2253
2253
  };
2254
2254
  }
@@ -2368,7 +2368,7 @@ function U0({
2368
2368
  actionClaimant: {
2369
2369
  ...s0(t),
2370
2370
  signatureType: t.signatureType ?? r0(t.signature),
2371
- signature: F(t.signature)
2371
+ signature: G(t.signature)
2372
2372
  },
2373
2373
  actionStepOne: P(f),
2374
2374
  actionStepTwo: P(e),
@@ -2378,7 +2378,7 @@ function U0({
2378
2378
  ]
2379
2379
  );
2380
2380
  }
2381
- function j0() {
2381
+ function X0() {
2382
2382
  return {
2383
2383
  filterType: 0,
2384
2384
  fieldType: 2,
@@ -2395,24 +2395,24 @@ function K0(t) {
2395
2395
  chainid: t
2396
2396
  };
2397
2397
  }
2398
- const v = 63;
2399
- function X0(t) {
2398
+ const T = 63;
2399
+ function V0(t) {
2400
2400
  if (t.length > 5)
2401
- throw new Z("Can only pack up to 5 indexes.");
2401
+ throw new q("Can only pack up to 5 indexes.");
2402
2402
  let f = 0;
2403
2403
  return t.forEach((e, n) => {
2404
- if (e > v)
2405
- throw new Z(
2406
- `Index ${e} exceeds the maximum allowed value (${v}).`
2404
+ if (e > T)
2405
+ throw new q(
2406
+ `Index ${e} exceeds the maximum allowed value (${T}).`
2407
2407
  );
2408
- f |= (e & v) << n * 6;
2409
- }), t.length < 5 && (f |= v << t.length * 6), f;
2408
+ f |= (e & T) << n * 6;
2409
+ }), t.length < 5 && (f |= T << t.length * 6), f;
2410
2410
  }
2411
- function W0(t) {
2411
+ function M0(t) {
2412
2412
  const f = [];
2413
2413
  for (let e = 0; e < 5; e++) {
2414
- const n = t >> e * 6 & v;
2415
- if (n === v) break;
2414
+ const n = t >> e * 6 & T;
2415
+ if (n === T) break;
2416
2416
  f.push(n);
2417
2417
  }
2418
2418
  return f;
@@ -2448,13 +2448,14 @@ export {
2448
2448
  B0 as FilterType,
2449
2449
  k0 as PrimitiveType,
2450
2450
  R0 as SignatureType,
2451
- j0 as anyActionParameter,
2451
+ _0 as ValueType,
2452
+ X0 as anyActionParameter,
2452
2453
  n0 as decodeAndReorderLogArgs,
2453
2454
  r0 as detectSignatureType,
2454
- _0 as isEventActionPayloadSimple,
2455
- X0 as packFieldIndexes,
2455
+ P0 as isEventActionPayloadSimple,
2456
+ V0 as packFieldIndexes,
2456
2457
  U0 as prepareEventActionPayload,
2457
2458
  K0 as transactionSenderClaimant,
2458
- W0 as unpackFieldIndexes
2459
+ M0 as unpackFieldIndexes
2459
2460
  };
2460
2461
  //# sourceMappingURL=EventAction.js.map