@boostxyz/sdk 2.0.0 → 2.1.0

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 (109) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.js +4 -4
  3. package/dist/Actions/EventAction.cjs +1 -1
  4. package/dist/Actions/EventAction.js +17 -17
  5. package/dist/Actions/EventAction.js.map +1 -1
  6. package/dist/AllowLists/AllowList.cjs +1 -1
  7. package/dist/AllowLists/AllowList.js +5 -5
  8. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  9. package/dist/AllowLists/SimpleAllowList.js +19 -19
  10. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  11. package/dist/AllowLists/SimpleDenyList.js +3 -3
  12. package/dist/Auth/PassthroughAuth.cjs +1 -1
  13. package/dist/Auth/PassthroughAuth.js +1 -1
  14. package/dist/BoostCore.cjs +2 -2
  15. package/dist/BoostCore.cjs.map +1 -1
  16. package/dist/BoostCore.d.ts +14 -0
  17. package/dist/BoostCore.d.ts.map +1 -1
  18. package/dist/BoostCore.js +100 -81
  19. package/dist/BoostCore.js.map +1 -1
  20. package/dist/BoostRegistry.cjs +1 -1
  21. package/dist/BoostRegistry.js +31 -31
  22. package/dist/Budget-B0kJsZtZ.cjs +2 -0
  23. package/dist/Budget-B0kJsZtZ.cjs.map +1 -0
  24. package/dist/Budget-NtzY9H7G.js +462 -0
  25. package/dist/Budget-NtzY9H7G.js.map +1 -0
  26. package/dist/Budgets/Budget.cjs +1 -1
  27. package/dist/Budgets/Budget.cjs.map +1 -1
  28. package/dist/Budgets/Budget.d.ts +5 -4
  29. package/dist/Budgets/Budget.d.ts.map +1 -1
  30. package/dist/Budgets/Budget.js +9 -26
  31. package/dist/Budgets/Budget.js.map +1 -1
  32. package/dist/Budgets/ManagedBudget.cjs +1 -1
  33. package/dist/Budgets/ManagedBudget.js +34 -34
  34. package/dist/Budgets/ManagedBudgetWithFees.d.ts +1203 -0
  35. package/dist/Budgets/ManagedBudgetWithFees.d.ts.map +1 -0
  36. package/dist/Deployable/DeployableTarget.cjs +1 -1
  37. package/dist/Deployable/DeployableTarget.js +1 -1
  38. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  39. package/dist/Deployable/DeployableTargetWithRBAC.js +23 -23
  40. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  41. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  42. package/dist/Incentives/AllowListIncentive.js +16 -16
  43. package/dist/Incentives/AllowListIncentive.js.map +1 -1
  44. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  45. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  46. package/dist/Incentives/CGDAIncentive.js +28 -28
  47. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  48. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  49. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  50. package/dist/Incentives/ERC20Incentive.js +25 -25
  51. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  52. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
  53. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
  54. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +29 -29
  55. package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
  56. package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
  57. package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -1
  58. package/dist/Incentives/ERC20VariableIncentive.js +6 -6
  59. package/dist/Incentives/ERC20VariableIncentive.js.map +1 -1
  60. package/dist/Incentives/Incentive.cjs +1 -1
  61. package/dist/Incentives/Incentive.js +4 -4
  62. package/dist/Incentives/PointsIncentive.cjs +1 -1
  63. package/dist/Incentives/PointsIncentive.cjs.map +1 -1
  64. package/dist/Incentives/PointsIncentive.js +12 -12
  65. package/dist/Incentives/PointsIncentive.js.map +1 -1
  66. package/dist/{SimpleDenyList-wDvsNIuY.cjs → SimpleDenyList-B65fnca2.cjs} +2 -2
  67. package/dist/{SimpleDenyList-wDvsNIuY.cjs.map → SimpleDenyList-B65fnca2.cjs.map} +1 -1
  68. package/dist/{SimpleDenyList-D-rGBaay.js → SimpleDenyList-UvXQl2vm.js} +20 -20
  69. package/dist/{SimpleDenyList-D-rGBaay.js.map → SimpleDenyList-UvXQl2vm.js.map} +1 -1
  70. package/dist/Validators/LimitedSignerValidator.cjs +1 -1
  71. package/dist/Validators/LimitedSignerValidator.js +9 -9
  72. package/dist/Validators/SignerValidator.cjs +1 -1
  73. package/dist/Validators/SignerValidator.js +8 -8
  74. package/dist/Validators/Validator.cjs +1 -1
  75. package/dist/Validators/Validator.cjs.map +1 -1
  76. package/dist/Validators/Validator.js +20 -20
  77. package/dist/componentInterfaces-Bt-4sNB5.cjs +2 -0
  78. package/dist/componentInterfaces-Bt-4sNB5.cjs.map +1 -0
  79. package/dist/componentInterfaces-dakxtQHf.js +16 -0
  80. package/dist/componentInterfaces-dakxtQHf.js.map +1 -0
  81. package/dist/deployments-DxkwtCyu.cjs +2 -0
  82. package/dist/deployments-DxkwtCyu.cjs.map +1 -0
  83. package/dist/{deployments-BdPDIh-i.js → deployments-ZLVwJGZD.js} +33 -30
  84. package/dist/deployments-ZLVwJGZD.js.map +1 -0
  85. package/dist/deployments.json +17 -14
  86. package/dist/{generated-CDEDSOGZ.js → generated-B0XfMfoq.js} +1037 -470
  87. package/dist/generated-B0XfMfoq.js.map +1 -0
  88. package/dist/generated-pNKCp_Ez.cjs +3 -0
  89. package/dist/generated-pNKCp_Ez.cjs.map +1 -0
  90. package/dist/index.cjs +1 -1
  91. package/dist/index.d.ts +1 -0
  92. package/dist/index.d.ts.map +1 -1
  93. package/dist/index.js +148 -145
  94. package/package.json +1 -1
  95. package/src/BoostCore.ts +30 -0
  96. package/src/Budgets/Budget.ts +8 -3
  97. package/src/Budgets/ManagedBudgetWithFees.test.ts +286 -0
  98. package/src/Budgets/ManagedBudgetWithFees.ts +671 -0
  99. package/src/index.ts +1 -0
  100. package/dist/componentInterfaces-BQw7DH-m.cjs +0 -2
  101. package/dist/componentInterfaces-BQw7DH-m.cjs.map +0 -1
  102. package/dist/componentInterfaces-C0vuWQlh.js +0 -15
  103. package/dist/componentInterfaces-C0vuWQlh.js.map +0 -1
  104. package/dist/deployments--f75Pthq.cjs +0 -2
  105. package/dist/deployments--f75Pthq.cjs.map +0 -1
  106. package/dist/deployments-BdPDIh-i.js.map +0 -1
  107. package/dist/generated-CDEDSOGZ.js.map +0 -1
  108. package/dist/generated-D3DE5TfH.cjs +0 -3
  109. package/dist/generated-D3DE5TfH.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./BoostRegistry.cjs"),n=require("./BoostCore.cjs"),A=require("./Boost.cjs"),C=require("./Actions/Action.cjs"),a=require("./Actions/EventAction.cjs"),c=require("./AllowLists/AllowList.cjs"),E=require("./AllowLists/SimpleAllowList.cjs"),g=require("./SimpleDenyList-wDvsNIuY.cjs"),u=require("./Budgets/Budget.cjs"),i=require("./Budgets/ManagedBudget.cjs"),B=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"),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"),s=require("./Validators/Validator.cjs"),e=require("./errors.cjs"),o=require("./utils.cjs"),D=require("./claiming.cjs"),t=require("./transfers.cjs"),L=require("./Auth/PassthroughAuth.cjs"),r=require("./generated-D3DE5TfH.cjs");exports.BOOST_REGISTRY_ADDRESS=p.BOOST_REGISTRY_ADDRESS;exports.BOOST_REGISTRY_ADDRESSES=p.BOOST_REGISTRY_ADDRESSES;exports.BoostRegistry=p.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=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=c.AllowListByComponentInterface;exports.OpenAllowList=c.OpenAllowList;exports.allowListFromAddress=c.allowListFromAddress;exports.LIST_MANAGER_ROLE=E.LIST_MANAGER_ROLE;exports.SimpleAllowList=E.SimpleAllowList;exports.prepareSimpleAllowListPayload=E.prepareSimpleAllowListPayload;exports.SimpleDenyList=g.SimpleDenyList;exports.prepareSimpleDenyListPayload=g.prepareSimpleDenyListPayload;exports.BudgetByComponentInterface=u.BudgetByComponentInterface;exports.budgetFromAddress=u.budgetFromAddress;exports.ManagedBudget=i.ManagedBudget;exports.ManagedBudgetRoles=i.ManagedBudgetRoles;exports.isERC1155TransferPayload=i.isERC1155TransferPayload;exports.isFungibleTransfer=i.isFungibleTransfer;exports.prepareManagedBudgetPayload=i.prepareManagedBudgetPayload;exports.prepareTransfer=i.prepareTransfer;exports.Deployable=B.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=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=s.BoostValidatorEOA;exports.ValidatorByComponentInterface=s.ValidatorByComponentInterface;exports.decodeClaimData=s.decodeClaimData;exports.validatorFromAddress=s.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=o.CheatCodes;exports.RegistryType=o.RegistryType;exports.assertValidAddressByChainId=o.assertValidAddressByChainId;exports.awaitResult=o.awaitResult;exports.bytes4=o.bytes4;exports.getDeployedContractAddress=o.getDeployedContractAddress;exports.getErc20Balance=o.getErc20Balance;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;
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-B65fnca2.cjs"),l=require("./Budget-B0kJsZtZ.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-pNKCp_Ez.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;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from './AllowLists/SimpleAllowList';
8
8
  export * from './AllowLists/SimpleDenyList';
9
9
  export * from './Budgets/Budget';
10
10
  export * from './Budgets/ManagedBudget';
11
+ export * from './Budgets/ManagedBudgetWithFees';
11
12
  export * from './Deployable/Deployable';
12
13
  export * from './Deployable/Contract';
13
14
  export * from './Deployable/DeployableTarget';
@@ -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;AAIxC,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,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
@@ -1,162 +1,165 @@
1
- import { BOOST_REGISTRY_ADDRESS as o, BOOST_REGISTRY_ADDRESSES as a, BoostRegistry as t } from "./BoostRegistry.js";
2
- import { BOOST_CORE_ADDRESS as n, BOOST_CORE_ADDRESSES as p, BoostCore as l, FEE_DENOMINATOR as d } from "./BoostCore.js";
1
+ import { BOOST_REGISTRY_ADDRESS as a, BOOST_REGISTRY_ADDRESSES as o, BoostRegistry as t } from "./BoostRegistry.js";
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
- import { ActionByComponentInterface as E, actionFromAddress as y } from "./Actions/Action.js";
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
- import { AllowListByComponentInterface as D, OpenAllowList as x, allowListFromAddress as B } from "./AllowLists/AllowList.js";
7
- import { LIST_MANAGER_ROLE as V, SimpleAllowList as L, prepareSimpleAllowListPayload as F } from "./AllowLists/SimpleAllowList.js";
8
- import { S as h, p as w } from "./SimpleDenyList-D-rGBaay.js";
9
- import { BudgetByComponentInterface as N, budgetFromAddress as _ } from "./Budgets/Budget.js";
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
- import { Deployable as H } from "./Deployable/Deployable.js";
12
- import { Contract as K } from "./Deployable/Contract.js";
13
- import { DeployableTarget as X } from "./Deployable/DeployableTarget.js";
14
- import { DeployableTargetWithRBAC as $, Roles as ee } from "./Deployable/DeployableTargetWithRBAC.js";
15
- import { AllowListIncentive as oe, prepareAllowListIncentivePayload as ae } from "./Incentives/AllowListIncentive.js";
16
- import { CGDAIncentive as ie, prepareCGDAIncentivePayload as ne } from "./Incentives/CGDAIncentive.js";
17
- import { ERC20Incentive as le, prepareERC20IncentivePayload as de } from "./Incentives/ERC20Incentive.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
- import { IncentiveByComponentInterface as ge, incentiveFromAddress as be } from "./Incentives/Incentive.js";
21
- import { PointsIncentive as Se, preparePointsIncentivePayload as ve } from "./Incentives/PointsIncentive.js";
22
- import { SignerValidator as ue, prepareSignerValidatorClaimDataPayload as Re, prepareSignerValidatorInputParams as De, prepareSignerValidatorPayload as xe } from "./Validators/SignerValidator.js";
23
- import { LimitedSignerValidator as Te, prepareLimitedSignerValidatorClaimDataPayload as Ve, prepareLimitedSignerValidatorInputParams as Le, prepareLimitedSignerValidatorPayload as Fe } from "./Validators/LimitedSignerValidator.js";
24
- import { BoostValidatorEOA as he, ValidatorByComponentInterface as we, decodeClaimData as Me, validatorFromAddress as Ne } from "./Validators/Validator.js";
25
- import { BoostCoreNoIdentifierEmitted as Ue, BoostNotFoundError as Ge, BudgetMustAuthorizeBoostCore as ze, ContractAddressRequiredError as ke, DecodedArgsError as qe, DecodedArgsMalformedError as We, DeployableAlreadyDeployedError as Ye, DeployableBuildParametersUnspecifiedError as je, DeployableMissingPayloadError as He, DeployableUnknownOwnerProvidedError as Je, DeployableWagmiConfigurationRequiredError as Ke, FieldActionValidationError as Qe, FieldValueNotComparableError as Xe, FieldValueUndefinedError as Ze, FunctionDataDecodeError as $e, IncentiveCriteriaNotFoundError as er, IncentiveNotCloneableError as rr, InvalidComponentInterfaceError as or, InvalidCriteriaTypeError as ar, InvalidNumericalCriteriaError as tr, InvalidProtocolChainIdError as ir, MustInitializeBudgetError as nr, NoConnectedChainIdError as pr, NoContractAddressUponReceiptError as lr, NoEventActionStepsProvidedError as dr, NoMatchingLogsError as sr, TooManyEventActionStepsProvidedError as mr, UnknownTransferPayloadSupplied as cr, UnparseableAbiParamError as Ar, UnrecognizedFilterTypeError as Er, ValidationAbiMissingError as yr } from "./errors.js";
26
- import { CheatCodes as fr, RegistryType as gr, assertValidAddressByChainId as br, awaitResult as Ir, bytes4 as Sr, getDeployedContractAddress as vr, getErc20Balance as Pr } from "./utils.js";
27
- import { StrategyType as Rr, prepareClaimPayload as Dr } from "./claiming.js";
28
- import { AssetType as Br, prepareERC1155Payload as Tr, prepareERC1155Transfer as Vr, prepareFungiblePayload as Lr, prepareFungibleTransfer as Fr, prepareTransferPayload as Or } from "./transfers.js";
29
- import { PassthroughAuth as wr } from "./Auth/PassthroughAuth.js";
30
- import { C as Nr, A as _r, o as Ur, f as Gr, d as zr, c as kr, v as qr, z as Wr, m as Yr, V as jr, T as Hr, O as Jr, S as Kr, g as Qr, M as Xr } from "./generated-CDEDSOGZ.js";
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";
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-UvXQl2vm.js";
9
+ import { B as N, M as _, b as U, p as G } from "./Budget-NtzY9H7G.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";
11
+ import { Deployable as K } from "./Deployable/Deployable.js";
12
+ import { Contract as X } from "./Deployable/Contract.js";
13
+ import { DeployableTarget as $ } from "./Deployable/DeployableTarget.js";
14
+ import { DeployableTargetWithRBAC as re, Roles as ae } from "./Deployable/DeployableTargetWithRBAC.js";
15
+ import { AllowListIncentive as te, prepareAllowListIncentivePayload as ie } from "./Incentives/AllowListIncentive.js";
16
+ import { CGDAIncentive as pe, prepareCGDAIncentivePayload as de } from "./Incentives/CGDAIncentive.js";
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-B0XfMfoq.js";
31
31
  export {
32
- E as ActionByComponentInterface,
33
- D as AllowListByComponentInterface,
34
- oe as AllowListIncentive,
35
- Br as AssetType,
32
+ A as ActionByComponentInterface,
33
+ B as AllowListByComponentInterface,
34
+ te as AllowListIncentive,
35
+ Vr as AssetType,
36
36
  n as BOOST_CORE_ADDRESS,
37
37
  p as BOOST_CORE_ADDRESSES,
38
- o as BOOST_REGISTRY_ADDRESS,
39
- a as BOOST_REGISTRY_ADDRESSES,
38
+ a as BOOST_REGISTRY_ADDRESS,
39
+ o as BOOST_REGISTRY_ADDRESSES,
40
40
  m as Boost,
41
- l as BoostCore,
42
- Ue as BoostCoreNoIdentifierEmitted,
43
- Ge as BoostNotFoundError,
41
+ d as BoostCore,
42
+ We as BoostCoreNoIdentifierEmitted,
43
+ ze as BoostNotFoundError,
44
44
  t as BoostRegistry,
45
- he as BoostValidatorEOA,
45
+ we as BoostValidatorEOA,
46
46
  N as BudgetByComponentInterface,
47
- ze as BudgetMustAuthorizeBoostCore,
48
- ie as CGDAIncentive,
49
- fr as CheatCodes,
50
- K as Contract,
51
- ke as ContractAddressRequiredError,
52
- qe as DecodedArgsError,
53
- We as DecodedArgsMalformedError,
54
- H as Deployable,
55
- Ye as DeployableAlreadyDeployedError,
56
- je as DeployableBuildParametersUnspecifiedError,
57
- He as DeployableMissingPayloadError,
58
- X as DeployableTarget,
59
- $ as DeployableTargetWithRBAC,
60
- Je as DeployableUnknownOwnerProvidedError,
61
- Ke as DeployableWagmiConfigurationRequiredError,
62
- le as ERC20Incentive,
63
- Ee as ERC20VariableCriteriaIncentive,
64
- me as ERC20VariableIncentive,
47
+ ke as BudgetMustAuthorizeBoostCore,
48
+ pe as CGDAIncentive,
49
+ br as CheatCodes,
50
+ X as Contract,
51
+ qe as ContractAddressRequiredError,
52
+ Ye as DecodedArgsError,
53
+ He as DecodedArgsMalformedError,
54
+ K as Deployable,
55
+ je as DeployableAlreadyDeployedError,
56
+ Je as DeployableBuildParametersUnspecifiedError,
57
+ Ke as DeployableMissingPayloadError,
58
+ $ as DeployableTarget,
59
+ re as DeployableTargetWithRBAC,
60
+ Qe as DeployableUnknownOwnerProvidedError,
61
+ Xe as DeployableWagmiConfigurationRequiredError,
62
+ se as ERC20Incentive,
63
+ ge as ERC20VariableCriteriaIncentive,
64
+ Ee as ERC20VariableIncentive,
65
65
  f as EventAction,
66
- d as FEE_DENOMINATOR,
67
- Qe as FieldActionValidationError,
68
- Xe as FieldValueNotComparableError,
69
- Ze as FieldValueUndefinedError,
70
- g as FilterType,
71
- $e as FunctionDataDecodeError,
72
- ge as IncentiveByComponentInterface,
73
- er as IncentiveCriteriaNotFoundError,
74
- rr as IncentiveNotCloneableError,
75
- or as InvalidComponentInterfaceError,
76
- ar as InvalidCriteriaTypeError,
77
- tr as InvalidNumericalCriteriaError,
78
- ir as InvalidProtocolChainIdError,
66
+ 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,
79
79
  V as LIST_MANAGER_ROLE,
80
- Te as LimitedSignerValidator,
81
- G as ManagedBudget,
82
- z as ManagedBudgetRoles,
83
- nr as MustInitializeBudgetError,
84
- pr as NoConnectedChainIdError,
85
- lr as NoContractAddressUponReceiptError,
86
- dr as NoEventActionStepsProvidedError,
87
- sr as NoMatchingLogsError,
88
- x as OpenAllowList,
89
- wr as PassthroughAuth,
90
- Se as PointsIncentive,
80
+ Fe as LimitedSignerValidator,
81
+ z as ManagedBudget,
82
+ k as ManagedBudgetRoles,
83
+ _ 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,
91
92
  b as PrimitiveType,
92
- gr as RegistryType,
93
- ee as Roles,
93
+ Ir as RegistryType,
94
+ ae as Roles,
94
95
  I as SignatureType,
95
- ue as SignerValidator,
96
- L as SimpleAllowList,
97
- h as SimpleDenyList,
98
- Rr as StrategyType,
99
- mr as TooManyEventActionStepsProvidedError,
100
- cr as UnknownTransferPayloadSupplied,
101
- Ar as UnparseableAbiParamError,
102
- Er as UnrecognizedFilterTypeError,
103
- yr as ValidationAbiMissingError,
104
- we as ValidatorByComponentInterface,
96
+ Be as SignerValidator,
97
+ F as SimpleAllowList,
98
+ 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,
105
106
  y as actionFromAddress,
106
- B as allowListFromAddress,
107
- Nr as allowListIncentiveAbi,
107
+ x as allowListFromAddress,
108
+ Ur as allowListIncentiveAbi,
108
109
  S as anyActionParameter,
109
- br as assertValidAddressByChainId,
110
- Ir as awaitResult,
111
- _r as boostCoreAbi,
112
- Ur as boostRegistryAbi,
113
- _ as budgetFromAddress,
114
- Sr as bytes4,
115
- Gr as cgdaIncentiveAbi,
116
- Me as decodeClaimData,
117
- zr as erc20IncentiveAbi,
118
- kr as erc20VariableCriteriaIncentiveAbi,
119
- qr as erc20VariableIncentiveAbi,
120
- ye as gasRebateIncentiveCriteria,
121
- vr as getDeployedContractAddress,
122
- Pr as getErc20Balance,
123
- be as incentiveFromAddress,
124
- k as isERC1155TransferPayload,
125
- v as isEventActionPayloadSimple,
126
- q as isFungibleTransfer,
127
- Wr as limitedSignerValidatorAbi,
128
- Yr as managedBudgetAbi,
129
- jr as passthroughAuthAbi,
130
- Hr as pointsIncentiveAbi,
131
- ae as prepareAllowListIncentivePayload,
110
+ Sr as assertValidAddressByChainId,
111
+ ur as awaitResult,
112
+ Gr as boostCoreAbi,
113
+ Wr as boostRegistryAbi,
114
+ 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,
125
+ q as isERC1155TransferPayload,
126
+ u as isEventActionPayloadSimple,
127
+ Y as isFungibleTransfer,
128
+ Hr as limitedSignerValidatorAbi,
129
+ jr as managedBudgetAbi,
130
+ Jr as managedBudgetWithFeesAbi,
131
+ Kr as passthroughAuthAbi,
132
+ Qr as pointsIncentiveAbi,
133
+ ie as prepareAllowListIncentivePayload,
132
134
  c as prepareBoostPayload,
133
- ne as prepareCGDAIncentivePayload,
134
- Dr as prepareClaimPayload,
135
- Tr as prepareERC1155Payload,
136
- Vr as prepareERC1155Transfer,
137
- de as prepareERC20IncentivePayload,
135
+ de as prepareCGDAIncentivePayload,
136
+ xr as prepareClaimPayload,
137
+ Fr as prepareERC1155Payload,
138
+ Lr as prepareERC1155Transfer,
139
+ me as prepareERC20IncentivePayload,
138
140
  Ce as prepareERC20VariableCriteriaIncentivePayload,
139
- ce as prepareERC20VariableIncentivePayload,
140
- P as prepareEventActionPayload,
141
- Lr as prepareFungiblePayload,
142
- Fr as prepareFungibleTransfer,
143
- Ve as prepareLimitedSignerValidatorClaimDataPayload,
144
- Le as prepareLimitedSignerValidatorInputParams,
145
- Fe as prepareLimitedSignerValidatorPayload,
146
- W as prepareManagedBudgetPayload,
147
- ve as preparePointsIncentivePayload,
148
- Re as prepareSignerValidatorClaimDataPayload,
149
- De as prepareSignerValidatorInputParams,
150
- xe as prepareSignerValidatorPayload,
151
- F as prepareSimpleAllowListPayload,
152
- w as prepareSimpleDenyListPayload,
153
- Y as prepareTransfer,
154
- Or as prepareTransferPayload,
155
- Jr as rbacAbi,
156
- Kr as signerValidatorAbi,
157
- Qr as simpleAllowListAbi,
158
- Xr as simpleDenyListAbi,
159
- u as transactionSenderClaimant,
160
- Ne as validatorFromAddress
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,
149
+ G as prepareManagedBudgetWithFeesPayload,
150
+ Pe as preparePointsIncentivePayload,
151
+ De as prepareSignerValidatorClaimDataPayload,
152
+ xe as prepareSignerValidatorInputParams,
153
+ Te as prepareSignerValidatorPayload,
154
+ L as prepareSimpleAllowListPayload,
155
+ 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
161
164
  };
162
165
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boostxyz/sdk",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "files": [
package/src/BoostCore.ts CHANGED
@@ -59,12 +59,17 @@ import {
59
59
  ManagedBudget,
60
60
  type ManagedBudgetPayload,
61
61
  } from './Budgets/ManagedBudget';
62
+ import {
63
+ ManagedBudgetWithFees,
64
+ type ManagedBudgetWithFeesPayload,
65
+ } from './Budgets/ManagedBudgetWithFees';
62
66
  import {
63
67
  Deployable,
64
68
  type DeployableOptions,
65
69
  type DeployablePayloadOrAddress,
66
70
  type GenericDeployableParams,
67
71
  } from './Deployable/Deployable';
72
+ import { Roles } from './Deployable/DeployableTargetWithRBAC';
68
73
  import {
69
74
  AllowListIncentive,
70
75
  type AllowListIncentivePayload,
@@ -1268,6 +1273,31 @@ export class BoostCore extends Deployable<
1268
1273
  options,
1269
1274
  );
1270
1275
  }
1276
+ /**
1277
+ * Bound {@link ManagedBudgetWithFees} constructor that reuses the same configuration as the Boost Core instance.
1278
+ * Prepends the BoostCore address to the authorized list because it's structurally critical to calculating payouts.
1279
+ *
1280
+ * @example
1281
+ * ```ts
1282
+ * const budget = core.ManagedBudgetWithFees('0x') // is roughly equivalent to
1283
+ * const budget = new ManagedBudgetWithFees({ config: core._config, account: core._account }, '0x')
1284
+ * ```
1285
+ * @param {DeployablePayloadOrAddress<ManagedBudgetWithFeesPayload>} options
1286
+ * @returns {ManagedBudgetWithFees}
1287
+ */
1288
+ ManagedBudgetWithFees(
1289
+ options: DeployablePayloadOrAddress<ManagedBudgetWithFeesPayload>,
1290
+ ) {
1291
+ if (typeof options !== 'string') {
1292
+ options.authorized = [this.assertValidAddress(), ...options.authorized];
1293
+ options.roles = [Roles.MANAGER, ...options.roles];
1294
+ }
1295
+
1296
+ return new ManagedBudgetWithFees(
1297
+ { config: this._config, account: this._account },
1298
+ options,
1299
+ );
1300
+ }
1271
1301
  // /**
1272
1302
  // * Bound {@link VestingBudget} constructor that reuses the same configuration as the Boost Core instance.
1273
1303
  // *
@@ -1,10 +1,14 @@
1
1
  import { aBudgetAbi } from '@boostxyz/evm';
2
- import { AManagedBudget } from '@boostxyz/evm/deploys/componentInterfaces.json';
2
+ import {
3
+ AManagedBudget,
4
+ AManagedBudgetWithFees,
5
+ } from '@boostxyz/evm/deploys/componentInterfaces.json';
3
6
  import { readContract } from '@wagmi/core';
4
7
  import type { Address, Hex } from 'viem';
5
8
  import type { DeployableOptions } from '../Deployable/Deployable';
6
9
  import { InvalidComponentInterfaceError } from '../errors';
7
10
  import { ManagedBudget } from './ManagedBudget';
11
+ import { ManagedBudgetWithFees } from './ManagedBudgetWithFees';
8
12
 
9
13
  export {
10
14
  // VestingBudget,
@@ -17,7 +21,7 @@ export {
17
21
  * @export
18
22
  * @typedef {Budget}
19
23
  */
20
- export type Budget = ManagedBudget; // | VestingBudget
24
+ export type Budget = ManagedBudget | ManagedBudgetWithFees; // | VestingBudget
21
25
 
22
26
  /**
23
27
  * A map of Budget component interfaces to their constructors.
@@ -28,6 +32,7 @@ export const BudgetByComponentInterface = {
28
32
  // ['0x64683da1']: VestingBudget,
29
33
  // ['0x2929d19c']: SimpleBudget,
30
34
  [AManagedBudget as Hex]: ManagedBudget,
35
+ [AManagedBudgetWithFees as Hex]: ManagedBudgetWithFees,
31
36
  };
32
37
 
33
38
  /**
@@ -37,7 +42,7 @@ export const BudgetByComponentInterface = {
37
42
  * @async
38
43
  * @param {DeployableOptions} options
39
44
  * @param {Address} address
40
- * @returns {Promise<ManagedBudget>}
45
+ * @returns {Promise<ManagedBudget | ManagedBudgetWithFees>}
41
46
  * @throws {@link InvalidComponentInterfaceError}
42
47
  */
43
48
  export async function budgetFromAddress(