@boostxyz/sdk 6.1.3 → 7.0.0-canary.1
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/README.md +1 -1
- package/dist/Actions/Action.cjs +1 -1
- package/dist/Actions/Action.js +7 -7
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +10 -0
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +77 -76
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.js +5 -5
- package/dist/AllowLists/SimpleAllowList.cjs +1 -1
- package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
- package/dist/AllowLists/SimpleAllowList.js +17 -17
- package/dist/AllowLists/SimpleAllowList.js.map +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.js +3 -3
- package/dist/Auth/PassthroughAuth.cjs +1 -1
- package/dist/Auth/PassthroughAuth.js +1 -1
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +1894 -267
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +831 -520
- package/dist/BoostCore.js.map +1 -1
- package/dist/BoostRegistry.cjs +1 -1
- package/dist/BoostRegistry.js +48 -48
- package/dist/Budget-BgGihcwx.js +1124 -0
- package/dist/Budget-BgGihcwx.js.map +1 -0
- package/dist/Budget-DYlTLLwg.cjs +2 -0
- package/dist/Budget-DYlTLLwg.cjs.map +1 -0
- package/dist/Budgets/Budget.cjs +1 -1
- package/dist/Budgets/Budget.d.ts +5 -4
- package/dist/Budgets/Budget.d.ts.map +1 -1
- package/dist/Budgets/Budget.js +9 -6
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.cjs.map +1 -1
- package/dist/Budgets/ManagedBudget.d.ts +4 -0
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudget.js +22 -22
- package/dist/Budgets/ManagedBudgetWithFees.d.ts +4 -0
- package/dist/Budgets/ManagedBudgetWithFees.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudgetWithFeesV2.d.ts +4 -0
- package/dist/Budgets/ManagedBudgetWithFeesV2.d.ts.map +1 -1
- package/dist/Budgets/TransparentBudget.d.ts +944 -0
- package/dist/Budgets/TransparentBudget.d.ts.map +1 -0
- package/dist/Budgets/VestingBudget.d.ts +4 -0
- package/dist/Budgets/VestingBudget.d.ts.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.map +1 -1
- package/dist/Deployable/DeployableTarget.cjs +1 -1
- package/dist/Deployable/DeployableTarget.js +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
- package/dist/Deployable/DeployableTargetWithRBAC.js +20 -20
- package/dist/Incentive-BDqkFt0J.cjs +2 -0
- package/dist/Incentive-BDqkFt0J.cjs.map +1 -0
- package/dist/Incentive-DPOADY1f.js +449 -0
- package/dist/Incentive-DPOADY1f.js.map +1 -0
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
- package/dist/Incentives/AllowListIncentive.js +14 -14
- 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.js +11 -11
- package/dist/Incentives/CGDAIncentive.js.map +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +1 -1
- package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
- package/dist/Incentives/ERC20Incentive.js +14 -14
- package/dist/Incentives/ERC20Incentive.js.map +1 -1
- package/dist/Incentives/ERC20PeggedIncentive.d.ts +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs +2 -0
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.cjs.map +1 -0
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts +3 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js +604 -0
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.js.map +1 -0
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs +2 -0
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.cjs.map +1 -0
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.d.ts +1103 -0
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.d.ts.map +1 -0
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js +625 -0
- package/dist/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.js.map +1 -0
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts +11 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js +112 -80
- package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs +2 -0
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.cjs.map +1 -0
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.d.ts +903 -0
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.d.ts.map +1 -0
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js +242 -0
- package/dist/Incentives/ERC20VariableCriteriaIncentiveV2.js.map +1 -0
- package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
- package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.d.ts +3 -3
- package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20VariableIncentive.js +22 -22
- package/dist/Incentives/ERC20VariableIncentive.js.map +1 -1
- package/dist/Incentives/Incentive.cjs +1 -1
- package/dist/Incentives/Incentive.d.ts +8 -6
- package/dist/Incentives/Incentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.js +19 -14
- 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.js +9 -9
- package/dist/Incentives/PointsIncentive.js.map +1 -1
- package/dist/SimpleDenyList-B_AcmgYq.cjs +2 -0
- package/dist/{SimpleDenyList-DgjVf7FK.cjs.map → SimpleDenyList-B_AcmgYq.cjs.map} +1 -1
- package/dist/SimpleDenyList-BbDLzRw7.js +133 -0
- package/dist/{SimpleDenyList-BKfPoTo1.js.map → SimpleDenyList-BbDLzRw7.js.map} +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs +1 -1
- package/dist/Validators/LimitedSignerValidator.cjs.map +1 -1
- package/dist/Validators/LimitedSignerValidator.js +13 -13
- package/dist/Validators/LimitedSignerValidator.js.map +1 -1
- package/dist/Validators/SignerValidator.cjs +1 -1
- package/dist/Validators/SignerValidator.cjs.map +1 -1
- package/dist/Validators/SignerValidator.js +52 -52
- package/dist/Validators/SignerValidator.js.map +1 -1
- package/dist/Validators/Validator.cjs +1 -1
- package/dist/Validators/Validator.js +2 -2
- package/dist/componentInterfaces-C5ig8mCK.cjs +2 -0
- package/dist/componentInterfaces-C5ig8mCK.cjs.map +1 -0
- package/dist/componentInterfaces-Ddus5rIA.js +23 -0
- package/dist/componentInterfaces-Ddus5rIA.js.map +1 -0
- package/dist/deployments-C17nvui-.cjs +2 -0
- package/dist/deployments-C17nvui-.cjs.map +1 -0
- package/dist/deployments-CH4Xmkbv.js +132 -0
- package/dist/{deployments-W_LUj833.js.map → deployments-CH4Xmkbv.js.map} +1 -1
- package/dist/deployments.json +63 -48
- package/dist/{generated-CElkFqkY.js → generated-CINzoGbl.js} +2611 -955
- package/dist/generated-CINzoGbl.js.map +1 -0
- package/dist/generated-C_JEoLDO.cjs +3 -0
- package/dist/generated-C_JEoLDO.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +167 -154
- package/dist/index.js.map +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +20 -2
- package/src/Actions/EventAction.ts +11 -0
- package/src/BoostCore.test.ts +14 -9
- package/src/BoostCore.ts +428 -26
- package/src/Budgets/Budget.ts +8 -1
- package/src/Budgets/TransparentBudget.test.ts +70 -0
- package/src/Budgets/TransparentBudget.ts +334 -0
- package/src/Deployable/Deployable.ts +1 -1
- package/src/Incentives/ERC20PeggedIncentive.ts +1 -1
- package/src/Incentives/ERC20PeggedVariableCriteriaIncentive.ts +3 -1
- package/src/Incentives/{ERC20PeggedVariableCriteriaIncentive.test.ts → ERC20PeggedVariableCriteriaIncentiveV2.test.ts} +20 -16
- package/src/Incentives/ERC20PeggedVariableCriteriaIncentiveV2.ts +872 -0
- package/src/Incentives/ERC20VariableCriteriaIncentive.ts +50 -1
- package/src/Incentives/{ERC20VariableCriteriaIncentive.test.ts → ERC20VariableCriteriaIncentiveV2.test.ts} +24 -19
- package/src/Incentives/ERC20VariableCriteriaIncentiveV2.ts +447 -0
- package/src/Incentives/ERC20VariableIncentive.ts +4 -2
- package/src/Incentives/Incentive.ts +13 -2
- package/src/index.test.ts +2 -2
- package/src/index.ts +3 -0
- package/src/utils.ts +1 -1
- package/dist/Budget-BjfL8dVX.cjs +0 -2
- package/dist/Budget-BjfL8dVX.cjs.map +0 -1
- package/dist/Budget-DD7IPuDx.js +0 -922
- package/dist/Budget-DD7IPuDx.js.map +0 -1
- package/dist/Incentive-V1RjH38L.js +0 -1036
- package/dist/Incentive-V1RjH38L.js.map +0 -1
- package/dist/Incentive-gVTfsnMB.cjs +0 -2
- package/dist/Incentive-gVTfsnMB.cjs.map +0 -1
- package/dist/SimpleDenyList-BKfPoTo1.js +0 -133
- package/dist/SimpleDenyList-DgjVf7FK.cjs +0 -2
- package/dist/componentInterfaces-CA1UIqWL.js +0 -20
- package/dist/componentInterfaces-CA1UIqWL.js.map +0 -1
- package/dist/componentInterfaces-aBgBbB7r.cjs +0 -2
- package/dist/componentInterfaces-aBgBbB7r.cjs.map +0 -1
- package/dist/deployments-CwTZr-cK.cjs +0 -2
- package/dist/deployments-CwTZr-cK.cjs.map +0 -1
- package/dist/deployments-W_LUj833.js +0 -117
- package/dist/generated-BPiHi7W2.cjs +0 -3
- package/dist/generated-BPiHi7W2.cjs.map +0 -1
- package/dist/generated-CElkFqkY.js.map +0 -1
|
@@ -0,0 +1,903 @@
|
|
|
1
|
+
import { erc20VariableCriteriaIncentiveV2Abi } from '@boostxyz/evm';
|
|
2
|
+
import { type AbiEvent, type AbiFunction, type Address, type Hex } from 'viem';
|
|
3
|
+
import { SignatureType, ValueType } from '../Actions/EventAction';
|
|
4
|
+
import type { DeployableOptions, GenericDeployableParams } from '../Deployable/Deployable';
|
|
5
|
+
import { type ReadParams } from '../utils';
|
|
6
|
+
import { ERC20VariableIncentive } from './ERC20VariableIncentive';
|
|
7
|
+
export { erc20VariableCriteriaIncentiveV2Abi };
|
|
8
|
+
export interface ERC20VariableCriteriaIncentiveV2Payload {
|
|
9
|
+
/**
|
|
10
|
+
* The address of the incentivized asset.
|
|
11
|
+
*
|
|
12
|
+
* @type {Address}
|
|
13
|
+
*/
|
|
14
|
+
asset: Address;
|
|
15
|
+
/**
|
|
16
|
+
* The amount of the asset to distribute as reward.
|
|
17
|
+
*
|
|
18
|
+
* @type {bigint}
|
|
19
|
+
*/
|
|
20
|
+
reward: bigint;
|
|
21
|
+
/**
|
|
22
|
+
* The total spending limit of the asset that will be distributed.
|
|
23
|
+
*
|
|
24
|
+
* @type {bigint}
|
|
25
|
+
*/
|
|
26
|
+
limit: bigint;
|
|
27
|
+
/**
|
|
28
|
+
* The total amount claimable in a single claim or maximum per-action reward.
|
|
29
|
+
*
|
|
30
|
+
* @type {bigint}
|
|
31
|
+
* @optional
|
|
32
|
+
*/
|
|
33
|
+
maxReward?: bigint;
|
|
34
|
+
/**
|
|
35
|
+
* The criteria for the incentive that determines how the reward is distributed.
|
|
36
|
+
*
|
|
37
|
+
* @type {IncentiveCriteria}
|
|
38
|
+
*/
|
|
39
|
+
criteria: IncentiveCriteriaV2;
|
|
40
|
+
}
|
|
41
|
+
export interface IncentiveCriteriaV2 {
|
|
42
|
+
/**
|
|
43
|
+
* The type of criteria used, either function signature or event signature.
|
|
44
|
+
*
|
|
45
|
+
* @type {SignatureType}
|
|
46
|
+
*/
|
|
47
|
+
criteriaType: SignatureType;
|
|
48
|
+
/**
|
|
49
|
+
* The function or event signature used for criteria matching.
|
|
50
|
+
*
|
|
51
|
+
* @type {Hex}
|
|
52
|
+
*/
|
|
53
|
+
signature: Hex;
|
|
54
|
+
/**
|
|
55
|
+
* The index of the field from where the scalar value is extracted.
|
|
56
|
+
*
|
|
57
|
+
* @type {number}
|
|
58
|
+
*/
|
|
59
|
+
fieldIndex: number;
|
|
60
|
+
/**
|
|
61
|
+
* The address of the contract where the event/function is called/emitted.
|
|
62
|
+
*
|
|
63
|
+
* @type {Address}
|
|
64
|
+
*/
|
|
65
|
+
targetContract: Address;
|
|
66
|
+
/**
|
|
67
|
+
* The type of value used for the scalar value (RAW or WAD).
|
|
68
|
+
* - RAW: Raw integer value (e.g., NFT quantity)
|
|
69
|
+
* - WAD: Value with 18 decimals (e.g., token amount)
|
|
70
|
+
*
|
|
71
|
+
* @type {ValueType}
|
|
72
|
+
*/
|
|
73
|
+
valueType: ValueType;
|
|
74
|
+
}
|
|
75
|
+
export interface ReadIncentiveCriteriaV2Params extends ReadParams {
|
|
76
|
+
}
|
|
77
|
+
export interface GetIncentiveScalarV2Params {
|
|
78
|
+
chainId: number;
|
|
79
|
+
hash: Hex;
|
|
80
|
+
knownSignatures: Record<Hex, AbiFunction | AbiEvent>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Extended ERC20 Variable Criteria Incentive class that fetches incentive criteria and scalar
|
|
84
|
+
*
|
|
85
|
+
* @export
|
|
86
|
+
* @class ERC20VariableCriteriaIncentive
|
|
87
|
+
* @typedef {ERC20VariableCriteriaIncentiveV2}
|
|
88
|
+
* @extends {ERC20VariableIncentive<ERC20VariableCriteriaIncentiveV2Payload, typeof erc20VariableCriteriaIncentiveV2Abi>}
|
|
89
|
+
*/
|
|
90
|
+
export declare class ERC20VariableCriteriaIncentiveV2 extends ERC20VariableIncentive<ERC20VariableCriteriaIncentiveV2Payload, typeof erc20VariableCriteriaIncentiveV2Abi, Promise<bigint>> {
|
|
91
|
+
readonly abi: readonly [{
|
|
92
|
+
readonly type: "error";
|
|
93
|
+
readonly inputs: readonly [];
|
|
94
|
+
readonly name: "AlreadyInitialized";
|
|
95
|
+
}, {
|
|
96
|
+
readonly type: "error";
|
|
97
|
+
readonly inputs: readonly [];
|
|
98
|
+
readonly name: "ClaimFailed";
|
|
99
|
+
}, {
|
|
100
|
+
readonly type: "error";
|
|
101
|
+
readonly inputs: readonly [];
|
|
102
|
+
readonly name: "CloneAlreadyInitialized";
|
|
103
|
+
}, {
|
|
104
|
+
readonly type: "error";
|
|
105
|
+
readonly inputs: readonly [];
|
|
106
|
+
readonly name: "InitializerNotImplemented";
|
|
107
|
+
}, {
|
|
108
|
+
readonly type: "error";
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly name: "asset";
|
|
111
|
+
readonly internalType: "address";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "available";
|
|
115
|
+
readonly internalType: "uint256";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "required";
|
|
119
|
+
readonly internalType: "uint256";
|
|
120
|
+
readonly type: "uint256";
|
|
121
|
+
}];
|
|
122
|
+
readonly name: "InsufficientFunds";
|
|
123
|
+
}, {
|
|
124
|
+
readonly type: "error";
|
|
125
|
+
readonly inputs: readonly [];
|
|
126
|
+
readonly name: "InvalidInitialization";
|
|
127
|
+
}, {
|
|
128
|
+
readonly type: "error";
|
|
129
|
+
readonly inputs: readonly [];
|
|
130
|
+
readonly name: "InvalidInitialization";
|
|
131
|
+
}, {
|
|
132
|
+
readonly type: "error";
|
|
133
|
+
readonly inputs: readonly [];
|
|
134
|
+
readonly name: "InvalidInitializationData";
|
|
135
|
+
}, {
|
|
136
|
+
readonly type: "error";
|
|
137
|
+
readonly inputs: readonly [];
|
|
138
|
+
readonly name: "LengthMismatch";
|
|
139
|
+
}, {
|
|
140
|
+
readonly type: "error";
|
|
141
|
+
readonly inputs: readonly [];
|
|
142
|
+
readonly name: "NewOwnerIsZeroAddress";
|
|
143
|
+
}, {
|
|
144
|
+
readonly type: "error";
|
|
145
|
+
readonly inputs: readonly [];
|
|
146
|
+
readonly name: "NoHandoverRequest";
|
|
147
|
+
}, {
|
|
148
|
+
readonly type: "error";
|
|
149
|
+
readonly inputs: readonly [];
|
|
150
|
+
readonly name: "NotClaimable";
|
|
151
|
+
}, {
|
|
152
|
+
readonly type: "error";
|
|
153
|
+
readonly inputs: readonly [];
|
|
154
|
+
readonly name: "NotInitializing";
|
|
155
|
+
}, {
|
|
156
|
+
readonly type: "error";
|
|
157
|
+
readonly inputs: readonly [];
|
|
158
|
+
readonly name: "Unauthorized";
|
|
159
|
+
}, {
|
|
160
|
+
readonly type: "event";
|
|
161
|
+
readonly anonymous: false;
|
|
162
|
+
readonly inputs: readonly [{
|
|
163
|
+
readonly name: "recipient";
|
|
164
|
+
readonly internalType: "address";
|
|
165
|
+
readonly type: "address";
|
|
166
|
+
readonly indexed: true;
|
|
167
|
+
}, {
|
|
168
|
+
readonly name: "data";
|
|
169
|
+
readonly internalType: "bytes";
|
|
170
|
+
readonly type: "bytes";
|
|
171
|
+
readonly indexed: false;
|
|
172
|
+
}];
|
|
173
|
+
readonly name: "Claimed";
|
|
174
|
+
}, {
|
|
175
|
+
readonly type: "event";
|
|
176
|
+
readonly anonymous: false;
|
|
177
|
+
readonly inputs: readonly [{
|
|
178
|
+
readonly name: "asset";
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
readonly indexed: true;
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "reward";
|
|
184
|
+
readonly internalType: "uint256";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
readonly indexed: false;
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "limit";
|
|
189
|
+
readonly internalType: "uint256";
|
|
190
|
+
readonly type: "uint256";
|
|
191
|
+
readonly indexed: false;
|
|
192
|
+
}, {
|
|
193
|
+
readonly name: "maxReward";
|
|
194
|
+
readonly internalType: "uint256";
|
|
195
|
+
readonly type: "uint256";
|
|
196
|
+
readonly indexed: false;
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "criteria";
|
|
199
|
+
readonly internalType: "struct AERC20VariableCriteriaIncentiveV2.IncentiveCriteria";
|
|
200
|
+
readonly type: "tuple";
|
|
201
|
+
readonly components: readonly [{
|
|
202
|
+
readonly name: "criteriaType";
|
|
203
|
+
readonly internalType: "enum SignatureType";
|
|
204
|
+
readonly type: "uint8";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "signature";
|
|
207
|
+
readonly internalType: "bytes32";
|
|
208
|
+
readonly type: "bytes32";
|
|
209
|
+
}, {
|
|
210
|
+
readonly name: "fieldIndex";
|
|
211
|
+
readonly internalType: "uint8";
|
|
212
|
+
readonly type: "uint8";
|
|
213
|
+
}, {
|
|
214
|
+
readonly name: "targetContract";
|
|
215
|
+
readonly internalType: "address";
|
|
216
|
+
readonly type: "address";
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "valueType";
|
|
219
|
+
readonly internalType: "enum ValueType";
|
|
220
|
+
readonly type: "uint8";
|
|
221
|
+
}];
|
|
222
|
+
readonly indexed: false;
|
|
223
|
+
}];
|
|
224
|
+
readonly name: "ERC20VariableCriteriaIncentiveInitialized";
|
|
225
|
+
}, {
|
|
226
|
+
readonly type: "event";
|
|
227
|
+
readonly anonymous: false;
|
|
228
|
+
readonly inputs: readonly [{
|
|
229
|
+
readonly name: "asset";
|
|
230
|
+
readonly internalType: "address";
|
|
231
|
+
readonly type: "address";
|
|
232
|
+
readonly indexed: true;
|
|
233
|
+
}, {
|
|
234
|
+
readonly name: "reward";
|
|
235
|
+
readonly internalType: "uint256";
|
|
236
|
+
readonly type: "uint256";
|
|
237
|
+
readonly indexed: false;
|
|
238
|
+
}, {
|
|
239
|
+
readonly name: "limit";
|
|
240
|
+
readonly internalType: "uint256";
|
|
241
|
+
readonly type: "uint256";
|
|
242
|
+
readonly indexed: false;
|
|
243
|
+
}];
|
|
244
|
+
readonly name: "ERC20VariableIncentiveInitialized";
|
|
245
|
+
}, {
|
|
246
|
+
readonly type: "event";
|
|
247
|
+
readonly anonymous: false;
|
|
248
|
+
readonly inputs: readonly [{
|
|
249
|
+
readonly name: "version";
|
|
250
|
+
readonly internalType: "uint64";
|
|
251
|
+
readonly type: "uint64";
|
|
252
|
+
readonly indexed: false;
|
|
253
|
+
}];
|
|
254
|
+
readonly name: "Initialized";
|
|
255
|
+
}, {
|
|
256
|
+
readonly type: "event";
|
|
257
|
+
readonly anonymous: false;
|
|
258
|
+
readonly inputs: readonly [{
|
|
259
|
+
readonly name: "pendingOwner";
|
|
260
|
+
readonly internalType: "address";
|
|
261
|
+
readonly type: "address";
|
|
262
|
+
readonly indexed: true;
|
|
263
|
+
}];
|
|
264
|
+
readonly name: "OwnershipHandoverCanceled";
|
|
265
|
+
}, {
|
|
266
|
+
readonly type: "event";
|
|
267
|
+
readonly anonymous: false;
|
|
268
|
+
readonly inputs: readonly [{
|
|
269
|
+
readonly name: "pendingOwner";
|
|
270
|
+
readonly internalType: "address";
|
|
271
|
+
readonly type: "address";
|
|
272
|
+
readonly indexed: true;
|
|
273
|
+
}];
|
|
274
|
+
readonly name: "OwnershipHandoverRequested";
|
|
275
|
+
}, {
|
|
276
|
+
readonly type: "event";
|
|
277
|
+
readonly anonymous: false;
|
|
278
|
+
readonly inputs: readonly [{
|
|
279
|
+
readonly name: "oldOwner";
|
|
280
|
+
readonly internalType: "address";
|
|
281
|
+
readonly type: "address";
|
|
282
|
+
readonly indexed: true;
|
|
283
|
+
}, {
|
|
284
|
+
readonly name: "newOwner";
|
|
285
|
+
readonly internalType: "address";
|
|
286
|
+
readonly type: "address";
|
|
287
|
+
readonly indexed: true;
|
|
288
|
+
}];
|
|
289
|
+
readonly name: "OwnershipTransferred";
|
|
290
|
+
}, {
|
|
291
|
+
readonly type: "event";
|
|
292
|
+
readonly anonymous: false;
|
|
293
|
+
readonly inputs: readonly [{
|
|
294
|
+
readonly name: "user";
|
|
295
|
+
readonly internalType: "address";
|
|
296
|
+
readonly type: "address";
|
|
297
|
+
readonly indexed: true;
|
|
298
|
+
}, {
|
|
299
|
+
readonly name: "roles";
|
|
300
|
+
readonly internalType: "uint256";
|
|
301
|
+
readonly type: "uint256";
|
|
302
|
+
readonly indexed: true;
|
|
303
|
+
}];
|
|
304
|
+
readonly name: "RolesUpdated";
|
|
305
|
+
}, {
|
|
306
|
+
readonly type: "event";
|
|
307
|
+
readonly anonymous: false;
|
|
308
|
+
readonly inputs: readonly [{
|
|
309
|
+
readonly name: "sender";
|
|
310
|
+
readonly internalType: "address";
|
|
311
|
+
readonly type: "address";
|
|
312
|
+
readonly indexed: false;
|
|
313
|
+
}, {
|
|
314
|
+
readonly name: "amount";
|
|
315
|
+
readonly internalType: "uint256";
|
|
316
|
+
readonly type: "uint256";
|
|
317
|
+
readonly indexed: false;
|
|
318
|
+
}];
|
|
319
|
+
readonly name: "ToppedUp";
|
|
320
|
+
}, {
|
|
321
|
+
readonly type: "function";
|
|
322
|
+
readonly inputs: readonly [];
|
|
323
|
+
readonly name: "ADMIN_ROLE";
|
|
324
|
+
readonly outputs: readonly [{
|
|
325
|
+
readonly name: "";
|
|
326
|
+
readonly internalType: "uint256";
|
|
327
|
+
readonly type: "uint256";
|
|
328
|
+
}];
|
|
329
|
+
readonly stateMutability: "view";
|
|
330
|
+
}, {
|
|
331
|
+
readonly type: "function";
|
|
332
|
+
readonly inputs: readonly [];
|
|
333
|
+
readonly name: "MANAGER_ROLE";
|
|
334
|
+
readonly outputs: readonly [{
|
|
335
|
+
readonly name: "";
|
|
336
|
+
readonly internalType: "uint256";
|
|
337
|
+
readonly type: "uint256";
|
|
338
|
+
}];
|
|
339
|
+
readonly stateMutability: "view";
|
|
340
|
+
}, {
|
|
341
|
+
readonly type: "function";
|
|
342
|
+
readonly inputs: readonly [];
|
|
343
|
+
readonly name: "asset";
|
|
344
|
+
readonly outputs: readonly [{
|
|
345
|
+
readonly name: "";
|
|
346
|
+
readonly internalType: "address";
|
|
347
|
+
readonly type: "address";
|
|
348
|
+
}];
|
|
349
|
+
readonly stateMutability: "view";
|
|
350
|
+
}, {
|
|
351
|
+
readonly type: "function";
|
|
352
|
+
readonly inputs: readonly [];
|
|
353
|
+
readonly name: "cancelOwnershipHandover";
|
|
354
|
+
readonly outputs: readonly [];
|
|
355
|
+
readonly stateMutability: "payable";
|
|
356
|
+
}, {
|
|
357
|
+
readonly type: "function";
|
|
358
|
+
readonly inputs: readonly [{
|
|
359
|
+
readonly name: "claimTarget";
|
|
360
|
+
readonly internalType: "address";
|
|
361
|
+
readonly type: "address";
|
|
362
|
+
}, {
|
|
363
|
+
readonly name: "data_";
|
|
364
|
+
readonly internalType: "bytes";
|
|
365
|
+
readonly type: "bytes";
|
|
366
|
+
}];
|
|
367
|
+
readonly name: "claim";
|
|
368
|
+
readonly outputs: readonly [{
|
|
369
|
+
readonly name: "";
|
|
370
|
+
readonly internalType: "bool";
|
|
371
|
+
readonly type: "bool";
|
|
372
|
+
}];
|
|
373
|
+
readonly stateMutability: "nonpayable";
|
|
374
|
+
}, {
|
|
375
|
+
readonly type: "function";
|
|
376
|
+
readonly inputs: readonly [{
|
|
377
|
+
readonly name: "";
|
|
378
|
+
readonly internalType: "address";
|
|
379
|
+
readonly type: "address";
|
|
380
|
+
}];
|
|
381
|
+
readonly name: "claimed";
|
|
382
|
+
readonly outputs: readonly [{
|
|
383
|
+
readonly name: "";
|
|
384
|
+
readonly internalType: "bool";
|
|
385
|
+
readonly type: "bool";
|
|
386
|
+
}];
|
|
387
|
+
readonly stateMutability: "view";
|
|
388
|
+
}, {
|
|
389
|
+
readonly type: "function";
|
|
390
|
+
readonly inputs: readonly [];
|
|
391
|
+
readonly name: "claims";
|
|
392
|
+
readonly outputs: readonly [{
|
|
393
|
+
readonly name: "";
|
|
394
|
+
readonly internalType: "uint256";
|
|
395
|
+
readonly type: "uint256";
|
|
396
|
+
}];
|
|
397
|
+
readonly stateMutability: "view";
|
|
398
|
+
}, {
|
|
399
|
+
readonly type: "function";
|
|
400
|
+
readonly inputs: readonly [{
|
|
401
|
+
readonly name: "data_";
|
|
402
|
+
readonly internalType: "bytes";
|
|
403
|
+
readonly type: "bytes";
|
|
404
|
+
}];
|
|
405
|
+
readonly name: "clawback";
|
|
406
|
+
readonly outputs: readonly [{
|
|
407
|
+
readonly name: "";
|
|
408
|
+
readonly internalType: "uint256";
|
|
409
|
+
readonly type: "uint256";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "";
|
|
412
|
+
readonly internalType: "address";
|
|
413
|
+
readonly type: "address";
|
|
414
|
+
}];
|
|
415
|
+
readonly stateMutability: "nonpayable";
|
|
416
|
+
}, {
|
|
417
|
+
readonly type: "function";
|
|
418
|
+
readonly inputs: readonly [{
|
|
419
|
+
readonly name: "pendingOwner";
|
|
420
|
+
readonly internalType: "address";
|
|
421
|
+
readonly type: "address";
|
|
422
|
+
}];
|
|
423
|
+
readonly name: "completeOwnershipHandover";
|
|
424
|
+
readonly outputs: readonly [];
|
|
425
|
+
readonly stateMutability: "payable";
|
|
426
|
+
}, {
|
|
427
|
+
readonly type: "function";
|
|
428
|
+
readonly inputs: readonly [];
|
|
429
|
+
readonly name: "currentReward";
|
|
430
|
+
readonly outputs: readonly [{
|
|
431
|
+
readonly name: "";
|
|
432
|
+
readonly internalType: "uint256";
|
|
433
|
+
readonly type: "uint256";
|
|
434
|
+
}];
|
|
435
|
+
readonly stateMutability: "view";
|
|
436
|
+
}, {
|
|
437
|
+
readonly type: "function";
|
|
438
|
+
readonly inputs: readonly [];
|
|
439
|
+
readonly name: "getComponentInterface";
|
|
440
|
+
readonly outputs: readonly [{
|
|
441
|
+
readonly name: "";
|
|
442
|
+
readonly internalType: "bytes4";
|
|
443
|
+
readonly type: "bytes4";
|
|
444
|
+
}];
|
|
445
|
+
readonly stateMutability: "pure";
|
|
446
|
+
}, {
|
|
447
|
+
readonly type: "function";
|
|
448
|
+
readonly inputs: readonly [];
|
|
449
|
+
readonly name: "getIncentiveCriteria";
|
|
450
|
+
readonly outputs: readonly [{
|
|
451
|
+
readonly name: "";
|
|
452
|
+
readonly internalType: "struct AERC20VariableCriteriaIncentiveV2.IncentiveCriteria";
|
|
453
|
+
readonly type: "tuple";
|
|
454
|
+
readonly components: readonly [{
|
|
455
|
+
readonly name: "criteriaType";
|
|
456
|
+
readonly internalType: "enum SignatureType";
|
|
457
|
+
readonly type: "uint8";
|
|
458
|
+
}, {
|
|
459
|
+
readonly name: "signature";
|
|
460
|
+
readonly internalType: "bytes32";
|
|
461
|
+
readonly type: "bytes32";
|
|
462
|
+
}, {
|
|
463
|
+
readonly name: "fieldIndex";
|
|
464
|
+
readonly internalType: "uint8";
|
|
465
|
+
readonly type: "uint8";
|
|
466
|
+
}, {
|
|
467
|
+
readonly name: "targetContract";
|
|
468
|
+
readonly internalType: "address";
|
|
469
|
+
readonly type: "address";
|
|
470
|
+
}, {
|
|
471
|
+
readonly name: "valueType";
|
|
472
|
+
readonly internalType: "enum ValueType";
|
|
473
|
+
readonly type: "uint8";
|
|
474
|
+
}];
|
|
475
|
+
}];
|
|
476
|
+
readonly stateMutability: "view";
|
|
477
|
+
}, {
|
|
478
|
+
readonly type: "function";
|
|
479
|
+
readonly inputs: readonly [];
|
|
480
|
+
readonly name: "getMaxReward";
|
|
481
|
+
readonly outputs: readonly [{
|
|
482
|
+
readonly name: "";
|
|
483
|
+
readonly internalType: "uint256";
|
|
484
|
+
readonly type: "uint256";
|
|
485
|
+
}];
|
|
486
|
+
readonly stateMutability: "view";
|
|
487
|
+
}, {
|
|
488
|
+
readonly type: "function";
|
|
489
|
+
readonly inputs: readonly [{
|
|
490
|
+
readonly name: "accounts_";
|
|
491
|
+
readonly internalType: "address[]";
|
|
492
|
+
readonly type: "address[]";
|
|
493
|
+
}, {
|
|
494
|
+
readonly name: "roles_";
|
|
495
|
+
readonly internalType: "uint256[]";
|
|
496
|
+
readonly type: "uint256[]";
|
|
497
|
+
}];
|
|
498
|
+
readonly name: "grantManyRoles";
|
|
499
|
+
readonly outputs: readonly [];
|
|
500
|
+
readonly stateMutability: "nonpayable";
|
|
501
|
+
}, {
|
|
502
|
+
readonly type: "function";
|
|
503
|
+
readonly inputs: readonly [{
|
|
504
|
+
readonly name: "user";
|
|
505
|
+
readonly internalType: "address";
|
|
506
|
+
readonly type: "address";
|
|
507
|
+
}, {
|
|
508
|
+
readonly name: "roles";
|
|
509
|
+
readonly internalType: "uint256";
|
|
510
|
+
readonly type: "uint256";
|
|
511
|
+
}];
|
|
512
|
+
readonly name: "grantRoles";
|
|
513
|
+
readonly outputs: readonly [];
|
|
514
|
+
readonly stateMutability: "payable";
|
|
515
|
+
}, {
|
|
516
|
+
readonly type: "function";
|
|
517
|
+
readonly inputs: readonly [{
|
|
518
|
+
readonly name: "user";
|
|
519
|
+
readonly internalType: "address";
|
|
520
|
+
readonly type: "address";
|
|
521
|
+
}, {
|
|
522
|
+
readonly name: "roles";
|
|
523
|
+
readonly internalType: "uint256";
|
|
524
|
+
readonly type: "uint256";
|
|
525
|
+
}];
|
|
526
|
+
readonly name: "hasAllRoles";
|
|
527
|
+
readonly outputs: readonly [{
|
|
528
|
+
readonly name: "";
|
|
529
|
+
readonly internalType: "bool";
|
|
530
|
+
readonly type: "bool";
|
|
531
|
+
}];
|
|
532
|
+
readonly stateMutability: "view";
|
|
533
|
+
}, {
|
|
534
|
+
readonly type: "function";
|
|
535
|
+
readonly inputs: readonly [{
|
|
536
|
+
readonly name: "user";
|
|
537
|
+
readonly internalType: "address";
|
|
538
|
+
readonly type: "address";
|
|
539
|
+
}, {
|
|
540
|
+
readonly name: "roles";
|
|
541
|
+
readonly internalType: "uint256";
|
|
542
|
+
readonly type: "uint256";
|
|
543
|
+
}];
|
|
544
|
+
readonly name: "hasAnyRole";
|
|
545
|
+
readonly outputs: readonly [{
|
|
546
|
+
readonly name: "";
|
|
547
|
+
readonly internalType: "bool";
|
|
548
|
+
readonly type: "bool";
|
|
549
|
+
}];
|
|
550
|
+
readonly stateMutability: "view";
|
|
551
|
+
}, {
|
|
552
|
+
readonly type: "function";
|
|
553
|
+
readonly inputs: readonly [];
|
|
554
|
+
readonly name: "incentiveCriteria";
|
|
555
|
+
readonly outputs: readonly [{
|
|
556
|
+
readonly name: "criteriaType";
|
|
557
|
+
readonly internalType: "enum SignatureType";
|
|
558
|
+
readonly type: "uint8";
|
|
559
|
+
}, {
|
|
560
|
+
readonly name: "signature";
|
|
561
|
+
readonly internalType: "bytes32";
|
|
562
|
+
readonly type: "bytes32";
|
|
563
|
+
}, {
|
|
564
|
+
readonly name: "fieldIndex";
|
|
565
|
+
readonly internalType: "uint8";
|
|
566
|
+
readonly type: "uint8";
|
|
567
|
+
}, {
|
|
568
|
+
readonly name: "targetContract";
|
|
569
|
+
readonly internalType: "address";
|
|
570
|
+
readonly type: "address";
|
|
571
|
+
}, {
|
|
572
|
+
readonly name: "valueType";
|
|
573
|
+
readonly internalType: "enum ValueType";
|
|
574
|
+
readonly type: "uint8";
|
|
575
|
+
}];
|
|
576
|
+
readonly stateMutability: "view";
|
|
577
|
+
}, {
|
|
578
|
+
readonly type: "function";
|
|
579
|
+
readonly inputs: readonly [{
|
|
580
|
+
readonly name: "data_";
|
|
581
|
+
readonly internalType: "bytes";
|
|
582
|
+
readonly type: "bytes";
|
|
583
|
+
}];
|
|
584
|
+
readonly name: "initialize";
|
|
585
|
+
readonly outputs: readonly [];
|
|
586
|
+
readonly stateMutability: "nonpayable";
|
|
587
|
+
}, {
|
|
588
|
+
readonly type: "function";
|
|
589
|
+
readonly inputs: readonly [{
|
|
590
|
+
readonly name: "account_";
|
|
591
|
+
readonly internalType: "address";
|
|
592
|
+
readonly type: "address";
|
|
593
|
+
}];
|
|
594
|
+
readonly name: "isAuthorized";
|
|
595
|
+
readonly outputs: readonly [{
|
|
596
|
+
readonly name: "";
|
|
597
|
+
readonly internalType: "bool";
|
|
598
|
+
readonly type: "bool";
|
|
599
|
+
}];
|
|
600
|
+
readonly stateMutability: "view";
|
|
601
|
+
}, {
|
|
602
|
+
readonly type: "function";
|
|
603
|
+
readonly inputs: readonly [{
|
|
604
|
+
readonly name: "claimTarget";
|
|
605
|
+
readonly internalType: "address";
|
|
606
|
+
readonly type: "address";
|
|
607
|
+
}, {
|
|
608
|
+
readonly name: "";
|
|
609
|
+
readonly internalType: "bytes";
|
|
610
|
+
readonly type: "bytes";
|
|
611
|
+
}];
|
|
612
|
+
readonly name: "isClaimable";
|
|
613
|
+
readonly outputs: readonly [{
|
|
614
|
+
readonly name: "";
|
|
615
|
+
readonly internalType: "bool";
|
|
616
|
+
readonly type: "bool";
|
|
617
|
+
}];
|
|
618
|
+
readonly stateMutability: "view";
|
|
619
|
+
}, {
|
|
620
|
+
readonly type: "function";
|
|
621
|
+
readonly inputs: readonly [];
|
|
622
|
+
readonly name: "limit";
|
|
623
|
+
readonly outputs: readonly [{
|
|
624
|
+
readonly name: "";
|
|
625
|
+
readonly internalType: "uint256";
|
|
626
|
+
readonly type: "uint256";
|
|
627
|
+
}];
|
|
628
|
+
readonly stateMutability: "view";
|
|
629
|
+
}, {
|
|
630
|
+
readonly type: "function";
|
|
631
|
+
readonly inputs: readonly [];
|
|
632
|
+
readonly name: "maxReward";
|
|
633
|
+
readonly outputs: readonly [{
|
|
634
|
+
readonly name: "";
|
|
635
|
+
readonly internalType: "uint256";
|
|
636
|
+
readonly type: "uint256";
|
|
637
|
+
}];
|
|
638
|
+
readonly stateMutability: "view";
|
|
639
|
+
}, {
|
|
640
|
+
readonly type: "function";
|
|
641
|
+
readonly inputs: readonly [];
|
|
642
|
+
readonly name: "owner";
|
|
643
|
+
readonly outputs: readonly [{
|
|
644
|
+
readonly name: "result";
|
|
645
|
+
readonly internalType: "address";
|
|
646
|
+
readonly type: "address";
|
|
647
|
+
}];
|
|
648
|
+
readonly stateMutability: "view";
|
|
649
|
+
}, {
|
|
650
|
+
readonly type: "function";
|
|
651
|
+
readonly inputs: readonly [{
|
|
652
|
+
readonly name: "pendingOwner";
|
|
653
|
+
readonly internalType: "address";
|
|
654
|
+
readonly type: "address";
|
|
655
|
+
}];
|
|
656
|
+
readonly name: "ownershipHandoverExpiresAt";
|
|
657
|
+
readonly outputs: readonly [{
|
|
658
|
+
readonly name: "result";
|
|
659
|
+
readonly internalType: "uint256";
|
|
660
|
+
readonly type: "uint256";
|
|
661
|
+
}];
|
|
662
|
+
readonly stateMutability: "view";
|
|
663
|
+
}, {
|
|
664
|
+
readonly type: "function";
|
|
665
|
+
readonly inputs: readonly [{
|
|
666
|
+
readonly name: "data_";
|
|
667
|
+
readonly internalType: "bytes";
|
|
668
|
+
readonly type: "bytes";
|
|
669
|
+
}];
|
|
670
|
+
readonly name: "preflight";
|
|
671
|
+
readonly outputs: readonly [{
|
|
672
|
+
readonly name: "budgetData";
|
|
673
|
+
readonly internalType: "bytes";
|
|
674
|
+
readonly type: "bytes";
|
|
675
|
+
}];
|
|
676
|
+
readonly stateMutability: "view";
|
|
677
|
+
}, {
|
|
678
|
+
readonly type: "function";
|
|
679
|
+
readonly inputs: readonly [];
|
|
680
|
+
readonly name: "renounceOwnership";
|
|
681
|
+
readonly outputs: readonly [];
|
|
682
|
+
readonly stateMutability: "payable";
|
|
683
|
+
}, {
|
|
684
|
+
readonly type: "function";
|
|
685
|
+
readonly inputs: readonly [{
|
|
686
|
+
readonly name: "roles";
|
|
687
|
+
readonly internalType: "uint256";
|
|
688
|
+
readonly type: "uint256";
|
|
689
|
+
}];
|
|
690
|
+
readonly name: "renounceRoles";
|
|
691
|
+
readonly outputs: readonly [];
|
|
692
|
+
readonly stateMutability: "payable";
|
|
693
|
+
}, {
|
|
694
|
+
readonly type: "function";
|
|
695
|
+
readonly inputs: readonly [];
|
|
696
|
+
readonly name: "requestOwnershipHandover";
|
|
697
|
+
readonly outputs: readonly [];
|
|
698
|
+
readonly stateMutability: "payable";
|
|
699
|
+
}, {
|
|
700
|
+
readonly type: "function";
|
|
701
|
+
readonly inputs: readonly [{
|
|
702
|
+
readonly name: "accounts_";
|
|
703
|
+
readonly internalType: "address[]";
|
|
704
|
+
readonly type: "address[]";
|
|
705
|
+
}, {
|
|
706
|
+
readonly name: "roles_";
|
|
707
|
+
readonly internalType: "uint256[]";
|
|
708
|
+
readonly type: "uint256[]";
|
|
709
|
+
}];
|
|
710
|
+
readonly name: "revokeManyRoles";
|
|
711
|
+
readonly outputs: readonly [];
|
|
712
|
+
readonly stateMutability: "nonpayable";
|
|
713
|
+
}, {
|
|
714
|
+
readonly type: "function";
|
|
715
|
+
readonly inputs: readonly [{
|
|
716
|
+
readonly name: "user";
|
|
717
|
+
readonly internalType: "address";
|
|
718
|
+
readonly type: "address";
|
|
719
|
+
}, {
|
|
720
|
+
readonly name: "roles";
|
|
721
|
+
readonly internalType: "uint256";
|
|
722
|
+
readonly type: "uint256";
|
|
723
|
+
}];
|
|
724
|
+
readonly name: "revokeRoles";
|
|
725
|
+
readonly outputs: readonly [];
|
|
726
|
+
readonly stateMutability: "payable";
|
|
727
|
+
}, {
|
|
728
|
+
readonly type: "function";
|
|
729
|
+
readonly inputs: readonly [];
|
|
730
|
+
readonly name: "reward";
|
|
731
|
+
readonly outputs: readonly [{
|
|
732
|
+
readonly name: "";
|
|
733
|
+
readonly internalType: "uint256";
|
|
734
|
+
readonly type: "uint256";
|
|
735
|
+
}];
|
|
736
|
+
readonly stateMutability: "view";
|
|
737
|
+
}, {
|
|
738
|
+
readonly type: "function";
|
|
739
|
+
readonly inputs: readonly [{
|
|
740
|
+
readonly name: "user";
|
|
741
|
+
readonly internalType: "address";
|
|
742
|
+
readonly type: "address";
|
|
743
|
+
}];
|
|
744
|
+
readonly name: "rolesOf";
|
|
745
|
+
readonly outputs: readonly [{
|
|
746
|
+
readonly name: "roles";
|
|
747
|
+
readonly internalType: "uint256";
|
|
748
|
+
readonly type: "uint256";
|
|
749
|
+
}];
|
|
750
|
+
readonly stateMutability: "view";
|
|
751
|
+
}, {
|
|
752
|
+
readonly type: "function";
|
|
753
|
+
readonly inputs: readonly [{
|
|
754
|
+
readonly name: "accounts_";
|
|
755
|
+
readonly internalType: "address[]";
|
|
756
|
+
readonly type: "address[]";
|
|
757
|
+
}, {
|
|
758
|
+
readonly name: "authorized_";
|
|
759
|
+
readonly internalType: "bool[]";
|
|
760
|
+
readonly type: "bool[]";
|
|
761
|
+
}];
|
|
762
|
+
readonly name: "setAuthorized";
|
|
763
|
+
readonly outputs: readonly [];
|
|
764
|
+
readonly stateMutability: "nonpayable";
|
|
765
|
+
}, {
|
|
766
|
+
readonly type: "function";
|
|
767
|
+
readonly inputs: readonly [{
|
|
768
|
+
readonly name: "interfaceId";
|
|
769
|
+
readonly internalType: "bytes4";
|
|
770
|
+
readonly type: "bytes4";
|
|
771
|
+
}];
|
|
772
|
+
readonly name: "supportsInterface";
|
|
773
|
+
readonly outputs: readonly [{
|
|
774
|
+
readonly name: "";
|
|
775
|
+
readonly internalType: "bool";
|
|
776
|
+
readonly type: "bool";
|
|
777
|
+
}];
|
|
778
|
+
readonly stateMutability: "view";
|
|
779
|
+
}, {
|
|
780
|
+
readonly type: "function";
|
|
781
|
+
readonly inputs: readonly [{
|
|
782
|
+
readonly name: "amount";
|
|
783
|
+
readonly internalType: "uint256";
|
|
784
|
+
readonly type: "uint256";
|
|
785
|
+
}];
|
|
786
|
+
readonly name: "topup";
|
|
787
|
+
readonly outputs: readonly [];
|
|
788
|
+
readonly stateMutability: "nonpayable";
|
|
789
|
+
}, {
|
|
790
|
+
readonly type: "function";
|
|
791
|
+
readonly inputs: readonly [];
|
|
792
|
+
readonly name: "totalClaimed";
|
|
793
|
+
readonly outputs: readonly [{
|
|
794
|
+
readonly name: "";
|
|
795
|
+
readonly internalType: "uint256";
|
|
796
|
+
readonly type: "uint256";
|
|
797
|
+
}];
|
|
798
|
+
readonly stateMutability: "view";
|
|
799
|
+
}, {
|
|
800
|
+
readonly type: "function";
|
|
801
|
+
readonly inputs: readonly [{
|
|
802
|
+
readonly name: "newOwner";
|
|
803
|
+
readonly internalType: "address";
|
|
804
|
+
readonly type: "address";
|
|
805
|
+
}];
|
|
806
|
+
readonly name: "transferOwnership";
|
|
807
|
+
readonly outputs: readonly [];
|
|
808
|
+
readonly stateMutability: "payable";
|
|
809
|
+
}];
|
|
810
|
+
/**
|
|
811
|
+
* @inheritdoc
|
|
812
|
+
*
|
|
813
|
+
* @public
|
|
814
|
+
* @static
|
|
815
|
+
* @type {Record<number, Address>}
|
|
816
|
+
*/
|
|
817
|
+
static bases: Record<number, Address>;
|
|
818
|
+
/**
|
|
819
|
+
*Functions from the ERC20VariableIncentive contract
|
|
820
|
+
*/
|
|
821
|
+
/**
|
|
822
|
+
* Fetches the IncentiveCriteria struct from the contract
|
|
823
|
+
*
|
|
824
|
+
* @param {?ReadParams} [params]
|
|
825
|
+
* @returns {Promise<IncentiveCriteria>} Incentive criteria structure
|
|
826
|
+
* @throws {IncentiveCriteriaNotFoundError}
|
|
827
|
+
*/
|
|
828
|
+
getIncentiveCriteria(params?: ReadParams): Promise<IncentiveCriteriaV2>;
|
|
829
|
+
/**
|
|
830
|
+
* Decodes claim data for the ERC20VariableCriteriaIncentiveV2, returning the claim amount.
|
|
831
|
+
* Useful when deriving amount claimed from logs.
|
|
832
|
+
*
|
|
833
|
+
* @public
|
|
834
|
+
* @param {Hex} claimData
|
|
835
|
+
* @returns {Promise<bigint>} Returns the reward amount from a claim data payload
|
|
836
|
+
*/
|
|
837
|
+
decodeClaimData(claimData: Hex): Promise<bigint>;
|
|
838
|
+
/**
|
|
839
|
+
* Fetches the IncentiveCriteria struct from the contract
|
|
840
|
+
*
|
|
841
|
+
* @param {?ReadParams} [params]
|
|
842
|
+
* @returns {Promise<IncentiveCriteria>} Incentive criteria structure
|
|
843
|
+
* @throws {IncentiveCriteriaNotFoundError}
|
|
844
|
+
*/
|
|
845
|
+
getMaxReward(params?: ReadParams): Promise<bigint>;
|
|
846
|
+
/**
|
|
847
|
+
* Fetches the incentive scalar from a transaction hash
|
|
848
|
+
*
|
|
849
|
+
* @param {GetIncentiveScalarParams} params
|
|
850
|
+
* @param {?ReadParams} [params]
|
|
851
|
+
* @returns {Promise<bigint>}
|
|
852
|
+
* @throws {InvalidCriteriaTypeError | NoMatchingLogsError | DecodedArgsError}
|
|
853
|
+
*/
|
|
854
|
+
getIncentiveScalar({ chainId, hash, knownSignatures }: GetIncentiveScalarV2Params, params?: ReadParams): Promise<bigint>;
|
|
855
|
+
/**
|
|
856
|
+
* @inheritdoc
|
|
857
|
+
*
|
|
858
|
+
* @public
|
|
859
|
+
* @param {?ERC20VariableCriteriaIncentiveV2Payload} [_payload]
|
|
860
|
+
* @param {?DeployableOptions} [_options]
|
|
861
|
+
* @returns {GenericDeployableParams}
|
|
862
|
+
*/
|
|
863
|
+
buildParameters(_payload?: ERC20VariableCriteriaIncentiveV2Payload, _options?: DeployableOptions): GenericDeployableParams;
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Creates an IncentiveCriteria object representing a gas rebate incentive.
|
|
867
|
+
* This object defines a variable incentive criteria where the criteria will be the gas spent.
|
|
868
|
+
*
|
|
869
|
+
* The criteria uses a signatureType of EVENT, with a special `fieldIndex` of 255 (using CheatCodes enum), which indicates
|
|
870
|
+
* that the entire gas cost of the transaction will be used as the scalar value. If you don't want to
|
|
871
|
+
* rebate the entire gas cost, you can use a reward value on the incentive..
|
|
872
|
+
*
|
|
873
|
+
* - `criteriaType`: EVENT, indicating it's based on event logs.
|
|
874
|
+
* - `signature`: A zeroed signature (0x0000...0000), matching any event.
|
|
875
|
+
* - `fieldIndex`: 255, indicating the use of transaction gas cost using CheatCodes enum.
|
|
876
|
+
* - `targetContract`: A zeroed address (0x0000...0000), applicable to any contract.
|
|
877
|
+
*
|
|
878
|
+
* @returns {IncentiveCriteria} Returns an IncentiveCriteria object for a gas rebate.
|
|
879
|
+
*
|
|
880
|
+
* @example
|
|
881
|
+
* const incentive = gasRebateIncentiveCriteria();
|
|
882
|
+
* const actionPayload = {
|
|
883
|
+
* criteria: incentive,
|
|
884
|
+
* asset: "0xAssetAddress",
|
|
885
|
+
* reward: 0, // Set to zero to rebate the entire gas cost
|
|
886
|
+
* limit: BigInt(1000) // This is the total spend limit for the incentive
|
|
887
|
+
* };
|
|
888
|
+
* deployIncentive(actionPayload);
|
|
889
|
+
*/
|
|
890
|
+
export declare function gasRebateIncentiveCriteriaV2(): IncentiveCriteriaV2;
|
|
891
|
+
/**
|
|
892
|
+
*
|
|
893
|
+
*
|
|
894
|
+
* @param {InitPayloadExtended} param0
|
|
895
|
+
* @param {Address} param0.asset - The address of the ERC20 asset to incentivize.
|
|
896
|
+
* @param {bigint} param0.reward - The reward amount to distribute per action.
|
|
897
|
+
* @param {bigint} param0.limit - The total limit of the asset distribution.
|
|
898
|
+
* @param {bigint} param0.maxReward - The maximum value claimable from a single completion.
|
|
899
|
+
* @param {IncentiveCriteria} param0.criteria - The incentive criteria for reward distribution.
|
|
900
|
+
* @returns {Hex}
|
|
901
|
+
*/
|
|
902
|
+
export declare function prepareERC20VariableCriteriaIncentiveV2Payload({ asset, reward, limit, maxReward, criteria, }: ERC20VariableCriteriaIncentiveV2Payload): `0x${string}`;
|
|
903
|
+
//# sourceMappingURL=ERC20VariableCriteriaIncentiveV2.d.ts.map
|