@boostxyz/sdk 0.0.0-alpha.2
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/LICENSE +674 -0
- package/README.md +7 -0
- package/dist/Actions/Action.cjs +1 -0
- package/dist/Actions/Action.d.ts +31 -0
- package/dist/Actions/Action.d.ts.map +1 -0
- package/dist/Actions/Action.js +27 -0
- package/dist/Actions/ContractAction.d.ts +327 -0
- package/dist/Actions/ContractAction.d.ts.map +1 -0
- package/dist/Actions/ERC721MintAction.d.ts +486 -0
- package/dist/Actions/ERC721MintAction.d.ts.map +1 -0
- package/dist/Actions/EventAction.cjs +1 -0
- package/dist/Actions/EventAction.d.ts +433 -0
- package/dist/Actions/EventAction.d.ts.map +1 -0
- package/dist/Actions/EventAction.js +211 -0
- package/dist/AllowLists/AllowList.cjs +1 -0
- package/dist/AllowLists/AllowList.d.ts +33 -0
- package/dist/AllowLists/AllowList.d.ts.map +1 -0
- package/dist/AllowLists/AllowList.js +28 -0
- package/dist/AllowLists/SimpleAllowList.cjs +1 -0
- package/dist/AllowLists/SimpleAllowList.d.ts +452 -0
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -0
- package/dist/AllowLists/SimpleAllowList.js +138 -0
- package/dist/AllowLists/SimpleDenyList.cjs +1 -0
- package/dist/AllowLists/SimpleDenyList.d.ts +306 -0
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -0
- package/dist/AllowLists/SimpleDenyList.js +202 -0
- package/dist/Auth/Auth.cjs +1 -0
- package/dist/Auth/Auth.d.ts +10 -0
- package/dist/Auth/Auth.d.ts.map +1 -0
- package/dist/Auth/Auth.js +4 -0
- package/dist/Auth/PassthroughAuth.cjs +1 -0
- package/dist/Auth/PassthroughAuth.d.ts +51 -0
- package/dist/Auth/PassthroughAuth.d.ts.map +1 -0
- package/dist/Auth/PassthroughAuth.js +38 -0
- package/dist/Boost.cjs +1 -0
- package/dist/Boost.d.ts +142 -0
- package/dist/Boost.d.ts.map +1 -0
- package/dist/Boost.js +15 -0
- package/dist/BoostCore.cjs +2 -0
- package/dist/BoostCore.d.ts +460 -0
- package/dist/BoostCore.d.ts.map +1 -0
- package/dist/BoostCore.js +1105 -0
- package/dist/BoostRegistry.cjs +1 -0
- package/dist/BoostRegistry.d.ts +229 -0
- package/dist/BoostRegistry.d.ts.map +1 -0
- package/dist/BoostRegistry.js +250 -0
- package/dist/Budgets/Budget.cjs +1 -0
- package/dist/Budgets/Budget.d.ts +31 -0
- package/dist/Budgets/Budget.d.ts.map +1 -0
- package/dist/Budgets/Budget.js +27 -0
- package/dist/Budgets/ManagedBudget.cjs +1 -0
- package/dist/Budgets/ManagedBudget.d.ts +1065 -0
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -0
- package/dist/Budgets/ManagedBudget.js +498 -0
- package/dist/Budgets/SimpleBudget.d.ts +793 -0
- package/dist/Budgets/SimpleBudget.d.ts.map +1 -0
- package/dist/Budgets/VestingBudget.d.ts +726 -0
- package/dist/Budgets/VestingBudget.d.ts.map +1 -0
- package/dist/Deployable/Contract.cjs +1 -0
- package/dist/Deployable/Contract.d.ts +125 -0
- package/dist/Deployable/Contract.d.ts.map +1 -0
- package/dist/Deployable/Contract.js +149 -0
- package/dist/Deployable/Deployable.cjs +1 -0
- package/dist/Deployable/Deployable.d.ts +155 -0
- package/dist/Deployable/Deployable.d.ts.map +1 -0
- package/dist/Deployable/Deployable.js +124 -0
- package/dist/Deployable/DeployableTarget.cjs +1 -0
- package/dist/Deployable/DeployableTarget.d.ts +115 -0
- package/dist/Deployable/DeployableTarget.d.ts.map +1 -0
- package/dist/Deployable/DeployableTarget.js +128 -0
- package/dist/Incentives/AllowListIncentive.cjs +1 -0
- package/dist/Incentives/AllowListIncentive.d.ts +483 -0
- package/dist/Incentives/AllowListIncentive.d.ts.map +1 -0
- package/dist/Incentives/AllowListIncentive.js +188 -0
- package/dist/Incentives/CGDAIncentive.cjs +1 -0
- package/dist/Incentives/CGDAIncentive.d.ts +560 -0
- package/dist/Incentives/CGDAIncentive.d.ts.map +1 -0
- package/dist/Incentives/CGDAIncentive.js +249 -0
- package/dist/Incentives/ERC1155Incentive.d.ts +652 -0
- package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -0
- package/dist/Incentives/ERC20Incentive.cjs +1 -0
- package/dist/Incentives/ERC20Incentive.d.ts +622 -0
- package/dist/Incentives/ERC20Incentive.d.ts.map +1 -0
- package/dist/Incentives/ERC20Incentive.js +292 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts +545 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -0
- package/dist/Incentives/Incentive.cjs +1 -0
- package/dist/Incentives/Incentive.d.ts +39 -0
- package/dist/Incentives/Incentive.d.ts.map +1 -0
- package/dist/Incentives/Incentive.js +280 -0
- package/dist/Incentives/PointsIncentive.cjs +1 -0
- package/dist/Incentives/PointsIncentive.d.ts +615 -0
- package/dist/Incentives/PointsIncentive.d.ts.map +1 -0
- package/dist/Incentives/PointsIncentive.js +197 -0
- package/dist/Validators/SignerValidator.cjs +1 -0
- package/dist/Validators/SignerValidator.d.ts +452 -0
- package/dist/Validators/SignerValidator.d.ts.map +1 -0
- package/dist/Validators/SignerValidator.js +167 -0
- package/dist/Validators/Validator.cjs +1 -0
- package/dist/Validators/Validator.d.ts +31 -0
- package/dist/Validators/Validator.d.ts.map +1 -0
- package/dist/Validators/Validator.js +25 -0
- package/dist/errors.cjs +1 -0
- package/dist/errors.d.ts +257 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +161 -0
- package/dist/generated-BaaleHW-.cjs +2 -0
- package/dist/generated-x_abr3Yv.js +6228 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1355 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.ts +1454 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +643 -0
- package/package.json +197 -0
|
@@ -0,0 +1,652 @@
|
|
|
1
|
+
import { erc1155IncentiveAbi } from '@boostxyz/evm';
|
|
2
|
+
import type { Address, ContractEventName } from 'viem';
|
|
3
|
+
import type { DeployableOptions, GenericDeployableParams } from '../Deployable/Deployable';
|
|
4
|
+
import { DeployableTarget } from '../Deployable/DeployableTarget';
|
|
5
|
+
import { type ClaimPayload, type ERC1155IncentivePayload, ERC1155StrategyType, type GenericLog, type ReadParams, RegistryType, type StrategyType, type WriteParams } from '../utils';
|
|
6
|
+
export { ERC1155StrategyType, erc1155IncentiveAbi };
|
|
7
|
+
export type { ERC1155IncentivePayload };
|
|
8
|
+
/**
|
|
9
|
+
* A generic `viem.Log` event with support for `ERC1155Incentive` event types.
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @typedef {ERC1155IncentiveLog}
|
|
13
|
+
* @template {ContractEventName<
|
|
14
|
+
* typeof erc1155IncentiveAbi
|
|
15
|
+
* >} [event=ContractEventName<typeof erc1155IncentiveAbi>]
|
|
16
|
+
*/
|
|
17
|
+
export type ERC1155IncentiveLog<event extends ContractEventName<typeof erc1155IncentiveAbi> = ContractEventName<typeof erc1155IncentiveAbi>> = GenericLog<typeof erc1155IncentiveAbi, event>;
|
|
18
|
+
/**
|
|
19
|
+
* This is currently not exported due to a mysterious abi encoding issue
|
|
20
|
+
*
|
|
21
|
+
* @experimental
|
|
22
|
+
* @export
|
|
23
|
+
* @class ERC1155Incentive
|
|
24
|
+
* @typedef {ERC1155Incentive}
|
|
25
|
+
* @extends {DeployableTarget<ERC1155IncentivePayload>}
|
|
26
|
+
*/
|
|
27
|
+
export declare class ERC1155Incentive extends DeployableTarget<ERC1155IncentivePayload, typeof erc1155IncentiveAbi> {
|
|
28
|
+
readonly abi: readonly [{
|
|
29
|
+
readonly type: "constructor";
|
|
30
|
+
readonly inputs: readonly [];
|
|
31
|
+
readonly stateMutability: "nonpayable";
|
|
32
|
+
}, {
|
|
33
|
+
readonly type: "error";
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly name: "AlreadyInitialized";
|
|
36
|
+
}, {
|
|
37
|
+
readonly type: "error";
|
|
38
|
+
readonly inputs: readonly [];
|
|
39
|
+
readonly name: "ClaimFailed";
|
|
40
|
+
}, {
|
|
41
|
+
readonly type: "error";
|
|
42
|
+
readonly inputs: readonly [{
|
|
43
|
+
readonly name: "caller";
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}, {
|
|
47
|
+
readonly name: "data";
|
|
48
|
+
readonly internalType: "bytes";
|
|
49
|
+
readonly type: "bytes";
|
|
50
|
+
}];
|
|
51
|
+
readonly name: "ClaimFailed";
|
|
52
|
+
}, {
|
|
53
|
+
readonly type: "error";
|
|
54
|
+
readonly inputs: readonly [];
|
|
55
|
+
readonly name: "CloneAlreadyInitialized";
|
|
56
|
+
}, {
|
|
57
|
+
readonly type: "error";
|
|
58
|
+
readonly inputs: readonly [];
|
|
59
|
+
readonly name: "InitializerNotImplemented";
|
|
60
|
+
}, {
|
|
61
|
+
readonly type: "error";
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly name: "asset";
|
|
64
|
+
readonly internalType: "address";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
}, {
|
|
67
|
+
readonly name: "available";
|
|
68
|
+
readonly internalType: "uint256";
|
|
69
|
+
readonly type: "uint256";
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "required";
|
|
72
|
+
readonly internalType: "uint256";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}];
|
|
75
|
+
readonly name: "InsufficientFunds";
|
|
76
|
+
}, {
|
|
77
|
+
readonly type: "error";
|
|
78
|
+
readonly inputs: readonly [];
|
|
79
|
+
readonly name: "InvalidInitialization";
|
|
80
|
+
}, {
|
|
81
|
+
readonly type: "error";
|
|
82
|
+
readonly inputs: readonly [];
|
|
83
|
+
readonly name: "InvalidInitialization";
|
|
84
|
+
}, {
|
|
85
|
+
readonly type: "error";
|
|
86
|
+
readonly inputs: readonly [];
|
|
87
|
+
readonly name: "InvalidInitializationData";
|
|
88
|
+
}, {
|
|
89
|
+
readonly type: "error";
|
|
90
|
+
readonly inputs: readonly [];
|
|
91
|
+
readonly name: "NewOwnerIsZeroAddress";
|
|
92
|
+
}, {
|
|
93
|
+
readonly type: "error";
|
|
94
|
+
readonly inputs: readonly [];
|
|
95
|
+
readonly name: "NoHandoverRequest";
|
|
96
|
+
}, {
|
|
97
|
+
readonly type: "error";
|
|
98
|
+
readonly inputs: readonly [];
|
|
99
|
+
readonly name: "NotClaimable";
|
|
100
|
+
}, {
|
|
101
|
+
readonly type: "error";
|
|
102
|
+
readonly inputs: readonly [];
|
|
103
|
+
readonly name: "NotImplemented";
|
|
104
|
+
}, {
|
|
105
|
+
readonly type: "error";
|
|
106
|
+
readonly inputs: readonly [];
|
|
107
|
+
readonly name: "NotInitializing";
|
|
108
|
+
}, {
|
|
109
|
+
readonly type: "error";
|
|
110
|
+
readonly inputs: readonly [];
|
|
111
|
+
readonly name: "Unauthorized";
|
|
112
|
+
}, {
|
|
113
|
+
readonly type: "event";
|
|
114
|
+
readonly anonymous: false;
|
|
115
|
+
readonly inputs: readonly [{
|
|
116
|
+
readonly name: "recipient";
|
|
117
|
+
readonly internalType: "address";
|
|
118
|
+
readonly type: "address";
|
|
119
|
+
readonly indexed: true;
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "data";
|
|
122
|
+
readonly internalType: "bytes";
|
|
123
|
+
readonly type: "bytes";
|
|
124
|
+
readonly indexed: false;
|
|
125
|
+
}];
|
|
126
|
+
readonly name: "Claimed";
|
|
127
|
+
}, {
|
|
128
|
+
readonly type: "event";
|
|
129
|
+
readonly anonymous: false;
|
|
130
|
+
readonly inputs: readonly [{
|
|
131
|
+
readonly name: "version";
|
|
132
|
+
readonly internalType: "uint64";
|
|
133
|
+
readonly type: "uint64";
|
|
134
|
+
readonly indexed: false;
|
|
135
|
+
}];
|
|
136
|
+
readonly name: "Initialized";
|
|
137
|
+
}, {
|
|
138
|
+
readonly type: "event";
|
|
139
|
+
readonly anonymous: false;
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly name: "pendingOwner";
|
|
142
|
+
readonly internalType: "address";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
readonly indexed: true;
|
|
145
|
+
}];
|
|
146
|
+
readonly name: "OwnershipHandoverCanceled";
|
|
147
|
+
}, {
|
|
148
|
+
readonly type: "event";
|
|
149
|
+
readonly anonymous: false;
|
|
150
|
+
readonly inputs: readonly [{
|
|
151
|
+
readonly name: "pendingOwner";
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
readonly type: "address";
|
|
154
|
+
readonly indexed: true;
|
|
155
|
+
}];
|
|
156
|
+
readonly name: "OwnershipHandoverRequested";
|
|
157
|
+
}, {
|
|
158
|
+
readonly type: "event";
|
|
159
|
+
readonly anonymous: false;
|
|
160
|
+
readonly inputs: readonly [{
|
|
161
|
+
readonly name: "oldOwner";
|
|
162
|
+
readonly internalType: "address";
|
|
163
|
+
readonly type: "address";
|
|
164
|
+
readonly indexed: true;
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "newOwner";
|
|
167
|
+
readonly internalType: "address";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
readonly indexed: true;
|
|
170
|
+
}];
|
|
171
|
+
readonly name: "OwnershipTransferred";
|
|
172
|
+
}, {
|
|
173
|
+
readonly type: "function";
|
|
174
|
+
readonly inputs: readonly [];
|
|
175
|
+
readonly name: "asset";
|
|
176
|
+
readonly outputs: readonly [{
|
|
177
|
+
readonly name: "";
|
|
178
|
+
readonly internalType: "contract IERC1155";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
}];
|
|
181
|
+
readonly stateMutability: "view";
|
|
182
|
+
}, {
|
|
183
|
+
readonly type: "function";
|
|
184
|
+
readonly inputs: readonly [];
|
|
185
|
+
readonly name: "cancelOwnershipHandover";
|
|
186
|
+
readonly outputs: readonly [];
|
|
187
|
+
readonly stateMutability: "payable";
|
|
188
|
+
}, {
|
|
189
|
+
readonly type: "function";
|
|
190
|
+
readonly inputs: readonly [{
|
|
191
|
+
readonly name: "claimTarget";
|
|
192
|
+
readonly internalType: "address";
|
|
193
|
+
readonly type: "address";
|
|
194
|
+
}, {
|
|
195
|
+
readonly name: "data_";
|
|
196
|
+
readonly internalType: "bytes";
|
|
197
|
+
readonly type: "bytes";
|
|
198
|
+
}];
|
|
199
|
+
readonly name: "claim";
|
|
200
|
+
readonly outputs: readonly [{
|
|
201
|
+
readonly name: "";
|
|
202
|
+
readonly internalType: "bool";
|
|
203
|
+
readonly type: "bool";
|
|
204
|
+
}];
|
|
205
|
+
readonly stateMutability: "nonpayable";
|
|
206
|
+
}, {
|
|
207
|
+
readonly type: "function";
|
|
208
|
+
readonly inputs: readonly [{
|
|
209
|
+
readonly name: "";
|
|
210
|
+
readonly internalType: "address";
|
|
211
|
+
readonly type: "address";
|
|
212
|
+
}];
|
|
213
|
+
readonly name: "claimed";
|
|
214
|
+
readonly outputs: readonly [{
|
|
215
|
+
readonly name: "";
|
|
216
|
+
readonly internalType: "bool";
|
|
217
|
+
readonly type: "bool";
|
|
218
|
+
}];
|
|
219
|
+
readonly stateMutability: "view";
|
|
220
|
+
}, {
|
|
221
|
+
readonly type: "function";
|
|
222
|
+
readonly inputs: readonly [];
|
|
223
|
+
readonly name: "claims";
|
|
224
|
+
readonly outputs: readonly [{
|
|
225
|
+
readonly name: "";
|
|
226
|
+
readonly internalType: "uint256";
|
|
227
|
+
readonly type: "uint256";
|
|
228
|
+
}];
|
|
229
|
+
readonly stateMutability: "view";
|
|
230
|
+
}, {
|
|
231
|
+
readonly type: "function";
|
|
232
|
+
readonly inputs: readonly [{
|
|
233
|
+
readonly name: "data_";
|
|
234
|
+
readonly internalType: "bytes";
|
|
235
|
+
readonly type: "bytes";
|
|
236
|
+
}];
|
|
237
|
+
readonly name: "clawback";
|
|
238
|
+
readonly outputs: readonly [{
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly internalType: "bool";
|
|
241
|
+
readonly type: "bool";
|
|
242
|
+
}];
|
|
243
|
+
readonly stateMutability: "nonpayable";
|
|
244
|
+
}, {
|
|
245
|
+
readonly type: "function";
|
|
246
|
+
readonly inputs: readonly [{
|
|
247
|
+
readonly name: "pendingOwner";
|
|
248
|
+
readonly internalType: "address";
|
|
249
|
+
readonly type: "address";
|
|
250
|
+
}];
|
|
251
|
+
readonly name: "completeOwnershipHandover";
|
|
252
|
+
readonly outputs: readonly [];
|
|
253
|
+
readonly stateMutability: "payable";
|
|
254
|
+
}, {
|
|
255
|
+
readonly type: "function";
|
|
256
|
+
readonly inputs: readonly [];
|
|
257
|
+
readonly name: "currentReward";
|
|
258
|
+
readonly outputs: readonly [{
|
|
259
|
+
readonly name: "";
|
|
260
|
+
readonly internalType: "uint256";
|
|
261
|
+
readonly type: "uint256";
|
|
262
|
+
}];
|
|
263
|
+
readonly stateMutability: "view";
|
|
264
|
+
}, {
|
|
265
|
+
readonly type: "function";
|
|
266
|
+
readonly inputs: readonly [];
|
|
267
|
+
readonly name: "extraData";
|
|
268
|
+
readonly outputs: readonly [{
|
|
269
|
+
readonly name: "";
|
|
270
|
+
readonly internalType: "bytes";
|
|
271
|
+
readonly type: "bytes";
|
|
272
|
+
}];
|
|
273
|
+
readonly stateMutability: "view";
|
|
274
|
+
}, {
|
|
275
|
+
readonly type: "function";
|
|
276
|
+
readonly inputs: readonly [];
|
|
277
|
+
readonly name: "getComponentInterface";
|
|
278
|
+
readonly outputs: readonly [{
|
|
279
|
+
readonly name: "";
|
|
280
|
+
readonly internalType: "bytes4";
|
|
281
|
+
readonly type: "bytes4";
|
|
282
|
+
}];
|
|
283
|
+
readonly stateMutability: "pure";
|
|
284
|
+
}, {
|
|
285
|
+
readonly type: "function";
|
|
286
|
+
readonly inputs: readonly [{
|
|
287
|
+
readonly name: "data_";
|
|
288
|
+
readonly internalType: "bytes";
|
|
289
|
+
readonly type: "bytes";
|
|
290
|
+
}];
|
|
291
|
+
readonly name: "initialize";
|
|
292
|
+
readonly outputs: readonly [];
|
|
293
|
+
readonly stateMutability: "nonpayable";
|
|
294
|
+
}, {
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
readonly inputs: readonly [{
|
|
297
|
+
readonly name: "claimTarget";
|
|
298
|
+
readonly internalType: "address";
|
|
299
|
+
readonly type: "address";
|
|
300
|
+
}, {
|
|
301
|
+
readonly name: "";
|
|
302
|
+
readonly internalType: "bytes";
|
|
303
|
+
readonly type: "bytes";
|
|
304
|
+
}];
|
|
305
|
+
readonly name: "isClaimable";
|
|
306
|
+
readonly outputs: readonly [{
|
|
307
|
+
readonly name: "";
|
|
308
|
+
readonly internalType: "bool";
|
|
309
|
+
readonly type: "bool";
|
|
310
|
+
}];
|
|
311
|
+
readonly stateMutability: "view";
|
|
312
|
+
}, {
|
|
313
|
+
readonly type: "function";
|
|
314
|
+
readonly inputs: readonly [];
|
|
315
|
+
readonly name: "limit";
|
|
316
|
+
readonly outputs: readonly [{
|
|
317
|
+
readonly name: "";
|
|
318
|
+
readonly internalType: "uint256";
|
|
319
|
+
readonly type: "uint256";
|
|
320
|
+
}];
|
|
321
|
+
readonly stateMutability: "view";
|
|
322
|
+
}, {
|
|
323
|
+
readonly type: "function";
|
|
324
|
+
readonly inputs: readonly [{
|
|
325
|
+
readonly name: "";
|
|
326
|
+
readonly internalType: "address";
|
|
327
|
+
readonly type: "address";
|
|
328
|
+
}, {
|
|
329
|
+
readonly name: "";
|
|
330
|
+
readonly internalType: "address";
|
|
331
|
+
readonly type: "address";
|
|
332
|
+
}, {
|
|
333
|
+
readonly name: "";
|
|
334
|
+
readonly internalType: "uint256[]";
|
|
335
|
+
readonly type: "uint256[]";
|
|
336
|
+
}, {
|
|
337
|
+
readonly name: "";
|
|
338
|
+
readonly internalType: "uint256[]";
|
|
339
|
+
readonly type: "uint256[]";
|
|
340
|
+
}, {
|
|
341
|
+
readonly name: "";
|
|
342
|
+
readonly internalType: "bytes";
|
|
343
|
+
readonly type: "bytes";
|
|
344
|
+
}];
|
|
345
|
+
readonly name: "onERC1155BatchReceived";
|
|
346
|
+
readonly outputs: readonly [{
|
|
347
|
+
readonly name: "";
|
|
348
|
+
readonly internalType: "bytes4";
|
|
349
|
+
readonly type: "bytes4";
|
|
350
|
+
}];
|
|
351
|
+
readonly stateMutability: "pure";
|
|
352
|
+
}, {
|
|
353
|
+
readonly type: "function";
|
|
354
|
+
readonly inputs: readonly [{
|
|
355
|
+
readonly name: "";
|
|
356
|
+
readonly internalType: "address";
|
|
357
|
+
readonly type: "address";
|
|
358
|
+
}, {
|
|
359
|
+
readonly name: "";
|
|
360
|
+
readonly internalType: "address";
|
|
361
|
+
readonly type: "address";
|
|
362
|
+
}, {
|
|
363
|
+
readonly name: "";
|
|
364
|
+
readonly internalType: "uint256";
|
|
365
|
+
readonly type: "uint256";
|
|
366
|
+
}, {
|
|
367
|
+
readonly name: "";
|
|
368
|
+
readonly internalType: "uint256";
|
|
369
|
+
readonly type: "uint256";
|
|
370
|
+
}, {
|
|
371
|
+
readonly name: "";
|
|
372
|
+
readonly internalType: "bytes";
|
|
373
|
+
readonly type: "bytes";
|
|
374
|
+
}];
|
|
375
|
+
readonly name: "onERC1155Received";
|
|
376
|
+
readonly outputs: readonly [{
|
|
377
|
+
readonly name: "";
|
|
378
|
+
readonly internalType: "bytes4";
|
|
379
|
+
readonly type: "bytes4";
|
|
380
|
+
}];
|
|
381
|
+
readonly stateMutability: "pure";
|
|
382
|
+
}, {
|
|
383
|
+
readonly type: "function";
|
|
384
|
+
readonly inputs: readonly [];
|
|
385
|
+
readonly name: "owner";
|
|
386
|
+
readonly outputs: readonly [{
|
|
387
|
+
readonly name: "result";
|
|
388
|
+
readonly internalType: "address";
|
|
389
|
+
readonly type: "address";
|
|
390
|
+
}];
|
|
391
|
+
readonly stateMutability: "view";
|
|
392
|
+
}, {
|
|
393
|
+
readonly type: "function";
|
|
394
|
+
readonly inputs: readonly [{
|
|
395
|
+
readonly name: "pendingOwner";
|
|
396
|
+
readonly internalType: "address";
|
|
397
|
+
readonly type: "address";
|
|
398
|
+
}];
|
|
399
|
+
readonly name: "ownershipHandoverExpiresAt";
|
|
400
|
+
readonly outputs: readonly [{
|
|
401
|
+
readonly name: "result";
|
|
402
|
+
readonly internalType: "uint256";
|
|
403
|
+
readonly type: "uint256";
|
|
404
|
+
}];
|
|
405
|
+
readonly stateMutability: "view";
|
|
406
|
+
}, {
|
|
407
|
+
readonly type: "function";
|
|
408
|
+
readonly inputs: readonly [{
|
|
409
|
+
readonly name: "data_";
|
|
410
|
+
readonly internalType: "bytes";
|
|
411
|
+
readonly type: "bytes";
|
|
412
|
+
}];
|
|
413
|
+
readonly name: "preflight";
|
|
414
|
+
readonly outputs: readonly [{
|
|
415
|
+
readonly name: "budgetData";
|
|
416
|
+
readonly internalType: "bytes";
|
|
417
|
+
readonly type: "bytes";
|
|
418
|
+
}];
|
|
419
|
+
readonly stateMutability: "view";
|
|
420
|
+
}, {
|
|
421
|
+
readonly type: "function";
|
|
422
|
+
readonly inputs: readonly [];
|
|
423
|
+
readonly name: "renounceOwnership";
|
|
424
|
+
readonly outputs: readonly [];
|
|
425
|
+
readonly stateMutability: "payable";
|
|
426
|
+
}, {
|
|
427
|
+
readonly type: "function";
|
|
428
|
+
readonly inputs: readonly [];
|
|
429
|
+
readonly name: "requestOwnershipHandover";
|
|
430
|
+
readonly outputs: readonly [];
|
|
431
|
+
readonly stateMutability: "payable";
|
|
432
|
+
}, {
|
|
433
|
+
readonly type: "function";
|
|
434
|
+
readonly inputs: readonly [];
|
|
435
|
+
readonly name: "reward";
|
|
436
|
+
readonly outputs: readonly [{
|
|
437
|
+
readonly name: "";
|
|
438
|
+
readonly internalType: "uint256";
|
|
439
|
+
readonly type: "uint256";
|
|
440
|
+
}];
|
|
441
|
+
readonly stateMutability: "view";
|
|
442
|
+
}, {
|
|
443
|
+
readonly type: "function";
|
|
444
|
+
readonly inputs: readonly [];
|
|
445
|
+
readonly name: "strategy";
|
|
446
|
+
readonly outputs: readonly [{
|
|
447
|
+
readonly name: "";
|
|
448
|
+
readonly internalType: "enum AERC1155Incentive.Strategy";
|
|
449
|
+
readonly type: "uint8";
|
|
450
|
+
}];
|
|
451
|
+
readonly stateMutability: "view";
|
|
452
|
+
}, {
|
|
453
|
+
readonly type: "function";
|
|
454
|
+
readonly inputs: readonly [{
|
|
455
|
+
readonly name: "interfaceId";
|
|
456
|
+
readonly internalType: "bytes4";
|
|
457
|
+
readonly type: "bytes4";
|
|
458
|
+
}];
|
|
459
|
+
readonly name: "supportsInterface";
|
|
460
|
+
readonly outputs: readonly [{
|
|
461
|
+
readonly name: "";
|
|
462
|
+
readonly internalType: "bool";
|
|
463
|
+
readonly type: "bool";
|
|
464
|
+
}];
|
|
465
|
+
readonly stateMutability: "view";
|
|
466
|
+
}, {
|
|
467
|
+
readonly type: "function";
|
|
468
|
+
readonly inputs: readonly [];
|
|
469
|
+
readonly name: "tokenId";
|
|
470
|
+
readonly outputs: readonly [{
|
|
471
|
+
readonly name: "";
|
|
472
|
+
readonly internalType: "uint256";
|
|
473
|
+
readonly type: "uint256";
|
|
474
|
+
}];
|
|
475
|
+
readonly stateMutability: "view";
|
|
476
|
+
}, {
|
|
477
|
+
readonly type: "function";
|
|
478
|
+
readonly inputs: readonly [{
|
|
479
|
+
readonly name: "newOwner";
|
|
480
|
+
readonly internalType: "address";
|
|
481
|
+
readonly type: "address";
|
|
482
|
+
}];
|
|
483
|
+
readonly name: "transferOwnership";
|
|
484
|
+
readonly outputs: readonly [];
|
|
485
|
+
readonly stateMutability: "payable";
|
|
486
|
+
}];
|
|
487
|
+
/**
|
|
488
|
+
* @inheritdoc
|
|
489
|
+
*
|
|
490
|
+
* @public
|
|
491
|
+
* @static
|
|
492
|
+
* @type {Address}
|
|
493
|
+
*/
|
|
494
|
+
static base: Address;
|
|
495
|
+
/**
|
|
496
|
+
* @inheritdoc
|
|
497
|
+
*
|
|
498
|
+
* @public
|
|
499
|
+
* @static
|
|
500
|
+
* @type {RegistryType}
|
|
501
|
+
*/
|
|
502
|
+
static registryType: RegistryType;
|
|
503
|
+
/**
|
|
504
|
+
* Description placeholder
|
|
505
|
+
*
|
|
506
|
+
* @public
|
|
507
|
+
* @async
|
|
508
|
+
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'claims'>} [params]
|
|
509
|
+
* @returns {unknown}
|
|
510
|
+
*/
|
|
511
|
+
claims(params?: ReadParams<typeof erc1155IncentiveAbi, 'claims'>): Promise<bigint>;
|
|
512
|
+
/**
|
|
513
|
+
* Description placeholder
|
|
514
|
+
*
|
|
515
|
+
* @public
|
|
516
|
+
* @async
|
|
517
|
+
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'reward'>} [params]
|
|
518
|
+
* @returns {unknown}
|
|
519
|
+
*/
|
|
520
|
+
reward(params?: ReadParams<typeof erc1155IncentiveAbi, 'reward'>): Promise<bigint>;
|
|
521
|
+
/**
|
|
522
|
+
* Description placeholder
|
|
523
|
+
*
|
|
524
|
+
* @public
|
|
525
|
+
* @async
|
|
526
|
+
* @param {Address} address
|
|
527
|
+
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'claimed'>} [params]
|
|
528
|
+
* @returns {unknown}
|
|
529
|
+
*/
|
|
530
|
+
claimed(address: Address, params?: ReadParams<typeof erc1155IncentiveAbi, 'claimed'>): Promise<boolean>;
|
|
531
|
+
/**
|
|
532
|
+
* Description placeholder
|
|
533
|
+
*
|
|
534
|
+
* @public
|
|
535
|
+
* @async
|
|
536
|
+
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'asset'>} [params]
|
|
537
|
+
* @returns {unknown}
|
|
538
|
+
*/
|
|
539
|
+
asset(params?: ReadParams<typeof erc1155IncentiveAbi, 'asset'>): Promise<`0x${string}`>;
|
|
540
|
+
/**
|
|
541
|
+
* Description placeholder
|
|
542
|
+
*
|
|
543
|
+
* @public
|
|
544
|
+
* @async
|
|
545
|
+
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'strategy'>} [params]
|
|
546
|
+
* @returns {Promise<StrategyType>}
|
|
547
|
+
*/
|
|
548
|
+
strategy(params?: ReadParams<typeof erc1155IncentiveAbi, 'strategy'>): Promise<StrategyType>;
|
|
549
|
+
/**
|
|
550
|
+
* Description placeholder
|
|
551
|
+
*
|
|
552
|
+
* @public
|
|
553
|
+
* @async
|
|
554
|
+
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'limit'>} [params]
|
|
555
|
+
* @returns {unknown}
|
|
556
|
+
*/
|
|
557
|
+
limit(params?: ReadParams<typeof erc1155IncentiveAbi, 'limit'>): Promise<bigint>;
|
|
558
|
+
/**
|
|
559
|
+
* Description placeholder
|
|
560
|
+
*
|
|
561
|
+
* @public
|
|
562
|
+
* @async
|
|
563
|
+
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'tokenId'>} [params]
|
|
564
|
+
* @returns {unknown}
|
|
565
|
+
*/
|
|
566
|
+
tokenId(params?: ReadParams<typeof erc1155IncentiveAbi, 'tokenId'>): Promise<bigint>;
|
|
567
|
+
/**
|
|
568
|
+
* Description placeholder
|
|
569
|
+
*
|
|
570
|
+
* @public
|
|
571
|
+
* @async
|
|
572
|
+
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'extraData'>} [params]
|
|
573
|
+
* @returns {unknown}
|
|
574
|
+
*/
|
|
575
|
+
extraData(params?: ReadParams<typeof erc1155IncentiveAbi, 'extraData'>): Promise<`0x${string}`>;
|
|
576
|
+
/**
|
|
577
|
+
* Description placeholder
|
|
578
|
+
*
|
|
579
|
+
* @public
|
|
580
|
+
* @async
|
|
581
|
+
* @param {ClaimPayload} payload
|
|
582
|
+
* @param {?WriteParams<typeof erc1155IncentiveAbi, 'claim'>} [params]
|
|
583
|
+
* @returns {unknown}
|
|
584
|
+
*/
|
|
585
|
+
claim(payload: ClaimPayload, params?: WriteParams<typeof erc1155IncentiveAbi, 'claim'>): Promise<boolean>;
|
|
586
|
+
/**
|
|
587
|
+
* Description placeholder
|
|
588
|
+
*
|
|
589
|
+
* @public
|
|
590
|
+
* @async
|
|
591
|
+
* @param {ClaimPayload} payload
|
|
592
|
+
* @param {?WriteParams<typeof erc1155IncentiveAbi, 'claim'>} [params]
|
|
593
|
+
* @returns {unknown}
|
|
594
|
+
*/
|
|
595
|
+
claimRaw(payload: ClaimPayload, params?: WriteParams<typeof erc1155IncentiveAbi, 'claim'>): Promise<{
|
|
596
|
+
hash: `0x${string}`;
|
|
597
|
+
result: boolean;
|
|
598
|
+
}>;
|
|
599
|
+
/**
|
|
600
|
+
* Description placeholder
|
|
601
|
+
*
|
|
602
|
+
* @public
|
|
603
|
+
* @async
|
|
604
|
+
* @param {ClaimPayload} payload
|
|
605
|
+
* @param {?WriteParams<typeof erc1155IncentiveAbi, 'clawback'>} [params]
|
|
606
|
+
* @returns {unknown}
|
|
607
|
+
*/
|
|
608
|
+
clawback(payload: ClaimPayload, params?: WriteParams<typeof erc1155IncentiveAbi, 'clawback'>): Promise<boolean>;
|
|
609
|
+
/**
|
|
610
|
+
* Description placeholder
|
|
611
|
+
*
|
|
612
|
+
* @public
|
|
613
|
+
* @async
|
|
614
|
+
* @param {ClaimPayload} payload
|
|
615
|
+
* @param {?WriteParams<typeof erc1155IncentiveAbi, 'clawback'>} [params]
|
|
616
|
+
* @returns {unknown}
|
|
617
|
+
*/
|
|
618
|
+
clawbackRaw(payload: ClaimPayload, params?: WriteParams<typeof erc1155IncentiveAbi, 'clawback'>): Promise<{
|
|
619
|
+
hash: `0x${string}`;
|
|
620
|
+
result: boolean;
|
|
621
|
+
}>;
|
|
622
|
+
/**
|
|
623
|
+
* Description placeholder
|
|
624
|
+
*
|
|
625
|
+
* @public
|
|
626
|
+
* @async
|
|
627
|
+
* @param {ClaimPayload} payload
|
|
628
|
+
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'isClaimable'>} [params]
|
|
629
|
+
* @returns {unknown}
|
|
630
|
+
*/
|
|
631
|
+
isClaimable(payload: ClaimPayload, params?: ReadParams<typeof erc1155IncentiveAbi, 'isClaimable'>): Promise<boolean>;
|
|
632
|
+
/**
|
|
633
|
+
* Description placeholder
|
|
634
|
+
*
|
|
635
|
+
* @public
|
|
636
|
+
* @async
|
|
637
|
+
* @param {ERC1155IncentivePayload} data
|
|
638
|
+
* @param {?ReadParams<typeof erc1155IncentiveAbi, 'preflight'>} [params]
|
|
639
|
+
* @returns {unknown}
|
|
640
|
+
*/
|
|
641
|
+
preflight(data: ERC1155IncentivePayload, params?: ReadParams<typeof erc1155IncentiveAbi, 'preflight'>): Promise<`0x${string}`>;
|
|
642
|
+
/**
|
|
643
|
+
* @inheritdoc
|
|
644
|
+
*
|
|
645
|
+
* @public
|
|
646
|
+
* @param {?ERC1155IncentivePayload} [_payload]
|
|
647
|
+
* @param {?DeployableOptions} [_options]
|
|
648
|
+
* @returns {GenericDeployableParams}
|
|
649
|
+
*/
|
|
650
|
+
buildParameters(_payload?: ERC1155IncentivePayload, _options?: DeployableOptions): GenericDeployableParams;
|
|
651
|
+
}
|
|
652
|
+
//# sourceMappingURL=ERC1155Incentive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ERC1155Incentive.d.ts","sourceRoot":"","sources":["../../src/Incentives/ERC1155Incentive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAepB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAO,MAAM,MAAM,CAAC;AAC5D,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,WAAW,EAGjB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,m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