@boostxyz/sdk 2.1.2 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.cjs.map +1 -1
  3. package/dist/Actions/Action.d.ts +2 -1
  4. package/dist/Actions/Action.d.ts.map +1 -1
  5. package/dist/Actions/Action.js +14 -13
  6. package/dist/Actions/Action.js.map +1 -1
  7. package/dist/Actions/EventAction.cjs +1 -1
  8. package/dist/Actions/EventAction.cjs.map +1 -1
  9. package/dist/Actions/EventAction.d.ts +219 -0
  10. package/dist/Actions/EventAction.d.ts.map +1 -1
  11. package/dist/Actions/EventAction.js +39 -39
  12. package/dist/Actions/EventAction.js.map +1 -1
  13. package/dist/AllowLists/AllowList.cjs +1 -1
  14. package/dist/AllowLists/AllowList.cjs.map +1 -1
  15. package/dist/AllowLists/AllowList.d.ts +2 -1
  16. package/dist/AllowLists/AllowList.d.ts.map +1 -1
  17. package/dist/AllowLists/AllowList.js +18 -17
  18. package/dist/AllowLists/AllowList.js.map +1 -1
  19. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  20. package/dist/AllowLists/SimpleAllowList.js +9 -9
  21. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  22. package/dist/AllowLists/SimpleDenyList.js +2 -2
  23. package/dist/Auth/PassthroughAuth.cjs +1 -1
  24. package/dist/Auth/PassthroughAuth.js +1 -1
  25. package/dist/BoostCore.cjs +2 -2
  26. package/dist/BoostCore.cjs.map +1 -1
  27. package/dist/BoostCore.d.ts +33 -0
  28. package/dist/BoostCore.d.ts.map +1 -1
  29. package/dist/BoostCore.js +98 -81
  30. package/dist/BoostCore.js.map +1 -1
  31. package/dist/BoostRegistry.cjs +1 -1
  32. package/dist/BoostRegistry.js +12 -12
  33. package/dist/{Budget-CUIFf1Br.js → Budget-2Zb3Mb-8.js} +40 -39
  34. package/dist/{Budget-CUIFf1Br.js.map → Budget-2Zb3Mb-8.js.map} +1 -1
  35. package/dist/{Budget-cI30CIMN.cjs → Budget-2xKEvkbL.cjs} +2 -2
  36. package/dist/{Budget-cI30CIMN.cjs.map → Budget-2xKEvkbL.cjs.map} +1 -1
  37. package/dist/Budgets/Budget.cjs +1 -1
  38. package/dist/Budgets/Budget.d.ts +2 -1
  39. package/dist/Budgets/Budget.d.ts.map +1 -1
  40. package/dist/Budgets/Budget.js +3 -3
  41. package/dist/Budgets/ManagedBudget.cjs +1 -1
  42. package/dist/Budgets/ManagedBudget.js +33 -33
  43. package/dist/Deployable/DeployableTarget.cjs +1 -1
  44. package/dist/Deployable/DeployableTarget.js +1 -1
  45. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  46. package/dist/Deployable/DeployableTargetWithRBAC.cjs.map +1 -1
  47. package/dist/Deployable/DeployableTargetWithRBAC.d.ts +158 -0
  48. package/dist/Deployable/DeployableTargetWithRBAC.d.ts.map +1 -1
  49. package/dist/Deployable/DeployableTargetWithRBAC.js +268 -31
  50. package/dist/Deployable/DeployableTargetWithRBAC.js.map +1 -1
  51. package/dist/Incentive-CfIjdL4T.cjs +2 -0
  52. package/dist/Incentive-CfIjdL4T.cjs.map +1 -0
  53. package/dist/Incentive-DNwTyG5Z.js +393 -0
  54. package/dist/Incentive-DNwTyG5Z.js.map +1 -0
  55. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  56. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  57. package/dist/Incentives/AllowListIncentive.js +28 -28
  58. package/dist/Incentives/AllowListIncentive.js.map +1 -1
  59. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  60. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  61. package/dist/Incentives/CGDAIncentive.d.ts +30 -0
  62. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
  63. package/dist/Incentives/CGDAIncentive.js +25 -25
  64. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  65. package/dist/Incentives/ERC1155Incentive.d.ts +25 -0
  66. package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -1
  67. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  68. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  69. package/dist/Incentives/ERC20Incentive.d.ts +30 -0
  70. package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
  71. package/dist/Incentives/ERC20Incentive.js +42 -42
  72. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  73. package/dist/Incentives/ERC20PeggedIncentive.d.ts +905 -0
  74. package/dist/Incentives/ERC20PeggedIncentive.d.ts.map +1 -0
  75. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
  76. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
  77. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts +67 -0
  78. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -1
  79. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +31 -31
  80. package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
  81. package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
  82. package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -1
  83. package/dist/Incentives/ERC20VariableIncentive.d.ts +20 -0
  84. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  85. package/dist/Incentives/ERC20VariableIncentive.js +18 -18
  86. package/dist/Incentives/ERC20VariableIncentive.js.map +1 -1
  87. package/dist/Incentives/Incentive.cjs +1 -1
  88. package/dist/Incentives/Incentive.cjs.map +1 -1
  89. package/dist/Incentives/Incentive.d.ts +26 -4
  90. package/dist/Incentives/Incentive.d.ts.map +1 -1
  91. package/dist/Incentives/Incentive.js +20 -40
  92. package/dist/Incentives/Incentive.js.map +1 -1
  93. package/dist/Incentives/PointsIncentive.cjs +1 -1
  94. package/dist/Incentives/PointsIncentive.cjs.map +1 -1
  95. package/dist/Incentives/PointsIncentive.d.ts +25 -0
  96. package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
  97. package/dist/Incentives/PointsIncentive.js +29 -29
  98. package/dist/Incentives/PointsIncentive.js.map +1 -1
  99. package/dist/{SimpleDenyList-Ds0CQ4uR.cjs → SimpleDenyList-BQ0GqQfC.cjs} +2 -2
  100. package/dist/{SimpleDenyList-Ds0CQ4uR.cjs.map → SimpleDenyList-BQ0GqQfC.cjs.map} +1 -1
  101. package/dist/{SimpleDenyList-CXruWOyu.js → SimpleDenyList-D49GF3NX.js} +11 -11
  102. package/dist/{SimpleDenyList-CXruWOyu.js.map → SimpleDenyList-D49GF3NX.js.map} +1 -1
  103. package/dist/Validators/LimitedSignerValidator.cjs +1 -1
  104. package/dist/Validators/LimitedSignerValidator.d.ts +10 -0
  105. package/dist/Validators/LimitedSignerValidator.d.ts.map +1 -1
  106. package/dist/Validators/LimitedSignerValidator.js +15 -15
  107. package/dist/Validators/SignerValidator.cjs +1 -1
  108. package/dist/Validators/SignerValidator.cjs.map +1 -1
  109. package/dist/Validators/SignerValidator.d.ts +10 -0
  110. package/dist/Validators/SignerValidator.d.ts.map +1 -1
  111. package/dist/Validators/SignerValidator.js +8 -8
  112. package/dist/Validators/SignerValidator.js.map +1 -1
  113. package/dist/Validators/Validator.cjs +1 -1
  114. package/dist/Validators/Validator.cjs.map +1 -1
  115. package/dist/Validators/Validator.d.ts +2 -1
  116. package/dist/Validators/Validator.d.ts.map +1 -1
  117. package/dist/Validators/Validator.js +20 -19
  118. package/dist/Validators/Validator.js.map +1 -1
  119. package/dist/{componentInterfaces-dakxtQHf.js → componentInterfaces-C4uAYjSo.js} +12 -12
  120. package/dist/componentInterfaces-C4uAYjSo.js.map +1 -0
  121. package/dist/deployments.json +3 -0
  122. package/dist/{generated-BTslM7bf.js → generated-B5pVBNb-.js} +1835 -730
  123. package/dist/generated-B5pVBNb-.js.map +1 -0
  124. package/dist/generated-D50hBWtr.cjs +3 -0
  125. package/dist/generated-D50hBWtr.cjs.map +1 -0
  126. package/dist/index.cjs +1 -1
  127. package/dist/index.d.ts +1 -0
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/index.js +113 -110
  130. package/package.json +2 -2
  131. package/src/Actions/Action.ts +3 -0
  132. package/src/Actions/EventAction.test.ts +49 -2
  133. package/src/Actions/EventAction.ts +12 -4
  134. package/src/AllowLists/AllowList.ts +3 -0
  135. package/src/BoostCore.ts +27 -5
  136. package/src/Budgets/Budget.ts +3 -0
  137. package/src/Deployable/DeployableTargetWithRBAC.test.ts +175 -0
  138. package/src/Deployable/DeployableTargetWithRBAC.ts +281 -0
  139. package/src/Incentives/AllowListIncentive.test.ts +48 -0
  140. package/src/Incentives/AllowListIncentive.ts +1 -1
  141. package/src/Incentives/CGDAIncentive.test.ts +50 -0
  142. package/src/Incentives/CGDAIncentive.ts +1 -1
  143. package/src/Incentives/ERC1155Incentive.ts +1 -1
  144. package/src/Incentives/ERC20Incentive.test.ts +49 -0
  145. package/src/Incentives/ERC20Incentive.ts +1 -1
  146. package/src/Incentives/ERC20PeggedIncentive.ts +507 -0
  147. package/src/Incentives/ERC20VariableIncentive.test.ts +48 -0
  148. package/src/Incentives/ERC20VariableIncentive.ts +1 -1
  149. package/src/Incentives/Incentive.ts +9 -1
  150. package/src/Incentives/PointsIncentive.test.ts +51 -0
  151. package/src/Incentives/PointsIncentive.ts +1 -1
  152. package/src/Validators/Validator.ts +3 -0
  153. package/src/index.ts +1 -0
  154. package/dist/componentInterfaces-dakxtQHf.js.map +0 -1
  155. package/dist/generated-BTslM7bf.js.map +0 -1
  156. package/dist/generated-DhXxTQ20.cjs +0 -3
  157. package/dist/generated-DhXxTQ20.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./BoostRegistry.cjs"),n=require("./BoostCore.cjs"),A=require("./Boost.cjs"),u=require("./Actions/Action.cjs"),a=require("./Actions/EventAction.cjs"),E=require("./AllowLists/AllowList.cjs"),y=require("./AllowLists/SimpleAllowList.cjs"),C=require("./SimpleDenyList-Ds0CQ4uR.cjs"),l=require("./Budget-cI30CIMN.cjs"),o=require("./Budgets/ManagedBudget.cjs"),D=require("./Deployable/Deployable.cjs"),T=require("./Deployable/Contract.cjs"),V=require("./Deployable/DeployableTarget.cjs"),I=require("./Deployable/DeployableTargetWithRBAC.cjs"),m=require("./Incentives/AllowListIncentive.cjs"),S=require("./Incentives/CGDAIncentive.cjs"),v=require("./Incentives/ERC20Incentive.cjs"),P=require("./Incentives/ERC20VariableIncentive.cjs"),g=require("./Incentives/ERC20VariableCriteriaIncentive.cjs"),b=require("./Incentives/Incentive.cjs"),R=require("./Incentives/PointsIncentive.cjs"),d=require("./Validators/SignerValidator.cjs"),s=require("./Validators/LimitedSignerValidator.cjs"),p=require("./Validators/Validator.cjs"),e=require("./errors.cjs"),i=require("./utils.cjs"),B=require("./claiming.cjs"),t=require("./transfers.cjs"),L=require("./Auth/PassthroughAuth.cjs"),r=require("./generated-DhXxTQ20.cjs");exports.BOOST_REGISTRY_ADDRESS=c.BOOST_REGISTRY_ADDRESS;exports.BOOST_REGISTRY_ADDRESSES=c.BOOST_REGISTRY_ADDRESSES;exports.BoostRegistry=c.BoostRegistry;exports.BOOST_CORE_ADDRESS=n.BOOST_CORE_ADDRESS;exports.BOOST_CORE_ADDRESSES=n.BOOST_CORE_ADDRESSES;exports.BoostCore=n.BoostCore;exports.FEE_DENOMINATOR=n.FEE_DENOMINATOR;exports.Boost=A.Boost;exports.prepareBoostPayload=A.prepareBoostPayload;exports.ActionByComponentInterface=u.ActionByComponentInterface;exports.actionFromAddress=u.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=E.AllowListByComponentInterface;exports.OpenAllowList=E.OpenAllowList;exports.allowListFromAddress=E.allowListFromAddress;exports.LIST_MANAGER_ROLE=y.LIST_MANAGER_ROLE;exports.SimpleAllowList=y.SimpleAllowList;exports.prepareSimpleAllowListPayload=y.prepareSimpleAllowListPayload;exports.SimpleDenyList=C.SimpleDenyList;exports.prepareSimpleDenyListPayload=C.prepareSimpleDenyListPayload;exports.BudgetByComponentInterface=l.BudgetByComponentInterface;exports.ManagedBudgetWithFees=l.ManagedBudgetWithFees;exports.budgetFromAddress=l.budgetFromAddress;exports.prepareManagedBudgetWithFeesPayload=l.prepareManagedBudgetWithFeesPayload;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=D.Deployable;exports.Contract=T.Contract;exports.DeployableTarget=V.DeployableTarget;exports.DeployableTargetWithRBAC=I.DeployableTargetWithRBAC;exports.Roles=I.Roles;exports.AllowListIncentive=m.AllowListIncentive;exports.prepareAllowListIncentivePayload=m.prepareAllowListIncentivePayload;exports.CGDAIncentive=S.CGDAIncentive;exports.prepareCGDAIncentivePayload=S.prepareCGDAIncentivePayload;exports.ERC20Incentive=v.ERC20Incentive;exports.prepareERC20IncentivePayload=v.prepareERC20IncentivePayload;exports.ERC20VariableIncentive=P.ERC20VariableIncentive;exports.prepareERC20VariableIncentivePayload=P.prepareERC20VariableIncentivePayload;exports.ERC20VariableCriteriaIncentive=g.ERC20VariableCriteriaIncentive;exports.gasRebateIncentiveCriteria=g.gasRebateIncentiveCriteria;exports.prepareERC20VariableCriteriaIncentivePayload=g.prepareERC20VariableCriteriaIncentivePayload;exports.IncentiveByComponentInterface=b.IncentiveByComponentInterface;exports.incentiveFromAddress=b.incentiveFromAddress;exports.PointsIncentive=R.PointsIncentive;exports.preparePointsIncentivePayload=R.preparePointsIncentivePayload;exports.SignerValidator=d.SignerValidator;exports.prepareSignerValidatorClaimDataPayload=d.prepareSignerValidatorClaimDataPayload;exports.prepareSignerValidatorInputParams=d.prepareSignerValidatorInputParams;exports.prepareSignerValidatorPayload=d.prepareSignerValidatorPayload;exports.LimitedSignerValidator=s.LimitedSignerValidator;exports.prepareLimitedSignerValidatorClaimDataPayload=s.prepareLimitedSignerValidatorClaimDataPayload;exports.prepareLimitedSignerValidatorInputParams=s.prepareLimitedSignerValidatorInputParams;exports.prepareLimitedSignerValidatorPayload=s.prepareLimitedSignerValidatorPayload;exports.BoostValidatorEOA=p.BoostValidatorEOA;exports.ValidatorByComponentInterface=p.ValidatorByComponentInterface;exports.decodeClaimData=p.decodeClaimData;exports.validatorFromAddress=p.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.getErc20Balance=i.getErc20Balance;exports.StrategyType=B.StrategyType;exports.prepareClaimPayload=B.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.z;exports.boostCoreAbi=r.I;exports.boostRegistryAbi=r.ue;exports.cgdaIncentiveAbi=r.w;exports.erc20IncentiveAbi=r.m;exports.erc20VariableCriteriaIncentiveAbi=r.b;exports.erc20VariableIncentiveAbi=r.T;exports.limitedSignerValidatorAbi=r.H;exports.managedBudgetAbi=r.f;exports.managedBudgetWithFeesAbi=r.o;exports.passthroughAuthAbi=r.Le;exports.pointsIncentiveAbi=r.h;exports.rbacAbi=r.E;exports.signerValidatorAbi=r.F;exports.simpleAllowListAbi=r.R;exports.simpleDenyListAbi=r.O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./BoostRegistry.cjs"),n=require("./BoostCore.cjs"),C=require("./Boost.cjs"),u=require("./Actions/Action.cjs"),a=require("./Actions/EventAction.cjs"),y=require("./AllowLists/AllowList.cjs"),g=require("./AllowLists/SimpleAllowList.cjs"),I=require("./SimpleDenyList-BQ0GqQfC.cjs"),l=require("./Budget-2xKEvkbL.cjs"),o=require("./Budgets/ManagedBudget.cjs"),D=require("./Deployable/Deployable.cjs"),T=require("./Deployable/Contract.cjs"),V=require("./Deployable/DeployableTarget.cjs"),P=require("./Deployable/DeployableTargetWithRBAC.cjs"),v=require("./Incentives/AllowListIncentive.cjs"),m=require("./Incentives/CGDAIncentive.cjs"),S=require("./Incentives/ERC20Incentive.cjs"),d=require("./Incentive-CfIjdL4T.cjs"),b=require("./Incentives/ERC20VariableIncentive.cjs"),A=require("./Incentives/ERC20VariableCriteriaIncentive.cjs"),R=require("./Incentives/PointsIncentive.cjs"),s=require("./Validators/SignerValidator.cjs"),p=require("./Validators/LimitedSignerValidator.cjs"),c=require("./Validators/Validator.cjs"),e=require("./errors.cjs"),i=require("./utils.cjs"),B=require("./claiming.cjs"),t=require("./transfers.cjs"),F=require("./Auth/PassthroughAuth.cjs"),r=require("./generated-D50hBWtr.cjs");exports.BOOST_REGISTRY_ADDRESS=E.BOOST_REGISTRY_ADDRESS;exports.BOOST_REGISTRY_ADDRESSES=E.BOOST_REGISTRY_ADDRESSES;exports.BoostRegistry=E.BoostRegistry;exports.BOOST_CORE_ADDRESS=n.BOOST_CORE_ADDRESS;exports.BOOST_CORE_ADDRESSES=n.BOOST_CORE_ADDRESSES;exports.BoostCore=n.BoostCore;exports.FEE_DENOMINATOR=n.FEE_DENOMINATOR;exports.Boost=C.Boost;exports.prepareBoostPayload=C.prepareBoostPayload;exports.ActionByComponentInterface=u.ActionByComponentInterface;exports.actionFromAddress=u.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=y.AllowListByComponentInterface;exports.OpenAllowList=y.OpenAllowList;exports.allowListFromAddress=y.allowListFromAddress;exports.LIST_MANAGER_ROLE=g.LIST_MANAGER_ROLE;exports.SimpleAllowList=g.SimpleAllowList;exports.prepareSimpleAllowListPayload=g.prepareSimpleAllowListPayload;exports.SimpleDenyList=I.SimpleDenyList;exports.prepareSimpleDenyListPayload=I.prepareSimpleDenyListPayload;exports.BudgetByComponentInterface=l.BudgetByComponentInterface;exports.ManagedBudgetWithFees=l.ManagedBudgetWithFees;exports.budgetFromAddress=l.budgetFromAddress;exports.prepareManagedBudgetWithFeesPayload=l.prepareManagedBudgetWithFeesPayload;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=D.Deployable;exports.Contract=T.Contract;exports.DeployableTarget=V.DeployableTarget;exports.DeployableTargetWithRBAC=P.DeployableTargetWithRBAC;exports.Roles=P.Roles;exports.AllowListIncentive=v.AllowListIncentive;exports.prepareAllowListIncentivePayload=v.prepareAllowListIncentivePayload;exports.CGDAIncentive=m.CGDAIncentive;exports.prepareCGDAIncentivePayload=m.prepareCGDAIncentivePayload;exports.ERC20Incentive=S.ERC20Incentive;exports.prepareERC20IncentivePayload=S.prepareERC20IncentivePayload;exports.ERC20PeggedIncentive=d.ERC20PeggedIncentive;exports.IncentiveByComponentInterface=d.IncentiveByComponentInterface;exports.incentiveFromAddress=d.incentiveFromAddress;exports.prepareERC20PeggedIncentivePayload=d.prepareERC20PeggedIncentivePayload;exports.ERC20VariableIncentive=b.ERC20VariableIncentive;exports.prepareERC20VariableIncentivePayload=b.prepareERC20VariableIncentivePayload;exports.ERC20VariableCriteriaIncentive=A.ERC20VariableCriteriaIncentive;exports.gasRebateIncentiveCriteria=A.gasRebateIncentiveCriteria;exports.prepareERC20VariableCriteriaIncentivePayload=A.prepareERC20VariableCriteriaIncentivePayload;exports.PointsIncentive=R.PointsIncentive;exports.preparePointsIncentivePayload=R.preparePointsIncentivePayload;exports.SignerValidator=s.SignerValidator;exports.prepareSignerValidatorClaimDataPayload=s.prepareSignerValidatorClaimDataPayload;exports.prepareSignerValidatorInputParams=s.prepareSignerValidatorInputParams;exports.prepareSignerValidatorPayload=s.prepareSignerValidatorPayload;exports.LimitedSignerValidator=p.LimitedSignerValidator;exports.prepareLimitedSignerValidatorClaimDataPayload=p.prepareLimitedSignerValidatorClaimDataPayload;exports.prepareLimitedSignerValidatorInputParams=p.prepareLimitedSignerValidatorInputParams;exports.prepareLimitedSignerValidatorPayload=p.prepareLimitedSignerValidatorPayload;exports.BoostValidatorEOA=c.BoostValidatorEOA;exports.ValidatorByComponentInterface=c.ValidatorByComponentInterface;exports.decodeClaimData=c.decodeClaimData;exports.validatorFromAddress=c.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.getErc20Balance=i.getErc20Balance;exports.StrategyType=B.StrategyType;exports.prepareClaimPayload=B.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=F.PassthroughAuth;exports.allowListIncentiveAbi=r.B;exports.boostCoreAbi=r.h;exports.boostRegistryAbi=r.ye;exports.cgdaIncentiveAbi=r.T;exports.erc20IncentiveAbi=r.b;exports.erc20PeggedIncentiveAbi=r.f;exports.erc20VariableCriteriaIncentiveAbi=r.y;exports.erc20VariableIncentiveAbi=r.A;exports.limitedSignerValidatorAbi=r.x;exports.managedBudgetAbi=r.v;exports.managedBudgetWithFeesAbi=r.o;exports.passthroughAuthAbi=r._e;exports.pointsIncentiveAbi=r.g;exports.rbacAbi=r.z;exports.signerValidatorAbi=r.F;exports.simpleAllowListAbi=r.O;exports.simpleDenyListAbi=r.C;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export * from './Deployable/DeployableTargetWithRBAC';
16
16
  export * from './Incentives/AllowListIncentive';
17
17
  export * from './Incentives/CGDAIncentive';
18
18
  export * from './Incentives/ERC20Incentive';
19
+ export * from './Incentives/ERC20PeggedIncentive';
19
20
  export * from './Incentives/ERC20VariableIncentive';
20
21
  export * from './Incentives/ERC20VariableCriteriaIncentive';
21
22
  export * from './Incentives/Incentive';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AAIxB,cAAc,kBAAkB,CAAC;AAGjC,cAAc,uBAAuB,CAAC;AAItC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAI5C,cAAc,kBAAkB,CAAC;AAGjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAIhD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AAItD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6CAA6C,CAAC;AAE5D,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAI7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AAIvC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAI5B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AAIxB,cAAc,kBAAkB,CAAC;AAGjC,cAAc,uBAAuB,CAAC;AAItC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAI5C,cAAc,kBAAkB,CAAC;AAGjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAIhD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uCAAuC,CAAC;AAItD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6CAA6C,CAAC;AAE5D,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAI7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,wBAAwB,CAAC;AAIvC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAI5B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -2,12 +2,12 @@ import { BOOST_REGISTRY_ADDRESS as a, BOOST_REGISTRY_ADDRESSES as o, BoostRegist
2
2
  import { BOOST_CORE_ADDRESS as n, BOOST_CORE_ADDRESSES as p, BoostCore as d, FEE_DENOMINATOR as l } from "./BoostCore.js";
3
3
  import { Boost as m, prepareBoostPayload as c } from "./Boost.js";
4
4
  import { ActionByComponentInterface as A, actionFromAddress as y } from "./Actions/Action.js";
5
- import { EventAction as f, FilterType as C, PrimitiveType as b, SignatureType as I, anyActionParameter as S, isEventActionPayloadSimple as u, prepareEventActionPayload as v, transactionSenderClaimant as P } from "./Actions/EventAction.js";
6
- import { AllowListByComponentInterface as B, OpenAllowList as D, allowListFromAddress as x } from "./AllowLists/AllowList.js";
5
+ import { EventAction as C, FilterType as f, PrimitiveType as b, SignatureType as I, anyActionParameter as v, isEventActionPayloadSimple as P, prepareEventActionPayload as S, transactionSenderClaimant as u } from "./Actions/EventAction.js";
6
+ import { AllowListByComponentInterface as B, OpenAllowList as x, allowListFromAddress as D } from "./AllowLists/AllowList.js";
7
7
  import { LIST_MANAGER_ROLE as V, SimpleAllowList as F, prepareSimpleAllowListPayload as L } from "./AllowLists/SimpleAllowList.js";
8
- import { S as O, p as M } from "./SimpleDenyList-CXruWOyu.js";
9
- import { B as N, M as _, b as U, p as G } from "./Budget-CUIFf1Br.js";
10
- import { ManagedBudget as z, ManagedBudgetRoles as k, isERC1155TransferPayload as q, isFungibleTransfer as Y, prepareManagedBudgetPayload as H, prepareTransfer as j } from "./Budgets/ManagedBudget.js";
8
+ import { S as O, p as M } from "./SimpleDenyList-D49GF3NX.js";
9
+ import { B as N, M as _, b as U, p as G } from "./Budget-2Zb3Mb-8.js";
10
+ import { ManagedBudget as z, ManagedBudgetRoles as k, isERC1155TransferPayload as q, isFungibleTransfer as Y, prepareManagedBudgetPayload as j, prepareTransfer as H } from "./Budgets/ManagedBudget.js";
11
11
  import { Deployable as K } from "./Deployable/Deployable.js";
12
12
  import { Contract as X } from "./Deployable/Contract.js";
13
13
  import { DeployableTarget as $ } from "./Deployable/DeployableTarget.js";
@@ -15,151 +15,154 @@ import { DeployableTargetWithRBAC as re, Roles as ae } from "./Deployable/Deploy
15
15
  import { AllowListIncentive as te, prepareAllowListIncentivePayload as ie } from "./Incentives/AllowListIncentive.js";
16
16
  import { CGDAIncentive as pe, prepareCGDAIncentivePayload as de } from "./Incentives/CGDAIncentive.js";
17
17
  import { ERC20Incentive as se, prepareERC20IncentivePayload as me } from "./Incentives/ERC20Incentive.js";
18
- import { ERC20VariableIncentive as Ee, prepareERC20VariableIncentivePayload as Ae } from "./Incentives/ERC20VariableIncentive.js";
19
- import { ERC20VariableCriteriaIncentive as ge, gasRebateIncentiveCriteria as fe, prepareERC20VariableCriteriaIncentivePayload as Ce } from "./Incentives/ERC20VariableCriteriaIncentive.js";
20
- import { IncentiveByComponentInterface as Ie, incentiveFromAddress as Se } from "./Incentives/Incentive.js";
21
- import { PointsIncentive as ve, preparePointsIncentivePayload as Pe } from "./Incentives/PointsIncentive.js";
22
- import { SignerValidator as Be, prepareSignerValidatorClaimDataPayload as De, prepareSignerValidatorInputParams as xe, prepareSignerValidatorPayload as Te } from "./Validators/SignerValidator.js";
23
- import { LimitedSignerValidator as Fe, prepareLimitedSignerValidatorClaimDataPayload as Le, prepareLimitedSignerValidatorInputParams as he, prepareLimitedSignerValidatorPayload as Oe } from "./Validators/LimitedSignerValidator.js";
24
- import { BoostValidatorEOA as we, ValidatorByComponentInterface as Ne, decodeClaimData as _e, validatorFromAddress as Ue } from "./Validators/Validator.js";
25
- import { BoostCoreNoIdentifierEmitted as We, BoostNotFoundError as ze, BudgetMustAuthorizeBoostCore as ke, ContractAddressRequiredError as qe, DecodedArgsError as Ye, DecodedArgsMalformedError as He, DeployableAlreadyDeployedError as je, DeployableBuildParametersUnspecifiedError as Je, DeployableMissingPayloadError as Ke, DeployableUnknownOwnerProvidedError as Qe, DeployableWagmiConfigurationRequiredError as Xe, FieldActionValidationError as Ze, FieldValueNotComparableError as $e, FieldValueUndefinedError as er, FunctionDataDecodeError as rr, IncentiveCriteriaNotFoundError as ar, IncentiveNotCloneableError as or, InvalidComponentInterfaceError as tr, InvalidCriteriaTypeError as ir, InvalidNumericalCriteriaError as nr, InvalidProtocolChainIdError as pr, MustInitializeBudgetError as dr, NoConnectedChainIdError as lr, NoContractAddressUponReceiptError as sr, NoEventActionStepsProvidedError as mr, NoMatchingLogsError as cr, TooManyEventActionStepsProvidedError as Er, UnknownTransferPayloadSupplied as Ar, UnparseableAbiParamError as yr, UnrecognizedFilterTypeError as gr, ValidationAbiMissingError as fr } from "./errors.js";
26
- import { CheatCodes as br, RegistryType as Ir, assertValidAddressByChainId as Sr, awaitResult as ur, bytes4 as vr, getDeployedContractAddress as Pr, getErc20Balance as Rr } from "./utils.js";
27
- import { StrategyType as Dr, prepareClaimPayload as xr } from "./claiming.js";
28
- import { AssetType as Vr, prepareERC1155Payload as Fr, prepareERC1155Transfer as Lr, prepareFungiblePayload as hr, prepareFungibleTransfer as Or, prepareTransferPayload as Mr } from "./transfers.js";
29
- import { PassthroughAuth as Nr } from "./Auth/PassthroughAuth.js";
30
- import { z as Ur, I as Gr, u as Wr, w as zr, m as kr, b as qr, T as Yr, H as Hr, f as jr, o as Jr, L as Kr, h as Qr, E as Xr, F as Zr, R as $r, O as ea } from "./generated-BTslM7bf.js";
18
+ import { E as Ee, I as Ae, i as ye, p as ge } from "./Incentive-DNwTyG5Z.js";
19
+ import { ERC20VariableIncentive as fe, prepareERC20VariableIncentivePayload as be } from "./Incentives/ERC20VariableIncentive.js";
20
+ import { ERC20VariableCriteriaIncentive as ve, gasRebateIncentiveCriteria as Pe, prepareERC20VariableCriteriaIncentivePayload as Se } from "./Incentives/ERC20VariableCriteriaIncentive.js";
21
+ import { PointsIncentive as Re, preparePointsIncentivePayload as Be } from "./Incentives/PointsIncentive.js";
22
+ import { SignerValidator as De, prepareSignerValidatorClaimDataPayload as Te, prepareSignerValidatorInputParams as Ve, prepareSignerValidatorPayload as Fe } from "./Validators/SignerValidator.js";
23
+ import { LimitedSignerValidator as he, prepareLimitedSignerValidatorClaimDataPayload as Oe, prepareLimitedSignerValidatorInputParams as Me, prepareLimitedSignerValidatorPayload as we } from "./Validators/LimitedSignerValidator.js";
24
+ import { BoostValidatorEOA as _e, ValidatorByComponentInterface as Ue, decodeClaimData as Ge, validatorFromAddress as We } from "./Validators/Validator.js";
25
+ import { BoostCoreNoIdentifierEmitted as ke, BoostNotFoundError as qe, BudgetMustAuthorizeBoostCore as Ye, ContractAddressRequiredError as je, DecodedArgsError as He, DecodedArgsMalformedError as Je, DeployableAlreadyDeployedError as Ke, DeployableBuildParametersUnspecifiedError as Qe, DeployableMissingPayloadError as Xe, DeployableUnknownOwnerProvidedError as Ze, DeployableWagmiConfigurationRequiredError as $e, FieldActionValidationError as er, FieldValueNotComparableError as rr, FieldValueUndefinedError as ar, FunctionDataDecodeError as or, IncentiveCriteriaNotFoundError as tr, IncentiveNotCloneableError as ir, InvalidComponentInterfaceError as nr, InvalidCriteriaTypeError as pr, InvalidNumericalCriteriaError as dr, InvalidProtocolChainIdError as lr, MustInitializeBudgetError as sr, NoConnectedChainIdError as mr, NoContractAddressUponReceiptError as cr, NoEventActionStepsProvidedError as Er, NoMatchingLogsError as Ar, TooManyEventActionStepsProvidedError as yr, UnknownTransferPayloadSupplied as gr, UnparseableAbiParamError as Cr, UnrecognizedFilterTypeError as fr, ValidationAbiMissingError as br } from "./errors.js";
26
+ import { CheatCodes as vr, RegistryType as Pr, assertValidAddressByChainId as Sr, awaitResult as ur, bytes4 as Rr, getDeployedContractAddress as Br, getErc20Balance as xr } from "./utils.js";
27
+ import { StrategyType as Tr, prepareClaimPayload as Vr } from "./claiming.js";
28
+ import { AssetType as Lr, prepareERC1155Payload as hr, prepareERC1155Transfer as Or, prepareFungiblePayload as Mr, prepareFungibleTransfer as wr, prepareTransferPayload as Nr } from "./transfers.js";
29
+ import { PassthroughAuth as Ur } from "./Auth/PassthroughAuth.js";
30
+ import { B as Wr, h as zr, y as kr, T as qr, b as Yr, f as jr, a as Hr, A as Jr, x as Kr, v as Qr, o as Xr, _ as Zr, g as $r, z as ea, F as ra, O as aa, C as oa } from "./generated-B5pVBNb-.js";
31
31
  export {
32
32
  A as ActionByComponentInterface,
33
33
  B as AllowListByComponentInterface,
34
34
  te as AllowListIncentive,
35
- Vr as AssetType,
35
+ Lr as AssetType,
36
36
  n as BOOST_CORE_ADDRESS,
37
37
  p as BOOST_CORE_ADDRESSES,
38
38
  a as BOOST_REGISTRY_ADDRESS,
39
39
  o as BOOST_REGISTRY_ADDRESSES,
40
40
  m as Boost,
41
41
  d as BoostCore,
42
- We as BoostCoreNoIdentifierEmitted,
43
- ze as BoostNotFoundError,
42
+ ke as BoostCoreNoIdentifierEmitted,
43
+ qe as BoostNotFoundError,
44
44
  t as BoostRegistry,
45
- we as BoostValidatorEOA,
45
+ _e as BoostValidatorEOA,
46
46
  N as BudgetByComponentInterface,
47
- ke as BudgetMustAuthorizeBoostCore,
47
+ Ye as BudgetMustAuthorizeBoostCore,
48
48
  pe as CGDAIncentive,
49
- br as CheatCodes,
49
+ vr as CheatCodes,
50
50
  X as Contract,
51
- qe as ContractAddressRequiredError,
52
- Ye as DecodedArgsError,
53
- He as DecodedArgsMalformedError,
51
+ je as ContractAddressRequiredError,
52
+ He as DecodedArgsError,
53
+ Je as DecodedArgsMalformedError,
54
54
  K as Deployable,
55
- je as DeployableAlreadyDeployedError,
56
- Je as DeployableBuildParametersUnspecifiedError,
57
- Ke as DeployableMissingPayloadError,
55
+ Ke as DeployableAlreadyDeployedError,
56
+ Qe as DeployableBuildParametersUnspecifiedError,
57
+ Xe as DeployableMissingPayloadError,
58
58
  $ as DeployableTarget,
59
59
  re as DeployableTargetWithRBAC,
60
- Qe as DeployableUnknownOwnerProvidedError,
61
- Xe as DeployableWagmiConfigurationRequiredError,
60
+ Ze as DeployableUnknownOwnerProvidedError,
61
+ $e as DeployableWagmiConfigurationRequiredError,
62
62
  se as ERC20Incentive,
63
- ge as ERC20VariableCriteriaIncentive,
64
- Ee as ERC20VariableIncentive,
65
- f as EventAction,
63
+ Ee as ERC20PeggedIncentive,
64
+ ve as ERC20VariableCriteriaIncentive,
65
+ fe as ERC20VariableIncentive,
66
+ C as EventAction,
66
67
  l as FEE_DENOMINATOR,
67
- Ze as FieldActionValidationError,
68
- $e as FieldValueNotComparableError,
69
- er as FieldValueUndefinedError,
70
- C as FilterType,
71
- rr as FunctionDataDecodeError,
72
- Ie as IncentiveByComponentInterface,
73
- ar as IncentiveCriteriaNotFoundError,
74
- or as IncentiveNotCloneableError,
75
- tr as InvalidComponentInterfaceError,
76
- ir as InvalidCriteriaTypeError,
77
- nr as InvalidNumericalCriteriaError,
78
- pr as InvalidProtocolChainIdError,
68
+ er as FieldActionValidationError,
69
+ rr as FieldValueNotComparableError,
70
+ ar as FieldValueUndefinedError,
71
+ f as FilterType,
72
+ or as FunctionDataDecodeError,
73
+ Ae as IncentiveByComponentInterface,
74
+ tr as IncentiveCriteriaNotFoundError,
75
+ ir as IncentiveNotCloneableError,
76
+ nr as InvalidComponentInterfaceError,
77
+ pr as InvalidCriteriaTypeError,
78
+ dr as InvalidNumericalCriteriaError,
79
+ lr as InvalidProtocolChainIdError,
79
80
  V as LIST_MANAGER_ROLE,
80
- Fe as LimitedSignerValidator,
81
+ he as LimitedSignerValidator,
81
82
  z as ManagedBudget,
82
83
  k as ManagedBudgetRoles,
83
84
  _ as ManagedBudgetWithFees,
84
- dr as MustInitializeBudgetError,
85
- lr as NoConnectedChainIdError,
86
- sr as NoContractAddressUponReceiptError,
87
- mr as NoEventActionStepsProvidedError,
88
- cr as NoMatchingLogsError,
89
- D as OpenAllowList,
90
- Nr as PassthroughAuth,
91
- ve as PointsIncentive,
85
+ sr as MustInitializeBudgetError,
86
+ mr as NoConnectedChainIdError,
87
+ cr as NoContractAddressUponReceiptError,
88
+ Er as NoEventActionStepsProvidedError,
89
+ Ar as NoMatchingLogsError,
90
+ x as OpenAllowList,
91
+ Ur as PassthroughAuth,
92
+ Re as PointsIncentive,
92
93
  b as PrimitiveType,
93
- Ir as RegistryType,
94
+ Pr as RegistryType,
94
95
  ae as Roles,
95
96
  I as SignatureType,
96
- Be as SignerValidator,
97
+ De as SignerValidator,
97
98
  F as SimpleAllowList,
98
99
  O as SimpleDenyList,
99
- Dr as StrategyType,
100
- Er as TooManyEventActionStepsProvidedError,
101
- Ar as UnknownTransferPayloadSupplied,
102
- yr as UnparseableAbiParamError,
103
- gr as UnrecognizedFilterTypeError,
104
- fr as ValidationAbiMissingError,
105
- Ne as ValidatorByComponentInterface,
100
+ Tr as StrategyType,
101
+ yr as TooManyEventActionStepsProvidedError,
102
+ gr as UnknownTransferPayloadSupplied,
103
+ Cr as UnparseableAbiParamError,
104
+ fr as UnrecognizedFilterTypeError,
105
+ br as ValidationAbiMissingError,
106
+ Ue as ValidatorByComponentInterface,
106
107
  y as actionFromAddress,
107
- x as allowListFromAddress,
108
- Ur as allowListIncentiveAbi,
109
- S as anyActionParameter,
108
+ D as allowListFromAddress,
109
+ Wr as allowListIncentiveAbi,
110
+ v as anyActionParameter,
110
111
  Sr as assertValidAddressByChainId,
111
112
  ur as awaitResult,
112
- Gr as boostCoreAbi,
113
- Wr as boostRegistryAbi,
113
+ zr as boostCoreAbi,
114
+ kr as boostRegistryAbi,
114
115
  U as budgetFromAddress,
115
- vr as bytes4,
116
- zr as cgdaIncentiveAbi,
117
- _e as decodeClaimData,
118
- kr as erc20IncentiveAbi,
119
- qr as erc20VariableCriteriaIncentiveAbi,
120
- Yr as erc20VariableIncentiveAbi,
121
- fe as gasRebateIncentiveCriteria,
122
- Pr as getDeployedContractAddress,
123
- Rr as getErc20Balance,
124
- Se as incentiveFromAddress,
116
+ Rr as bytes4,
117
+ qr as cgdaIncentiveAbi,
118
+ Ge as decodeClaimData,
119
+ Yr as erc20IncentiveAbi,
120
+ jr as erc20PeggedIncentiveAbi,
121
+ Hr as erc20VariableCriteriaIncentiveAbi,
122
+ Jr as erc20VariableIncentiveAbi,
123
+ Pe as gasRebateIncentiveCriteria,
124
+ Br as getDeployedContractAddress,
125
+ xr as getErc20Balance,
126
+ ye as incentiveFromAddress,
125
127
  q as isERC1155TransferPayload,
126
- u as isEventActionPayloadSimple,
128
+ P as isEventActionPayloadSimple,
127
129
  Y as isFungibleTransfer,
128
- Hr as limitedSignerValidatorAbi,
129
- jr as managedBudgetAbi,
130
- Jr as managedBudgetWithFeesAbi,
131
- Kr as passthroughAuthAbi,
132
- Qr as pointsIncentiveAbi,
130
+ Kr as limitedSignerValidatorAbi,
131
+ Qr as managedBudgetAbi,
132
+ Xr as managedBudgetWithFeesAbi,
133
+ Zr as passthroughAuthAbi,
134
+ $r as pointsIncentiveAbi,
133
135
  ie as prepareAllowListIncentivePayload,
134
136
  c as prepareBoostPayload,
135
137
  de as prepareCGDAIncentivePayload,
136
- xr as prepareClaimPayload,
137
- Fr as prepareERC1155Payload,
138
- Lr as prepareERC1155Transfer,
138
+ Vr as prepareClaimPayload,
139
+ hr as prepareERC1155Payload,
140
+ Or as prepareERC1155Transfer,
139
141
  me as prepareERC20IncentivePayload,
140
- Ce as prepareERC20VariableCriteriaIncentivePayload,
141
- Ae as prepareERC20VariableIncentivePayload,
142
- v as prepareEventActionPayload,
143
- hr as prepareFungiblePayload,
144
- Or as prepareFungibleTransfer,
145
- Le as prepareLimitedSignerValidatorClaimDataPayload,
146
- he as prepareLimitedSignerValidatorInputParams,
147
- Oe as prepareLimitedSignerValidatorPayload,
148
- H as prepareManagedBudgetPayload,
142
+ ge as prepareERC20PeggedIncentivePayload,
143
+ Se as prepareERC20VariableCriteriaIncentivePayload,
144
+ be as prepareERC20VariableIncentivePayload,
145
+ S as prepareEventActionPayload,
146
+ Mr as prepareFungiblePayload,
147
+ wr as prepareFungibleTransfer,
148
+ Oe as prepareLimitedSignerValidatorClaimDataPayload,
149
+ Me as prepareLimitedSignerValidatorInputParams,
150
+ we as prepareLimitedSignerValidatorPayload,
151
+ j as prepareManagedBudgetPayload,
149
152
  G as prepareManagedBudgetWithFeesPayload,
150
- Pe as preparePointsIncentivePayload,
151
- De as prepareSignerValidatorClaimDataPayload,
152
- xe as prepareSignerValidatorInputParams,
153
- Te as prepareSignerValidatorPayload,
153
+ Be as preparePointsIncentivePayload,
154
+ Te as prepareSignerValidatorClaimDataPayload,
155
+ Ve as prepareSignerValidatorInputParams,
156
+ Fe as prepareSignerValidatorPayload,
154
157
  L as prepareSimpleAllowListPayload,
155
158
  M as prepareSimpleDenyListPayload,
156
- j as prepareTransfer,
157
- Mr as prepareTransferPayload,
158
- Xr as rbacAbi,
159
- Zr as signerValidatorAbi,
160
- $r as simpleAllowListAbi,
161
- ea as simpleDenyListAbi,
162
- P as transactionSenderClaimant,
163
- Ue as validatorFromAddress
159
+ H as prepareTransfer,
160
+ Nr as prepareTransferPayload,
161
+ ea as rbacAbi,
162
+ ra as signerValidatorAbi,
163
+ aa as simpleAllowListAbi,
164
+ oa as simpleDenyListAbi,
165
+ u as transactionSenderClaimant,
166
+ We as validatorFromAddress
164
167
  };
165
168
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boostxyz/sdk",
3
- "version": "2.1.2",
3
+ "version": "2.2.1",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "files": [
@@ -213,7 +213,7 @@
213
213
  }
214
214
  },
215
215
  "dependencies": {
216
- "ts-pattern": "5.4.0"
216
+ "ts-pattern": "5.5.0"
217
217
  },
218
218
  "peerDependencies": {
219
219
  "@wagmi/core": "2.x",
@@ -4,6 +4,7 @@ import { readContract } from '@wagmi/core';
4
4
  import type { Address, Hex } from 'viem';
5
5
  import type { DeployableOptions } from '../Deployable/Deployable';
6
6
  import { InvalidComponentInterfaceError } from '../errors';
7
+ import type { ReadParams } from '../utils';
7
8
  import { EventAction } from './EventAction';
8
9
 
9
10
  export {
@@ -44,11 +45,13 @@ export const ActionByComponentInterface = {
44
45
  export async function actionFromAddress(
45
46
  options: DeployableOptions,
46
47
  address: Address,
48
+ params?: ReadParams,
47
49
  ) {
48
50
  const interfaceId = (await readContract(options.config, {
49
51
  abi: aActionAbi,
50
52
  functionName: 'getComponentInterface',
51
53
  address,
54
+ ...params,
52
55
  })) as keyof typeof ActionByComponentInterface;
53
56
  const Ctor = ActionByComponentInterface[interfaceId];
54
57
  if (!Ctor) {
@@ -982,7 +982,54 @@ describe("EventAction Func Selector", () => {
982
982
  ).toBe(true);
983
983
  });
984
984
 
985
- test("validates action step with `notBeforeBlockNumber` lower than tx blockNumber", async () => {
985
+ test("validates event action step with `notBeforeBlockNumber` lower than tx blockNumber", async () => {
986
+ const action = await loadFixture(cloneEventAction(fixtures, erc721));
987
+ const actionSteps = await action.getActionSteps();
988
+ const actionStep = actionSteps[0]!;
989
+ const recipient = accounts[1].account;
990
+ const { hash } = await erc721.mintRaw(recipient, {
991
+ value: parseEther(".1"),
992
+ });
993
+
994
+ const criteriaMatch = await action.isActionStepValid(actionStep, {
995
+ notBeforeBlockNumber: BigInt(Number.MAX_SAFE_INTEGER),
996
+ hash,
997
+ knownSignatures: allKnownSignatures,
998
+ });
999
+
1000
+ expect(criteriaMatch).toBe(false);
1001
+ });
1002
+
1003
+ test("validates event action step with `notBeforeBlockNumber` greater than/equal to tx blockNumber", async () => {
1004
+ const action = await loadFixture(cloneEventAction(fixtures, erc721));
1005
+ const actionSteps = await action.getActionSteps();
1006
+ const actionStep = actionSteps[0]!;
1007
+ const recipient = accounts[1].account;
1008
+ const { hash } = await erc721.mintRaw(recipient, {
1009
+ value: parseEther(".1"),
1010
+ });
1011
+ const receipt = await getTransactionReceipt(defaultOptions.config, {
1012
+ hash,
1013
+ });
1014
+
1015
+ const eqMatch = await action.isActionStepValid(actionStep, {
1016
+ notBeforeBlockNumber: receipt.blockNumber,
1017
+ hash,
1018
+ knownSignatures: allKnownSignatures,
1019
+ });
1020
+
1021
+ expect(eqMatch).toBe(true);
1022
+ const gtMatch = await action.isActionStepValid(actionStep, {
1023
+ notBeforeBlockNumber: receipt.blockNumber - 1n,
1024
+ hash,
1025
+ knownSignatures: allKnownSignatures,
1026
+ });
1027
+
1028
+ expect(gtMatch).toBe(true);
1029
+ });
1030
+
1031
+
1032
+ test("validates function action step with `notBeforeBlockNumber` lower than tx blockNumber", async () => {
986
1033
  const action = await loadFixture(cloneFunctionAction(fixtures, erc721));
987
1034
  const actionSteps = await action.getActionSteps();
988
1035
  const actionStep = actionSteps[0]!;
@@ -1000,7 +1047,7 @@ describe("EventAction Func Selector", () => {
1000
1047
  expect(criteriaMatch).toBe(false);
1001
1048
  });
1002
1049
 
1003
- test("validates action step with `notBeforeBlockNumber` greater than/equal to tx blockNumber", async () => {
1050
+ test("validates function action step with `notBeforeBlockNumber` greater than/equal to tx blockNumber", async () => {
1004
1051
  const action = await loadFixture(cloneFunctionAction(fixtures, erc721));
1005
1052
  const actionSteps = await action.getActionSteps();
1006
1053
  const actionStep = actionSteps[0]!;
@@ -708,8 +708,12 @@ export class EventAction extends DeployableTarget<
708
708
  ...params,
709
709
  chainId: actionStep.chainid,
710
710
  });
711
- if (params.notBeforeBlockNumber)
712
- return receipt.blockNumber >= params.notBeforeBlockNumber;
711
+ if (
712
+ params.notBeforeBlockNumber &&
713
+ receipt.blockNumber < params.notBeforeBlockNumber
714
+ ) {
715
+ return false;
716
+ }
713
717
  const decodedLogs = receipt.logs
714
718
  .filter((log) => log.topics[0] === toEventSelector(event))
715
719
  .map((log) => {
@@ -730,8 +734,12 @@ export class EventAction extends DeployableTarget<
730
734
  ...params,
731
735
  chainId: actionStep.chainid,
732
736
  });
733
- if (params.notBeforeBlockNumber)
734
- return transaction.blockNumber >= params.notBeforeBlockNumber;
737
+ if (
738
+ params.notBeforeBlockNumber &&
739
+ transaction.blockNumber < params.notBeforeBlockNumber
740
+ ) {
741
+ return false;
742
+ }
735
743
  return this.isActionFunctionValid(actionStep, transaction, params);
736
744
  }
737
745
  }
@@ -7,6 +7,7 @@ import { readContract } from '@wagmi/core';
7
7
  import type { Address, Hex } from 'viem';
8
8
  import type { DeployableOptions } from '../Deployable/Deployable';
9
9
  import { InvalidComponentInterfaceError } from '../errors';
10
+ import type { ReadParams } from '../utils';
10
11
  import { OpenAllowList } from './OpenAllowList';
11
12
  import { SimpleAllowList } from './SimpleAllowList';
12
13
  import { SimpleDenyList } from './SimpleDenyList';
@@ -45,11 +46,13 @@ export const AllowListByComponentInterface = {
45
46
  export async function allowListFromAddress(
46
47
  options: DeployableOptions,
47
48
  address: Address,
49
+ params?: ReadParams,
48
50
  ) {
49
51
  const interfaceId = (await readContract(options.config, {
50
52
  abi: aAllowListAbi,
51
53
  functionName: 'getComponentInterface',
52
54
  address,
55
+ ...params,
53
56
  })) as keyof typeof AllowListByComponentInterface;
54
57
  const Ctor = AllowListByComponentInterface[interfaceId];
55
58
  if (!Ctor) {
package/src/BoostCore.ts CHANGED
@@ -82,6 +82,10 @@ import {
82
82
  ERC20Incentive,
83
83
  type ERC20IncentivePayload,
84
84
  } from './Incentives/ERC20Incentive';
85
+ import {
86
+ ERC20PeggedIncentive,
87
+ type ERC20PeggedIncentivePayload,
88
+ } from './Incentives/ERC20PeggedIncentive';
85
89
  import {
86
90
  ERC20VariableCriteriaIncentive,
87
91
  type ERC20VariableCriteriaIncentivePayload,
@@ -810,13 +814,13 @@ export class BoostCore extends Deployable<
810
814
  };
811
815
  const [action, budget, validator, allowList, incentives] =
812
816
  await Promise.all([
813
- actionFromAddress(options, boostPayload.action),
814
- budgetFromAddress(options, boostPayload.budget),
815
- validatorFromAddress(options, boostPayload.validator),
816
- allowListFromAddress(options, boostPayload.allowList),
817
+ actionFromAddress(options, boostPayload.action, params),
818
+ budgetFromAddress(options, boostPayload.budget, params),
819
+ validatorFromAddress(options, boostPayload.validator, params),
820
+ allowListFromAddress(options, boostPayload.allowList, params),
817
821
  Promise.all(
818
822
  boostPayload.incentives.map((incentiveAddress) =>
819
- incentiveFromAddress(options, incentiveAddress),
823
+ incentiveFromAddress(options, incentiveAddress, params),
820
824
  ),
821
825
  ),
822
826
  ]);
@@ -1371,6 +1375,24 @@ export class BoostCore extends Deployable<
1371
1375
  options,
1372
1376
  );
1373
1377
  }
1378
+
1379
+ /**
1380
+ * Bound {@link ERC20PeggedIncentive} constructor that reuses the same configuration as the Boost Core instance.
1381
+ *
1382
+ * @example
1383
+ * ```ts
1384
+ * const incentive = core.ERC20PeggedIncentive({ ... }) // is roughly equivalent to
1385
+ * const incentive = new ERC20PeggedIncentive({ config: core._config, account: core._account }, { ... })
1386
+ * ```
1387
+ * @param {ERC20PeggedIncentivePayload} options
1388
+ * @returns {ERC20PeggedIncentive}
1389
+ */
1390
+ ERC20PeggedIncentive(options: ERC20PeggedIncentivePayload) {
1391
+ return new ERC20PeggedIncentive(
1392
+ { config: this._config, account: this._account },
1393
+ options,
1394
+ );
1395
+ }
1374
1396
  // /**
1375
1397
  // * Temporarily disabled until low level ABI encoding bugs are resolved
1376
1398
  // * Bound {@link ERC1155Incentive} constructor that reuses the same configuration as the Boost Core instance.
@@ -7,6 +7,7 @@ import { readContract } from '@wagmi/core';
7
7
  import type { Address, Hex } from 'viem';
8
8
  import type { DeployableOptions } from '../Deployable/Deployable';
9
9
  import { InvalidComponentInterfaceError } from '../errors';
10
+ import type { ReadParams } from '../utils';
10
11
  import { ManagedBudget } from './ManagedBudget';
11
12
  import { ManagedBudgetWithFees } from './ManagedBudgetWithFees';
12
13
 
@@ -48,11 +49,13 @@ export const BudgetByComponentInterface = {
48
49
  export async function budgetFromAddress(
49
50
  options: DeployableOptions,
50
51
  address: Address,
52
+ params?: ReadParams,
51
53
  ) {
52
54
  const interfaceId = (await readContract(options.config, {
53
55
  abi: aBudgetAbi,
54
56
  functionName: 'getComponentInterface',
55
57
  address,
58
+ ...params,
56
59
  })) as keyof typeof BudgetByComponentInterface;
57
60
  const Ctor = BudgetByComponentInterface[interfaceId];
58
61
  if (!Ctor) {