@boostxyz/sdk 5.5.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) 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.cjs.map +1 -1
  5. package/dist/Actions/EventAction.d.ts +2 -1
  6. package/dist/Actions/EventAction.d.ts.map +1 -1
  7. package/dist/Actions/EventAction.js +110 -105
  8. package/dist/Actions/EventAction.js.map +1 -1
  9. package/dist/AllowLists/AllowList.cjs +1 -1
  10. package/dist/AllowLists/AllowList.js +3 -3
  11. package/dist/AllowLists/SimpleAllowList.cjs +1 -1
  12. package/dist/AllowLists/SimpleAllowList.cjs.map +1 -1
  13. package/dist/AllowLists/SimpleAllowList.d.ts +2 -2
  14. package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -1
  15. package/dist/AllowLists/SimpleAllowList.js +25 -25
  16. package/dist/AllowLists/SimpleAllowList.js.map +1 -1
  17. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  18. package/dist/AllowLists/SimpleDenyList.js +3 -3
  19. package/dist/Auth/PassthroughAuth.cjs +1 -1
  20. package/dist/Auth/PassthroughAuth.cjs.map +1 -1
  21. package/dist/Auth/PassthroughAuth.js +14 -14
  22. package/dist/Boost.cjs.map +1 -1
  23. package/dist/Boost.js.map +1 -1
  24. package/dist/BoostCore.cjs +2 -2
  25. package/dist/BoostCore.cjs.map +1 -1
  26. package/dist/BoostCore.d.ts +261 -0
  27. package/dist/BoostCore.d.ts.map +1 -1
  28. package/dist/BoostCore.js +442 -262
  29. package/dist/BoostCore.js.map +1 -1
  30. package/dist/BoostRegistry.cjs +1 -1
  31. package/dist/BoostRegistry.cjs.map +1 -1
  32. package/dist/BoostRegistry.js +43 -43
  33. package/dist/BoostRegistry.js.map +1 -1
  34. package/dist/Budget-CsqSI4NH.cjs +2 -0
  35. package/dist/Budget-CsqSI4NH.cjs.map +1 -0
  36. package/dist/Budget-bMiAGF8s.js +922 -0
  37. package/dist/Budget-bMiAGF8s.js.map +1 -0
  38. package/dist/Budgets/Budget.cjs +1 -1
  39. package/dist/Budgets/Budget.d.ts +5 -4
  40. package/dist/Budgets/Budget.d.ts.map +1 -1
  41. package/dist/Budgets/Budget.js +3 -3
  42. package/dist/Budgets/ManagedBudget.cjs +1 -1
  43. package/dist/Budgets/ManagedBudget.cjs.map +1 -1
  44. package/dist/Budgets/ManagedBudget.js +53 -53
  45. package/dist/Budgets/ManagedBudgetWithFees.d.ts +26 -0
  46. package/dist/Budgets/ManagedBudgetWithFees.d.ts.map +1 -1
  47. package/dist/Budgets/ManagedBudgetWithFeesV2.d.ts +1331 -0
  48. package/dist/Budgets/ManagedBudgetWithFeesV2.d.ts.map +1 -0
  49. package/dist/Deployable/DeployableTarget.cjs +1 -1
  50. package/dist/Deployable/DeployableTarget.js +1 -1
  51. package/dist/Deployable/DeployableTargetWithRBAC.cjs +1 -1
  52. package/dist/Deployable/DeployableTargetWithRBAC.js +15 -15
  53. package/dist/Incentive-DZLG6T1-.js +1036 -0
  54. package/dist/Incentive-DZLG6T1-.js.map +1 -0
  55. package/dist/Incentive-DvNdIJ_x.cjs +2 -0
  56. package/dist/Incentive-DvNdIJ_x.cjs.map +1 -0
  57. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  58. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  59. package/dist/Incentives/AllowListIncentive.d.ts +9 -1
  60. package/dist/Incentives/AllowListIncentive.d.ts.map +1 -1
  61. package/dist/Incentives/AllowListIncentive.js +64 -47
  62. package/dist/Incentives/AllowListIncentive.js.map +1 -1
  63. package/dist/Incentives/CGDAIncentive.cjs +1 -1
  64. package/dist/Incentives/CGDAIncentive.cjs.map +1 -1
  65. package/dist/Incentives/CGDAIncentive.d.ts +12 -1
  66. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -1
  67. package/dist/Incentives/CGDAIncentive.js +64 -33
  68. package/dist/Incentives/CGDAIncentive.js.map +1 -1
  69. package/dist/Incentives/ERC20Incentive.cjs +1 -1
  70. package/dist/Incentives/ERC20Incentive.cjs.map +1 -1
  71. package/dist/Incentives/ERC20Incentive.d.ts +37 -1
  72. package/dist/Incentives/ERC20Incentive.d.ts.map +1 -1
  73. package/dist/Incentives/ERC20Incentive.js +73 -49
  74. package/dist/Incentives/ERC20Incentive.js.map +1 -1
  75. package/dist/Incentives/ERC20PeggedIncentive.d.ts +35 -0
  76. package/dist/Incentives/ERC20PeggedIncentive.d.ts.map +1 -1
  77. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts +35 -0
  78. package/dist/Incentives/ERC20PeggedVariableCriteriaIncentive.d.ts.map +1 -1
  79. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs +1 -1
  80. package/dist/Incentives/ERC20VariableCriteriaIncentive.cjs.map +1 -1
  81. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts +25 -0
  82. package/dist/Incentives/ERC20VariableCriteriaIncentive.d.ts.map +1 -1
  83. package/dist/Incentives/ERC20VariableCriteriaIncentive.js +24 -24
  84. package/dist/Incentives/ERC20VariableCriteriaIncentive.js.map +1 -1
  85. package/dist/Incentives/ERC20VariableIncentive.cjs +1 -1
  86. package/dist/Incentives/ERC20VariableIncentive.cjs.map +1 -1
  87. package/dist/Incentives/ERC20VariableIncentive.d.ts +35 -0
  88. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -1
  89. package/dist/Incentives/ERC20VariableIncentive.js +55 -38
  90. package/dist/Incentives/ERC20VariableIncentive.js.map +1 -1
  91. package/dist/Incentives/Incentive.cjs +1 -1
  92. package/dist/Incentives/Incentive.d.ts +25 -0
  93. package/dist/Incentives/Incentive.d.ts.map +1 -1
  94. package/dist/Incentives/Incentive.js +3 -3
  95. package/dist/Incentives/PointsIncentive.cjs +1 -1
  96. package/dist/Incentives/PointsIncentive.cjs.map +1 -1
  97. package/dist/Incentives/PointsIncentive.d.ts +8 -0
  98. package/dist/Incentives/PointsIncentive.d.ts.map +1 -1
  99. package/dist/Incentives/PointsIncentive.js +50 -28
  100. package/dist/Incentives/PointsIncentive.js.map +1 -1
  101. package/dist/SimpleDenyList-BAIrFBAW.cjs +2 -0
  102. package/dist/{SimpleDenyList-CsRXJPwm.cjs.map → SimpleDenyList-BAIrFBAW.cjs.map} +1 -1
  103. package/dist/SimpleDenyList-C734XLxt.js +133 -0
  104. package/dist/{SimpleDenyList-ByAr4X1r.js.map → SimpleDenyList-C734XLxt.js.map} +1 -1
  105. package/dist/Validators/LimitedSignerValidator.cjs +1 -1
  106. package/dist/Validators/LimitedSignerValidator.cjs.map +1 -1
  107. package/dist/Validators/LimitedSignerValidator.d.ts +1 -1
  108. package/dist/Validators/LimitedSignerValidator.d.ts.map +1 -1
  109. package/dist/Validators/LimitedSignerValidator.js +33 -33
  110. package/dist/Validators/LimitedSignerValidator.js.map +1 -1
  111. package/dist/Validators/SignerValidator.cjs +1 -1
  112. package/dist/Validators/SignerValidator.cjs.map +1 -1
  113. package/dist/Validators/SignerValidator.d.ts +1 -1
  114. package/dist/Validators/SignerValidator.d.ts.map +1 -1
  115. package/dist/Validators/SignerValidator.js +26 -26
  116. package/dist/Validators/SignerValidator.js.map +1 -1
  117. package/dist/Validators/Validator.cjs +1 -1
  118. package/dist/Validators/Validator.js +4 -4
  119. package/dist/componentInterfaces-5Ezh3Pvx.js +19 -0
  120. package/dist/componentInterfaces-5Ezh3Pvx.js.map +1 -0
  121. package/dist/componentInterfaces-Cm4Zfn1v.cjs +2 -0
  122. package/dist/componentInterfaces-Cm4Zfn1v.cjs.map +1 -0
  123. package/dist/{deployments-D0fs26TV.js → deployments-3RHH-eW7.js} +47 -47
  124. package/dist/{deployments-D0fs26TV.js.map → deployments-3RHH-eW7.js.map} +1 -1
  125. package/dist/deployments-CIXw_WKk.cjs +2 -0
  126. package/dist/deployments-CIXw_WKk.cjs.map +1 -0
  127. package/dist/deployments.json +24 -24
  128. package/dist/errors.cjs +1 -1
  129. package/dist/errors.cjs.map +1 -1
  130. package/dist/errors.js +1 -1
  131. package/dist/errors.js.map +1 -1
  132. package/dist/generated-BPiHi7W2.cjs +3 -0
  133. package/dist/generated-BPiHi7W2.cjs.map +1 -0
  134. package/dist/{generated-Cyvr_Tjx.js → generated-CElkFqkY.js} +1510 -608
  135. package/dist/generated-CElkFqkY.js.map +1 -0
  136. package/dist/index.cjs +1 -1
  137. package/dist/index.d.ts +1 -0
  138. package/dist/index.d.ts.map +1 -1
  139. package/dist/index.js +153 -150
  140. package/package.json +2 -2
  141. package/src/Actions/EventAction.ts +25 -6
  142. package/src/AllowLists/SimpleAllowList.ts +2 -2
  143. package/src/BoostCore.test.ts +124 -2
  144. package/src/BoostCore.ts +259 -0
  145. package/src/Budgets/Budget.ts +8 -2
  146. package/src/Budgets/ManagedBudgetWithFees.test.ts +0 -1
  147. package/src/Budgets/ManagedBudgetWithFeesV2.test.ts +327 -0
  148. package/src/Budgets/ManagedBudgetWithFeesV2.ts +713 -0
  149. package/src/Incentives/AllowListIncentive.ts +17 -0
  150. package/src/Incentives/CGDAIncentive.ts +31 -0
  151. package/src/Incentives/ERC20Incentive.ts +27 -0
  152. package/src/Incentives/ERC20PeggedIncentive.ts +18 -0
  153. package/src/Incentives/ERC20PeggedVariableCriteriaIncentive.ts +26 -0
  154. package/src/Incentives/ERC20VariableIncentive.ts +18 -0
  155. package/src/Incentives/PointsIncentive.ts +22 -0
  156. package/src/Validators/LimitedSignerValidator.ts +1 -1
  157. package/src/Validators/SignerValidator.ts +1 -1
  158. package/src/errors.ts +1 -1
  159. package/src/index.ts +1 -0
  160. package/dist/Budget-AoNx7uFd.cjs +0 -2
  161. package/dist/Budget-AoNx7uFd.cjs.map +0 -1
  162. package/dist/Budget-DYIV9iNK.js +0 -463
  163. package/dist/Budget-DYIV9iNK.js.map +0 -1
  164. package/dist/Incentive-BbkfwGOb.cjs +0 -2
  165. package/dist/Incentive-BbkfwGOb.cjs.map +0 -1
  166. package/dist/Incentive-qlnv5kQB.js +0 -991
  167. package/dist/Incentive-qlnv5kQB.js.map +0 -1
  168. package/dist/SimpleDenyList-ByAr4X1r.js +0 -133
  169. package/dist/SimpleDenyList-CsRXJPwm.cjs +0 -2
  170. package/dist/componentInterfaces-D7r9xJmt.cjs +0 -2
  171. package/dist/componentInterfaces-D7r9xJmt.cjs.map +0 -1
  172. package/dist/componentInterfaces-PR3ijhgZ.js +0 -18
  173. package/dist/componentInterfaces-PR3ijhgZ.js.map +0 -1
  174. package/dist/deployments-DoIOqxco.cjs +0 -2
  175. package/dist/deployments-DoIOqxco.cjs.map +0 -1
  176. package/dist/generated-Cyvr_Tjx.js.map +0 -1
  177. package/dist/generated-DtYPHhtX.cjs +0 -3
  178. package/dist/generated-DtYPHhtX.cjs.map +0 -1
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-CsRXJPwm.cjs"),l=require("./Budget-AoNx7uFd.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-BbkfwGOb.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-DtYPHhtX.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.B;exports.boostCoreAbi=r.I;exports.boostRegistryAbi=r.ce;exports.cgdaIncentiveAbi=r.A;exports.erc20IncentiveAbi=r.f;exports.erc20PeggedIncentiveAbi=r.v;exports.erc20PeggedVariableCriteriaIncentiveAbi=r.l;exports.erc20VariableCriteriaIncentiveAbi=r.d;exports.erc20VariableIncentiveAbi=r.g;exports.limitedSignerValidatorAbi=r.V;exports.managedBudgetAbi=r.w;exports.managedBudgetWithFeesAbi=r.o;exports.passthroughAuthAbi=r.We;exports.pointsIncentiveAbi=r.N;exports.rbacAbi=r.H;exports.signerValidatorAbi=r.k;exports.simpleAllowListAbi=r.C;exports.simpleDenyListAbi=r.E;
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
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-ByAr4X1r.js";
9
- import { B as W, M as k, b as z, p as q } from "./Budget-DYIV9iNK.js";
10
- import { ManagedBudget as H, ManagedBudgetRoles as j, isERC1155TransferPayload as J, isFungibleTransfer as K, prepareManagedBudgetPayload as Q, prepareTransfer as X } from "./Budgets/ManagedBudget.js";
11
- import { Deployable as $ } 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 ge } 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-qlnv5kQB.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 je } from "./Validators/Validator.js";
25
- import { BoostCoreNoIdentifierEmitted as Ke, BoostNotFoundError as Qe, BudgetMustAuthorizeBoostCore as Xe, ContractAddressRequiredError as Ze, DecodedArgsError as $e, 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 gr, InvalidCriteriaTypeError as mr, 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 { B as Qr, I as Xr, c as Zr, A as $r, f as ea, v as ra, l as aa, d as oa, g as ia, V as ta, w as na, o as da, W as pa, N as la, H as sa, k as ca, C as ga, E as ma } from "./generated-Cyvr_Tjx.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
- Ke as BoostCoreNoIdentifierEmitted,
43
- Qe as BoostNotFoundError,
44
- i as BoostRegistry,
45
- qe as BoostValidatorEOA,
46
- W as BudgetByComponentInterface,
47
- Xe as BudgetMustAuthorizeBoostCore,
48
- ce as CGDAIncentive,
49
- Tr as CheatCodes,
50
- re as Contract,
51
- Ze as ContractAddressRequiredError,
52
- $e as DecodedArgsError,
53
- er as DecodedArgsMalformedError,
54
- $ 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
- gr as InvalidComponentInterfaceError,
78
- mr 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
- j 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
- Qr as allowListIncentiveAbi,
114
- v as anyActionParameter,
115
- Lr as assertValidAddressByChainId,
116
- hr as awaitResult,
117
- Xr as boostCoreAbi,
118
- Zr as boostRegistryAbi,
119
- z as budgetFromAddress,
120
- Nr as bytes4,
121
- $r 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
- K 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,
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,
144
146
  g as prepareBoostPayload,
145
- ge 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,
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
- Q 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
- X as prepareTransfer,
169
- Hr as prepareTransferPayload,
170
- sa as rbacAbi,
171
- ca as signerValidatorAbi,
172
- ga as simpleAllowListAbi,
173
- ma 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
- je 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": "5.5.0",
3
+ "version": "6.0.1",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "files": [
@@ -213,7 +213,7 @@
213
213
  }
214
214
  },
215
215
  "dependencies": {
216
- "ts-pattern": "5.5.0"
216
+ "ts-pattern": "5.6.2"
217
217
  },
218
218
  "peerDependencies": {
219
219
  "@wagmi/core": "2.x",
@@ -94,8 +94,8 @@ export enum PrimitiveType {
94
94
  ADDRESS = 1,
95
95
  BYTES = 2,
96
96
  STRING = 3,
97
- // Note: TUPLE remains in the enum but is no longer handled directly by `validateFieldAgainstCriteria`.
98
97
  TUPLE = 4,
98
+ INT = 5,
99
99
  }
100
100
 
101
101
  /**
@@ -1068,6 +1068,10 @@ export class EventAction extends DeployableTarget<
1068
1068
  PrimitiveType.UINT,
1069
1069
  () => BigInt(fieldValue) !== BigInt(criteria.filterData),
1070
1070
  )
1071
+ .with(
1072
+ PrimitiveType.INT,
1073
+ () => BigInt(fieldValue) !== BigInt(criteria.filterData),
1074
+ )
1071
1075
  .with(
1072
1076
  PrimitiveType.STRING,
1073
1077
  () => fieldValue !== fromHex(criteria.filterData, 'string'),
@@ -1075,7 +1079,10 @@ export class EventAction extends DeployableTarget<
1075
1079
  .otherwise(() => fieldValue !== criteria.filterData);
1076
1080
 
1077
1081
  case FilterType.GREATER_THAN:
1078
- if (fieldType === PrimitiveType.UINT) {
1082
+ if (
1083
+ fieldType === PrimitiveType.UINT ||
1084
+ fieldType === PrimitiveType.INT
1085
+ ) {
1079
1086
  return BigInt(fieldValue) > BigInt(criteria.filterData);
1080
1087
  }
1081
1088
  throw new InvalidNumericalCriteriaError({
@@ -1085,7 +1092,10 @@ export class EventAction extends DeployableTarget<
1085
1092
  });
1086
1093
 
1087
1094
  case FilterType.GREATER_THAN_OR_EQUAL:
1088
- if (fieldType === PrimitiveType.UINT) {
1095
+ if (
1096
+ fieldType === PrimitiveType.UINT ||
1097
+ fieldType === PrimitiveType.INT
1098
+ ) {
1089
1099
  return BigInt(fieldValue) >= BigInt(criteria.filterData);
1090
1100
  }
1091
1101
  throw new InvalidNumericalCriteriaError({
@@ -1095,7 +1105,10 @@ export class EventAction extends DeployableTarget<
1095
1105
  });
1096
1106
 
1097
1107
  case FilterType.LESS_THAN:
1098
- if (fieldType === PrimitiveType.UINT) {
1108
+ if (
1109
+ fieldType === PrimitiveType.UINT ||
1110
+ fieldType === PrimitiveType.INT
1111
+ ) {
1099
1112
  return BigInt(fieldValue) < BigInt(criteria.filterData);
1100
1113
  }
1101
1114
  throw new InvalidNumericalCriteriaError({
@@ -1105,7 +1118,10 @@ export class EventAction extends DeployableTarget<
1105
1118
  });
1106
1119
 
1107
1120
  case FilterType.LESS_THAN_OR_EQUAL:
1108
- if (fieldType === PrimitiveType.UINT) {
1121
+ if (
1122
+ fieldType === PrimitiveType.UINT ||
1123
+ fieldType === PrimitiveType.INT
1124
+ ) {
1109
1125
  return BigInt(fieldValue) <= BigInt(criteria.filterData);
1110
1126
  }
1111
1127
  throw new InvalidNumericalCriteriaError({
@@ -1315,9 +1331,12 @@ function abiTypeToPrimitiveType(
1315
1331
  ): Exclude<PrimitiveType, PrimitiveType.TUPLE> {
1316
1332
  const lower = abiType.toLowerCase();
1317
1333
 
1318
- if (lower.startsWith('uint') || lower.startsWith('int')) {
1334
+ if (lower.startsWith('uint')) {
1319
1335
  return PrimitiveType.UINT;
1320
1336
  }
1337
+ if (lower.startsWith('int')) {
1338
+ return PrimitiveType.INT;
1339
+ }
1321
1340
  if (lower === 'address') {
1322
1341
  return PrimitiveType.ADDRESS;
1323
1342
  }
@@ -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,