@boostxyz/sdk 0.0.0-alpha.9 → 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 +11 -11
- package/dist/Actions/ContractAction.d.ts.map +1 -1
- package/dist/Actions/ERC721MintAction.d.ts +14 -14
- 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 +171 -41
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +15 -392
- 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 +92 -37
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleAllowList.js +55 -71
- 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 +203 -11
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleDenyList.js +11 -112
- package/dist/AllowLists/SimpleDenyList.js.map +1 -1
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +1 -1
- package/dist/Boost.cjs +1 -1
- package/dist/Boost.cjs.map +1 -1
- package/dist/Boost.d.ts +20 -21
- package/dist/Boost.d.ts.map +1 -1
- package/dist/Boost.js +43 -57
- 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 +748 -77
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +29 -1150
- 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 +80 -25
- package/dist/BoostRegistry.d.ts.map +1 -1
- package/dist/BoostRegistry.js +165 -83
- 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 +75 -193
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudget.js +80 -298
- package/dist/Budgets/ManagedBudget.js.map +1 -1
- package/dist/Budgets/VestingBudget.d.ts +223 -89
- 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 +5 -7
- 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 +28 -25
- 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 +38 -16
- package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
- package/dist/Incentives/AllowListIncentive.js +42 -29
- 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 +234 -21
- package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
- package/dist/Incentives/CGDAIncentive.js +45 -32
- package/dist/Incentives/CGDAIncentive.js.map +1 -1
- package/dist/Incentives/ERC1155Incentive.d.ts +224 -37
- 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 +230 -29
- package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.js +56 -43
- package/dist/Incentives/ERC20Incentive.js.map +1 -1
- package/dist/{Budgets/SimpleBudget.d.ts → Incentives/ERC20VariableCriteriaIncentive.d.ts} +335 -440
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts +231 -29
- 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 -296
- 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 +40 -18
- package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
- package/dist/Incentives/PointsIncentive.js +37 -24
- 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 +16 -16
- package/dist/Validators/SignerValidator.d.ts.map +1 -1
- package/dist/Validators/SignerValidator.js +30 -27
- 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.map +1 -1
- package/dist/claiming.d.ts +1 -1
- package/dist/claiming.js.map +1 -1
- 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 +256 -20
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +183 -26
- package/dist/errors.js.map +1 -1
- package/dist/{generated-57_Kffpz.js → generated-CKt2yCQd.js} +3613 -1869
- 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 +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +142 -108
- package/dist/index.js.map +1 -1
- package/dist/transfers.cjs.map +1 -1
- package/dist/transfers.d.ts +1 -1
- package/dist/transfers.js.map +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.ts +26 -12
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +38 -23
- package/dist/utils.js.map +1 -1
- package/package.json +20 -10
- package/src/Actions/Action.test.ts +14 -13
- package/src/Actions/ContractAction.test.ts +10 -10
- package/src/Actions/ContractAction.ts +11 -12
- package/src/Actions/ERC721MintAction.test.ts +6 -6
- package/src/Actions/ERC721MintAction.ts +14 -15
- package/src/Actions/EventAction.test.ts +729 -109
- package/src/Actions/EventAction.ts +542 -84
- 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 +39 -61
- package/src/AllowLists/SimpleDenyList.test.ts +4 -4
- package/src/AllowLists/SimpleDenyList.ts +40 -17
- package/src/Auth/PassthroughAuth.test.ts +1 -1
- package/src/Boost.ts +21 -24
- package/src/BoostCore.test.ts +323 -268
- package/src/BoostCore.ts +396 -219
- package/src/BoostRegistry.test.ts +53 -0
- package/src/BoostRegistry.ts +161 -40
- 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 +48 -310
- package/src/Budgets/VestingBudget.test.ts +7 -7
- package/src/Budgets/VestingBudget.ts +34 -106
- package/src/Deployable/Contract.ts +4 -5
- package/src/Deployable/Deployable.ts +1 -1
- package/src/Deployable/DeployableTarget.ts +30 -19
- package/src/Deployable/DeployableTargetWithRBAC.ts +323 -0
- package/src/Incentives/AllowListIncentive.test.ts +5 -5
- package/src/Incentives/AllowListIncentive.ts +29 -15
- package/src/Incentives/CGDAIncentive.test.ts +9 -6
- package/src/Incentives/CGDAIncentive.ts +38 -18
- package/src/Incentives/ERC1155Incentive.test.ts +3 -3
- package/src/Incentives/ERC1155Incentive.ts +28 -29
- package/src/Incentives/ERC20Incentive.test.ts +9 -6
- package/src/Incentives/ERC20Incentive.ts +46 -26
- package/src/Incentives/ERC20VariableCriteriaIncentive.test.ts +184 -0
- package/src/Incentives/ERC20VariableCriteriaIncentive.ts +324 -0
- package/src/Incentives/ERC20VariableIncentive.test.ts +8 -11
- package/src/Incentives/ERC20VariableIncentive.ts +49 -26
- package/src/Incentives/Incentive.test.ts +4 -1
- package/src/Incentives/Incentive.ts +7 -6
- package/src/Incentives/PointsIncentive.test.ts +24 -25
- package/src/Incentives/PointsIncentive.ts +31 -17
- package/src/Validators/SignerValidator.test.ts +6 -6
- package/src/Validators/SignerValidator.ts +19 -17
- package/src/Validators/Validator.test.ts +2 -2
- package/src/Validators/Validator.ts +1 -1
- package/src/claiming.ts +1 -1
- package/src/errors.ts +345 -21
- package/src/index.test.ts +118 -36
- package/src/index.ts +5 -0
- package/src/transfers.ts +1 -1
- package/src/utils.test.ts +2 -2
- package/src/utils.ts +61 -12
- 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-57_Kffpz.js.map +0 -1
- package/dist/generated-wKBNvm48.cjs +0 -3
- package/dist/generated-wKBNvm48.cjs.map +0 -1
- package/src/Budgets/SimpleBudget.test.ts +0 -152
- package/src/Budgets/SimpleBudget.ts +0 -564
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { simpleDenyListAbi } from '@boostxyz/evm';
|
|
2
2
|
import { type Address, type ContractEventName } from 'viem';
|
|
3
3
|
import type { DeployableOptions, GenericDeployableParams } from '../Deployable/Deployable';
|
|
4
|
-
import {
|
|
4
|
+
import { DeployableTargetWithRBAC } from '../Deployable/DeployableTargetWithRBAC';
|
|
5
5
|
import { type GenericLog, type ReadParams, RegistryType, type WriteParams } from '../utils';
|
|
6
6
|
export { simpleDenyListAbi };
|
|
7
7
|
/**
|
|
@@ -41,9 +41,9 @@ export type SimpleDenyListLog<event extends ContractEventName<typeof simpleDenyL
|
|
|
41
41
|
* @export
|
|
42
42
|
* @class SimpleDenyList
|
|
43
43
|
* @typedef {SimpleDenyList}
|
|
44
|
-
* @extends {
|
|
44
|
+
* @extends {DeployableTargetWithRBAC<SimpleDenyListPayload>}
|
|
45
45
|
*/
|
|
46
|
-
export declare class SimpleDenyList extends
|
|
46
|
+
export declare class SimpleDenyList<Payload = SimpleDenyListPayload> extends DeployableTargetWithRBAC<Payload | undefined, typeof simpleDenyListAbi> {
|
|
47
47
|
readonly abi: readonly [{
|
|
48
48
|
readonly type: "constructor";
|
|
49
49
|
readonly inputs: readonly [];
|
|
@@ -88,6 +88,10 @@ export declare class SimpleDenyList extends DeployableTarget<SimpleDenyListPaylo
|
|
|
88
88
|
readonly type: "error";
|
|
89
89
|
readonly inputs: readonly [];
|
|
90
90
|
readonly name: "Unauthorized";
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "error";
|
|
93
|
+
readonly inputs: readonly [];
|
|
94
|
+
readonly name: "Unauthorized";
|
|
91
95
|
}, {
|
|
92
96
|
readonly type: "event";
|
|
93
97
|
readonly anonymous: false;
|
|
@@ -133,6 +137,41 @@ export declare class SimpleDenyList extends DeployableTarget<SimpleDenyListPaylo
|
|
|
133
137
|
readonly indexed: true;
|
|
134
138
|
}];
|
|
135
139
|
readonly name: "OwnershipTransferred";
|
|
140
|
+
}, {
|
|
141
|
+
readonly type: "event";
|
|
142
|
+
readonly anonymous: false;
|
|
143
|
+
readonly inputs: readonly [{
|
|
144
|
+
readonly name: "user";
|
|
145
|
+
readonly internalType: "address";
|
|
146
|
+
readonly type: "address";
|
|
147
|
+
readonly indexed: true;
|
|
148
|
+
}, {
|
|
149
|
+
readonly name: "roles";
|
|
150
|
+
readonly internalType: "uint256";
|
|
151
|
+
readonly type: "uint256";
|
|
152
|
+
readonly indexed: true;
|
|
153
|
+
}];
|
|
154
|
+
readonly name: "RolesUpdated";
|
|
155
|
+
}, {
|
|
156
|
+
readonly type: "function";
|
|
157
|
+
readonly inputs: readonly [];
|
|
158
|
+
readonly name: "ADMIN_ROLE";
|
|
159
|
+
readonly outputs: readonly [{
|
|
160
|
+
readonly name: "";
|
|
161
|
+
readonly internalType: "uint256";
|
|
162
|
+
readonly type: "uint256";
|
|
163
|
+
}];
|
|
164
|
+
readonly stateMutability: "view";
|
|
165
|
+
}, {
|
|
166
|
+
readonly type: "function";
|
|
167
|
+
readonly inputs: readonly [];
|
|
168
|
+
readonly name: "MANAGER_ROLE";
|
|
169
|
+
readonly outputs: readonly [{
|
|
170
|
+
readonly name: "";
|
|
171
|
+
readonly internalType: "uint256";
|
|
172
|
+
readonly type: "uint256";
|
|
173
|
+
}];
|
|
174
|
+
readonly stateMutability: "view";
|
|
136
175
|
}, {
|
|
137
176
|
readonly type: "function";
|
|
138
177
|
readonly inputs: readonly [];
|
|
@@ -159,6 +198,70 @@ export declare class SimpleDenyList extends DeployableTarget<SimpleDenyListPaylo
|
|
|
159
198
|
readonly type: "bytes4";
|
|
160
199
|
}];
|
|
161
200
|
readonly stateMutability: "pure";
|
|
201
|
+
}, {
|
|
202
|
+
readonly type: "function";
|
|
203
|
+
readonly inputs: readonly [{
|
|
204
|
+
readonly name: "user";
|
|
205
|
+
readonly internalType: "address";
|
|
206
|
+
readonly type: "address";
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "roles";
|
|
209
|
+
readonly internalType: "uint256";
|
|
210
|
+
readonly type: "uint256";
|
|
211
|
+
}];
|
|
212
|
+
readonly name: "grantRoles";
|
|
213
|
+
readonly outputs: readonly [];
|
|
214
|
+
readonly stateMutability: "payable";
|
|
215
|
+
}, {
|
|
216
|
+
readonly type: "function";
|
|
217
|
+
readonly inputs: readonly [{
|
|
218
|
+
readonly name: "accounts_";
|
|
219
|
+
readonly internalType: "address[]";
|
|
220
|
+
readonly type: "address[]";
|
|
221
|
+
}, {
|
|
222
|
+
readonly name: "roles_";
|
|
223
|
+
readonly internalType: "uint256[]";
|
|
224
|
+
readonly type: "uint256[]";
|
|
225
|
+
}];
|
|
226
|
+
readonly name: "grantRoles";
|
|
227
|
+
readonly outputs: readonly [];
|
|
228
|
+
readonly stateMutability: "nonpayable";
|
|
229
|
+
}, {
|
|
230
|
+
readonly type: "function";
|
|
231
|
+
readonly inputs: readonly [{
|
|
232
|
+
readonly name: "user";
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
readonly type: "address";
|
|
235
|
+
}, {
|
|
236
|
+
readonly name: "roles";
|
|
237
|
+
readonly internalType: "uint256";
|
|
238
|
+
readonly type: "uint256";
|
|
239
|
+
}];
|
|
240
|
+
readonly name: "hasAllRoles";
|
|
241
|
+
readonly outputs: readonly [{
|
|
242
|
+
readonly name: "";
|
|
243
|
+
readonly internalType: "bool";
|
|
244
|
+
readonly type: "bool";
|
|
245
|
+
}];
|
|
246
|
+
readonly stateMutability: "view";
|
|
247
|
+
}, {
|
|
248
|
+
readonly type: "function";
|
|
249
|
+
readonly inputs: readonly [{
|
|
250
|
+
readonly name: "user";
|
|
251
|
+
readonly internalType: "address";
|
|
252
|
+
readonly type: "address";
|
|
253
|
+
}, {
|
|
254
|
+
readonly name: "roles";
|
|
255
|
+
readonly internalType: "uint256";
|
|
256
|
+
readonly type: "uint256";
|
|
257
|
+
}];
|
|
258
|
+
readonly name: "hasAnyRole";
|
|
259
|
+
readonly outputs: readonly [{
|
|
260
|
+
readonly name: "";
|
|
261
|
+
readonly internalType: "bool";
|
|
262
|
+
readonly type: "bool";
|
|
263
|
+
}];
|
|
264
|
+
readonly stateMutability: "view";
|
|
162
265
|
}, {
|
|
163
266
|
readonly type: "function";
|
|
164
267
|
readonly inputs: readonly [{
|
|
@@ -187,6 +290,20 @@ export declare class SimpleDenyList extends DeployableTarget<SimpleDenyListPaylo
|
|
|
187
290
|
readonly type: "bool";
|
|
188
291
|
}];
|
|
189
292
|
readonly stateMutability: "view";
|
|
293
|
+
}, {
|
|
294
|
+
readonly type: "function";
|
|
295
|
+
readonly inputs: readonly [{
|
|
296
|
+
readonly name: "account_";
|
|
297
|
+
readonly internalType: "address";
|
|
298
|
+
readonly type: "address";
|
|
299
|
+
}];
|
|
300
|
+
readonly name: "isAuthorized";
|
|
301
|
+
readonly outputs: readonly [{
|
|
302
|
+
readonly name: "";
|
|
303
|
+
readonly internalType: "bool";
|
|
304
|
+
readonly type: "bool";
|
|
305
|
+
}];
|
|
306
|
+
readonly stateMutability: "view";
|
|
190
307
|
}, {
|
|
191
308
|
readonly type: "function";
|
|
192
309
|
readonly inputs: readonly [];
|
|
@@ -217,12 +334,78 @@ export declare class SimpleDenyList extends DeployableTarget<SimpleDenyListPaylo
|
|
|
217
334
|
readonly name: "renounceOwnership";
|
|
218
335
|
readonly outputs: readonly [];
|
|
219
336
|
readonly stateMutability: "payable";
|
|
337
|
+
}, {
|
|
338
|
+
readonly type: "function";
|
|
339
|
+
readonly inputs: readonly [{
|
|
340
|
+
readonly name: "roles";
|
|
341
|
+
readonly internalType: "uint256";
|
|
342
|
+
readonly type: "uint256";
|
|
343
|
+
}];
|
|
344
|
+
readonly name: "renounceRoles";
|
|
345
|
+
readonly outputs: readonly [];
|
|
346
|
+
readonly stateMutability: "payable";
|
|
220
347
|
}, {
|
|
221
348
|
readonly type: "function";
|
|
222
349
|
readonly inputs: readonly [];
|
|
223
350
|
readonly name: "requestOwnershipHandover";
|
|
224
351
|
readonly outputs: readonly [];
|
|
225
352
|
readonly stateMutability: "payable";
|
|
353
|
+
}, {
|
|
354
|
+
readonly type: "function";
|
|
355
|
+
readonly inputs: readonly [{
|
|
356
|
+
readonly name: "user";
|
|
357
|
+
readonly internalType: "address";
|
|
358
|
+
readonly type: "address";
|
|
359
|
+
}, {
|
|
360
|
+
readonly name: "roles";
|
|
361
|
+
readonly internalType: "uint256";
|
|
362
|
+
readonly type: "uint256";
|
|
363
|
+
}];
|
|
364
|
+
readonly name: "revokeRoles";
|
|
365
|
+
readonly outputs: readonly [];
|
|
366
|
+
readonly stateMutability: "payable";
|
|
367
|
+
}, {
|
|
368
|
+
readonly type: "function";
|
|
369
|
+
readonly inputs: readonly [{
|
|
370
|
+
readonly name: "accounts_";
|
|
371
|
+
readonly internalType: "address[]";
|
|
372
|
+
readonly type: "address[]";
|
|
373
|
+
}, {
|
|
374
|
+
readonly name: "roles_";
|
|
375
|
+
readonly internalType: "uint256[]";
|
|
376
|
+
readonly type: "uint256[]";
|
|
377
|
+
}];
|
|
378
|
+
readonly name: "revokeRoles";
|
|
379
|
+
readonly outputs: readonly [];
|
|
380
|
+
readonly stateMutability: "nonpayable";
|
|
381
|
+
}, {
|
|
382
|
+
readonly type: "function";
|
|
383
|
+
readonly inputs: readonly [{
|
|
384
|
+
readonly name: "user";
|
|
385
|
+
readonly internalType: "address";
|
|
386
|
+
readonly type: "address";
|
|
387
|
+
}];
|
|
388
|
+
readonly name: "rolesOf";
|
|
389
|
+
readonly outputs: readonly [{
|
|
390
|
+
readonly name: "roles";
|
|
391
|
+
readonly internalType: "uint256";
|
|
392
|
+
readonly type: "uint256";
|
|
393
|
+
}];
|
|
394
|
+
readonly stateMutability: "view";
|
|
395
|
+
}, {
|
|
396
|
+
readonly type: "function";
|
|
397
|
+
readonly inputs: readonly [{
|
|
398
|
+
readonly name: "accounts_";
|
|
399
|
+
readonly internalType: "address[]";
|
|
400
|
+
readonly type: "address[]";
|
|
401
|
+
}, {
|
|
402
|
+
readonly name: "authorized_";
|
|
403
|
+
readonly internalType: "bool[]";
|
|
404
|
+
readonly type: "bool[]";
|
|
405
|
+
}];
|
|
406
|
+
readonly name: "setAuthorized";
|
|
407
|
+
readonly outputs: readonly [];
|
|
408
|
+
readonly stateMutability: "nonpayable";
|
|
226
409
|
}, {
|
|
227
410
|
readonly type: "function";
|
|
228
411
|
readonly inputs: readonly [{
|
|
@@ -267,9 +450,9 @@ export declare class SimpleDenyList extends DeployableTarget<SimpleDenyListPaylo
|
|
|
267
450
|
*
|
|
268
451
|
* @public
|
|
269
452
|
* @static
|
|
270
|
-
* @type {Address}
|
|
453
|
+
* @type {Record<number, Address>}
|
|
271
454
|
*/
|
|
272
|
-
static
|
|
455
|
+
static bases: Record<number, Address>;
|
|
273
456
|
/**
|
|
274
457
|
* @inheritdoc
|
|
275
458
|
*
|
|
@@ -278,13 +461,22 @@ export declare class SimpleDenyList extends DeployableTarget<SimpleDenyListPaylo
|
|
|
278
461
|
* @type {RegistryType}
|
|
279
462
|
*/
|
|
280
463
|
static registryType: RegistryType;
|
|
464
|
+
/**
|
|
465
|
+
* Retrieves the owner
|
|
466
|
+
*
|
|
467
|
+
* @public
|
|
468
|
+
* @async
|
|
469
|
+
* @param {?ReadParams} [params]
|
|
470
|
+
* @returns {Promise<Address>} - The address of the owner
|
|
471
|
+
*/
|
|
472
|
+
owner(params?: ReadParams<typeof simpleDenyListAbi, 'owner'>): Promise<Address>;
|
|
281
473
|
/**
|
|
282
474
|
* Check if a user is authorized (i.e. not denied)
|
|
283
475
|
*
|
|
284
476
|
* @public
|
|
285
477
|
* @async
|
|
286
478
|
* @param {Address} address - The address of the user
|
|
287
|
-
* @param {?ReadParams
|
|
479
|
+
* @param {?ReadParams} [params]
|
|
288
480
|
* @returns {Promise<boolean>} - True if the user is authorized
|
|
289
481
|
*/
|
|
290
482
|
isAllowed(address: Address, params?: ReadParams<typeof simpleDenyListAbi, 'isAllowed'>): Promise<boolean>;
|
|
@@ -295,8 +487,8 @@ export declare class SimpleDenyList extends DeployableTarget<SimpleDenyListPaylo
|
|
|
295
487
|
* @async
|
|
296
488
|
* @param {Address[]} addresses - The list of users to update
|
|
297
489
|
* @param {boolean[]} allowed - The denied status of each user
|
|
298
|
-
* @param {?WriteParams
|
|
299
|
-
* @returns {
|
|
490
|
+
* @param {?WriteParams} [params]
|
|
491
|
+
* @returns {Promise<void>}
|
|
300
492
|
*/
|
|
301
493
|
setDenied(addresses: Address[], allowed: boolean[], params?: WriteParams<typeof simpleDenyListAbi, 'setDenied'>): Promise<void>;
|
|
302
494
|
/**
|
|
@@ -306,8 +498,8 @@ export declare class SimpleDenyList extends DeployableTarget<SimpleDenyListPaylo
|
|
|
306
498
|
* @async
|
|
307
499
|
* @param {Address[]} addresses - The list of users to update
|
|
308
500
|
* @param {boolean[]} allowed - The denied status of each user
|
|
309
|
-
* @param {?WriteParams
|
|
310
|
-
* @returns {
|
|
501
|
+
* @param {?WriteParams} [params]
|
|
502
|
+
* @returns {Promise<{ hash: `0x${string}`; result: void; }>}
|
|
311
503
|
*/
|
|
312
504
|
setDeniedRaw(addresses: Address[], allowed: boolean[], params?: WriteParams<typeof simpleDenyListAbi, 'setDenied'>): Promise<{
|
|
313
505
|
hash: `0x${string}`;
|
|
@@ -321,7 +513,7 @@ export declare class SimpleDenyList extends DeployableTarget<SimpleDenyListPaylo
|
|
|
321
513
|
* @param {?DeployableOptions} [_options]
|
|
322
514
|
* @returns {GenericDeployableParams}
|
|
323
515
|
*/
|
|
324
|
-
buildParameters(_payload?:
|
|
516
|
+
buildParameters(_payload?: Payload, _options?: DeployableOptions): GenericDeployableParams;
|
|
325
517
|
}
|
|
326
518
|
/**
|
|
327
519
|
* Given a {@link SimpleDenyListPayload}, properly encode the initialization payload.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleDenyList.d.ts","sourceRoot":"","sources":["../../src/AllowLists/SimpleDenyList.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SimpleDenyList.d.ts","sourceRoot":"","sources":["../../src/AllowLists/SimpleDenyList.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EAGlB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAKvB,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAElF,OAAO,EACL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,WAAW,EACjB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,OAAO,EAAE,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,CAC3B,KAAK,SAAS,iBAAiB,CAAC,OAAO,iBAAiB,CAAC,GAAG,iBAAiB,CAC3E,OAAO,iBAAiB,CACzB,IACC,UAAU,CAAC,OAAO,iBAAiB,EAAE,KAAK,CAAC,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,cAAc,CACzB,OAAO,GAAG,qBAAqB,CAC/B,SAAQ,wBAAwB,CAChC,OAAO,GAAG,SAAS,EACnB,OAAO,iBAAiB,CACzB;IACC,SAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAqB;IACjD;;;;;;OAMG;IACH,OAAuB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEnD;IACF;;;;;;OAMG;IACH,OAAuB,YAAY,EAAE,YAAY,CAA2B;IAE5E;;;;;;;OAOG;IACU,KAAK,CAChB,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,iBAAiB,EAAE,OAAO,CAAC,GACrD,OAAO,CAAC,OAAO,CAAC;IAUnB;;;;;;;;OAQG;IACU,SAAS,CACpB,OAAO,EAAE,OAAO,EAChB,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,iBAAiB,EAAE,WAAW,CAAC,GACzD,OAAO,CAAC,OAAO,CAAC;IAUnB;;;;;;;;;OASG;IACU,SAAS,CACpB,SAAS,EAAE,OAAO,EAAE,EACpB,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,iBAAiB,EAAE,WAAW,CAAC;IAO7D;;;;;;;;;OASG;IACU,YAAY,CACvB,SAAS,EAAE,OAAO,EAAE,EACpB,OAAO,EAAE,OAAO,EAAE,EAClB,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,iBAAiB,EAAE,WAAW,CAAC;;;;IAgB7D;;;;;;;OAOG;IACa,eAAe,CAC7B,QAAQ,CAAC,EAAE,OAAO,EAClB,QAAQ,CAAC,EAAE,iBAAiB,GAC3B,uBAAuB;CAsB3B;AAED;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,KAAK,EACL,MAAM,GACP,EAAE,qBAAqB,iBAQvB"}
|
|
@@ -1,115 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
super(...arguments), this.abi = s;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Check if a user is authorized (i.e. not denied)
|
|
13
|
-
*
|
|
14
|
-
* @public
|
|
15
|
-
* @async
|
|
16
|
-
* @param {Address} address - The address of the user
|
|
17
|
-
* @param {?ReadParams<typeof simpleDenyListAbi, 'isAllowed'>} [params]
|
|
18
|
-
* @returns {Promise<boolean>} - True if the user is authorized
|
|
19
|
-
*/
|
|
20
|
-
async isAllowed(f, a) {
|
|
21
|
-
return await i(this._config, {
|
|
22
|
-
address: this.assertValidAddress(),
|
|
23
|
-
args: [f, p],
|
|
24
|
-
...this.optionallyAttachAccount(),
|
|
25
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
26
|
-
...a
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Set the denied status of a user. The length of the `users_` and `denied_` arrays must be the same. This function can only be called by the owner
|
|
31
|
-
*
|
|
32
|
-
* @public
|
|
33
|
-
* @async
|
|
34
|
-
* @param {Address[]} addresses - The list of users to update
|
|
35
|
-
* @param {boolean[]} allowed - The denied status of each user
|
|
36
|
-
* @param {?WriteParams<typeof simpleDenyListAbi, 'setDenied'>} [params]
|
|
37
|
-
* @returns {unknown}
|
|
38
|
-
*/
|
|
39
|
-
async setDenied(f, a, b) {
|
|
40
|
-
return await this.awaitResult(
|
|
41
|
-
this.setDeniedRaw(f, a, b)
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Set the denied status of a user. The length of the `users_` and `denied_` arrays must be the same. This function can only be called by the owner
|
|
46
|
-
*
|
|
47
|
-
* @public
|
|
48
|
-
* @async
|
|
49
|
-
* @param {Address[]} addresses - The list of users to update
|
|
50
|
-
* @param {boolean[]} allowed - The denied status of each user
|
|
51
|
-
* @param {?WriteParams<typeof simpleDenyListAbi, 'setDenied'>} [params]
|
|
52
|
-
* @returns {unknown}
|
|
53
|
-
*/
|
|
54
|
-
async setDeniedRaw(f, a, b) {
|
|
55
|
-
const { request: e, result: d } = await n(
|
|
56
|
-
this._config,
|
|
57
|
-
{
|
|
58
|
-
address: this.assertValidAddress(),
|
|
59
|
-
args: [f, a],
|
|
60
|
-
...this.optionallyAttachAccount(),
|
|
61
|
-
// biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally
|
|
62
|
-
...b
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
return { hash: await h(this._config, e), result: d };
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* @inheritdoc
|
|
69
|
-
*
|
|
70
|
-
* @public
|
|
71
|
-
* @param {?SimpleDenyListPayload} [_payload]
|
|
72
|
-
* @param {?DeployableOptions} [_options]
|
|
73
|
-
* @returns {GenericDeployableParams}
|
|
74
|
-
*/
|
|
75
|
-
buildParameters(f, a) {
|
|
76
|
-
var d;
|
|
77
|
-
const [b, e] = this.validateDeploymentConfig(
|
|
78
|
-
f,
|
|
79
|
-
a
|
|
80
|
-
);
|
|
81
|
-
if (!b.owner || b.owner === u) {
|
|
82
|
-
const t = e.account ? e.account.address : e.config ? l(e.config).address : (d = this._account) == null ? void 0 : d.address;
|
|
83
|
-
if (t)
|
|
84
|
-
b.owner = t;
|
|
85
|
-
else
|
|
86
|
-
throw new y();
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
abi: s,
|
|
90
|
-
bytecode: g,
|
|
91
|
-
args: [D(b)],
|
|
92
|
-
...this.optionallyAttachAccount(e.account)
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
c.base = "0x7eb4E958D42b64fd1c4Ce947d05a755fCC7C30B7", c.registryType = A.ALLOW_LIST;
|
|
97
|
-
let r = c;
|
|
98
|
-
function D({
|
|
99
|
-
owner: o,
|
|
100
|
-
denied: f
|
|
101
|
-
}) {
|
|
102
|
-
return m(
|
|
103
|
-
[
|
|
104
|
-
{ type: "address", name: "owner" },
|
|
105
|
-
{ type: "address[]", name: "denied" }
|
|
106
|
-
],
|
|
107
|
-
[o, f]
|
|
108
|
-
);
|
|
109
|
-
}
|
|
1
|
+
import { g as a } from "../generated-CKt2yCQd.js";
|
|
2
|
+
import { S as y, p as n } from "../SimpleDenyList-CGaWjuld.js";
|
|
3
|
+
import "@wagmi/core";
|
|
4
|
+
import "viem";
|
|
5
|
+
import "../deployments-oykLv3_Z.js";
|
|
6
|
+
import "../Deployable/DeployableTargetWithRBAC.js";
|
|
7
|
+
import "../errors.js";
|
|
8
|
+
import "../utils.js";
|
|
110
9
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
10
|
+
y as SimpleDenyList,
|
|
11
|
+
n as prepareSimpleDenyListPayload,
|
|
12
|
+
a as simpleDenyListAbi
|
|
114
13
|
};
|
|
115
14
|
//# sourceMappingURL=SimpleDenyList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleDenyList.js","sources":[
|
|
1
|
+
{"version":3,"file":"SimpleDenyList.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../generated-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../generated-CyTNlOwM.cjs"),a=require("../Deployable/Deployable.cjs"),s="0x6080604052348015600e575f80fd5b506101598061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063fe9fbb801461002d575b5f80fd5b610047600480360381019061004291906100c5565b61005d565b604051610054919061010a565b60405180910390f35b5f60019050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100948261006b565b9050919050565b6100a48161008a565b81146100ae575f80fd5b50565b5f813590506100bf8161009b565b92915050565b5f602082840312156100da576100d9610067565b5b5f6100e7848285016100b1565b91505092915050565b5f8115159050919050565b610104816100f0565b82525050565b5f60208201905061011d5f8301846100fb565b9291505056fea2646970667358221220d69fb5c3af806c7aa7833655670f5929f23f7d101298880775d4b9c7c8d0e62f64736f6c634300081a0033";class d extends a.Deployable{constructor(){super(...arguments),this.abi=f.xe}async isAuthorized(b,e){return await f.pg(this._config,{address:this.assertValidAddress(),args:[b],...e})}buildParameters(b,e){const[o,t]=this.validateDeploymentConfig({},e);return{abi:f.xe,bytecode:s,args:[],...this.optionallyAttachAccount(t.account)}}}exports.passthroughAuthAbi=f.xe;exports.PassthroughAuth=d;
|
|
2
2
|
//# sourceMappingURL=PassthroughAuth.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a, u as s } from "../generated-CKt2yCQd.js";
|
|
2
2
|
import { Deployable as e } from "../Deployable/Deployable.js";
|
|
3
3
|
const d = "0x6080604052348015600e575f80fd5b506101598061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063fe9fbb801461002d575b5f80fd5b610047600480360381019061004291906100c5565b61005d565b604051610054919061010a565b60405180910390f35b5f60019050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100948261006b565b9050919050565b6100a48161008a565b81146100ae575f80fd5b50565b5f813590506100bf8161009b565b92915050565b5f602082840312156100da576100d9610067565b5b5f6100e7848285016100b1565b91505092915050565b5f8115159050919050565b610104816100f0565b82525050565b5f60208201905061011d5f8301846100fb565b9291505056fea2646970667358221220d69fb5c3af806c7aa7833655670f5929f23f7d101298880775d4b9c7c8d0e62f64736f6c634300081a0033";
|
|
4
4
|
class n extends e {
|
package/dist/Boost.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("viem");var O=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},E={exports:{}};(function(h,l){(function(m
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("viem");var O=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},E={exports:{}};(function(h,l){(function(g,m){h.exports=m(g,1),l.LibZip=h.exports.LibZip,l.ERC1967Factory=h.exports.ERC1967Factory})(typeof window<"u"?window:O,function(g,m){var y={},c={};y.LibZip=c;function b(t){if((typeof t=="string"||t instanceof String)&&(t=t.match(/^[\s\uFEFF\xA0]*(0[Xx])?([0-9A-Fa-f]*)[\s\uFEFF\xA0]*$/))){if(t[2].length%2)throw new Error("Hex string length must be a multiple of 2.");return t[2]}throw new Error("Data must be a hex string.")}function x(t){return(t|256).toString(16).slice(1)}function w(t,i){return parseInt(t.substr(i,2),16)}function S(t){for(var i=[],e=0;e<t.length;e+=2)i.push(w(t,e));return i}function L(t){for(var i="0x",e=0;e<t.length;i+=x(t[e++]));return i}c.flzCompress=function(t){var i=S(b(t)),e=i.length-4,n=[],r=[],a=0,o=2,s=0,f,v,z,p,Z,u,F,j,T,B;function A(d){return i[d]|i[++d]<<8|i[++d]<<16}function D(d){return 2654435769*d>>19&8191}function R(d,H){for(;d>=32;)for(r[s++]=31,f=32;f--;d--)r[s++]=i[H++];if(d)for(r[s++]=d-1;d--;)r[s++]=i[H++]}for(;o<e-9;){do F=n[z=D(v=A(o))]||0,Z=(p=(n[z]=o)-F)<8192?A(F):16777216;while(o<e-9&&o++&&v!=Z);if(o>=e-9)break;for(--o>a&&R(o-a,a),u=0,j=F+3,T=o+3,B=e-T;u<B;u++)B*=i[j+u]===i[T+u];for(o+=u,--p;u>262;u-=262)r[s++]=224+(p>>8),r[s++]=253,r[s++]=p&255;u<7?(r[s++]=(u<<5)+(p>>8),r[s++]=p&255):(r[s++]=224+(p>>8),r[s++]=u-7,r[s++]=p&255),n[D(A(o))]=o++,n[D(A(o))]=o++,a=o}return R(e+4-a,a),L(r)},c.flzDecompress=function(t){for(var i=S(b(t)),e=0,n=0,r,a,o,s,f=[];e<i.length;)if(o=i[e]>>5)for(a=256*(i[e]&31)+i[e+2-(o=o<7)],r=o?2+(i[e]>>5):9+i[e+1],e=e+3-o,s=n-a-1;r--;)f[n++]=f[s++];else for(r=1+i[e++];r--;)f[n++]=i[e++];return L(f)},c.cdCompress=function(t){t=b(t);var i="0x",e=0,n=0,r=0,a;function o(f){i+=x((i.length<4*2+2)*255^f)}function s(f,v){o(0),o(v-1+f*128)}for(;r<t.length;r+=2){if(a=w(t,r),!a){n&&(s(1,n),n=0),++e===128&&(s(0,128),e=0);continue}if(a===255){e&&(s(0,e),e=0),++n===32&&(s(1,32),n=0);continue}n&&(s(1,n),n=0),e&&(s(0,e),e=0),o(a)}return n&&(s(1,n),n=0),e&&(s(0,e),e=0),i},c.cdDecompress=function(t){t=b(t);for(var i="0x",e=0,n,r,a;e<t.length;){if(r=(e<4*2)*255^w(t,e),e+=2,!r){for(r=(e<4*2)*255^w(t,e),a=(r&127)+1,e+=2,n=0;n<a;++n)i+=x((r>>7&&n<32)*255);continue}i+=x(r)}return i};var C={};return y.ERC1967Factory=C,C.address="0x0000000000006396FF2a80c067f99B3d2Ab4Df24",C.abi=JSON.parse('[{0:[],1:"DeploymentFailed"96"SaltDoesNotStartWithCaller"96"Unauthorized"96"UpgradeFailed",2:3959790,9791],1:"AdminChanged",2:10959790,9792,9791],1:"Deployed",2:10959790,9792],1:"Upgraded",2:10},{0:[{90],1:"adminOf",12:[{9199{0:[{90,{91],1:"changeAdmin",12:[],13:"nonpayable",2:15},{0:[{92,{91],1:"deploy",12:[{9098,{0:[{92,{91,{94],1:"deployAndCall",12:[{9098,{0:[{92,{91,{93],1:"deployDeterministic",12:[{9098,{0:[{92,{91,{93,{94],1:"deployDeterministicAndCall",12:[{9098,{0:[],1:"initCodeHash",12:[{6:19,1:"result",2:19}99{0:[{93],1:"predictDeterministicAddress",12:[{6:7,1:"predicted",2:7}99{0:[{90,{92],1:"upgrade",12:[98,{0:[{90,{92,{94],1:"upgradeAndCall",12:[98]'.replace(/9\d/g,function(t){return["6:7,1:8,2:7}","6:7,1:9,2:7}","6:7,1:11,2:7}","6:19,1:20,2:19}","6:17,1:18,2:17}","},{4:false,0:[",",2:3},{0:[],1:","{5:true,","],13:16,2:15}","],13:14,2:15},"][t-90]}).replace(/\d+/g,function(t){return'"'+"inputs,name,type,error,anonymous,indexed,internalType,address,proxy,admin,event,implementation,outputs,stateMutability,view,function,payable,bytes,data,bytes32,salt".split(",")[t]+'"'})),m||(g.solady=y),y})})(E,E.exports);var U=E.exports;class q{constructor(l){this.id=l.id,this.budget=l.budget,this.action=l.action,this.validator=l.validator,this.allowList=l.allowList,this.incentives=l.incentives,this.protocolFee=l.protocolFee||0n,this.maxParticipants=l.maxParticipants||0n,this.owner=l.owner||P.zeroAddress}}function M({budget:h,action:l,validator:g,allowList:m,incentives:y,protocolFee:c=0n,maxParticipants:b=0n,owner:x}){return U.LibZip.cdCompress(P.encodeAbiParameters(P.parseAbiParameters(["BoostPayload payload","struct BoostPayload { address budget; Target action; Target validator; Target allowList; Target[] incentives; uint64 protocolFee; uint256 maxParticipants; address owner; }","struct Target { bool isBase; address instance; bytes parameters; }"]),[{budget:h,action:l,validator:g,allowList:m,incentives:y,protocolFee:c,maxParticipants:b,owner:x}]))}exports.Boost=q;exports.prepareBoostPayload=M;
|
|
2
2
|
//# sourceMappingURL=Boost.cjs.map
|