@boostxyz/sdk 1.1.0-alpha.23 → 1.1.0-alpha.24
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/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +27 -0
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +108 -82
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +121 -120
- package/package.json +3 -3
- package/src/Actions/EventAction.test.ts +381 -122
- package/src/Actions/EventAction.ts +60 -0
package/dist/index.js
CHANGED
|
@@ -1,147 +1,148 @@
|
|
|
1
1
|
import { BOOST_REGISTRY_ADDRESS as o, BOOST_REGISTRY_ADDRESSES as a, BoostRegistry as t } from "./BoostRegistry.js";
|
|
2
2
|
import { b as n, a as p, B as s, c as l, E as d, p as E } from "./BoostCore-CD56zbYX.js";
|
|
3
|
-
import { Boost as
|
|
3
|
+
import { Boost as c, prepareBoostPayload as y } from "./Boost.js";
|
|
4
4
|
import { ActionByComponentInterface as f, actionFromAddress as C } from "./Actions/Action.js";
|
|
5
|
-
import { EventAction as g, FilterType as I, PrimitiveType as v, SignatureType as
|
|
6
|
-
import { AllowListByComponentInterface as
|
|
7
|
-
import { LIST_MANAGER_ROLE as
|
|
8
|
-
import { S as
|
|
9
|
-
import { BudgetByComponentInterface as
|
|
10
|
-
import { ManagedBudget as
|
|
11
|
-
import { Deployable as
|
|
12
|
-
import { Contract as
|
|
13
|
-
import { DeployableTarget as
|
|
14
|
-
import { DeployableTargetWithRBAC as
|
|
15
|
-
import { AllowListIncentive as
|
|
16
|
-
import { CGDAIncentive as
|
|
17
|
-
import { ERC20Incentive as
|
|
18
|
-
import { E as
|
|
19
|
-
import { PointsIncentive as
|
|
20
|
-
import { SignerValidator as
|
|
21
|
-
import { ValidatorByComponentInterface as
|
|
22
|
-
import { BoostCoreNoIdentifierEmitted as
|
|
23
|
-
import { RegistryType as
|
|
24
|
-
import { StrategyType as
|
|
25
|
-
import { AssetType as
|
|
5
|
+
import { EventAction as g, FilterType as I, PrimitiveType as v, SignatureType as S, anyActionParameter as P, isEventActionPayloadSimple as R, prepareEventActionPayload as u, transactionSenderClaimant as B } from "./Actions/EventAction.js";
|
|
6
|
+
import { AllowListByComponentInterface as x, OpenAllowList as T, allowListFromAddress as F } from "./AllowLists/AllowList.js";
|
|
7
|
+
import { LIST_MANAGER_ROLE as L, SimpleAllowList as V, prepareSimpleAllowListPayload as w } from "./AllowLists/SimpleAllowList.js";
|
|
8
|
+
import { S as _, p as M } from "./SimpleDenyList-BDXpY74P.js";
|
|
9
|
+
import { BudgetByComponentInterface as U, budgetFromAddress as G } from "./Budgets/Budget.js";
|
|
10
|
+
import { ManagedBudget as k, ManagedBudgetRoles as q, isERC1155TransferPayload as W, isFungibleTransfer as Y, prepareManagedBudgetPayload as j, prepareTransfer as H } from "./Budgets/ManagedBudget.js";
|
|
11
|
+
import { Deployable as K } from "./Deployable/Deployable.js";
|
|
12
|
+
import { Contract as X } from "./Deployable/Contract.js";
|
|
13
|
+
import { DeployableTarget as $ } from "./Deployable/DeployableTarget.js";
|
|
14
|
+
import { DeployableTargetWithRBAC as re, Roles as oe } from "./Deployable/DeployableTargetWithRBAC.js";
|
|
15
|
+
import { AllowListIncentive as te, prepareAllowListIncentivePayload as ie } from "./Incentives/AllowListIncentive.js";
|
|
16
|
+
import { CGDAIncentive as pe, prepareCGDAIncentivePayload as se } from "./Incentives/CGDAIncentive.js";
|
|
17
|
+
import { ERC20Incentive as de, prepareERC20IncentivePayload as Ee } from "./Incentives/ERC20Incentive.js";
|
|
18
|
+
import { E as ce, I as ye, i as Ae, p as fe } from "./Incentive-rM5nKznp.js";
|
|
19
|
+
import { PointsIncentive as be, preparePointsIncentivePayload as ge } from "./Incentives/PointsIncentive.js";
|
|
20
|
+
import { SignerValidator as ve, prepareSignerValidatorClaimDataPayload as Se, prepareSignerValidatorInputParams as Pe, prepareSignerValidatorPayload as Re } from "./Validators/SignerValidator.js";
|
|
21
|
+
import { ValidatorByComponentInterface as Be, validatorFromAddress as De } from "./Validators/Validator.js";
|
|
22
|
+
import { BoostCoreNoIdentifierEmitted as Te, BoostNotFoundError as Fe, BudgetMustAuthorizeBoostCore as Oe, ContractAddressRequiredError as Le, DecodedArgsError as Ve, DecodedArgsMalformedError as we, DeployableAlreadyDeployedError as he, DeployableBuildParametersUnspecifiedError as _e, DeployableMissingPayloadError as Me, DeployableUnknownOwnerProvidedError as Ne, DeployableWagmiConfigurationRequiredError as Ue, FieldActionValidationError as Ge, FieldValueNotComparableError as ze, FieldValueUndefinedError as ke, FunctionDataDecodeError as qe, IncentiveCriteriaNotFoundError as We, IncentiveNotCloneableError as Ye, InvalidComponentInterfaceError as je, InvalidCriteriaTypeError as He, InvalidNumericalCriteriaError as Je, InvalidProtocolChainIdError as Ke, MustInitializeBudgetError as Qe, NoConnectedChainIdError as Xe, NoContractAddressUponReceiptError as Ze, NoEventActionStepsProvidedError as $e, NoMatchingLogsError as er, TooManyEventActionStepsProvidedError as rr, UnknownTransferPayloadSupplied as or, UnparseableAbiParamError as ar, UnrecognizedFilterTypeError as tr, ValidationAbiMissingError as ir } from "./errors.js";
|
|
23
|
+
import { RegistryType as pr, assertValidAddressByChainId as sr, awaitResult as lr, bytes4 as dr, getDeployedContractAddress as Er } from "./utils.js";
|
|
24
|
+
import { StrategyType as cr, prepareClaimPayload as yr } from "./claiming.js";
|
|
25
|
+
import { AssetType as fr, prepareERC1155Payload as Cr, prepareERC1155Transfer as br, prepareFungiblePayload as gr, prepareFungibleTransfer as Ir, prepareTransferPayload as vr } from "./transfers.js";
|
|
26
26
|
import { PassthroughAuth as Pr } from "./Auth/PassthroughAuth.js";
|
|
27
|
-
import { O as
|
|
27
|
+
import { O as ur, T as Br, i as Dr, b as xr, y as Tr, f as Fr, d as Or, a as Lr, w as Vr, R as wr, B as hr, h as _r, g as Mr } from "./generated-CsNyWPKA.js";
|
|
28
28
|
export {
|
|
29
29
|
f as ActionByComponentInterface,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
x as AllowListByComponentInterface,
|
|
31
|
+
te as AllowListIncentive,
|
|
32
|
+
fr as AssetType,
|
|
33
33
|
n as BOOST_CORE_ADDRESS,
|
|
34
34
|
p as BOOST_CORE_ADDRESSES,
|
|
35
35
|
s as BOOST_CORE_CLAIM_FEE,
|
|
36
36
|
o as BOOST_REGISTRY_ADDRESS,
|
|
37
37
|
a as BOOST_REGISTRY_ADDRESSES,
|
|
38
|
-
|
|
38
|
+
c as Boost,
|
|
39
39
|
l as BoostCore,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
Te as BoostCoreNoIdentifierEmitted,
|
|
41
|
+
Fe as BoostNotFoundError,
|
|
42
42
|
t as BoostRegistry,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
43
|
+
U as BudgetByComponentInterface,
|
|
44
|
+
Oe as BudgetMustAuthorizeBoostCore,
|
|
45
|
+
pe as CGDAIncentive,
|
|
46
|
+
X as Contract,
|
|
47
|
+
Le as ContractAddressRequiredError,
|
|
48
|
+
Ve as DecodedArgsError,
|
|
49
|
+
we as DecodedArgsMalformedError,
|
|
50
|
+
K as Deployable,
|
|
51
|
+
he as DeployableAlreadyDeployedError,
|
|
52
|
+
_e as DeployableBuildParametersUnspecifiedError,
|
|
53
|
+
Me as DeployableMissingPayloadError,
|
|
54
|
+
$ as DeployableTarget,
|
|
55
|
+
re as DeployableTargetWithRBAC,
|
|
56
|
+
Ne as DeployableUnknownOwnerProvidedError,
|
|
57
|
+
Ue as DeployableWagmiConfigurationRequiredError,
|
|
58
|
+
de as ERC20Incentive,
|
|
59
59
|
d as ERC20VariableCriteriaIncentive,
|
|
60
|
-
|
|
60
|
+
ce as ERC20VariableIncentive,
|
|
61
61
|
g as EventAction,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
Ge as FieldActionValidationError,
|
|
63
|
+
ze as FieldValueNotComparableError,
|
|
64
|
+
ke as FieldValueUndefinedError,
|
|
65
65
|
I as FilterType,
|
|
66
|
-
|
|
66
|
+
qe as FunctionDataDecodeError,
|
|
67
67
|
ye as IncentiveByComponentInterface,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
68
|
+
We as IncentiveCriteriaNotFoundError,
|
|
69
|
+
Ye as IncentiveNotCloneableError,
|
|
70
|
+
je as InvalidComponentInterfaceError,
|
|
71
|
+
He as InvalidCriteriaTypeError,
|
|
72
|
+
Je as InvalidNumericalCriteriaError,
|
|
73
|
+
Ke as InvalidProtocolChainIdError,
|
|
74
|
+
L as LIST_MANAGER_ROLE,
|
|
75
|
+
k as ManagedBudget,
|
|
76
|
+
q as ManagedBudgetRoles,
|
|
77
|
+
Qe as MustInitializeBudgetError,
|
|
78
|
+
Xe as NoConnectedChainIdError,
|
|
79
|
+
Ze as NoContractAddressUponReceiptError,
|
|
80
|
+
$e as NoEventActionStepsProvidedError,
|
|
81
|
+
er as NoMatchingLogsError,
|
|
82
|
+
T as OpenAllowList,
|
|
83
83
|
Pr as PassthroughAuth,
|
|
84
|
-
|
|
84
|
+
be as PointsIncentive,
|
|
85
85
|
v as PrimitiveType,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
86
|
+
pr as RegistryType,
|
|
87
|
+
oe as Roles,
|
|
88
|
+
S as SignatureType,
|
|
89
|
+
ve as SignerValidator,
|
|
90
|
+
V as SimpleAllowList,
|
|
91
|
+
_ as SimpleDenyList,
|
|
92
|
+
cr as StrategyType,
|
|
93
|
+
rr as TooManyEventActionStepsProvidedError,
|
|
94
|
+
or as UnknownTransferPayloadSupplied,
|
|
95
|
+
ar as UnparseableAbiParamError,
|
|
96
|
+
tr as UnrecognizedFilterTypeError,
|
|
97
|
+
ir as ValidationAbiMissingError,
|
|
98
|
+
Be as ValidatorByComponentInterface,
|
|
99
99
|
C as actionFromAddress,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
100
|
+
F as allowListFromAddress,
|
|
101
|
+
ur as allowListIncentiveAbi,
|
|
102
|
+
P as anyActionParameter,
|
|
103
|
+
sr as assertValidAddressByChainId,
|
|
104
|
+
lr as awaitResult,
|
|
105
|
+
Br as boostCoreAbi,
|
|
106
|
+
Dr as boostRegistryAbi,
|
|
107
|
+
G as budgetFromAddress,
|
|
108
|
+
dr as bytes4,
|
|
109
|
+
xr as cgdaIncentiveAbi,
|
|
110
|
+
Tr as erc20IncentiveAbi,
|
|
111
|
+
Fr as erc20VariableIncentiveAbi,
|
|
112
|
+
Er as getDeployedContractAddress,
|
|
113
|
+
Ae as incentiveFromAddress,
|
|
114
|
+
W as isERC1155TransferPayload,
|
|
115
|
+
R as isEventActionPayloadSimple,
|
|
116
|
+
Y as isFungibleTransfer,
|
|
117
|
+
Or as managedBudgetAbi,
|
|
118
|
+
Lr as passthroughAuthAbi,
|
|
119
|
+
Vr as pointsIncentiveAbi,
|
|
120
|
+
ie as prepareAllowListIncentivePayload,
|
|
121
|
+
y as prepareBoostPayload,
|
|
122
|
+
se as prepareCGDAIncentivePayload,
|
|
123
123
|
yr as prepareClaimPayload,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
124
|
+
Cr as prepareERC1155Payload,
|
|
125
|
+
br as prepareERC1155Transfer,
|
|
126
|
+
Ee as prepareERC20IncentivePayload,
|
|
127
127
|
E as prepareERC20VariableCriteriaIncentivePayload,
|
|
128
|
-
|
|
128
|
+
fe as prepareERC20VariableIncentivePayload,
|
|
129
129
|
u as prepareEventActionPayload,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
gr as prepareFungiblePayload,
|
|
131
|
+
Ir as prepareFungibleTransfer,
|
|
132
|
+
j as prepareManagedBudgetPayload,
|
|
133
|
+
ge as preparePointsIncentivePayload,
|
|
134
|
+
Se as prepareSignerValidatorClaimDataPayload,
|
|
135
135
|
Pe as prepareSignerValidatorInputParams,
|
|
136
136
|
Re as prepareSignerValidatorPayload,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
137
|
+
w as prepareSimpleAllowListPayload,
|
|
138
|
+
M as prepareSimpleDenyListPayload,
|
|
139
|
+
H as prepareTransfer,
|
|
140
|
+
vr as prepareTransferPayload,
|
|
141
|
+
wr as rbacAbi,
|
|
142
|
+
hr as signerValidatorAbi,
|
|
143
|
+
_r as simpleAllowListAbi,
|
|
144
|
+
Mr as simpleDenyListAbi,
|
|
145
|
+
B as transactionSenderClaimant,
|
|
146
|
+
De as validatorFromAddress
|
|
146
147
|
};
|
|
147
148
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boostxyz/sdk",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.24",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -199,8 +199,8 @@
|
|
|
199
199
|
"@boostxyz/signatures": "1.1.0-alpha.23"
|
|
200
200
|
},
|
|
201
201
|
"optionalDependencies": {
|
|
202
|
-
"@boostxyz/
|
|
203
|
-
"@boostxyz/
|
|
202
|
+
"@boostxyz/evm": "1.1.0-alpha.23",
|
|
203
|
+
"@boostxyz/signatures": "1.1.0-alpha.23"
|
|
204
204
|
},
|
|
205
205
|
"peerDependencies": {
|
|
206
206
|
"@wagmi/core": "2.x",
|