@boostxyz/sdk 0.0.0-alpha.17 → 0.0.0-alpha.19

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 (205) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.cjs.map +1 -1
  3. package/dist/Actions/Action.js +13 -13
  4. package/dist/Actions/ContractAction.d.ts +9 -9
  5. package/dist/Actions/ContractAction.d.ts.map +1 -1
  6. package/dist/Actions/ERC721MintAction.d.ts +12 -12
  7. package/dist/Actions/ERC721MintAction.d.ts.map +1 -1
  8. package/dist/Actions/EventAction.cjs +1 -1
  9. package/dist/Actions/EventAction.cjs.map +1 -1
  10. package/dist/Actions/EventAction.d.ts +32 -49
  11. package/dist/Actions/EventAction.d.ts.map +1 -1
  12. package/dist/Actions/EventAction.js +13 -962
  13. package/dist/Actions/EventAction.js.map +1 -1
  14. package/dist/AllowLists/AllowList.cjs +1 -1
  15. package/dist/AllowLists/AllowList.js +3 -3
  16. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  17. package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
  18. package/dist/AllowLists/SimpleAllowList.d.ts +5 -5
  19. package/dist/AllowLists/SimpleAllowList.js +24 -24
  20. package/dist/AllowLists/SimpleAllowList.js.map +1 -1
  21. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  22. package/dist/AllowLists/SimpleDenyList.d.ts +6 -6
  23. package/dist/AllowLists/SimpleDenyList.js +3 -3
  24. package/dist/Auth/PassthroughAuth.cjs +1 -1
  25. package/dist/Auth/PassthroughAuth.js +1 -1
  26. package/dist/Boost.cjs.map +1 -1
  27. package/dist/Boost.d.ts +18 -0
  28. package/dist/Boost.d.ts.map +1 -1
  29. package/dist/Boost.js.map +1 -1
  30. package/dist/BoostCore-BiPwp6SR.cjs +3 -0
  31. package/dist/BoostCore-BiPwp6SR.cjs.map +1 -0
  32. package/dist/BoostCore-kwoUw7YE.js +1477 -0
  33. package/dist/BoostCore-kwoUw7YE.js.map +1 -0
  34. package/dist/BoostCore.cjs +1 -2
  35. package/dist/BoostCore.cjs.map +1 -1
  36. package/dist/BoostCore.d.ts +86 -36
  37. package/dist/BoostCore.d.ts.map +1 -1
  38. package/dist/BoostCore.js +29 -1273
  39. package/dist/BoostCore.js.map +1 -1
  40. package/dist/BoostRegistry.cjs +1 -1
  41. package/dist/BoostRegistry.cjs.map +1 -1
  42. package/dist/BoostRegistry.d.ts +25 -19
  43. package/dist/BoostRegistry.d.ts.map +1 -1
  44. package/dist/BoostRegistry.js +30 -29
  45. package/dist/BoostRegistry.js.map +1 -1
  46. package/dist/Budgets/Budget.cjs +1 -1
  47. package/dist/Budgets/Budget.js +2 -2
  48. package/dist/Budgets/ManagedBudget.cjs +1 -1
  49. package/dist/Budgets/ManagedBudget.cjs.map +1 -1
  50. package/dist/Budgets/ManagedBudget.d.ts +18 -18
  51. package/dist/Budgets/ManagedBudget.js +48 -48
  52. package/dist/Budgets/ManagedBudget.js.map +1 -1
  53. package/dist/Budgets/VestingBudget.d.ts +23 -23
  54. package/dist/Deployable/Contract.cjs +1 -1
  55. package/dist/Deployable/Contract.cjs.map +1 -1
  56. package/dist/Deployable/Contract.d.ts +4 -5
  57. package/dist/Deployable/Contract.d.ts.map +1 -1
  58. package/dist/Deployable/Contract.js +4 -5
  59. package/dist/Deployable/Contract.js.map +1 -1
  60. package/dist/Deployable/Deployable.cjs.map +1 -1
  61. package/dist/Deployable/Deployable.d.ts +1 -1
  62. package/dist/Deployable/Deployable.js +1 -1
  63. package/dist/Deployable/Deployable.js.map +1 -1
  64. package/dist/Deployable/DeployableTarget.cjs +1 -1
  65. package/dist/Deployable/DeployableTarget.cjs.map +1 -1
  66. package/dist/Deployable/DeployableTarget.d.ts +5 -5
  67. package/dist/Deployable/DeployableTarget.js +6 -6
  68. package/dist/Deployable/DeployableTarget.js.map +1 -1
  69. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  70. package/dist/Deployable/DeployableTargetWithRBAC.cjs.map +1 -1
  71. package/dist/Deployable/DeployableTargetWithRBAC.d.ts +15 -15
  72. package/dist/Deployable/DeployableTargetWithRBAC.js +33 -33
  73. package/dist/Deployable/DeployableTargetWithRBAC.js.map +1 -1
  74. package/dist/EventAction-D5tnm00s.js +1355 -0
  75. package/dist/EventAction-D5tnm00s.js.map +1 -0
  76. package/dist/EventAction-DBDRaG4A.cjs +2 -0
  77. package/dist/EventAction-DBDRaG4A.cjs.map +1 -0
  78. package/dist/{Incentive-DJf-vdyL.js → Incentive-Bp8Sez7M.js} +61 -62
  79. package/dist/Incentive-Bp8Sez7M.js.map +1 -0
  80. package/dist/{Incentive-DNwROd1r.cjs → Incentive-Djnzseoj.cjs} +2 -2
  81. package/dist/Incentive-Djnzseoj.cjs.map +1 -0
  82. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  83. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  84. package/dist/Incentives/AllowListIncentive.d.ts +12 -12
  85. package/dist/Incentives/AllowListIncentive.js +19 -19
  86. package/dist/Incentives/AllowListIncentive.js.map +1 -1
  87. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  88. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  89. package/dist/Incentives/CGDAIncentive.d.ts +15 -15
  90. package/dist/Incentives/CGDAIncentive.js +18 -18
  91. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  92. package/dist/Incentives/ERC1155Incentive.d.ts +30 -30
  93. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  94. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  95. package/dist/Incentives/ERC20Incentive.d.ts +23 -23
  96. package/dist/Incentives/ERC20Incentive.js +25 -25
  97. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  98. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts +523 -0
  99. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -0
  100. package/dist/Incentives/ERC20VariableIncentive.d.ts +19 -19
  101. package/dist/Incentives/Incentive.cjs +1 -1
  102. package/dist/Incentives/Incentive.d.ts +3 -3
  103. package/dist/Incentives/Incentive.d.ts.map +1 -1
  104. package/dist/Incentives/Incentive.js +3 -3
  105. package/dist/Incentives/PointsIncentive.cjs +1 -1
  106. package/dist/Incentives/PointsIncentive.cjs.map +1 -1
  107. package/dist/Incentives/PointsIncentive.d.ts +14 -14
  108. package/dist/Incentives/PointsIncentive.js +21 -21
  109. package/dist/Incentives/PointsIncentive.js.map +1 -1
  110. package/dist/{SimpleDenyList-DMlUkmAn.cjs → SimpleDenyList-BwfNjRsg.cjs} +2 -2
  111. package/dist/SimpleDenyList-BwfNjRsg.cjs.map +1 -0
  112. package/dist/{SimpleDenyList-DvUvmOeE.js → SimpleDenyList-Cn5WpNn0.js} +9 -9
  113. package/dist/SimpleDenyList-Cn5WpNn0.js.map +1 -0
  114. package/dist/Validators/SignerValidator.cjs +1 -1
  115. package/dist/Validators/SignerValidator.cjs.map +1 -1
  116. package/dist/Validators/SignerValidator.d.ts +14 -14
  117. package/dist/Validators/SignerValidator.js +19 -19
  118. package/dist/Validators/SignerValidator.js.map +1 -1
  119. package/dist/Validators/Validator.cjs +1 -1
  120. package/dist/Validators/Validator.cjs.map +1 -1
  121. package/dist/Validators/Validator.d.ts +1 -1
  122. package/dist/Validators/Validator.js +6 -6
  123. package/dist/Validators/Validator.js.map +1 -1
  124. package/dist/claiming.cjs.map +1 -1
  125. package/dist/claiming.d.ts +1 -1
  126. package/dist/claiming.js.map +1 -1
  127. package/dist/componentInterfaces-D09mhzxO.cjs +2 -0
  128. package/dist/componentInterfaces-D09mhzxO.cjs.map +1 -0
  129. package/dist/componentInterfaces-RXBMI5yH.js +14 -0
  130. package/dist/componentInterfaces-RXBMI5yH.js.map +1 -0
  131. package/dist/deployments-BM42vImE.js +43 -0
  132. package/dist/deployments-BM42vImE.js.map +1 -0
  133. package/dist/deployments-CMdF5uEC.cjs +2 -0
  134. package/dist/deployments-CMdF5uEC.cjs.map +1 -0
  135. package/dist/deployments.json +15 -12
  136. package/dist/errors.cjs +1 -1
  137. package/dist/errors.cjs.map +1 -1
  138. package/dist/errors.d.ts +132 -0
  139. package/dist/errors.d.ts.map +1 -1
  140. package/dist/errors.js +122 -36
  141. package/dist/errors.js.map +1 -1
  142. package/dist/generated-B0tk-c9b.cjs +3 -0
  143. package/dist/generated-B0tk-c9b.cjs.map +1 -0
  144. package/dist/{generated-C_7Jx3YG.js → generated-B7VaSah4.js} +631 -343
  145. package/dist/generated-B7VaSah4.js.map +1 -0
  146. package/dist/index.cjs +1 -1
  147. package/dist/index.d.ts +1 -0
  148. package/dist/index.d.ts.map +1 -1
  149. package/dist/index.js +135 -126
  150. package/dist/transfers.cjs.map +1 -1
  151. package/dist/transfers.d.ts +1 -1
  152. package/dist/transfers.js.map +1 -1
  153. package/dist/utils.cjs.map +1 -1
  154. package/dist/utils.d.ts +1 -1
  155. package/dist/utils.js.map +1 -1
  156. package/package.json +5 -5
  157. package/src/Actions/ContractAction.ts +9 -10
  158. package/src/Actions/ERC721MintAction.ts +12 -13
  159. package/src/Actions/EventAction.test.ts +45 -54
  160. package/src/Actions/EventAction.ts +100 -100
  161. package/src/AllowLists/SimpleAllowList.ts +5 -5
  162. package/src/AllowLists/SimpleDenyList.ts +6 -6
  163. package/src/Boost.ts +19 -0
  164. package/src/BoostCore.test.ts +117 -1
  165. package/src/BoostCore.ts +121 -57
  166. package/src/BoostRegistry.ts +29 -21
  167. package/src/Budgets/ManagedBudget.ts +18 -18
  168. package/src/Budgets/VestingBudget.ts +23 -23
  169. package/src/Deployable/Contract.ts +4 -5
  170. package/src/Deployable/Deployable.ts +1 -1
  171. package/src/Deployable/DeployableTarget.ts +5 -5
  172. package/src/Deployable/DeployableTargetWithRBAC.ts +15 -15
  173. package/src/Incentives/AllowListIncentive.ts +12 -12
  174. package/src/Incentives/CGDAIncentive.ts +15 -15
  175. package/src/Incentives/ERC1155Incentive.ts +26 -26
  176. package/src/Incentives/ERC20Incentive.ts +23 -23
  177. package/src/Incentives/ERC20VariableCriteriaIncentive.test.ts +184 -0
  178. package/src/Incentives/ERC20VariableCriteriaIncentive.ts +309 -0
  179. package/src/Incentives/ERC20VariableIncentive.ts +19 -19
  180. package/src/Incentives/Incentive.ts +6 -5
  181. package/src/Incentives/PointsIncentive.test.ts +21 -21
  182. package/src/Incentives/PointsIncentive.ts +14 -14
  183. package/src/Validators/SignerValidator.ts +14 -14
  184. package/src/Validators/Validator.ts +1 -1
  185. package/src/claiming.ts +1 -1
  186. package/src/errors.ts +165 -0
  187. package/src/index.test.ts +117 -33
  188. package/src/index.ts +1 -0
  189. package/src/transfers.ts +1 -1
  190. package/src/utils.ts +1 -1
  191. package/dist/Incentive-DJf-vdyL.js.map +0 -1
  192. package/dist/Incentive-DNwROd1r.cjs.map +0 -1
  193. package/dist/SimpleDenyList-DMlUkmAn.cjs.map +0 -1
  194. package/dist/SimpleDenyList-DvUvmOeE.js.map +0 -1
  195. package/dist/componentInterfaces-BPVR_Ykd.js +0 -13
  196. package/dist/componentInterfaces-BPVR_Ykd.js.map +0 -1
  197. package/dist/componentInterfaces-BfppSIl4.cjs +0 -2
  198. package/dist/componentInterfaces-BfppSIl4.cjs.map +0 -1
  199. package/dist/deployments-BvFcK_eR.js +0 -40
  200. package/dist/deployments-BvFcK_eR.js.map +0 -1
  201. package/dist/deployments-Ho4PnGCS.cjs +0 -2
  202. package/dist/deployments-Ho4PnGCS.cjs.map +0 -1
  203. package/dist/generated-CMQ6ZC2_.cjs +0 -3
  204. package/dist/generated-CMQ6ZC2_.cjs.map +0 -1
  205. package/dist/generated-C_7Jx3YG.js.map +0 -1
@@ -0,0 +1,1355 @@
1
+ import { b8 as M, b9 as K, ba as H, bb as W, bc as $ } from "./generated-B7VaSah4.js";
2
+ import { decodeEventLog as Q, decodeFunctionData as X, fromHex as I, isAddressEqual as B, encodeAbiParameters as q } from "viem";
3
+ import { d as z } from "./deployments-BM42vImE.js";
4
+ import { DeployableTarget as J } from "./Deployable/DeployableTarget.js";
5
+ import { ValidationAbiMissingError as F, UnparseableAbiParamError as Y, ValidationLogsMissingError as Z, FunctionDataDecodeError as f0, UnrecognizedFilterTypeError as e0, FieldValueNotComparableError as O, InvalidNumericalCriteriaError as V, DecodedArgsMalformedError as t0, FieldValueUndefinedError as _, NoEventActionStepsProvidedError as n0, TooManyEventActionStepsProvidedError as a0 } from "./errors.js";
6
+ import { RegistryType as b0 } from "./utils.js";
7
+ const d0 = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660058111156105305761052f6115d7565b5b6005811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600581111561076e5761076d6115d7565b5b60058111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600581111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600581111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600681106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60068110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220c0fb13f888b0a69e33db3d7586e65062d85bac26cd33b0773ccbf5249746b2b264736f6c634300081a0033", s0 = {
8
+ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
9
+ name: "Transfer",
10
+ type: "event",
11
+ inputs: [
12
+ {
13
+ type: "address",
14
+ indexed: !0
15
+ },
16
+ {
17
+ type: "address",
18
+ indexed: !0
19
+ },
20
+ {
21
+ type: "uint256",
22
+ indexed: !0
23
+ }
24
+ ]
25
+ },
26
+ "Transfer(address indexed,address indexed,uint256 indexed)": {
27
+ name: "Transfer",
28
+ type: "event",
29
+ inputs: [
30
+ {
31
+ type: "address",
32
+ indexed: !0
33
+ },
34
+ {
35
+ type: "address",
36
+ indexed: !0
37
+ },
38
+ {
39
+ type: "uint256",
40
+ indexed: !0
41
+ }
42
+ ]
43
+ },
44
+ "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e": {
45
+ name: "Purchased",
46
+ type: "event",
47
+ inputs: [
48
+ {
49
+ type: "address",
50
+ indexed: !0
51
+ },
52
+ {
53
+ type: "address",
54
+ indexed: !0
55
+ },
56
+ {
57
+ type: "uint256",
58
+ indexed: !0
59
+ },
60
+ {
61
+ type: "uint256"
62
+ },
63
+ {
64
+ type: "uint256"
65
+ }
66
+ ]
67
+ },
68
+ "Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)": {
69
+ name: "Purchased",
70
+ type: "event",
71
+ inputs: [
72
+ {
73
+ type: "address",
74
+ indexed: !0
75
+ },
76
+ {
77
+ type: "address",
78
+ indexed: !0
79
+ },
80
+ {
81
+ type: "uint256",
82
+ indexed: !0
83
+ },
84
+ {
85
+ type: "uint256"
86
+ },
87
+ {
88
+ type: "uint256"
89
+ }
90
+ ]
91
+ },
92
+ "0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27": {
93
+ name: "NameRegistered",
94
+ type: "event",
95
+ inputs: [
96
+ {
97
+ type: "string"
98
+ },
99
+ {
100
+ type: "bytes32"
101
+ },
102
+ {
103
+ type: "address"
104
+ },
105
+ {
106
+ type: "uint256"
107
+ },
108
+ {
109
+ type: "uint256"
110
+ },
111
+ {
112
+ type: "uint256"
113
+ }
114
+ ]
115
+ },
116
+ "NameRegistered(string,bytes32,address,uint256,uint256,uint256)": {
117
+ name: "NameRegistered",
118
+ type: "event",
119
+ inputs: [
120
+ {
121
+ type: "string"
122
+ },
123
+ {
124
+ type: "bytes32"
125
+ },
126
+ {
127
+ type: "address"
128
+ },
129
+ {
130
+ type: "uint256"
131
+ },
132
+ {
133
+ type: "uint256"
134
+ },
135
+ {
136
+ type: "uint256"
137
+ }
138
+ ]
139
+ },
140
+ "0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f": {
141
+ name: "DelegateChanged",
142
+ type: "event",
143
+ inputs: [
144
+ {
145
+ type: "address",
146
+ indexed: !0
147
+ },
148
+ {
149
+ type: "address",
150
+ indexed: !0
151
+ },
152
+ {
153
+ type: "address",
154
+ indexed: !0
155
+ }
156
+ ]
157
+ },
158
+ "DelegateChanged(address indexed,address indexed,address indexed)": {
159
+ name: "DelegateChanged",
160
+ type: "event",
161
+ inputs: [
162
+ {
163
+ type: "address",
164
+ indexed: !0
165
+ },
166
+ {
167
+ type: "address",
168
+ indexed: !0
169
+ },
170
+ {
171
+ type: "address",
172
+ indexed: !0
173
+ }
174
+ ]
175
+ },
176
+ "0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0": {
177
+ name: "SwappedV3",
178
+ type: "event",
179
+ inputs: [
180
+ {
181
+ type: "bytes16"
182
+ },
183
+ {
184
+ type: "address"
185
+ },
186
+ {
187
+ type: "uint256"
188
+ },
189
+ {
190
+ type: "address"
191
+ },
192
+ {
193
+ type: "address",
194
+ indexed: !0
195
+ },
196
+ {
197
+ type: "address",
198
+ indexed: !0
199
+ },
200
+ {
201
+ type: "address",
202
+ indexed: !0
203
+ },
204
+ {
205
+ type: "uint256"
206
+ },
207
+ {
208
+ type: "uint256"
209
+ },
210
+ {
211
+ type: "uint256"
212
+ }
213
+ ]
214
+ },
215
+ "SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)": {
216
+ name: "SwappedV3",
217
+ type: "event",
218
+ inputs: [
219
+ {
220
+ type: "bytes16"
221
+ },
222
+ {
223
+ type: "address"
224
+ },
225
+ {
226
+ type: "uint256"
227
+ },
228
+ {
229
+ type: "address"
230
+ },
231
+ {
232
+ type: "address",
233
+ indexed: !0
234
+ },
235
+ {
236
+ type: "address",
237
+ indexed: !0
238
+ },
239
+ {
240
+ type: "address",
241
+ indexed: !0
242
+ },
243
+ {
244
+ type: "uint256"
245
+ },
246
+ {
247
+ type: "uint256"
248
+ },
249
+ {
250
+ type: "uint256"
251
+ }
252
+ ]
253
+ },
254
+ "0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4": {
255
+ name: "VoteCast",
256
+ type: "event",
257
+ inputs: [
258
+ {
259
+ type: "address",
260
+ indexed: !0
261
+ },
262
+ {
263
+ type: "uint256"
264
+ },
265
+ {
266
+ type: "uint8"
267
+ },
268
+ {
269
+ type: "uint256"
270
+ },
271
+ {
272
+ type: "string"
273
+ }
274
+ ]
275
+ },
276
+ "VoteCast(address indexed,uint256,uint8,uint256,string)": {
277
+ name: "VoteCast",
278
+ type: "event",
279
+ inputs: [
280
+ {
281
+ type: "address",
282
+ indexed: !0
283
+ },
284
+ {
285
+ type: "uint256"
286
+ },
287
+ {
288
+ type: "uint8"
289
+ },
290
+ {
291
+ type: "uint256"
292
+ },
293
+ {
294
+ type: "string"
295
+ }
296
+ ]
297
+ },
298
+ "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b": {
299
+ name: "InfoIndexed",
300
+ type: "event",
301
+ inputs: [
302
+ {
303
+ type: "address",
304
+ indexed: !0
305
+ },
306
+ {
307
+ type: "string",
308
+ indexed: !0
309
+ }
310
+ ]
311
+ },
312
+ "InfoIndexed(address indexed,string indexed)": {
313
+ name: "InfoIndexed",
314
+ type: "event",
315
+ inputs: [
316
+ {
317
+ type: "address",
318
+ indexed: !0
319
+ },
320
+ {
321
+ type: "string",
322
+ indexed: !0
323
+ }
324
+ ]
325
+ },
326
+ "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c": {
327
+ name: "Info",
328
+ type: "event",
329
+ inputs: [
330
+ {
331
+ type: "address"
332
+ },
333
+ {
334
+ type: "string"
335
+ }
336
+ ]
337
+ },
338
+ "Info(address,string)": {
339
+ name: "Info",
340
+ type: "event",
341
+ inputs: [
342
+ {
343
+ type: "address"
344
+ },
345
+ {
346
+ type: "string"
347
+ }
348
+ ]
349
+ }
350
+ }, i0 = {
351
+ "Transfer(address indexed,address indexed,uint256 indexed)": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
352
+ "Purchased(address indexed,address indexed,uint256 indexed,uint256,uint256)": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
353
+ "NameRegistered(string,bytes32,address,uint256,uint256,uint256)": "0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27",
354
+ "DelegateChanged(address indexed,address indexed,address indexed)": "0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f",
355
+ "SwappedV3(bytes16,address,uint256,address,address indexed,address indexed,address indexed,uint256,uint256,uint256)": "0xe00361d207b252a464323eb23d45d42583e391f2031acdd2e9fa36efddd43cb0",
356
+ "VoteCast(address indexed,uint256,uint8,uint256,string)": "0xb8e138887d0aa13bab447e82de9d5c1777041ecd21ca36ba824ff1e6c07ddda4",
357
+ "InfoIndexed(address indexed,string indexed)": "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b",
358
+ "Info(address,string)": "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c"
359
+ }, r0 = {
360
+ abi: s0,
361
+ selectors: i0
362
+ }, c0 = {
363
+ "0x0000000000000000000000000000000000000000000000000000000040c10f19": {
364
+ name: "mint",
365
+ type: "function",
366
+ stateMutability: "nonpayable",
367
+ inputs: [
368
+ {
369
+ type: "address",
370
+ name: "to"
371
+ },
372
+ {
373
+ type: "uint256",
374
+ name: "amount"
375
+ }
376
+ ],
377
+ outputs: []
378
+ },
379
+ "mint(address to, uint256 amount)": {
380
+ name: "mint",
381
+ type: "function",
382
+ stateMutability: "nonpayable",
383
+ inputs: [
384
+ {
385
+ type: "address",
386
+ name: "to"
387
+ },
388
+ {
389
+ type: "uint256",
390
+ name: "amount"
391
+ }
392
+ ],
393
+ outputs: []
394
+ },
395
+ "0x0000000000000000000000000000000000000000000000000000000017d304b0": {
396
+ name: "mintPayable",
397
+ type: "function",
398
+ stateMutability: "nonpayable",
399
+ inputs: [
400
+ {
401
+ type: "address",
402
+ name: "to"
403
+ },
404
+ {
405
+ type: "uint256",
406
+ name: "amount"
407
+ }
408
+ ],
409
+ outputs: []
410
+ },
411
+ "mintPayable(address to, uint256 amount)": {
412
+ name: "mintPayable",
413
+ type: "function",
414
+ stateMutability: "nonpayable",
415
+ inputs: [
416
+ {
417
+ type: "address",
418
+ name: "to"
419
+ },
420
+ {
421
+ type: "uint256",
422
+ name: "amount"
423
+ }
424
+ ],
425
+ outputs: []
426
+ },
427
+ "0x0000000000000000000000000000000000000000000000000000000024856bc3": {
428
+ name: "execute",
429
+ type: "function",
430
+ stateMutability: "nonpayable",
431
+ inputs: [
432
+ {
433
+ type: "bytes",
434
+ name: "commands"
435
+ },
436
+ {
437
+ type: "bytes[]",
438
+ name: "inputs"
439
+ }
440
+ ],
441
+ outputs: []
442
+ },
443
+ "execute(bytes commands,bytes[] inputs)": {
444
+ name: "execute",
445
+ type: "function",
446
+ stateMutability: "nonpayable",
447
+ inputs: [
448
+ {
449
+ type: "bytes",
450
+ name: "commands"
451
+ },
452
+ {
453
+ type: "bytes[]",
454
+ name: "inputs"
455
+ }
456
+ ],
457
+ outputs: []
458
+ },
459
+ "0x0000000000000000000000000000000000000000000000000000000074694a2b": {
460
+ name: "register",
461
+ type: "function",
462
+ stateMutability: "nonpayable",
463
+ inputs: [
464
+ {
465
+ type: "string",
466
+ name: "name"
467
+ },
468
+ {
469
+ type: "address",
470
+ name: "owner"
471
+ },
472
+ {
473
+ type: "uint256",
474
+ name: "duration"
475
+ },
476
+ {
477
+ type: "bytes32",
478
+ name: "secret"
479
+ },
480
+ {
481
+ type: "address",
482
+ name: "resolver"
483
+ },
484
+ {
485
+ type: "bytes[]",
486
+ name: "data"
487
+ },
488
+ {
489
+ type: "bool",
490
+ name: "reverseRecord"
491
+ },
492
+ {
493
+ type: "uint16",
494
+ name: "ownerControlledFuses"
495
+ }
496
+ ],
497
+ outputs: []
498
+ },
499
+ "register(string name,address owner,uint256 duration,bytes32 secret,address resolver,bytes[] data,bool reverseRecord,uint16 ownerControlledFuses)": {
500
+ name: "register",
501
+ type: "function",
502
+ stateMutability: "nonpayable",
503
+ inputs: [
504
+ {
505
+ type: "string",
506
+ name: "name"
507
+ },
508
+ {
509
+ type: "address",
510
+ name: "owner"
511
+ },
512
+ {
513
+ type: "uint256",
514
+ name: "duration"
515
+ },
516
+ {
517
+ type: "bytes32",
518
+ name: "secret"
519
+ },
520
+ {
521
+ type: "address",
522
+ name: "resolver"
523
+ },
524
+ {
525
+ type: "bytes[]",
526
+ name: "data"
527
+ },
528
+ {
529
+ type: "bool",
530
+ name: "reverseRecord"
531
+ },
532
+ {
533
+ type: "uint16",
534
+ name: "ownerControlledFuses"
535
+ }
536
+ ],
537
+ outputs: []
538
+ },
539
+ "0x00000000000000000000000000000000000000000000000000000000eb9019d4": {
540
+ name: "getVotes",
541
+ type: "function",
542
+ stateMutability: "view",
543
+ inputs: [
544
+ {
545
+ type: "address",
546
+ name: "account"
547
+ },
548
+ {
549
+ type: "uint256",
550
+ name: "blockNumber"
551
+ }
552
+ ],
553
+ outputs: [
554
+ {
555
+ type: "uint256"
556
+ }
557
+ ]
558
+ },
559
+ "getVotes(address account, uint256 blockNumber) view returns (uint256)": {
560
+ name: "getVotes",
561
+ type: "function",
562
+ stateMutability: "view",
563
+ inputs: [
564
+ {
565
+ type: "address",
566
+ name: "account"
567
+ },
568
+ {
569
+ type: "uint256",
570
+ name: "blockNumber"
571
+ }
572
+ ],
573
+ outputs: [
574
+ {
575
+ type: "uint256"
576
+ }
577
+ ]
578
+ },
579
+ "0x0000000000000000000000000000000000000000000000000000000023b872dd": {
580
+ name: "transferFrom",
581
+ type: "function",
582
+ stateMutability: "nonpayable",
583
+ inputs: [
584
+ {
585
+ type: "address"
586
+ },
587
+ {
588
+ type: "address"
589
+ },
590
+ {
591
+ type: "uint256"
592
+ }
593
+ ],
594
+ outputs: []
595
+ },
596
+ "transferFrom(address,address,uint256)": {
597
+ name: "transferFrom",
598
+ type: "function",
599
+ stateMutability: "nonpayable",
600
+ inputs: [
601
+ {
602
+ type: "address"
603
+ },
604
+ {
605
+ type: "address"
606
+ },
607
+ {
608
+ type: "uint256"
609
+ }
610
+ ],
611
+ outputs: []
612
+ },
613
+ "0x000000000000000000000000000000000000000000000000000000006a627842": {
614
+ name: "mint",
615
+ type: "function",
616
+ stateMutability: "nonpayable",
617
+ inputs: [
618
+ {
619
+ type: "address"
620
+ }
621
+ ],
622
+ outputs: []
623
+ },
624
+ "mint(address)": {
625
+ name: "mint",
626
+ type: "function",
627
+ stateMutability: "nonpayable",
628
+ inputs: [
629
+ {
630
+ type: "address"
631
+ }
632
+ ],
633
+ outputs: []
634
+ }
635
+ }, o0 = {
636
+ "mint(address to, uint256 amount)": "0x0000000000000000000000000000000000000000000000000000000040c10f19",
637
+ "mintPayable(address to, uint256 amount)": "0x0000000000000000000000000000000000000000000000000000000017d304b0",
638
+ "execute(bytes commands,bytes[] inputs)": "0x0000000000000000000000000000000000000000000000000000000024856bc3",
639
+ "register(string name,address owner,uint256 duration,bytes32 secret,address resolver,bytes[] data,bool reverseRecord,uint16 ownerControlledFuses)": "0x0000000000000000000000000000000000000000000000000000000074694a2b",
640
+ "getVotes(address account, uint256 blockNumber) view returns (uint256)": "0x00000000000000000000000000000000000000000000000000000000eb9019d4",
641
+ "transferFrom(address,address,uint256)": "0x0000000000000000000000000000000000000000000000000000000023b872dd",
642
+ "mint(address)": "0x000000000000000000000000000000000000000000000000000000006a627842"
643
+ }, u0 = {
644
+ abi: c0,
645
+ selectors: o0
646
+ }, m = Symbol.for("@ts-pattern/matcher"), p0 = Symbol.for("@ts-pattern/isVariadic"), C = "@ts-pattern/anonymous-select-key", R = (t) => !!(t && typeof t == "object"), S = (t) => t && !!t[m], l = (t, f, e) => {
647
+ if (S(t)) {
648
+ const n = t[m](), { matched: a, selections: b } = n.match(f);
649
+ return a && b && Object.keys(b).forEach((s) => e(s, b[s])), a;
650
+ }
651
+ if (R(t)) {
652
+ if (!R(f)) return !1;
653
+ if (Array.isArray(t)) {
654
+ if (!Array.isArray(f)) return !1;
655
+ let n = [], a = [], b = [];
656
+ for (const s of t.keys()) {
657
+ const r = t[s];
658
+ S(r) && r[p0] ? b.push(r) : b.length ? a.push(r) : n.push(r);
659
+ }
660
+ if (b.length) {
661
+ if (b.length > 1) throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");
662
+ if (f.length < n.length + a.length) return !1;
663
+ const s = f.slice(0, n.length), r = a.length === 0 ? [] : f.slice(-a.length), u = f.slice(n.length, a.length === 0 ? 1 / 0 : -a.length);
664
+ return n.every((c, A) => l(c, s[A], e)) && a.every((c, A) => l(c, r[A], e)) && (b.length === 0 || l(b[0], u, e));
665
+ }
666
+ return t.length === f.length && t.every((s, r) => l(s, f[r], e));
667
+ }
668
+ return Reflect.ownKeys(t).every((n) => {
669
+ const a = t[n];
670
+ return (n in f || S(b = a) && b[m]().matcherType === "optional") && l(a, f[n], e);
671
+ var b;
672
+ });
673
+ }
674
+ return Object.is(f, t);
675
+ }, v = (t) => {
676
+ var f, e, n;
677
+ return R(t) ? S(t) ? (f = (e = (n = t[m]()).getSelectionKeys) == null ? void 0 : e.call(n)) != null ? f : [] : Array.isArray(t) ? E(t, v) : E(Object.values(t), v) : [];
678
+ }, E = (t, f) => t.reduce((e, n) => e.concat(f(n)), []);
679
+ function o(t) {
680
+ return Object.assign(t, { optional: () => y0(t), and: (f) => i(t, f), or: (f) => l0(t, f), select: (f) => f === void 0 ? L(t) : L(f, t) });
681
+ }
682
+ function y0(t) {
683
+ return o({ [m]: () => ({ match: (f) => {
684
+ let e = {};
685
+ const n = (a, b) => {
686
+ e[a] = b;
687
+ };
688
+ return f === void 0 ? (v(t).forEach((a) => n(a, void 0)), { matched: !0, selections: e }) : { matched: l(t, f, n), selections: e };
689
+ }, getSelectionKeys: () => v(t), matcherType: "optional" }) });
690
+ }
691
+ function i(...t) {
692
+ return o({ [m]: () => ({ match: (f) => {
693
+ let e = {};
694
+ const n = (a, b) => {
695
+ e[a] = b;
696
+ };
697
+ return { matched: t.every((a) => l(a, f, n)), selections: e };
698
+ }, getSelectionKeys: () => E(t, v), matcherType: "and" }) });
699
+ }
700
+ function l0(...t) {
701
+ return o({ [m]: () => ({ match: (f) => {
702
+ let e = {};
703
+ const n = (a, b) => {
704
+ e[a] = b;
705
+ };
706
+ return E(t, v).forEach((a) => n(a, void 0)), { matched: t.some((a) => l(a, f, n)), selections: e };
707
+ }, getSelectionKeys: () => E(t, v), matcherType: "or" }) });
708
+ }
709
+ function d(t) {
710
+ return { [m]: () => ({ match: (f) => ({ matched: !!t(f) }) }) };
711
+ }
712
+ function L(...t) {
713
+ const f = typeof t[0] == "string" ? t[0] : void 0, e = t.length === 2 ? t[1] : typeof t[0] == "string" ? void 0 : t[0];
714
+ return o({ [m]: () => ({ match: (n) => {
715
+ let a = { [f ?? C]: n };
716
+ return { matched: e === void 0 || l(e, n, (b, s) => {
717
+ a[b] = s;
718
+ }), selections: a };
719
+ }, getSelectionKeys: () => [f ?? C].concat(e === void 0 ? [] : v(e)) }) });
720
+ }
721
+ function p(t) {
722
+ return typeof t == "number";
723
+ }
724
+ function h(t) {
725
+ return typeof t == "string";
726
+ }
727
+ function g(t) {
728
+ return typeof t == "bigint";
729
+ }
730
+ o(d(function(t) {
731
+ return !0;
732
+ }));
733
+ const x = (t) => Object.assign(o(t), { startsWith: (f) => {
734
+ return x(i(t, (e = f, d((n) => h(n) && n.startsWith(e)))));
735
+ var e;
736
+ }, endsWith: (f) => {
737
+ return x(i(t, (e = f, d((n) => h(n) && n.endsWith(e)))));
738
+ var e;
739
+ }, minLength: (f) => x(i(t, ((e) => d((n) => h(n) && n.length >= e))(f))), length: (f) => x(i(t, ((e) => d((n) => h(n) && n.length === e))(f))), maxLength: (f) => x(i(t, ((e) => d((n) => h(n) && n.length <= e))(f))), includes: (f) => {
740
+ return x(i(t, (e = f, d((n) => h(n) && n.includes(e)))));
741
+ var e;
742
+ }, regex: (f) => {
743
+ return x(i(t, (e = f, d((n) => h(n) && !!n.match(e)))));
744
+ var e;
745
+ } });
746
+ x(d(h));
747
+ const y = (t) => Object.assign(o(t), { between: (f, e) => y(i(t, ((n, a) => d((b) => p(b) && n <= b && a >= b))(f, e))), lt: (f) => y(i(t, ((e) => d((n) => p(n) && n < e))(f))), gt: (f) => y(i(t, ((e) => d((n) => p(n) && n > e))(f))), lte: (f) => y(i(t, ((e) => d((n) => p(n) && n <= e))(f))), gte: (f) => y(i(t, ((e) => d((n) => p(n) && n >= e))(f))), int: () => y(i(t, d((f) => p(f) && Number.isInteger(f)))), finite: () => y(i(t, d((f) => p(f) && Number.isFinite(f)))), positive: () => y(i(t, d((f) => p(f) && f > 0))), negative: () => y(i(t, d((f) => p(f) && f < 0))) });
748
+ y(d(p));
749
+ const w = (t) => Object.assign(o(t), { between: (f, e) => w(i(t, ((n, a) => d((b) => g(b) && n <= b && a >= b))(f, e))), lt: (f) => w(i(t, ((e) => d((n) => g(n) && n < e))(f))), gt: (f) => w(i(t, ((e) => d((n) => g(n) && n > e))(f))), lte: (f) => w(i(t, ((e) => d((n) => g(n) && n <= e))(f))), gte: (f) => w(i(t, ((e) => d((n) => g(n) && n >= e))(f))), positive: () => w(i(t, d((f) => g(f) && f > 0))), negative: () => w(i(t, d((f) => g(f) && f < 0))) });
750
+ w(d(g));
751
+ o(d(function(t) {
752
+ return typeof t == "boolean";
753
+ }));
754
+ o(d(function(t) {
755
+ return typeof t == "symbol";
756
+ }));
757
+ o(d(function(t) {
758
+ return t == null;
759
+ }));
760
+ o(d(function(t) {
761
+ return t != null;
762
+ }));
763
+ class m0 extends Error {
764
+ constructor(f) {
765
+ let e;
766
+ try {
767
+ e = JSON.stringify(f);
768
+ } catch {
769
+ e = f;
770
+ }
771
+ super(`Pattern matching error: no pattern matches value ${e}`), this.input = void 0, this.input = f;
772
+ }
773
+ }
774
+ const P = { matched: !1, value: void 0 };
775
+ function U(t) {
776
+ return new N(t, P);
777
+ }
778
+ class N {
779
+ constructor(f, e) {
780
+ this.input = void 0, this.state = void 0, this.input = f, this.state = e;
781
+ }
782
+ with(...f) {
783
+ if (this.state.matched) return this;
784
+ const e = f[f.length - 1], n = [f[0]];
785
+ let a;
786
+ f.length === 3 && typeof f[1] == "function" ? a = f[1] : f.length > 2 && n.push(...f.slice(1, f.length - 1));
787
+ let b = !1, s = {};
788
+ const r = (c, A) => {
789
+ b = !0, s[c] = A;
790
+ }, u = !n.some((c) => l(c, this.input, r)) || a && !a(this.input) ? P : { matched: !0, value: e(b ? C in s ? s[C] : s : this.input, this.input) };
791
+ return new N(this.input, u);
792
+ }
793
+ when(f, e) {
794
+ if (this.state.matched) return this;
795
+ const n = !!f(this.input);
796
+ return new N(this.input, n ? { matched: !0, value: e(this.input, this.input) } : P);
797
+ }
798
+ otherwise(f) {
799
+ return this.state.matched ? this.state.value : f(this.input);
800
+ }
801
+ exhaustive() {
802
+ if (this.state.matched) return this.state.value;
803
+ throw new m0(this.input);
804
+ }
805
+ run() {
806
+ return this.exhaustive();
807
+ }
808
+ returnType() {
809
+ return this;
810
+ }
811
+ }
812
+ var h0 = /* @__PURE__ */ ((t) => (t[t.EQUAL = 0] = "EQUAL", t[t.NOT_EQUAL = 1] = "NOT_EQUAL", t[t.GREATER_THAN = 2] = "GREATER_THAN", t[t.LESS_THAN = 3] = "LESS_THAN", t[t.CONTAINS = 4] = "CONTAINS", t[t.REGEX = 5] = "REGEX", t))(h0 || {}), g0 = /* @__PURE__ */ ((t) => (t[t.UINT = 0] = "UINT", t[t.ADDRESS = 1] = "ADDRESS", t[t.BYTES = 2] = "BYTES", t[t.STRING = 3] = "STRING", t))(g0 || {}), x0 = /* @__PURE__ */ ((t) => (t[t.EVENT = 0] = "EVENT", t[t.FUNC = 1] = "FUNC", t))(x0 || {});
813
+ function w0(t) {
814
+ return Array.isArray(t.actionSteps);
815
+ }
816
+ const D = class D extends J {
817
+ constructor() {
818
+ super(...arguments), this.abi = M;
819
+ }
820
+ /**
821
+ * Gets a specific action event by index
822
+ *
823
+ * @public
824
+ * @async
825
+ * @param {number} index The index of the action event to retrieve
826
+ * @param {?ReadEventActionParams<'getActionStep'>} [params]
827
+ * @returns {Promise<ActionStep>}
828
+ */
829
+ async getActionStep(f, e) {
830
+ return (await this.getActionSteps(e)).at(f);
831
+ }
832
+ /**
833
+ * Gets all action events
834
+ *
835
+ * @public
836
+ * @async
837
+ * @param {?ReadEventActionParams<'getActionSteps'>} [params]
838
+ * @returns {Promise<ActionStep[]>}
839
+ */
840
+ async getActionSteps(f) {
841
+ const e = await K(this._config, {
842
+ address: this.assertValidAddress(),
843
+ ...this.optionallyAttachAccount(),
844
+ // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
845
+ ...f
846
+ });
847
+ return v0(e.map(G));
848
+ }
849
+ /**
850
+ * Gets the count of action events
851
+ *
852
+ * @public
853
+ * @async
854
+ * @param {?ReadEventActionParams<'getActionStepsCount'>} [params]
855
+ * @returns {Promise<bigint>}
856
+ */
857
+ async getActionStepsCount(f) {
858
+ return (await this.getActionSteps(f)).length;
859
+ }
860
+ /**
861
+ * Retrieves the payload describing how claimants can be identified from logs or function calls.
862
+ *
863
+ * @public
864
+ * @async
865
+ * @param {?ReadEventActionParams<'getActionClaimant'>} [params]
866
+ * @returns {Promise<ActionClaimant>}
867
+ */
868
+ async getActionClaimant(f) {
869
+ const e = await H(this._config, {
870
+ address: this.assertValidAddress(),
871
+ ...this.optionallyAttachAccount(),
872
+ ...f
873
+ });
874
+ return G(e);
875
+ }
876
+ /**
877
+ * Executes a prepared event action
878
+ *
879
+ * @public
880
+ * @async
881
+ * @param {Hex} data
882
+ * @param {?WriteParams} [params]
883
+ * @returns {Promise<readonly [boolean, `0x${string}`]>}
884
+ */
885
+ async execute(f, e) {
886
+ return await this.awaitResult(this.executeRaw(f, e));
887
+ }
888
+ /**
889
+ * Executes a prepared event action
890
+ *
891
+ * @public
892
+ * @async
893
+ * @param {Hex} data
894
+ * @param {?WriteParams} [params]
895
+ * @returns {Promise<{ hash: `0x${string}`; result: readonly [boolean, `0x${string}`]; }>}
896
+ */
897
+ async executeRaw(f, e) {
898
+ const { request: n, result: a } = await W(this._config, {
899
+ address: this.assertValidAddress(),
900
+ ...this.optionallyAttachAccount(),
901
+ // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
902
+ ...e,
903
+ args: [f]
904
+ });
905
+ return { hash: await $(this._config, n), result: a };
906
+ }
907
+ /**
908
+ * Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
909
+ * If logs are provided in the optional `params` argument, then those logs will be used instead of fetched with the configured client.
910
+ *
911
+ * @public
912
+ * @async
913
+ * @param ValidateActionStepParams params
914
+ * @returns {Promise<boolean>}
915
+ */
916
+ async validateActionSteps(f) {
917
+ const e = await this.getActionSteps();
918
+ for (const n of e)
919
+ if (!await this.isActionStepValid(n, f))
920
+ return !1;
921
+ return !0;
922
+ }
923
+ /**
924
+ * Validates a single action step with a given criteria against logs or function calls.
925
+ * If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
926
+ * For functions a hash is required.
927
+ *
928
+ * @public
929
+ * @async
930
+ * @param {ActionStep} actionStep - The action step to validate. Can be a function of event step.
931
+ * @param {ValidateActionStepParams} params - Additional parameters for validation, including hash, known events, logs, and chain ID.
932
+ * @returns {Promise<boolean>}
933
+ */
934
+ async isActionStepValid(f, e) {
935
+ var n;
936
+ if (f.signatureType === 0) {
937
+ const a = f.signature;
938
+ let b;
939
+ if (e.knownEvents ? b = (n = e.knownEvents) == null ? void 0 : n[a] : b = r0.abi[a], !b)
940
+ throw new F(a);
941
+ if (this.isArraylikeIndexed(f, b))
942
+ throw new Y(
943
+ f.actionParameter.fieldIndex,
944
+ b
945
+ );
946
+ if (e.event = b, "logs" in e)
947
+ return this.isActionEventValid(f, {
948
+ ...e
949
+ });
950
+ const u = (await this._config.getClient({
951
+ chainId: e.chainId
952
+ }).getTransactionReceipt({
953
+ hash: e.hash
954
+ })).logs.map((c) => {
955
+ const { eventName: A, args: j } = Q({
956
+ abi: [b],
957
+ data: c.data,
958
+ topics: c.topics
959
+ });
960
+ return { ...c, eventName: A, args: j };
961
+ });
962
+ return this.isActionEventValid(f, {
963
+ logs: u,
964
+ ...e
965
+ });
966
+ }
967
+ if (f.signatureType === 1 && "hash" in e && "chainId" in e) {
968
+ const b = await this._config.getClient({
969
+ chainId: e.chainId
970
+ }).getTransaction({
971
+ hash: e.hash
972
+ });
973
+ return this.isActionFunctionValid(f, b);
974
+ }
975
+ return !1;
976
+ }
977
+ /**
978
+ * Validates a single action event with a given criteria against logs.
979
+ * If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
980
+ *
981
+ * @public
982
+ * @async
983
+ * @param {ActionStep} actionStep - The action step containing the event to validate.
984
+ * @param {ValidateActionStepParams} params - Additional parameters for validation, including known events and logs
985
+ * @returns {Promise<boolean>} Resolves to true if the action event is valid, throws if input is invalid, otherwise false.
986
+ */
987
+ isActionEventValid(f, e) {
988
+ if (!("logs" in e))
989
+ throw new Z();
990
+ const n = f.actionParameter, a = e.logs;
991
+ if (!a.length) return !1;
992
+ for (let b of a)
993
+ if (this.validateLogAgainstCriteria(n, b))
994
+ return !0;
995
+ return !1;
996
+ }
997
+ /**
998
+ * Validates a single action function with a given criteria against the transaction input.
999
+ *
1000
+ * @public
1001
+ * @async
1002
+ * @param {ActionStep} actionStep - The action step containing the function to validate.
1003
+ * @param {Transaction} transaction - The transaction that will be validated against.
1004
+ * @returns {Promise<boolean>} Resolves to true if the action function is valid, throws if the inputs are invalid, otherwise false.
1005
+ */
1006
+ isActionFunctionValid(f, e) {
1007
+ const n = f.actionParameter;
1008
+ let a = f.signature;
1009
+ const b = u0.abi[a];
1010
+ if (!b)
1011
+ throw new F(a);
1012
+ let s;
1013
+ try {
1014
+ s = X({
1015
+ abi: [b],
1016
+ data: e.input
1017
+ });
1018
+ } catch (u) {
1019
+ throw new f0([b], u);
1020
+ }
1021
+ const r = s.args;
1022
+ return !(!r || !s || !this.validateFunctionAgainstCriteria(
1023
+ n,
1024
+ r
1025
+ ));
1026
+ }
1027
+ /**
1028
+ * Validates a field against a given criteria.
1029
+ *
1030
+ * @param {Criteria} criteria - The criteria to validate against.
1031
+ * @param {string | bigint | Hex} fieldValue - The field value to validate.
1032
+ * @param {Object} input - Additional context for validation.
1033
+ * @param {EventLogs[0]} [input.log] - The event log, if validating an event.
1034
+ * @param {readonly (string | bigint)[]} [input.decodedArgs] - The decoded function arguments, if validating a function call.
1035
+ * @returns {Promise<boolean>} - Returns true if the field passes the criteria, false otherwise.
1036
+ */
1037
+ validateFieldAgainstCriteria(f, e, n) {
1038
+ switch (f.filterType) {
1039
+ case 0:
1040
+ return U(f.fieldType).with(
1041
+ 1,
1042
+ () => B(f.filterData, e)
1043
+ ).with(
1044
+ 0,
1045
+ () => BigInt(e) === BigInt(f.filterData)
1046
+ ).with(
1047
+ 3,
1048
+ () => e === I(f.filterData, "string")
1049
+ ).otherwise(() => e === f.filterData);
1050
+ case 1:
1051
+ return U(f.fieldType).with(
1052
+ 1,
1053
+ () => !B(f.filterData, e)
1054
+ ).with(
1055
+ 0,
1056
+ () => BigInt(e) !== BigInt(f.filterData)
1057
+ ).with(
1058
+ 3,
1059
+ () => e !== I(f.filterData, "string")
1060
+ ).otherwise(() => e !== f.filterData);
1061
+ case 2:
1062
+ if (f.fieldType === 0)
1063
+ return BigInt(e) > BigInt(f.filterData);
1064
+ throw new V({
1065
+ ...n,
1066
+ criteria: f,
1067
+ fieldValue: e
1068
+ });
1069
+ case 3:
1070
+ if (f.fieldType === 0)
1071
+ return BigInt(e) < BigInt(f.filterData);
1072
+ throw new V({
1073
+ ...n,
1074
+ criteria: f,
1075
+ fieldValue: e
1076
+ });
1077
+ case 4:
1078
+ if (f.fieldType === 2 || f.fieldType === 3) {
1079
+ let a;
1080
+ return f.fieldType === 3 ? a = I(f.filterData, "string") : a = f.filterData.slice(2), e.includes(a);
1081
+ }
1082
+ throw new O({
1083
+ ...n,
1084
+ criteria: f,
1085
+ fieldValue: e
1086
+ });
1087
+ case 5:
1088
+ if (typeof e != "string")
1089
+ throw new O({
1090
+ ...n,
1091
+ criteria: f,
1092
+ fieldValue: e
1093
+ });
1094
+ if (f.fieldType === 3) {
1095
+ const a = I(f.filterData, "string");
1096
+ return new RegExp(a).test(e);
1097
+ }
1098
+ default:
1099
+ throw new e0({
1100
+ ...n,
1101
+ criteria: f,
1102
+ fieldValue: e
1103
+ });
1104
+ }
1105
+ }
1106
+ /**
1107
+ * Validates a {@link Log} against a given criteria.
1108
+ *
1109
+ * @param {Criteria} criteria - The criteria to validate against.
1110
+ * @param {Log} log - The Viem event log.
1111
+ * @returns {Promise<boolean>} - Returns true if the log passes the criteria, false otherwise.
1112
+ */
1113
+ validateLogAgainstCriteria(f, e) {
1114
+ if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex)
1115
+ throw new t0({
1116
+ log: e,
1117
+ criteria: f,
1118
+ fieldValue: void 0
1119
+ });
1120
+ const n = e.args.at(f.fieldIndex);
1121
+ if (n === void 0)
1122
+ throw new _({ log: e, criteria: f, fieldValue: n });
1123
+ return this.validateFieldAgainstCriteria(f, n, { log: e });
1124
+ }
1125
+ /**
1126
+ * Validates a function's decoded arguments against a given criteria.
1127
+ *
1128
+ * @param {Criteria} criteria - The criteria to validate against.
1129
+ * @param {unknown[]} decodedArgs - The decoded arguments of the function call.
1130
+ * @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
1131
+ */
1132
+ validateFunctionAgainstCriteria(f, e) {
1133
+ const n = e[f.fieldIndex];
1134
+ if (n === void 0)
1135
+ throw new _({
1136
+ criteria: f,
1137
+ fieldValue: n
1138
+ });
1139
+ return this.validateFieldAgainstCriteria(f, n, {
1140
+ decodedArgs: e
1141
+ });
1142
+ }
1143
+ /**
1144
+ * @inheritdoc
1145
+ *
1146
+ * @public
1147
+ * @param {?EventActionPayload} [_payload]
1148
+ * @param {?DeployableOptions} [_options]
1149
+ * @returns {GenericDeployableParams}
1150
+ */
1151
+ buildParameters(f, e) {
1152
+ const [n, a] = this.validateDeploymentConfig(
1153
+ f,
1154
+ e
1155
+ );
1156
+ let b;
1157
+ if (w0(n)) {
1158
+ let s = n.actionSteps.filter((u) => !!u);
1159
+ if (s.length === 0)
1160
+ throw new n0();
1161
+ if (s.length > 4)
1162
+ throw new a0();
1163
+ let r = Array.from({ length: 4 }, (u, c) => s.at(c) || s.at(-1));
1164
+ b = {
1165
+ actionClaimant: n.actionClaimant,
1166
+ actionStepOne: r[0],
1167
+ actionStepTwo: r[1],
1168
+ actionStepThree: r[2],
1169
+ actionStepFour: r[3]
1170
+ };
1171
+ } else
1172
+ b = n;
1173
+ return {
1174
+ abi: M,
1175
+ bytecode: d0,
1176
+ args: [A0(b)],
1177
+ ...this.optionallyAttachAccount(a.account)
1178
+ };
1179
+ }
1180
+ isArraylikeIndexed(f, e) {
1181
+ var n;
1182
+ return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((n = e.inputs[f.actionParameter.fieldIndex]) != null && n.indexed));
1183
+ }
1184
+ };
1185
+ D.bases = {
1186
+ ...z
1187
+ }, D.registryType = b0.ACTION;
1188
+ let k = D;
1189
+ function v0(t) {
1190
+ const f = [], e = {};
1191
+ for (let n of t) {
1192
+ const a = JSON.stringify(n);
1193
+ e[a] || (f.push(n), e[a] = !0);
1194
+ }
1195
+ return f;
1196
+ }
1197
+ function T(t) {
1198
+ return {
1199
+ ...t,
1200
+ chainid: BigInt(t.chainid)
1201
+ };
1202
+ }
1203
+ function G(t) {
1204
+ if (t.chainid > BigInt(Number.MAX_SAFE_INTEGER))
1205
+ throw new Error("Chain ID exceeds max safe integer");
1206
+ return {
1207
+ ...t,
1208
+ chainid: Number(t.chainid)
1209
+ };
1210
+ }
1211
+ function A0({
1212
+ actionClaimant: t,
1213
+ actionStepOne: f,
1214
+ actionStepTwo: e,
1215
+ actionStepThree: n,
1216
+ actionStepFour: a
1217
+ }) {
1218
+ return q(
1219
+ [
1220
+ {
1221
+ type: "tuple",
1222
+ name: "initPayload",
1223
+ components: [
1224
+ {
1225
+ type: "tuple",
1226
+ name: "actionClaimant",
1227
+ components: [
1228
+ { type: "uint8", name: "signatureType" },
1229
+ { type: "bytes32", name: "signature" },
1230
+ { type: "uint8", name: "fieldIndex" },
1231
+ { type: "address", name: "targetContract" },
1232
+ { type: "uint256", name: "chainid" }
1233
+ ]
1234
+ },
1235
+ {
1236
+ type: "tuple",
1237
+ name: "actionStepOne",
1238
+ components: [
1239
+ { type: "bytes32", name: "signature" },
1240
+ { type: "uint8", name: "signatureType" },
1241
+ { type: "uint8", name: "actionType" },
1242
+ { type: "address", name: "targetContract" },
1243
+ { type: "uint256", name: "chainid" },
1244
+ {
1245
+ type: "tuple",
1246
+ name: "actionParameter",
1247
+ components: [
1248
+ { type: "uint8", name: "filterType" },
1249
+ { type: "uint8", name: "fieldType" },
1250
+ { type: "uint8", name: "fieldIndex" },
1251
+ { type: "bytes", name: "filterData" }
1252
+ ]
1253
+ }
1254
+ ]
1255
+ },
1256
+ {
1257
+ type: "tuple",
1258
+ name: "actionStepTwo",
1259
+ components: [
1260
+ { type: "bytes32", name: "signature" },
1261
+ { type: "uint8", name: "signatureType" },
1262
+ { type: "uint8", name: "actionType" },
1263
+ { type: "address", name: "targetContract" },
1264
+ { type: "uint256", name: "chainid" },
1265
+ {
1266
+ type: "tuple",
1267
+ name: "actionParameter",
1268
+ components: [
1269
+ { type: "uint8", name: "filterType" },
1270
+ { type: "uint8", name: "fieldType" },
1271
+ { type: "uint8", name: "fieldIndex" },
1272
+ { type: "bytes", name: "filterData" }
1273
+ ]
1274
+ }
1275
+ ]
1276
+ },
1277
+ {
1278
+ type: "tuple",
1279
+ name: "actionStepThree",
1280
+ components: [
1281
+ { type: "bytes32", name: "signature" },
1282
+ { type: "uint8", name: "signatureType" },
1283
+ { type: "uint8", name: "actionType" },
1284
+ { type: "address", name: "targetContract" },
1285
+ { type: "uint256", name: "chainid" },
1286
+ {
1287
+ type: "tuple",
1288
+ name: "actionParameter",
1289
+ components: [
1290
+ { type: "uint8", name: "filterType" },
1291
+ { type: "uint8", name: "fieldType" },
1292
+ { type: "uint8", name: "fieldIndex" },
1293
+ { type: "bytes", name: "filterData" }
1294
+ ]
1295
+ }
1296
+ ]
1297
+ },
1298
+ {
1299
+ type: "tuple",
1300
+ name: "actionStepFour",
1301
+ components: [
1302
+ { type: "bytes32", name: "signature" },
1303
+ { type: "uint8", name: "signatureType" },
1304
+ { type: "uint8", name: "actionType" },
1305
+ { type: "address", name: "targetContract" },
1306
+ { type: "uint256", name: "chainid" },
1307
+ {
1308
+ type: "tuple",
1309
+ name: "actionParameter",
1310
+ components: [
1311
+ { type: "uint8", name: "filterType" },
1312
+ { type: "uint8", name: "fieldType" },
1313
+ { type: "uint8", name: "fieldIndex" },
1314
+ { type: "bytes", name: "filterData" }
1315
+ ]
1316
+ }
1317
+ ]
1318
+ }
1319
+ ]
1320
+ }
1321
+ ],
1322
+ [
1323
+ {
1324
+ actionClaimant: T(t),
1325
+ actionStepOne: {
1326
+ ...T(f),
1327
+ actionType: f.actionType || 0
1328
+ },
1329
+ actionStepTwo: {
1330
+ ...T(e),
1331
+ actionType: e.actionType || 0
1332
+ },
1333
+ actionStepThree: {
1334
+ ...T(n),
1335
+ actionType: n.actionType || 0
1336
+ },
1337
+ actionStepFour: {
1338
+ ...T(a),
1339
+ actionType: a.actionType || 0
1340
+ }
1341
+ }
1342
+ ]
1343
+ );
1344
+ }
1345
+ export {
1346
+ k as E,
1347
+ h0 as F,
1348
+ g0 as P,
1349
+ x0 as S,
1350
+ r0 as e,
1351
+ u0 as f,
1352
+ w0 as i,
1353
+ A0 as p
1354
+ };
1355
+ //# sourceMappingURL=EventAction-D5tnm00s.js.map