@boostxyz/sdk 0.0.0-alpha.2 → 0.0.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Actions/Action.cjs +2 -1
- package/dist/Actions/Action.cjs.map +1 -0
- package/dist/Actions/Action.d.ts +1 -1
- package/dist/Actions/Action.d.ts.map +1 -1
- package/dist/Actions/Action.js +14 -12
- package/dist/Actions/Action.js.map +1 -0
- package/dist/Actions/ContractAction.d.ts +57 -14
- package/dist/Actions/ContractAction.d.ts.map +1 -1
- package/dist/Actions/ERC721MintAction.d.ts +50 -23
- package/dist/Actions/ERC721MintAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.cjs +2 -1
- package/dist/Actions/EventAction.cjs.map +1 -0
- package/dist/Actions/EventAction.d.ts +405 -36
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +15 -209
- package/dist/Actions/EventAction.js.map +1 -0
- package/dist/AllowLists/AllowList.cjs +2 -1
- package/dist/AllowLists/AllowList.cjs.map +1 -0
- package/dist/AllowLists/AllowList.d.ts +6 -5
- package/dist/AllowLists/AllowList.d.ts.map +1 -1
- package/dist/AllowLists/AllowList.js +46 -22
- package/dist/AllowLists/AllowList.js.map +1 -0
- package/dist/AllowLists/OpenAllowList.d.ts +423 -0
- package/dist/AllowLists/OpenAllowList.d.ts.map +1 -0
- package/dist/AllowLists/SimpleAllowList.cjs +2 -1
- package/dist/AllowLists/SimpleAllowList.cjs.map +1 -0
- package/dist/AllowLists/SimpleAllowList.d.ts +124 -40
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleAllowList.js +76 -76
- package/dist/AllowLists/SimpleAllowList.js.map +1 -0
- package/dist/AllowLists/SimpleDenyList.cjs +2 -1
- package/dist/AllowLists/SimpleDenyList.cjs.map +1 -0
- package/dist/AllowLists/SimpleDenyList.d.ts +234 -13
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleDenyList.js +12 -200
- package/dist/AllowLists/SimpleDenyList.js.map +1 -0
- package/dist/Auth/Auth.cjs +1 -0
- package/dist/Auth/Auth.cjs.map +1 -0
- package/dist/Auth/Auth.js +1 -0
- package/dist/Auth/Auth.js.map +1 -0
- package/dist/Auth/PassthroughAuth.cjs +2 -1
- package/dist/Auth/PassthroughAuth.cjs.map +1 -0
- package/dist/Auth/PassthroughAuth.js +5 -4
- package/dist/Auth/PassthroughAuth.js.map +1 -0
- package/dist/Boost.cjs +2 -1
- package/dist/Boost.cjs.map +1 -0
- package/dist/Boost.d.ts +105 -14
- package/dist/Boost.d.ts.map +1 -1
- package/dist/Boost.js +138 -5
- package/dist/Boost.js.map +1 -0
- package/dist/BoostCore-DolmDuXW.cjs +3 -0
- package/dist/BoostCore-DolmDuXW.cjs.map +1 -0
- package/dist/BoostCore-Z97KVu4V.js +1448 -0
- package/dist/BoostCore-Z97KVu4V.js.map +1 -0
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -0
- package/dist/BoostCore.d.ts +788 -79
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +30 -1103
- package/dist/BoostCore.js.map +1 -0
- package/dist/BoostRegistry.cjs +2 -1
- package/dist/BoostRegistry.cjs.map +1 -0
- package/dist/BoostRegistry.d.ts +95 -26
- package/dist/BoostRegistry.d.ts.map +1 -1
- package/dist/BoostRegistry.js +183 -89
- package/dist/BoostRegistry.js.map +1 -0
- package/dist/Budgets/Budget.cjs +2 -1
- package/dist/Budgets/Budget.cjs.map +1 -0
- package/dist/Budgets/Budget.d.ts +1 -1
- package/dist/Budgets/Budget.d.ts.map +1 -1
- package/dist/Budgets/Budget.js +15 -13
- package/dist/Budgets/Budget.js.map +1 -0
- package/dist/Budgets/ManagedBudget.cjs +2 -1
- package/dist/Budgets/ManagedBudget.cjs.map +1 -0
- package/dist/Budgets/ManagedBudget.d.ts +112 -192
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudget.js +91 -291
- package/dist/Budgets/ManagedBudget.js.map +1 -0
- package/dist/Budgets/VestingBudget.d.ts +277 -91
- package/dist/Budgets/VestingBudget.d.ts.map +1 -1
- package/dist/Deployable/Contract.cjs +2 -1
- package/dist/Deployable/Contract.cjs.map +1 -0
- package/dist/Deployable/Contract.d.ts +4 -5
- package/dist/Deployable/Contract.d.ts.map +1 -1
- package/dist/Deployable/Contract.js +7 -8
- package/dist/Deployable/Contract.js.map +1 -0
- package/dist/Deployable/Deployable.cjs +1 -0
- package/dist/Deployable/Deployable.cjs.map +1 -0
- package/dist/Deployable/Deployable.d.ts +9 -3
- package/dist/Deployable/Deployable.d.ts.map +1 -1
- package/dist/Deployable/Deployable.js +10 -5
- package/dist/Deployable/Deployable.js.map +1 -0
- package/dist/Deployable/DeployableTarget.cjs +2 -1
- package/dist/Deployable/DeployableTarget.cjs.map +1 -0
- package/dist/Deployable/DeployableTarget.d.ts +16 -15
- package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.js +49 -42
- package/dist/Deployable/DeployableTarget.js.map +1 -0
- package/dist/Deployable/DeployableTargetWithRBAC.cjs +2 -0
- package/dist/Deployable/DeployableTargetWithRBAC.cjs.map +1 -0
- package/dist/Deployable/DeployableTargetWithRBAC.d.ts +179 -0
- package/dist/Deployable/DeployableTargetWithRBAC.d.ts.map +1 -0
- package/dist/Deployable/DeployableTargetWithRBAC.js +222 -0
- package/dist/Deployable/DeployableTargetWithRBAC.js.map +1 -0
- package/dist/EventAction-CBKzuNoN.cjs +2 -0
- package/dist/EventAction-CBKzuNoN.cjs.map +1 -0
- package/dist/EventAction-DWuuc_Qy.js +1528 -0
- package/dist/EventAction-DWuuc_Qy.js.map +1 -0
- package/dist/Incentive-BxzEtN26.js +298 -0
- package/dist/Incentive-BxzEtN26.js.map +1 -0
- package/dist/Incentive-CrF3-ayL.cjs +2 -0
- package/dist/Incentive-CrF3-ayL.cjs.map +1 -0
- package/dist/Incentives/AllowListIncentive.cjs +2 -1
- package/dist/Incentives/AllowListIncentive.cjs.map +1 -0
- package/dist/Incentives/AllowListIncentive.d.ts +65 -21
- package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
- package/dist/Incentives/AllowListIncentive.js +52 -36
- package/dist/Incentives/AllowListIncentive.js.map +1 -0
- package/dist/Incentives/CGDAIncentive.cjs +2 -1
- package/dist/Incentives/CGDAIncentive.cjs.map +1 -0
- package/dist/Incentives/CGDAIncentive.d.ts +315 -26
- package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
- package/dist/Incentives/CGDAIncentive.js +64 -39
- package/dist/Incentives/CGDAIncentive.js.map +1 -0
- package/dist/Incentives/ERC1155Incentive.d.ts +291 -43
- package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.cjs +2 -1
- package/dist/Incentives/ERC20Incentive.cjs.map +1 -0
- package/dist/Incentives/ERC20Incentive.d.ts +270 -33
- package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
- package/dist/Incentives/ERC20Incentive.js +69 -46
- package/dist/Incentives/ERC20Incentive.js.map +1 -0
- package/dist/{Budgets/SimpleBudget.d.ts → Incentives/ERC20VariableCriteriaIncentive.d.ts} +338 -421
- package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts +262 -32
- package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.cjs +2 -1
- package/dist/Incentives/Incentive.cjs.map +1 -0
- package/dist/Incentives/Incentive.d.ts +5 -8
- package/dist/Incentives/Incentive.d.ts.map +1 -1
- package/dist/Incentives/Incentive.js +17 -278
- package/dist/Incentives/Incentive.js.map +1 -0
- package/dist/Incentives/PointsIncentive.cjs +2 -1
- package/dist/Incentives/PointsIncentive.cjs.map +1 -0
- package/dist/Incentives/PointsIncentive.d.ts +81 -23
- package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
- package/dist/Incentives/PointsIncentive.js +57 -36
- package/dist/Incentives/PointsIncentive.js.map +1 -0
- package/dist/SimpleDenyList-BUR17Tt1.cjs +2 -0
- package/dist/SimpleDenyList-BUR17Tt1.cjs.map +1 -0
- package/dist/SimpleDenyList-CGaWjuld.js +132 -0
- package/dist/SimpleDenyList-CGaWjuld.js.map +1 -0
- package/dist/Validators/SignerValidator.cjs +2 -1
- package/dist/Validators/SignerValidator.cjs.map +1 -0
- package/dist/Validators/SignerValidator.d.ts +310 -17
- package/dist/Validators/SignerValidator.d.ts.map +1 -1
- package/dist/Validators/SignerValidator.js +165 -36
- package/dist/Validators/SignerValidator.js.map +1 -0
- package/dist/Validators/Validator.cjs +2 -1
- package/dist/Validators/Validator.cjs.map +1 -0
- package/dist/Validators/Validator.d.ts +2 -2
- package/dist/Validators/Validator.d.ts.map +1 -1
- package/dist/Validators/Validator.js +10 -8
- 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-BBCFkrZv.js +14 -0
- package/dist/componentInterfaces-BBCFkrZv.js.map +1 -0
- package/dist/componentInterfaces-DRI_dQ-P.cjs +2 -0
- package/dist/componentInterfaces-DRI_dQ-P.cjs.map +1 -0
- package/dist/deployments-DVXioW2i.cjs +2 -0
- package/dist/deployments-DVXioW2i.cjs.map +1 -0
- package/dist/deployments-oykLv3_Z.js +43 -0
- package/dist/deployments-oykLv3_Z.js.map +1 -0
- package/dist/deployments.json +44 -0
- package/dist/errors.cjs +2 -1
- package/dist/errors.cjs.map +1 -0
- package/dist/errors.d.ts +421 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +297 -39
- package/dist/errors.js.map +1 -0
- package/dist/{generated-x_abr3Yv.js → generated-CKt2yCQd.js} +3143 -3002
- package/dist/generated-CKt2yCQd.js.map +1 -0
- package/dist/generated-CyTNlOwM.cjs +3 -0
- package/dist/generated-CyTNlOwM.cjs.map +1 -0
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +10 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +144 -1353
- 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 -1
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.d.ts +26 -1350
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +38 -636
- package/dist/utils.js.map +1 -0
- package/package.json +37 -11
- package/src/Actions/Action.test.ts +79 -0
- package/src/Actions/Action.ts +61 -0
- package/src/Actions/ContractAction.test.ts +197 -0
- package/src/Actions/ContractAction.ts +300 -0
- package/src/Actions/ERC721MintAction.test.ts +112 -0
- package/src/Actions/ERC721MintAction.ts +291 -0
- package/src/Actions/EventAction.test.ts +787 -0
- package/src/Actions/EventAction.ts +1218 -0
- package/src/AllowLists/AllowList.test.ts +64 -0
- package/src/AllowLists/AllowList.ts +62 -0
- package/src/AllowLists/OpenAllowList.test.ts +40 -0
- package/src/AllowLists/OpenAllowList.ts +45 -0
- package/src/AllowLists/SimpleAllowList.test.ts +52 -0
- package/src/AllowLists/SimpleAllowList.ts +262 -0
- package/src/AllowLists/SimpleDenyList.test.ts +52 -0
- package/src/AllowLists/SimpleDenyList.ts +250 -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 +287 -0
- package/src/BoostCore.test.ts +894 -0
- package/src/BoostCore.ts +1438 -0
- package/src/BoostRegistry.test.ts +53 -0
- package/src/BoostRegistry.ts +588 -0
- package/src/Budgets/Budget.test.ts +27 -0
- package/src/Budgets/Budget.ts +60 -0
- package/src/Budgets/ManagedBudget.test.ts +217 -0
- package/src/Budgets/ManagedBudget.ts +534 -0
- package/src/Budgets/VestingBudget.test.ts +123 -0
- package/src/Budgets/VestingBudget.ts +530 -0
- package/src/Deployable/Contract.ts +228 -0
- package/src/Deployable/Deployable.ts +250 -0
- package/src/Deployable/DeployableTarget.ts +234 -0
- package/src/Deployable/DeployableTargetWithRBAC.ts +323 -0
- package/src/Incentives/AllowListIncentive.test.ts +143 -0
- package/src/Incentives/AllowListIncentive.ts +336 -0
- package/src/Incentives/CGDAIncentive.test.ts +135 -0
- package/src/Incentives/CGDAIncentive.ts +476 -0
- package/src/Incentives/ERC1155Incentive.test.ts +87 -0
- package/src/Incentives/ERC1155Incentive.ts +465 -0
- package/src/Incentives/ERC20Incentive.test.ts +133 -0
- package/src/Incentives/ERC20Incentive.ts +490 -0
- package/src/Incentives/ERC20VariableCriteriaIncentive.test.ts +184 -0
- package/src/Incentives/ERC20VariableCriteriaIncentive.ts +309 -0
- package/src/Incentives/ERC20VariableIncentive.test.ts +139 -0
- package/src/Incentives/ERC20VariableIncentive.ts +428 -0
- package/src/Incentives/Incentive.test.ts +95 -0
- package/src/Incentives/Incentive.ts +86 -0
- package/src/Incentives/PointsIncentive.test.ts +138 -0
- package/src/Incentives/PointsIncentive.ts +367 -0
- package/src/Validators/SignerValidator.test.ts +159 -0
- package/src/Validators/SignerValidator.ts +683 -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 +866 -0
- package/src/index.test.ts +122 -0
- package/src/index.ts +58 -0
- package/src/transfers.ts +284 -0
- package/src/utils.test.ts +44 -0
- package/src/utils.ts +247 -0
- package/dist/Budgets/SimpleBudget.d.ts.map +0 -1
- package/dist/generated-BaaleHW-.cjs +0 -2
package/dist/BoostCore.d.ts
CHANGED
|
@@ -1,31 +1,52 @@
|
|
|
1
1
|
import { boostCoreAbi, type iAuthAbi } from '@boostxyz/evm';
|
|
2
|
+
import { type GetTransactionReceiptParameters } from '@wagmi/core';
|
|
2
3
|
import { type Address, type ContractEventName, type Hex } from 'viem';
|
|
3
4
|
import { type Action } from './Actions/Action';
|
|
4
|
-
import { EventAction } from './Actions/EventAction';
|
|
5
|
+
import { EventAction, type EventActionPayload } from './Actions/EventAction';
|
|
5
6
|
import { type AllowList } from './AllowLists/AllowList';
|
|
7
|
+
import { OpenAllowList } from './AllowLists/OpenAllowList';
|
|
6
8
|
import { SimpleAllowList, type SimpleAllowListPayload } from './AllowLists/SimpleAllowList';
|
|
7
9
|
import { SimpleDenyList, type SimpleDenyListPayload } from './AllowLists/SimpleDenyList';
|
|
8
10
|
import { type Auth, PassthroughAuth } from './Auth/Auth';
|
|
9
|
-
import { Boost } from './Boost';
|
|
11
|
+
import { Boost, type RawBoost } from './Boost';
|
|
10
12
|
import { type Budget } from './Budgets/Budget';
|
|
11
13
|
import { ManagedBudget, type ManagedBudgetPayload } from './Budgets/ManagedBudget';
|
|
12
14
|
import { Deployable, type DeployableOptions, type DeployablePayloadOrAddress, type GenericDeployableParams } from './Deployable/Deployable';
|
|
13
15
|
import { AllowListIncentive, type AllowListIncentivePayload } from './Incentives/AllowListIncentive';
|
|
14
16
|
import { CGDAIncentive, type CGDAIncentivePayload } from './Incentives/CGDAIncentive';
|
|
15
17
|
import { ERC20Incentive, type ERC20IncentivePayload } from './Incentives/ERC20Incentive';
|
|
18
|
+
import { ERC20VariableCriteriaIncentive, type ERC20VariableCriteriaIncentivePayload } from './Incentives/ERC20VariableCriteriaIncentive';
|
|
19
|
+
import type { ERC20VariableIncentivePayload } from './Incentives/ERC20VariableIncentive';
|
|
16
20
|
import { ERC20VariableIncentive, type Incentive } from './Incentives/Incentive';
|
|
17
21
|
import { PointsIncentive, type PointsIncentivePayload } from './Incentives/PointsIncentive';
|
|
18
22
|
import { SignerValidator, type SignerValidatorPayload } from './Validators/SignerValidator';
|
|
19
23
|
import { type Validator } from './Validators/Validator';
|
|
20
|
-
import { type
|
|
24
|
+
import { type GenericLog, type ReadParams, type WriteParams } from './utils';
|
|
25
|
+
/**
|
|
26
|
+
* The ABI of the BoostCore contract, if needed for low level operations
|
|
27
|
+
*
|
|
28
|
+
* @type {typeof boostCoreAbi}
|
|
29
|
+
*/
|
|
21
30
|
export { boostCoreAbi };
|
|
22
31
|
/**
|
|
23
|
-
* The
|
|
24
|
-
*
|
|
32
|
+
* The fee (in wei) required to claim each incentive, must be provided for the `claimIncentive` transaction
|
|
33
|
+
*
|
|
34
|
+
* @type {bigint}
|
|
35
|
+
*/
|
|
36
|
+
export declare const BOOST_CORE_CLAIM_FEE: bigint;
|
|
37
|
+
/**
|
|
38
|
+
* The address of the deployed BoostCore instance. In prerelease mode, this will be its sepolia address
|
|
25
39
|
*
|
|
26
40
|
* @type {Address}
|
|
27
41
|
*/
|
|
28
|
-
export declare const BOOST_CORE_ADDRESS:
|
|
42
|
+
export declare const BOOST_CORE_ADDRESS: `0x${string}`;
|
|
43
|
+
/**
|
|
44
|
+
* The fixed addresses for the deployed Boost Core.
|
|
45
|
+
* By default, `new BoostCore` will use the address deployed to the currently connected chain, or `BOOST_CORE_ADDRESS` if not provided.
|
|
46
|
+
*
|
|
47
|
+
* @type {Record<number, Address>}
|
|
48
|
+
*/
|
|
49
|
+
export declare const BOOST_CORE_ADDRESSES: Record<number, Address>;
|
|
29
50
|
/**
|
|
30
51
|
* A generic `viem.Log` event with support for `BoostCore` event types.
|
|
31
52
|
*
|
|
@@ -90,11 +111,10 @@ export type BoostCoreConfig = BoostCoreDeployedOptions | BoostCoreOptionsWithPay
|
|
|
90
111
|
export type CreateBoostPayload = {
|
|
91
112
|
budget: Budget;
|
|
92
113
|
action: Action;
|
|
93
|
-
validator
|
|
114
|
+
validator?: Validator;
|
|
94
115
|
allowList: AllowList;
|
|
95
116
|
incentives: Array<Incentive>;
|
|
96
117
|
protocolFee?: bigint;
|
|
97
|
-
referralFee?: bigint;
|
|
98
118
|
maxParticipants?: bigint;
|
|
99
119
|
owner?: Address;
|
|
100
120
|
};
|
|
@@ -110,6 +130,22 @@ export declare class BoostCore extends Deployable<[
|
|
|
110
130
|
Address,
|
|
111
131
|
Address
|
|
112
132
|
], typeof boostCoreAbi> {
|
|
133
|
+
/**
|
|
134
|
+
* A static property representing a map of stringified chain ID's to the address of the deployed implementation on chain
|
|
135
|
+
*
|
|
136
|
+
* @static
|
|
137
|
+
* @readonly
|
|
138
|
+
* @type {Record<string, Address>}
|
|
139
|
+
*/
|
|
140
|
+
static readonly addresses: Record<number, Address>;
|
|
141
|
+
/**
|
|
142
|
+
* A getter that will return Boost core's static addresses by numerical chain ID
|
|
143
|
+
*
|
|
144
|
+
* @public
|
|
145
|
+
* @readonly
|
|
146
|
+
* @type {Record<number, Address>}
|
|
147
|
+
*/
|
|
148
|
+
get addresses(): Record<number, Address>;
|
|
113
149
|
/**
|
|
114
150
|
* Creates an instance of BoostCore.
|
|
115
151
|
*
|
|
@@ -119,16 +155,644 @@ export declare class BoostCore extends Deployable<[
|
|
|
119
155
|
* @param {?Account} [param0.account]
|
|
120
156
|
* @param {({ address?: Address; } | { registryAddress: Address; protocolFeeReceiver: Address; })} param0....options
|
|
121
157
|
*/
|
|
122
|
-
constructor({ config, account, ...options }: BoostCoreConfig);
|
|
158
|
+
constructor({ config, account, ...options }: BoostCoreConfig);
|
|
159
|
+
/**
|
|
123
160
|
* Create a new Boost.
|
|
124
161
|
*
|
|
125
162
|
* @public
|
|
126
163
|
* @async
|
|
127
164
|
* @param {CreateBoostPayload} _boostPayload
|
|
128
|
-
* @param {?DeployableOptions} [
|
|
129
|
-
* @returns {Boost}
|
|
165
|
+
* @param {?DeployableOptions} [_params]
|
|
166
|
+
* @returns {Promise<Boost>}
|
|
167
|
+
*/
|
|
168
|
+
createBoost(_boostPayload: CreateBoostPayload, _params?: DeployableOptions & WriteParams<typeof boostCoreAbi, 'createBoost'>): Promise<Boost>;
|
|
169
|
+
/**
|
|
170
|
+
* Returns a simulated Boost creation.
|
|
171
|
+
*
|
|
172
|
+
* @public
|
|
173
|
+
* @async
|
|
174
|
+
* @param {CreateBoostPayload} _boostPayload
|
|
175
|
+
* @param {?DeployableOptions} [_params]
|
|
176
|
+
* @returns {Promise<SimulateContractReturnType>}
|
|
130
177
|
*/
|
|
131
|
-
|
|
178
|
+
simulateCreateBoost(_boostPayload: CreateBoostPayload, _params?: DeployableOptions & WriteParams<typeof boostCoreAbi, 'createBoost'>): Promise<import("viem").SimulateContractReturnType<readonly [{
|
|
179
|
+
readonly type: "constructor";
|
|
180
|
+
readonly inputs: readonly [{
|
|
181
|
+
readonly name: "registry_";
|
|
182
|
+
readonly internalType: "contract BoostRegistry";
|
|
183
|
+
readonly type: "address";
|
|
184
|
+
}, {
|
|
185
|
+
readonly name: "protocolFeeReceiver_";
|
|
186
|
+
readonly internalType: "address";
|
|
187
|
+
readonly type: "address";
|
|
188
|
+
}];
|
|
189
|
+
readonly stateMutability: "nonpayable";
|
|
190
|
+
}, {
|
|
191
|
+
readonly type: "error";
|
|
192
|
+
readonly inputs: readonly [];
|
|
193
|
+
readonly name: "AlreadyInitialized";
|
|
194
|
+
}, {
|
|
195
|
+
readonly type: "error";
|
|
196
|
+
readonly inputs: readonly [{
|
|
197
|
+
readonly name: "caller";
|
|
198
|
+
readonly internalType: "address";
|
|
199
|
+
readonly type: "address";
|
|
200
|
+
}, {
|
|
201
|
+
readonly name: "data";
|
|
202
|
+
readonly internalType: "bytes";
|
|
203
|
+
readonly type: "bytes";
|
|
204
|
+
}];
|
|
205
|
+
readonly name: "ClaimFailed";
|
|
206
|
+
}, {
|
|
207
|
+
readonly type: "error";
|
|
208
|
+
readonly inputs: readonly [{
|
|
209
|
+
readonly name: "caller";
|
|
210
|
+
readonly internalType: "address";
|
|
211
|
+
readonly type: "address";
|
|
212
|
+
}, {
|
|
213
|
+
readonly name: "data";
|
|
214
|
+
readonly internalType: "bytes";
|
|
215
|
+
readonly type: "bytes";
|
|
216
|
+
}];
|
|
217
|
+
readonly name: "ClawbackFailed";
|
|
218
|
+
}, {
|
|
219
|
+
readonly type: "error";
|
|
220
|
+
readonly inputs: readonly [];
|
|
221
|
+
readonly name: "InvalidInitialization";
|
|
222
|
+
}, {
|
|
223
|
+
readonly type: "error";
|
|
224
|
+
readonly inputs: readonly [{
|
|
225
|
+
readonly name: "expectedInterface";
|
|
226
|
+
readonly internalType: "bytes4";
|
|
227
|
+
readonly type: "bytes4";
|
|
228
|
+
}, {
|
|
229
|
+
readonly name: "instance";
|
|
230
|
+
readonly internalType: "address";
|
|
231
|
+
readonly type: "address";
|
|
232
|
+
}];
|
|
233
|
+
readonly name: "InvalidInstance";
|
|
234
|
+
}, {
|
|
235
|
+
readonly type: "error";
|
|
236
|
+
readonly inputs: readonly [];
|
|
237
|
+
readonly name: "NewOwnerIsZeroAddress";
|
|
238
|
+
}, {
|
|
239
|
+
readonly type: "error";
|
|
240
|
+
readonly inputs: readonly [];
|
|
241
|
+
readonly name: "NoHandoverRequest";
|
|
242
|
+
}, {
|
|
243
|
+
readonly type: "error";
|
|
244
|
+
readonly inputs: readonly [];
|
|
245
|
+
readonly name: "NotImplemented";
|
|
246
|
+
}, {
|
|
247
|
+
readonly type: "error";
|
|
248
|
+
readonly inputs: readonly [];
|
|
249
|
+
readonly name: "Reentrancy";
|
|
250
|
+
}, {
|
|
251
|
+
readonly type: "error";
|
|
252
|
+
readonly inputs: readonly [];
|
|
253
|
+
readonly name: "Unauthorized";
|
|
254
|
+
}, {
|
|
255
|
+
readonly type: "error";
|
|
256
|
+
readonly inputs: readonly [];
|
|
257
|
+
readonly name: "Unauthorized";
|
|
258
|
+
}, {
|
|
259
|
+
readonly type: "event";
|
|
260
|
+
readonly anonymous: false;
|
|
261
|
+
readonly inputs: readonly [{
|
|
262
|
+
readonly name: "boostId";
|
|
263
|
+
readonly internalType: "uint256";
|
|
264
|
+
readonly type: "uint256";
|
|
265
|
+
readonly indexed: true;
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "incentiveId";
|
|
268
|
+
readonly internalType: "uint256";
|
|
269
|
+
readonly type: "uint256";
|
|
270
|
+
readonly indexed: true;
|
|
271
|
+
}, {
|
|
272
|
+
readonly name: "claimant";
|
|
273
|
+
readonly internalType: "address";
|
|
274
|
+
readonly type: "address";
|
|
275
|
+
readonly indexed: true;
|
|
276
|
+
}, {
|
|
277
|
+
readonly name: "referrer";
|
|
278
|
+
readonly internalType: "address";
|
|
279
|
+
readonly type: "address";
|
|
280
|
+
readonly indexed: false;
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "data";
|
|
283
|
+
readonly internalType: "bytes";
|
|
284
|
+
readonly type: "bytes";
|
|
285
|
+
readonly indexed: false;
|
|
286
|
+
}];
|
|
287
|
+
readonly name: "BoostClaimed";
|
|
288
|
+
}, {
|
|
289
|
+
readonly type: "event";
|
|
290
|
+
readonly anonymous: false;
|
|
291
|
+
readonly inputs: readonly [{
|
|
292
|
+
readonly name: "boostId";
|
|
293
|
+
readonly internalType: "uint256";
|
|
294
|
+
readonly type: "uint256";
|
|
295
|
+
readonly indexed: true;
|
|
296
|
+
}, {
|
|
297
|
+
readonly name: "owner";
|
|
298
|
+
readonly internalType: "address";
|
|
299
|
+
readonly type: "address";
|
|
300
|
+
readonly indexed: true;
|
|
301
|
+
}, {
|
|
302
|
+
readonly name: "action";
|
|
303
|
+
readonly internalType: "address";
|
|
304
|
+
readonly type: "address";
|
|
305
|
+
readonly indexed: true;
|
|
306
|
+
}, {
|
|
307
|
+
readonly name: "incentiveCount";
|
|
308
|
+
readonly internalType: "uint256";
|
|
309
|
+
readonly type: "uint256";
|
|
310
|
+
readonly indexed: false;
|
|
311
|
+
}, {
|
|
312
|
+
readonly name: "validator";
|
|
313
|
+
readonly internalType: "address";
|
|
314
|
+
readonly type: "address";
|
|
315
|
+
readonly indexed: false;
|
|
316
|
+
}, {
|
|
317
|
+
readonly name: "allowList";
|
|
318
|
+
readonly internalType: "address";
|
|
319
|
+
readonly type: "address";
|
|
320
|
+
readonly indexed: false;
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "budget";
|
|
323
|
+
readonly internalType: "address";
|
|
324
|
+
readonly type: "address";
|
|
325
|
+
readonly indexed: false;
|
|
326
|
+
}];
|
|
327
|
+
readonly name: "BoostCreated";
|
|
328
|
+
}, {
|
|
329
|
+
readonly type: "event";
|
|
330
|
+
readonly anonymous: false;
|
|
331
|
+
readonly inputs: readonly [{
|
|
332
|
+
readonly name: "pendingOwner";
|
|
333
|
+
readonly internalType: "address";
|
|
334
|
+
readonly type: "address";
|
|
335
|
+
readonly indexed: true;
|
|
336
|
+
}];
|
|
337
|
+
readonly name: "OwnershipHandoverCanceled";
|
|
338
|
+
}, {
|
|
339
|
+
readonly type: "event";
|
|
340
|
+
readonly anonymous: false;
|
|
341
|
+
readonly inputs: readonly [{
|
|
342
|
+
readonly name: "pendingOwner";
|
|
343
|
+
readonly internalType: "address";
|
|
344
|
+
readonly type: "address";
|
|
345
|
+
readonly indexed: true;
|
|
346
|
+
}];
|
|
347
|
+
readonly name: "OwnershipHandoverRequested";
|
|
348
|
+
}, {
|
|
349
|
+
readonly type: "event";
|
|
350
|
+
readonly anonymous: false;
|
|
351
|
+
readonly inputs: readonly [{
|
|
352
|
+
readonly name: "oldOwner";
|
|
353
|
+
readonly internalType: "address";
|
|
354
|
+
readonly type: "address";
|
|
355
|
+
readonly indexed: true;
|
|
356
|
+
}, {
|
|
357
|
+
readonly name: "newOwner";
|
|
358
|
+
readonly internalType: "address";
|
|
359
|
+
readonly type: "address";
|
|
360
|
+
readonly indexed: true;
|
|
361
|
+
}];
|
|
362
|
+
readonly name: "OwnershipTransferred";
|
|
363
|
+
}, {
|
|
364
|
+
readonly type: "event";
|
|
365
|
+
readonly anonymous: false;
|
|
366
|
+
readonly inputs: readonly [{
|
|
367
|
+
readonly name: "boostId";
|
|
368
|
+
readonly internalType: "uint256";
|
|
369
|
+
readonly type: "uint256";
|
|
370
|
+
readonly indexed: true;
|
|
371
|
+
}, {
|
|
372
|
+
readonly name: "incentiveId";
|
|
373
|
+
readonly internalType: "uint256";
|
|
374
|
+
readonly type: "uint256";
|
|
375
|
+
readonly indexed: true;
|
|
376
|
+
}, {
|
|
377
|
+
readonly name: "amount";
|
|
378
|
+
readonly internalType: "uint256";
|
|
379
|
+
readonly type: "uint256";
|
|
380
|
+
readonly indexed: false;
|
|
381
|
+
}, {
|
|
382
|
+
readonly name: "recipient";
|
|
383
|
+
readonly internalType: "address";
|
|
384
|
+
readonly type: "address";
|
|
385
|
+
readonly indexed: true;
|
|
386
|
+
}];
|
|
387
|
+
readonly name: "ProtocolFeesCollected";
|
|
388
|
+
}, {
|
|
389
|
+
readonly type: "function";
|
|
390
|
+
readonly inputs: readonly [];
|
|
391
|
+
readonly name: "FEE_DENOMINATOR";
|
|
392
|
+
readonly outputs: readonly [{
|
|
393
|
+
readonly name: "";
|
|
394
|
+
readonly internalType: "uint64";
|
|
395
|
+
readonly type: "uint64";
|
|
396
|
+
}];
|
|
397
|
+
readonly stateMutability: "view";
|
|
398
|
+
}, {
|
|
399
|
+
readonly type: "function";
|
|
400
|
+
readonly inputs: readonly [];
|
|
401
|
+
readonly name: "cancelOwnershipHandover";
|
|
402
|
+
readonly outputs: readonly [];
|
|
403
|
+
readonly stateMutability: "payable";
|
|
404
|
+
}, {
|
|
405
|
+
readonly type: "function";
|
|
406
|
+
readonly inputs: readonly [{
|
|
407
|
+
readonly name: "boostId_";
|
|
408
|
+
readonly internalType: "uint256";
|
|
409
|
+
readonly type: "uint256";
|
|
410
|
+
}, {
|
|
411
|
+
readonly name: "incentiveId_";
|
|
412
|
+
readonly internalType: "uint256";
|
|
413
|
+
readonly type: "uint256";
|
|
414
|
+
}, {
|
|
415
|
+
readonly name: "referrer_";
|
|
416
|
+
readonly internalType: "address";
|
|
417
|
+
readonly type: "address";
|
|
418
|
+
}, {
|
|
419
|
+
readonly name: "data_";
|
|
420
|
+
readonly internalType: "bytes";
|
|
421
|
+
readonly type: "bytes";
|
|
422
|
+
}];
|
|
423
|
+
readonly name: "claimIncentive";
|
|
424
|
+
readonly outputs: readonly [];
|
|
425
|
+
readonly stateMutability: "payable";
|
|
426
|
+
}, {
|
|
427
|
+
readonly type: "function";
|
|
428
|
+
readonly inputs: readonly [{
|
|
429
|
+
readonly name: "boostId_";
|
|
430
|
+
readonly internalType: "uint256";
|
|
431
|
+
readonly type: "uint256";
|
|
432
|
+
}, {
|
|
433
|
+
readonly name: "incentiveId_";
|
|
434
|
+
readonly internalType: "uint256";
|
|
435
|
+
readonly type: "uint256";
|
|
436
|
+
}, {
|
|
437
|
+
readonly name: "referrer_";
|
|
438
|
+
readonly internalType: "address";
|
|
439
|
+
readonly type: "address";
|
|
440
|
+
}, {
|
|
441
|
+
readonly name: "data_";
|
|
442
|
+
readonly internalType: "bytes";
|
|
443
|
+
readonly type: "bytes";
|
|
444
|
+
}, {
|
|
445
|
+
readonly name: "claimant";
|
|
446
|
+
readonly internalType: "address";
|
|
447
|
+
readonly type: "address";
|
|
448
|
+
}];
|
|
449
|
+
readonly name: "claimIncentiveFor";
|
|
450
|
+
readonly outputs: readonly [];
|
|
451
|
+
readonly stateMutability: "payable";
|
|
452
|
+
}, {
|
|
453
|
+
readonly type: "function";
|
|
454
|
+
readonly inputs: readonly [{
|
|
455
|
+
readonly name: "data_";
|
|
456
|
+
readonly internalType: "bytes";
|
|
457
|
+
readonly type: "bytes";
|
|
458
|
+
}, {
|
|
459
|
+
readonly name: "boostId";
|
|
460
|
+
readonly internalType: "uint256";
|
|
461
|
+
readonly type: "uint256";
|
|
462
|
+
}, {
|
|
463
|
+
readonly name: "incentiveId";
|
|
464
|
+
readonly internalType: "uint256";
|
|
465
|
+
readonly type: "uint256";
|
|
466
|
+
}];
|
|
467
|
+
readonly name: "clawback";
|
|
468
|
+
readonly outputs: readonly [{
|
|
469
|
+
readonly name: "";
|
|
470
|
+
readonly internalType: "uint256";
|
|
471
|
+
readonly type: "uint256";
|
|
472
|
+
}, {
|
|
473
|
+
readonly name: "";
|
|
474
|
+
readonly internalType: "address";
|
|
475
|
+
readonly type: "address";
|
|
476
|
+
}];
|
|
477
|
+
readonly stateMutability: "nonpayable";
|
|
478
|
+
}, {
|
|
479
|
+
readonly type: "function";
|
|
480
|
+
readonly inputs: readonly [{
|
|
481
|
+
readonly name: "pendingOwner";
|
|
482
|
+
readonly internalType: "address";
|
|
483
|
+
readonly type: "address";
|
|
484
|
+
}];
|
|
485
|
+
readonly name: "completeOwnershipHandover";
|
|
486
|
+
readonly outputs: readonly [];
|
|
487
|
+
readonly stateMutability: "payable";
|
|
488
|
+
}, {
|
|
489
|
+
readonly type: "function";
|
|
490
|
+
readonly inputs: readonly [{
|
|
491
|
+
readonly name: "data_";
|
|
492
|
+
readonly internalType: "bytes";
|
|
493
|
+
readonly type: "bytes";
|
|
494
|
+
}];
|
|
495
|
+
readonly name: "createBoost";
|
|
496
|
+
readonly outputs: readonly [{
|
|
497
|
+
readonly name: "";
|
|
498
|
+
readonly internalType: "struct BoostLib.Boost";
|
|
499
|
+
readonly type: "tuple";
|
|
500
|
+
readonly components: readonly [{
|
|
501
|
+
readonly name: "action";
|
|
502
|
+
readonly internalType: "contract AAction";
|
|
503
|
+
readonly type: "address";
|
|
504
|
+
}, {
|
|
505
|
+
readonly name: "validator";
|
|
506
|
+
readonly internalType: "contract AValidator";
|
|
507
|
+
readonly type: "address";
|
|
508
|
+
}, {
|
|
509
|
+
readonly name: "allowList";
|
|
510
|
+
readonly internalType: "contract AAllowList";
|
|
511
|
+
readonly type: "address";
|
|
512
|
+
}, {
|
|
513
|
+
readonly name: "budget";
|
|
514
|
+
readonly internalType: "contract ABudget";
|
|
515
|
+
readonly type: "address";
|
|
516
|
+
}, {
|
|
517
|
+
readonly name: "incentives";
|
|
518
|
+
readonly internalType: "contract AIncentive[]";
|
|
519
|
+
readonly type: "address[]";
|
|
520
|
+
}, {
|
|
521
|
+
readonly name: "protocolFee";
|
|
522
|
+
readonly internalType: "uint64";
|
|
523
|
+
readonly type: "uint64";
|
|
524
|
+
}, {
|
|
525
|
+
readonly name: "maxParticipants";
|
|
526
|
+
readonly internalType: "uint256";
|
|
527
|
+
readonly type: "uint256";
|
|
528
|
+
}, {
|
|
529
|
+
readonly name: "owner";
|
|
530
|
+
readonly internalType: "address";
|
|
531
|
+
readonly type: "address";
|
|
532
|
+
}];
|
|
533
|
+
}];
|
|
534
|
+
readonly stateMutability: "nonpayable";
|
|
535
|
+
}, {
|
|
536
|
+
readonly type: "function";
|
|
537
|
+
readonly inputs: readonly [];
|
|
538
|
+
readonly name: "createBoostAuth";
|
|
539
|
+
readonly outputs: readonly [{
|
|
540
|
+
readonly name: "";
|
|
541
|
+
readonly internalType: "contract IAuth";
|
|
542
|
+
readonly type: "address";
|
|
543
|
+
}];
|
|
544
|
+
readonly stateMutability: "view";
|
|
545
|
+
}, {
|
|
546
|
+
readonly type: "function";
|
|
547
|
+
readonly inputs: readonly [{
|
|
548
|
+
readonly name: "index";
|
|
549
|
+
readonly internalType: "uint256";
|
|
550
|
+
readonly type: "uint256";
|
|
551
|
+
}];
|
|
552
|
+
readonly name: "getBoost";
|
|
553
|
+
readonly outputs: readonly [{
|
|
554
|
+
readonly name: "";
|
|
555
|
+
readonly internalType: "struct BoostLib.Boost";
|
|
556
|
+
readonly type: "tuple";
|
|
557
|
+
readonly components: readonly [{
|
|
558
|
+
readonly name: "action";
|
|
559
|
+
readonly internalType: "contract AAction";
|
|
560
|
+
readonly type: "address";
|
|
561
|
+
}, {
|
|
562
|
+
readonly name: "validator";
|
|
563
|
+
readonly internalType: "contract AValidator";
|
|
564
|
+
readonly type: "address";
|
|
565
|
+
}, {
|
|
566
|
+
readonly name: "allowList";
|
|
567
|
+
readonly internalType: "contract AAllowList";
|
|
568
|
+
readonly type: "address";
|
|
569
|
+
}, {
|
|
570
|
+
readonly name: "budget";
|
|
571
|
+
readonly internalType: "contract ABudget";
|
|
572
|
+
readonly type: "address";
|
|
573
|
+
}, {
|
|
574
|
+
readonly name: "incentives";
|
|
575
|
+
readonly internalType: "contract AIncentive[]";
|
|
576
|
+
readonly type: "address[]";
|
|
577
|
+
}, {
|
|
578
|
+
readonly name: "protocolFee";
|
|
579
|
+
readonly internalType: "uint64";
|
|
580
|
+
readonly type: "uint64";
|
|
581
|
+
}, {
|
|
582
|
+
readonly name: "maxParticipants";
|
|
583
|
+
readonly internalType: "uint256";
|
|
584
|
+
readonly type: "uint256";
|
|
585
|
+
}, {
|
|
586
|
+
readonly name: "owner";
|
|
587
|
+
readonly internalType: "address";
|
|
588
|
+
readonly type: "address";
|
|
589
|
+
}];
|
|
590
|
+
}];
|
|
591
|
+
readonly stateMutability: "view";
|
|
592
|
+
}, {
|
|
593
|
+
readonly type: "function";
|
|
594
|
+
readonly inputs: readonly [];
|
|
595
|
+
readonly name: "getBoostCount";
|
|
596
|
+
readonly outputs: readonly [{
|
|
597
|
+
readonly name: "";
|
|
598
|
+
readonly internalType: "uint256";
|
|
599
|
+
readonly type: "uint256";
|
|
600
|
+
}];
|
|
601
|
+
readonly stateMutability: "view";
|
|
602
|
+
}, {
|
|
603
|
+
readonly type: "function";
|
|
604
|
+
readonly inputs: readonly [{
|
|
605
|
+
readonly name: "key";
|
|
606
|
+
readonly internalType: "bytes32";
|
|
607
|
+
readonly type: "bytes32";
|
|
608
|
+
}];
|
|
609
|
+
readonly name: "getIncentive";
|
|
610
|
+
readonly outputs: readonly [{
|
|
611
|
+
readonly name: "";
|
|
612
|
+
readonly internalType: "struct BoostCore.IncentiveDisbursalInfo";
|
|
613
|
+
readonly type: "tuple";
|
|
614
|
+
readonly components: readonly [{
|
|
615
|
+
readonly name: "assetType";
|
|
616
|
+
readonly internalType: "enum ABudget.AssetType";
|
|
617
|
+
readonly type: "uint8";
|
|
618
|
+
}, {
|
|
619
|
+
readonly name: "asset";
|
|
620
|
+
readonly internalType: "address";
|
|
621
|
+
readonly type: "address";
|
|
622
|
+
}, {
|
|
623
|
+
readonly name: "protocolFeesRemaining";
|
|
624
|
+
readonly internalType: "uint256";
|
|
625
|
+
readonly type: "uint256";
|
|
626
|
+
}, {
|
|
627
|
+
readonly name: "protocolFee";
|
|
628
|
+
readonly internalType: "uint256";
|
|
629
|
+
readonly type: "uint256";
|
|
630
|
+
}, {
|
|
631
|
+
readonly name: "tokenId";
|
|
632
|
+
readonly internalType: "uint256";
|
|
633
|
+
readonly type: "uint256";
|
|
634
|
+
}];
|
|
635
|
+
}];
|
|
636
|
+
readonly stateMutability: "view";
|
|
637
|
+
}, {
|
|
638
|
+
readonly type: "function";
|
|
639
|
+
readonly inputs: readonly [{
|
|
640
|
+
readonly name: "";
|
|
641
|
+
readonly internalType: "bytes32";
|
|
642
|
+
readonly type: "bytes32";
|
|
643
|
+
}];
|
|
644
|
+
readonly name: "incentives";
|
|
645
|
+
readonly outputs: readonly [{
|
|
646
|
+
readonly name: "assetType";
|
|
647
|
+
readonly internalType: "enum ABudget.AssetType";
|
|
648
|
+
readonly type: "uint8";
|
|
649
|
+
}, {
|
|
650
|
+
readonly name: "asset";
|
|
651
|
+
readonly internalType: "address";
|
|
652
|
+
readonly type: "address";
|
|
653
|
+
}, {
|
|
654
|
+
readonly name: "protocolFeesRemaining";
|
|
655
|
+
readonly internalType: "uint256";
|
|
656
|
+
readonly type: "uint256";
|
|
657
|
+
}, {
|
|
658
|
+
readonly name: "protocolFee";
|
|
659
|
+
readonly internalType: "uint256";
|
|
660
|
+
readonly type: "uint256";
|
|
661
|
+
}, {
|
|
662
|
+
readonly name: "tokenId";
|
|
663
|
+
readonly internalType: "uint256";
|
|
664
|
+
readonly type: "uint256";
|
|
665
|
+
}];
|
|
666
|
+
readonly stateMutability: "view";
|
|
667
|
+
}, {
|
|
668
|
+
readonly type: "function";
|
|
669
|
+
readonly inputs: readonly [];
|
|
670
|
+
readonly name: "owner";
|
|
671
|
+
readonly outputs: readonly [{
|
|
672
|
+
readonly name: "result";
|
|
673
|
+
readonly internalType: "address";
|
|
674
|
+
readonly type: "address";
|
|
675
|
+
}];
|
|
676
|
+
readonly stateMutability: "view";
|
|
677
|
+
}, {
|
|
678
|
+
readonly type: "function";
|
|
679
|
+
readonly inputs: readonly [{
|
|
680
|
+
readonly name: "pendingOwner";
|
|
681
|
+
readonly internalType: "address";
|
|
682
|
+
readonly type: "address";
|
|
683
|
+
}];
|
|
684
|
+
readonly name: "ownershipHandoverExpiresAt";
|
|
685
|
+
readonly outputs: readonly [{
|
|
686
|
+
readonly name: "result";
|
|
687
|
+
readonly internalType: "uint256";
|
|
688
|
+
readonly type: "uint256";
|
|
689
|
+
}];
|
|
690
|
+
readonly stateMutability: "view";
|
|
691
|
+
}, {
|
|
692
|
+
readonly type: "function";
|
|
693
|
+
readonly inputs: readonly [];
|
|
694
|
+
readonly name: "protocolFee";
|
|
695
|
+
readonly outputs: readonly [{
|
|
696
|
+
readonly name: "";
|
|
697
|
+
readonly internalType: "uint64";
|
|
698
|
+
readonly type: "uint64";
|
|
699
|
+
}];
|
|
700
|
+
readonly stateMutability: "view";
|
|
701
|
+
}, {
|
|
702
|
+
readonly type: "function";
|
|
703
|
+
readonly inputs: readonly [];
|
|
704
|
+
readonly name: "protocolFeeReceiver";
|
|
705
|
+
readonly outputs: readonly [{
|
|
706
|
+
readonly name: "";
|
|
707
|
+
readonly internalType: "address";
|
|
708
|
+
readonly type: "address";
|
|
709
|
+
}];
|
|
710
|
+
readonly stateMutability: "view";
|
|
711
|
+
}, {
|
|
712
|
+
readonly type: "function";
|
|
713
|
+
readonly inputs: readonly [];
|
|
714
|
+
readonly name: "registry";
|
|
715
|
+
readonly outputs: readonly [{
|
|
716
|
+
readonly name: "";
|
|
717
|
+
readonly internalType: "contract BoostRegistry";
|
|
718
|
+
readonly type: "address";
|
|
719
|
+
}];
|
|
720
|
+
readonly stateMutability: "view";
|
|
721
|
+
}, {
|
|
722
|
+
readonly type: "function";
|
|
723
|
+
readonly inputs: readonly [];
|
|
724
|
+
readonly name: "renounceOwnership";
|
|
725
|
+
readonly outputs: readonly [];
|
|
726
|
+
readonly stateMutability: "payable";
|
|
727
|
+
}, {
|
|
728
|
+
readonly type: "function";
|
|
729
|
+
readonly inputs: readonly [];
|
|
730
|
+
readonly name: "requestOwnershipHandover";
|
|
731
|
+
readonly outputs: readonly [];
|
|
732
|
+
readonly stateMutability: "payable";
|
|
733
|
+
}, {
|
|
734
|
+
readonly type: "function";
|
|
735
|
+
readonly inputs: readonly [{
|
|
736
|
+
readonly name: "auth_";
|
|
737
|
+
readonly internalType: "address";
|
|
738
|
+
readonly type: "address";
|
|
739
|
+
}];
|
|
740
|
+
readonly name: "setCreateBoostAuth";
|
|
741
|
+
readonly outputs: readonly [];
|
|
742
|
+
readonly stateMutability: "nonpayable";
|
|
743
|
+
}, {
|
|
744
|
+
readonly type: "function";
|
|
745
|
+
readonly inputs: readonly [{
|
|
746
|
+
readonly name: "protocolFee_";
|
|
747
|
+
readonly internalType: "uint64";
|
|
748
|
+
readonly type: "uint64";
|
|
749
|
+
}];
|
|
750
|
+
readonly name: "setProtocolFee";
|
|
751
|
+
readonly outputs: readonly [];
|
|
752
|
+
readonly stateMutability: "nonpayable";
|
|
753
|
+
}, {
|
|
754
|
+
readonly type: "function";
|
|
755
|
+
readonly inputs: readonly [{
|
|
756
|
+
readonly name: "protocolFeeReceiver_";
|
|
757
|
+
readonly internalType: "address";
|
|
758
|
+
readonly type: "address";
|
|
759
|
+
}];
|
|
760
|
+
readonly name: "setProtocolFeeReceiver";
|
|
761
|
+
readonly outputs: readonly [];
|
|
762
|
+
readonly stateMutability: "nonpayable";
|
|
763
|
+
}, {
|
|
764
|
+
readonly type: "function";
|
|
765
|
+
readonly inputs: readonly [{
|
|
766
|
+
readonly name: "boostId";
|
|
767
|
+
readonly internalType: "uint256";
|
|
768
|
+
readonly type: "uint256";
|
|
769
|
+
}, {
|
|
770
|
+
readonly name: "incentiveId";
|
|
771
|
+
readonly internalType: "uint256";
|
|
772
|
+
readonly type: "uint256";
|
|
773
|
+
}];
|
|
774
|
+
readonly name: "settleProtocolFees";
|
|
775
|
+
readonly outputs: readonly [];
|
|
776
|
+
readonly stateMutability: "nonpayable";
|
|
777
|
+
}, {
|
|
778
|
+
readonly type: "function";
|
|
779
|
+
readonly inputs: readonly [{
|
|
780
|
+
readonly name: "newOwner";
|
|
781
|
+
readonly internalType: "address";
|
|
782
|
+
readonly type: "address";
|
|
783
|
+
}];
|
|
784
|
+
readonly name: "transferOwnership";
|
|
785
|
+
readonly outputs: readonly [];
|
|
786
|
+
readonly stateMutability: "payable";
|
|
787
|
+
}], "createBoost", readonly [`0x${string}`], import("viem").Chain, import("viem").Account, import("viem").Chain> & {
|
|
788
|
+
chainId: number;
|
|
789
|
+
request: {
|
|
790
|
+
chainId?: undefined;
|
|
791
|
+
__mode: "prepared";
|
|
792
|
+
chain: import("viem").Chain;
|
|
793
|
+
};
|
|
794
|
+
}>;
|
|
795
|
+
private prepareCreateBoostPayload;
|
|
132
796
|
/**
|
|
133
797
|
* Claims one incentive from a given `Boost` by `boostId` and `incentiveId`
|
|
134
798
|
*
|
|
@@ -138,8 +802,8 @@ export declare class BoostCore extends Deployable<[
|
|
|
138
802
|
* @param {bigint} incentiveId
|
|
139
803
|
* @param {Address} address
|
|
140
804
|
* @param {Hex} data
|
|
141
|
-
* @param {?WriteParams
|
|
142
|
-
* @returns {
|
|
805
|
+
* @param {?WriteParams} [params]
|
|
806
|
+
* @returns {Promise<void>}
|
|
143
807
|
*/
|
|
144
808
|
claimIncentive(boostId: bigint, incentiveId: bigint, address: Address, data: Hex, params?: WriteParams<typeof boostCoreAbi, 'claimIncentive'>): Promise<void>;
|
|
145
809
|
/**
|
|
@@ -149,43 +813,66 @@ export declare class BoostCore extends Deployable<[
|
|
|
149
813
|
* @async
|
|
150
814
|
* @param {bigint} boostId - The ID of the Boost
|
|
151
815
|
* @param {bigint} incentiveId - The ID of the Incentive
|
|
152
|
-
* @param {Address}
|
|
816
|
+
* @param {Address} referrer - The address of the referrer (if any)
|
|
153
817
|
* @param {Hex} data- The data for the claim
|
|
154
|
-
* @param {?WriteParams
|
|
155
|
-
* @returns {
|
|
818
|
+
* @param {?WriteParams} [params]
|
|
819
|
+
* @returns {Promise<{ hash: `0x${string}`; result: void; }>}
|
|
156
820
|
*/
|
|
157
|
-
claimIncentiveRaw(boostId: bigint, incentiveId: bigint,
|
|
821
|
+
claimIncentiveRaw(boostId: bigint, incentiveId: bigint, referrer: Address, data: Hex, params?: WriteParams<typeof boostCoreAbi, 'claimIncentive'>): Promise<{
|
|
158
822
|
hash: `0x${string}`;
|
|
159
823
|
result: void;
|
|
160
824
|
}>;
|
|
161
825
|
/**
|
|
162
|
-
*
|
|
826
|
+
* Claims one incentive for a given `Boost` on behalf of another user by `boostId` and `incentiveId`
|
|
163
827
|
*
|
|
164
828
|
* @public
|
|
165
829
|
* @async
|
|
166
|
-
* @param {bigint}
|
|
167
|
-
* @param {
|
|
168
|
-
* @
|
|
830
|
+
* @param {bigint} boostId
|
|
831
|
+
* @param {bigint} incentiveId
|
|
832
|
+
* @param {Address} referrer
|
|
833
|
+
* @param {Hex} data
|
|
834
|
+
* @param {Address} claimant
|
|
835
|
+
* @param {?WriteParams} [params]
|
|
836
|
+
* @returns {Promise<void>}
|
|
837
|
+
*/
|
|
838
|
+
claimIncentiveFor(boostId: bigint, incentiveId: bigint, referrer: Address, data: Hex, claimant: Address, params?: WriteParams<typeof boostCoreAbi, 'claimIncentiveFor'>): Promise<void>;
|
|
839
|
+
/**
|
|
840
|
+
* Claim an incentive for a Boost on behalf of another user
|
|
841
|
+
*
|
|
842
|
+
* @public
|
|
843
|
+
* @async
|
|
844
|
+
* @param {bigint} boostId - The ID of the Boost
|
|
845
|
+
* @param {bigint} incentiveId - The ID of the Incentive
|
|
846
|
+
* @param {Address} referrer - The address of the referrer (if any)
|
|
847
|
+
* @param {Hex} data - The data for the claim
|
|
848
|
+
* @param {Address} claimant - The address of the user eligible for the incentive payout
|
|
849
|
+
* @param {?WriteParams} [params]
|
|
850
|
+
* @returns {Promise<{ hash: Hex; result: void; }>}
|
|
169
851
|
*/
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
allowList: `0x${string}`;
|
|
174
|
-
budget: `0x${string}`;
|
|
175
|
-
incentives: readonly `0x${string}`[];
|
|
176
|
-
protocolFee: bigint;
|
|
177
|
-
referralFee: bigint;
|
|
178
|
-
maxParticipants: bigint;
|
|
179
|
-
owner: `0x${string}`;
|
|
852
|
+
claimIncentiveForRaw(boostId: bigint, incentiveId: bigint, referrer: Address, data: Hex, claimant: Address, params?: WriteParams<typeof boostCoreAbi, 'claimIncentiveFor'>): Promise<{
|
|
853
|
+
hash: `0x${string}`;
|
|
854
|
+
result: void;
|
|
180
855
|
}>;
|
|
856
|
+
/**
|
|
857
|
+
* Get a Boost by index, will return the raw on chain representation of a Boost.
|
|
858
|
+
*
|
|
859
|
+
* @public
|
|
860
|
+
* @async
|
|
861
|
+
* @param {bigint | string} id
|
|
862
|
+
* @param {?ReadParams} [params]
|
|
863
|
+
* @returns {Promise<RawBoost>}
|
|
864
|
+
* @throws {@link BoostNotFoundError}
|
|
865
|
+
*/
|
|
866
|
+
readBoost(_id: string | bigint, params?: ReadParams<typeof boostCoreAbi, 'getBoost'>): Promise<RawBoost>;
|
|
181
867
|
/**
|
|
182
868
|
* Get a Boost by index, will return a new {@link Boost} with correct target implementations instantiated, ie `(await core.getBoost(0n)).allowList instanceof SimpleAllowList` vs `SimpleDenyList`
|
|
183
869
|
*
|
|
184
870
|
* @public
|
|
185
871
|
* @async
|
|
186
872
|
* @param {(string | bigint)} _id
|
|
187
|
-
* @param {?ReadParams
|
|
188
|
-
* @returns {
|
|
873
|
+
* @param {?ReadParams} [params]
|
|
874
|
+
* @returns {Promise<Boost>}
|
|
875
|
+
* @throws {@link BoostNotFoundError}
|
|
189
876
|
*/
|
|
190
877
|
getBoost(_id: string | bigint, params?: ReadParams<typeof boostCoreAbi, 'getBoost'>): Promise<Boost>;
|
|
191
878
|
/**
|
|
@@ -193,7 +880,7 @@ export declare class BoostCore extends Deployable<[
|
|
|
193
880
|
*
|
|
194
881
|
* @public
|
|
195
882
|
* @async
|
|
196
|
-
* @param {?ReadParams
|
|
883
|
+
* @param {?ReadParams} [params]
|
|
197
884
|
* @returns {Promise<bigint>}
|
|
198
885
|
*/
|
|
199
886
|
getBoostCount(params?: ReadParams<typeof boostCoreAbi, 'getBoostCount'>): Promise<bigint>;
|
|
@@ -203,7 +890,7 @@ export declare class BoostCore extends Deployable<[
|
|
|
203
890
|
* @public
|
|
204
891
|
* @async
|
|
205
892
|
* @param {Address} address
|
|
206
|
-
* @param {?ReadParams
|
|
893
|
+
* @param {?ReadParams &
|
|
207
894
|
* ReadParams<typeof iAuthAbi, 'isAuthorized'>} [params]
|
|
208
895
|
* @returns {Promise<boolean>}
|
|
209
896
|
*/
|
|
@@ -213,8 +900,8 @@ export declare class BoostCore extends Deployable<[
|
|
|
213
900
|
*
|
|
214
901
|
* @public
|
|
215
902
|
* @async
|
|
216
|
-
* @param {?ReadParams
|
|
217
|
-
* @returns {
|
|
903
|
+
* @param {?ReadParams} [params]
|
|
904
|
+
* @returns {Promise<Address>}
|
|
218
905
|
*/
|
|
219
906
|
createBoostAuth(params?: ReadParams<typeof boostCoreAbi, 'createBoostAuth'>): Promise<`0x${string}`>;
|
|
220
907
|
/**
|
|
@@ -223,8 +910,8 @@ export declare class BoostCore extends Deployable<[
|
|
|
223
910
|
* @public
|
|
224
911
|
* @async
|
|
225
912
|
* @param {Auth} auth
|
|
226
|
-
* @param {?WriteParams
|
|
227
|
-
* @returns {
|
|
913
|
+
* @param {?WriteParams} [params]
|
|
914
|
+
* @returns {Promise<void>}
|
|
228
915
|
*/
|
|
229
916
|
setCreateBoostAuth(auth: Auth, params?: WriteParams<typeof boostCoreAbi, 'setCreateBoostAuth'>): Promise<void>;
|
|
230
917
|
/**
|
|
@@ -233,8 +920,8 @@ export declare class BoostCore extends Deployable<[
|
|
|
233
920
|
* @public
|
|
234
921
|
* @async
|
|
235
922
|
* @param {Address} address
|
|
236
|
-
* @param {?WriteParams
|
|
237
|
-
* @returns {
|
|
923
|
+
* @param {?WriteParams} [params]
|
|
924
|
+
* @returns {Promise<{ hash: `0x${string}`; result: void; }>}
|
|
238
925
|
*/
|
|
239
926
|
setCreateBoostAuthRaw(address: Address, params?: WriteParams<typeof boostCoreAbi, 'setCreateBoostAuth'>): Promise<{
|
|
240
927
|
hash: `0x${string}`;
|
|
@@ -245,7 +932,7 @@ export declare class BoostCore extends Deployable<[
|
|
|
245
932
|
*
|
|
246
933
|
* @public
|
|
247
934
|
* @async
|
|
248
|
-
* @param {?ReadParams
|
|
935
|
+
* @param {?ReadParams} [params]
|
|
249
936
|
* @returns {unknown}
|
|
250
937
|
*/
|
|
251
938
|
protocolFee(params?: ReadParams<typeof boostCoreAbi, 'protocolFee'>): Promise<bigint>;
|
|
@@ -254,8 +941,8 @@ export declare class BoostCore extends Deployable<[
|
|
|
254
941
|
*
|
|
255
942
|
* @public
|
|
256
943
|
* @async
|
|
257
|
-
* @param {?ReadParams
|
|
258
|
-
* @returns {
|
|
944
|
+
* @param {?ReadParams} [params]
|
|
945
|
+
* @returns {Promise<Address>}
|
|
259
946
|
*/
|
|
260
947
|
protocolFeeReceiver(params?: ReadParams<typeof boostCoreAbi, 'protocolFeeReceiver'>): Promise<`0x${string}`>;
|
|
261
948
|
/**
|
|
@@ -264,8 +951,8 @@ export declare class BoostCore extends Deployable<[
|
|
|
264
951
|
* @public
|
|
265
952
|
* @async
|
|
266
953
|
* @param {Address} address
|
|
267
|
-
* @param {?WriteParams
|
|
268
|
-
* @returns {
|
|
954
|
+
* @param {?WriteParams} [params]
|
|
955
|
+
* @returns {Promise<void>}
|
|
269
956
|
*/
|
|
270
957
|
setProcolFeeReceiver(address: Address, params?: WriteParams<typeof boostCoreAbi, 'setProtocolFeeReceiver'>): Promise<void>;
|
|
271
958
|
/**
|
|
@@ -274,45 +961,43 @@ export declare class BoostCore extends Deployable<[
|
|
|
274
961
|
* @public
|
|
275
962
|
* @async
|
|
276
963
|
* @param {Address} address
|
|
277
|
-
* @param {?WriteParams
|
|
278
|
-
* @returns {
|
|
964
|
+
* @param {?WriteParams} [params]
|
|
965
|
+
* @returns {Promise<{ hash: `0x${string}`; result: void; }>}
|
|
279
966
|
*/
|
|
280
967
|
setProcolFeeReceiverRaw(address: Address, params?: WriteParams<typeof boostCoreAbi, 'setProtocolFeeReceiver'>): Promise<{
|
|
281
968
|
hash: `0x${string}`;
|
|
282
969
|
result: void;
|
|
283
970
|
}>;
|
|
284
971
|
/**
|
|
285
|
-
*
|
|
972
|
+
* Retrieves the claim information from a transaction receipt.
|
|
286
973
|
*
|
|
287
|
-
* @
|
|
288
|
-
* @
|
|
289
|
-
* @param {?ReadParams<typeof boostCoreAbi, 'claimFee'>} [params]
|
|
290
|
-
* @returns {unknown}
|
|
291
|
-
*/
|
|
292
|
-
claimFee(params?: ReadParams<typeof boostCoreAbi, 'claimFee'>): Promise<bigint>;
|
|
293
|
-
/**
|
|
294
|
-
* Sets the claim fee.
|
|
974
|
+
* @param {GetTransactionReceiptParameters} params - The parameters required to get the transaction receipt.
|
|
975
|
+
* @returns {Promise<{ boostId: bigint, incentiveId: bigint, claimer: Address, amount: bigint } | undefined>} The claim information if found, undefined otherwise.
|
|
295
976
|
*
|
|
296
|
-
* @
|
|
297
|
-
*
|
|
298
|
-
*
|
|
299
|
-
*
|
|
300
|
-
*
|
|
301
|
-
*/
|
|
302
|
-
setClaimFee(claimFee: bigint, params?: WriteParams<typeof boostCoreAbi, 'setClaimFee'>): Promise<void>;
|
|
303
|
-
/**
|
|
304
|
-
* Sets the claim fee.
|
|
977
|
+
* @description
|
|
978
|
+
* This method retrieves the transaction receipt using the provided parameters,
|
|
979
|
+
* then parses the logs to find the 'BoostClaimed' event.
|
|
980
|
+
* If found, it returns the arguments of the event, which include the boost ID,
|
|
981
|
+
* incentive ID, claimer address, and claimed amount.
|
|
305
982
|
*
|
|
306
|
-
* @
|
|
307
|
-
*
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
983
|
+
* @example
|
|
984
|
+
* ```ts
|
|
985
|
+
* const claimInfo = await boostCore.getClaimFromTransaction({
|
|
986
|
+
* hash: '0x...',
|
|
987
|
+
* chainId: 1
|
|
988
|
+
* });
|
|
989
|
+
* if (claimInfo) {
|
|
990
|
+
* console.log(`Boost ${claimInfo.boostId} claimed by ${claimInfo.claimer}`);
|
|
991
|
+
* }
|
|
992
|
+
* ```
|
|
311
993
|
*/
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
994
|
+
getClaimFromTransaction(params: GetTransactionReceiptParameters): Promise<{
|
|
995
|
+
boostId: bigint;
|
|
996
|
+
incentiveId: bigint;
|
|
997
|
+
claimant: `0x${string}`;
|
|
998
|
+
referrer: `0x${string}`;
|
|
999
|
+
data: `0x${string}`;
|
|
1000
|
+
} | undefined>;
|
|
316
1001
|
/**
|
|
317
1002
|
* Bound {@link PassthroughAuth} constructor that reuses the same configuration as the Boost Core instance.
|
|
318
1003
|
*
|
|
@@ -321,8 +1006,7 @@ export declare class BoostCore extends Deployable<[
|
|
|
321
1006
|
* const auth = core.PassthroughAuth('0x') // is roughly equivalent to
|
|
322
1007
|
* const auth = new PassthroughAuth({ config: core._config, account: core._account }, '0x')
|
|
323
1008
|
* ```
|
|
324
|
-
* @param {
|
|
325
|
-
* @param {?boolean} [isBase]
|
|
1009
|
+
* @param {Address} address
|
|
326
1010
|
* @returns {PassthroughAuth}
|
|
327
1011
|
*/
|
|
328
1012
|
PassthroughAuth(address?: Address): PassthroughAuth;
|
|
@@ -335,6 +1019,18 @@ export declare class BoostCore extends Deployable<[
|
|
|
335
1019
|
* const action = new EventAction({ config: core._config, account: core._account }, '0x')
|
|
336
1020
|
*/
|
|
337
1021
|
EventAction(options: DeployablePayloadOrAddress<EventActionPayload>, isBase?: boolean): EventAction;
|
|
1022
|
+
/**
|
|
1023
|
+
* Bound {@link OpenAllowList} constructor that reuses the same configuration as the Boost Core instance.
|
|
1024
|
+
*
|
|
1025
|
+
* @example
|
|
1026
|
+
* ```ts
|
|
1027
|
+
* const list = core.OpenAllowList('0x') // is roughly equivalent to
|
|
1028
|
+
* const list = new OpenAllowList({ config: core._config, account: core._account }, '0x')
|
|
1029
|
+
* ```
|
|
1030
|
+
* @param {?boolean} [isBase]
|
|
1031
|
+
* @returns {OpenAllowList}
|
|
1032
|
+
*/
|
|
1033
|
+
OpenAllowList(isBase?: boolean): OpenAllowList;
|
|
338
1034
|
/**
|
|
339
1035
|
* Bound {@link SimpleAllowList} constructor that reuses the same configuration as the Boost Core instance.
|
|
340
1036
|
*
|
|
@@ -360,7 +1056,7 @@ export declare class BoostCore extends Deployable<[
|
|
|
360
1056
|
* @param {?boolean} [isBase]
|
|
361
1057
|
* @returns {SimpleDenyList}
|
|
362
1058
|
*/
|
|
363
|
-
SimpleDenyList(options: DeployablePayloadOrAddress<SimpleDenyListPayload>, isBase?: boolean): SimpleDenyList
|
|
1059
|
+
SimpleDenyList(options: DeployablePayloadOrAddress<SimpleDenyListPayload>, isBase?: boolean): SimpleDenyList<SimpleDenyListPayload>;
|
|
364
1060
|
/**
|
|
365
1061
|
* Bound {@link ManagedBudget} constructor that reuses the same configuration as the Boost Core instance.
|
|
366
1062
|
*
|
|
@@ -434,6 +1130,19 @@ export declare class BoostCore extends Deployable<[
|
|
|
434
1130
|
* @returns {SignerValidator}
|
|
435
1131
|
*/
|
|
436
1132
|
SignerValidator(options: DeployablePayloadOrAddress<SignerValidatorPayload>, isBase?: boolean): SignerValidator;
|
|
1133
|
+
/**
|
|
1134
|
+
* Bound {@link ERC20VariableCriteriaIncentive} constructor that reuses the same configuration as the Boost Core instance.
|
|
1135
|
+
*
|
|
1136
|
+
* @example
|
|
1137
|
+
* ```ts
|
|
1138
|
+
* const validator = core.ERC20VariableCrtieriaIncentive({ ... }) // is roughly equivalent to
|
|
1139
|
+
* const validator = new ERC20VariableCrtieriaIncentive({ config: core._config, account: core._account }, { ... })
|
|
1140
|
+
* ```
|
|
1141
|
+
* @param {DeployablePayloadOrAddress<ERC20VariableCrtieriaIncentivePayload>} options
|
|
1142
|
+
* @param {?boolean} [isBase]
|
|
1143
|
+
* @returns {ERC20VariableCrtieriaIncentive}
|
|
1144
|
+
* */
|
|
1145
|
+
ERC20VariableCriteriaIncentive(options: DeployablePayloadOrAddress<ERC20VariableCriteriaIncentivePayload>, isBase?: boolean): ERC20VariableCriteriaIncentive;
|
|
437
1146
|
/**
|
|
438
1147
|
* Bound {@link ERC20VariableIncentive} constructor that reuses the same configuration as the Boost Core instance.
|
|
439
1148
|
*
|