@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ERC20Incentive.cjs","sources":["../../src/Incentives/ERC20Incentive.ts"],"sourcesContent":["import {\n erc20IncentiveAbi,\n readErc20IncentiveAsset,\n readErc20IncentiveClaimed,\n readErc20IncentiveClaims,\n readErc20IncentiveCurrentReward,\n readErc20IncentiveEntries,\n readErc20IncentiveIsClaimable,\n readErc20IncentiveLimit,\n readErc20IncentiveOwner,\n readErc20IncentiveReward,\n readErc20IncentiveStrategy,\n simulateErc20IncentiveClaim,\n simulateErc20IncentiveClawback,\n simulateErc20IncentiveDrawRaffle,\n writeErc20IncentiveClaim,\n writeErc20IncentiveClawback,\n writeErc20IncentiveDrawRaffle,\n} from '@boostxyz/evm';\nimport { bytecode } from '@boostxyz/evm/artifacts/contracts/incentives/ERC20Incentive.sol/ERC20Incentive.json';\nimport {\n type Address,\n type ContractEventName,\n type Hex,\n encodeAbiParameters,\n} from 'viem';\nimport { ERC20Incentive as ERC20IncentiveBases } from '../../dist/deployments.json';\nimport type {\n DeployableOptions,\n GenericDeployableParams,\n} from '../Deployable/Deployable';\nimport { DeployableTarget } from '../Deployable/DeployableTarget';\nimport {\n type ClaimPayload,\n type StrategyType,\n prepareClaimPayload,\n} from '../claiming';\nimport {\n type GenericLog,\n type ReadParams,\n RegistryType,\n type WriteParams,\n} from '../utils';\n\nexport { erc20IncentiveAbi };\n\n/**\n * The object representation of a `ERC20Incentive.InitPayload`\n *\n * @export\n * @interface ERC20IncentivePayload\n * @typedef {ERC20IncentivePayload}\n */\nexport interface ERC20IncentivePayload {\n /**\n * The address of the incentivized asset.\n *\n * @type {Address}\n */\n asset: Address;\n /**\n * The type of disbursement strategy for the incentive. `StrategyType.MINT` is not supported for `ERC20Incentives`\n *\n * @type {StrategyType}\n */\n strategy: StrategyType;\n /**\n * The amount of the asset to distribute.\n *\n * @type {bigint}\n */\n reward: bigint;\n /**\n * How many times can this incentive be claimed.\n *\n * @type {bigint}\n */\n limit: bigint;\n /**\n * The entity that can `clawback` funds\n *\n * @type {Address}\n */\n manager: Address;\n}\n\n/**\n * A generic `viem.Log` event with support for `ERC20Incentive` event types.\n *\n * @export\n * @typedef {ERC20IncentiveLog}\n * @template {ContractEventName<typeof erc20IncentiveAbi>} [event=ContractEventName<\n * typeof erc20IncentiveAbi\n * >]\n */\nexport type ERC20IncentiveLog<\n event extends ContractEventName<typeof erc20IncentiveAbi> = ContractEventName<\n typeof erc20IncentiveAbi\n >,\n> = GenericLog<typeof erc20IncentiveAbi, event>;\n\n/**\n * A simple ERC20 incentive implementation that allows claiming of tokens\n *\n * @export\n * @class ERC20Incentive\n * @typedef {ERC20Incentive}\n * @extends {DeployableTarget<ERC20IncentivePayload>}\n */\nexport class ERC20Incentive extends DeployableTarget<\n ERC20IncentivePayload,\n typeof erc20IncentiveAbi\n> {\n public override readonly abi = erc20IncentiveAbi;\n /**\n * @inheritdoc\n *\n * @public\n * @static\n * @type {Record<number, Address>}\n */\n public static override bases: Record<number, Address> = {\n ...(ERC20IncentiveBases as Record<number, Address>),\n };\n /**\n * @inheritdoc\n *\n * @public\n * @static\n * @type {RegistryType}\n */\n public static override registryType: RegistryType = RegistryType.INCENTIVE;\n\n /**\n * The owner of the incentive\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<Address>}\n */\n public async owner(params?: ReadParams<typeof erc20IncentiveAbi, 'owner'>) {\n return await readErc20IncentiveOwner(this._config, {\n address: this.assertValidAddress(),\n args: [],\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * Calculates the current reward based on the time since the last claim. The reward is calculated based on the time since the last claim, the available budget, and the reward parameters. It increases linearly over time in the absence of claims, with each hour adding `rewardBoost` to the current reward, up to the available budget. For example, if there is one claim in the first hour, then no claims for three hours, the claimable reward would be `initialReward - rewardDecay + (rewardBoost * 3)`\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<bigint>} - The current reward\n */\n public async currentReward(\n params?: ReadParams<typeof erc20IncentiveAbi, 'currentReward'>,\n ) {\n return await readErc20IncentiveCurrentReward(this._config, {\n address: this.assertValidAddress(),\n args: [],\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * The number of claims that have been made\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<bigint>}\n */\n public async claims(params?: ReadParams<typeof erc20IncentiveAbi, 'claims'>) {\n return await readErc20IncentiveClaims(this._config, {\n address: this.assertValidAddress(),\n args: [],\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * A mapping of address to claim status\n *\n * @public\n * @async\n * @param {Address} address\n * @param {?ReadParams} [params]\n * @returns {Promise<boolean>}\n */\n public async claimed(\n address: Address,\n params?: ReadParams<typeof erc20IncentiveAbi, 'claimed'>,\n ) {\n return await readErc20IncentiveClaimed(this._config, {\n address: this.assertValidAddress(),\n args: [address],\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * The address of the ERC20-like token\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<Address>}\n */\n public async asset(params?: ReadParams<typeof erc20IncentiveAbi, 'asset'>) {\n return await readErc20IncentiveAsset(this._config, {\n address: this.assertValidAddress(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * The strategy for the incentive (MINT or POOL)\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<StrategyType>}\n */\n public strategy(\n params?: ReadParams<typeof erc20IncentiveAbi, 'strategy'>,\n ): Promise<StrategyType> {\n return readErc20IncentiveStrategy(this._config, {\n address: this.assertValidAddress(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n }) as Promise<StrategyType>;\n }\n\n /**\n * The reward amount issued for each claim\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<bigint>}\n */\n public async reward(params?: ReadParams<typeof erc20IncentiveAbi, 'reward'>) {\n return await readErc20IncentiveReward(this._config, {\n address: this.assertValidAddress(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * The limit (max claims, or max entries for raffles)\n *\n * @public\n * @async\n * @param {?ReadParams} [params]\n * @returns {Promise<bigint>}\n */\n public async limit(params?: ReadParams<typeof erc20IncentiveAbi, 'limit'>) {\n return await readErc20IncentiveLimit(this._config, {\n address: this.assertValidAddress(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * The set of addresses that have claimed a slot in the incentive raffle, accessed by bigint index.\n *\n * @public\n * @async\n * @param {bigint} i - Index of address\n * @param {?ReadParams} [params]\n * @returns {Promise<Address>}\n */\n public async entries(\n i: bigint,\n params?: ReadParams<typeof erc20IncentiveAbi, 'entries'>,\n ) {\n return await readErc20IncentiveEntries(this._config, {\n address: this.assertValidAddress(),\n args: [i],\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * Claim the incentive\n *\n * @public\n * @async\n * @param {ClaimPayload} payload\n * @param {?WriteParams} [params]\n * @returns {Promise<boolean>} - Returns true if successfully claimed\n */\n protected async claim(\n payload: ClaimPayload,\n params?: WriteParams<typeof erc20IncentiveAbi, 'claim'>,\n ) {\n return await this.awaitResult(this.claimRaw(payload, params));\n }\n\n /**\n * Claim the incentive\n *\n * @public\n * @async\n * @param {ClaimPayload} payload\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - Returns true if successfully claimed\n */\n protected async claimRaw(\n payload: ClaimPayload,\n params?: WriteParams<typeof erc20IncentiveAbi, 'claim'>,\n ) {\n const { request, result } = await simulateErc20IncentiveClaim(\n this._config,\n {\n address: this.assertValidAddress(),\n args: [prepareClaimPayload(payload)],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n },\n );\n const hash = await writeErc20IncentiveClaim(this._config, request);\n return { hash, result };\n }\n\n /**\n * Clawback assets from the incentive\n *\n * @public\n * @async\n * @param {ClaimPayload} payload\n * @param {?WriteParams} [params]\n * @returns {Promise<boolean>} - True if the assets were successfully clawbacked\n */\n public async clawback(\n payload: ClaimPayload,\n params?: WriteParams<typeof erc20IncentiveAbi, 'clawback'>,\n ) {\n return await this.awaitResult(this.clawbackRaw(payload, params));\n }\n\n /**\n * Clawback assets from the incentive\n *\n * @public\n * @async\n * @param {ClaimPayload} payload\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - True if the assets were successfully clawbacked\n */\n public async clawbackRaw(\n payload: ClaimPayload,\n params?: WriteParams<typeof erc20IncentiveAbi, 'clawback'>,\n ) {\n const { request, result } = await simulateErc20IncentiveClawback(\n this._config,\n {\n address: this.assertValidAddress(),\n args: [prepareClaimPayload(payload)],\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n },\n );\n const hash = await writeErc20IncentiveClawback(this._config, request);\n return { hash, result };\n }\n\n /**\n * Check if an incentive is claimable. For the POOL strategy, the `bytes data` portion of the payload ignored. The recipient must not have already claimed the incentive.\n *\n * @public\n * @async\n * @param {ClaimPayload} payload\n * @param {?ReadParams} [params]\n * @returns {Promise<boolean>} = True if the incentive is claimable based on the data payload\n */\n public async isClaimable(\n payload: ClaimPayload,\n params?: ReadParams<typeof erc20IncentiveAbi, 'isClaimable'>,\n ) {\n return await readErc20IncentiveIsClaimable(this._config, {\n address: this.assertValidAddress(),\n args: [prepareClaimPayload(payload)],\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n });\n }\n\n /**\n * Draw a winner from the raffle. Only callable by owner. Only valid when the strategy is set to `Strategy.RAFFLE`\n *\n * @public\n * @async\n * @param {?WriteParams} [params]\n * @returns {Promise<void>}\n */\n public async drawRaffle(\n params?: WriteParams<typeof erc20IncentiveAbi, 'drawRaffle'>,\n ) {\n return await this.awaitResult(this.drawRaffleRaw(params));\n }\n\n /**\n * Draw a winner from the raffle. Only callable by owner. Only valid when the strategy is set to `Strategy.RAFFLE`\n *\n * @public\n * @async\n * @param {?WriteParams} [params]\n * @returns {Promise<{ hash: `0x${string}`; result: void; }>}\n */\n public async drawRaffleRaw(\n params?: WriteParams<typeof erc20IncentiveAbi, 'drawRaffle'>,\n ) {\n const { request, result } = await simulateErc20IncentiveDrawRaffle(\n this._config,\n {\n address: this.assertValidAddress(),\n ...this.optionallyAttachAccount(),\n // biome-ignore lint/suspicious/noExplicitAny: Accept any shape of valid wagmi/viem parameters, wagmi does the same thing internally\n ...(params as any),\n },\n );\n const hash = await writeErc20IncentiveDrawRaffle(this._config, request);\n return { hash, result };\n }\n\n /**\n * @inheritdoc\n *\n * @public\n * @param {?ERC20IncentivePayload} [_payload]\n * @param {?DeployableOptions} [_options]\n * @returns {GenericDeployableParams}\n */\n public override buildParameters(\n _payload?: ERC20IncentivePayload,\n _options?: DeployableOptions,\n ): GenericDeployableParams {\n const [payload, options] = this.validateDeploymentConfig(\n _payload,\n _options,\n );\n return {\n abi: erc20IncentiveAbi,\n bytecode: bytecode as Hex,\n args: [prepareERC20IncentivePayload(payload)],\n ...this.optionallyAttachAccount(options.account),\n };\n }\n}\n\n/**\n * Given a {@link ERC20IncentivePayload}, properly encode a `ERC20Incentive.InitPayload` for use with {@link ERC20Incentive} initialization.\n *\n * @param {ERC20IncentivePayload} param0\n * @param {Address} param0.asset - The address of the incentivized asset.\n * @param {StrategyType} param0.strategy - The type of disbursement strategy for the incentive. `StrategyType.MINT` is not supported for `ERC20Incentives`\n * @param {bigint} param0.reward - The amount of the asset to distribute.\n * @param {bigint} param0.limit - How many times can this incentive be claimed.\n * @returns {Hex}\n */\nexport function prepareERC20IncentivePayload({\n asset,\n strategy,\n reward,\n limit,\n}: ERC20IncentivePayload) {\n return encodeAbiParameters(\n [\n { type: 'address', name: 'asset' },\n { type: 'uint8', name: 'strategy' },\n { type: 'uint256', name: 'reward' },\n { type: 'uint256', name: 'limit' },\n ],\n [asset, strategy, reward, limit],\n );\n}\n"],"names":["_ERC20Incentive","DeployableTarget","erc20IncentiveAbi","params","readErc20IncentiveOwner","readErc20IncentiveCurrentReward","readErc20IncentiveClaims","address","readErc20IncentiveClaimed","readErc20IncentiveAsset","readErc20IncentiveStrategy","readErc20IncentiveReward","readErc20IncentiveLimit","i","readErc20IncentiveEntries","payload","request","result","simulateErc20IncentiveClaim","prepareClaimPayload","writeErc20IncentiveClaim","simulateErc20IncentiveClawback","writeErc20IncentiveClawback","readErc20IncentiveIsClaimable","simulateErc20IncentiveDrawRaffle","writeErc20IncentiveDrawRaffle","_payload","_options","options","bytecode","prepareERC20IncentivePayload","ERC20IncentiveBases","RegistryType","ERC20Incentive","asset","strategy","reward","limit","encodeAbiParameters"],"mappings":"0muBA6GaA,EAAN,MAAMA,UAAuBC,EAAAA,gBAGlC,CAHK,aAAA,CAAA,MAAA,GAAA,SAAA,EAIL,KAAyB,IAAMC,GAAA,CA4B/B,MAAa,MAAMC,EAAwD,CAClE,OAAA,MAAMC,EAAAA,GAAwB,KAAK,QAAS,CACjD,QAAS,KAAK,mBAAmB,EACjC,KAAM,CAAC,EAEP,GAAID,CAAA,CACL,CACH,CAUA,MAAa,cACXA,EACA,CACO,OAAA,M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KAAK,yBAC9BF,EACAC,CAAA,EAEK,MAAA,CACL,IAAKzB,EAAA,EACL,SAAA2B,EACA,KAAM,CAACC,EAA6Bf,CAAO,CAAC,EAC5C,GAAG,KAAK,wBAAwBa,EAAQ,OAAO,CAAA,CAEnD,CACF,EArVE5B,EAAuB,MAAiC,CACtD,GAAI+B,EAAA,cAAA,EASN/B,EAAuB,aAA6BgC,EAAa,aAAA,UAtB5D,IAAMC,EAANjC,EA6WA,SAAS8B,EAA6B,CAC3C,MAAAI,EACA,SAAAC,EACA,OAAAC,EACA,MAAAC,CACF,EAA0B,CACjB,OAAAC,EAAA,oBACL,CACE,CAAE,KAAM,UAAW,KAAM,OAAQ,EACjC,CAAE,KAAM,QAAS,KAAM,UAAW,EAClC,CAAE,KAAM,UAAW,KAAM,QAAS,EAClC,CAAE,KAAM,UAAW,KAAM,OAAQ,CACnC,EACA,CAACJ,EAAOC,EAAUC,EAAQC,CAAK,CAAA,CAEnC"}
|
|
@@ -1,10 +1,49 @@
|
|
|
1
1
|
import { erc20IncentiveAbi } from '@boostxyz/evm';
|
|
2
|
-
import type
|
|
2
|
+
import { type Address, type ContractEventName } from 'viem';
|
|
3
3
|
import type { DeployableOptions, GenericDeployableParams } from '../Deployable/Deployable';
|
|
4
4
|
import { DeployableTarget } from '../Deployable/DeployableTarget';
|
|
5
|
-
import { type ClaimPayload, type
|
|
5
|
+
import { type ClaimPayload, type StrategyType } from '../claiming';
|
|
6
|
+
import { type GenericLog, type ReadParams, RegistryType, type WriteParams } from '../utils';
|
|
6
7
|
export { erc20IncentiveAbi };
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The object representation of a `ERC20Incentive.InitPayload`
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface ERC20IncentivePayload
|
|
13
|
+
* @typedef {ERC20IncentivePayload}
|
|
14
|
+
*/
|
|
15
|
+
export interface ERC20IncentivePayload {
|
|
16
|
+
/**
|
|
17
|
+
* The address of the incentivized asset.
|
|
18
|
+
*
|
|
19
|
+
* @type {Address}
|
|
20
|
+
*/
|
|
21
|
+
asset: Address;
|
|
22
|
+
/**
|
|
23
|
+
* The type of disbursement strategy for the incentive. `StrategyType.MINT` is not supported for `ERC20Incentives`
|
|
24
|
+
*
|
|
25
|
+
* @type {StrategyType}
|
|
26
|
+
*/
|
|
27
|
+
strategy: StrategyType;
|
|
28
|
+
/**
|
|
29
|
+
* The amount of the asset to distribute.
|
|
30
|
+
*
|
|
31
|
+
* @type {bigint}
|
|
32
|
+
*/
|
|
33
|
+
reward: bigint;
|
|
34
|
+
/**
|
|
35
|
+
* How many times can this incentive be claimed.
|
|
36
|
+
*
|
|
37
|
+
* @type {bigint}
|
|
38
|
+
*/
|
|
39
|
+
limit: bigint;
|
|
40
|
+
/**
|
|
41
|
+
* The entity that can `clawback` funds
|
|
42
|
+
*
|
|
43
|
+
* @type {Address}
|
|
44
|
+
*/
|
|
45
|
+
manager: Address;
|
|
46
|
+
}
|
|
8
47
|
/**
|
|
9
48
|
* A generic `viem.Log` event with support for `ERC20Incentive` event types.
|
|
10
49
|
*
|
|
@@ -84,6 +123,10 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
84
123
|
readonly type: "error";
|
|
85
124
|
readonly inputs: readonly [];
|
|
86
125
|
readonly name: "InvalidInitializationData";
|
|
126
|
+
}, {
|
|
127
|
+
readonly type: "error";
|
|
128
|
+
readonly inputs: readonly [];
|
|
129
|
+
readonly name: "LengthMismatch";
|
|
87
130
|
}, {
|
|
88
131
|
readonly type: "error";
|
|
89
132
|
readonly inputs: readonly [];
|
|
@@ -178,6 +221,41 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
178
221
|
readonly indexed: true;
|
|
179
222
|
}];
|
|
180
223
|
readonly name: "OwnershipTransferred";
|
|
224
|
+
}, {
|
|
225
|
+
readonly type: "event";
|
|
226
|
+
readonly anonymous: false;
|
|
227
|
+
readonly inputs: readonly [{
|
|
228
|
+
readonly name: "user";
|
|
229
|
+
readonly internalType: "address";
|
|
230
|
+
readonly type: "address";
|
|
231
|
+
readonly indexed: true;
|
|
232
|
+
}, {
|
|
233
|
+
readonly name: "roles";
|
|
234
|
+
readonly internalType: "uint256";
|
|
235
|
+
readonly type: "uint256";
|
|
236
|
+
readonly indexed: true;
|
|
237
|
+
}];
|
|
238
|
+
readonly name: "RolesUpdated";
|
|
239
|
+
}, {
|
|
240
|
+
readonly type: "function";
|
|
241
|
+
readonly inputs: readonly [];
|
|
242
|
+
readonly name: "ADMIN_ROLE";
|
|
243
|
+
readonly outputs: readonly [{
|
|
244
|
+
readonly name: "";
|
|
245
|
+
readonly internalType: "uint256";
|
|
246
|
+
readonly type: "uint256";
|
|
247
|
+
}];
|
|
248
|
+
readonly stateMutability: "view";
|
|
249
|
+
}, {
|
|
250
|
+
readonly type: "function";
|
|
251
|
+
readonly inputs: readonly [];
|
|
252
|
+
readonly name: "MANAGER_ROLE";
|
|
253
|
+
readonly outputs: readonly [{
|
|
254
|
+
readonly name: "";
|
|
255
|
+
readonly internalType: "uint256";
|
|
256
|
+
readonly type: "uint256";
|
|
257
|
+
}];
|
|
258
|
+
readonly stateMutability: "view";
|
|
181
259
|
}, {
|
|
182
260
|
readonly type: "function";
|
|
183
261
|
readonly inputs: readonly [];
|
|
@@ -246,8 +324,12 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
246
324
|
readonly name: "clawback";
|
|
247
325
|
readonly outputs: readonly [{
|
|
248
326
|
readonly name: "";
|
|
249
|
-
readonly internalType: "
|
|
250
|
-
readonly type: "
|
|
327
|
+
readonly internalType: "uint256";
|
|
328
|
+
readonly type: "uint256";
|
|
329
|
+
}, {
|
|
330
|
+
readonly name: "";
|
|
331
|
+
readonly internalType: "address";
|
|
332
|
+
readonly type: "address";
|
|
251
333
|
}];
|
|
252
334
|
readonly stateMutability: "nonpayable";
|
|
253
335
|
}, {
|
|
@@ -300,6 +382,70 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
300
382
|
readonly type: "bytes4";
|
|
301
383
|
}];
|
|
302
384
|
readonly stateMutability: "pure";
|
|
385
|
+
}, {
|
|
386
|
+
readonly type: "function";
|
|
387
|
+
readonly inputs: readonly [{
|
|
388
|
+
readonly name: "user";
|
|
389
|
+
readonly internalType: "address";
|
|
390
|
+
readonly type: "address";
|
|
391
|
+
}, {
|
|
392
|
+
readonly name: "roles";
|
|
393
|
+
readonly internalType: "uint256";
|
|
394
|
+
readonly type: "uint256";
|
|
395
|
+
}];
|
|
396
|
+
readonly name: "grantRoles";
|
|
397
|
+
readonly outputs: readonly [];
|
|
398
|
+
readonly stateMutability: "payable";
|
|
399
|
+
}, {
|
|
400
|
+
readonly type: "function";
|
|
401
|
+
readonly inputs: readonly [{
|
|
402
|
+
readonly name: "accounts_";
|
|
403
|
+
readonly internalType: "address[]";
|
|
404
|
+
readonly type: "address[]";
|
|
405
|
+
}, {
|
|
406
|
+
readonly name: "roles_";
|
|
407
|
+
readonly internalType: "uint256[]";
|
|
408
|
+
readonly type: "uint256[]";
|
|
409
|
+
}];
|
|
410
|
+
readonly name: "grantRoles";
|
|
411
|
+
readonly outputs: readonly [];
|
|
412
|
+
readonly stateMutability: "nonpayable";
|
|
413
|
+
}, {
|
|
414
|
+
readonly type: "function";
|
|
415
|
+
readonly inputs: readonly [{
|
|
416
|
+
readonly name: "user";
|
|
417
|
+
readonly internalType: "address";
|
|
418
|
+
readonly type: "address";
|
|
419
|
+
}, {
|
|
420
|
+
readonly name: "roles";
|
|
421
|
+
readonly internalType: "uint256";
|
|
422
|
+
readonly type: "uint256";
|
|
423
|
+
}];
|
|
424
|
+
readonly name: "hasAllRoles";
|
|
425
|
+
readonly outputs: readonly [{
|
|
426
|
+
readonly name: "";
|
|
427
|
+
readonly internalType: "bool";
|
|
428
|
+
readonly type: "bool";
|
|
429
|
+
}];
|
|
430
|
+
readonly stateMutability: "view";
|
|
431
|
+
}, {
|
|
432
|
+
readonly type: "function";
|
|
433
|
+
readonly inputs: readonly [{
|
|
434
|
+
readonly name: "user";
|
|
435
|
+
readonly internalType: "address";
|
|
436
|
+
readonly type: "address";
|
|
437
|
+
}, {
|
|
438
|
+
readonly name: "roles";
|
|
439
|
+
readonly internalType: "uint256";
|
|
440
|
+
readonly type: "uint256";
|
|
441
|
+
}];
|
|
442
|
+
readonly name: "hasAnyRole";
|
|
443
|
+
readonly outputs: readonly [{
|
|
444
|
+
readonly name: "";
|
|
445
|
+
readonly internalType: "bool";
|
|
446
|
+
readonly type: "bool";
|
|
447
|
+
}];
|
|
448
|
+
readonly stateMutability: "view";
|
|
303
449
|
}, {
|
|
304
450
|
readonly type: "function";
|
|
305
451
|
readonly inputs: readonly [{
|
|
@@ -310,6 +456,20 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
310
456
|
readonly name: "initialize";
|
|
311
457
|
readonly outputs: readonly [];
|
|
312
458
|
readonly stateMutability: "nonpayable";
|
|
459
|
+
}, {
|
|
460
|
+
readonly type: "function";
|
|
461
|
+
readonly inputs: readonly [{
|
|
462
|
+
readonly name: "account_";
|
|
463
|
+
readonly internalType: "address";
|
|
464
|
+
readonly type: "address";
|
|
465
|
+
}];
|
|
466
|
+
readonly name: "isAuthorized";
|
|
467
|
+
readonly outputs: readonly [{
|
|
468
|
+
readonly name: "";
|
|
469
|
+
readonly internalType: "bool";
|
|
470
|
+
readonly type: "bool";
|
|
471
|
+
}];
|
|
472
|
+
readonly stateMutability: "view";
|
|
313
473
|
}, {
|
|
314
474
|
readonly type: "function";
|
|
315
475
|
readonly inputs: readonly [{
|
|
@@ -382,12 +542,50 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
382
542
|
readonly name: "renounceOwnership";
|
|
383
543
|
readonly outputs: readonly [];
|
|
384
544
|
readonly stateMutability: "payable";
|
|
545
|
+
}, {
|
|
546
|
+
readonly type: "function";
|
|
547
|
+
readonly inputs: readonly [{
|
|
548
|
+
readonly name: "roles";
|
|
549
|
+
readonly internalType: "uint256";
|
|
550
|
+
readonly type: "uint256";
|
|
551
|
+
}];
|
|
552
|
+
readonly name: "renounceRoles";
|
|
553
|
+
readonly outputs: readonly [];
|
|
554
|
+
readonly stateMutability: "payable";
|
|
385
555
|
}, {
|
|
386
556
|
readonly type: "function";
|
|
387
557
|
readonly inputs: readonly [];
|
|
388
558
|
readonly name: "requestOwnershipHandover";
|
|
389
559
|
readonly outputs: readonly [];
|
|
390
560
|
readonly stateMutability: "payable";
|
|
561
|
+
}, {
|
|
562
|
+
readonly type: "function";
|
|
563
|
+
readonly inputs: readonly [{
|
|
564
|
+
readonly name: "user";
|
|
565
|
+
readonly internalType: "address";
|
|
566
|
+
readonly type: "address";
|
|
567
|
+
}, {
|
|
568
|
+
readonly name: "roles";
|
|
569
|
+
readonly internalType: "uint256";
|
|
570
|
+
readonly type: "uint256";
|
|
571
|
+
}];
|
|
572
|
+
readonly name: "revokeRoles";
|
|
573
|
+
readonly outputs: readonly [];
|
|
574
|
+
readonly stateMutability: "payable";
|
|
575
|
+
}, {
|
|
576
|
+
readonly type: "function";
|
|
577
|
+
readonly inputs: readonly [{
|
|
578
|
+
readonly name: "accounts_";
|
|
579
|
+
readonly internalType: "address[]";
|
|
580
|
+
readonly type: "address[]";
|
|
581
|
+
}, {
|
|
582
|
+
readonly name: "roles_";
|
|
583
|
+
readonly internalType: "uint256[]";
|
|
584
|
+
readonly type: "uint256[]";
|
|
585
|
+
}];
|
|
586
|
+
readonly name: "revokeRoles";
|
|
587
|
+
readonly outputs: readonly [];
|
|
588
|
+
readonly stateMutability: "nonpayable";
|
|
391
589
|
}, {
|
|
392
590
|
readonly type: "function";
|
|
393
591
|
readonly inputs: readonly [];
|
|
@@ -398,6 +596,34 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
398
596
|
readonly type: "uint256";
|
|
399
597
|
}];
|
|
400
598
|
readonly stateMutability: "view";
|
|
599
|
+
}, {
|
|
600
|
+
readonly type: "function";
|
|
601
|
+
readonly inputs: readonly [{
|
|
602
|
+
readonly name: "user";
|
|
603
|
+
readonly internalType: "address";
|
|
604
|
+
readonly type: "address";
|
|
605
|
+
}];
|
|
606
|
+
readonly name: "rolesOf";
|
|
607
|
+
readonly outputs: readonly [{
|
|
608
|
+
readonly name: "roles";
|
|
609
|
+
readonly internalType: "uint256";
|
|
610
|
+
readonly type: "uint256";
|
|
611
|
+
}];
|
|
612
|
+
readonly stateMutability: "view";
|
|
613
|
+
}, {
|
|
614
|
+
readonly type: "function";
|
|
615
|
+
readonly inputs: readonly [{
|
|
616
|
+
readonly name: "accounts_";
|
|
617
|
+
readonly internalType: "address[]";
|
|
618
|
+
readonly type: "address[]";
|
|
619
|
+
}, {
|
|
620
|
+
readonly name: "authorized_";
|
|
621
|
+
readonly internalType: "bool[]";
|
|
622
|
+
readonly type: "bool[]";
|
|
623
|
+
}];
|
|
624
|
+
readonly name: "setAuthorized";
|
|
625
|
+
readonly outputs: readonly [];
|
|
626
|
+
readonly stateMutability: "nonpayable";
|
|
401
627
|
}, {
|
|
402
628
|
readonly type: "function";
|
|
403
629
|
readonly inputs: readonly [];
|
|
@@ -438,9 +664,9 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
438
664
|
*
|
|
439
665
|
* @public
|
|
440
666
|
* @static
|
|
441
|
-
* @type {Address}
|
|
667
|
+
* @type {Record<number, Address>}
|
|
442
668
|
*/
|
|
443
|
-
static
|
|
669
|
+
static bases: Record<number, Address>;
|
|
444
670
|
/**
|
|
445
671
|
* @inheritdoc
|
|
446
672
|
*
|
|
@@ -454,8 +680,8 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
454
680
|
*
|
|
455
681
|
* @public
|
|
456
682
|
* @async
|
|
457
|
-
* @param {?ReadParams
|
|
458
|
-
* @returns {
|
|
683
|
+
* @param {?ReadParams} [params]
|
|
684
|
+
* @returns {Promise<Address>}
|
|
459
685
|
*/
|
|
460
686
|
owner(params?: ReadParams<typeof erc20IncentiveAbi, 'owner'>): Promise<`0x${string}`>;
|
|
461
687
|
/**
|
|
@@ -463,7 +689,7 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
463
689
|
*
|
|
464
690
|
* @public
|
|
465
691
|
* @async
|
|
466
|
-
* @param {?ReadParams
|
|
692
|
+
* @param {?ReadParams} [params]
|
|
467
693
|
* @returns {Promise<bigint>} - The current reward
|
|
468
694
|
*/
|
|
469
695
|
currentReward(params?: ReadParams<typeof erc20IncentiveAbi, 'currentReward'>): Promise<bigint>;
|
|
@@ -472,7 +698,7 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
472
698
|
*
|
|
473
699
|
* @public
|
|
474
700
|
* @async
|
|
475
|
-
* @param {?ReadParams
|
|
701
|
+
* @param {?ReadParams} [params]
|
|
476
702
|
* @returns {Promise<bigint>}
|
|
477
703
|
*/
|
|
478
704
|
claims(params?: ReadParams<typeof erc20IncentiveAbi, 'claims'>): Promise<bigint>;
|
|
@@ -482,7 +708,7 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
482
708
|
* @public
|
|
483
709
|
* @async
|
|
484
710
|
* @param {Address} address
|
|
485
|
-
* @param {?ReadParams
|
|
711
|
+
* @param {?ReadParams} [params]
|
|
486
712
|
* @returns {Promise<boolean>}
|
|
487
713
|
*/
|
|
488
714
|
claimed(address: Address, params?: ReadParams<typeof erc20IncentiveAbi, 'claimed'>): Promise<boolean>;
|
|
@@ -491,7 +717,7 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
491
717
|
*
|
|
492
718
|
* @public
|
|
493
719
|
* @async
|
|
494
|
-
* @param {?ReadParams
|
|
720
|
+
* @param {?ReadParams} [params]
|
|
495
721
|
* @returns {Promise<Address>}
|
|
496
722
|
*/
|
|
497
723
|
asset(params?: ReadParams<typeof erc20IncentiveAbi, 'asset'>): Promise<`0x${string}`>;
|
|
@@ -500,7 +726,7 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
500
726
|
*
|
|
501
727
|
* @public
|
|
502
728
|
* @async
|
|
503
|
-
* @param {?ReadParams
|
|
729
|
+
* @param {?ReadParams} [params]
|
|
504
730
|
* @returns {Promise<StrategyType>}
|
|
505
731
|
*/
|
|
506
732
|
strategy(params?: ReadParams<typeof erc20IncentiveAbi, 'strategy'>): Promise<StrategyType>;
|
|
@@ -509,7 +735,7 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
509
735
|
*
|
|
510
736
|
* @public
|
|
511
737
|
* @async
|
|
512
|
-
* @param {?ReadParams
|
|
738
|
+
* @param {?ReadParams} [params]
|
|
513
739
|
* @returns {Promise<bigint>}
|
|
514
740
|
*/
|
|
515
741
|
reward(params?: ReadParams<typeof erc20IncentiveAbi, 'reward'>): Promise<bigint>;
|
|
@@ -518,8 +744,8 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
518
744
|
*
|
|
519
745
|
* @public
|
|
520
746
|
* @async
|
|
521
|
-
* @param {?ReadParams
|
|
522
|
-
* @returns {
|
|
747
|
+
* @param {?ReadParams} [params]
|
|
748
|
+
* @returns {Promise<bigint>}
|
|
523
749
|
*/
|
|
524
750
|
limit(params?: ReadParams<typeof erc20IncentiveAbi, 'limit'>): Promise<bigint>;
|
|
525
751
|
/**
|
|
@@ -528,7 +754,7 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
528
754
|
* @public
|
|
529
755
|
* @async
|
|
530
756
|
* @param {bigint} i - Index of address
|
|
531
|
-
* @param {?ReadParams
|
|
757
|
+
* @param {?ReadParams} [params]
|
|
532
758
|
* @returns {Promise<Address>}
|
|
533
759
|
*/
|
|
534
760
|
entries(i: bigint, params?: ReadParams<typeof erc20IncentiveAbi, 'entries'>): Promise<`0x${string}`>;
|
|
@@ -538,20 +764,20 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
538
764
|
* @public
|
|
539
765
|
* @async
|
|
540
766
|
* @param {ClaimPayload} payload
|
|
541
|
-
* @param {?WriteParams
|
|
767
|
+
* @param {?WriteParams} [params]
|
|
542
768
|
* @returns {Promise<boolean>} - Returns true if successfully claimed
|
|
543
769
|
*/
|
|
544
|
-
claim(payload: ClaimPayload, params?: WriteParams<typeof erc20IncentiveAbi, 'claim'>): Promise<boolean>;
|
|
770
|
+
protected claim(payload: ClaimPayload, params?: WriteParams<typeof erc20IncentiveAbi, 'claim'>): Promise<boolean>;
|
|
545
771
|
/**
|
|
546
772
|
* Claim the incentive
|
|
547
773
|
*
|
|
548
774
|
* @public
|
|
549
775
|
* @async
|
|
550
776
|
* @param {ClaimPayload} payload
|
|
551
|
-
* @param {?WriteParams
|
|
552
|
-
* @returns {Promise<boolean>} - Returns true if successfully claimed
|
|
777
|
+
* @param {?WriteParams} [params]
|
|
778
|
+
* @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - Returns true if successfully claimed
|
|
553
779
|
*/
|
|
554
|
-
claimRaw(payload: ClaimPayload, params?: WriteParams<typeof erc20IncentiveAbi, 'claim'>): Promise<{
|
|
780
|
+
protected claimRaw(payload: ClaimPayload, params?: WriteParams<typeof erc20IncentiveAbi, 'claim'>): Promise<{
|
|
555
781
|
hash: `0x${string}`;
|
|
556
782
|
result: boolean;
|
|
557
783
|
}>;
|
|
@@ -561,22 +787,22 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
561
787
|
* @public
|
|
562
788
|
* @async
|
|
563
789
|
* @param {ClaimPayload} payload
|
|
564
|
-
* @param {?WriteParams
|
|
790
|
+
* @param {?WriteParams} [params]
|
|
565
791
|
* @returns {Promise<boolean>} - True if the assets were successfully clawbacked
|
|
566
792
|
*/
|
|
567
|
-
clawback(payload: ClaimPayload, params?: WriteParams<typeof erc20IncentiveAbi, 'clawback'>): Promise<
|
|
793
|
+
clawback(payload: ClaimPayload, params?: WriteParams<typeof erc20IncentiveAbi, 'clawback'>): Promise<readonly [bigint, `0x${string}`]>;
|
|
568
794
|
/**
|
|
569
795
|
* Clawback assets from the incentive
|
|
570
796
|
*
|
|
571
797
|
* @public
|
|
572
798
|
* @async
|
|
573
799
|
* @param {ClaimPayload} payload
|
|
574
|
-
* @param {?WriteParams
|
|
575
|
-
* @returns {Promise<boolean>} - True if the assets were successfully clawbacked
|
|
800
|
+
* @param {?WriteParams} [params]
|
|
801
|
+
* @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - True if the assets were successfully clawbacked
|
|
576
802
|
*/
|
|
577
803
|
clawbackRaw(payload: ClaimPayload, params?: WriteParams<typeof erc20IncentiveAbi, 'clawback'>): Promise<{
|
|
578
804
|
hash: `0x${string}`;
|
|
579
|
-
result:
|
|
805
|
+
result: readonly [bigint, `0x${string}`];
|
|
580
806
|
}>;
|
|
581
807
|
/**
|
|
582
808
|
* Check if an incentive is claimable. For the POOL strategy, the `bytes data` portion of the payload ignored. The recipient must not have already claimed the incentive.
|
|
@@ -584,8 +810,8 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
584
810
|
* @public
|
|
585
811
|
* @async
|
|
586
812
|
* @param {ClaimPayload} payload
|
|
587
|
-
* @param {?ReadParams
|
|
588
|
-
* @returns {
|
|
813
|
+
* @param {?ReadParams} [params]
|
|
814
|
+
* @returns {Promise<boolean>} = True if the incentive is claimable based on the data payload
|
|
589
815
|
*/
|
|
590
816
|
isClaimable(payload: ClaimPayload, params?: ReadParams<typeof erc20IncentiveAbi, 'isClaimable'>): Promise<boolean>;
|
|
591
817
|
/**
|
|
@@ -593,7 +819,7 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
593
819
|
*
|
|
594
820
|
* @public
|
|
595
821
|
* @async
|
|
596
|
-
* @param {?WriteParams
|
|
822
|
+
* @param {?WriteParams} [params]
|
|
597
823
|
* @returns {Promise<void>}
|
|
598
824
|
*/
|
|
599
825
|
drawRaffle(params?: WriteParams<typeof erc20IncentiveAbi, 'drawRaffle'>): Promise<void>;
|
|
@@ -602,8 +828,8 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
602
828
|
*
|
|
603
829
|
* @public
|
|
604
830
|
* @async
|
|
605
|
-
* @param {?WriteParams
|
|
606
|
-
* @returns {Promise<void>}
|
|
831
|
+
* @param {?WriteParams} [params]
|
|
832
|
+
* @returns {Promise<{ hash: `0x${string}`; result: void; }>}
|
|
607
833
|
*/
|
|
608
834
|
drawRaffleRaw(params?: WriteParams<typeof erc20IncentiveAbi, 'drawRaffle'>): Promise<{
|
|
609
835
|
hash: `0x${string}`;
|
|
@@ -619,4 +845,15 @@ export declare class ERC20Incentive extends DeployableTarget<ERC20IncentivePaylo
|
|
|
619
845
|
*/
|
|
620
846
|
buildParameters(_payload?: ERC20IncentivePayload, _options?: DeployableOptions): GenericDeployableParams;
|
|
621
847
|
}
|
|
848
|
+
/**
|
|
849
|
+
* Given a {@link ERC20IncentivePayload}, properly encode a `ERC20Incentive.InitPayload` for use with {@link ERC20Incentive} initialization.
|
|
850
|
+
*
|
|
851
|
+
* @param {ERC20IncentivePayload} param0
|
|
852
|
+
* @param {Address} param0.asset - The address of the incentivized asset.
|
|
853
|
+
* @param {StrategyType} param0.strategy - The type of disbursement strategy for the incentive. `StrategyType.MINT` is not supported for `ERC20Incentives`
|
|
854
|
+
* @param {bigint} param0.reward - The amount of the asset to distribute.
|
|
855
|
+
* @param {bigint} param0.limit - How many times can this incentive be claimed.
|
|
856
|
+
* @returns {Hex}
|
|
857
|
+
*/
|
|
858
|
+
export declare function prepareERC20IncentivePayload({ asset, strategy, reward, limit, }: ERC20IncentivePayload): `0x${string}`;
|
|
622
859
|
//# sourceMappingURL=ERC20Incentive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ERC20Incentive.d.ts","sourceRoot":"","sources":["../../src/Incentives/ERC20Incentive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAiBlB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ERC20Incentive.d.ts","sourceRoot":"","sources":["../../src/Incentives/ERC20Incentive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EAiBlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAGvB,MAAM,MAAM,CAAC;AAEd,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,YAAY,EAElB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,WAAW,EACjB,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;OAIG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,CAC3B,KAAK,SAAS,iBAAiB,CAAC,OAAO,iBAAiB,CAAC,GAAG,iBAAiB,CAC3E,OAAO,iBAAiB,CACzB,IACC,UAAU,CAAC,OAAO,iBAAiB,EAAE,KAAK,CAAC,CAAC;AAEhD;;;;;;;GAOG;AACH,qBAAa,cAAe,SAAQ,g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