@boostxyz/sdk 6.0.0 → 6.0.2

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 (116) hide show
  1. package/dist/Actions/Action.cjs +1 -1
  2. package/dist/Actions/Action.js +2 -2
  3. package/dist/Actions/EventAction.cjs +1 -1
  4. package/dist/Actions/EventAction.cjs.map +1 -1
  5. package/dist/Actions/EventAction.js +40 -40
  6. package/dist/Actions/EventAction.js.map +1 -1
  7. package/dist/AllowLists/AllowList.cjs +1 -1
  8. package/dist/AllowLists/AllowList.js +3 -3
  9. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  10. package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
  11. package/dist/AllowLists/SimpleAllowList.d.ts +2 -2
  12. package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
  13. package/dist/AllowLists/SimpleAllowList.js +3 -3
  14. package/dist/AllowLists/SimpleAllowList.js.map +1 -1
  15. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  16. package/dist/AllowLists/SimpleDenyList.js +3 -3
  17. package/dist/Auth/PassthroughAuth.cjs +1 -1
  18. package/dist/Auth/PassthroughAuth.js +1 -1
  19. package/dist/BoostCore.cjs +2 -2
  20. package/dist/BoostCore.cjs.map +1 -1
  21. package/dist/BoostCore.d.ts +30 -3
  22. package/dist/BoostCore.d.ts.map +1 -1
  23. package/dist/BoostCore.js +132 -105
  24. package/dist/BoostCore.js.map +1 -1
  25. package/dist/BoostRegistry.cjs +1 -1
  26. package/dist/BoostRegistry.js +2 -2
  27. package/dist/Budget-CsqSI4NH.cjs +2 -0
  28. package/dist/Budget-CsqSI4NH.cjs.map +1 -0
  29. package/dist/Budget-bMiAGF8s.js +922 -0
  30. package/dist/Budget-bMiAGF8s.js.map +1 -0
  31. package/dist/Budgets/Budget.cjs +1 -1
  32. package/dist/Budgets/Budget.d.ts +5 -4
  33. package/dist/Budgets/Budget.d.ts.map +1 -1
  34. package/dist/Budgets/Budget.js +3 -3
  35. package/dist/Budgets/ManagedBudget.cjs +1 -1
  36. package/dist/Budgets/ManagedBudget.js +2 -2
  37. package/dist/Budgets/ManagedBudgetWithFeesV2.d.ts +1331 -0
  38. package/dist/Budgets/ManagedBudgetWithFeesV2.d.ts.map +1 -0
  39. package/dist/Deployable/DeployableTarget.cjs +1 -1
  40. package/dist/Deployable/DeployableTarget.js +1 -1
  41. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  42. package/dist/Deployable/DeployableTargetWithRBAC.js +2 -2
  43. package/dist/{Incentive-Boviez4z.js → Incentive-DZLG6T1-.js} +27 -27
  44. package/dist/{Incentive-Boviez4z.js.map → Incentive-DZLG6T1-.js.map} +1 -1
  45. package/dist/{Incentive-wM4zizTH.cjs → Incentive-DvNdIJ_x.cjs} +2 -2
  46. package/dist/{Incentive-wM4zizTH.cjs.map → Incentive-DvNdIJ_x.cjs.map} +1 -1
  47. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  48. package/dist/Incentives/AllowListIncentive.js +3 -3
  49. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  50. package/dist/Incentives/CGDAIncentive.js +2 -2
  51. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  52. package/dist/Incentives/ERC20Incentive.js +2 -2
  53. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
  54. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +2 -2
  55. package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
  56. package/dist/Incentives/ERC20VariableIncentive.js +2 -2
  57. package/dist/Incentives/Incentive.cjs +1 -1
  58. package/dist/Incentives/Incentive.js +3 -3
  59. package/dist/Incentives/PointsIncentive.cjs +1 -1
  60. package/dist/Incentives/PointsIncentive.js +2 -2
  61. package/dist/{SimpleDenyList-Cybtz7AK.cjs → SimpleDenyList-BAIrFBAW.cjs} +2 -2
  62. package/dist/{SimpleDenyList-Cybtz7AK.cjs.map → SimpleDenyList-BAIrFBAW.cjs.map} +1 -1
  63. package/dist/{SimpleDenyList-CW4RwwRw.js → SimpleDenyList-C734XLxt.js} +11 -11
  64. package/dist/{SimpleDenyList-CW4RwwRw.js.map → SimpleDenyList-C734XLxt.js.map} +1 -1
  65. package/dist/Validators/LimitedSignerValidator.cjs +1 -1
  66. package/dist/Validators/LimitedSignerValidator.cjs.map +1 -1
  67. package/dist/Validators/LimitedSignerValidator.d.ts +1 -1
  68. package/dist/Validators/LimitedSignerValidator.d.ts.map +1 -1
  69. package/dist/Validators/LimitedSignerValidator.js +2 -2
  70. package/dist/Validators/LimitedSignerValidator.js.map +1 -1
  71. package/dist/Validators/SignerValidator.cjs +1 -1
  72. package/dist/Validators/SignerValidator.cjs.map +1 -1
  73. package/dist/Validators/SignerValidator.d.ts +1 -1
  74. package/dist/Validators/SignerValidator.d.ts.map +1 -1
  75. package/dist/Validators/SignerValidator.js +2 -2
  76. package/dist/Validators/SignerValidator.js.map +1 -1
  77. package/dist/Validators/Validator.cjs +1 -1
  78. package/dist/Validators/Validator.js +2 -2
  79. package/dist/componentInterfaces-5Ezh3Pvx.js +19 -0
  80. package/dist/componentInterfaces-5Ezh3Pvx.js.map +1 -0
  81. package/dist/componentInterfaces-Cm4Zfn1v.cjs +2 -0
  82. package/dist/componentInterfaces-Cm4Zfn1v.cjs.map +1 -0
  83. package/dist/{deployments-DqjtOTUr.js → deployments-3RHH-eW7.js} +3 -3
  84. package/dist/{deployments-DqjtOTUr.js.map → deployments-3RHH-eW7.js.map} +1 -1
  85. package/dist/errors.cjs +1 -1
  86. package/dist/errors.cjs.map +1 -1
  87. package/dist/errors.js +1 -1
  88. package/dist/errors.js.map +1 -1
  89. package/dist/generated-BPiHi7W2.cjs +3 -0
  90. package/dist/{generated-DgXPUgXl.cjs.map → generated-BPiHi7W2.cjs.map} +1 -1
  91. package/dist/{generated-pJZHmRCK.js → generated-CElkFqkY.js} +1315 -682
  92. package/dist/{generated-pJZHmRCK.js.map → generated-CElkFqkY.js.map} +1 -1
  93. package/dist/index.cjs +1 -1
  94. package/dist/index.d.ts +1 -0
  95. package/dist/index.d.ts.map +1 -1
  96. package/dist/index.js +155 -152
  97. package/package.json +2 -2
  98. package/src/AllowLists/SimpleAllowList.ts +2 -2
  99. package/src/BoostCore.ts +58 -7
  100. package/src/Budgets/Budget.ts +8 -2
  101. package/src/Budgets/ManagedBudgetWithFees.test.ts +0 -1
  102. package/src/Budgets/ManagedBudgetWithFeesV2.test.ts +327 -0
  103. package/src/Budgets/ManagedBudgetWithFeesV2.ts +713 -0
  104. package/src/Validators/LimitedSignerValidator.ts +1 -1
  105. package/src/Validators/SignerValidator.ts +1 -1
  106. package/src/errors.ts +1 -1
  107. package/src/index.ts +1 -0
  108. package/dist/Budget-DMbfdTom.cjs +0 -2
  109. package/dist/Budget-DMbfdTom.cjs.map +0 -1
  110. package/dist/Budget-DO6sGTIR.js +0 -463
  111. package/dist/Budget-DO6sGTIR.js.map +0 -1
  112. package/dist/componentInterfaces-D7r9xJmt.cjs +0 -2
  113. package/dist/componentInterfaces-D7r9xJmt.cjs.map +0 -1
  114. package/dist/componentInterfaces-PR3ijhgZ.js +0 -18
  115. package/dist/componentInterfaces-PR3ijhgZ.js.map +0 -1
  116. package/dist/generated-DgXPUgXl.cjs +0 -3
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./BoostRegistry.cjs"),d=require("./BoostCore.cjs"),C=require("./Boost.cjs"),u=require("./Actions/Action.cjs"),a=require("./Actions/EventAction.cjs"),g=require("./AllowLists/AllowList.cjs"),y=require("./AllowLists/SimpleAllowList.cjs"),I=require("./SimpleDenyList-Cybtz7AK.cjs"),l=require("./Budget-DMbfdTom.cjs"),o=require("./Budgets/ManagedBudget.cjs"),B=require("./Deployable/Deployable.cjs"),T=require("./Deployable/Contract.cjs"),V=require("./Deployable/DeployableTarget.cjs"),v=require("./Deployable/DeployableTargetWithRBAC.cjs"),P=require("./Incentives/AllowListIncentive.cjs"),R=require("./Incentives/CGDAIncentive.cjs"),S=require("./Incentives/ERC20Incentive.cjs"),t=require("./Incentive-wM4zizTH.cjs"),m=require("./Incentives/ERC20VariableIncentive.cjs"),A=require("./Incentives/ERC20VariableCriteriaIncentive.cjs"),b=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"),D=require("./claiming.cjs"),n=require("./transfers.cjs"),F=require("./Auth/PassthroughAuth.cjs"),r=require("./generated-DgXPUgXl.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=d.BOOST_CORE_ADDRESS;exports.BOOST_CORE_ADDRESSES=d.BOOST_CORE_ADDRESSES;exports.BoostCore=d.BoostCore;exports.FEE_DENOMINATOR=d.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.decodeAndReorderLogArgs=a.decodeAndReorderLogArgs;exports.detectSignatureType=a.detectSignatureType;exports.isEventActionPayloadSimple=a.isEventActionPayloadSimple;exports.packFieldIndexes=a.packFieldIndexes;exports.prepareEventActionPayload=a.prepareEventActionPayload;exports.transactionSenderClaimant=a.transactionSenderClaimant;exports.unpackFieldIndexes=a.unpackFieldIndexes;exports.AllowListByComponentInterface=g.AllowListByComponentInterface;exports.OpenAllowList=g.OpenAllowList;exports.allowListFromAddress=g.allowListFromAddress;exports.LIST_MANAGER_ROLE=y.LIST_MANAGER_ROLE;exports.SimpleAllowList=y.SimpleAllowList;exports.prepareSimpleAllowListPayload=y.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=B.Deployable;exports.Contract=T.Contract;exports.DeployableTarget=V.DeployableTarget;exports.DeployableTargetWithRBAC=v.DeployableTargetWithRBAC;exports.Roles=v.Roles;exports.AllowListIncentive=P.AllowListIncentive;exports.prepareAllowListIncentivePayload=P.prepareAllowListIncentivePayload;exports.CGDAIncentive=R.CGDAIncentive;exports.prepareCGDAIncentivePayload=R.prepareCGDAIncentivePayload;exports.ERC20Incentive=S.ERC20Incentive;exports.prepareERC20IncentivePayload=S.prepareERC20IncentivePayload;exports.ERC20PeggedIncentive=t.ERC20PeggedIncentive;exports.ERC20PeggedVariableCriteriaIncentive=t.ERC20PeggedVariableCriteriaIncentive;exports.IncentiveByComponentInterface=t.IncentiveByComponentInterface;exports.incentiveFromAddress=t.incentiveFromAddress;exports.prepareERC20PeggedIncentivePayload=t.prepareERC20PeggedIncentivePayload;exports.prepareERC20PeggedVariableCriteriaIncentivePayload=t.prepareERC20PeggedVariableCriteriaIncentivePayload;exports.ERC20VariableIncentive=m.ERC20VariableIncentive;exports.prepareERC20VariableIncentivePayload=m.prepareERC20VariableIncentivePayload;exports.ERC20VariableCriteriaIncentive=A.ERC20VariableCriteriaIncentive;exports.gasRebateIncentiveCriteria=A.gasRebateIncentiveCriteria;exports.prepareERC20VariableCriteriaIncentivePayload=A.prepareERC20VariableCriteriaIncentivePayload;exports.PointsIncentive=b.PointsIncentive;exports.preparePointsIncentivePayload=b.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.InvalidTupleDecodingError=e.InvalidTupleDecodingError;exports.InvalidTupleEncodingError=e.InvalidTupleEncodingError;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.TRANSFER_SIGNATURE=i.TRANSFER_SIGNATURE;exports.assertValidAddressByChainId=i.assertValidAddressByChainId;exports.awaitResult=i.awaitResult;exports.bytes4=i.bytes4;exports.getDeployedContractAddress=i.getDeployedContractAddress;exports.getErc20Balance=i.getErc20Balance;exports.StrategyType=D.StrategyType;exports.prepareClaimPayload=D.prepareClaimPayload;exports.AssetType=n.AssetType;exports.prepareERC1155Payload=n.prepareERC1155Payload;exports.prepareERC1155Transfer=n.prepareERC1155Transfer;exports.prepareFungiblePayload=n.prepareFungiblePayload;exports.prepareFungibleTransfer=n.prepareFungibleTransfer;exports.prepareTransferPayload=n.prepareTransferPayload;exports.PassthroughAuth=F.PassthroughAuth;exports.allowListIncentiveAbi=r.H;exports.boostCoreAbi=r.g;exports.boostRegistryAbi=r.be;exports.cgdaIncentiveAbi=r.N;exports.erc20IncentiveAbi=r.m;exports.erc20PeggedIncentiveAbi=r.f;exports.erc20PeggedVariableCriteriaIncentiveAbi=r.y;exports.erc20VariableCriteriaIncentiveAbi=r.d;exports.erc20VariableIncentiveAbi=r.A;exports.limitedSignerValidatorAbi=r.S;exports.managedBudgetAbi=r.h;exports.managedBudgetWithFeesAbi=r.p;exports.passthroughAuthAbi=r.$e;exports.pointsIncentiveAbi=r.R;exports.rbacAbi=r.V;exports.signerValidatorAbi=r._;exports.simpleAllowListAbi=r.z;exports.simpleDenyListAbi=r.B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./BoostRegistry.cjs"),l=require("./BoostCore.cjs"),u=require("./Boost.cjs"),C=require("./Actions/Action.cjs"),a=require("./Actions/EventAction.cjs"),E=require("./AllowLists/AllowList.cjs"),y=require("./AllowLists/SimpleAllowList.cjs"),I=require("./SimpleDenyList-BAIrFBAW.cjs"),t=require("./Budget-CsqSI4NH.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"),R=require("./Incentives/CGDAIncentive.cjs"),S=require("./Incentives/ERC20Incentive.cjs"),n=require("./Incentive-DvNdIJ_x.cjs"),m=require("./Incentives/ERC20VariableIncentive.cjs"),A=require("./Incentives/ERC20VariableCriteriaIncentive.cjs"),b=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"),d=require("./transfers.cjs"),F=require("./Auth/PassthroughAuth.cjs"),r=require("./generated-BPiHi7W2.cjs");exports.BOOST_REGISTRY_ADDRESS=g.BOOST_REGISTRY_ADDRESS;exports.BOOST_REGISTRY_ADDRESSES=g.BOOST_REGISTRY_ADDRESSES;exports.BoostRegistry=g.BoostRegistry;exports.BOOST_CORE_ADDRESS=l.BOOST_CORE_ADDRESS;exports.BOOST_CORE_ADDRESSES=l.BOOST_CORE_ADDRESSES;exports.BoostCore=l.BoostCore;exports.FEE_DENOMINATOR=l.FEE_DENOMINATOR;exports.Boost=u.Boost;exports.prepareBoostPayload=u.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.decodeAndReorderLogArgs=a.decodeAndReorderLogArgs;exports.detectSignatureType=a.detectSignatureType;exports.isEventActionPayloadSimple=a.isEventActionPayloadSimple;exports.packFieldIndexes=a.packFieldIndexes;exports.prepareEventActionPayload=a.prepareEventActionPayload;exports.transactionSenderClaimant=a.transactionSenderClaimant;exports.unpackFieldIndexes=a.unpackFieldIndexes;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=I.SimpleDenyList;exports.prepareSimpleDenyListPayload=I.prepareSimpleDenyListPayload;exports.BudgetByComponentInterface=t.BudgetByComponentInterface;exports.ManagedBudgetWithFees=t.ManagedBudgetWithFees;exports.ManagedBudgetWithFeesV2=t.ManagedBudgetWithFeesV2;exports.budgetFromAddress=t.budgetFromAddress;exports.prepareManagedBudgetWithFeesPayload=t.prepareManagedBudgetWithFeesPayload;exports.prepareManagedBudgetWithFeesV2Payload=t.prepareManagedBudgetWithFeesV2Payload;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=R.CGDAIncentive;exports.prepareCGDAIncentivePayload=R.prepareCGDAIncentivePayload;exports.ERC20Incentive=S.ERC20Incentive;exports.prepareERC20IncentivePayload=S.prepareERC20IncentivePayload;exports.ERC20PeggedIncentive=n.ERC20PeggedIncentive;exports.ERC20PeggedVariableCriteriaIncentive=n.ERC20PeggedVariableCriteriaIncentive;exports.IncentiveByComponentInterface=n.IncentiveByComponentInterface;exports.incentiveFromAddress=n.incentiveFromAddress;exports.prepareERC20PeggedIncentivePayload=n.prepareERC20PeggedIncentivePayload;exports.prepareERC20PeggedVariableCriteriaIncentivePayload=n.prepareERC20PeggedVariableCriteriaIncentivePayload;exports.ERC20VariableIncentive=m.ERC20VariableIncentive;exports.prepareERC20VariableIncentivePayload=m.prepareERC20VariableIncentivePayload;exports.ERC20VariableCriteriaIncentive=A.ERC20VariableCriteriaIncentive;exports.gasRebateIncentiveCriteria=A.gasRebateIncentiveCriteria;exports.prepareERC20VariableCriteriaIncentivePayload=A.prepareERC20VariableCriteriaIncentivePayload;exports.PointsIncentive=b.PointsIncentive;exports.preparePointsIncentivePayload=b.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.InvalidTupleDecodingError=e.InvalidTupleDecodingError;exports.InvalidTupleEncodingError=e.InvalidTupleEncodingError;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.TRANSFER_SIGNATURE=i.TRANSFER_SIGNATURE;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=d.AssetType;exports.prepareERC1155Payload=d.prepareERC1155Payload;exports.prepareERC1155Transfer=d.prepareERC1155Transfer;exports.prepareFungiblePayload=d.prepareFungiblePayload;exports.prepareFungibleTransfer=d.prepareFungibleTransfer;exports.prepareTransferPayload=d.prepareTransferPayload;exports.PassthroughAuth=F.PassthroughAuth;exports.allowListIncentiveAbi=r.H;exports.boostCoreAbi=r.g;exports.boostRegistryAbi=r.be;exports.cgdaIncentiveAbi=r.N;exports.erc20IncentiveAbi=r.m;exports.erc20PeggedIncentiveAbi=r.f;exports.erc20PeggedVariableCriteriaIncentiveAbi=r.y;exports.erc20VariableCriteriaIncentiveAbi=r.d;exports.erc20VariableIncentiveAbi=r.A;exports.limitedSignerValidatorAbi=r.S;exports.managedBudgetAbi=r.h;exports.managedBudgetWithFeesAbi=r.p;exports.managedBudgetWithFeesV2Abi=r.r;exports.passthroughAuthAbi=r.$e;exports.pointsIncentiveAbi=r.R;exports.rbacAbi=r.V;exports.signerValidatorAbi=r._;exports.simpleAllowListAbi=r.z;exports.simpleDenyListAbi=r.B;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export * from './AllowLists/SimpleDenyList';
9
9
  export * from './Budgets/Budget';
10
10
  export * from './Budgets/ManagedBudget';
11
11
  export * from './Budgets/ManagedBudgetWithFees';
12
+ export * from './Budgets/ManagedBudgetWithFeesV2';
12
13
  export * from './Deployable/Deployable';
13
14
  export * from './Deployable/Contract';
14
15
  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;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;AAC5D,cAAc,mDAAmD,CAAC;AAElE,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;AAChD,cAAc,mCAAmC,CAAC;AAIlD,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;AAC5D,cAAc,mDAAmD,CAAC;AAElE,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,178 +1,181 @@
1
- import { BOOST_REGISTRY_ADDRESS as a, BOOST_REGISTRY_ADDRESSES as o, BoostRegistry as i } from "./BoostRegistry.js";
1
+ import { BOOST_REGISTRY_ADDRESS as a, BOOST_REGISTRY_ADDRESSES as o, BoostRegistry as t } from "./BoostRegistry.js";
2
2
  import { BOOST_CORE_ADDRESS as n, BOOST_CORE_ADDRESSES as d, BoostCore as p, FEE_DENOMINATOR as l } from "./BoostCore.js";
3
- import { Boost as c, prepareBoostPayload as m } from "./Boost.js";
3
+ import { Boost as c, prepareBoostPayload as g } from "./Boost.js";
4
4
  import { ActionByComponentInterface as E, actionFromAddress as A } from "./Actions/Action.js";
5
- import { EventAction as C, FilterType as I, PrimitiveType as b, SignatureType as f, anyActionParameter as v, decodeAndReorderLogArgs as P, detectSignatureType as R, isEventActionPayloadSimple as S, packFieldIndexes as u, prepareEventActionPayload as B, transactionSenderClaimant as x, unpackFieldIndexes as D } from "./Actions/EventAction.js";
6
- import { AllowListByComponentInterface as V, OpenAllowList as F, allowListFromAddress as L } from "./AllowLists/AllowList.js";
7
- import { LIST_MANAGER_ROLE as N, SimpleAllowList as O, prepareSimpleAllowListPayload as M } from "./AllowLists/SimpleAllowList.js";
8
- import { S as _, p as U } from "./SimpleDenyList-CW4RwwRw.js";
9
- import { B as W, M as k, b as z, p as q } from "./Budget-DO6sGTIR.js";
10
- import { ManagedBudget as H, ManagedBudgetRoles as $, isERC1155TransferPayload as j, isFungibleTransfer as J, prepareManagedBudgetPayload as K, prepareTransfer as Q } from "./Budgets/ManagedBudget.js";
11
- import { Deployable as Z } from "./Deployable/Deployable.js";
12
- import { Contract as re } from "./Deployable/Contract.js";
13
- import { DeployableTarget as oe } from "./Deployable/DeployableTarget.js";
14
- import { DeployableTargetWithRBAC as te, Roles as ne } from "./Deployable/DeployableTargetWithRBAC.js";
15
- import { AllowListIncentive as pe, prepareAllowListIncentivePayload as le } from "./Incentives/AllowListIncentive.js";
16
- import { CGDAIncentive as ce, prepareCGDAIncentivePayload as me } from "./Incentives/CGDAIncentive.js";
17
- import { ERC20Incentive as Ee, prepareERC20IncentivePayload as Ae } from "./Incentives/ERC20Incentive.js";
18
- import { E as Ce, a as Ie, I as be, i as fe, p as ve, b as Pe } from "./Incentive-Boviez4z.js";
19
- import { ERC20VariableIncentive as Se, prepareERC20VariableIncentivePayload as ue } from "./Incentives/ERC20VariableIncentive.js";
20
- import { ERC20VariableCriteriaIncentive as xe, gasRebateIncentiveCriteria as De, prepareERC20VariableCriteriaIncentivePayload as Te } from "./Incentives/ERC20VariableCriteriaIncentive.js";
21
- import { PointsIncentive as Fe, preparePointsIncentivePayload as Le } from "./Incentives/PointsIncentive.js";
22
- import { SignerValidator as Ne, prepareSignerValidatorClaimDataPayload as Oe, prepareSignerValidatorInputParams as Me, prepareSignerValidatorPayload as we } from "./Validators/SignerValidator.js";
23
- import { LimitedSignerValidator as Ue, prepareLimitedSignerValidatorClaimDataPayload as Ge, prepareLimitedSignerValidatorInputParams as We, prepareLimitedSignerValidatorPayload as ke } from "./Validators/LimitedSignerValidator.js";
24
- import { BoostValidatorEOA as qe, ValidatorByComponentInterface as Ye, decodeClaimData as He, validatorFromAddress as $e } from "./Validators/Validator.js";
25
- import { BoostCoreNoIdentifierEmitted as Je, BoostNotFoundError as Ke, BudgetMustAuthorizeBoostCore as Qe, ContractAddressRequiredError as Xe, DecodedArgsError as Ze, DecodedArgsMalformedError as er, DeployableAlreadyDeployedError as rr, DeployableBuildParametersUnspecifiedError as ar, DeployableMissingPayloadError as or, DeployableUnknownOwnerProvidedError as ir, DeployableWagmiConfigurationRequiredError as tr, FieldActionValidationError as nr, FieldValueNotComparableError as dr, FieldValueUndefinedError as pr, FunctionDataDecodeError as lr, IncentiveCriteriaNotFoundError as sr, IncentiveNotCloneableError as cr, InvalidComponentInterfaceError as mr, InvalidCriteriaTypeError as gr, InvalidNumericalCriteriaError as Er, InvalidProtocolChainIdError as Ar, InvalidTupleDecodingError as yr, InvalidTupleEncodingError as Cr, MustInitializeBudgetError as Ir, NoConnectedChainIdError as br, NoContractAddressUponReceiptError as fr, NoEventActionStepsProvidedError as vr, NoMatchingLogsError as Pr, TooManyEventActionStepsProvidedError as Rr, UnknownTransferPayloadSupplied as Sr, UnparseableAbiParamError as ur, UnrecognizedFilterTypeError as Br, ValidationAbiMissingError as xr } from "./errors.js";
26
- import { CheatCodes as Tr, RegistryType as Vr, TRANSFER_SIGNATURE as Fr, assertValidAddressByChainId as Lr, awaitResult as hr, bytes4 as Nr, getDeployedContractAddress as Or, getErc20Balance as Mr } from "./utils.js";
27
- import { StrategyType as _r, prepareClaimPayload as Ur } from "./claiming.js";
28
- import { AssetType as Wr, prepareERC1155Payload as kr, prepareERC1155Transfer as zr, prepareFungiblePayload as qr, prepareFungibleTransfer as Yr, prepareTransferPayload as Hr } from "./transfers.js";
29
- import { PassthroughAuth as jr } from "./Auth/PassthroughAuth.js";
30
- import { H as Kr, g as Qr, b as Xr, N as Zr, m as ea, f as ra, y as aa, d as oa, A as ia, S as ta, h as na, p as da, $ as pa, R as la, V as sa, _ as ca, z as ma, B as ga } from "./generated-pJZHmRCK.js";
5
+ import { EventAction as C, FilterType as I, PrimitiveType as b, SignatureType as f, anyActionParameter as P, decodeAndReorderLogArgs as v, detectSignatureType as u, isEventActionPayloadSimple as R, packFieldIndexes as S, prepareEventActionPayload as B, transactionSenderClaimant as x, unpackFieldIndexes as D } from "./Actions/EventAction.js";
6
+ import { AllowListByComponentInterface as V, OpenAllowList as F, allowListFromAddress as h } from "./AllowLists/AllowList.js";
7
+ import { LIST_MANAGER_ROLE as M, SimpleAllowList as N, prepareSimpleAllowListPayload as O } from "./AllowLists/SimpleAllowList.js";
8
+ import { S as _, p as U } from "./SimpleDenyList-C734XLxt.js";
9
+ import { B as G, M as k, a as z, b as q, p as Y, c as H } from "./Budget-bMiAGF8s.js";
10
+ import { ManagedBudget as j, ManagedBudgetRoles as J, isERC1155TransferPayload as K, isFungibleTransfer as Q, prepareManagedBudgetPayload as X, prepareTransfer as Z } from "./Budgets/ManagedBudget.js";
11
+ import { Deployable as re } from "./Deployable/Deployable.js";
12
+ import { Contract as oe } from "./Deployable/Contract.js";
13
+ import { DeployableTarget as ie } from "./Deployable/DeployableTarget.js";
14
+ import { DeployableTargetWithRBAC as de, Roles as pe } from "./Deployable/DeployableTargetWithRBAC.js";
15
+ import { AllowListIncentive as se, prepareAllowListIncentivePayload as ce } from "./Incentives/AllowListIncentive.js";
16
+ import { CGDAIncentive as me, prepareCGDAIncentivePayload as Ee } from "./Incentives/CGDAIncentive.js";
17
+ import { ERC20Incentive as ye, prepareERC20IncentivePayload as Ce } from "./Incentives/ERC20Incentive.js";
18
+ import { E as be, a as fe, I as Pe, i as ve, p as ue, b as Re } from "./Incentive-DZLG6T1-.js";
19
+ import { ERC20VariableIncentive as Be, prepareERC20VariableIncentivePayload as xe } from "./Incentives/ERC20VariableIncentive.js";
20
+ import { ERC20VariableCriteriaIncentive as Te, gasRebateIncentiveCriteria as Ve, prepareERC20VariableCriteriaIncentivePayload as Fe } from "./Incentives/ERC20VariableCriteriaIncentive.js";
21
+ import { PointsIncentive as Le, preparePointsIncentivePayload as Me } from "./Incentives/PointsIncentive.js";
22
+ import { SignerValidator as Oe, prepareSignerValidatorClaimDataPayload as we, prepareSignerValidatorInputParams as _e, prepareSignerValidatorPayload as Ue } from "./Validators/SignerValidator.js";
23
+ import { LimitedSignerValidator as Ge, prepareLimitedSignerValidatorClaimDataPayload as ke, prepareLimitedSignerValidatorInputParams as ze, prepareLimitedSignerValidatorPayload as qe } from "./Validators/LimitedSignerValidator.js";
24
+ import { BoostValidatorEOA as He, ValidatorByComponentInterface as $e, decodeClaimData as je, validatorFromAddress as Je } from "./Validators/Validator.js";
25
+ import { BoostCoreNoIdentifierEmitted as Qe, BoostNotFoundError as Xe, BudgetMustAuthorizeBoostCore as Ze, ContractAddressRequiredError as er, DecodedArgsError as rr, DecodedArgsMalformedError as ar, DeployableAlreadyDeployedError as or, DeployableBuildParametersUnspecifiedError as tr, DeployableMissingPayloadError as ir, DeployableUnknownOwnerProvidedError as nr, DeployableWagmiConfigurationRequiredError as dr, FieldActionValidationError as pr, FieldValueNotComparableError as lr, FieldValueUndefinedError as sr, FunctionDataDecodeError as cr, IncentiveCriteriaNotFoundError as gr, IncentiveNotCloneableError as mr, InvalidComponentInterfaceError as Er, InvalidCriteriaTypeError as Ar, InvalidNumericalCriteriaError as yr, InvalidProtocolChainIdError as Cr, InvalidTupleDecodingError as Ir, InvalidTupleEncodingError as br, MustInitializeBudgetError as fr, NoConnectedChainIdError as Pr, NoContractAddressUponReceiptError as vr, NoEventActionStepsProvidedError as ur, NoMatchingLogsError as Rr, TooManyEventActionStepsProvidedError as Sr, UnknownTransferPayloadSupplied as Br, UnparseableAbiParamError as xr, UnrecognizedFilterTypeError as Dr, ValidationAbiMissingError as Tr } from "./errors.js";
26
+ import { CheatCodes as Fr, RegistryType as hr, TRANSFER_SIGNATURE as Lr, assertValidAddressByChainId as Mr, awaitResult as Nr, bytes4 as Or, getDeployedContractAddress as wr, getErc20Balance as _r } from "./utils.js";
27
+ import { StrategyType as Wr, prepareClaimPayload as Gr } from "./claiming.js";
28
+ import { AssetType as zr, prepareERC1155Payload as qr, prepareERC1155Transfer as Yr, prepareFungiblePayload as Hr, prepareFungibleTransfer as $r, prepareTransferPayload as jr } from "./transfers.js";
29
+ import { PassthroughAuth as Kr } from "./Auth/PassthroughAuth.js";
30
+ import { H as Xr, g as Zr, b as ea, N as ra, m as aa, f as oa, y as ta, d as ia, A as na, S as da, h as pa, p as la, r as sa, $ as ca, R as ga, V as ma, _ as Ea, z as Aa, B as ya } from "./generated-CElkFqkY.js";
31
31
  export {
32
32
  E as ActionByComponentInterface,
33
33
  V as AllowListByComponentInterface,
34
- pe as AllowListIncentive,
35
- Wr as AssetType,
34
+ se as AllowListIncentive,
35
+ zr as AssetType,
36
36
  n as BOOST_CORE_ADDRESS,
37
37
  d as BOOST_CORE_ADDRESSES,
38
38
  a as BOOST_REGISTRY_ADDRESS,
39
39
  o as BOOST_REGISTRY_ADDRESSES,
40
40
  c as Boost,
41
41
  p as BoostCore,
42
- Je as BoostCoreNoIdentifierEmitted,
43
- Ke as BoostNotFoundError,
44
- i as BoostRegistry,
45
- qe as BoostValidatorEOA,
46
- W as BudgetByComponentInterface,
47
- Qe as BudgetMustAuthorizeBoostCore,
48
- ce as CGDAIncentive,
49
- Tr as CheatCodes,
50
- re as Contract,
51
- Xe as ContractAddressRequiredError,
52
- Ze as DecodedArgsError,
53
- er as DecodedArgsMalformedError,
54
- Z as Deployable,
55
- rr as DeployableAlreadyDeployedError,
56
- ar as DeployableBuildParametersUnspecifiedError,
57
- or as DeployableMissingPayloadError,
58
- oe as DeployableTarget,
59
- te as DeployableTargetWithRBAC,
60
- ir as DeployableUnknownOwnerProvidedError,
61
- tr as DeployableWagmiConfigurationRequiredError,
62
- Ee as ERC20Incentive,
63
- Ce as ERC20PeggedIncentive,
64
- Ie as ERC20PeggedVariableCriteriaIncentive,
65
- xe as ERC20VariableCriteriaIncentive,
66
- Se as ERC20VariableIncentive,
42
+ Qe as BoostCoreNoIdentifierEmitted,
43
+ Xe as BoostNotFoundError,
44
+ t as BoostRegistry,
45
+ He as BoostValidatorEOA,
46
+ G as BudgetByComponentInterface,
47
+ Ze as BudgetMustAuthorizeBoostCore,
48
+ me as CGDAIncentive,
49
+ Fr as CheatCodes,
50
+ oe as Contract,
51
+ er as ContractAddressRequiredError,
52
+ rr as DecodedArgsError,
53
+ ar as DecodedArgsMalformedError,
54
+ re as Deployable,
55
+ or as DeployableAlreadyDeployedError,
56
+ tr as DeployableBuildParametersUnspecifiedError,
57
+ ir as DeployableMissingPayloadError,
58
+ ie as DeployableTarget,
59
+ de as DeployableTargetWithRBAC,
60
+ nr as DeployableUnknownOwnerProvidedError,
61
+ dr as DeployableWagmiConfigurationRequiredError,
62
+ ye as ERC20Incentive,
63
+ be as ERC20PeggedIncentive,
64
+ fe as ERC20PeggedVariableCriteriaIncentive,
65
+ Te as ERC20VariableCriteriaIncentive,
66
+ Be as ERC20VariableIncentive,
67
67
  C as EventAction,
68
68
  l as FEE_DENOMINATOR,
69
- nr as FieldActionValidationError,
70
- dr as FieldValueNotComparableError,
71
- pr as FieldValueUndefinedError,
69
+ pr as FieldActionValidationError,
70
+ lr as FieldValueNotComparableError,
71
+ sr as FieldValueUndefinedError,
72
72
  I as FilterType,
73
- lr as FunctionDataDecodeError,
74
- be as IncentiveByComponentInterface,
75
- sr as IncentiveCriteriaNotFoundError,
76
- cr as IncentiveNotCloneableError,
77
- mr as InvalidComponentInterfaceError,
78
- gr as InvalidCriteriaTypeError,
79
- Er as InvalidNumericalCriteriaError,
80
- Ar as InvalidProtocolChainIdError,
81
- yr as InvalidTupleDecodingError,
82
- Cr as InvalidTupleEncodingError,
83
- N as LIST_MANAGER_ROLE,
84
- Ue as LimitedSignerValidator,
85
- H as ManagedBudget,
86
- $ as ManagedBudgetRoles,
73
+ cr as FunctionDataDecodeError,
74
+ Pe as IncentiveByComponentInterface,
75
+ gr as IncentiveCriteriaNotFoundError,
76
+ mr as IncentiveNotCloneableError,
77
+ Er as InvalidComponentInterfaceError,
78
+ Ar as InvalidCriteriaTypeError,
79
+ yr as InvalidNumericalCriteriaError,
80
+ Cr as InvalidProtocolChainIdError,
81
+ Ir as InvalidTupleDecodingError,
82
+ br as InvalidTupleEncodingError,
83
+ M as LIST_MANAGER_ROLE,
84
+ Ge as LimitedSignerValidator,
85
+ j as ManagedBudget,
86
+ J as ManagedBudgetRoles,
87
87
  k as ManagedBudgetWithFees,
88
- Ir as MustInitializeBudgetError,
89
- br as NoConnectedChainIdError,
90
- fr as NoContractAddressUponReceiptError,
91
- vr as NoEventActionStepsProvidedError,
92
- Pr as NoMatchingLogsError,
88
+ z as ManagedBudgetWithFeesV2,
89
+ fr as MustInitializeBudgetError,
90
+ Pr as NoConnectedChainIdError,
91
+ vr as NoContractAddressUponReceiptError,
92
+ ur as NoEventActionStepsProvidedError,
93
+ Rr as NoMatchingLogsError,
93
94
  F as OpenAllowList,
94
- jr as PassthroughAuth,
95
- Fe as PointsIncentive,
95
+ Kr as PassthroughAuth,
96
+ Le as PointsIncentive,
96
97
  b as PrimitiveType,
97
- Vr as RegistryType,
98
- ne as Roles,
98
+ hr as RegistryType,
99
+ pe as Roles,
99
100
  f as SignatureType,
100
- Ne as SignerValidator,
101
- O as SimpleAllowList,
101
+ Oe as SignerValidator,
102
+ N as SimpleAllowList,
102
103
  _ as SimpleDenyList,
103
- _r as StrategyType,
104
- Fr as TRANSFER_SIGNATURE,
105
- Rr as TooManyEventActionStepsProvidedError,
106
- Sr as UnknownTransferPayloadSupplied,
107
- ur as UnparseableAbiParamError,
108
- Br as UnrecognizedFilterTypeError,
109
- xr as ValidationAbiMissingError,
110
- Ye as ValidatorByComponentInterface,
104
+ Wr as StrategyType,
105
+ Lr as TRANSFER_SIGNATURE,
106
+ Sr as TooManyEventActionStepsProvidedError,
107
+ Br as UnknownTransferPayloadSupplied,
108
+ xr as UnparseableAbiParamError,
109
+ Dr as UnrecognizedFilterTypeError,
110
+ Tr as ValidationAbiMissingError,
111
+ $e as ValidatorByComponentInterface,
111
112
  A as actionFromAddress,
112
- L as allowListFromAddress,
113
- Kr as allowListIncentiveAbi,
114
- v as anyActionParameter,
115
- Lr as assertValidAddressByChainId,
116
- hr as awaitResult,
117
- Qr as boostCoreAbi,
118
- Xr as boostRegistryAbi,
119
- z as budgetFromAddress,
120
- Nr as bytes4,
121
- Zr as cgdaIncentiveAbi,
122
- P as decodeAndReorderLogArgs,
123
- He as decodeClaimData,
124
- R as detectSignatureType,
125
- ea as erc20IncentiveAbi,
126
- ra as erc20PeggedIncentiveAbi,
127
- aa as erc20PeggedVariableCriteriaIncentiveAbi,
128
- oa as erc20VariableCriteriaIncentiveAbi,
129
- ia as erc20VariableIncentiveAbi,
130
- De as gasRebateIncentiveCriteria,
131
- Or as getDeployedContractAddress,
132
- Mr as getErc20Balance,
133
- fe as incentiveFromAddress,
134
- j as isERC1155TransferPayload,
135
- S as isEventActionPayloadSimple,
136
- J as isFungibleTransfer,
137
- ta as limitedSignerValidatorAbi,
138
- na as managedBudgetAbi,
139
- da as managedBudgetWithFeesAbi,
140
- u as packFieldIndexes,
141
- pa as passthroughAuthAbi,
142
- la as pointsIncentiveAbi,
143
- le as prepareAllowListIncentivePayload,
144
- m as prepareBoostPayload,
145
- me as prepareCGDAIncentivePayload,
146
- Ur as prepareClaimPayload,
147
- kr as prepareERC1155Payload,
148
- zr as prepareERC1155Transfer,
149
- Ae as prepareERC20IncentivePayload,
150
- ve as prepareERC20PeggedIncentivePayload,
151
- Pe as prepareERC20PeggedVariableCriteriaIncentivePayload,
152
- Te as prepareERC20VariableCriteriaIncentivePayload,
153
- ue as prepareERC20VariableIncentivePayload,
113
+ h as allowListFromAddress,
114
+ Xr as allowListIncentiveAbi,
115
+ P as anyActionParameter,
116
+ Mr as assertValidAddressByChainId,
117
+ Nr as awaitResult,
118
+ Zr as boostCoreAbi,
119
+ ea as boostRegistryAbi,
120
+ q as budgetFromAddress,
121
+ Or as bytes4,
122
+ ra as cgdaIncentiveAbi,
123
+ v as decodeAndReorderLogArgs,
124
+ je as decodeClaimData,
125
+ u as detectSignatureType,
126
+ aa as erc20IncentiveAbi,
127
+ oa as erc20PeggedIncentiveAbi,
128
+ ta as erc20PeggedVariableCriteriaIncentiveAbi,
129
+ ia as erc20VariableCriteriaIncentiveAbi,
130
+ na as erc20VariableIncentiveAbi,
131
+ Ve as gasRebateIncentiveCriteria,
132
+ wr as getDeployedContractAddress,
133
+ _r as getErc20Balance,
134
+ ve as incentiveFromAddress,
135
+ K as isERC1155TransferPayload,
136
+ R as isEventActionPayloadSimple,
137
+ Q as isFungibleTransfer,
138
+ da as limitedSignerValidatorAbi,
139
+ pa as managedBudgetAbi,
140
+ la as managedBudgetWithFeesAbi,
141
+ sa as managedBudgetWithFeesV2Abi,
142
+ S as packFieldIndexes,
143
+ ca as passthroughAuthAbi,
144
+ ga as pointsIncentiveAbi,
145
+ ce as prepareAllowListIncentivePayload,
146
+ g as prepareBoostPayload,
147
+ Ee as prepareCGDAIncentivePayload,
148
+ Gr as prepareClaimPayload,
149
+ qr as prepareERC1155Payload,
150
+ Yr as prepareERC1155Transfer,
151
+ Ce as prepareERC20IncentivePayload,
152
+ ue as prepareERC20PeggedIncentivePayload,
153
+ Re as prepareERC20PeggedVariableCriteriaIncentivePayload,
154
+ Fe as prepareERC20VariableCriteriaIncentivePayload,
155
+ xe as prepareERC20VariableIncentivePayload,
154
156
  B as prepareEventActionPayload,
155
- qr as prepareFungiblePayload,
156
- Yr as prepareFungibleTransfer,
157
- Ge as prepareLimitedSignerValidatorClaimDataPayload,
158
- We as prepareLimitedSignerValidatorInputParams,
159
- ke as prepareLimitedSignerValidatorPayload,
160
- K as prepareManagedBudgetPayload,
161
- q as prepareManagedBudgetWithFeesPayload,
162
- Le as preparePointsIncentivePayload,
163
- Oe as prepareSignerValidatorClaimDataPayload,
164
- Me as prepareSignerValidatorInputParams,
165
- we as prepareSignerValidatorPayload,
166
- M as prepareSimpleAllowListPayload,
157
+ Hr as prepareFungiblePayload,
158
+ $r as prepareFungibleTransfer,
159
+ ke as prepareLimitedSignerValidatorClaimDataPayload,
160
+ ze as prepareLimitedSignerValidatorInputParams,
161
+ qe as prepareLimitedSignerValidatorPayload,
162
+ X as prepareManagedBudgetPayload,
163
+ Y as prepareManagedBudgetWithFeesPayload,
164
+ H as prepareManagedBudgetWithFeesV2Payload,
165
+ Me as preparePointsIncentivePayload,
166
+ we as prepareSignerValidatorClaimDataPayload,
167
+ _e as prepareSignerValidatorInputParams,
168
+ Ue as prepareSignerValidatorPayload,
169
+ O as prepareSimpleAllowListPayload,
167
170
  U as prepareSimpleDenyListPayload,
168
- Q as prepareTransfer,
169
- Hr as prepareTransferPayload,
170
- sa as rbacAbi,
171
- ca as signerValidatorAbi,
172
- ma as simpleAllowListAbi,
173
- ga as simpleDenyListAbi,
171
+ Z as prepareTransfer,
172
+ jr as prepareTransferPayload,
173
+ ma as rbacAbi,
174
+ Ea as signerValidatorAbi,
175
+ Aa as simpleAllowListAbi,
176
+ ya as simpleDenyListAbi,
174
177
  x as transactionSenderClaimant,
175
178
  D as unpackFieldIndexes,
176
- $e as validatorFromAddress
179
+ Je as validatorFromAddress
177
180
  };
178
181
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boostxyz/sdk",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
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.5.0"
216
+ "ts-pattern": "5.6.2"
217
217
  },
218
218
  "peerDependencies": {
219
219
  "@wagmi/core": "2.x",
@@ -180,13 +180,13 @@ export class SimpleAllowList extends DeployableTargetWithRBAC<
180
180
  * @async
181
181
  * @param {Address[]} addresses - The list of users to update
182
182
  * @param {boolean[]} allowed - The allowed status of each user
183
- * @param {?ReadParams} [params]
183
+ * @param {?WriteParams} [params]
184
184
  * @returns {Promise<{ hash: `0x${string}`; result: void; }>}
185
185
  */
186
186
  public async setAllowedRaw(
187
187
  addresses: Address[],
188
188
  allowed: boolean[],
189
- params?: ReadParams,
189
+ params?: WriteParams,
190
190
  ) {
191
191
  const { request, result } = await simulateSimpleAllowListSetAllowed(
192
192
  this._config,
package/src/BoostCore.ts CHANGED
@@ -74,6 +74,10 @@ import {
74
74
  ManagedBudgetWithFees,
75
75
  type ManagedBudgetWithFeesPayload,
76
76
  } from './Budgets/ManagedBudgetWithFees';
77
+ import {
78
+ ManagedBudgetWithFeesV2,
79
+ type ManagedBudgetWithFeesV2Payload,
80
+ } from './Budgets/ManagedBudgetWithFeesV2';
77
81
  import {
78
82
  Deployable,
79
83
  type DeployableOptions,
@@ -207,9 +211,15 @@ export interface BoostCoreDeployedOptions extends DeployableOptions {
207
211
  /**
208
212
  * The address of a deployed, custom Boost Core contract.
209
213
  *
210
- * @type {?Address}
214
+ * @type {Address}
215
+ */
216
+ address: Address;
217
+ /**
218
+ * The mapping of chain ID to address of deployed custom Boost Core contracts.
219
+ *
220
+ * @type {?Record<number, Address>}
211
221
  */
212
- address?: Address;
222
+ addresses?: Record<number, Address>;
213
223
  }
214
224
 
215
225
  /**
@@ -321,7 +331,7 @@ export class BoostCore extends Deployable<
321
331
  * @readonly
322
332
  * @type {Record<string, Address>}
323
333
  */
324
- static readonly addresses: Record<number, Address> = BOOST_CORE_ADDRESSES;
334
+ static addresses: Record<number, Address> = BOOST_CORE_ADDRESSES;
325
335
 
326
336
  /**
327
337
  * A getter that will return Boost core's static addresses by numerical chain ID
@@ -346,6 +356,9 @@ export class BoostCore extends Deployable<
346
356
  constructor({ config, account, ...options }: BoostCoreConfig) {
347
357
  if (isBoostCoreDeployed(options) && options.address) {
348
358
  super({ account, config }, options.address);
359
+ if (options.addresses) {
360
+ this.updateAddresses(options.addresses);
361
+ }
349
362
  } else if (isBoostCoreDeployable(options)) {
350
363
  super({ account, config }, [
351
364
  options.registryAddress,
@@ -494,6 +507,16 @@ export class BoostCore extends Deployable<
494
507
  });
495
508
  }
496
509
 
510
+ /**
511
+ * Updates the addresses for specific chain IDs. This is used when using a custom deployed instance
512
+ *
513
+ * @static
514
+ * @param {Record<number, Address>} newAddresses - New addresses to add/update
515
+ */
516
+ private updateAddresses(addresses: Record<number, Address>) {
517
+ BoostCore.addresses = addresses;
518
+ }
519
+
497
520
  // This function mutates payload, which isn't awesome but it's fine
498
521
  private async prepareCreateBoostPayload(
499
522
  coreAddress: Address,
@@ -1401,6 +1424,34 @@ export class BoostCore extends Deployable<
1401
1424
  options,
1402
1425
  );
1403
1426
  }
1427
+ /**
1428
+ * Bound {@link ManagedBudgetWithFeesV2} constructor that reuses the same configuration as the Boost Core instance.
1429
+ * Prepends the BoostCore address to the authorized list because it's structurally critical to calculating payouts.
1430
+ *
1431
+ * @example
1432
+ * ```ts
1433
+ * const budget = core.ManagedBudgetWithFeesV2('0x') // is roughly equivalent to
1434
+ * const budget = new ManagedBudgetWithFeesV2({ config: core._config, account: core._account }, '0x')
1435
+ * ```
1436
+ * @param {DeployablePayloadOrAddress<ManagedBudgetWithFeesV2Payload>} options
1437
+ * @returns {ManagedBudgetWithFeesV2}
1438
+ */
1439
+ ManagedBudgetWithFeesV2(
1440
+ options: DeployablePayloadOrAddress<ManagedBudgetWithFeesV2Payload>,
1441
+ ) {
1442
+ if (
1443
+ typeof options !== 'string' &&
1444
+ !options.authorized.includes(this.assertValidAddress())
1445
+ ) {
1446
+ options.authorized = [this.assertValidAddress(), ...options.authorized];
1447
+ options.roles = [Roles.MANAGER, ...options.roles];
1448
+ }
1449
+
1450
+ return new ManagedBudgetWithFeesV2(
1451
+ { config: this._config, account: this._account },
1452
+ options,
1453
+ );
1454
+ }
1404
1455
  // /**
1405
1456
  // * Bound {@link VestingBudget} constructor that reuses the same configuration as the Boost Core instance.
1406
1457
  // *
@@ -1681,7 +1732,7 @@ export class BoostCore extends Deployable<
1681
1732
  budget?: Address,
1682
1733
  params?: WriteParams,
1683
1734
  ) {
1684
- const boost = await this.getBoost(boostId, params);
1735
+ const boost = await this.getBoost(boostId, params as ReadParams);
1685
1736
  if (incentiveId >= boost.incentives.length) {
1686
1737
  throw new Error(`Incentive ID ${incentiveId} out of range`);
1687
1738
  }
@@ -1727,7 +1778,7 @@ export class BoostCore extends Deployable<
1727
1778
  budget?: Address,
1728
1779
  params?: WriteParams,
1729
1780
  ) {
1730
- const feeBps = await this.protocolFee(params);
1781
+ const feeBps = await this.protocolFee(params as ReadParams);
1731
1782
  const topupAmount =
1732
1783
  (totalAmount * FEE_DENOMINATOR) / (FEE_DENOMINATOR + feeBps);
1733
1784
  return this.topupIncentiveFromBudgetPreFee(
@@ -1757,7 +1808,7 @@ export class BoostCore extends Deployable<
1757
1808
  topupAmount: bigint,
1758
1809
  params?: WriteParams,
1759
1810
  ) {
1760
- const boost = await this.getBoost(boostId, params);
1811
+ const boost = await this.getBoost(boostId, params as ReadParams);
1761
1812
  if (incentiveId >= boost.incentives.length) {
1762
1813
  throw new Error(`Incentive ID ${incentiveId} out of range`);
1763
1814
  }
@@ -1800,7 +1851,7 @@ export class BoostCore extends Deployable<
1800
1851
  totalAmount: bigint,
1801
1852
  params?: WriteParams,
1802
1853
  ) {
1803
- const feeBps = await this.protocolFee(params);
1854
+ const feeBps = await this.protocolFee(params as ReadParams);
1804
1855
  const topupAmount =
1805
1856
  (totalAmount * FEE_DENOMINATOR) / (FEE_DENOMINATOR + feeBps);
1806
1857
 
@@ -2,6 +2,7 @@ import { aBudgetAbi } from '@boostxyz/evm';
2
2
  import {
3
3
  AManagedBudget,
4
4
  AManagedBudgetWithFees,
5
+ AManagedBudgetWithFeesV2,
5
6
  } from '@boostxyz/evm/deploys/componentInterfaces.json';
6
7
  import { readContract } from '@wagmi/core';
7
8
  import type { Address, Hex } from 'viem';
@@ -10,6 +11,7 @@ import { InvalidComponentInterfaceError } from '../errors';
10
11
  import type { ReadParams } from '../utils';
11
12
  import { ManagedBudget } from './ManagedBudget';
12
13
  import { ManagedBudgetWithFees } from './ManagedBudgetWithFees';
14
+ import { ManagedBudgetWithFeesV2 } from './ManagedBudgetWithFeesV2';
13
15
 
14
16
  export {
15
17
  // VestingBudget,
@@ -22,7 +24,10 @@ export {
22
24
  * @export
23
25
  * @typedef {Budget}
24
26
  */
25
- export type Budget = ManagedBudget | ManagedBudgetWithFees; // | VestingBudget
27
+ export type Budget =
28
+ | ManagedBudget
29
+ | ManagedBudgetWithFees
30
+ | ManagedBudgetWithFeesV2; // | VestingBudget
26
31
 
27
32
  /**
28
33
  * A map of Budget component interfaces to their constructors.
@@ -34,6 +39,7 @@ export const BudgetByComponentInterface = {
34
39
  // ['0x2929d19c']: SimpleBudget,
35
40
  [AManagedBudget as Hex]: ManagedBudget,
36
41
  [AManagedBudgetWithFees as Hex]: ManagedBudgetWithFees,
42
+ [AManagedBudgetWithFeesV2 as Hex]: ManagedBudgetWithFeesV2,
37
43
  };
38
44
 
39
45
  /**
@@ -43,7 +49,7 @@ export const BudgetByComponentInterface = {
43
49
  * @async
44
50
  * @param {DeployableOptions} options
45
51
  * @param {Address} address
46
- * @returns {Promise<ManagedBudget | ManagedBudgetWithFees>}
52
+ * @returns {Promise<ManagedBudget | ManagedBudgetWithFees | ManagedBudgetWithFeesV2>}
47
53
  * @throws {@link InvalidComponentInterfaceError}
48
54
  */
49
55
  export async function budgetFromAddress(
@@ -12,7 +12,6 @@ import {
12
12
  freshManagedBudgetWithFees,
13
13
  fundErc20,
14
14
  fundErc1155,
15
- fundManagedBudget,
16
15
  freshBoost,
17
16
  fundManagedBudgetWithFees,
18
17
  } from "@boostxyz/test/helpers";