@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.
- package/dist/Actions/Action.cjs +1 -1
- package/dist/Actions/Action.js +1 -1
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.d.ts +25 -10
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +94 -76
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.js +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.js +1 -1
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +1 -1
- package/dist/BoostCore.cjs +1 -1
- package/dist/BoostCore.js +85 -85
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +3 -3
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.js +1 -1
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.js +22 -22
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.js +1 -1
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.js +1 -1
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.js +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.js +5 -5
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.js +3 -3
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.js +1 -1
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.js +1 -1
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.js +1 -1
- package/dist/errors.cjs +1 -1
- package/dist/errors.d.ts +171 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +131 -40
- package/dist/generated-Cd-Fe7W7.cjs +2 -0
- package/dist/{generated-x_abr3Yv.js → generated-DGpIVcv5.js} +1153 -2768
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +126 -1353
- package/dist/utils.cjs +1 -1
- package/dist/utils.d.ts +44 -13
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +132 -119
- package/package.json +1 -1
- 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
|
|
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
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"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"}
|
package/dist/errors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { zeroHash as
|
|
2
|
-
class
|
|
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
|
|
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
|
|
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(
|
|
29
|
+
constructor(r) {
|
|
30
30
|
super(
|
|
31
31
|
"Attempted to deploy a contract that already has an address configured"
|
|
32
|
-
), this.address =
|
|
32
|
+
), this.address = r;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
class
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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(
|
|
90
|
+
constructor(r) {
|
|
91
91
|
super("Expected a contract address to exist on receipt.", {
|
|
92
|
-
cause:
|
|
93
|
-
}), this.receipt =
|
|
92
|
+
cause: r
|
|
93
|
+
}), this.receipt = r;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
class
|
|
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(
|
|
104
|
+
constructor(r, o) {
|
|
105
105
|
super("Address provided does not match any expected protocol interface", {
|
|
106
|
-
cause: { expected:
|
|
107
|
-
}), this.expected = [], this.received =
|
|
106
|
+
cause: { expected: r, received: o }
|
|
107
|
+
}), this.expected = [], this.received = a, this.expected = r, this.received = o;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
class
|
|
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(
|
|
117
|
+
constructor(r) {
|
|
118
118
|
super(
|
|
119
119
|
"Did not provide a valid FungibleTransferPayload or ERC1155 transfer payload.",
|
|
120
|
-
{ cause:
|
|
121
|
-
), this.received =
|
|
120
|
+
{ cause: r }
|
|
121
|
+
), this.received = r;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
class
|
|
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(
|
|
131
|
+
constructor(r) {
|
|
132
132
|
super(
|
|
133
|
-
`Budget needs to explicitly authorize ${
|
|
133
|
+
`Budget needs to explicitly authorize ${r}. You can retrieve this value from BoostCore.address`
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
class
|
|
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(
|
|
145
|
-
super(`Incentive not cloneable: ${
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
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
|
};
|