@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.
- package/dist/Actions/Action.cjs +1 -1
- package/dist/Actions/Action.cjs.map +1 -1
- package/dist/Actions/Action.js +7 -7
- package/dist/Actions/ContractAction.d.ts +57 -14
- package/dist/Actions/ContractAction.d.ts.map +1 -1
- package/dist/Actions/ERC721MintAction.d.ts +50 -23
- package/dist/Actions/ERC721MintAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +420 -45
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +15 -225
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.cjs.map +1 -1
- package/dist/AllowLists/AllowList.d.ts +6 -4
- package/dist/AllowLists/AllowList.d.ts.map +1 -1
- package/dist/AllowLists/AllowList.js +45 -23
- package/dist/AllowLists/AllowList.js.map +1 -1
- package/dist/AllowLists/OpenAllowList.d.ts +423 -0
- package/dist/AllowLists/OpenAllowList.d.ts.map +1 -0
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
- package/dist/AllowLists/SimpleAllowList.d.ts +123 -39
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleAllowList.js +75 -76
- package/dist/AllowLists/SimpleAllowList.js.map +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs.map +1 -1
- package/dist/AllowLists/SimpleDenyList.d.ts +234 -13
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleDenyList.js +11 -200
- package/dist/AllowLists/SimpleDenyList.js.map +1 -1
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.cjs.map +1 -1
- package/dist/Auth/PassthroughAuth.js +4 -4
- package/dist/Auth/PassthroughAuth.js.map +1 -1
- package/dist/Boost.cjs +1 -1
- package/dist/Boost.cjs.map +1 -1
- package/dist/Boost.d.ts +105 -14
- package/dist/Boost.d.ts.map +1 -1
- package/dist/Boost.js +137 -5
- package/dist/Boost.js.map +1 -1
- package/dist/BoostCore-BVZExPPu.js +1462 -0
- package/dist/BoostCore-BVZExPPu.js.map +1 -0
- package/dist/BoostCore-D-E-cnGI.cjs +3 -0
- package/dist/BoostCore-D-E-cnGI.cjs.map +1 -0
- package/dist/BoostCore.cjs +1 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +759 -82
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +29 -1148
- package/dist/BoostCore.js.map +1 -1
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.cjs.map +1 -1
- package/dist/BoostRegistry.d.ts +83 -28
- package/dist/BoostRegistry.d.ts.map +1 -1
- package/dist/BoostRegistry.js +170 -93
- package/dist/BoostRegistry.js.map +1 -1
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.cjs.map +1 -1
- package/dist/Budgets/Budget.d.ts.map +1 -1
- package/dist/Budgets/Budget.js +2 -2
- package/dist/Budgets/Budget.js.map +1 -1
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.cjs.map +1 -1
- package/dist/Budgets/ManagedBudget.d.ts +112 -192
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudget.js +89 -290
- package/dist/Budgets/ManagedBudget.js.map +1 -1
- package/dist/Budgets/VestingBudget.d.ts +277 -91
- package/dist/Budgets/VestingBudget.d.ts.map +1 -1
- package/dist/Deployable/Contract.cjs +1 -1
- package/dist/Deployable/Contract.cjs.map +1 -1
- package/dist/Deployable/Contract.d.ts +4 -5
- package/dist/Deployable/Contract.d.ts.map +1 -1
- package/dist/Deployable/Contract.js +6 -8
- package/dist/Deployable/Contract.js.map +1 -1
- package/dist/Deployable/Deployable.cjs.map +1 -1
- package/dist/Deployable/Deployable.d.ts +1 -1
- package/dist/Deployable/Deployable.d.ts.map +1 -1
- package/dist/Deployable/Deployable.js +3 -5
- package/dist/Deployable/Deployable.js.map +1 -1
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.cjs.map +1 -1
- package/dist/Deployable/DeployableTarget.d.ts +13 -13
- package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.js +30 -27
- package/dist/Deployable/DeployableTarget.js.map +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +2 -0
- package/dist/Deployable/DeployableTargetWithRBAC.cjs.map +1 -0
- package/dist/Deployable/DeployableTargetWithRBAC.d.ts +179 -0
- package/dist/Deployable/DeployableTargetWithRBAC.d.ts.map +1 -0
- package/dist/Deployable/DeployableTargetWithRBAC.js +222 -0
- package/dist/Deployable/DeployableTargetWithRBAC.js.map +1 -0
- package/dist/EventAction-BZt5cjbe.cjs +2 -0
- package/dist/EventAction-BZt5cjbe.cjs.map +1 -0
- package/dist/EventAction-C_-hJXWm.js +1541 -0
- package/dist/EventAction-C_-hJXWm.js.map +1 -0
- package/dist/Incentive-BhHaK3PZ.cjs +2 -0
- package/dist/Incentive-BhHaK3PZ.cjs.map +1 -0
- package/dist/Incentive-Cqg1w6wD.js +312 -0
- package/dist/Incentive-Cqg1w6wD.js.map +1 -0
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
- package/dist/Incentives/AllowListIncentive.d.ts +73 -21
- package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
- package/dist/Incentives/AllowListIncentive.js +61 -36
- package/dist/Incentives/AllowListIncentive.js.map +1 -1
- package/dist/Incentives/CGDAIncentive.cjs +1 -1
- package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
- package/dist/Incentives/CGDAIncentive.d.ts +323 -26
- package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
- package/dist/Incentives/CGDAIncentive.js +73 -39
- package/dist/Incentives/CGDAIncentive.js.map +1 -1
- package/dist/Incentives/ERC1155Incentive.d.ts +291 -43
- package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
- package/dist/Incentives/ERC20Incentive.d.ts +278 -33
- package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.js +79 -47
- package/dist/Incentives/ERC20Incentive.js.map +1 -1
- package/dist/{Budgets/SimpleBudget.d.ts → Incentives/ERC20VariableCriteriaIncentive.d.ts} +346 -420
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts +271 -32
- package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.cjs.map +1 -1
- package/dist/Incentives/Incentive.d.ts +4 -4
- package/dist/Incentives/Incentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.js +16 -280
- package/dist/Incentives/Incentive.js.map +1 -1
- package/dist/Incentives/PointsIncentive.cjs +1 -1
- package/dist/Incentives/PointsIncentive.cjs.map +1 -1
- package/dist/Incentives/PointsIncentive.d.ts +89 -23
- package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
- package/dist/Incentives/PointsIncentive.js +66 -36
- package/dist/Incentives/PointsIncentive.js.map +1 -1
- package/dist/SimpleDenyList-BUR17Tt1.cjs +2 -0
- package/dist/SimpleDenyList-BUR17Tt1.cjs.map +1 -0
- package/dist/SimpleDenyList-CGaWjuld.js +132 -0
- package/dist/SimpleDenyList-CGaWjuld.js.map +1 -0
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.cjs.map +1 -1
- package/dist/Validators/SignerValidator.d.ts +310 -17
- package/dist/Validators/SignerValidator.d.ts.map +1 -1
- package/dist/Validators/SignerValidator.js +164 -36
- package/dist/Validators/SignerValidator.js.map +1 -1
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.cjs.map +1 -1
- package/dist/Validators/Validator.d.ts +1 -1
- package/dist/Validators/Validator.js +2 -2
- package/dist/Validators/Validator.js.map +1 -1
- package/dist/claiming.cjs +2 -0
- package/dist/claiming.cjs.map +1 -0
- package/dist/claiming.d.ts +43 -0
- package/dist/claiming.d.ts.map +1 -0
- package/dist/claiming.js +17 -0
- package/dist/claiming.js.map +1 -0
- package/dist/componentInterfaces-BBCFkrZv.js +14 -0
- package/dist/componentInterfaces-BBCFkrZv.js.map +1 -0
- package/dist/componentInterfaces-DRI_dQ-P.cjs +2 -0
- package/dist/componentInterfaces-DRI_dQ-P.cjs.map +1 -0
- package/dist/deployments-DVXioW2i.cjs +2 -0
- package/dist/deployments-DVXioW2i.cjs.map +1 -0
- package/dist/deployments-oykLv3_Z.js +43 -0
- package/dist/deployments-oykLv3_Z.js.map +1 -0
- package/dist/deployments.json +44 -0
- package/dist/errors.cjs +1 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.ts +257 -21
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +183 -26
- package/dist/errors.js.map +1 -1
- package/dist/{generated-Cbv8zFkf.js → generated-CKt2yCQd.js} +3615 -1868
- package/dist/generated-CKt2yCQd.js.map +1 -0
- package/dist/generated-CyTNlOwM.cjs +3 -0
- package/dist/generated-CyTNlOwM.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +143 -126
- package/dist/index.js.map +1 -1
- package/dist/transfers.cjs +2 -0
- package/dist/transfers.cjs.map +1 -0
- package/dist/transfers.d.ts +198 -0
- package/dist/transfers.d.ts.map +1 -0
- package/dist/transfers.js +84 -0
- package/dist/transfers.js.map +1 -0
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.ts +25 -1380
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +36 -648
- package/dist/utils.js.map +1 -1
- package/package.json +34 -10
- package/src/Actions/Action.test.ts +19 -17
- package/src/Actions/ContractAction.test.ts +14 -16
- package/src/Actions/ContractAction.ts +84 -22
- package/src/Actions/ERC721MintAction.test.ts +8 -8
- package/src/Actions/ERC721MintAction.ts +83 -30
- package/src/Actions/EventAction.test.ts +759 -113
- package/src/Actions/EventAction.ts +991 -116
- package/src/AllowLists/AllowList.test.ts +7 -7
- package/src/AllowLists/AllowList.ts +5 -3
- package/src/AllowLists/OpenAllowList.test.ts +40 -0
- package/src/AllowLists/OpenAllowList.ts +45 -0
- package/src/AllowLists/SimpleAllowList.test.ts +4 -4
- package/src/AllowLists/SimpleAllowList.ts +86 -65
- package/src/AllowLists/SimpleDenyList.test.ts +4 -4
- package/src/AllowLists/SimpleDenyList.ts +87 -126
- package/src/Auth/PassthroughAuth.test.ts +1 -1
- package/src/Auth/PassthroughAuth.ts +1 -1
- package/src/Boost.ts +147 -15
- package/src/BoostCore.test.ts +326 -278
- package/src/BoostCore.ts +425 -242
- package/src/BoostRegistry.test.ts +53 -0
- package/src/BoostRegistry.ts +168 -50
- package/src/Budgets/Budget.test.ts +2 -2
- package/src/Budgets/Budget.ts +1 -2
- package/src/Budgets/ManagedBudget.test.ts +82 -19
- package/src/Budgets/ManagedBudget.ts +106 -315
- package/src/Budgets/VestingBudget.test.ts +7 -7
- package/src/Budgets/VestingBudget.ts +110 -112
- package/src/Deployable/Contract.ts +5 -6
- package/src/Deployable/Deployable.ts +1 -1
- package/src/Deployable/DeployableTarget.ts +32 -21
- package/src/Deployable/DeployableTargetWithRBAC.ts +323 -0
- package/src/Incentives/AllowListIncentive.test.ts +7 -10
- package/src/Incentives/AllowListIncentive.ts +88 -30
- package/src/Incentives/CGDAIncentive.test.ts +11 -12
- package/src/Incentives/CGDAIncentive.ts +161 -37
- package/src/Incentives/ERC1155Incentive.test.ts +5 -16
- package/src/Incentives/ERC1155Incentive.ts +132 -51
- package/src/Incentives/ERC20Incentive.test.ts +15 -23
- package/src/Incentives/ERC20Incentive.ts +131 -46
- package/src/Incentives/ERC20VariableCriteriaIncentive.test.ts +184 -0
- package/src/Incentives/ERC20VariableCriteriaIncentive.ts +324 -0
- package/src/Incentives/ERC20VariableIncentive.test.ts +12 -35
- package/src/Incentives/ERC20VariableIncentive.ts +118 -43
- package/src/Incentives/Incentive.test.ts +5 -2
- package/src/Incentives/Incentive.ts +7 -6
- package/src/Incentives/PointsIncentive.test.ts +26 -30
- package/src/Incentives/PointsIncentive.ts +110 -34
- package/src/Validators/SignerValidator.test.ts +9 -13
- package/src/Validators/SignerValidator.ts +437 -26
- package/src/Validators/Validator.test.ts +2 -2
- package/src/Validators/Validator.ts +1 -1
- package/src/claiming.ts +56 -0
- package/src/errors.ts +346 -22
- package/src/index.test.ts +118 -36
- package/src/index.ts +15 -7
- package/src/transfers.ts +284 -0
- package/src/utils.test.ts +2 -2
- package/src/utils.ts +61 -2061
- package/dist/Budgets/SimpleBudget.d.ts.map +0 -1
- package/dist/componentInterfaces-CKCBwG16.cjs +0 -2
- package/dist/componentInterfaces-CKCBwG16.cjs.map +0 -1
- package/dist/componentInterfaces-DYkaxBda.js +0 -13
- package/dist/componentInterfaces-DYkaxBda.js.map +0 -1
- package/dist/generated-BzszviNp.cjs +0 -3
- package/dist/generated-BzszviNp.cjs.map +0 -1
- package/dist/generated-Cbv8zFkf.js.map +0 -1
- package/src/Budgets/SimpleBudget.test.ts +0 -152
- package/src/Budgets/SimpleBudget.ts +0 -521
|
@@ -1,10 +1,262 @@
|
|
|
1
1
|
import { eventActionAbi } from '@boostxyz/evm';
|
|
2
|
-
import { type
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
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: "
|
|
150
|
-
readonly type: "
|
|
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: "
|
|
177
|
-
readonly type: "
|
|
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: "
|
|
225
|
-
readonly type: "
|
|
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
|
|
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 {?
|
|
607
|
+
* @param {?ReadEventActionParams<'getActionStep'>} [params]
|
|
344
608
|
* @returns {Promise<ActionStep>}
|
|
345
609
|
*/
|
|
346
|
-
getActionStep(index: number, params?:
|
|
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 {?
|
|
616
|
+
* @param {?ReadEventActionParams<'getActionSteps'>} [params]
|
|
353
617
|
* @returns {Promise<ActionStep[]>}
|
|
354
618
|
*/
|
|
355
|
-
getActionSteps(params?:
|
|
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 {?
|
|
625
|
+
* @param {?ReadEventActionParams<'getActionStepsCount'>} [params]
|
|
362
626
|
* @returns {Promise<bigint>}
|
|
363
627
|
*/
|
|
364
|
-
getActionStepsCount(params?:
|
|
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 {?
|
|
634
|
+
* @param {?ReadEventActionParams<'getActionClaimant'>} [params]
|
|
371
635
|
* @returns {Promise<ActionClaimant>}
|
|
372
636
|
*/
|
|
373
|
-
getActionClaimant(params?:
|
|
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
|
|
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
|
|
391
|
-
* @returns {
|
|
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
|
|
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
|
|
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 {
|
|
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
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
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 {
|
|
770
|
+
* @returns {boolean} - Returns true if the log passes the criteria, false otherwise.
|
|
437
771
|
*/
|
|
438
|
-
validateLogAgainstCriteria(criteria: Criteria, log:
|
|
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;
|
|
1
|
+
{"version":3,"file":"EventAction.d.ts","sourceRoot":"","sources":["../../src/Actions/EventAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EAKf,MAAM,eAAe,CAAC;AAUvB,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,WAAW,EAEhB,KAAK,OAAO,EAEZ,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EAEtB,KAAK,GAAG,EAGR,KAAK,WAAW,EAQjB,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAalE,OAAO,EAGL,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,WAAW,EACjB,MAAM,UAAU,CAAC;AAMlB;;;;;GAKG;AACH,oBAA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