@boostxyz/sdk 2.0.0-alpha.28 → 2.0.0-alpha.30

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.
Files changed (87) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.js +2 -2
  3. package/dist/Actions/EventAction.cjs +1 -1
  4. package/dist/Actions/EventAction.cjs.map +1 -1
  5. package/dist/Actions/EventAction.d.ts +3 -1
  6. package/dist/Actions/EventAction.d.ts.map +1 -1
  7. package/dist/Actions/EventAction.js +158 -142
  8. package/dist/Actions/EventAction.js.map +1 -1
  9. package/dist/AllowLists/AllowList.cjs +1 -1
  10. package/dist/AllowLists/AllowList.js +3 -3
  11. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  12. package/dist/AllowLists/SimpleAllowList.js +6 -6
  13. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  14. package/dist/AllowLists/SimpleDenyList.js +3 -3
  15. package/dist/Auth/PassthroughAuth.cjs +1 -1
  16. package/dist/Auth/PassthroughAuth.js +1 -1
  17. package/dist/BoostCore.cjs +2 -2
  18. package/dist/BoostCore.cjs.map +1 -1
  19. package/dist/BoostCore.js +13 -13
  20. package/dist/BoostRegistry.cjs +1 -1
  21. package/dist/BoostRegistry.js +13 -13
  22. package/dist/Budgets/Budget.cjs +1 -1
  23. package/dist/Budgets/Budget.js +2 -2
  24. package/dist/Budgets/ManagedBudget.cjs +1 -1
  25. package/dist/Budgets/ManagedBudget.js +25 -25
  26. package/dist/Deployable/DeployableTarget.cjs +1 -1
  27. package/dist/Deployable/DeployableTarget.js +1 -1
  28. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  29. package/dist/Deployable/DeployableTargetWithRBAC.js +13 -13
  30. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  31. package/dist/Incentives/AllowListIncentive.js +10 -10
  32. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  33. package/dist/Incentives/CGDAIncentive.js +10 -10
  34. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  35. package/dist/Incentives/ERC20Incentive.js +16 -16
  36. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
  37. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
  38. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts +37 -1
  39. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -1
  40. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +69 -50
  41. package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
  42. package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
  43. package/dist/Incentives/ERC20VariableIncentive.js +6 -6
  44. package/dist/Incentives/Incentive.cjs +1 -1
  45. package/dist/Incentives/Incentive.js +2 -2
  46. package/dist/Incentives/PointsIncentive.cjs +1 -1
  47. package/dist/Incentives/PointsIncentive.js +8 -8
  48. package/dist/{SimpleDenyList-DqM-Bczx.cjs → SimpleDenyList-DEOJMCvF.cjs} +2 -2
  49. package/dist/{SimpleDenyList-DqM-Bczx.cjs.map → SimpleDenyList-DEOJMCvF.cjs.map} +1 -1
  50. package/dist/{SimpleDenyList-7BojkCuF.js → SimpleDenyList-Ddg3_VkW.js} +13 -13
  51. package/dist/{SimpleDenyList-7BojkCuF.js.map → SimpleDenyList-Ddg3_VkW.js.map} +1 -1
  52. package/dist/Validators/LimitedSignerValidator.cjs +1 -1
  53. package/dist/Validators/LimitedSignerValidator.js +2 -2
  54. package/dist/Validators/SignerValidator.cjs +1 -1
  55. package/dist/Validators/SignerValidator.js +5 -5
  56. package/dist/Validators/Validator.cjs +1 -1
  57. package/dist/Validators/Validator.js +2 -2
  58. package/dist/{componentInterfaces-BJ_XfE8j.cjs → componentInterfaces-BQw7DH-m.cjs} +2 -2
  59. package/dist/componentInterfaces-BQw7DH-m.cjs.map +1 -0
  60. package/dist/componentInterfaces-C0vuWQlh.js +15 -0
  61. package/dist/componentInterfaces-C0vuWQlh.js.map +1 -0
  62. package/dist/deployments-DAmmY7Gs.cjs +2 -0
  63. package/dist/deployments-DAmmY7Gs.cjs.map +1 -0
  64. package/dist/deployments-ZfLmhZat.js +56 -0
  65. package/dist/deployments-ZfLmhZat.js.map +1 -0
  66. package/dist/deployments.json +28 -28
  67. package/dist/{generated-Dz_g2mFT.js → generated-BwSyxdrd.js} +231 -213
  68. package/dist/generated-BwSyxdrd.js.map +1 -0
  69. package/dist/{generated-BSUMIFi5.cjs → generated-CtPS8IvR.cjs} +3 -3
  70. package/dist/generated-CtPS8IvR.cjs.map +1 -0
  71. package/dist/index.cjs +1 -1
  72. package/dist/index.js +16 -16
  73. package/package.json +2 -2
  74. package/src/Actions/EventAction.test.ts +1 -1
  75. package/src/Actions/EventAction.ts +40 -15
  76. package/src/BoostCore.test.ts +7 -7
  77. package/src/Incentives/ERC20VariableCriteriaIncentive.test.ts +3 -0
  78. package/src/Incentives/ERC20VariableCriteriaIncentive.ts +36 -0
  79. package/dist/componentInterfaces-BJ_XfE8j.cjs.map +0 -1
  80. package/dist/componentInterfaces-DBJaFhsl.js +0 -15
  81. package/dist/componentInterfaces-DBJaFhsl.js.map +0 -1
  82. package/dist/deployments-Ccx1MtoK.js +0 -56
  83. package/dist/deployments-Ccx1MtoK.js.map +0 -1
  84. package/dist/deployments-DF_6-7hH.cjs +0 -2
  85. package/dist/deployments-DF_6-7hH.cjs.map +0 -1
  86. package/dist/generated-BSUMIFi5.cjs.map +0 -1
  87. package/dist/generated-Dz_g2mFT.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./BoostRegistry.cjs"),n=require("./BoostCore.cjs"),A=require("./Boost.cjs"),C=require("./Actions/Action.cjs"),a=require("./Actions/EventAction.cjs"),p=require("./AllowLists/AllowList.cjs"),c=require("./AllowLists/SimpleAllowList.cjs"),u=require("./SimpleDenyList-DqM-Bczx.cjs"),g=require("./Budgets/Budget.cjs"),o=require("./Budgets/ManagedBudget.cjs"),B=require("./Deployable/Deployable.cjs"),T=require("./Deployable/Contract.cjs"),V=require("./Deployable/DeployableTarget.cjs"),I=require("./Deployable/DeployableTargetWithRBAC.cjs"),S=require("./Incentives/AllowListIncentive.cjs"),m=require("./Incentives/CGDAIncentive.cjs"),v=require("./Incentives/ERC20Incentive.cjs"),P=require("./Incentives/ERC20VariableIncentive.cjs"),y=require("./Incentives/ERC20VariableCriteriaIncentive.cjs"),b=require("./Incentives/Incentive.cjs"),R=require("./Incentives/PointsIncentive.cjs"),l=require("./Validators/SignerValidator.cjs"),d=require("./Validators/LimitedSignerValidator.cjs"),E=require("./Validators/Validator.cjs"),e=require("./errors.cjs"),i=require("./utils.cjs"),D=require("./claiming.cjs"),t=require("./transfers.cjs"),L=require("./Auth/PassthroughAuth.cjs"),r=require("./generated-BSUMIFi5.cjs");exports.BOOST_REGISTRY_ADDRESS=s.BOOST_REGISTRY_ADDRESS;exports.BOOST_REGISTRY_ADDRESSES=s.BOOST_REGISTRY_ADDRESSES;exports.BoostRegistry=s.BoostRegistry;exports.BOOST_CORE_ADDRESS=n.BOOST_CORE_ADDRESS;exports.BOOST_CORE_ADDRESSES=n.BOOST_CORE_ADDRESSES;exports.BOOST_CORE_CLAIM_FEE=n.BOOST_CORE_CLAIM_FEE;exports.BoostCore=n.BoostCore;exports.Boost=A.Boost;exports.prepareBoostPayload=A.prepareBoostPayload;exports.ActionByComponentInterface=C.ActionByComponentInterface;exports.actionFromAddress=C.actionFromAddress;exports.EventAction=a.EventAction;exports.FilterType=a.FilterType;exports.PrimitiveType=a.PrimitiveType;exports.SignatureType=a.SignatureType;exports.anyActionParameter=a.anyActionParameter;exports.isEventActionPayloadSimple=a.isEventActionPayloadSimple;exports.prepareEventActionPayload=a.prepareEventActionPayload;exports.transactionSenderClaimant=a.transactionSenderClaimant;exports.AllowListByComponentInterface=p.AllowListByComponentInterface;exports.OpenAllowList=p.OpenAllowList;exports.allowListFromAddress=p.allowListFromAddress;exports.LIST_MANAGER_ROLE=c.LIST_MANAGER_ROLE;exports.SimpleAllowList=c.SimpleAllowList;exports.prepareSimpleAllowListPayload=c.prepareSimpleAllowListPayload;exports.SimpleDenyList=u.SimpleDenyList;exports.prepareSimpleDenyListPayload=u.prepareSimpleDenyListPayload;exports.BudgetByComponentInterface=g.BudgetByComponentInterface;exports.budgetFromAddress=g.budgetFromAddress;exports.ManagedBudget=o.ManagedBudget;exports.ManagedBudgetRoles=o.ManagedBudgetRoles;exports.isERC1155TransferPayload=o.isERC1155TransferPayload;exports.isFungibleTransfer=o.isFungibleTransfer;exports.prepareManagedBudgetPayload=o.prepareManagedBudgetPayload;exports.prepareTransfer=o.prepareTransfer;exports.Deployable=B.Deployable;exports.Contract=T.Contract;exports.DeployableTarget=V.DeployableTarget;exports.DeployableTargetWithRBAC=I.DeployableTargetWithRBAC;exports.Roles=I.Roles;exports.AllowListIncentive=S.AllowListIncentive;exports.prepareAllowListIncentivePayload=S.prepareAllowListIncentivePayload;exports.CGDAIncentive=m.CGDAIncentive;exports.prepareCGDAIncentivePayload=m.prepareCGDAIncentivePayload;exports.ERC20Incentive=v.ERC20Incentive;exports.prepareERC20IncentivePayload=v.prepareERC20IncentivePayload;exports.ERC20VariableIncentive=P.ERC20VariableIncentive;exports.prepareERC20VariableIncentivePayload=P.prepareERC20VariableIncentivePayload;exports.ERC20VariableCriteriaIncentive=y.ERC20VariableCriteriaIncentive;exports.gasRebateIncentiveCriteria=y.gasRebateIncentiveCriteria;exports.prepareERC20VariableCriteriaIncentivePayload=y.prepareERC20VariableCriteriaIncentivePayload;exports.IncentiveByComponentInterface=b.IncentiveByComponentInterface;exports.incentiveFromAddress=b.incentiveFromAddress;exports.PointsIncentive=R.PointsIncentive;exports.preparePointsIncentivePayload=R.preparePointsIncentivePayload;exports.SignerValidator=l.SignerValidator;exports.prepareSignerValidatorClaimDataPayload=l.prepareSignerValidatorClaimDataPayload;exports.prepareSignerValidatorInputParams=l.prepareSignerValidatorInputParams;exports.prepareSignerValidatorPayload=l.prepareSignerValidatorPayload;exports.LimitedSignerValidator=d.LimitedSignerValidator;exports.prepareLimitedSignerValidatorClaimDataPayload=d.prepareLimitedSignerValidatorClaimDataPayload;exports.prepareLimitedSignerValidatorInputParams=d.prepareLimitedSignerValidatorInputParams;exports.prepareLimitedSignerValidatorPayload=d.prepareLimitedSignerValidatorPayload;exports.BoostValidatorEOA=E.BoostValidatorEOA;exports.ValidatorByComponentInterface=E.ValidatorByComponentInterface;exports.validatorFromAddress=E.validatorFromAddress;exports.BoostCoreNoIdentifierEmitted=e.BoostCoreNoIdentifierEmitted;exports.BoostNotFoundError=e.BoostNotFoundError;exports.BudgetMustAuthorizeBoostCore=e.BudgetMustAuthorizeBoostCore;exports.ContractAddressRequiredError=e.ContractAddressRequiredError;exports.DecodedArgsError=e.DecodedArgsError;exports.DecodedArgsMalformedError=e.DecodedArgsMalformedError;exports.DeployableAlreadyDeployedError=e.DeployableAlreadyDeployedError;exports.DeployableBuildParametersUnspecifiedError=e.DeployableBuildParametersUnspecifiedError;exports.DeployableMissingPayloadError=e.DeployableMissingPayloadError;exports.DeployableUnknownOwnerProvidedError=e.DeployableUnknownOwnerProvidedError;exports.DeployableWagmiConfigurationRequiredError=e.DeployableWagmiConfigurationRequiredError;exports.FieldActionValidationError=e.FieldActionValidationError;exports.FieldValueNotComparableError=e.FieldValueNotComparableError;exports.FieldValueUndefinedError=e.FieldValueUndefinedError;exports.FunctionDataDecodeError=e.FunctionDataDecodeError;exports.IncentiveCriteriaNotFoundError=e.IncentiveCriteriaNotFoundError;exports.IncentiveNotCloneableError=e.IncentiveNotCloneableError;exports.InvalidComponentInterfaceError=e.InvalidComponentInterfaceError;exports.InvalidCriteriaTypeError=e.InvalidCriteriaTypeError;exports.InvalidNumericalCriteriaError=e.InvalidNumericalCriteriaError;exports.InvalidProtocolChainIdError=e.InvalidProtocolChainIdError;exports.MustInitializeBudgetError=e.MustInitializeBudgetError;exports.NoConnectedChainIdError=e.NoConnectedChainIdError;exports.NoContractAddressUponReceiptError=e.NoContractAddressUponReceiptError;exports.NoEventActionStepsProvidedError=e.NoEventActionStepsProvidedError;exports.NoMatchingLogsError=e.NoMatchingLogsError;exports.TooManyEventActionStepsProvidedError=e.TooManyEventActionStepsProvidedError;exports.UnknownTransferPayloadSupplied=e.UnknownTransferPayloadSupplied;exports.UnparseableAbiParamError=e.UnparseableAbiParamError;exports.UnrecognizedFilterTypeError=e.UnrecognizedFilterTypeError;exports.ValidationAbiMissingError=e.ValidationAbiMissingError;exports.CheatCodes=i.CheatCodes;exports.RegistryType=i.RegistryType;exports.assertValidAddressByChainId=i.assertValidAddressByChainId;exports.awaitResult=i.awaitResult;exports.bytes4=i.bytes4;exports.getDeployedContractAddress=i.getDeployedContractAddress;exports.StrategyType=D.StrategyType;exports.prepareClaimPayload=D.prepareClaimPayload;exports.AssetType=t.AssetType;exports.prepareERC1155Payload=t.prepareERC1155Payload;exports.prepareERC1155Transfer=t.prepareERC1155Transfer;exports.prepareFungiblePayload=t.prepareFungiblePayload;exports.prepareFungibleTransfer=t.prepareFungibleTransfer;exports.prepareTransferPayload=t.prepareTransferPayload;exports.PassthroughAuth=L.PassthroughAuth;exports.allowListIncentiveAbi=r.C;exports.boostCoreAbi=r.A;exports.boostRegistryAbi=r.oe;exports.cgdaIncentiveAbi=r.f;exports.erc20IncentiveAbi=r.y;exports.erc20VariableCriteriaIncentiveAbi=r.b;exports.erc20VariableIncentiveAbi=r.v;exports.limitedSignerValidatorAbi=r.z;exports.managedBudgetAbi=r.d;exports.passthroughAuthAbi=r.Ve;exports.pointsIncentiveAbi=r.T;exports.rbacAbi=r.O;exports.signerValidatorAbi=r.S;exports.simpleAllowListAbi=r.g;exports.simpleDenyListAbi=r.M;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./BoostRegistry.cjs"),n=require("./BoostCore.cjs"),A=require("./Boost.cjs"),C=require("./Actions/Action.cjs"),a=require("./Actions/EventAction.cjs"),p=require("./AllowLists/AllowList.cjs"),c=require("./AllowLists/SimpleAllowList.cjs"),u=require("./SimpleDenyList-DEOJMCvF.cjs"),g=require("./Budgets/Budget.cjs"),o=require("./Budgets/ManagedBudget.cjs"),B=require("./Deployable/Deployable.cjs"),T=require("./Deployable/Contract.cjs"),V=require("./Deployable/DeployableTarget.cjs"),I=require("./Deployable/DeployableTargetWithRBAC.cjs"),S=require("./Incentives/AllowListIncentive.cjs"),m=require("./Incentives/CGDAIncentive.cjs"),v=require("./Incentives/ERC20Incentive.cjs"),P=require("./Incentives/ERC20VariableIncentive.cjs"),E=require("./Incentives/ERC20VariableCriteriaIncentive.cjs"),b=require("./Incentives/Incentive.cjs"),R=require("./Incentives/PointsIncentive.cjs"),l=require("./Validators/SignerValidator.cjs"),d=require("./Validators/LimitedSignerValidator.cjs"),y=require("./Validators/Validator.cjs"),e=require("./errors.cjs"),i=require("./utils.cjs"),D=require("./claiming.cjs"),t=require("./transfers.cjs"),L=require("./Auth/PassthroughAuth.cjs"),r=require("./generated-CtPS8IvR.cjs");exports.BOOST_REGISTRY_ADDRESS=s.BOOST_REGISTRY_ADDRESS;exports.BOOST_REGISTRY_ADDRESSES=s.BOOST_REGISTRY_ADDRESSES;exports.BoostRegistry=s.BoostRegistry;exports.BOOST_CORE_ADDRESS=n.BOOST_CORE_ADDRESS;exports.BOOST_CORE_ADDRESSES=n.BOOST_CORE_ADDRESSES;exports.BOOST_CORE_CLAIM_FEE=n.BOOST_CORE_CLAIM_FEE;exports.BoostCore=n.BoostCore;exports.Boost=A.Boost;exports.prepareBoostPayload=A.prepareBoostPayload;exports.ActionByComponentInterface=C.ActionByComponentInterface;exports.actionFromAddress=C.actionFromAddress;exports.EventAction=a.EventAction;exports.FilterType=a.FilterType;exports.PrimitiveType=a.PrimitiveType;exports.SignatureType=a.SignatureType;exports.anyActionParameter=a.anyActionParameter;exports.isEventActionPayloadSimple=a.isEventActionPayloadSimple;exports.prepareEventActionPayload=a.prepareEventActionPayload;exports.transactionSenderClaimant=a.transactionSenderClaimant;exports.AllowListByComponentInterface=p.AllowListByComponentInterface;exports.OpenAllowList=p.OpenAllowList;exports.allowListFromAddress=p.allowListFromAddress;exports.LIST_MANAGER_ROLE=c.LIST_MANAGER_ROLE;exports.SimpleAllowList=c.SimpleAllowList;exports.prepareSimpleAllowListPayload=c.prepareSimpleAllowListPayload;exports.SimpleDenyList=u.SimpleDenyList;exports.prepareSimpleDenyListPayload=u.prepareSimpleDenyListPayload;exports.BudgetByComponentInterface=g.BudgetByComponentInterface;exports.budgetFromAddress=g.budgetFromAddress;exports.ManagedBudget=o.ManagedBudget;exports.ManagedBudgetRoles=o.ManagedBudgetRoles;exports.isERC1155TransferPayload=o.isERC1155TransferPayload;exports.isFungibleTransfer=o.isFungibleTransfer;exports.prepareManagedBudgetPayload=o.prepareManagedBudgetPayload;exports.prepareTransfer=o.prepareTransfer;exports.Deployable=B.Deployable;exports.Contract=T.Contract;exports.DeployableTarget=V.DeployableTarget;exports.DeployableTargetWithRBAC=I.DeployableTargetWithRBAC;exports.Roles=I.Roles;exports.AllowListIncentive=S.AllowListIncentive;exports.prepareAllowListIncentivePayload=S.prepareAllowListIncentivePayload;exports.CGDAIncentive=m.CGDAIncentive;exports.prepareCGDAIncentivePayload=m.prepareCGDAIncentivePayload;exports.ERC20Incentive=v.ERC20Incentive;exports.prepareERC20IncentivePayload=v.prepareERC20IncentivePayload;exports.ERC20VariableIncentive=P.ERC20VariableIncentive;exports.prepareERC20VariableIncentivePayload=P.prepareERC20VariableIncentivePayload;exports.ERC20VariableCriteriaIncentive=E.ERC20VariableCriteriaIncentive;exports.gasRebateIncentiveCriteria=E.gasRebateIncentiveCriteria;exports.prepareERC20VariableCriteriaIncentivePayload=E.prepareERC20VariableCriteriaIncentivePayload;exports.IncentiveByComponentInterface=b.IncentiveByComponentInterface;exports.incentiveFromAddress=b.incentiveFromAddress;exports.PointsIncentive=R.PointsIncentive;exports.preparePointsIncentivePayload=R.preparePointsIncentivePayload;exports.SignerValidator=l.SignerValidator;exports.prepareSignerValidatorClaimDataPayload=l.prepareSignerValidatorClaimDataPayload;exports.prepareSignerValidatorInputParams=l.prepareSignerValidatorInputParams;exports.prepareSignerValidatorPayload=l.prepareSignerValidatorPayload;exports.LimitedSignerValidator=d.LimitedSignerValidator;exports.prepareLimitedSignerValidatorClaimDataPayload=d.prepareLimitedSignerValidatorClaimDataPayload;exports.prepareLimitedSignerValidatorInputParams=d.prepareLimitedSignerValidatorInputParams;exports.prepareLimitedSignerValidatorPayload=d.prepareLimitedSignerValidatorPayload;exports.BoostValidatorEOA=y.BoostValidatorEOA;exports.ValidatorByComponentInterface=y.ValidatorByComponentInterface;exports.validatorFromAddress=y.validatorFromAddress;exports.BoostCoreNoIdentifierEmitted=e.BoostCoreNoIdentifierEmitted;exports.BoostNotFoundError=e.BoostNotFoundError;exports.BudgetMustAuthorizeBoostCore=e.BudgetMustAuthorizeBoostCore;exports.ContractAddressRequiredError=e.ContractAddressRequiredError;exports.DecodedArgsError=e.DecodedArgsError;exports.DecodedArgsMalformedError=e.DecodedArgsMalformedError;exports.DeployableAlreadyDeployedError=e.DeployableAlreadyDeployedError;exports.DeployableBuildParametersUnspecifiedError=e.DeployableBuildParametersUnspecifiedError;exports.DeployableMissingPayloadError=e.DeployableMissingPayloadError;exports.DeployableUnknownOwnerProvidedError=e.DeployableUnknownOwnerProvidedError;exports.DeployableWagmiConfigurationRequiredError=e.DeployableWagmiConfigurationRequiredError;exports.FieldActionValidationError=e.FieldActionValidationError;exports.FieldValueNotComparableError=e.FieldValueNotComparableError;exports.FieldValueUndefinedError=e.FieldValueUndefinedError;exports.FunctionDataDecodeError=e.FunctionDataDecodeError;exports.IncentiveCriteriaNotFoundError=e.IncentiveCriteriaNotFoundError;exports.IncentiveNotCloneableError=e.IncentiveNotCloneableError;exports.InvalidComponentInterfaceError=e.InvalidComponentInterfaceError;exports.InvalidCriteriaTypeError=e.InvalidCriteriaTypeError;exports.InvalidNumericalCriteriaError=e.InvalidNumericalCriteriaError;exports.InvalidProtocolChainIdError=e.InvalidProtocolChainIdError;exports.MustInitializeBudgetError=e.MustInitializeBudgetError;exports.NoConnectedChainIdError=e.NoConnectedChainIdError;exports.NoContractAddressUponReceiptError=e.NoContractAddressUponReceiptError;exports.NoEventActionStepsProvidedError=e.NoEventActionStepsProvidedError;exports.NoMatchingLogsError=e.NoMatchingLogsError;exports.TooManyEventActionStepsProvidedError=e.TooManyEventActionStepsProvidedError;exports.UnknownTransferPayloadSupplied=e.UnknownTransferPayloadSupplied;exports.UnparseableAbiParamError=e.UnparseableAbiParamError;exports.UnrecognizedFilterTypeError=e.UnrecognizedFilterTypeError;exports.ValidationAbiMissingError=e.ValidationAbiMissingError;exports.CheatCodes=i.CheatCodes;exports.RegistryType=i.RegistryType;exports.assertValidAddressByChainId=i.assertValidAddressByChainId;exports.awaitResult=i.awaitResult;exports.bytes4=i.bytes4;exports.getDeployedContractAddress=i.getDeployedContractAddress;exports.StrategyType=D.StrategyType;exports.prepareClaimPayload=D.prepareClaimPayload;exports.AssetType=t.AssetType;exports.prepareERC1155Payload=t.prepareERC1155Payload;exports.prepareERC1155Transfer=t.prepareERC1155Transfer;exports.prepareFungiblePayload=t.prepareFungiblePayload;exports.prepareFungibleTransfer=t.prepareFungibleTransfer;exports.prepareTransferPayload=t.prepareTransferPayload;exports.PassthroughAuth=L.PassthroughAuth;exports.allowListIncentiveAbi=r.C;exports.boostCoreAbi=r.A;exports.boostRegistryAbi=r.oe;exports.cgdaIncentiveAbi=r.f;exports.erc20IncentiveAbi=r.d;exports.erc20VariableCriteriaIncentiveAbi=r.c;exports.erc20VariableIncentiveAbi=r.v;exports.limitedSignerValidatorAbi=r.z;exports.managedBudgetAbi=r.m;exports.passthroughAuthAbi=r.Ve;exports.pointsIncentiveAbi=r.T;exports.rbacAbi=r.O;exports.signerValidatorAbi=r.S;exports.simpleAllowListAbi=r.g;exports.simpleDenyListAbi=r.M;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { BOOST_REGISTRY_ADDRESS as o, BOOST_REGISTRY_ADDRESSES as a, BoostRegistry as t } from "./BoostRegistry.js";
2
2
  import { BOOST_CORE_ADDRESS as n, BOOST_CORE_ADDRESSES as p, BOOST_CORE_CLAIM_FEE as l, BoostCore as d } from "./BoostCore.js";
3
- import { Boost as m, prepareBoostPayload as A } from "./Boost.js";
4
- import { ActionByComponentInterface as y, actionFromAddress as E } from "./Actions/Action.js";
3
+ import { Boost as m, prepareBoostPayload as c } from "./Boost.js";
4
+ import { ActionByComponentInterface as E, actionFromAddress as y } from "./Actions/Action.js";
5
5
  import { EventAction as f, FilterType as g, PrimitiveType as b, SignatureType as I, anyActionParameter as S, isEventActionPayloadSimple as v, prepareEventActionPayload as P, transactionSenderClaimant as u } from "./Actions/EventAction.js";
6
6
  import { AllowListByComponentInterface as x, OpenAllowList as D, allowListFromAddress as B } from "./AllowLists/AllowList.js";
7
7
  import { LIST_MANAGER_ROLE as V, SimpleAllowList as L, prepareSimpleAllowListPayload as O } from "./AllowLists/SimpleAllowList.js";
8
- import { S as h, p as w } from "./SimpleDenyList-7BojkCuF.js";
8
+ import { S as h, p as w } from "./SimpleDenyList-Ddg3_VkW.js";
9
9
  import { BudgetByComponentInterface as _, budgetFromAddress as N } from "./Budgets/Budget.js";
10
10
  import { ManagedBudget as G, ManagedBudgetRoles as z, isERC1155TransferPayload as k, isFungibleTransfer as q, prepareManagedBudgetPayload as W, prepareTransfer as Y } from "./Budgets/ManagedBudget.js";
11
11
  import { Deployable as H } from "./Deployable/Deployable.js";
@@ -15,21 +15,21 @@ import { DeployableTargetWithRBAC as $, Roles as ee } from "./Deployable/Deploya
15
15
  import { AllowListIncentive as oe, prepareAllowListIncentivePayload as ae } from "./Incentives/AllowListIncentive.js";
16
16
  import { CGDAIncentive as ie, prepareCGDAIncentivePayload as ne } from "./Incentives/CGDAIncentive.js";
17
17
  import { ERC20Incentive as le, prepareERC20IncentivePayload as de } from "./Incentives/ERC20Incentive.js";
18
- import { ERC20VariableIncentive as me, prepareERC20VariableIncentivePayload as Ae } from "./Incentives/ERC20VariableIncentive.js";
19
- import { ERC20VariableCriteriaIncentive as ye, gasRebateIncentiveCriteria as Ee, prepareERC20VariableCriteriaIncentivePayload as Ce } from "./Incentives/ERC20VariableCriteriaIncentive.js";
18
+ import { ERC20VariableIncentive as me, prepareERC20VariableIncentivePayload as ce } from "./Incentives/ERC20VariableIncentive.js";
19
+ import { ERC20VariableCriteriaIncentive as Ee, gasRebateIncentiveCriteria as ye, prepareERC20VariableCriteriaIncentivePayload as Ce } from "./Incentives/ERC20VariableCriteriaIncentive.js";
20
20
  import { IncentiveByComponentInterface as ge, incentiveFromAddress as be } from "./Incentives/Incentive.js";
21
21
  import { PointsIncentive as Se, preparePointsIncentivePayload as ve } from "./Incentives/PointsIncentive.js";
22
22
  import { SignerValidator as ue, prepareSignerValidatorClaimDataPayload as Re, prepareSignerValidatorInputParams as xe, prepareSignerValidatorPayload as De } from "./Validators/SignerValidator.js";
23
23
  import { LimitedSignerValidator as Te, prepareLimitedSignerValidatorClaimDataPayload as Ve, prepareLimitedSignerValidatorInputParams as Le, prepareLimitedSignerValidatorPayload as Oe } from "./Validators/LimitedSignerValidator.js";
24
24
  import { BoostValidatorEOA as he, ValidatorByComponentInterface as we, validatorFromAddress as Me } from "./Validators/Validator.js";
25
- import { BoostCoreNoIdentifierEmitted as Ne, BoostNotFoundError as Ue, BudgetMustAuthorizeBoostCore as Ge, ContractAddressRequiredError as ze, DecodedArgsError as ke, DecodedArgsMalformedError as qe, DeployableAlreadyDeployedError as We, DeployableBuildParametersUnspecifiedError as Ye, DeployableMissingPayloadError as je, DeployableUnknownOwnerProvidedError as He, DeployableWagmiConfigurationRequiredError as Je, FieldActionValidationError as Ke, FieldValueNotComparableError as Qe, FieldValueUndefinedError as Xe, FunctionDataDecodeError as Ze, IncentiveCriteriaNotFoundError as $e, IncentiveNotCloneableError as er, InvalidComponentInterfaceError as rr, InvalidCriteriaTypeError as or, InvalidNumericalCriteriaError as ar, InvalidProtocolChainIdError as tr, MustInitializeBudgetError as ir, NoConnectedChainIdError as nr, NoContractAddressUponReceiptError as pr, NoEventActionStepsProvidedError as lr, NoMatchingLogsError as dr, TooManyEventActionStepsProvidedError as sr, UnknownTransferPayloadSupplied as mr, UnparseableAbiParamError as Ar, UnrecognizedFilterTypeError as cr, ValidationAbiMissingError as yr } from "./errors.js";
25
+ import { BoostCoreNoIdentifierEmitted as Ne, BoostNotFoundError as Ue, BudgetMustAuthorizeBoostCore as Ge, ContractAddressRequiredError as ze, DecodedArgsError as ke, DecodedArgsMalformedError as qe, DeployableAlreadyDeployedError as We, DeployableBuildParametersUnspecifiedError as Ye, DeployableMissingPayloadError as je, DeployableUnknownOwnerProvidedError as He, DeployableWagmiConfigurationRequiredError as Je, FieldActionValidationError as Ke, FieldValueNotComparableError as Qe, FieldValueUndefinedError as Xe, FunctionDataDecodeError as Ze, IncentiveCriteriaNotFoundError as $e, IncentiveNotCloneableError as er, InvalidComponentInterfaceError as rr, InvalidCriteriaTypeError as or, InvalidNumericalCriteriaError as ar, InvalidProtocolChainIdError as tr, MustInitializeBudgetError as ir, NoConnectedChainIdError as nr, NoContractAddressUponReceiptError as pr, NoEventActionStepsProvidedError as lr, NoMatchingLogsError as dr, TooManyEventActionStepsProvidedError as sr, UnknownTransferPayloadSupplied as mr, UnparseableAbiParamError as cr, UnrecognizedFilterTypeError as Ar, ValidationAbiMissingError as Er } from "./errors.js";
26
26
  import { CheatCodes as Cr, RegistryType as fr, assertValidAddressByChainId as gr, awaitResult as br, bytes4 as Ir, getDeployedContractAddress as Sr } from "./utils.js";
27
27
  import { StrategyType as Pr, prepareClaimPayload as ur } from "./claiming.js";
28
28
  import { AssetType as xr, prepareERC1155Payload as Dr, prepareERC1155Transfer as Br, prepareFungiblePayload as Tr, prepareFungibleTransfer as Vr, prepareTransferPayload as Lr } from "./transfers.js";
29
29
  import { PassthroughAuth as Fr } from "./Auth/PassthroughAuth.js";
30
- import { C as wr, A as Mr, o as _r, f as Nr, y as Ur, b as Gr, v as zr, z as kr, d as qr, V as Wr, T as Yr, O as jr, S as Hr, g as Jr, M as Kr } from "./generated-Dz_g2mFT.js";
30
+ import { C as wr, A as Mr, o as _r, f as Nr, d as Ur, c as Gr, v as zr, z as kr, m as qr, V as Wr, T as Yr, O as jr, S as Hr, g as Jr, M as Kr } from "./generated-BwSyxdrd.js";
31
31
  export {
32
- y as ActionByComponentInterface,
32
+ E as ActionByComponentInterface,
33
33
  x as AllowListByComponentInterface,
34
34
  oe as AllowListIncentive,
35
35
  xr as AssetType,
@@ -61,7 +61,7 @@ export {
61
61
  He as DeployableUnknownOwnerProvidedError,
62
62
  Je as DeployableWagmiConfigurationRequiredError,
63
63
  le as ERC20Incentive,
64
- ye as ERC20VariableCriteriaIncentive,
64
+ Ee as ERC20VariableCriteriaIncentive,
65
65
  me as ERC20VariableIncentive,
66
66
  f as EventAction,
67
67
  Ke as FieldActionValidationError,
@@ -98,11 +98,11 @@ export {
98
98
  Pr as StrategyType,
99
99
  sr as TooManyEventActionStepsProvidedError,
100
100
  mr as UnknownTransferPayloadSupplied,
101
- Ar as UnparseableAbiParamError,
102
- cr as UnrecognizedFilterTypeError,
103
- yr as ValidationAbiMissingError,
101
+ cr as UnparseableAbiParamError,
102
+ Ar as UnrecognizedFilterTypeError,
103
+ Er as ValidationAbiMissingError,
104
104
  we as ValidatorByComponentInterface,
105
- E as actionFromAddress,
105
+ y as actionFromAddress,
106
106
  B as allowListFromAddress,
107
107
  wr as allowListIncentiveAbi,
108
108
  S as anyActionParameter,
@@ -116,7 +116,7 @@ export {
116
116
  Ur as erc20IncentiveAbi,
117
117
  Gr as erc20VariableCriteriaIncentiveAbi,
118
118
  zr as erc20VariableIncentiveAbi,
119
- Ee as gasRebateIncentiveCriteria,
119
+ ye as gasRebateIncentiveCriteria,
120
120
  Sr as getDeployedContractAddress,
121
121
  be as incentiveFromAddress,
122
122
  k as isERC1155TransferPayload,
@@ -127,14 +127,14 @@ export {
127
127
  Wr as passthroughAuthAbi,
128
128
  Yr as pointsIncentiveAbi,
129
129
  ae as prepareAllowListIncentivePayload,
130
- A as prepareBoostPayload,
130
+ c as prepareBoostPayload,
131
131
  ne as prepareCGDAIncentivePayload,
132
132
  ur as prepareClaimPayload,
133
133
  Dr as prepareERC1155Payload,
134
134
  Br as prepareERC1155Transfer,
135
135
  de as prepareERC20IncentivePayload,
136
136
  Ce as prepareERC20VariableCriteriaIncentivePayload,
137
- Ae as prepareERC20VariableIncentivePayload,
137
+ ce as prepareERC20VariableIncentivePayload,
138
138
  P as prepareEventActionPayload,
139
139
  Tr as prepareFungiblePayload,
140
140
  Vr as prepareFungibleTransfer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boostxyz/sdk",
3
- "version": "2.0.0-alpha.28",
3
+ "version": "2.0.0-alpha.30",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "files": [
@@ -216,7 +216,7 @@
216
216
  "ts-pattern": "5.4.0"
217
217
  },
218
218
  "optionalDependencies": {
219
- "@boostxyz/evm": "2.0.0-alpha.24"
219
+ "@boostxyz/evm": "2.0.0-alpha.25"
220
220
  },
221
221
  "peerDependencies": {
222
222
  "@wagmi/core": "2.x",
@@ -873,7 +873,7 @@ describe("validateFieldAgainstCriteria unit tests", () => {
873
873
 
874
874
  test("should throw UnrecognizedFilterTypeError for unrecognized filter type", () => {
875
875
  const mockCriteria = createMockCriteria(
876
- 6 as FilterType,
876
+ 8 as FilterType,
877
877
  PrimitiveType.STRING,
878
878
  "0x74657374",
879
879
  ); // Decoded value: 'test'
@@ -25,6 +25,7 @@ import {
25
25
  fromHex,
26
26
  isAddress,
27
27
  isAddressEqual,
28
+ toEventSelector,
28
29
  zeroAddress,
29
30
  zeroHash,
30
31
  } from 'viem';
@@ -71,6 +72,8 @@ export enum FilterType {
71
72
  LESS_THAN = 3,
72
73
  CONTAINS = 4,
73
74
  REGEX = 5,
75
+ GREATER_THAN_OR_EQUAL = 6,
76
+ LESS_THAN_OR_EQUAL = 7,
74
77
  }
75
78
 
76
79
  /**
@@ -591,14 +594,16 @@ export class EventAction extends DeployableTarget<
591
594
  ) {
592
595
  return undefined;
593
596
  }
594
- const decodedLogs = receipt.logs.map((log) => {
595
- const { eventName, args } = decodeEventLog({
596
- abi: [event],
597
- data: log.data,
598
- topics: log.topics,
597
+ const decodedLogs = receipt.logs
598
+ .filter((log) => log.topics[0] === toEventSelector(event))
599
+ .map((log) => {
600
+ const { eventName, args } = decodeEventLog({
601
+ abi: [event],
602
+ data: log.data,
603
+ topics: log.topics,
604
+ });
605
+ return { ...log, eventName, args };
599
606
  });
600
- return { ...log, eventName, args };
601
- });
602
607
 
603
608
  for (let log of decodedLogs) {
604
609
  if (!isAddressEqual(log.address, claimant.targetContract)) continue;
@@ -732,15 +737,17 @@ export class EventAction extends DeployableTarget<
732
737
  });
733
738
  if (params.notBeforeBlockNumber)
734
739
  return receipt.blockNumber >= params.notBeforeBlockNumber;
735
- const decodedLogs = receipt.logs.map((log) => {
736
- const { eventName, args } = decodeEventLog({
737
- abi: [event],
738
- data: log.data,
739
- topics: log.topics,
740
- });
740
+ const decodedLogs = receipt.logs
741
+ .filter((log) => log.topics[0] === toEventSelector(event))
742
+ .map((log) => {
743
+ const { eventName, args } = decodeEventLog({
744
+ abi: [event],
745
+ data: log.data,
746
+ topics: log.topics,
747
+ });
741
748
 
742
- return { ...log, eventName, args };
743
- });
749
+ return { ...log, eventName, args };
750
+ });
744
751
 
745
752
  return this.isActionEventValid(actionStep, decodedLogs);
746
753
  }
@@ -903,6 +910,15 @@ export class EventAction extends DeployableTarget<
903
910
  criteria,
904
911
  fieldValue,
905
912
  });
913
+ case FilterType.GREATER_THAN_OR_EQUAL:
914
+ if (criteria.fieldType === PrimitiveType.UINT) {
915
+ return BigInt(fieldValue) >= BigInt(criteria.filterData);
916
+ }
917
+ throw new InvalidNumericalCriteriaError({
918
+ ...input,
919
+ criteria,
920
+ fieldValue,
921
+ });
906
922
 
907
923
  case FilterType.LESS_THAN:
908
924
  if (criteria.fieldType === PrimitiveType.UINT) {
@@ -913,6 +929,15 @@ export class EventAction extends DeployableTarget<
913
929
  criteria,
914
930
  fieldValue,
915
931
  });
932
+ case FilterType.LESS_THAN_OR_EQUAL:
933
+ if (criteria.fieldType === PrimitiveType.UINT) {
934
+ return BigInt(fieldValue) <= BigInt(criteria.filterData);
935
+ }
936
+ throw new InvalidNumericalCriteriaError({
937
+ ...input,
938
+ criteria,
939
+ fieldValue,
940
+ });
916
941
 
917
942
  case FilterType.CONTAINS:
918
943
  if (
@@ -78,7 +78,7 @@ describe("BoostCore", () => {
78
78
  const { core } = fixtures;
79
79
  const { budget, erc20 } = budgets;
80
80
  const boost = await core.createBoost({
81
- protocolFee: 1n,
81
+ protocolFee: 0n,
82
82
  maxParticipants: 100n,
83
83
  budget: budget,
84
84
  action: core.EventAction(
@@ -160,7 +160,7 @@ describe("BoostCore", () => {
160
160
  const { core } = fixtures;
161
161
  const { budget, erc20 } = budgets;
162
162
  const _boost = await core.createBoost({
163
- protocolFee: 1n,
163
+ protocolFee: 0n,
164
164
  maxParticipants: 100n,
165
165
  budget: budget,
166
166
  action: core.EventAction(
@@ -188,7 +188,7 @@ describe("BoostCore", () => {
188
188
  ],
189
189
  });
190
190
  const boost = await core.readBoost(_boost.id);
191
- expect(boost.protocolFee).toBe(1001n);
191
+ expect(boost.protocolFee).toBe(1000n);
192
192
  expect(boost.maxParticipants).toBe(100n);
193
193
  expect(boost.budget).toBe(_boost.budget.assertValidAddress());
194
194
  expect(boost.action).toBe(_boost.action.assertValidAddress());
@@ -203,7 +203,7 @@ describe("BoostCore", () => {
203
203
  const { core } = fixtures;
204
204
  const { budget, erc20 } = budgets;
205
205
  const _boost = await core.createBoost({
206
- protocolFee: 1n,
206
+ protocolFee: 0n,
207
207
  maxParticipants: 100n,
208
208
  budget: budget,
209
209
  action: core.EventAction(
@@ -234,7 +234,7 @@ describe("BoostCore", () => {
234
234
  const { core } = fixtures;
235
235
  const { budget, erc20 } = budgets;
236
236
  const simulated = await core.simulateCreateBoost({
237
- protocolFee: 1n,
237
+ protocolFee: 0n,
238
238
  maxParticipants: 100n,
239
239
  budget: budget,
240
240
  action: core.EventAction(
@@ -569,7 +569,7 @@ describe("BoostCore", () => {
569
569
  });
570
570
 
571
571
  await core.createBoost({
572
- protocolFee: 1n,
572
+ protocolFee: 0n,
573
573
  maxParticipants: 100n,
574
574
  budget: budget,
575
575
  action: core.EventAction(
@@ -730,7 +730,7 @@ describe("BoostCore", () => {
730
730
  core.subscribe(subscription, { pollingInterval: 100 });
731
731
  const { budget, erc20 } = budgets;
732
732
  await core.createBoost({
733
- protocolFee: 1n,
733
+ protocolFee: 0n,
734
734
  maxParticipants: 100n,
735
735
  budget: budget,
736
736
  action: core.EventAction(
@@ -75,6 +75,7 @@ export function basicErc721TransferScalarPayload(
75
75
  asset: erc721.assertValidAddress(),
76
76
  reward: 1n,
77
77
  limit: 1n,
78
+ maxReward: 0n,
78
79
  criteria: basicErc721TransferScalarCriteria(erc721),
79
80
  };
80
81
  }
@@ -145,6 +146,7 @@ describe('ERC20VariableCriteriaIncentive', () => {
145
146
  asset: budgets.erc20.assertValidAddress(),
146
147
  reward: 1n,
147
148
  limit: 1n,
149
+ maxReward: 0n,
148
150
  criteria: basicErc721MintScalarCriteria(erc721),
149
151
  });
150
152
 
@@ -175,6 +177,7 @@ describe('ERC20VariableCriteriaIncentive', () => {
175
177
  asset: budgets.erc20.assertValidAddress(),
176
178
  reward: 1n,
177
179
  limit: 1n,
180
+ maxReward: 0n,
178
181
  criteria: gasRebateCriteria,
179
182
  });
180
183
 
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  erc20VariableCriteriaIncentiveAbi,
3
3
  readErc20VariableCriteriaIncentiveGetIncentiveCriteria,
4
+ readErc20VariableCriteriaIncentiveGetMaxReward,
4
5
  } from '@boostxyz/evm';
5
6
  import { bytecode } from '@boostxyz/evm/artifacts/contracts/incentives/ERC20VariableCriteriaIncentive.sol/ERC20VariableCriteriaIncentive.json';
6
7
  import { getTransaction, getTransactionReceipt } from '@wagmi/core';
@@ -51,6 +52,13 @@ export interface ERC20VariableCriteriaIncentivePayload {
51
52
  * @type {bigint}
52
53
  */
53
54
  limit: bigint;
55
+ /**
56
+ * The total amount claimable in a single claim or maximum per-action reward.
57
+ *
58
+ * @type {bigint}
59
+ * @optional
60
+ */
61
+ maxReward?: bigint;
54
62
  /**
55
63
  * The criteria for the incentive that determines how the reward is distributed.
56
64
  *
@@ -157,6 +165,30 @@ export class ERC20VariableCriteriaIncentive extends ERC20VariableIncentive<
157
165
  }
158
166
  }
159
167
 
168
+ /**
169
+ * Fetches the IncentiveCriteria struct from the contract
170
+ *
171
+ * @param {?ReadParams} [params]
172
+ * @returns {Promise<IncentiveCriteria>} Incentive criteria structure
173
+ * @throws {IncentiveCriteriaNotFoundError}
174
+ */
175
+ public async getMaxReward(
176
+ params?: ReadParams<
177
+ typeof erc20VariableCriteriaIncentiveAbi,
178
+ 'getIncentiveCriteria'
179
+ >,
180
+ ): Promise<bigint> {
181
+ const maxReward = await readErc20VariableCriteriaIncentiveGetMaxReward(
182
+ this._config,
183
+ {
184
+ ...params,
185
+ address: this.assertValidAddress(),
186
+ },
187
+ );
188
+
189
+ return maxReward;
190
+ }
191
+
160
192
  /**
161
193
  * Fetches the incentive scalar from a transaction hash
162
194
  *
@@ -319,6 +351,7 @@ export function gasRebateIncentiveCriteria(): IncentiveCriteria {
319
351
  * @param {Address} param0.asset - The address of the ERC20 asset to incentivize.
320
352
  * @param {bigint} param0.reward - The reward amount to distribute per action.
321
353
  * @param {bigint} param0.limit - The total limit of the asset distribution.
354
+ * @param {bigint} param0.maxReward - The maximum value claimable from a single completion.
322
355
  * @param {IncentiveCriteria} param0.criteria - The incentive criteria for reward distribution.
323
356
  * @returns {Hex}
324
357
  */
@@ -326,6 +359,7 @@ export function prepareERC20VariableCriteriaIncentivePayload({
326
359
  asset,
327
360
  reward,
328
361
  limit,
362
+ maxReward = 0n,
329
363
  criteria,
330
364
  }: ERC20VariableCriteriaIncentivePayload) {
331
365
  return encodeAbiParameters(
@@ -337,6 +371,7 @@ export function prepareERC20VariableCriteriaIncentivePayload({
337
371
  { type: 'address', name: 'asset' },
338
372
  { type: 'uint256', name: 'reward' },
339
373
  { type: 'uint256', name: 'limit' },
374
+ { type: 'uint256', name: 'maxReward' },
340
375
  {
341
376
  type: 'tuple',
342
377
  name: 'criteria',
@@ -355,6 +390,7 @@ export function prepareERC20VariableCriteriaIncentivePayload({
355
390
  asset: asset,
356
391
  reward: reward,
357
392
  limit: limit,
393
+ maxReward: maxReward,
358
394
  criteria: {
359
395
  criteriaType: criteria.criteriaType,
360
396
  signature: criteria.signature,
@@ -1 +0,0 @@
1
- {"version":3,"file":"componentInterfaces-BJ_XfE8j.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,15 +0,0 @@
1
- const c = "0xc2c281ec", n = "0x53cf8555", e = "0x7cc1d5bb", t = "0xf60c99c9", s = "0x90318111", a = "0x7687b0ed", i = "0x5fbfaa4e", o = "0x0d36a40d", A = "0xb8ce7b22", x = "0x1392d798", d = "0x3d30a22c";
2
- export {
3
- a as A,
4
- i as a,
5
- o as b,
6
- e as c,
7
- c as d,
8
- n as e,
9
- s as f,
10
- t as g,
11
- A as h,
12
- x as i,
13
- d as j
14
- };
15
- //# sourceMappingURL=componentInterfaces-DBJaFhsl.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"componentInterfaces-DBJaFhsl.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,56 +0,0 @@
1
- const a = {
2
- 84532: "0x894898Ab8b7a9F3093622951f2F0d1b4F99C4d42",
3
- 11155111: "0x894898Ab8b7a9F3093622951f2F0d1b4F99C4d42"
4
- }, e = {
5
- 84532: "0x81B82ce470843896E623bdAC0673831486Fc0A4B",
6
- 11155111: "0x81B82ce470843896E623bdAC0673831486Fc0A4B"
7
- }, c = {
8
- 84532: "0x9961Ad8311C57fd32ECE7aaa470f69931769C6e7",
9
- 11155111: "0x9961Ad8311C57fd32ECE7aaa470f69931769C6e7"
10
- }, A = {
11
- 84532: "0xabf605Ad35B1F429043aDA31a81BA6388FE20fAA",
12
- 11155111: "0xabf605Ad35B1F429043aDA31a81BA6388FE20fAA"
13
- }, B = {
14
- 84532: "0x1a03a581524DB57acdc828528Da14E08700C8B28",
15
- 11155111: "0x1a03a581524DB57acdc828528Da14E08700C8B28"
16
- }, C = {
17
- 84532: "0x7f92F5875a65e06bC9902587AD1d09722De41771",
18
- 11155111: "0x7f92F5875a65e06bC9902587AD1d09722De41771"
19
- }, f = {
20
- 84532: "0x87639abC6C69452F3F3a8BCfd6a10c2B8293F0c3",
21
- 11155111: "0x87639abC6C69452F3F3a8BCfd6a10c2B8293F0c3"
22
- }, d = {
23
- 84532: "0x59A4B235950e7BdfD185F447271CE045691d5156",
24
- 11155111: "0x59A4B235950e7BdfD185F447271CE045691d5156"
25
- }, s = {
26
- 84532: "0x20932A60ea582169c91463eb156245a181Eb3db5",
27
- 11155111: "0x20932A60ea582169c91463eb156245a181Eb3db5"
28
- }, t = {
29
- 84532: "0x1e38f8b51B554283821fa34FAE6B7C3096392081",
30
- 11155111: "0x1e38f8b51B554283821fa34FAE6B7C3096392081"
31
- }, n = {
32
- 84532: "0x9e1ff146C96195c74a746756AEd748c92Ff81d6A",
33
- 11155111: "0x9e1ff146C96195c74a746756AEd748c92Ff81d6A"
34
- }, F = {
35
- 84532: "0x8A0f249eDCcE565B18fF6aB4c1EDA0f46BA615Bf",
36
- 11155111: "0x8A0f249eDCcE565B18fF6aB4c1EDA0f46BA615Bf"
37
- }, E = {
38
- 84532: "0x03635B0B0d6C79E545e3735e50cAF501b8324852",
39
- 11155111: "0x03635B0B0d6C79E545e3735e50cAF501b8324852"
40
- };
41
- export {
42
- a as A,
43
- c as B,
44
- A as C,
45
- B as E,
46
- s as M,
47
- t as P,
48
- F as S,
49
- E as a,
50
- C as b,
51
- f as c,
52
- n as d,
53
- d as e,
54
- e as f
55
- };
56
- //# sourceMappingURL=deployments-Ccx1MtoK.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deployments-Ccx1MtoK.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,2 +0,0 @@
1
- "use strict";const e={84532:"0x894898Ab8b7a9F3093622951f2F0d1b4F99C4d42",11155111:"0x894898Ab8b7a9F3093622951f2F0d1b4F99C4d42"},a={84532:"0x81B82ce470843896E623bdAC0673831486Fc0A4B",11155111:"0x81B82ce470843896E623bdAC0673831486Fc0A4B"},c={84532:"0x9961Ad8311C57fd32ECE7aaa470f69931769C6e7",11155111:"0x9961Ad8311C57fd32ECE7aaa470f69931769C6e7"},t={84532:"0xabf605Ad35B1F429043aDA31a81BA6388FE20fAA",11155111:"0xabf605Ad35B1F429043aDA31a81BA6388FE20fAA"},n={84532:"0x1a03a581524DB57acdc828528Da14E08700C8B28",11155111:"0x1a03a581524DB57acdc828528Da14E08700C8B28"},A={84532:"0x7f92F5875a65e06bC9902587AD1d09722De41771",11155111:"0x7f92F5875a65e06bC9902587AD1d09722De41771"},B={84532:"0x87639abC6C69452F3F3a8BCfd6a10c2B8293F0c3",11155111:"0x87639abC6C69452F3F3a8BCfd6a10c2B8293F0c3"},C={84532:"0x59A4B235950e7BdfD185F447271CE045691d5156",11155111:"0x59A4B235950e7BdfD185F447271CE045691d5156"},i={84532:"0x20932A60ea582169c91463eb156245a181Eb3db5",11155111:"0x20932A60ea582169c91463eb156245a181Eb3db5"},d={84532:"0x1e38f8b51B554283821fa34FAE6B7C3096392081",11155111:"0x1e38f8b51B554283821fa34FAE6B7C3096392081"},f={84532:"0x9e1ff146C96195c74a746756AEd748c92Ff81d6A",11155111:"0x9e1ff146C96195c74a746756AEd748c92Ff81d6A"},o={84532:"0x8A0f249eDCcE565B18fF6aB4c1EDA0f46BA615Bf",11155111:"0x8A0f249eDCcE565B18fF6aB4c1EDA0f46BA615Bf"},E={84532:"0x03635B0B0d6C79E545e3735e50cAF501b8324852",11155111:"0x03635B0B0d6C79E545e3735e50cAF501b8324852"};exports.AllowListIncentive=e;exports.BoostCore=a;exports.BoostRegistry=c;exports.CGDAIncentive=t;exports.ERC20Incentive=n;exports.ERC20VariableCriteriaIncentive=A;exports.ERC20VariableIncentive=B;exports.EventAction=C;exports.ManagedBudget=i;exports.PointsIncentive=d;exports.SignerValidator=f;exports.SimpleAllowList=o;exports.SimpleDenyList=E;
2
- //# sourceMappingURL=deployments-DF_6-7hH.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"deployments-DF_6-7hH.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}