@boostxyz/sdk 0.0.0-alpha.2 → 0.0.0-alpha.3

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 (54) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.js +1 -1
  3. package/dist/Actions/EventAction.cjs +1 -1
  4. package/dist/Actions/EventAction.d.ts +25 -10
  5. package/dist/Actions/EventAction.d.ts.map +1 -1
  6. package/dist/Actions/EventAction.js +94 -76
  7. package/dist/AllowLists/AllowList.cjs +1 -1
  8. package/dist/AllowLists/AllowList.js +1 -1
  9. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  10. package/dist/AllowLists/SimpleAllowList.js +1 -1
  11. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  12. package/dist/AllowLists/SimpleDenyList.js +1 -1
  13. package/dist/Auth/PassthroughAuth.cjs +1 -1
  14. package/dist/Auth/PassthroughAuth.js +1 -1
  15. package/dist/BoostCore.cjs +1 -1
  16. package/dist/BoostCore.js +85 -85
  17. package/dist/BoostRegistry.cjs +1 -1
  18. package/dist/BoostRegistry.js +3 -3
  19. package/dist/Budgets/Budget.cjs +1 -1
  20. package/dist/Budgets/Budget.js +1 -1
  21. package/dist/Budgets/ManagedBudget.cjs +1 -1
  22. package/dist/Budgets/ManagedBudget.js +22 -22
  23. package/dist/Deployable/DeployableTarget.cjs +1 -1
  24. package/dist/Deployable/DeployableTarget.js +1 -1
  25. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  26. package/dist/Incentives/AllowListIncentive.js +1 -1
  27. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  28. package/dist/Incentives/CGDAIncentive.js +1 -1
  29. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  30. package/dist/Incentives/ERC20Incentive.js +5 -5
  31. package/dist/Incentives/Incentive.cjs +1 -1
  32. package/dist/Incentives/Incentive.js +3 -3
  33. package/dist/Incentives/PointsIncentive.cjs +1 -1
  34. package/dist/Incentives/PointsIncentive.js +1 -1
  35. package/dist/Validators/SignerValidator.cjs +1 -1
  36. package/dist/Validators/SignerValidator.js +1 -1
  37. package/dist/Validators/Validator.cjs +1 -1
  38. package/dist/Validators/Validator.js +1 -1
  39. package/dist/errors.cjs +1 -1
  40. package/dist/errors.d.ts +171 -1
  41. package/dist/errors.d.ts.map +1 -1
  42. package/dist/errors.js +131 -40
  43. package/dist/generated-Cd-Fe7W7.cjs +2 -0
  44. package/dist/{generated-x_abr3Yv.js → generated-DGpIVcv5.js} +1153 -2768
  45. package/dist/index.cjs +1 -1
  46. package/dist/index.d.ts +1 -5
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +126 -1353
  49. package/dist/utils.cjs +1 -1
  50. package/dist/utils.d.ts +44 -13
  51. package/dist/utils.d.ts.map +1 -1
  52. package/dist/utils.js +132 -119
  53. package/package.json +1 -1
  54. package/dist/generated-BaaleHW-.cjs +0 -2
package/dist/errors.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("viem");class s extends Error{constructor(){super('No "BoostCreated" log was emitted from which to extract boostId')}}class a extends Error{constructor(){super("Attempted to call contract method without providing an address")}}class n extends Error{constructor(e){super("Attempted to deploy a contract that already has an address configured"),this.address=e}}class d extends Error{constructor(){super("Implementing class did not properly override the `buildParameters` method")}}class i extends Error{constructor(){super("Expected an an owner to be provided in configuration or an account to exist on Wagmi config.")}}class c extends Error{constructor(){super("Expected a valid Wagmi configuration to be available either on Deployable, or as argument to deploy.")}}class l extends Error{constructor(){super("Expected a valid payload to be available either on Deployable or as argument to deploy.")}}class p extends Error{constructor(e){super("Expected a contract address to exist on receipt.",{cause:e}),this.receipt=e}}class u extends Error{constructor(e,o){super("Address provided does not match any expected protocol interface",{cause:{expected:e,received:o}}),this.expected=[],this.received=t.zeroHash,this.expected=e,this.received=o}}class E extends Error{constructor(e){super("Did not provide a valid FungibleTransferPayload or ERC1155 transfer payload.",{cause:e}),this.received=e}}class y extends Error{constructor(e){super(`Budget needs to explicitly authorize ${e}. You can retrieve this value from BoostCore.address`)}}class m extends Error{constructor(e){super(`Incentive not cloneable: ${e.constructor.name}`)}}exports.BoostCoreNoIdentifierEmitted=s;exports.BudgetMustAuthorizeBoostCore=y;exports.ContractAddressRequiredError=a;exports.DeployableAlreadyDeployedError=n;exports.DeployableBuildParametersUnspecifiedError=d;exports.DeployableMissingPayloadError=l;exports.DeployableUnknownOwnerProvidedError=i;exports.DeployableWagmiConfigurationRequiredError=c;exports.IncentiveNotCloneableError=m;exports.InvalidComponentInterfaceError=u;exports.NoContractAddressUponReceiptError=p;exports.UnknownTransferPayloadSupplied=E;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("viem");class i extends Error{constructor(){super('No "BoostCreated" log was emitted from which to extract boostId')}}class d extends Error{constructor(){super("Attempted to call contract method without providing an address")}}class c extends Error{constructor(r){super("Attempted to deploy a contract that already has an address configured"),this.address=r}}class l extends Error{constructor(){super("Implementing class did not properly override the `buildParameters` method")}}class u extends Error{constructor(){super("Expected an an owner to be provided in configuration or an account to exist on Wagmi config.")}}class p extends Error{constructor(){super("Expected a valid Wagmi configuration to be available either on Deployable, or as argument to deploy.")}}class E extends Error{constructor(){super("Expected a valid payload to be available either on Deployable or as argument to deploy.")}}class y extends Error{constructor(r){super("Expected a contract address to exist on receipt.",{cause:r}),this.receipt=r}}class v extends Error{constructor(r,t){super("Address provided does not match any expected protocol interface",{cause:{expected:r,received:t}}),this.expected=[],this.received=a.zeroHash,this.expected=r,this.received=t}}class m extends Error{constructor(r){super("Did not provide a valid FungibleTransferPayload or ERC1155 transfer payload.",{cause:r}),this.received=r}}class b extends Error{constructor(r){super(`Budget needs to explicitly authorize ${r}. You can retrieve this value from BoostCore.address`)}}class h extends Error{constructor(r){super(`Incentive not cloneable: ${r.constructor.name}`)}}class x extends Error{constructor(){super("Must supply at least one action step")}}class g extends Error{constructor(){super("Cannot supply more than 4 action steps with current protocol version")}}class o extends Error{constructor(r,{fieldValue:t,criteria:s,log:n}){super(r),this.fieldValue=t,this.criteria=s,this.log=n}}class f extends o{constructor(r){super("Field value is undefined",r)}}class C extends o{constructor(r){super("Numerical comparisons cannot be used with non-numerical criteria",r)}}class A extends o{constructor(r){super("Filter can only be used with bytes or string field type",r)}}class D extends o{constructor(r){super("Invalid FilterType provided",r)}}exports.BoostCoreNoIdentifierEmitted=i;exports.BudgetMustAuthorizeBoostCore=b;exports.ContractAddressRequiredError=d;exports.DeployableAlreadyDeployedError=c;exports.DeployableBuildParametersUnspecifiedError=l;exports.DeployableMissingPayloadError=E;exports.DeployableUnknownOwnerProvidedError=u;exports.DeployableWagmiConfigurationRequiredError=p;exports.EventActionValidationError=o;exports.FieldValueNotComparableError=A;exports.FieldValueUndefinedError=f;exports.IncentiveNotCloneableError=h;exports.InvalidComponentInterfaceError=v;exports.InvalidNumericalCriteriaError=C;exports.NoContractAddressUponReceiptError=y;exports.NoEventActionStepsProvidedError=x;exports.TooManyEventActionStepsProvidedError=g;exports.UnknownTransferPayloadSupplied=m;exports.UnrecognizedFilterTypeError=D;
package/dist/errors.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { type Hex, type WaitForTransactionReceiptReturnType } from 'viem';
1
+ import { type Hex, type Log, type WaitForTransactionReceiptReturnType } from 'viem';
2
2
  import type { Incentive } from './Incentives/Incentive';
3
+ import type { Criteria } from './utils';
3
4
  /**
4
5
  * This error is thrown during Boost creation if no `BoostCreated` event was emitted.
5
6
  *
@@ -254,4 +255,173 @@ export declare class IncentiveNotCloneableError extends Error {
254
255
  */
255
256
  constructor(incentive: Incentive);
256
257
  }
258
+ /**
259
+ * Thrown when encoding an EventAction payload and no action steps are provided
260
+ *
261
+ * @export
262
+ * @class NoEventActionStepsProvidedError
263
+ * @typedef {NoEventActionStepsProvidedError}
264
+ * @extends {Error}
265
+ */
266
+ export declare class NoEventActionStepsProvidedError extends Error {
267
+ /**
268
+ * Creates an instance of NoEventActionStepsProvidedError.
269
+ *
270
+ * @constructor
271
+ */
272
+ constructor();
273
+ }
274
+ /**
275
+ * Thrown when encoding an EventAction payload and > 4 steps are provided
276
+ *
277
+ * @export
278
+ * @class TooManyEventActionStepsProvidedError
279
+ * @typedef {TooManyEventActionStepsProvidedError}
280
+ * @extends {Error}
281
+ */
282
+ export declare class TooManyEventActionStepsProvidedError extends Error {
283
+ /**
284
+ * Creates an instance of TooManyEventActionStepsProvidedError.
285
+ *
286
+ * @constructor
287
+ */
288
+ constructor();
289
+ }
290
+ /**
291
+ * Event action validation context to help debug other validation errors
292
+ *
293
+ * @interface EventActionValidationMeta
294
+ * @typedef {EventActionValidationMeta}
295
+ */
296
+ interface EventActionValidationMeta {
297
+ /**
298
+ * The viem log being validated against
299
+ *
300
+ * @type {Log}
301
+ */
302
+ log: Log;
303
+ /**
304
+ * The value pulled off the log being validated against
305
+ *
306
+ * @type {*}
307
+ * biome-ignore lint/suspicious/noExplicitAny: this can be a few different types based on what the log emits
308
+ */
309
+ fieldValue: any;
310
+ /**
311
+ * The criteria being used to compare during validation
312
+ *
313
+ * @type {Criteria}
314
+ */
315
+ criteria: Criteria;
316
+ }
317
+ /**
318
+ * The base error thrown during event action validation extended by more specific validation errors.
319
+ * Instantiated with relevent context data for more in depth debugging.
320
+ *
321
+ * @export
322
+ * @class EventActionValidationError
323
+ * @typedef {EventActionValidationError}
324
+ * @extends {Error}
325
+ */
326
+ export declare class EventActionValidationError extends Error {
327
+ /**
328
+ * The viem log being validated against
329
+ *
330
+ * @type {Log}
331
+ */
332
+ log: Log;
333
+ /**
334
+ * The value pulled off the log being validated against
335
+ *
336
+ * @type {*}
337
+ * biome-ignore lint/suspicious/noExplicitAny: this can be a few different types based on what the log emits
338
+ */
339
+ fieldValue: any;
340
+ /**
341
+ * The criteria being used to compare during validation
342
+ *
343
+ * @type {Criteria}
344
+ */
345
+ criteria: Criteria;
346
+ /**
347
+ * Creates an instance of EventActionValidationError.
348
+ *
349
+ * @constructor
350
+ * @param {string} message
351
+ * @param {EventActionValidationMeta} param0
352
+ * @param {*} param0.fieldValue
353
+ * @param {Criteria} param0.criteria
354
+ * @param {Log} param0.log
355
+ */
356
+ constructor(message: string, { fieldValue, criteria, log }: EventActionValidationMeta);
357
+ }
358
+ /**
359
+ * Thrown when field value on log is undefined
360
+ *
361
+ * @export
362
+ * @class FieldValueUndefinedError
363
+ * @typedef {FieldValueUndefinedError}
364
+ * @extends {EventActionValidationError}
365
+ */
366
+ export declare class FieldValueUndefinedError extends EventActionValidationError {
367
+ /**
368
+ * Creates an instance of FieldValueUndefinedError.
369
+ *
370
+ * @constructor
371
+ * @param {EventActionValidationMeta} metadata
372
+ */
373
+ constructor(metadata: EventActionValidationMeta);
374
+ }
375
+ /**
376
+ * Thrown when a filter type is using a numerical operator but field type is not numerical
377
+ *
378
+ * @export
379
+ * @class InvalidNumericalCriteriaError
380
+ * @typedef {InvalidNumericalCriteriaError}
381
+ * @extends {EventActionValidationError}
382
+ */
383
+ export declare class InvalidNumericalCriteriaError extends EventActionValidationError {
384
+ /**
385
+ * Creates an instance of InvalidNumericalCriteria.
386
+ *
387
+ * @constructor
388
+ * @param {EventActionValidationMeta} metadata
389
+ */
390
+ constructor(metadata: EventActionValidationMeta);
391
+ }
392
+ /**
393
+ * Thrown when an the log's field value is being compared a field type that isn't bytes or string during event action validation
394
+ *
395
+ * @export
396
+ * @class FieldValueNotComparableError
397
+ * @typedef {FieldValueNotComparableError}
398
+ * @extends {EventActionValidationError}
399
+ */
400
+ export declare class FieldValueNotComparableError extends EventActionValidationError {
401
+ /**
402
+ * Creates an instance of FieldValueNotComparableError.
403
+ *
404
+ * @constructor
405
+ * @param {EventActionValidationMeta} metadata
406
+ */
407
+ constructor(metadata: EventActionValidationMeta);
408
+ }
409
+ /**
410
+ * Thrown when an invalid filter type enum was provided event action validation.
411
+ *
412
+ * @export
413
+ * @class UnrecognizedFilterTypeError
414
+ * @typedef {UnrecognizedFilterTypeError}
415
+ * @extends {EventActionValidationError}
416
+ */
417
+ export declare class UnrecognizedFilterTypeError extends EventActionValidationError {
418
+ /**
419
+ * Creates an instance of UnrecognizedFilterTypeError.
420
+ *
421
+ * @constructor
422
+ * @param {EventActionValidationMeta} metadata
423
+ */
424
+ constructor(metadata: EventActionValidationMeta);
425
+ }
426
+ export {};
257
427
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAAG,EACR,KAAK,mCAAmC,EAEzC,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;IACrD;;;;OAIG;;CAIJ;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;IACrD;;;;OAIG;;CAIJ;AAED;;;;;;;GAOG;AACH,qBAAa,8BAA+B,SAAQ,KAAK;IACvD;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;gBACS,OAAO,EAAE,MAAM;CAM5B;AAED;;;;;;;GAOG;AACH,qBAAa,yCAA0C,SAAQ,KAAK;IAClE;;;;OAIG;;CAMJ;AAED;;;;;;;GAOG;AACH,qBAAa,mCAAoC,SAAQ,KAAK;IAC5D;;;;OAIG;;CAMJ;AAED;;;;;;;GAOG;AACH,qBAAa,yCAA0C,SAAQ,KAAK;IAClE;;;;OAIG;;CAMJ;AAED;;;;;;;GAOG;AACH,qBAAa,6BAA8B,SAAQ,KAAK;IACtD;;;;OAIG;;CAMJ;AAED;;;;;;;GAOG;AACH,qBAAa,iCAAkC,SAAQ,KAAK;IAC1D;;;;;;OAMG;IACH,SAAgB,OAAO,EAAE,mCAAmC,CAAC;IAC7D;;;;;OAKG;gBACS,OAAO,EAAE,mCAAmC;C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AIG;IACH,GAAG,EAAE,GAAG,CAAC;IACT;;;;;OAKG;IACH,UAAU,EAAE,GAAG,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,qBAAa,0BAA2B,SAAQ,KAAK;IACnD;;;;OAIG;IACH,GAAG,EAAE,GAAG,CAAC;IACT;;;;;OAKG;IACH,UAAU,EAAE,GAAG,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;;;;;;OASG;gBAED,OAAO,EAAE,MAAM,EACf,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,yBAAyB;CAO3D;AAED;;;;;;;GAOG;AACH,qBAAa,wBAAyB,SAAQ,0BAA0B;IACtE;;;;;OAKG;gBACS,QAAQ,EAAE,yBAAyB;CAGhD;AAED;;;;;;;GAOG;AACH,qBAAa,6BAA8B,SAAQ,0BAA0B;IAC3E;;;;;OAKG;gBACS,QAAQ,EAAE,yBAAyB;CAMhD;AAED;;;;;;;GAOG;AACH,qBAAa,4BAA6B,SAAQ,0BAA0B;IAC1E;;;;;OAKG;gBACS,QAAQ,EAAE,yBAAyB;CAGhD;AAED;;;;;;;GAOG;AACH,qBAAa,2BAA4B,SAAQ,0BAA0B;IACzE;;;;;OAKG;gBACS,QAAQ,EAAE,yBAAyB;CAGhD"}
package/dist/errors.js CHANGED
@@ -1,5 +1,5 @@
1
- import { zeroHash as t } from "viem";
2
- class a extends Error {
1
+ import { zeroHash as a } from "viem";
2
+ class d extends Error {
3
3
  /**
4
4
  * Creates an instance of BoostCoreNoIdentifierEmitted.
5
5
  *
@@ -9,7 +9,7 @@ class a extends Error {
9
9
  super('No "BoostCreated" log was emitted from which to extract boostId');
10
10
  }
11
11
  }
12
- class n extends Error {
12
+ class i extends Error {
13
13
  /**
14
14
  * Creates an instance of ContractAddressRequiredError.
15
15
  *
@@ -19,20 +19,20 @@ class n extends Error {
19
19
  super("Attempted to call contract method without providing an address");
20
20
  }
21
21
  }
22
- class d extends Error {
22
+ class l extends Error {
23
23
  /**
24
24
  * Creates an instance of DeployableAlreadyDeployedError.
25
25
  *
26
26
  * @constructor
27
27
  * @param {string} address
28
28
  */
29
- constructor(e) {
29
+ constructor(r) {
30
30
  super(
31
31
  "Attempted to deploy a contract that already has an address configured"
32
- ), this.address = e;
32
+ ), this.address = r;
33
33
  }
34
34
  }
35
- class c extends Error {
35
+ class u extends Error {
36
36
  /**
37
37
  * Creates an instance of DeployableBuildParametersUnspecifiedError.
38
38
  *
@@ -44,7 +44,7 @@ class c extends Error {
44
44
  );
45
45
  }
46
46
  }
47
- class i extends Error {
47
+ class p extends Error {
48
48
  /**
49
49
  * Creates an instance of DeployableUnknownOwnerProvidedError.
50
50
  *
@@ -56,7 +56,7 @@ class i extends Error {
56
56
  );
57
57
  }
58
58
  }
59
- class l extends Error {
59
+ class E extends Error {
60
60
  /**
61
61
  * Creates an instance of DeployableWagmiConfigurationRequiredError.
62
62
  *
@@ -68,7 +68,7 @@ class l extends Error {
68
68
  );
69
69
  }
70
70
  }
71
- class p extends Error {
71
+ class x extends Error {
72
72
  /**
73
73
  * Creates an instance of DeployableMissingPayloadError.
74
74
  *
@@ -80,20 +80,20 @@ class p extends Error {
80
80
  );
81
81
  }
82
82
  }
83
- class u extends Error {
83
+ class h extends Error {
84
84
  /**
85
85
  * Creates an instance of NoContractAddressUponReceiptError.
86
86
  *
87
87
  * @constructor
88
88
  * @param {WaitForTransactionReceiptReturnType} receipt
89
89
  */
90
- constructor(e) {
90
+ constructor(r) {
91
91
  super("Expected a contract address to exist on receipt.", {
92
- cause: e
93
- }), this.receipt = e;
92
+ cause: r
93
+ }), this.receipt = r;
94
94
  }
95
95
  }
96
- class E extends Error {
96
+ class y extends Error {
97
97
  /**
98
98
  * Creates an instance of InvalidComponentInterfaceError.
99
99
  *
@@ -101,61 +101,152 @@ class E extends Error {
101
101
  * @param {Hex[]} expected
102
102
  * @param {Hex} received
103
103
  */
104
- constructor(e, o) {
104
+ constructor(r, o) {
105
105
  super("Address provided does not match any expected protocol interface", {
106
- cause: { expected: e, received: o }
107
- }), this.expected = [], this.received = t, this.expected = e, this.received = o;
106
+ cause: { expected: r, received: o }
107
+ }), this.expected = [], this.received = a, this.expected = r, this.received = o;
108
108
  }
109
109
  }
110
- class x extends Error {
110
+ class m extends Error {
111
111
  /**
112
112
  * Creates an instance of UnknownTransferPayloadSupplied.
113
113
  *
114
114
  * @constructor
115
115
  * @param {unknown} received
116
116
  */
117
- constructor(e) {
117
+ constructor(r) {
118
118
  super(
119
119
  "Did not provide a valid FungibleTransferPayload or ERC1155 transfer payload.",
120
- { cause: e }
121
- ), this.received = e;
120
+ { cause: r }
121
+ ), this.received = r;
122
122
  }
123
123
  }
124
- class h extends Error {
124
+ class v extends Error {
125
125
  /**
126
126
  * Creates an instance of BudgetMustAuthorizeBoostCore.
127
127
  *
128
128
  * @constructor
129
129
  * @param {string} boostCoreAddress
130
130
  */
131
- constructor(e) {
131
+ constructor(r) {
132
132
  super(
133
- `Budget needs to explicitly authorize ${e}. You can retrieve this value from BoostCore.address`
133
+ `Budget needs to explicitly authorize ${r}. You can retrieve this value from BoostCore.address`
134
134
  );
135
135
  }
136
136
  }
137
- class m extends Error {
137
+ class b extends Error {
138
138
  /**
139
139
  * Creates an instance of IncentiveNotCloneableError.
140
140
  *
141
141
  * @constructor
142
142
  * @param {Incentive} incentive
143
143
  */
144
- constructor(e) {
145
- super(`Incentive not cloneable: ${e.constructor.name}`);
144
+ constructor(r) {
145
+ super(`Incentive not cloneable: ${r.constructor.name}`);
146
+ }
147
+ }
148
+ class g extends Error {
149
+ /**
150
+ * Creates an instance of NoEventActionStepsProvidedError.
151
+ *
152
+ * @constructor
153
+ */
154
+ constructor() {
155
+ super("Must supply at least one action step");
156
+ }
157
+ }
158
+ class f extends Error {
159
+ /**
160
+ * Creates an instance of TooManyEventActionStepsProvidedError.
161
+ *
162
+ * @constructor
163
+ */
164
+ constructor() {
165
+ super(
166
+ "Cannot supply more than 4 action steps with current protocol version"
167
+ );
168
+ }
169
+ }
170
+ class t extends Error {
171
+ /**
172
+ * Creates an instance of EventActionValidationError.
173
+ *
174
+ * @constructor
175
+ * @param {string} message
176
+ * @param {EventActionValidationMeta} param0
177
+ * @param {*} param0.fieldValue
178
+ * @param {Criteria} param0.criteria
179
+ * @param {Log} param0.log
180
+ */
181
+ constructor(r, { fieldValue: o, criteria: s, log: n }) {
182
+ super(r), this.fieldValue = o, this.criteria = s, this.log = n;
183
+ }
184
+ }
185
+ class C extends t {
186
+ /**
187
+ * Creates an instance of FieldValueUndefinedError.
188
+ *
189
+ * @constructor
190
+ * @param {EventActionValidationMeta} metadata
191
+ */
192
+ constructor(r) {
193
+ super("Field value is undefined", r);
194
+ }
195
+ }
196
+ class w extends t {
197
+ /**
198
+ * Creates an instance of InvalidNumericalCriteria.
199
+ *
200
+ * @constructor
201
+ * @param {EventActionValidationMeta} metadata
202
+ */
203
+ constructor(r) {
204
+ super(
205
+ "Numerical comparisons cannot be used with non-numerical criteria",
206
+ r
207
+ );
208
+ }
209
+ }
210
+ class A extends t {
211
+ /**
212
+ * Creates an instance of FieldValueNotComparableError.
213
+ *
214
+ * @constructor
215
+ * @param {EventActionValidationMeta} metadata
216
+ */
217
+ constructor(r) {
218
+ super("Filter can only be used with bytes or string field type", r);
219
+ }
220
+ }
221
+ class D extends t {
222
+ /**
223
+ * Creates an instance of UnrecognizedFilterTypeError.
224
+ *
225
+ * @constructor
226
+ * @param {EventActionValidationMeta} metadata
227
+ */
228
+ constructor(r) {
229
+ super("Invalid FilterType provided", r);
146
230
  }
147
231
  }
148
232
  export {
149
- a as BoostCoreNoIdentifierEmitted,
150
- h as BudgetMustAuthorizeBoostCore,
151
- n as ContractAddressRequiredError,
152
- d as DeployableAlreadyDeployedError,
153
- c as DeployableBuildParametersUnspecifiedError,
154
- p as DeployableMissingPayloadError,
155
- i as DeployableUnknownOwnerProvidedError,
156
- l as DeployableWagmiConfigurationRequiredError,
157
- m as IncentiveNotCloneableError,
158
- E as InvalidComponentInterfaceError,
159
- u as NoContractAddressUponReceiptError,
160
- x as UnknownTransferPayloadSupplied
233
+ d as BoostCoreNoIdentifierEmitted,
234
+ v as BudgetMustAuthorizeBoostCore,
235
+ i as ContractAddressRequiredError,
236
+ l as DeployableAlreadyDeployedError,
237
+ u as DeployableBuildParametersUnspecifiedError,
238
+ x as DeployableMissingPayloadError,
239
+ p as DeployableUnknownOwnerProvidedError,
240
+ E as DeployableWagmiConfigurationRequiredError,
241
+ t as EventActionValidationError,
242
+ A as FieldValueNotComparableError,
243
+ C as FieldValueUndefinedError,
244
+ b as IncentiveNotCloneableError,
245
+ y as InvalidComponentInterfaceError,
246
+ w as InvalidNumericalCriteriaError,
247
+ h as NoContractAddressUponReceiptError,
248
+ g as NoEventActionStepsProvidedError,
249
+ f as TooManyEventActionStepsProvidedError,
250
+ m as UnknownTransferPayloadSupplied,
251
+ D as UnrecognizedFilterTypeError
161
252
  };