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