@boostxyz/sdk 0.0.0-alpha.2 → 0.0.0-alpha.20
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 +2 -1
- package/dist/Actions/Action.cjs.map +1 -0
- package/dist/Actions/Action.d.ts +1 -1
- package/dist/Actions/Action.d.ts.map +1 -1
- package/dist/Actions/Action.js +14 -12
- package/dist/Actions/Action.js.map +1 -0
- 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 +2 -1
- package/dist/Actions/EventAction.cjs.map +1 -0
- package/dist/Actions/EventAction.d.ts +405 -36
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +15 -209
- package/dist/Actions/EventAction.js.map +1 -0
- package/dist/AllowLists/AllowList.cjs +2 -1
- package/dist/AllowLists/AllowList.cjs.map +1 -0
- package/dist/AllowLists/AllowList.d.ts +6 -5
- package/dist/AllowLists/AllowList.d.ts.map +1 -1
- package/dist/AllowLists/AllowList.js +46 -22
- package/dist/AllowLists/AllowList.js.map +1 -0
- package/dist/AllowLists/OpenAllowList.d.ts +423 -0
- package/dist/AllowLists/OpenAllowList.d.ts.map +1 -0
- package/dist/AllowLists/SimpleAllowList.cjs +2 -1
- package/dist/AllowLists/SimpleAllowList.cjs.map +1 -0
- package/dist/AllowLists/SimpleAllowList.d.ts +124 -40
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleAllowList.js +77 -77
- package/dist/AllowLists/SimpleAllowList.js.map +1 -0
- package/dist/AllowLists/SimpleDenyList.cjs +2 -1
- package/dist/AllowLists/SimpleDenyList.cjs.map +1 -0
- package/dist/AllowLists/SimpleDenyList.d.ts +234 -13
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleDenyList.js +12 -200
- package/dist/AllowLists/SimpleDenyList.js.map +1 -0
- package/dist/Auth/Auth.cjs +1 -0
- package/dist/Auth/Auth.cjs.map +1 -0
- package/dist/Auth/Auth.js +1 -0
- package/dist/Auth/Auth.js.map +1 -0
- package/dist/Auth/PassthroughAuth.cjs +2 -1
- package/dist/Auth/PassthroughAuth.cjs.map +1 -0
- package/dist/Auth/PassthroughAuth.js +5 -4
- package/dist/Auth/PassthroughAuth.js.map +1 -0
- package/dist/Boost.cjs +2 -1
- package/dist/Boost.cjs.map +1 -0
- package/dist/Boost.d.ts +111 -1
- package/dist/Boost.d.ts.map +1 -1
- package/dist/Boost.js +140 -5
- package/dist/Boost.js.map +1 -0
- package/dist/BoostCore-3-U1xTQN.cjs +3 -0
- package/dist/BoostCore-3-U1xTQN.cjs.map +1 -0
- package/dist/BoostCore-DVGBUr2y.js +1477 -0
- package/dist/BoostCore-DVGBUr2y.js.map +1 -0
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -0
- package/dist/BoostCore.d.ts +166 -43
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +30 -1103
- package/dist/BoostCore.js.map +1 -0
- package/dist/BoostRegistry.cjs +2 -1
- package/dist/BoostRegistry.cjs.map +1 -0
- package/dist/BoostRegistry.d.ts +64 -23
- package/dist/BoostRegistry.d.ts.map +1 -1
- package/dist/BoostRegistry.js +162 -88
- package/dist/BoostRegistry.js.map +1 -0
- package/dist/Budgets/Budget.cjs +2 -1
- package/dist/Budgets/Budget.cjs.map +1 -0
- package/dist/Budgets/Budget.d.ts +1 -1
- package/dist/Budgets/Budget.d.ts.map +1 -1
- package/dist/Budgets/Budget.js +15 -13
- package/dist/Budgets/Budget.js.map +1 -0
- package/dist/Budgets/ManagedBudget.cjs +2 -1
- package/dist/Budgets/ManagedBudget.cjs.map +1 -0
- package/dist/Budgets/ManagedBudget.d.ts +78 -188
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudget.js +86 -286
- package/dist/Budgets/ManagedBudget.js.map +1 -0
- package/dist/Budgets/VestingBudget.d.ts +243 -87
- package/dist/Budgets/VestingBudget.d.ts.map +1 -1
- package/dist/Deployable/Contract.cjs +2 -1
- package/dist/Deployable/Contract.cjs.map +1 -0
- package/dist/Deployable/Contract.d.ts +4 -5
- package/dist/Deployable/Contract.d.ts.map +1 -1
- package/dist/Deployable/Contract.js +7 -8
- package/dist/Deployable/Contract.js.map +1 -0
- package/dist/Deployable/Deployable.cjs +1 -0
- package/dist/Deployable/Deployable.cjs.map +1 -0
- package/dist/Deployable/Deployable.d.ts +9 -3
- package/dist/Deployable/Deployable.d.ts.map +1 -1
- package/dist/Deployable/Deployable.js +10 -5
- package/dist/Deployable/Deployable.js.map +1 -0
- package/dist/Deployable/DeployableTarget.cjs +2 -1
- package/dist/Deployable/DeployableTarget.cjs.map +1 -0
- package/dist/Deployable/DeployableTarget.d.ts +16 -15
- package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.js +49 -42
- package/dist/Deployable/DeployableTarget.js.map +1 -0
- 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-CIPqmAoP.js +1450 -0
- package/dist/EventAction-CIPqmAoP.js.map +1 -0
- package/dist/EventAction-d-oeqZQs.cjs +2 -0
- package/dist/EventAction-d-oeqZQs.cjs.map +1 -0
- package/dist/Incentive-Bp8Sez7M.js +298 -0
- package/dist/Incentive-Bp8Sez7M.js.map +1 -0
- package/dist/Incentive-Djnzseoj.cjs +2 -0
- package/dist/Incentive-Djnzseoj.cjs.map +1 -0
- package/dist/Incentives/AllowListIncentive.cjs +2 -1
- package/dist/Incentives/AllowListIncentive.cjs.map +1 -0
- package/dist/Incentives/AllowListIncentive.d.ts +49 -19
- package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
- package/dist/Incentives/AllowListIncentive.js +50 -34
- package/dist/Incentives/AllowListIncentive.js.map +1 -0
- package/dist/Incentives/CGDAIncentive.cjs +2 -1
- package/dist/Incentives/CGDAIncentive.cjs.map +1 -0
- package/dist/Incentives/CGDAIncentive.d.ts +118 -22
- package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
- package/dist/Incentives/CGDAIncentive.js +67 -42
- package/dist/Incentives/CGDAIncentive.js.map +1 -0
- package/dist/Incentives/ERC1155Incentive.d.ts +99 -38
- package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +2 -1
- package/dist/Incentives/ERC20Incentive.cjs.map +1 -0
- package/dist/Incentives/ERC20Incentive.d.ts +73 -29
- package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.js +71 -48
- package/dist/Incentives/ERC20Incentive.js.map +1 -0
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts +523 -0
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts +65 -28
- package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.cjs +2 -1
- package/dist/Incentives/Incentive.cjs.map +1 -0
- package/dist/Incentives/Incentive.d.ts +4 -7
- package/dist/Incentives/Incentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.js +17 -278
- package/dist/Incentives/Incentive.js.map +1 -0
- package/dist/Incentives/PointsIncentive.cjs +2 -1
- package/dist/Incentives/PointsIncentive.cjs.map +1 -0
- package/dist/Incentives/PointsIncentive.d.ts +65 -21
- package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
- package/dist/Incentives/PointsIncentive.js +57 -36
- package/dist/Incentives/PointsIncentive.js.map +1 -0
- package/dist/SimpleDenyList-BwfNjRsg.cjs +2 -0
- package/dist/SimpleDenyList-BwfNjRsg.cjs.map +1 -0
- package/dist/SimpleDenyList-Cn5WpNn0.js +132 -0
- package/dist/SimpleDenyList-Cn5WpNn0.js.map +1 -0
- package/dist/Validators/SignerValidator.cjs +2 -1
- package/dist/Validators/SignerValidator.cjs.map +1 -0
- package/dist/Validators/SignerValidator.d.ts +310 -17
- package/dist/Validators/SignerValidator.d.ts.map +1 -1
- package/dist/Validators/SignerValidator.js +165 -36
- package/dist/Validators/SignerValidator.js.map +1 -0
- package/dist/Validators/Validator.cjs +2 -1
- package/dist/Validators/Validator.cjs.map +1 -0
- package/dist/Validators/Validator.d.ts +2 -2
- package/dist/Validators/Validator.d.ts.map +1 -1
- package/dist/Validators/Validator.js +12 -10
- package/dist/Validators/Validator.js.map +1 -0
- 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-D09mhzxO.cjs +2 -0
- package/dist/componentInterfaces-D09mhzxO.cjs.map +1 -0
- package/dist/componentInterfaces-RXBMI5yH.js +14 -0
- package/dist/componentInterfaces-RXBMI5yH.js.map +1 -0
- package/dist/deployments-BM42vImE.js +43 -0
- package/dist/deployments-BM42vImE.js.map +1 -0
- package/dist/deployments-CMdF5uEC.cjs +2 -0
- package/dist/deployments-CMdF5uEC.cjs.map +1 -0
- package/dist/deployments.json +41 -0
- package/dist/errors.cjs +2 -1
- package/dist/errors.cjs.map +1 -0
- package/dist/errors.d.ts +403 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +285 -39
- package/dist/errors.js.map +1 -0
- package/dist/generated-B0tk-c9b.cjs +3 -0
- package/dist/generated-B0tk-c9b.cjs.map +1 -0
- package/dist/{generated-x_abr3Yv.js → generated-B7VaSah4.js} +2058 -2541
- package/dist/generated-B7VaSah4.js.map +1 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +10 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +143 -1353
- package/dist/index.js.map +1 -0
- 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 +2 -1
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.ts +26 -1350
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +38 -636
- package/dist/utils.js.map +1 -0
- package/package.json +37 -11
- package/src/Actions/Action.test.ts +79 -0
- package/src/Actions/Action.ts +61 -0
- package/src/Actions/ContractAction.test.ts +197 -0
- package/src/Actions/ContractAction.ts +300 -0
- package/src/Actions/ERC721MintAction.test.ts +112 -0
- package/src/Actions/ERC721MintAction.ts +291 -0
- package/src/Actions/EventAction.test.ts +787 -0
- package/src/Actions/EventAction.ts +1214 -0
- package/src/AllowLists/AllowList.test.ts +64 -0
- package/src/AllowLists/AllowList.ts +62 -0
- package/src/AllowLists/OpenAllowList.test.ts +40 -0
- package/src/AllowLists/OpenAllowList.ts +45 -0
- package/src/AllowLists/SimpleAllowList.test.ts +52 -0
- package/src/AllowLists/SimpleAllowList.ts +262 -0
- package/src/AllowLists/SimpleDenyList.test.ts +52 -0
- package/src/AllowLists/SimpleDenyList.ts +250 -0
- package/src/Auth/Auth.ts +11 -0
- package/src/Auth/PassthroughAuth.test.ts +12 -0
- package/src/Auth/PassthroughAuth.ts +80 -0
- package/src/Boost.ts +309 -0
- package/src/BoostCore.test.ts +827 -0
- package/src/BoostCore.ts +1447 -0
- package/src/BoostRegistry.ts +543 -0
- package/src/Budgets/Budget.test.ts +27 -0
- package/src/Budgets/Budget.ts +60 -0
- package/src/Budgets/ManagedBudget.test.ts +217 -0
- package/src/Budgets/ManagedBudget.ts +534 -0
- package/src/Budgets/VestingBudget.test.ts +123 -0
- package/src/Budgets/VestingBudget.ts +530 -0
- package/src/Deployable/Contract.ts +228 -0
- package/src/Deployable/Deployable.ts +250 -0
- package/src/Deployable/DeployableTarget.ts +234 -0
- package/src/Deployable/DeployableTargetWithRBAC.ts +323 -0
- package/src/Incentives/AllowListIncentive.test.ts +143 -0
- package/src/Incentives/AllowListIncentive.ts +336 -0
- package/src/Incentives/CGDAIncentive.test.ts +132 -0
- package/src/Incentives/CGDAIncentive.ts +470 -0
- package/src/Incentives/ERC1155Incentive.test.ts +87 -0
- package/src/Incentives/ERC1155Incentive.ts +465 -0
- package/src/Incentives/ERC20Incentive.test.ts +130 -0
- package/src/Incentives/ERC20Incentive.ts +484 -0
- package/src/Incentives/ERC20VariableCriteriaIncentive.test.ts +184 -0
- package/src/Incentives/ERC20VariableCriteriaIncentive.ts +309 -0
- package/src/Incentives/ERC20VariableIncentive.test.ts +136 -0
- package/src/Incentives/ERC20VariableIncentive.ts +422 -0
- package/src/Incentives/Incentive.test.ts +92 -0
- package/src/Incentives/Incentive.ts +86 -0
- package/src/Incentives/PointsIncentive.test.ts +139 -0
- package/src/Incentives/PointsIncentive.ts +367 -0
- package/src/Validators/SignerValidator.test.ts +159 -0
- package/src/Validators/SignerValidator.ts +683 -0
- package/src/Validators/Validator.test.ts +21 -0
- package/src/Validators/Validator.ts +55 -0
- package/src/claiming.ts +56 -0
- package/src/errors.ts +844 -0
- package/src/index.test.ts +122 -0
- package/src/index.ts +58 -0
- package/src/transfers.ts +284 -0
- package/src/utils.test.ts +44 -0
- package/src/utils.ts +247 -0
- package/dist/Budgets/SimpleBudget.d.ts +0 -793
- package/dist/Budgets/SimpleBudget.d.ts.map +0 -1
- package/dist/generated-BaaleHW-.cjs +0 -2
|
@@ -1,9 +1,262 @@
|
|
|
1
1
|
import { eventActionAbi } from '@boostxyz/evm';
|
|
2
|
-
import
|
|
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
|
-
|
|
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>;
|
|
7
260
|
/**
|
|
8
261
|
* A generic event action
|
|
9
262
|
*
|
|
@@ -145,8 +398,8 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
145
398
|
readonly type: "uint8";
|
|
146
399
|
}, {
|
|
147
400
|
readonly name: "signature";
|
|
148
|
-
readonly internalType: "
|
|
149
|
-
readonly type: "
|
|
401
|
+
readonly internalType: "bytes32";
|
|
402
|
+
readonly type: "bytes32";
|
|
150
403
|
}, {
|
|
151
404
|
readonly name: "fieldIndex";
|
|
152
405
|
readonly internalType: "uint8";
|
|
@@ -155,6 +408,10 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
155
408
|
readonly name: "targetContract";
|
|
156
409
|
readonly internalType: "address";
|
|
157
410
|
readonly type: "address";
|
|
411
|
+
}, {
|
|
412
|
+
readonly name: "chainid";
|
|
413
|
+
readonly internalType: "uint256";
|
|
414
|
+
readonly type: "uint256";
|
|
158
415
|
}];
|
|
159
416
|
}];
|
|
160
417
|
readonly stateMutability: "view";
|
|
@@ -172,8 +429,8 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
172
429
|
readonly type: "tuple";
|
|
173
430
|
readonly components: readonly [{
|
|
174
431
|
readonly name: "signature";
|
|
175
|
-
readonly internalType: "
|
|
176
|
-
readonly type: "
|
|
432
|
+
readonly internalType: "bytes32";
|
|
433
|
+
readonly type: "bytes32";
|
|
177
434
|
}, {
|
|
178
435
|
readonly name: "signatureType";
|
|
179
436
|
readonly internalType: "enum AEventAction.SignatureType";
|
|
@@ -186,6 +443,10 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
186
443
|
readonly name: "targetContract";
|
|
187
444
|
readonly internalType: "address";
|
|
188
445
|
readonly type: "address";
|
|
446
|
+
}, {
|
|
447
|
+
readonly name: "chainid";
|
|
448
|
+
readonly internalType: "uint256";
|
|
449
|
+
readonly type: "uint256";
|
|
189
450
|
}, {
|
|
190
451
|
readonly name: "actionParameter";
|
|
191
452
|
readonly internalType: "struct AEventAction.Criteria";
|
|
@@ -220,8 +481,8 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
220
481
|
readonly type: "tuple[]";
|
|
221
482
|
readonly components: readonly [{
|
|
222
483
|
readonly name: "signature";
|
|
223
|
-
readonly internalType: "
|
|
224
|
-
readonly type: "
|
|
484
|
+
readonly internalType: "bytes32";
|
|
485
|
+
readonly type: "bytes32";
|
|
225
486
|
}, {
|
|
226
487
|
readonly name: "signatureType";
|
|
227
488
|
readonly internalType: "enum AEventAction.SignatureType";
|
|
@@ -234,6 +495,10 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
234
495
|
readonly name: "targetContract";
|
|
235
496
|
readonly internalType: "address";
|
|
236
497
|
readonly type: "address";
|
|
498
|
+
}, {
|
|
499
|
+
readonly name: "chainid";
|
|
500
|
+
readonly internalType: "uint256";
|
|
501
|
+
readonly type: "uint256";
|
|
237
502
|
}, {
|
|
238
503
|
readonly name: "actionParameter";
|
|
239
504
|
readonly internalType: "struct AEventAction.Criteria";
|
|
@@ -322,9 +587,9 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
322
587
|
*
|
|
323
588
|
* @public
|
|
324
589
|
* @static
|
|
325
|
-
* @type {Address}
|
|
590
|
+
* @type {Record<number, Address>}
|
|
326
591
|
*/
|
|
327
|
-
static
|
|
592
|
+
static bases: Record<number, Address>;
|
|
328
593
|
/**
|
|
329
594
|
* @inheritdoc
|
|
330
595
|
*
|
|
@@ -339,44 +604,44 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
339
604
|
* @public
|
|
340
605
|
* @async
|
|
341
606
|
* @param {number} index The index of the action event to retrieve
|
|
342
|
-
* @param {?
|
|
607
|
+
* @param {?ReadEventActionParams<'getActionStep'>} [params]
|
|
343
608
|
* @returns {Promise<ActionStep>}
|
|
344
609
|
*/
|
|
345
|
-
getActionStep(index: number, params?:
|
|
610
|
+
getActionStep(index: number, params?: ReadEventActionParams<'getActionStep'>): Promise<ActionStep | undefined>;
|
|
346
611
|
/**
|
|
347
612
|
* Gets all action events
|
|
348
613
|
*
|
|
349
614
|
* @public
|
|
350
615
|
* @async
|
|
351
|
-
* @param {?
|
|
616
|
+
* @param {?ReadEventActionParams<'getActionSteps'>} [params]
|
|
352
617
|
* @returns {Promise<ActionStep[]>}
|
|
353
618
|
*/
|
|
354
|
-
getActionSteps(params?:
|
|
619
|
+
getActionSteps(params?: ReadEventActionParams<'getActionSteps'>): Promise<ActionStep[]>;
|
|
355
620
|
/**
|
|
356
621
|
* Gets the count of action events
|
|
357
622
|
*
|
|
358
623
|
* @public
|
|
359
624
|
* @async
|
|
360
|
-
* @param {?
|
|
625
|
+
* @param {?ReadEventActionParams<'getActionStepsCount'>} [params]
|
|
361
626
|
* @returns {Promise<bigint>}
|
|
362
627
|
*/
|
|
363
|
-
getActionStepsCount(params?:
|
|
628
|
+
getActionStepsCount(params?: ReadEventActionParams<'getActionStepsCount'>): Promise<number>;
|
|
364
629
|
/**
|
|
365
630
|
* Retrieves the payload describing how claimants can be identified from logs or function calls.
|
|
366
631
|
*
|
|
367
632
|
* @public
|
|
368
633
|
* @async
|
|
369
|
-
* @param {?
|
|
634
|
+
* @param {?ReadEventActionParams<'getActionClaimant'>} [params]
|
|
370
635
|
* @returns {Promise<ActionClaimant>}
|
|
371
636
|
*/
|
|
372
|
-
getActionClaimant(params?:
|
|
637
|
+
getActionClaimant(params?: ReadEventActionParams<'getActionClaimant'>): Promise<ActionClaimant>;
|
|
373
638
|
/**
|
|
374
639
|
* Executes a prepared event action
|
|
375
640
|
*
|
|
376
641
|
* @public
|
|
377
642
|
* @async
|
|
378
643
|
* @param {Hex} data
|
|
379
|
-
* @param {?WriteParams
|
|
644
|
+
* @param {?WriteParams} [params]
|
|
380
645
|
* @returns {Promise<readonly [boolean, `0x${string}`]>}
|
|
381
646
|
*/
|
|
382
647
|
execute(data: Hex, params?: WriteParams<typeof eventActionAbi, 'execute'>): Promise<readonly [boolean, `0x${string}`]>;
|
|
@@ -386,40 +651,132 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
386
651
|
* @public
|
|
387
652
|
* @async
|
|
388
653
|
* @param {Hex} data
|
|
389
|
-
* @param {?WriteParams
|
|
390
|
-
* @returns {
|
|
654
|
+
* @param {?WriteParams} [params]
|
|
655
|
+
* @returns {Promise<{ hash: `0x${string}`; result: readonly [boolean, `0x${string}`]; }>}
|
|
391
656
|
*/
|
|
392
657
|
executeRaw(data: Hex, params?: WriteParams<typeof eventActionAbi, 'execute'>): Promise<{
|
|
393
658
|
hash: `0x${string}`;
|
|
394
659
|
result: readonly [boolean, `0x${string}`];
|
|
395
660
|
}>;
|
|
396
|
-
/**
|
|
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;
|
|
702
|
+
/**
|
|
703
|
+
* Retrieves action steps, and uses them to validate against, and optionally fetch logs that match the step's signature.
|
|
704
|
+
* If logs are provided in the optional `params` argument, then those logs will be used instead of fetched with the configured client.
|
|
705
|
+
*
|
|
706
|
+
* @public
|
|
707
|
+
* @async
|
|
708
|
+
* @param ValidateActionStepParams params
|
|
709
|
+
* @returns {Promise<boolean>}
|
|
710
|
+
*/
|
|
711
|
+
validateActionSteps(params: ValidateActionStepParams): Promise<boolean>;
|
|
712
|
+
/**
|
|
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.
|
|
716
|
+
*
|
|
397
717
|
* @public
|
|
398
718
|
* @async
|
|
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.
|
|
399
721
|
* @returns {Promise<boolean>}
|
|
400
|
-
* @param {?ReadParams<typeof eventActionAbi, 'getActionSteps'>} [params]
|
|
401
722
|
*/
|
|
402
|
-
|
|
403
|
-
knownEvents?: Record<Hex, AbiEvent>;
|
|
404
|
-
}): Promise<boolean>;
|
|
723
|
+
isActionStepValid(actionStep: ActionStep, params: ValidateActionStepParams): Promise<boolean>;
|
|
405
724
|
/**
|
|
406
|
-
* Validates a single action event
|
|
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
|
+
*
|
|
407
728
|
* @public
|
|
408
729
|
* @async
|
|
409
|
-
* @param {ActionStep} actionStep
|
|
410
|
-
* @
|
|
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.
|
|
411
747
|
*/
|
|
412
|
-
|
|
413
|
-
knownEvents?: Record<Hex, AbiEvent>;
|
|
414
|
-
}): Promise<boolean>;
|
|
748
|
+
isActionFunctionValid(actionStep: ActionStep, transaction: Transaction, params?: Pick<ValidateActionStepParams, 'abiItem' | 'knownSignatures'>): boolean;
|
|
415
749
|
/**
|
|
416
|
-
* Validates a
|
|
750
|
+
* Validates a field against a given criteria.
|
|
417
751
|
*
|
|
418
752
|
* @param {Criteria} criteria - The criteria to validate against.
|
|
419
|
-
* @param {
|
|
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;
|
|
764
|
+
/**
|
|
765
|
+
* Validates a {@link Log} against a given criteria.
|
|
766
|
+
*
|
|
767
|
+
* @param {Criteria} criteria - The criteria to validate against.
|
|
768
|
+
* @param {Log} log - The Viem event log.
|
|
420
769
|
* @returns {boolean} - Returns true if the log passes the criteria, false otherwise.
|
|
421
770
|
*/
|
|
422
|
-
validateLogAgainstCriteria(criteria: Criteria, log:
|
|
771
|
+
validateLogAgainstCriteria(criteria: Criteria, log: EventLogs[0]): boolean;
|
|
772
|
+
/**
|
|
773
|
+
* Validates a function's decoded arguments against a given criteria.
|
|
774
|
+
*
|
|
775
|
+
* @param {Criteria} criteria - The criteria to validate against.
|
|
776
|
+
* @param {unknown[]} decodedArgs - The decoded arguments of the function call.
|
|
777
|
+
* @returns {Promise<boolean>} - Returns true if the decoded argument passes the criteria, false otherwise.
|
|
778
|
+
*/
|
|
779
|
+
validateFunctionAgainstCriteria(criteria: Criteria, decodedArgs: readonly (string | bigint)[]): boolean;
|
|
423
780
|
/**
|
|
424
781
|
* @inheritdoc
|
|
425
782
|
*
|
|
@@ -429,5 +786,17 @@ export declare class EventAction extends DeployableTarget<EventActionPayload, ty
|
|
|
429
786
|
* @returns {GenericDeployableParams}
|
|
430
787
|
*/
|
|
431
788
|
buildParameters(_payload?: EventActionPayload, _options?: DeployableOptions): GenericDeployableParams;
|
|
789
|
+
isArraylikeIndexed(step: ActionStep, event: AbiEvent): boolean;
|
|
432
790
|
}
|
|
791
|
+
/**
|
|
792
|
+
* Function to properly encode an event action payload.
|
|
793
|
+
*
|
|
794
|
+
* @param {InitPayload} param0
|
|
795
|
+
* @param {ActionStep} param0.actionStepOne - The first action step to initialize.
|
|
796
|
+
* @param {ActionStep} param0.actionStepTwo - The second action step to initialize.
|
|
797
|
+
* @param {ActionStep} param0.actionStepThree - The third action step to initialize.
|
|
798
|
+
* @param {ActionStep} param0.actionStepFour - The fourth action step to initialize.
|
|
799
|
+
* @returns {Hex}
|
|
800
|
+
*/
|
|
801
|
+
export declare function prepareEventActionPayload({ actionClaimant, actionStepOne, actionStepTwo, actionStepThree, actionStepFour, }: EventActionPayloadRaw): `0x${string}`;
|
|
433
802
|
//# 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,
|
|
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,KA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