@boostxyz/sdk 0.0.0-alpha.8 → 1.1.0-alpha.22

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 (266) 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 +7 -7
  4. package/dist/Actions/ContractAction.d.ts +57 -14
  5. package/dist/Actions/ContractAction.d.ts.map +1 -1
  6. package/dist/Actions/ERC721MintAction.d.ts +50 -23
  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 +420 -45
  11. package/dist/Actions/EventAction.d.ts.map +1 -1
  12. package/dist/Actions/EventAction.js +15 -225
  13. package/dist/Actions/EventAction.js.map +1 -1
  14. package/dist/AllowLists/AllowList.cjs +1 -1
  15. package/dist/AllowLists/AllowList.cjs.map +1 -1
  16. package/dist/AllowLists/AllowList.d.ts +6 -4
  17. package/dist/AllowLists/AllowList.d.ts.map +1 -1
  18. package/dist/AllowLists/AllowList.js +45 -23
  19. package/dist/AllowLists/AllowList.js.map +1 -1
  20. package/dist/AllowLists/OpenAllowList.d.ts +423 -0
  21. package/dist/AllowLists/OpenAllowList.d.ts.map +1 -0
  22. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  23. package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
  24. package/dist/AllowLists/SimpleAllowList.d.ts +123 -39
  25. package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
  26. package/dist/AllowLists/SimpleAllowList.js +75 -76
  27. package/dist/AllowLists/SimpleAllowList.js.map +1 -1
  28. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  29. package/dist/AllowLists/SimpleDenyList.cjs.map +1 -1
  30. package/dist/AllowLists/SimpleDenyList.d.ts +234 -13
  31. package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
  32. package/dist/AllowLists/SimpleDenyList.js +11 -200
  33. package/dist/AllowLists/SimpleDenyList.js.map +1 -1
  34. package/dist/Auth/PassthroughAuth.cjs +1 -1
  35. package/dist/Auth/PassthroughAuth.cjs.map +1 -1
  36. package/dist/Auth/PassthroughAuth.js +4 -4
  37. package/dist/Auth/PassthroughAuth.js.map +1 -1
  38. package/dist/Boost.cjs +1 -1
  39. package/dist/Boost.cjs.map +1 -1
  40. package/dist/Boost.d.ts +105 -14
  41. package/dist/Boost.d.ts.map +1 -1
  42. package/dist/Boost.js +137 -5
  43. package/dist/Boost.js.map +1 -1
  44. package/dist/BoostCore-BVZExPPu.js +1462 -0
  45. package/dist/BoostCore-BVZExPPu.js.map +1 -0
  46. package/dist/BoostCore-D-E-cnGI.cjs +3 -0
  47. package/dist/BoostCore-D-E-cnGI.cjs.map +1 -0
  48. package/dist/BoostCore.cjs +1 -2
  49. package/dist/BoostCore.cjs.map +1 -1
  50. package/dist/BoostCore.d.ts +759 -82
  51. package/dist/BoostCore.d.ts.map +1 -1
  52. package/dist/BoostCore.js +29 -1148
  53. package/dist/BoostCore.js.map +1 -1
  54. package/dist/BoostRegistry.cjs +1 -1
  55. package/dist/BoostRegistry.cjs.map +1 -1
  56. package/dist/BoostRegistry.d.ts +83 -28
  57. package/dist/BoostRegistry.d.ts.map +1 -1
  58. package/dist/BoostRegistry.js +170 -93
  59. package/dist/BoostRegistry.js.map +1 -1
  60. package/dist/Budgets/Budget.cjs +1 -1
  61. package/dist/Budgets/Budget.cjs.map +1 -1
  62. package/dist/Budgets/Budget.d.ts.map +1 -1
  63. package/dist/Budgets/Budget.js +2 -2
  64. package/dist/Budgets/Budget.js.map +1 -1
  65. package/dist/Budgets/ManagedBudget.cjs +1 -1
  66. package/dist/Budgets/ManagedBudget.cjs.map +1 -1
  67. package/dist/Budgets/ManagedBudget.d.ts +112 -192
  68. package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
  69. package/dist/Budgets/ManagedBudget.js +89 -290
  70. package/dist/Budgets/ManagedBudget.js.map +1 -1
  71. package/dist/Budgets/VestingBudget.d.ts +277 -91
  72. package/dist/Budgets/VestingBudget.d.ts.map +1 -1
  73. package/dist/Deployable/Contract.cjs +1 -1
  74. package/dist/Deployable/Contract.cjs.map +1 -1
  75. package/dist/Deployable/Contract.d.ts +4 -5
  76. package/dist/Deployable/Contract.d.ts.map +1 -1
  77. package/dist/Deployable/Contract.js +6 -8
  78. package/dist/Deployable/Contract.js.map +1 -1
  79. package/dist/Deployable/Deployable.cjs.map +1 -1
  80. package/dist/Deployable/Deployable.d.ts +1 -1
  81. package/dist/Deployable/Deployable.d.ts.map +1 -1
  82. package/dist/Deployable/Deployable.js +3 -5
  83. package/dist/Deployable/Deployable.js.map +1 -1
  84. package/dist/Deployable/DeployableTarget.cjs +1 -1
  85. package/dist/Deployable/DeployableTarget.cjs.map +1 -1
  86. package/dist/Deployable/DeployableTarget.d.ts +13 -13
  87. package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
  88. package/dist/Deployable/DeployableTarget.js +30 -27
  89. package/dist/Deployable/DeployableTarget.js.map +1 -1
  90. package/dist/Deployable/DeployableTargetWithRBAC.cjs +2 -0
  91. package/dist/Deployable/DeployableTargetWithRBAC.cjs.map +1 -0
  92. package/dist/Deployable/DeployableTargetWithRBAC.d.ts +179 -0
  93. package/dist/Deployable/DeployableTargetWithRBAC.d.ts.map +1 -0
  94. package/dist/Deployable/DeployableTargetWithRBAC.js +222 -0
  95. package/dist/Deployable/DeployableTargetWithRBAC.js.map +1 -0
  96. package/dist/EventAction-BZt5cjbe.cjs +2 -0
  97. package/dist/EventAction-BZt5cjbe.cjs.map +1 -0
  98. package/dist/EventAction-C_-hJXWm.js +1541 -0
  99. package/dist/EventAction-C_-hJXWm.js.map +1 -0
  100. package/dist/Incentive-BhHaK3PZ.cjs +2 -0
  101. package/dist/Incentive-BhHaK3PZ.cjs.map +1 -0
  102. package/dist/Incentive-Cqg1w6wD.js +312 -0
  103. package/dist/Incentive-Cqg1w6wD.js.map +1 -0
  104. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  105. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  106. package/dist/Incentives/AllowListIncentive.d.ts +73 -21
  107. package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
  108. package/dist/Incentives/AllowListIncentive.js +61 -36
  109. package/dist/Incentives/AllowListIncentive.js.map +1 -1
  110. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  111. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  112. package/dist/Incentives/CGDAIncentive.d.ts +323 -26
  113. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
  114. package/dist/Incentives/CGDAIncentive.js +73 -39
  115. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  116. package/dist/Incentives/ERC1155Incentive.d.ts +291 -43
  117. package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
  118. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  119. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  120. package/dist/Incentives/ERC20Incentive.d.ts +278 -33
  121. package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
  122. package/dist/Incentives/ERC20Incentive.js +79 -47
  123. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  124. package/dist/{Budgets/SimpleBudget.d.ts → Incentives/ERC20VariableCriteriaIncentive.d.ts} +346 -420
  125. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -0
  126. package/dist/Incentives/ERC20VariableIncentive.d.ts +271 -32
  127. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  128. package/dist/Incentives/Incentive.cjs +1 -1
  129. package/dist/Incentives/Incentive.cjs.map +1 -1
  130. package/dist/Incentives/Incentive.d.ts +4 -4
  131. package/dist/Incentives/Incentive.d.ts.map +1 -1
  132. package/dist/Incentives/Incentive.js +16 -280
  133. package/dist/Incentives/Incentive.js.map +1 -1
  134. package/dist/Incentives/PointsIncentive.cjs +1 -1
  135. package/dist/Incentives/PointsIncentive.cjs.map +1 -1
  136. package/dist/Incentives/PointsIncentive.d.ts +89 -23
  137. package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
  138. package/dist/Incentives/PointsIncentive.js +66 -36
  139. package/dist/Incentives/PointsIncentive.js.map +1 -1
  140. package/dist/SimpleDenyList-BUR17Tt1.cjs +2 -0
  141. package/dist/SimpleDenyList-BUR17Tt1.cjs.map +1 -0
  142. package/dist/SimpleDenyList-CGaWjuld.js +132 -0
  143. package/dist/SimpleDenyList-CGaWjuld.js.map +1 -0
  144. package/dist/Validators/SignerValidator.cjs +1 -1
  145. package/dist/Validators/SignerValidator.cjs.map +1 -1
  146. package/dist/Validators/SignerValidator.d.ts +310 -17
  147. package/dist/Validators/SignerValidator.d.ts.map +1 -1
  148. package/dist/Validators/SignerValidator.js +164 -36
  149. package/dist/Validators/SignerValidator.js.map +1 -1
  150. package/dist/Validators/Validator.cjs +1 -1
  151. package/dist/Validators/Validator.cjs.map +1 -1
  152. package/dist/Validators/Validator.d.ts +1 -1
  153. package/dist/Validators/Validator.js +2 -2
  154. package/dist/Validators/Validator.js.map +1 -1
  155. package/dist/claiming.cjs +2 -0
  156. package/dist/claiming.cjs.map +1 -0
  157. package/dist/claiming.d.ts +43 -0
  158. package/dist/claiming.d.ts.map +1 -0
  159. package/dist/claiming.js +17 -0
  160. package/dist/claiming.js.map +1 -0
  161. package/dist/componentInterfaces-BBCFkrZv.js +14 -0
  162. package/dist/componentInterfaces-BBCFkrZv.js.map +1 -0
  163. package/dist/componentInterfaces-DRI_dQ-P.cjs +2 -0
  164. package/dist/componentInterfaces-DRI_dQ-P.cjs.map +1 -0
  165. package/dist/deployments-DVXioW2i.cjs +2 -0
  166. package/dist/deployments-DVXioW2i.cjs.map +1 -0
  167. package/dist/deployments-oykLv3_Z.js +43 -0
  168. package/dist/deployments-oykLv3_Z.js.map +1 -0
  169. package/dist/deployments.json +44 -0
  170. package/dist/errors.cjs +1 -1
  171. package/dist/errors.cjs.map +1 -1
  172. package/dist/errors.d.ts +257 -21
  173. package/dist/errors.d.ts.map +1 -1
  174. package/dist/errors.js +183 -26
  175. package/dist/errors.js.map +1 -1
  176. package/dist/{generated-Cbv8zFkf.js → generated-CKt2yCQd.js} +3615 -1868
  177. package/dist/generated-CKt2yCQd.js.map +1 -0
  178. package/dist/generated-CyTNlOwM.cjs +3 -0
  179. package/dist/generated-CyTNlOwM.cjs.map +1 -0
  180. package/dist/index.cjs +1 -1
  181. package/dist/index.d.ts +9 -4
  182. package/dist/index.d.ts.map +1 -1
  183. package/dist/index.js +143 -126
  184. package/dist/index.js.map +1 -1
  185. package/dist/transfers.cjs +2 -0
  186. package/dist/transfers.cjs.map +1 -0
  187. package/dist/transfers.d.ts +198 -0
  188. package/dist/transfers.d.ts.map +1 -0
  189. package/dist/transfers.js +84 -0
  190. package/dist/transfers.js.map +1 -0
  191. package/dist/utils.cjs +1 -1
  192. package/dist/utils.cjs.map +1 -1
  193. package/dist/utils.d.ts +25 -1380
  194. package/dist/utils.d.ts.map +1 -1
  195. package/dist/utils.js +36 -648
  196. package/dist/utils.js.map +1 -1
  197. package/package.json +34 -10
  198. package/src/Actions/Action.test.ts +19 -17
  199. package/src/Actions/ContractAction.test.ts +14 -16
  200. package/src/Actions/ContractAction.ts +84 -22
  201. package/src/Actions/ERC721MintAction.test.ts +8 -8
  202. package/src/Actions/ERC721MintAction.ts +83 -30
  203. package/src/Actions/EventAction.test.ts +759 -113
  204. package/src/Actions/EventAction.ts +991 -116
  205. package/src/AllowLists/AllowList.test.ts +7 -7
  206. package/src/AllowLists/AllowList.ts +5 -3
  207. package/src/AllowLists/OpenAllowList.test.ts +40 -0
  208. package/src/AllowLists/OpenAllowList.ts +45 -0
  209. package/src/AllowLists/SimpleAllowList.test.ts +4 -4
  210. package/src/AllowLists/SimpleAllowList.ts +86 -65
  211. package/src/AllowLists/SimpleDenyList.test.ts +4 -4
  212. package/src/AllowLists/SimpleDenyList.ts +87 -126
  213. package/src/Auth/PassthroughAuth.test.ts +1 -1
  214. package/src/Auth/PassthroughAuth.ts +1 -1
  215. package/src/Boost.ts +147 -15
  216. package/src/BoostCore.test.ts +326 -278
  217. package/src/BoostCore.ts +425 -242
  218. package/src/BoostRegistry.test.ts +53 -0
  219. package/src/BoostRegistry.ts +168 -50
  220. package/src/Budgets/Budget.test.ts +2 -2
  221. package/src/Budgets/Budget.ts +1 -2
  222. package/src/Budgets/ManagedBudget.test.ts +82 -19
  223. package/src/Budgets/ManagedBudget.ts +106 -315
  224. package/src/Budgets/VestingBudget.test.ts +7 -7
  225. package/src/Budgets/VestingBudget.ts +110 -112
  226. package/src/Deployable/Contract.ts +5 -6
  227. package/src/Deployable/Deployable.ts +1 -1
  228. package/src/Deployable/DeployableTarget.ts +32 -21
  229. package/src/Deployable/DeployableTargetWithRBAC.ts +323 -0
  230. package/src/Incentives/AllowListIncentive.test.ts +7 -10
  231. package/src/Incentives/AllowListIncentive.ts +88 -30
  232. package/src/Incentives/CGDAIncentive.test.ts +11 -12
  233. package/src/Incentives/CGDAIncentive.ts +161 -37
  234. package/src/Incentives/ERC1155Incentive.test.ts +5 -16
  235. package/src/Incentives/ERC1155Incentive.ts +132 -51
  236. package/src/Incentives/ERC20Incentive.test.ts +15 -23
  237. package/src/Incentives/ERC20Incentive.ts +131 -46
  238. package/src/Incentives/ERC20VariableCriteriaIncentive.test.ts +184 -0
  239. package/src/Incentives/ERC20VariableCriteriaIncentive.ts +324 -0
  240. package/src/Incentives/ERC20VariableIncentive.test.ts +12 -35
  241. package/src/Incentives/ERC20VariableIncentive.ts +118 -43
  242. package/src/Incentives/Incentive.test.ts +5 -2
  243. package/src/Incentives/Incentive.ts +7 -6
  244. package/src/Incentives/PointsIncentive.test.ts +26 -30
  245. package/src/Incentives/PointsIncentive.ts +110 -34
  246. package/src/Validators/SignerValidator.test.ts +9 -13
  247. package/src/Validators/SignerValidator.ts +437 -26
  248. package/src/Validators/Validator.test.ts +2 -2
  249. package/src/Validators/Validator.ts +1 -1
  250. package/src/claiming.ts +56 -0
  251. package/src/errors.ts +346 -22
  252. package/src/index.test.ts +118 -36
  253. package/src/index.ts +15 -7
  254. package/src/transfers.ts +284 -0
  255. package/src/utils.test.ts +2 -2
  256. package/src/utils.ts +61 -2061
  257. package/dist/Budgets/SimpleBudget.d.ts.map +0 -1
  258. package/dist/componentInterfaces-CKCBwG16.cjs +0 -2
  259. package/dist/componentInterfaces-CKCBwG16.cjs.map +0 -1
  260. package/dist/componentInterfaces-DYkaxBda.js +0 -13
  261. package/dist/componentInterfaces-DYkaxBda.js.map +0 -1
  262. package/dist/generated-BzszviNp.cjs +0 -3
  263. package/dist/generated-BzszviNp.cjs.map +0 -1
  264. package/dist/generated-Cbv8zFkf.js.map +0 -1
  265. package/src/Budgets/SimpleBudget.test.ts +0 -152
  266. package/src/Budgets/SimpleBudget.ts +0 -521
@@ -1,10 +1,262 @@
1
1
  import { eventActionAbi } from '@boostxyz/evm';
2
- import { type Abi, type AbiEvent, type Address, type ContractEventName, type Hex, type Log } from 'viem';
2
+ import { type AbiEvent, type AbiFunction, type Address, type ContractFunctionName, type GetLogsReturnType, type Hex, type Transaction } from 'viem';
3
3
  import type { DeployableOptions, GenericDeployableParams } from '../Deployable/Deployable';
4
4
  import { DeployableTarget } from '../Deployable/DeployableTarget';
5
- import { type ActionClaimant, type ActionStep, type Criteria, type EventActionPayload, FilterType, type GetLogsParams, PrimitiveType, type ReadParams, RegistryType, type WriteParams } from '../utils';
6
- import type { SignatureType } from './../utils';
7
- export type { EventActionPayload, ActionStep, ActionClaimant, SignatureType, FilterType, PrimitiveType, };
5
+ import { type ReadParams, RegistryType, type WriteParams } from '../utils';
6
+ /**
7
+ * Filter types used to determine how criteria are evaluated.
8
+ *
9
+ * @export
10
+ * @enum {number}
11
+ */
12
+ export declare enum FilterType {
13
+ EQUAL = 0,
14
+ NOT_EQUAL = 1,
15
+ GREATER_THAN = 2,
16
+ LESS_THAN = 3,
17
+ CONTAINS = 4,
18
+ REGEX = 5
19
+ }
20
+ /**
21
+ * The primitive types supported for filtering.
22
+ *
23
+ * @export
24
+ * @enum {number}
25
+ */
26
+ export declare enum PrimitiveType {
27
+ UINT = 0,
28
+ ADDRESS = 1,
29
+ BYTES = 2,
30
+ STRING = 3
31
+ }
32
+ /**
33
+ * Object representation of a `Criteria` struct used in event actions.
34
+ *
35
+ * @export
36
+ * @interface Criteria
37
+ * @typedef {Criteria}
38
+ */
39
+ export interface Criteria {
40
+ /**
41
+ * The filter type used in this criteria.
42
+ *
43
+ * @type {FilterType}
44
+ */
45
+ filterType: FilterType;
46
+ /**
47
+ * The primitive type of the field being filtered.
48
+ *
49
+ * @type {PrimitiveType}
50
+ */
51
+ fieldType: PrimitiveType;
52
+ /**
53
+ * The index in the logs argument array where the field is located.
54
+ *
55
+ * @type {number}
56
+ */
57
+ fieldIndex: number;
58
+ /**
59
+ * The filter data used for complex filtering.
60
+ *
61
+ * @type {Hex}
62
+ */
63
+ filterData: Hex;
64
+ }
65
+ /**
66
+ * Whether a given signature is an event or function
67
+ *
68
+ * @export
69
+ * @enum {number}
70
+ */
71
+ export declare enum SignatureType {
72
+ EVENT = 0,
73
+ FUNC = 1
74
+ }
75
+ /**
76
+ * The payload describing how claimants are identified
77
+ *
78
+ * @export
79
+ * @interface ActionClaimant
80
+ * @typedef {ActionClaimant}
81
+ */
82
+ export interface ActionClaimant {
83
+ /**
84
+ * Whether claimaint is inferred from event or function
85
+ *
86
+ * @type {SignatureType}
87
+ */
88
+ signatureType: SignatureType;
89
+ /**
90
+ * The 4 byte signature of the event or function
91
+ *
92
+ * @type {Hex}
93
+ */
94
+ signature: Hex;
95
+ /**
96
+ * The index corresponding to claimant.
97
+ *
98
+ * @type {number}
99
+ */
100
+ fieldIndex: number;
101
+ /**
102
+ * The address of the target contract
103
+ *
104
+ * @type {Address}
105
+ */
106
+ targetContract: Address;
107
+ /**
108
+ * The chain id of the target contract.
109
+ * @type {number}
110
+ */
111
+ chainid: number;
112
+ }
113
+ /**
114
+ * Object representation of an `ActionStep` struct used in event actions.
115
+ *
116
+ * @export
117
+ * @interface ActionStep
118
+ * @typedef {ActionStep}
119
+ */
120
+ export interface ActionStep {
121
+ /**
122
+ * The signature of the event.
123
+ *
124
+ * @type {Hex}
125
+ */
126
+ signature: Hex;
127
+ /**
128
+ * Whether claimaint is inferred from event or function
129
+ *
130
+ * @type {SignatureType}
131
+ */
132
+ signatureType: SignatureType;
133
+ /**
134
+ * The type of action being performed.
135
+ *
136
+ * @type {number}
137
+ */
138
+ actionType?: number;
139
+ /**
140
+ * The address of the target contract.
141
+ *
142
+ * @type {Address}
143
+ */
144
+ targetContract: Address;
145
+ /**
146
+ * The chain id of the target contract.
147
+ * @type {number}
148
+ */
149
+ chainid: number;
150
+ /**
151
+ * The criteria used for this action step.
152
+ *
153
+ * @type {Criteria}
154
+ */
155
+ actionParameter: Criteria;
156
+ }
157
+ /**
158
+ * Parameters for validating an action step.
159
+ *
160
+ * @typedef {Object} ValidateActionStepParams
161
+ * @property {Record<Hex, AbiEvent | AbiFunction>} [knownSignatures] - Optional record of known events, keyed by 32 byte selectors.
162
+ * @property {AbiEvent | AbiFunction} [abiItem] - Optional ABI item definition.
163
+ * @property {EventLogs} [logs] - Event logs to validate against. Required if 'hash' is not provided.
164
+ * @property {Hex} [hash] - Transaction hash to validate against. Required if 'logs' is not provided.
165
+ * @property {number} [chainId] - Chain ID for the transaction. Required if 'hash' is provided.
166
+ */
167
+ export type ValidateActionStepParams = {
168
+ knownSignatures?: Record<Hex, AbiEvent | AbiFunction>;
169
+ abiItem?: AbiEvent | AbiFunction;
170
+ } & ({
171
+ logs: EventLogs;
172
+ } | {
173
+ hash: Hex;
174
+ chainId: number;
175
+ });
176
+ /**
177
+ * You can either supply a simplified version of the payload, or one that explicitly declares action steps.
178
+ *
179
+ * @export
180
+ * @typedef {EventActionPayload}
181
+ */
182
+ export type EventActionPayload = EventActionPayloadSimple | EventActionPayloadRaw;
183
+ export interface EventActionPayloadSimple {
184
+ /**
185
+ * The payload describing how claimants are identified
186
+ *
187
+ * @type {ActionClaimant}
188
+ */
189
+ actionClaimant: ActionClaimant;
190
+ /**
191
+ * Up to 4 action steps.
192
+ * If you supply less than 4, then the last step will be reused to satisfy the EventAction.InitPayload
193
+ * Any more than 4 will throw an error.
194
+ *
195
+ * @type {ActionStep[]}
196
+ */
197
+ actionSteps: ActionStep[];
198
+ }
199
+ export type ActionStepTuple = [ActionStep, ActionStep, ActionStep, ActionStep];
200
+ /**
201
+ * Typeguard to determine if a user is supplying a simple or raw EventActionPayload
202
+ *
203
+ * @param {*} opts
204
+ * @returns {opts is EventActionPayloadSimple}
205
+ */
206
+ export declare function isEventActionPayloadSimple(opts: EventActionPayload): opts is EventActionPayloadSimple;
207
+ /**
208
+ * Object representation of an `InitPayload` struct used to initialize event actions.
209
+ *
210
+ * @export
211
+ * @interface EventActionPayloadRaw
212
+ * @typedef {EventActionPayloadRaw}
213
+ */
214
+ export interface EventActionPayloadRaw {
215
+ /**
216
+ * The payload describing how claimants are identified
217
+ *
218
+ * @type {ActionClaimant}
219
+ */
220
+ actionClaimant: ActionClaimant;
221
+ /**
222
+ * The first action step.
223
+ *
224
+ * @type {ActionStep}
225
+ */
226
+ actionStepOne: ActionStep;
227
+ /**
228
+ * The second action step.
229
+ *
230
+ * @type {ActionStep}
231
+ */
232
+ actionStepTwo: ActionStep;
233
+ /**
234
+ * The third action step.
235
+ *
236
+ * @type {ActionStep}
237
+ */
238
+ actionStepThree: ActionStep;
239
+ /**
240
+ * The fourth action step.
241
+ *
242
+ * @type {ActionStep}
243
+ */
244
+ actionStepFour: ActionStep;
245
+ }
246
+ /**
247
+ * Array of event logs to pass into TxParams
248
+ * @export
249
+ * @typedef {EventLogs}
250
+ */
251
+ export type EventLogs = GetLogsReturnType<AbiEvent, AbiEvent[], true>;
252
+ /**
253
+ * Getter params from the event action contract
254
+ *
255
+ * @export
256
+ * @typedef {ReadEventActionParams}
257
+ * @param {fnName} fnName - The getter function name
258
+ */
259
+ export type ReadEventActionParams<fnName extends ContractFunctionName<typeof eventActionAbi, 'pure' | 'view'>> = ReadParams<typeof eventActionAbi, fnName>;
8
260
  /**
9
261
  * A generic event action
10
262
  *
@@ -146,8 +398,8 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
146
398
  readonly type: "uint8";
147
399
  }, {
148
400
  readonly name: "signature";
149
- readonly internalType: "bytes4";
150
- readonly type: "bytes4";
401
+ readonly internalType: "bytes32";
402
+ readonly type: "bytes32";
151
403
  }, {
152
404
  readonly name: "fieldIndex";
153
405
  readonly internalType: "uint8";
@@ -156,6 +408,10 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
156
408
  readonly name: "targetContract";
157
409
  readonly internalType: "address";
158
410
  readonly type: "address";
411
+ }, {
412
+ readonly name: "chainid";
413
+ readonly internalType: "uint256";
414
+ readonly type: "uint256";
159
415
  }];
160
416
  }];
161
417
  readonly stateMutability: "view";
@@ -173,8 +429,8 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
173
429
  readonly type: "tuple";
174
430
  readonly components: readonly [{
175
431
  readonly name: "signature";
176
- readonly internalType: "bytes4";
177
- readonly type: "bytes4";
432
+ readonly internalType: "bytes32";
433
+ readonly type: "bytes32";
178
434
  }, {
179
435
  readonly name: "signatureType";
180
436
  readonly internalType: "enum AEventAction.SignatureType";
@@ -187,6 +443,10 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
187
443
  readonly name: "targetContract";
188
444
  readonly internalType: "address";
189
445
  readonly type: "address";
446
+ }, {
447
+ readonly name: "chainid";
448
+ readonly internalType: "uint256";
449
+ readonly type: "uint256";
190
450
  }, {
191
451
  readonly name: "actionParameter";
192
452
  readonly internalType: "struct AEventAction.Criteria";
@@ -221,8 +481,8 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
221
481
  readonly type: "tuple[]";
222
482
  readonly components: readonly [{
223
483
  readonly name: "signature";
224
- readonly internalType: "bytes4";
225
- readonly type: "bytes4";
484
+ readonly internalType: "bytes32";
485
+ readonly type: "bytes32";
226
486
  }, {
227
487
  readonly name: "signatureType";
228
488
  readonly internalType: "enum AEventAction.SignatureType";
@@ -235,6 +495,10 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
235
495
  readonly name: "targetContract";
236
496
  readonly internalType: "address";
237
497
  readonly type: "address";
498
+ }, {
499
+ readonly name: "chainid";
500
+ readonly internalType: "uint256";
501
+ readonly type: "uint256";
238
502
  }, {
239
503
  readonly name: "actionParameter";
240
504
  readonly internalType: "struct AEventAction.Criteria";
@@ -323,9 +587,9 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
323
587
  *
324
588
  * @public
325
589
  * @static
326
- * @type {Address}
590
+ * @type {Record<number, Address>}
327
591
  */
328
- static base: Address;
592
+ static bases: Record<number, Address>;
329
593
  /**
330
594
  * @inheritdoc
331
595
  *
@@ -340,44 +604,44 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
340
604
  * @public
341
605
  * @async
342
606
  * @param {number} index The index of the action event to retrieve
343
- * @param {?ReadParams<typeof eventActionAbi, 'getActionStep'>} [params]
607
+ * @param {?ReadEventActionParams<'getActionStep'>} [params]
344
608
  * @returns {Promise<ActionStep>}
345
609
  */
346
- getActionStep(index: number, params?: ReadParams<typeof eventActionAbi, 'getActionStep'>): Promise<ActionStep | undefined>;
610
+ getActionStep(index: number, params?: ReadEventActionParams<'getActionStep'>): Promise<ActionStep | undefined>;
347
611
  /**
348
612
  * Gets all action events
349
613
  *
350
614
  * @public
351
615
  * @async
352
- * @param {?ReadParams<typeof eventActionAbi, 'getActionSteps'>} [params]
616
+ * @param {?ReadEventActionParams<'getActionSteps'>} [params]
353
617
  * @returns {Promise<ActionStep[]>}
354
618
  */
355
- getActionSteps(params?: ReadParams<typeof eventActionAbi, 'getActionSteps'>): Promise<ActionStep[]>;
619
+ getActionSteps(params?: ReadEventActionParams<'getActionSteps'>): Promise<ActionStep[]>;
356
620
  /**
357
621
  * Gets the count of action events
358
622
  *
359
623
  * @public
360
624
  * @async
361
- * @param {?ReadParams<typeof eventActionAbi, 'getActionStepsCount'>} [params]
625
+ * @param {?ReadEventActionParams<'getActionStepsCount'>} [params]
362
626
  * @returns {Promise<bigint>}
363
627
  */
364
- getActionStepsCount(params?: ReadParams<typeof eventActionAbi, 'getActionStepsCount'>): Promise<number>;
628
+ getActionStepsCount(params?: ReadEventActionParams<'getActionStepsCount'>): Promise<number>;
365
629
  /**
366
630
  * Retrieves the payload describing how claimants can be identified from logs or function calls.
367
631
  *
368
632
  * @public
369
633
  * @async
370
- * @param {?ReadParams<typeof eventActionAbi, 'getActionClaimant'>} [params]
634
+ * @param {?ReadEventActionParams<'getActionClaimant'>} [params]
371
635
  * @returns {Promise<ActionClaimant>}
372
636
  */
373
- getActionClaimant(params?: ReadParams<typeof eventActionAbi, 'getActionClaimant'>): Promise<ActionClaimant>;
637
+ getActionClaimant(params?: ReadEventActionParams<'getActionClaimant'>): Promise<ActionClaimant>;
374
638
  /**
375
639
  * Executes a prepared event action
376
640
  *
377
641
  * @public
378
642
  * @async
379
643
  * @param {Hex} data
380
- * @param {?WriteParams<typeof eventActionAbi, 'execute'>} [params]
644
+ * @param {?WriteParams} [params]
381
645
  * @returns {Promise<readonly [boolean, `0x${string}`]>}
382
646
  */
383
647
  execute(data: Hex, params?: WriteParams<typeof eventActionAbi, 'execute'>): Promise<readonly [boolean, `0x${string}`]>;
@@ -387,55 +651,134 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
387
651
  * @public
388
652
  * @async
389
653
  * @param {Hex} data
390
- * @param {?WriteParams<typeof eventActionAbi, 'execute'>} [params]
391
- * @returns {unknown}
654
+ * @param {?WriteParams} [params]
655
+ * @returns {Promise<{ hash: `0x${string}`; result: readonly [boolean, `0x${string}`]; }>}
392
656
  */
393
657
  executeRaw(data: Hex, params?: WriteParams<typeof eventActionAbi, 'execute'>): Promise<{
394
658
  hash: `0x${string}`;
395
659
  result: readonly [boolean, `0x${string}`];
396
660
  }>;
661
+ /**
662
+ * Derives the action claimant address from a transaction based on the provided ActionClaimant configuration.
663
+ * This method supports both event-based and function-based claimant derivation.
664
+ *
665
+ ** @example
666
+ * // Example usage
667
+ * const eventAction = boost.action as EventAction
668
+ * const claimant = await eventAction.getActionClaimant() // {
669
+ * signatureType: SignatureType.EVENT,
670
+ * signature: '0x1234...',
671
+ * fieldIndex: 2,
672
+ * targetContract: '0xabcd...',
673
+ * chainid: 1
674
+ * };
675
+ * const params: ValidateActionStepParams = {
676
+ * hash: '0x5678...',
677
+ * chainId: 1,
678
+ * knownSignatures?: {
679
+ * '0x1234...': {}
680
+ * }
681
+ * };
682
+ * const claimantAddress = await eventAction.deriveActionClaimantFromTransaction(claimant, params);
683
+ *
684
+ * @param {ActionClaimant} claimant - The configuration specifying how to derive the claimant.
685
+ * @param {ValidateActionStepParams} params - Parameters for validation, including transaction hash, known signatures, logs, and chain ID.
686
+ * @returns {Promise<Address | undefined>} The derived claimant address if found, undefined otherwise.
687
+ * @throws {ValidationAbiMissingError} If the ABI for the specified signature is not found.
688
+ * @throws {FunctionDataDecodeError} If there's an error decoding function data (for function-based derivation).
689
+ */
690
+ deriveActionClaimantFromTransaction(claimant: ActionClaimant, params: ValidateActionStepParams): Promise<Address | undefined>;
691
+ /**
692
+ * Validates the action claimant against the arguments of a log or function data.
693
+ *
694
+ * @param {ActionClaimant} claimant - The action claimant to validate.
695
+ * @param {Object} [logOrFnData] - Optional object containing the arguments to validate against.
696
+ * @param {Array<any> | readonly unknown[] | Record<string, unknown>} [logOrFnData.args] - The arguments from the log or function data.
697
+ * @returns {Address | undefined} The validated address if found and valid, otherwise undefined.
698
+ */
699
+ validateClaimantAgainstArgs(claimant: ActionClaimant, logOrFnData?: {
700
+ args: Array<unknown> | readonly unknown[] | Record<string, unknown>;
701
+ }): Address | undefined;
397
702
  /**
398
703
  * Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
399
704
  * If logs are provided in the optional `params` argument, then those logs will be used instead of fetched with the configured client.
400
705
  *
401
706
  * @public
402
707
  * @async
403
- * @param {?ReadParams<typeof eventActionAbi, 'getActionSteps'> &
404
- * GetLogsParams<Abi, ContractEventName<Abi>> & {
405
- * knownEvents?: Record<Hex, AbiEvent>;
406
- * logs?: Log[];
407
- * }} [params]
708
+ * @param ValidateActionStepParams params
408
709
  * @returns {Promise<boolean>}
409
710
  */
410
- validateActionSteps(params?: ReadParams<typeof eventActionAbi, 'getActionSteps'> & GetLogsParams<Abi, ContractEventName<Abi>> & {
411
- knownEvents?: Record<Hex, AbiEvent>;
412
- logs?: Log[];
413
- }): Promise<boolean>;
711
+ validateActionSteps(params: ValidateActionStepParams): Promise<boolean>;
414
712
  /**
415
- * Validates a single action step with a given criteria against logs.
416
- * If logs are provided in the optional `params` argument, then those logs will be used instead of fetched with the configured client.
713
+ * Validates a single action step with a given criteria against logs or function calls.
714
+ * If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
715
+ * For functions a hash is required.
417
716
  *
418
717
  * @public
419
718
  * @async
420
- * @param {ActionStep} actionStep
421
- * @param {?GetLogsParams<Abi, ContractEventName<Abi>> & {
422
- * knownEvents?: Record<Hex, AbiEvent>;
423
- * logs?: Log[];
424
- * }} [params]
719
+ * @param {ActionStep} actionStep - The action step to validate. Can be a function of event step.
720
+ * @param {ValidateActionStepParams} params - Additional parameters for validation, including hash, known events, logs, and chain ID.
425
721
  * @returns {Promise<boolean>}
426
722
  */
427
- isActionStepValid(actionStep: ActionStep, params?: GetLogsParams<Abi, ContractEventName<Abi>> & {
428
- knownEvents?: Record<Hex, AbiEvent>;
429
- logs?: Log[];
430
- }): Promise<boolean>;
723
+ isActionStepValid(actionStep: ActionStep, params: ValidateActionStepParams): Promise<boolean>;
724
+ /**
725
+ * Validates a single action event with a given criteria against logs.
726
+ * If logs are provided in the optional `params` argument, then those logs will be used instead of being fetched with the configured client.
727
+ *
728
+ * @public
729
+ * @async
730
+ * @param {ActionStep} actionStep - The action step containing the event to validate.
731
+ * @param {EventLogs} logs - Event logs to validate the given step against
732
+ * @returns {Promise<boolean>} Resolves to true if the action event is valid, throws if input is invalid, otherwise false.
733
+ */
734
+ isActionEventValid(actionStep: ActionStep, logs: EventLogs): boolean;
735
+ /**
736
+ * Validates a single action function with a given criteria against the transaction input.
737
+ *
738
+ * @public
739
+ * @param {ActionStep} actionStep - The action step containing the function to validate.
740
+ * @param {Transaction} transaction - The transaction that will be validated against.
741
+ * @param {Object} [params] - Optional parameters for validation.
742
+ * @param {AbiItem} [params.abiItem] - The ABI item for the function, if known.
743
+ * @param {Record<Hex, AbiEvent | AbiFunction>} [params.knownSignatures] - A record of known signatures.
744
+ * @returns {boolean} Returns true if the action function is valid, false otherwise.
745
+ * @throws {ValidationAbiMissingError} Throws if the ABI for the function signature is not found.
746
+ * @throws {FunctionDataDecodeError} Throws if there's an error decoding the function data.
747
+ */
748
+ isActionFunctionValid(actionStep: ActionStep, transaction: Transaction, params?: Pick<ValidateActionStepParams, 'abiItem' | 'knownSignatures'>): boolean;
749
+ /**
750
+ * Validates a field against a given criteria.
751
+ *
752
+ * @param {Criteria} criteria - The criteria to validate against.
753
+ * @param {string | bigint | Hex} fieldValue - The field value to validate.
754
+ * @param {Object} input - Additional context for validation.
755
+ * @param {EventLogs[0]} [input.log] - The event log, if validating an event.
756
+ * @param {readonly (string | bigint)[]} [input.decodedArgs] - The decoded function arguments, if validating a function call.
757
+ * @returns {Promise<boolean>} - Returns true if the field passes the criteria, false otherwise.
758
+ */
759
+ validateFieldAgainstCriteria(criteria: Criteria, fieldValue: string | bigint | Hex, input: {
760
+ log: EventLogs[0];
761
+ } | {
762
+ decodedArgs: readonly (string | bigint)[];
763
+ }): boolean;
431
764
  /**
432
765
  * Validates a {@link Log} against a given criteria.
766
+ * If the criteria's fieldIndex is 255, it is reserved for anyValidation
433
767
  *
434
768
  * @param {Criteria} criteria - The criteria to validate against.
435
769
  * @param {Log} log - The Viem event log.
436
- * @returns {Promise<boolean>} - Returns true if the log passes the criteria, false otherwise.
770
+ * @returns {boolean} - Returns true if the log passes the criteria, false otherwise.
437
771
  */
438
- validateLogAgainstCriteria(criteria: Criteria, log: Log): Promise<boolean>;
772
+ validateLogAgainstCriteria(criteria: Criteria, log: EventLogs[0]): boolean;
773
+ /**
774
+ * Validates a function's decoded arguments against a given criteria.
775
+ * If the criteria's fieldIndex is 255, it is reserved for anyValidation
776
+ *
777
+ * @param {Criteria} criteria - The criteria to validate against.
778
+ * @param {unknown[]} decodedArgs - The decoded arguments of the function call.
779
+ * @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
780
+ */
781
+ validateFunctionAgainstCriteria(criteria: Criteria, decodedArgs: readonly (string | bigint)[]): boolean;
439
782
  /**
440
783
  * @inheritdoc
441
784
  *
@@ -445,5 +788,37 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
445
788
  * @returns {GenericDeployableParams}
446
789
  */
447
790
  buildParameters(_payload?: EventActionPayload, _options?: DeployableOptions): GenericDeployableParams;
791
+ isArraylikeIndexed(step: ActionStep, event: AbiEvent): boolean;
448
792
  }
793
+ /**
794
+ * Function to properly encode an event action payload.
795
+ *
796
+ * @param {InitPayload} param0
797
+ * @param {ActionStep} param0.actionStepOne - The first action step to initialize.
798
+ * @param {ActionStep} param0.actionStepTwo - The second action step to initialize.
799
+ * @param {ActionStep} param0.actionStepThree - The third action step to initialize.
800
+ * @param {ActionStep} param0.actionStepFour - The fourth action step to initialize.
801
+ * @returns {Hex}
802
+ */
803
+ export declare function prepareEventActionPayload({ actionClaimant, actionStepOne, actionStepTwo, actionStepThree, actionStepFour, }: EventActionPayloadRaw): `0x${string}`;
804
+ /**
805
+ * Creates a default Criteria object that allows validation to pass. This is used if you don't care about targeting specific parameters in the action step.
806
+ *
807
+ * This function returns a Criteria object with the following properties:
808
+ * - filterType: Set to EQUAL for exact matching
809
+ * - fieldType: Set to BYTES to handle any data type
810
+ * - fieldIndex: Set to 255, which is typically used to indicate "any" or "all" in this context
811
+ * - filterData: Set to zeroHash (0x0000...0000)
812
+ *
813
+ * @returns {Criteria} A Criteria object that can be used to match any action parameter
814
+ *
815
+ * @example
816
+ * const anyCriteria = anyActionParameter();
817
+ * // Use this criteria in an ActionStep to match any parameter
818
+ * const actionStep = {
819
+ * // ... other properties ...
820
+ * actionParameter: anyCriteria
821
+ * };
822
+ */
823
+ export declare function anyActionParameter(): Criteria;
449
824
  //# sourceMappingURL=EventAction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventAction.d.ts","sourceRoot":"","sources":["../../src/Actions/EventAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAKf,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,KAAK,GAAG,EACR,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,iBAAiB,EACtB,KAAK,GAAG,EACR,KAAK,GAAG,EAET,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AASlE,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,kBAAkB,EAEvB,UAAU,EACV,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,WAAW,EAIjB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,YAAY,EACV,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,GACd,CAAC;AAEF;;;;;;;GAOG;AACH,qBAAa,WAAY,SAAQ,gBAAgB,CAC/C,kBAAkB,EAClB,OAAO,cAAc,CACtB;IACC;;;;;;OAMG;IACH,SAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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