@boostxyz/sdk 0.0.0-alpha.11 → 0.0.0-alpha.13

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 (154) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.js +1 -1
  3. package/dist/Actions/ContractAction.d.ts +2 -2
  4. package/dist/Actions/ContractAction.d.ts.map +1 -1
  5. package/dist/Actions/ERC721MintAction.d.ts +2 -2
  6. package/dist/Actions/ERC721MintAction.d.ts.map +1 -1
  7. package/dist/Actions/EventAction.cjs +1 -1
  8. package/dist/Actions/EventAction.cjs.map +1 -1
  9. package/dist/Actions/EventAction.d.ts +117 -33
  10. package/dist/Actions/EventAction.d.ts.map +1 -1
  11. package/dist/Actions/EventAction.js +309 -121
  12. package/dist/Actions/EventAction.js.map +1 -1
  13. package/dist/AllowLists/AllowList.cjs +1 -1
  14. package/dist/AllowLists/AllowList.js +2 -2
  15. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  16. package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
  17. package/dist/AllowLists/SimpleAllowList.d.ts +2 -2
  18. package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
  19. package/dist/AllowLists/SimpleAllowList.js +23 -19
  20. package/dist/AllowLists/SimpleAllowList.js.map +1 -1
  21. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  22. package/dist/AllowLists/SimpleDenyList.d.ts +2 -2
  23. package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
  24. package/dist/AllowLists/SimpleDenyList.js +6 -5
  25. package/dist/AllowLists/SimpleDenyList.js.map +1 -1
  26. package/dist/Auth/PassthroughAuth.cjs +1 -1
  27. package/dist/Auth/PassthroughAuth.js +1 -1
  28. package/dist/BoostCore.cjs +2 -2
  29. package/dist/BoostCore.cjs.map +1 -1
  30. package/dist/BoostCore.d.ts +27 -5
  31. package/dist/BoostCore.d.ts.map +1 -1
  32. package/dist/BoostCore.js +438 -347
  33. package/dist/BoostCore.js.map +1 -1
  34. package/dist/BoostRegistry.cjs +1 -1
  35. package/dist/BoostRegistry.cjs.map +1 -1
  36. package/dist/BoostRegistry.d.ts +26 -5
  37. package/dist/BoostRegistry.d.ts.map +1 -1
  38. package/dist/BoostRegistry.js +125 -64
  39. package/dist/BoostRegistry.js.map +1 -1
  40. package/dist/Budgets/Budget.cjs +1 -1
  41. package/dist/Budgets/Budget.js +1 -1
  42. package/dist/Budgets/ManagedBudget.cjs +1 -1
  43. package/dist/Budgets/ManagedBudget.cjs.map +1 -1
  44. package/dist/Budgets/ManagedBudget.d.ts +2 -2
  45. package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
  46. package/dist/Budgets/ManagedBudget.js +41 -37
  47. package/dist/Budgets/ManagedBudget.js.map +1 -1
  48. package/dist/Budgets/SimpleBudget.d.ts +2 -2
  49. package/dist/Budgets/SimpleBudget.d.ts.map +1 -1
  50. package/dist/Budgets/VestingBudget.d.ts +2 -2
  51. package/dist/Budgets/VestingBudget.d.ts.map +1 -1
  52. package/dist/Deployable/DeployableTarget.cjs +1 -1
  53. package/dist/Deployable/DeployableTarget.cjs.map +1 -1
  54. package/dist/Deployable/DeployableTarget.d.ts +6 -6
  55. package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
  56. package/dist/Deployable/DeployableTarget.js +22 -17
  57. package/dist/Deployable/DeployableTarget.js.map +1 -1
  58. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  59. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  60. package/dist/Incentives/AllowListIncentive.d.ts +2 -2
  61. package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
  62. package/dist/Incentives/AllowListIncentive.js +17 -13
  63. package/dist/Incentives/AllowListIncentive.js.map +1 -1
  64. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  65. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  66. package/dist/Incentives/CGDAIncentive.d.ts +14 -2
  67. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
  68. package/dist/Incentives/CGDAIncentive.js +27 -23
  69. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  70. package/dist/Incentives/ERC1155Incentive.d.ts +2 -2
  71. package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
  72. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  73. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  74. package/dist/Incentives/ERC20Incentive.d.ts +2 -2
  75. package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
  76. package/dist/Incentives/ERC20Incentive.js +17 -13
  77. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  78. package/dist/Incentives/ERC20VariableIncentive.d.ts +2 -2
  79. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  80. package/dist/Incentives/Incentive.cjs +1 -1
  81. package/dist/Incentives/Incentive.cjs.map +1 -1
  82. package/dist/Incentives/Incentive.js +34 -30
  83. package/dist/Incentives/Incentive.js.map +1 -1
  84. package/dist/Incentives/PointsIncentive.cjs +1 -1
  85. package/dist/Incentives/PointsIncentive.cjs.map +1 -1
  86. package/dist/Incentives/PointsIncentive.d.ts +2 -2
  87. package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
  88. package/dist/Incentives/PointsIncentive.js +13 -9
  89. package/dist/Incentives/PointsIncentive.js.map +1 -1
  90. package/dist/{SimpleDenyList-4PtOPXTc.js → SimpleDenyList-C21O9Yfi.js} +23 -19
  91. package/dist/SimpleDenyList-C21O9Yfi.js.map +1 -0
  92. package/dist/SimpleDenyList-DeJRKD2D.cjs +2 -0
  93. package/dist/{SimpleDenyList-4PtOPXTc.js.map → SimpleDenyList-DeJRKD2D.cjs.map} +1 -1
  94. package/dist/Validators/SignerValidator.cjs +1 -1
  95. package/dist/Validators/SignerValidator.cjs.map +1 -1
  96. package/dist/Validators/SignerValidator.d.ts +2 -2
  97. package/dist/Validators/SignerValidator.d.ts.map +1 -1
  98. package/dist/Validators/SignerValidator.js +18 -14
  99. package/dist/Validators/SignerValidator.js.map +1 -1
  100. package/dist/Validators/Validator.cjs +1 -1
  101. package/dist/Validators/Validator.js +1 -1
  102. package/dist/deployments-BvFcK_eR.js +40 -0
  103. package/dist/deployments-BvFcK_eR.js.map +1 -0
  104. package/dist/deployments-Ho4PnGCS.cjs +2 -0
  105. package/dist/deployments-Ho4PnGCS.cjs.map +1 -0
  106. package/dist/deployments.json +38 -0
  107. package/dist/errors.cjs +1 -1
  108. package/dist/errors.cjs.map +1 -1
  109. package/dist/errors.d.ts +122 -20
  110. package/dist/errors.d.ts.map +1 -1
  111. package/dist/errors.js +98 -28
  112. package/dist/errors.js.map +1 -1
  113. package/dist/{generated-BDeDiaCK.js → generated-LpgSHrH0.js} +150 -110
  114. package/dist/generated-LpgSHrH0.js.map +1 -0
  115. package/dist/generated-tq_HLZJ0.cjs +3 -0
  116. package/dist/generated-tq_HLZJ0.cjs.map +1 -0
  117. package/dist/index.cjs +1 -1
  118. package/dist/index.js +115 -108
  119. package/dist/utils.cjs +1 -1
  120. package/dist/utils.cjs.map +1 -1
  121. package/dist/utils.d.ts +25 -11
  122. package/dist/utils.d.ts.map +1 -1
  123. package/dist/utils.js +38 -23
  124. package/dist/utils.js.map +1 -1
  125. package/package.json +10 -6
  126. package/src/Actions/Action.test.ts +8 -4
  127. package/src/Actions/ContractAction.ts +5 -3
  128. package/src/Actions/ERC721MintAction.ts +5 -3
  129. package/src/Actions/EventAction.test.ts +528 -100
  130. package/src/Actions/EventAction.ts +302 -60
  131. package/src/AllowLists/AllowList.test.ts +1 -1
  132. package/src/AllowLists/SimpleAllowList.ts +6 -3
  133. package/src/AllowLists/SimpleDenyList.ts +6 -3
  134. package/src/BoostCore.test.ts +31 -91
  135. package/src/BoostCore.ts +137 -34
  136. package/src/BoostRegistry.ts +89 -21
  137. package/src/Budgets/ManagedBudget.ts +6 -4
  138. package/src/Budgets/SimpleBudget.ts +4 -3
  139. package/src/Budgets/VestingBudget.ts +4 -3
  140. package/src/Deployable/DeployableTarget.ts +22 -11
  141. package/src/Incentives/AllowListIncentive.ts +6 -3
  142. package/src/Incentives/CGDAIncentive.ts +6 -3
  143. package/src/Incentives/ERC1155Incentive.ts +4 -3
  144. package/src/Incentives/ERC20Incentive.ts +6 -3
  145. package/src/Incentives/ERC20VariableIncentive.ts +6 -3
  146. package/src/Incentives/PointsIncentive.ts +6 -3
  147. package/src/Validators/SignerValidator.ts +6 -3
  148. package/src/errors.ts +177 -21
  149. package/src/utils.ts +60 -11
  150. package/dist/SimpleDenyList-CqT0BMP7.cjs +0 -2
  151. package/dist/SimpleDenyList-CqT0BMP7.cjs.map +0 -1
  152. package/dist/generated-BDeDiaCK.js.map +0 -1
  153. package/dist/generated-wKBNvm48.cjs +0 -3
  154. package/dist/generated-wKBNvm48.cjs.map +0 -1
@@ -1,22 +1,26 @@
1
- import { aV as o, aW as g, aX as h, aY as A, aZ as T } from "../generated-BDeDiaCK.js";
2
- import { isAddressEqual as p, encodeAbiParameters as w } from "viem";
3
- import { getLogs as S } from "viem/actions";
4
- import { DeployableTarget as E } from "../Deployable/DeployableTarget.js";
5
- import { FieldValueUndefinedError as N, UnrecognizedFilterTypeError as x, FieldValueNotComparableError as C, InvalidNumericalCriteriaError as u, NoEventActionStepsProvidedError as I, TooManyEventActionStepsProvidedError as D } from "../errors.js";
6
- import { RegistryType as v } from "../utils.js";
7
- const R = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660048111156105305761052f6115d7565b5b6004811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600481111561076e5761076d6115d7565b5b60048111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836004811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836004811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836004811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600481111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600481111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600581106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60058110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220a8ee5f8b5a49a9c61c1747482b13d7b4617cfc02983722a0395994bf27c456a064736f6c634300081a0033", _ = {
1
+ import { b8 as u, b9 as w, ba as x, bb as T, bc as E } from "../generated-LpgSHrH0.js";
2
+ import { trim as I, decodeFunctionData as S, fromHex as p, isAddressEqual as C, encodeAbiParameters as v } from "viem";
3
+ import { getLogs as N } from "viem/actions";
4
+ import { d as D } from "../deployments-BvFcK_eR.js";
5
+ import { DeployableTarget as R } from "../Deployable/DeployableTarget.js";
6
+ import { UnparseableAbiParamError as P, FunctionDataDecodeError as _, UnrecognizedFilterTypeError as B, FieldValueNotComparableError as y, InvalidNumericalCriteriaError as l, DecodedArgsMalformedError as U, FieldValueUndefinedError as m, NoEventActionStepsProvidedError as L, TooManyEventActionStepsProvidedError as O } from "../errors.js";
7
+ import { RegistryType as F } from "../utils.js";
8
+ const G = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161231a6100c85f395f61034a015261231a5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b59190611333565b610273565b6040516100c79190611378565b60405180910390f35b6100ea60048036038101906100e591906113f2565b6102ec565b6040516100f89291906114ad565b60405180910390f35b34801561010c575f80fd5b50610115610321565b60405161012291906114ea565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c919061157d565b60405180910390f35b348015610160575f80fd5b5061017b600480360381019061017691906113f2565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906118e9565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611933565b610648565b6040516101da91906119e4565b60405180910390f35b3480156101ee575f80fd5b50610209600480360381019061020491906113f2565b610875565b6040516102169190611a04565b60405180910390f35b34801561022a575f80fd5b506102336108a9565b6040516102409190611a8a565b60405180910390f35b348015610254575f80fd5b5061025d610981565b60405161026a9190611ab2565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e48261098d565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610a06565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190611fb0565b610a2f565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606004805480602002602001604051908101604052809291908181526020015f905b8282101561063f578382905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff16600181111561046a576104696115d7565b5b600181111561047c5761047b6115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff1660058111156105305761052f6115d7565b5b6005811115610542576105416115d7565b5b81526020015f820160019054906101000a900460ff16600381111561056a576105696115d7565b5b600381111561057c5761057b6115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ac90612024565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890612024565b80156106235780601f106105fa57610100808354040283529160200191610623565b820191905f5260205f20905b81548152906001019060200180831161060657829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b6106506111c4565b6004828154811061066457610663612054565b5b905f5260205f2090600502016040518060c00160405290815f8201548152602001600182015f9054906101000a900460ff1660018111156106a8576106a76115d7565b5b60018111156106ba576106b96115d7565b5b81526020016001820160019054906101000a900460ff1660ff1660ff1681526020016001820160029054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160028201548152602001600382016040518060800160405290815f82015f9054906101000a900460ff16600581111561076e5761076d6115d7565b5b60058111156107805761077f6115d7565b5b81526020015f820160019054906101000a900460ff1660038111156107a8576107a76115d7565b5b60038111156107ba576107b96115d7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546107ea90612024565b80601f016020809104026020016040519081016040528092919081815260200182805461081690612024565b80156108615780601f1061083857610100808354040283529160200191610861565b820191905f5260205f20905b81548152906001019060200180831161084457829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b1611229565b5f6040518060a00160405290815f82015f9054906101000a900460ff1660018111156108e0576108df6115d7565b5b60018111156108f2576108f16115d7565b5b815260200160018201548152602001600282015f9054906101000a900460ff1660ff1660ff1681526020016002820160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600382015481525050905090565b5f600480549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109ff57506109fe826110be565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610a37611137565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610a6457610a636115d7565b5b0217905550602082015181600101556040820151816002015f6101000a81548160ff021916908360ff16021790555060608201518160020160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816003015590505060048160200151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610b4657610b456115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610bee57610bed6115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610c1d57610c1c6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610c579190612215565b505050505060048160400151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610cbb57610cba6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610d6357610d626115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610d9257610d916115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610dcc9190612215565b505050505060048160600151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610e3057610e2f6115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff02191690836005811115610ed857610ed76115d7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610f0757610f066115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610f419190612215565b505050505060048160800151908060018154018082558091505060019003905f5260205f2090600502015f909190919091505f820151815f01556020820151816001015f6101000a81548160ff02191690836001811115610fa557610fa46115d7565b5b021790555060408201518160010160016101000a81548160ff021916908360ff16021790555060608201518160010160026101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816002015560a0820151816003015f820151815f015f6101000a81548160ff0219169083600581111561104d5761104c6115d7565b5b02179055506020820151815f0160016101000a81548160ff0219169083600381111561107c5761107b6115d7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816110b69190612215565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611130575061112f8261115b565b5b9050919050565b5f611140610a06565b905080546001166111585763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060c001604052805f80191681526020015f60018111156111eb576111ea6115d7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f8152602001611223611281565b81525090565b6040518060a001604052805f6001811115611247576112466115d7565b5b81526020015f80191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020015f81525090565b60405180608001604052805f600581111561129f5761129e6115d7565b5b81526020015f60038111156112b7576112b66115d7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611312816112de565b811461131c575f80fd5b50565b5f8135905061132d81611309565b92915050565b5f60208284031215611348576113476112d6565b5b5f6113558482850161131f565b91505092915050565b5f8115159050919050565b6113728161135e565b82525050565b5f60208201905061138b5f830184611369565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126113b2576113b1611391565b5b8235905067ffffffffffffffff8111156113cf576113ce611395565b5b6020830191508360018202830111156113eb576113ea611399565b5b9250929050565b5f8060208385031215611408576114076112d6565b5b5f83013567ffffffffffffffff811115611425576114246112da565b5b6114318582860161139d565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61147f8261143d565b6114898185611447565b9350611499818560208601611457565b6114a281611465565b840191505092915050565b5f6040820190506114c05f830185611369565b81810360208301526114d28184611475565b90509392505050565b6114e4816112de565b82525050565b5f6020820190506114fd5f8301846114db565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61154561154061153b84611503565b611522565b611503565b9050919050565b5f6115568261152b565b9050919050565b5f6115678261154c565b9050919050565b6115778161155d565b82525050565b5f6020820190506115905f83018461156e565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b5f819050919050565b6115d1816115bf565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611615576116146115d7565b5b50565b5f81905061162582611604565b919050565b5f61163482611618565b9050919050565b6116448161162a565b82525050565b5f60ff82169050919050565b61165f8161164a565b82525050565b5f61166f82611503565b9050919050565b61167f81611665565b82525050565b5f819050919050565b61169781611685565b82525050565b600681106116ae576116ad6115d7565b5b50565b5f8190506116be8261169d565b919050565b5f6116cd826116b1565b9050919050565b6116dd816116c3565b82525050565b600481106116f4576116f36115d7565b5b50565b5f819050611704826116e3565b919050565b5f611713826116f7565b9050919050565b61172381611709565b82525050565b5f82825260208201905092915050565b5f6117438261143d565b61174d8185611729565b935061175d818560208601611457565b61176681611465565b840191505092915050565b5f608083015f8301516117865f8601826116d4565b506020830151611799602086018261171a565b5060408301516117ac6040860182611656565b50606083015184820360608601526117c48282611739565b9150508091505092915050565b5f60c083015f8301516117e65f8601826115c8565b5060208301516117f9602086018261163b565b50604083015161180c6040860182611656565b50606083015161181f6060860182611676565b506080830151611832608086018261168e565b5060a083015184820360a086015261184a8282611771565b9150508091505092915050565b5f61186283836117d1565b905092915050565b5f602082019050919050565b5f61188082611596565b61188a81856115a0565b93508360208202850161189c856115b0565b805f5b858110156118d757848403895281516118b88582611857565b94506118c38361186a565b925060208a0199505060018101905061189f565b50829750879550505050505092915050565b5f6020820190508181035f8301526119018184611876565b905092915050565b61191281611685565b811461191c575f80fd5b50565b5f8135905061192d81611909565b92915050565b5f60208284031215611948576119476112d6565b5b5f6119558482850161191f565b91505092915050565b5f60c083015f8301516119735f8601826115c8565b506020830151611986602086018261163b565b5060408301516119996040860182611656565b5060608301516119ac6060860182611676565b5060808301516119bf608086018261168e565b5060a083015184820360a08601526119d78282611771565b9150508091505092915050565b5f6020820190508181035f8301526119fc818461195e565b905092915050565b5f6020820190508181035f830152611a1c8184611475565b905092915050565b60a082015f820151611a385f85018261163b565b506020820151611a4b60208501826115c8565b506040820151611a5e6040850182611656565b506060820151611a716060850182611676565b506080820151611a84608085018261168e565b50505050565b5f60a082019050611a9d5f830184611a24565b92915050565b611aac81611685565b82525050565b5f602082019050611ac55f830184611aa3565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611b0582611465565b810181811067ffffffffffffffff82111715611b2457611b23611acf565b5b80604052505050565b5f611b366112cd565b9050611b428282611afc565b919050565b5f80fd5b60028110611b57575f80fd5b50565b5f81359050611b6881611b4b565b92915050565b611b77816115bf565b8114611b81575f80fd5b50565b5f81359050611b9281611b6e565b92915050565b611ba18161164a565b8114611bab575f80fd5b50565b5f81359050611bbc81611b98565b92915050565b611bcb81611665565b8114611bd5575f80fd5b50565b5f81359050611be681611bc2565b92915050565b5f60a08284031215611c0157611c00611acb565b5b611c0b60a0611b2d565b90505f611c1a84828501611b5a565b5f830152506020611c2d84828501611b84565b6020830152506040611c4184828501611bae565b6040830152506060611c5584828501611bd8565b6060830152506080611c698482850161191f565b60808301525092915050565b60068110611c81575f80fd5b50565b5f81359050611c9281611c75565b92915050565b60048110611ca4575f80fd5b50565b5f81359050611cb581611c98565b92915050565b5f80fd5b5f67ffffffffffffffff821115611cd957611cd8611acf565b5b611ce282611465565b9050602081019050919050565b828183375f83830152505050565b5f611d0f611d0a84611cbf565b611b2d565b905082815260208101848484011115611d2b57611d2a611cbb565b5b611d36848285611cef565b509392505050565b5f82601f830112611d5257611d51611391565b5b8135611d62848260208601611cfd565b91505092915050565b5f60808284031215611d8057611d7f611acb565b5b611d8a6080611b2d565b90505f611d9984828501611c84565b5f830152506020611dac84828501611ca7565b6020830152506040611dc084828501611bae565b604083015250606082013567ffffffffffffffff811115611de457611de3611b47565b5b611df084828501611d3e565b60608301525092915050565b5f60c08284031215611e1157611e10611acb565b5b611e1b60c0611b2d565b90505f611e2a84828501611b84565b5f830152506020611e3d84828501611b5a565b6020830152506040611e5184828501611bae565b6040830152506060611e6584828501611bd8565b6060830152506080611e798482850161191f565b60808301525060a082013567ffffffffffffffff811115611e9d57611e9c611b47565b5b611ea984828501611d6b565b60a08301525092915050565b5f6101208284031215611ecb57611eca611acb565b5b611ed560a0611b2d565b90505f611ee484828501611bec565b5f8301525060a082013567ffffffffffffffff811115611f0757611f06611b47565b5b611f1384828501611dfc565b60208301525060c082013567ffffffffffffffff811115611f3757611f36611b47565b5b611f4384828501611dfc565b60408301525060e082013567ffffffffffffffff811115611f6757611f66611b47565b5b611f7384828501611dfc565b60608301525061010082013567ffffffffffffffff811115611f9857611f97611b47565b5b611fa484828501611dfc565b60808301525092915050565b5f60208284031215611fc557611fc46112d6565b5b5f82013567ffffffffffffffff811115611fe257611fe16112da565b5b611fee84828501611eb5565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061203b57607f821691505b60208210810361204e5761204d611ff7565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026120dd7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826120a2565b6120e786836120a2565b95508019841693508086168417925050509392505050565b5f61211961211461210f84611685565b611522565b611685565b9050919050565b5f819050919050565b612132836120ff565b61214661213e82612120565b8484546120ae565b825550505050565b5f90565b61215a61214e565b612165818484612129565b505050565b5b818110156121885761217d5f82612152565b60018101905061216b565b5050565b601f8211156121cd5761219e81612081565b6121a784612093565b810160208510156121b6578190505b6121ca6121c285612093565b83018261216a565b50505b505050565b5f82821c905092915050565b5f6121ed5f19846008026121d2565b1980831691505092915050565b5f61220583836121de565b9150826002028217905092915050565b61221e8261143d565b67ffffffffffffffff81111561223757612236611acf565b5b6122418254612024565b61224c82828561218c565b5f60209050601f83116001811461227d575f841561226b578287015190505b61227585826121fa565b8655506122dc565b601f19841661228b86612081565b5f5b828110156122b25784890151825560018201915060208501945060208101905061228d565b868310156122cf57848901516122cb601f8916826121de565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220c0fb13f888b0a69e33db3d7586e65062d85bac26cd33b0773ccbf5249746b2b264736f6c634300081a0033", k = {
8
9
  "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef": {
9
10
  name: "Transfer",
10
11
  type: "event",
11
12
  inputs: [
12
13
  {
13
- type: "address"
14
+ type: "address",
15
+ indexed: !0
14
16
  },
15
17
  {
16
- type: "address"
18
+ type: "address",
19
+ indexed: !0
17
20
  },
18
21
  {
19
- type: "uint256"
22
+ type: "uint256",
23
+ indexed: !0
20
24
  }
21
25
  ]
22
26
  },
@@ -80,32 +84,101 @@ const R = "0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f6
80
84
  }
81
85
  ]
82
86
  },
83
- "0x00cb39d6c2c520f0597db0021367767c48fef2964cf402d3c9e9d4df12e43964": {
84
- name: "Test",
87
+ "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b": {
88
+ name: "InfoIndexed",
89
+ type: "event",
90
+ inputs: [
91
+ {
92
+ type: "address",
93
+ indexed: !0
94
+ },
95
+ {
96
+ type: "string",
97
+ indexed: !0
98
+ }
99
+ ]
100
+ },
101
+ "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c": {
102
+ name: "Info",
85
103
  type: "event",
86
104
  inputs: [
105
+ {
106
+ type: "address"
107
+ },
87
108
  {
88
109
  type: "string"
89
110
  }
90
111
  ]
91
112
  }
92
- }, B = {
93
- "Transfer(address,address,uint256)": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
113
+ }, H = {
114
+ "Transfer(address indexed,address indexed,uint256 indexed)": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
94
115
  "Purchased(address,address,uint256,uint256,uint256)": "0xb362243af1e2070d7d5bf8d713f2e0fab64203f1b71462afbe20572909788c5e",
95
116
  "NameRegistered(string,bytes32,address,uint256,uint256,uint256)": "0x69e37f151eb98a09618ddaa80c8cfaf1ce5996867c489f45b555b412271ebf27",
96
117
  "DelegateChanged(address,address,address)": "0x3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f",
97
- "Test(string)": "0x00cb39d6c2c520f0597db0021367767c48fef2964cf402d3c9e9d4df12e43964"
118
+ "InfoIndexed(address indexed,string indexed)": "0x883a883a9ea847654d33471b1e5fb2dea76a2cfc86a6cc7da6c14102800e4d0b",
119
+ "Info(address,string)": "0xe46343e36b0721f173bdc76b8f25c08b04f417df09c27e1e83ba1980007fef8c"
120
+ }, M = {
121
+ abi: k,
122
+ selectors: H
123
+ }, $ = {
124
+ "0x40c10f19": {
125
+ name: "mint",
126
+ type: "function",
127
+ stateMutability: "nonpayable",
128
+ inputs: [
129
+ {
130
+ type: "address",
131
+ name: "to"
132
+ },
133
+ {
134
+ type: "uint256",
135
+ name: "amount"
136
+ }
137
+ ],
138
+ outputs: []
139
+ },
140
+ "0x17d304b0": {
141
+ name: "mintPayable",
142
+ type: "function",
143
+ stateMutability: "nonpayable",
144
+ inputs: [
145
+ {
146
+ type: "address",
147
+ name: "to"
148
+ },
149
+ {
150
+ type: "uint256",
151
+ name: "amount"
152
+ }
153
+ ],
154
+ outputs: []
155
+ },
156
+ "0x6a627842": {
157
+ name: "mint",
158
+ type: "function",
159
+ stateMutability: "nonpayable",
160
+ inputs: [
161
+ {
162
+ type: "address"
163
+ }
164
+ ],
165
+ outputs: []
166
+ }
167
+ }, Q = {
168
+ "mint(address to, uint256 amount)": "0x40c10f19",
169
+ "mintPayable(address to, uint256 amount)": "0x17d304b0",
170
+ "mint(address)": "0x6a627842"
98
171
  }, V = {
99
- abi: _,
100
- selectors: B
172
+ abi: $,
173
+ selectors: Q
101
174
  };
102
- var U = /* @__PURE__ */ ((b) => (b[b.EQUAL = 0] = "EQUAL", b[b.NOT_EQUAL = 1] = "NOT_EQUAL", b[b.GREATER_THAN = 2] = "GREATER_THAN", b[b.LESS_THAN = 3] = "LESS_THAN", b[b.CONTAINS = 4] = "CONTAINS", b))(U || {}), L = /* @__PURE__ */ ((b) => (b[b.UINT = 0] = "UINT", b[b.ADDRESS = 1] = "ADDRESS", b[b.BYTES = 2] = "BYTES", b[b.STRING = 3] = "STRING", b))(L || {}), O = /* @__PURE__ */ ((b) => (b[b.EVENT = 0] = "EVENT", b[b.FUNC = 1] = "FUNC", b))(O || {});
103
- function P(b) {
175
+ var q = /* @__PURE__ */ ((b) => (b[b.EQUAL = 0] = "EQUAL", b[b.NOT_EQUAL = 1] = "NOT_EQUAL", b[b.GREATER_THAN = 2] = "GREATER_THAN", b[b.LESS_THAN = 3] = "LESS_THAN", b[b.CONTAINS = 4] = "CONTAINS", b[b.REGEX = 5] = "REGEX", b))(q || {}), X = /* @__PURE__ */ ((b) => (b[b.UINT = 0] = "UINT", b[b.ADDRESS = 1] = "ADDRESS", b[b.BYTES = 2] = "BYTES", b[b.STRING = 3] = "STRING", b))(X || {}), Y = /* @__PURE__ */ ((b) => (b[b.EVENT = 0] = "EVENT", b[b.FUNC = 1] = "FUNC", b))(Y || {});
176
+ function z(b) {
104
177
  return Array.isArray(b.actionSteps);
105
178
  }
106
- const r = class r extends E {
179
+ const o = class o extends R {
107
180
  constructor() {
108
- super(...arguments), this.abi = o;
181
+ super(...arguments), this.abi = u;
109
182
  }
110
183
  /**
111
184
  * Gets a specific action event by index
@@ -113,7 +186,7 @@ const r = class r extends E {
113
186
  * @public
114
187
  * @async
115
188
  * @param {number} index The index of the action event to retrieve
116
- * @param {?ReadParams<typeof eventActionAbi, 'getActionStep'>} [params]
189
+ * @param {?ReadEventActionParams<'getActionStep'>} [params]
117
190
  * @returns {Promise<ActionStep>}
118
191
  */
119
192
  async getActionStep(f, e) {
@@ -124,24 +197,24 @@ const r = class r extends E {
124
197
  *
125
198
  * @public
126
199
  * @async
127
- * @param {?ReadParams<typeof eventActionAbi, 'getActionSteps'>} [params]
200
+ * @param {?ReadEventActionParams<'getActionSteps'>} [params]
128
201
  * @returns {Promise<ActionStep[]>}
129
202
  */
130
203
  async getActionSteps(f) {
131
- const e = await g(this._config, {
204
+ const e = await w(this._config, {
132
205
  address: this.assertValidAddress(),
133
206
  ...this.optionallyAttachAccount(),
134
207
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
135
208
  ...f
136
209
  });
137
- return G(e.map(l));
210
+ return J(e.map(h));
138
211
  }
139
212
  /**
140
213
  * Gets the count of action events
141
214
  *
142
215
  * @public
143
216
  * @async
144
- * @param {?ReadParams<typeof eventActionAbi, 'getActionStepsCount'>} [params]
217
+ * @param {?ReadEventActionParams<'getActionStepsCount'>} [params]
145
218
  * @returns {Promise<bigint>}
146
219
  */
147
220
  async getActionStepsCount(f) {
@@ -152,17 +225,16 @@ const r = class r extends E {
152
225
  *
153
226
  * @public
154
227
  * @async
155
- * @param {?ReadParams<typeof eventActionAbi, 'getActionClaimant'>} [params]
228
+ * @param {?ReadEventActionParams<'getActionClaimant'>} [params]
156
229
  * @returns {Promise<ActionClaimant>}
157
230
  */
158
231
  async getActionClaimant(f) {
159
- const e = await h(this._config, {
232
+ const e = await x(this._config, {
160
233
  address: this.assertValidAddress(),
161
234
  ...this.optionallyAttachAccount(),
162
- // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
163
235
  ...f
164
236
  });
165
- return l(e);
237
+ return h(e);
166
238
  }
167
239
  /**
168
240
  * Executes a prepared event action
@@ -186,14 +258,14 @@ const r = class r extends E {
186
258
  * @returns {unknown}
187
259
  */
188
260
  async executeRaw(f, e) {
189
- const { request: a, result: t } = await A(this._config, {
261
+ const { request: t, result: a } = await T(this._config, {
190
262
  address: this.assertValidAddress(),
191
263
  ...this.optionallyAttachAccount(),
192
264
  // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
193
265
  ...e,
194
266
  args: [f]
195
267
  });
196
- return { hash: await T(this._config, a), result: t };
268
+ return { hash: await E(this._config, t), result: a };
197
269
  }
198
270
  /**
199
271
  * Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
@@ -201,89 +273,198 @@ const r = class r extends E {
201
273
  *
202
274
  * @public
203
275
  * @async
204
- * @param {?ReadParams<typeof eventActionAbi, 'getActionSteps'> &
205
- * GetLogsParams<Abi, ContractEventName<Abi>> & {
206
- * knownEvents?: Record<Hex, AbiEvent>;
207
- * logs?: Log[];
208
- * }} [params]
276
+ * @param {?TxParams} [params]
209
277
  * @returns {Promise<boolean>}
210
278
  */
211
279
  async validateActionSteps(f) {
212
- const e = await this.getActionSteps(f);
213
- for (const a of e)
214
- if (!await this.isActionStepValid(a, f))
280
+ const e = await this.getActionSteps();
281
+ for (const t of e)
282
+ if (!await this.isActionStepValid(t, f))
215
283
  return !1;
216
284
  return !0;
217
285
  }
218
286
  /**
219
- * Validates a single action step with a given criteria against logs.
220
- * If logs are provided in the optional `params` argument, then those logs will be used instead of fetched with the configured client.
287
+ * Validates a single action step with a given criteria against logs or function calls.
288
+ * If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
289
+ * For functions a hash is required.
221
290
  *
222
291
  * @public
223
292
  * @async
224
- * @param {ActionStep} actionStep
225
- * @param {?GetLogsParams<Abi, ContractEventName<Abi>> & {
226
- * knownEvents?: Record<Hex, AbiEvent>;
227
- * logs?: Log[];
228
- * }} [params]
293
+ * @param {ActionStep} actionStep - The action step to validate. Can be a function of event step.
294
+ * @param {?TxParams & { chainId?: number }} [params] - Additional parameters for validation, including known events, logs, and chain ID.
229
295
  * @returns {Promise<boolean>}
230
296
  */
231
297
  async isActionStepValid(f, e) {
232
- const a = f.actionParameter, t = f.signature;
233
- let d;
234
- if (e != null && e.knownEvents ? d = e.knownEvents[t] : d = V.abi[t], !d)
235
- throw new Error(`No known ABI for given event signature: ${t}`);
236
- const c = f.targetContract, n = (e == null ? void 0 : e.logs) || await S(this._config.getClient({ chainId: e == null ? void 0 : e.chainId }), {
298
+ return f.signatureType === 0 ? await this.isActionEventValid(f, e) : f.signatureType === 1 ? await this.isActionFunctionValid(
299
+ f,
300
+ e
301
+ ) : !1;
302
+ }
303
+ /**
304
+ * Validates a single action event with a given criteria against logs.
305
+ * If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
306
+ *
307
+ * @public
308
+ * @async
309
+ * @param {ActionStep} actionStep - The action step containing the event to validate.
310
+ * @param {?ValidateEventStepParams & { chainId?: number }} [params] - Additional parameters for validation, including known events, logs, and chain ID.
311
+ * @returns {Promise<boolean>} Resolves to true if the action event is valid, throws if input is invalid, otherwise false.
312
+ */
313
+ async isActionEventValid(f, e) {
314
+ const t = f.actionParameter, a = f.signature;
315
+ let n;
316
+ if (e != null && e.knownEvents ? n = e.knownEvents[a] : n = M.abi[a], !n)
317
+ throw new Error(`No known ABI for given event signature: ${a}`);
318
+ if (this.isArraylikeIndexed(f, n))
319
+ throw new P(
320
+ f.actionParameter.fieldIndex,
321
+ n
322
+ );
323
+ const i = f.targetContract, d = (e == null ? void 0 : e.logs) || await N(this._config.getClient({ chainId: e == null ? void 0 : e.chainId }), {
237
324
  // biome-ignore lint/suspicious/noExplicitAny: <explanation>
238
325
  ...e,
239
- address: c,
240
- event: d
326
+ address: i,
327
+ event: n
241
328
  });
242
- if (!n.length)
329
+ if (!d.length)
243
330
  return !1;
244
- for (let i of n)
245
- if (!this.validateLogAgainstCriteria(a, i))
331
+ for (let c of d)
332
+ if (!this.validateLogAgainstCriteria(t, c))
246
333
  return !1;
247
334
  return !0;
248
335
  }
249
336
  /**
250
- * Validates a {@link Log} against a given criteria.
337
+ * Validates a single action function with a given criteria against the transaction input.
338
+ * If a transaction hash is provided in the optional `params` argument, then the transaction
339
+ * will be fetched and decoded using the configured client.
340
+ *
341
+ * @public
342
+ * @async
343
+ * @param {ActionStep} actionStep - The action step containing the function to validate.
344
+ * @param {?ValidateFunctionStepParams & { chainId?: number }} [params] - Additional parameters for validation, including known events, transaction hash, and chain ID.
345
+ * @returns {Promise<boolean>} Resolves to true if the action function is valid, throws if the inputs are invalid, otherwise false.
346
+ */
347
+ async isActionFunctionValid(f, e) {
348
+ const t = f.actionParameter, a = I(f.signature);
349
+ if (!e || !(e != null && e.hash))
350
+ throw new Error("Hash is required for function validation");
351
+ const i = await this._config.getClient({
352
+ chainId: e == null ? void 0 : e.chainId
353
+ }).getTransaction({ hash: e.hash }), d = V.abi[a];
354
+ if (!d)
355
+ throw new Error(
356
+ `No known ABI for given function signature: ${a}`
357
+ );
358
+ let c;
359
+ try {
360
+ c = S({
361
+ abi: [d],
362
+ data: i.input
363
+ });
364
+ } catch (A) {
365
+ throw new _([d], A);
366
+ }
367
+ const r = c.args;
368
+ return !(!r || !c || !this.validateFunctionAgainstCriteria(
369
+ t,
370
+ r
371
+ ));
372
+ }
373
+ /**
374
+ * Validates a field against a given criteria.
251
375
  *
252
376
  * @param {Criteria} criteria - The criteria to validate against.
253
- * @param {Log} log - The Viem event log.
254
- * @returns {boolean} - Returns true if the log passes the criteria, false otherwise.
377
+ * @param {string | bigint} fieldValue - The field value to validate.
378
+ * @returns {Promise<boolean>} - Returns true if the field passes the criteria, false otherwise.
255
379
  */
256
- validateLogAgainstCriteria(f, e) {
257
- const a = e.topics.at(f.fieldIndex);
258
- if (a === void 0)
259
- throw new N({ log: e, criteria: f, fieldValue: a });
380
+ validateFieldAgainstCriteria(f, e, t) {
260
381
  switch (f.filterType) {
261
382
  case 0:
262
- return f.fieldType === 1 ? p(
263
- f.filterData,
264
- `0x${a.slice(-40)}`
265
- ) : a === f.filterData;
383
+ return f.fieldType === 1 ? C(f.filterData, e) : e === f.filterData;
266
384
  case 1:
267
- return f.fieldType === 1 ? !p(
268
- f.filterData,
269
- `0x${a.slice(-40)}`
270
- ) : a !== f.filterData;
385
+ return e !== f.filterData;
271
386
  case 2:
272
387
  if (f.fieldType === 0)
273
- return BigInt(a) > BigInt(f.filterData);
274
- throw new u({ log: e, criteria: f, fieldValue: a });
388
+ return BigInt(e) > BigInt(f.filterData);
389
+ throw new l({
390
+ ...t,
391
+ criteria: f,
392
+ fieldValue: e
393
+ });
275
394
  case 3:
276
395
  if (f.fieldType === 0)
277
- return BigInt(a) < BigInt(f.filterData);
278
- throw new u({ log: e, criteria: f, fieldValue: a });
396
+ return BigInt(e) < BigInt(f.filterData);
397
+ throw new l({
398
+ ...t,
399
+ criteria: f,
400
+ fieldValue: e
401
+ });
279
402
  case 4:
280
- if (f.fieldType === 2 || f.fieldType === 3)
281
- return a.includes(f.filterData);
282
- throw new C({ log: e, criteria: f, fieldValue: a });
403
+ if (f.fieldType === 2 || f.fieldType === 3) {
404
+ let a;
405
+ return f.fieldType === 3 ? a = p(f.filterData, "string") : a = f.filterData.slice(2), e.includes(a);
406
+ }
407
+ throw new y({
408
+ ...t,
409
+ criteria: f,
410
+ fieldValue: e
411
+ });
412
+ case 5:
413
+ if (typeof e != "string")
414
+ throw new y({
415
+ ...t,
416
+ criteria: f,
417
+ fieldValue: e
418
+ });
419
+ if (f.fieldType === 3) {
420
+ const a = p(f.filterData, "string");
421
+ return new RegExp(a).test(e);
422
+ }
283
423
  default:
284
- throw new x({ log: e, criteria: f, fieldValue: a });
424
+ throw new B({
425
+ ...t,
426
+ criteria: f,
427
+ fieldValue: e
428
+ });
285
429
  }
286
430
  }
431
+ /**
432
+ * Validates a {@link Log} against a given criteria.
433
+ *
434
+ * @param {Criteria} criteria - The criteria to validate against.
435
+ * @param {Log} log - The Viem event log.
436
+ * @returns {Promise<boolean>} - Returns true if the log passes the criteria, false otherwise.
437
+ */
438
+ validateLogAgainstCriteria(f, e) {
439
+ if (!Array.isArray(e.args) || e.args.length <= f.fieldIndex)
440
+ throw new U({
441
+ log: e,
442
+ criteria: f,
443
+ fieldValue: void 0
444
+ });
445
+ const t = e.args.at(f.fieldIndex);
446
+ if (t === void 0)
447
+ throw new m({ log: e, criteria: f, fieldValue: t });
448
+ return this.validateFieldAgainstCriteria(f, t, { log: e });
449
+ }
450
+ /**
451
+ * Validates a function's decoded arguments against a given criteria.
452
+ *
453
+ * @param {Criteria} criteria - The criteria to validate against.
454
+ * @param {unknown[]} decodedArgs - The decoded arguments of the function call.
455
+ * @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
456
+ */
457
+ validateFunctionAgainstCriteria(f, e) {
458
+ const t = e[f.fieldIndex];
459
+ if (t === void 0)
460
+ throw new m({
461
+ criteria: f,
462
+ fieldValue: t
463
+ });
464
+ return this.validateFieldAgainstCriteria(f, t, {
465
+ decodedArgs: e
466
+ });
467
+ }
287
468
  /**
288
469
  * @inheritdoc
289
470
  *
@@ -293,42 +474,49 @@ const r = class r extends E {
293
474
  * @returns {GenericDeployableParams}
294
475
  */
295
476
  buildParameters(f, e) {
296
- const [a, t] = this.validateDeploymentConfig(
477
+ const [t, a] = this.validateDeploymentConfig(
297
478
  f,
298
479
  e
299
480
  );
300
- let d;
301
- if (P(a)) {
302
- let c = a.actionSteps.filter((i) => !!i);
303
- if (c.length === 0)
304
- throw new I();
305
- if (c.length > 4)
306
- throw new D();
307
- let n = Array.from({ length: 4 }, (i, m) => c.at(m) || c.at(-1));
308
- d = {
309
- actionClaimant: a.actionClaimant,
310
- actionStepOne: n[0],
311
- actionStepTwo: n[1],
312
- actionStepThree: n[2],
313
- actionStepFour: n[3]
481
+ let n;
482
+ if (z(t)) {
483
+ let i = t.actionSteps.filter((c) => !!c);
484
+ if (i.length === 0)
485
+ throw new L();
486
+ if (i.length > 4)
487
+ throw new O();
488
+ let d = Array.from({ length: 4 }, (c, r) => i.at(r) || i.at(-1));
489
+ n = {
490
+ actionClaimant: t.actionClaimant,
491
+ actionStepOne: d[0],
492
+ actionStepTwo: d[1],
493
+ actionStepThree: d[2],
494
+ actionStepFour: d[3]
314
495
  };
315
496
  } else
316
- d = a;
497
+ n = t;
317
498
  return {
318
- abi: o,
319
- bytecode: R,
320
- args: [H(d)],
321
- ...this.optionallyAttachAccount(t.account)
499
+ abi: u,
500
+ bytecode: G,
501
+ args: [W(n)],
502
+ ...this.optionallyAttachAccount(a.account)
322
503
  };
323
504
  }
505
+ isArraylikeIndexed(f, e) {
506
+ var t;
507
+ return !!((f.actionParameter.fieldType === 3 || f.actionParameter.fieldType === 2) && ((t = e.inputs[f.actionParameter.fieldIndex]) != null && t.indexed));
508
+ }
324
509
  };
325
- r.base = "0x2bD655240116b18f5b9F24E4b7b51B87B7b33D37", r.registryType = v.ACTION;
326
- let y = r;
327
- function G(b) {
510
+ o.bases = {
511
+ ...D,
512
+ 31337: "0x2bD655240116b18f5b9F24E4b7b51B87B7b33D37"
513
+ }, o.registryType = F.ACTION;
514
+ let g = o;
515
+ function J(b) {
328
516
  const f = [], e = {};
329
- for (let a of b) {
330
- const t = JSON.stringify(a);
331
- e[t] || (f.push(a), e[t] = !0);
517
+ for (let t of b) {
518
+ const a = JSON.stringify(t);
519
+ e[a] || (f.push(t), e[a] = !0);
332
520
  }
333
521
  return f;
334
522
  }
@@ -338,7 +526,7 @@ function s(b) {
338
526
  chainid: BigInt(b.chainid)
339
527
  };
340
528
  }
341
- function l(b) {
529
+ function h(b) {
342
530
  if (b.chainid > BigInt(Number.MAX_SAFE_INTEGER))
343
531
  throw new Error("Chain ID exceeds max safe integer");
344
532
  return {
@@ -346,14 +534,14 @@ function l(b) {
346
534
  chainid: Number(b.chainid)
347
535
  };
348
536
  }
349
- function H({
537
+ function W({
350
538
  actionClaimant: b,
351
539
  actionStepOne: f,
352
540
  actionStepTwo: e,
353
- actionStepThree: a,
354
- actionStepFour: t
541
+ actionStepThree: t,
542
+ actionStepFour: a
355
543
  }) {
356
- return w(
544
+ return v(
357
545
  [
358
546
  {
359
547
  type: "tuple",
@@ -469,23 +657,23 @@ function H({
469
657
  actionType: e.actionType || 0
470
658
  },
471
659
  actionStepThree: {
472
- ...s(a),
473
- actionType: a.actionType || 0
474
- },
475
- actionStepFour: {
476
660
  ...s(t),
477
661
  actionType: t.actionType || 0
662
+ },
663
+ actionStepFour: {
664
+ ...s(a),
665
+ actionType: a.actionType || 0
478
666
  }
479
667
  }
480
668
  ]
481
669
  );
482
670
  }
483
671
  export {
484
- y as EventAction,
485
- U as FilterType,
486
- L as PrimitiveType,
487
- O as SignatureType,
488
- P as isEventActionPayloadSimple,
489
- H as prepareEventActionPayload
672
+ g as EventAction,
673
+ q as FilterType,
674
+ X as PrimitiveType,
675
+ Y as SignatureType,
676
+ z as isEventActionPayloadSimple,
677
+ W as prepareEventActionPayload
490
678
  };
491
679
  //# sourceMappingURL=EventAction.js.map