@boostxyz/sdk 0.0.0-alpha.10 → 0.0.0-alpha.12

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 (100) hide show
  1. package/dist/Actions/Action.js +2 -2
  2. package/dist/Actions/EventAction.cjs +1 -1
  3. package/dist/Actions/EventAction.cjs.map +1 -1
  4. package/dist/Actions/EventAction.d.ts +115 -31
  5. package/dist/Actions/EventAction.d.ts.map +1 -1
  6. package/dist/Actions/EventAction.js +306 -122
  7. package/dist/Actions/EventAction.js.map +1 -1
  8. package/dist/AllowLists/AllowList.cjs +1 -1
  9. package/dist/AllowLists/AllowList.cjs.map +1 -1
  10. package/dist/AllowLists/AllowList.d.ts +6 -4
  11. package/dist/AllowLists/AllowList.d.ts.map +1 -1
  12. package/dist/AllowLists/AllowList.js +45 -23
  13. package/dist/AllowLists/AllowList.js.map +1 -1
  14. package/dist/AllowLists/OpenAllowList.d.ts +240 -0
  15. package/dist/AllowLists/OpenAllowList.d.ts.map +1 -0
  16. package/dist/AllowLists/SimpleAllowList.js +1 -1
  17. package/dist/AllowLists/SimpleDenyList.cjs +1 -1
  18. package/dist/AllowLists/SimpleDenyList.cjs.map +1 -1
  19. package/dist/AllowLists/SimpleDenyList.d.ts +2 -2
  20. package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
  21. package/dist/AllowLists/SimpleDenyList.js +9 -111
  22. package/dist/AllowLists/SimpleDenyList.js.map +1 -1
  23. package/dist/Auth/PassthroughAuth.js +1 -1
  24. package/dist/BoostCore.cjs +2 -2
  25. package/dist/BoostCore.cjs.map +1 -1
  26. package/dist/BoostCore.d.ts +14 -1
  27. package/dist/BoostCore.d.ts.map +1 -1
  28. package/dist/BoostCore.js +169 -151
  29. package/dist/BoostCore.js.map +1 -1
  30. package/dist/BoostRegistry.js +1 -1
  31. package/dist/Budgets/Budget.js +2 -2
  32. package/dist/Budgets/ManagedBudget.cjs +1 -1
  33. package/dist/Budgets/ManagedBudget.cjs.map +1 -1
  34. package/dist/Budgets/ManagedBudget.d.ts +29 -27
  35. package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
  36. package/dist/Budgets/ManagedBudget.js +78 -77
  37. package/dist/Budgets/ManagedBudget.js.map +1 -1
  38. package/dist/Budgets/SimpleBudget.d.ts +6 -6
  39. package/dist/Budgets/SimpleBudget.d.ts.map +1 -1
  40. package/dist/Budgets/VestingBudget.d.ts +6 -6
  41. package/dist/Budgets/VestingBudget.d.ts.map +1 -1
  42. package/dist/Deployable/DeployableTarget.cjs.map +1 -1
  43. package/dist/Deployable/DeployableTarget.d.ts +1 -1
  44. package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
  45. package/dist/Deployable/DeployableTarget.js +1 -1
  46. package/dist/Deployable/DeployableTarget.js.map +1 -1
  47. package/dist/Incentives/AllowListIncentive.cjs +1 -1
  48. package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
  49. package/dist/Incentives/AllowListIncentive.js +2 -2
  50. package/dist/Incentives/CGDAIncentive.js +1 -1
  51. package/dist/Incentives/ERC20Incentive.js +1 -1
  52. package/dist/Incentives/ERC20VariableIncentive.d.ts +5 -5
  53. package/dist/Incentives/Incentive.cjs.map +1 -1
  54. package/dist/Incentives/Incentive.js +16 -16
  55. package/dist/Incentives/Incentive.js.map +1 -1
  56. package/dist/Incentives/PointsIncentive.js +1 -1
  57. package/dist/SimpleDenyList-CqT0BMP7.cjs +2 -0
  58. package/dist/SimpleDenyList-CqT0BMP7.cjs.map +1 -0
  59. package/dist/SimpleDenyList-IJ9Ipya7.js +112 -0
  60. package/dist/SimpleDenyList-IJ9Ipya7.js.map +1 -0
  61. package/dist/Validators/SignerValidator.js +1 -1
  62. package/dist/Validators/Validator.js +2 -2
  63. package/dist/{componentInterfaces-DYkaxBda.js → componentInterfaces-Cmg8tUxq.js} +5 -5
  64. package/dist/componentInterfaces-Cmg8tUxq.js.map +1 -0
  65. package/dist/errors.cjs +1 -1
  66. package/dist/errors.cjs.map +1 -1
  67. package/dist/errors.d.ts +116 -20
  68. package/dist/errors.d.ts.map +1 -1
  69. package/dist/errors.js +106 -52
  70. package/dist/errors.js.map +1 -1
  71. package/dist/{generated-BDeDiaCK.js → generated-HGddZXHJ.js} +21 -21
  72. package/dist/{generated-BDeDiaCK.js.map → generated-HGddZXHJ.js.map} +1 -1
  73. package/dist/index.cjs +1 -1
  74. package/dist/index.js +95 -91
  75. package/package.json +11 -7
  76. package/src/Actions/Action.test.ts +9 -5
  77. package/src/Actions/ContractAction.test.ts +3 -3
  78. package/src/Actions/ERC721MintAction.test.ts +1 -1
  79. package/src/Actions/EventAction.test.ts +527 -99
  80. package/src/Actions/EventAction.ts +296 -58
  81. package/src/AllowLists/AllowList.test.ts +2 -2
  82. package/src/AllowLists/AllowList.ts +5 -3
  83. package/src/AllowLists/OpenAllowList.test.ts +40 -0
  84. package/src/AllowLists/OpenAllowList.ts +45 -0
  85. package/src/AllowLists/SimpleAllowList.test.ts +1 -1
  86. package/src/AllowLists/SimpleDenyList.test.ts +1 -1
  87. package/src/AllowLists/SimpleDenyList.ts +6 -9
  88. package/src/BoostCore.ts +19 -0
  89. package/src/Budgets/ManagedBudget.test.ts +70 -7
  90. package/src/Budgets/ManagedBudget.ts +42 -31
  91. package/src/Budgets/SimpleBudget.test.ts +3 -3
  92. package/src/Budgets/SimpleBudget.ts +6 -6
  93. package/src/Budgets/VestingBudget.test.ts +3 -3
  94. package/src/Budgets/VestingBudget.ts +6 -6
  95. package/src/Deployable/DeployableTarget.ts +1 -1
  96. package/src/Incentives/AllowListIncentive.test.ts +1 -1
  97. package/src/Incentives/ERC20VariableIncentive.ts +5 -5
  98. package/src/Validators/SignerValidator.test.ts +1 -1
  99. package/src/errors.ts +160 -20
  100. package/dist/componentInterfaces-DYkaxBda.js.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./BoostRegistry.cjs"),a=require("./BoostCore.cjs"),p=require("./Boost.cjs"),c=require("./Actions/Action.cjs"),o=require("./Actions/EventAction.cjs"),y=require("./AllowLists/AllowList.cjs"),l=require("./AllowLists/SimpleAllowList.cjs"),u=require("./AllowLists/SimpleDenyList.cjs"),A=require("./Budgets/Budget.cjs"),t=require("./Budgets/ManagedBudget.cjs"),m=require("./Deployable/Deployable.cjs"),P=require("./Deployable/Contract.cjs"),S=require("./Deployable/DeployableTarget.cjs"),E=require("./Incentives/AllowListIncentive.cjs"),g=require("./Incentives/CGDAIncentive.cjs"),v=require("./Incentives/ERC20Incentive.cjs"),s=require("./Incentives/Incentive.cjs"),C=require("./Incentives/PointsIncentive.cjs"),n=require("./Validators/SignerValidator.cjs"),I=require("./Validators/Validator.cjs"),e=require("./errors.cjs"),i=require("./utils.cjs"),B=require("./Auth/PassthroughAuth.cjs"),r=require("./generated-wKBNvm48.cjs");exports.BOOST_REGISTRY_ADDRESS=d.BOOST_REGISTRY_ADDRESS;exports.BoostRegistry=d.BoostRegistry;exports.BOOST_CORE_ADDRESS=a.BOOST_CORE_ADDRESS;exports.BOOST_CORE_CLAIM_FEE=a.BOOST_CORE_CLAIM_FEE;exports.BoostCore=a.BoostCore;exports.Boost=p.Boost;exports.prepareBoostPayload=p.prepareBoostPayload;exports.ActionByComponentInterface=c.ActionByComponentInterface;exports.actionFromAddress=c.actionFromAddress;exports.EventAction=o.EventAction;exports.FilterType=o.FilterType;exports.PrimitiveType=o.PrimitiveType;exports.SignatureType=o.SignatureType;exports.isEventActionPayloadSimple=o.isEventActionPayloadSimple;exports.prepareEventActionPayload=o.prepareEventActionPayload;exports.AllowListByComponentInterface=y.AllowListByComponentInterface;exports.allowListFromAddress=y.allowListFromAddress;exports.LIST_MANAGER_ROLE=l.LIST_MANAGER_ROLE;exports.SimpleAllowList=l.SimpleAllowList;exports.prepareSimpleAllowListPayload=l.prepareSimpleAllowListPayload;exports.SimpleDenyList=u.SimpleDenyList;exports.prepareSimpleDenyListPayload=u.prepareSimpleDenyListPayload;exports.BudgetByComponentInterface=A.BudgetByComponentInterface;exports.budgetFromAddress=A.budgetFromAddress;exports.ManagedBudget=t.ManagedBudget;exports.ManagedBudgetRoles=t.ManagedBudgetRoles;exports.isERC1155TransferPayload=t.isERC1155TransferPayload;exports.isFungibleTransfer=t.isFungibleTransfer;exports.prepareManagedBudgetPayload=t.prepareManagedBudgetPayload;exports.prepareTransfer=t.prepareTransfer;exports.Deployable=m.Deployable;exports.Contract=P.Contract;exports.DeployableTarget=S.DeployableTarget;exports.AllowListIncentive=E.AllowListIncentive;exports.prepareAllowListIncentivePayload=E.prepareAllowListIncentivePayload;exports.CGDAIncentive=g.CGDAIncentive;exports.prepareCGDAIncentivePayload=g.prepareCGDAIncentivePayload;exports.ERC20Incentive=v.ERC20Incentive;exports.prepareERC20IncentivePayload=v.prepareERC20IncentivePayload;exports.ERC20VariableIncentive=s.ERC20VariableIncentive;exports.IncentiveByComponentInterface=s.IncentiveByComponentInterface;exports.incentiveFromAddress=s.incentiveFromAddress;exports.PointsIncentive=C.PointsIncentive;exports.preparePointsIncentivePayload=C.preparePointsIncentivePayload;exports.SignerValidator=n.SignerValidator;exports.prepareSignerValidatorClaimDataPayload=n.prepareSignerValidatorClaimDataPayload;exports.prepareSignerValidatorInputParams=n.prepareSignerValidatorInputParams;exports.prepareSignerValidatorPayload=n.prepareSignerValidatorPayload;exports.ValidatorByComponentInterface=I.ValidatorByComponentInterface;exports.validatorFromAddress=I.validatorFromAddress;exports.BoostCoreNoIdentifierEmitted=e.BoostCoreNoIdentifierEmitted;exports.BudgetMustAuthorizeBoostCore=e.BudgetMustAuthorizeBoostCore;exports.ContractAddressRequiredError=e.ContractAddressRequiredError;exports.DeployableAlreadyDeployedError=e.DeployableAlreadyDeployedError;exports.DeployableBuildParametersUnspecifiedError=e.DeployableBuildParametersUnspecifiedError;exports.DeployableMissingPayloadError=e.DeployableMissingPayloadError;exports.DeployableUnknownOwnerProvidedError=e.DeployableUnknownOwnerProvidedError;exports.DeployableWagmiConfigurationRequiredError=e.DeployableWagmiConfigurationRequiredError;exports.EventActionValidationError=e.EventActionValidationError;exports.FieldValueNotComparableError=e.FieldValueNotComparableError;exports.FieldValueUndefinedError=e.FieldValueUndefinedError;exports.IncentiveNotCloneableError=e.IncentiveNotCloneableError;exports.InvalidComponentInterfaceError=e.InvalidComponentInterfaceError;exports.InvalidNumericalCriteriaError=e.InvalidNumericalCriteriaError;exports.MustInitializeBudgetError=e.MustInitializeBudgetError;exports.NoContractAddressUponReceiptError=e.NoContractAddressUponReceiptError;exports.NoEventActionStepsProvidedError=e.NoEventActionStepsProvidedError;exports.TooManyEventActionStepsProvidedError=e.TooManyEventActionStepsProvidedError;exports.UnknownTransferPayloadSupplied=e.UnknownTransferPayloadSupplied;exports.UnrecognizedFilterTypeError=e.UnrecognizedFilterTypeError;exports.RegistryType=i.RegistryType;exports.awaitResult=i.awaitResult;exports.bytes4=i.bytes4;exports.getDeployedContractAddress=i.getDeployedContractAddress;exports.PassthroughAuth=B.PassthroughAuth;exports.allowListIncentiveAbi=r.A;exports.boostCoreAbi=r.c;exports.boostRegistryAbi=r.ee;exports.cgdaIncentiveAbi=r.v;exports.erc20IncentiveAbi=r.f;exports.managedBudgetAbi=r.p;exports.passthroughAuthAbi=r.ze;exports.pointsIncentiveAbi=r.l;exports.signerValidatorAbi=r.M;exports.simpleAllowListAbi=r.T;exports.simpleDenyListAbi=r.S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./BoostRegistry.cjs"),a=require("./BoostCore.cjs"),c=require("./Boost.cjs"),y=require("./Actions/Action.cjs"),o=require("./Actions/EventAction.cjs"),l=require("./AllowLists/AllowList.cjs"),s=require("./AllowLists/SimpleAllowList.cjs"),A=require("./SimpleDenyList-CqT0BMP7.cjs"),u=require("./Budgets/Budget.cjs"),t=require("./Budgets/ManagedBudget.cjs"),m=require("./Deployable/Deployable.cjs"),P=require("./Deployable/Contract.cjs"),S=require("./Deployable/DeployableTarget.cjs"),E=require("./Incentives/AllowListIncentive.cjs"),g=require("./Incentives/CGDAIncentive.cjs"),v=require("./Incentives/ERC20Incentive.cjs"),d=require("./Incentives/Incentive.cjs"),C=require("./Incentives/PointsIncentive.cjs"),i=require("./Validators/SignerValidator.cjs"),I=require("./Validators/Validator.cjs"),e=require("./errors.cjs"),n=require("./utils.cjs"),B=require("./Auth/PassthroughAuth.cjs"),r=require("./generated-wKBNvm48.cjs");exports.BOOST_REGISTRY_ADDRESS=p.BOOST_REGISTRY_ADDRESS;exports.BoostRegistry=p.BoostRegistry;exports.BOOST_CORE_ADDRESS=a.BOOST_CORE_ADDRESS;exports.BOOST_CORE_CLAIM_FEE=a.BOOST_CORE_CLAIM_FEE;exports.BoostCore=a.BoostCore;exports.Boost=c.Boost;exports.prepareBoostPayload=c.prepareBoostPayload;exports.ActionByComponentInterface=y.ActionByComponentInterface;exports.actionFromAddress=y.actionFromAddress;exports.EventAction=o.EventAction;exports.FilterType=o.FilterType;exports.PrimitiveType=o.PrimitiveType;exports.SignatureType=o.SignatureType;exports.isEventActionPayloadSimple=o.isEventActionPayloadSimple;exports.prepareEventActionPayload=o.prepareEventActionPayload;exports.AllowListByComponentInterface=l.AllowListByComponentInterface;exports.OpenAllowList=l.OpenAllowList;exports.allowListFromAddress=l.allowListFromAddress;exports.LIST_MANAGER_ROLE=s.LIST_MANAGER_ROLE;exports.SimpleAllowList=s.SimpleAllowList;exports.prepareSimpleAllowListPayload=s.prepareSimpleAllowListPayload;exports.SimpleDenyList=A.SimpleDenyList;exports.prepareSimpleDenyListPayload=A.prepareSimpleDenyListPayload;exports.BudgetByComponentInterface=u.BudgetByComponentInterface;exports.budgetFromAddress=u.budgetFromAddress;exports.ManagedBudget=t.ManagedBudget;exports.ManagedBudgetRoles=t.ManagedBudgetRoles;exports.isERC1155TransferPayload=t.isERC1155TransferPayload;exports.isFungibleTransfer=t.isFungibleTransfer;exports.prepareManagedBudgetPayload=t.prepareManagedBudgetPayload;exports.prepareTransfer=t.prepareTransfer;exports.Deployable=m.Deployable;exports.Contract=P.Contract;exports.DeployableTarget=S.DeployableTarget;exports.AllowListIncentive=E.AllowListIncentive;exports.prepareAllowListIncentivePayload=E.prepareAllowListIncentivePayload;exports.CGDAIncentive=g.CGDAIncentive;exports.prepareCGDAIncentivePayload=g.prepareCGDAIncentivePayload;exports.ERC20Incentive=v.ERC20Incentive;exports.prepareERC20IncentivePayload=v.prepareERC20IncentivePayload;exports.ERC20VariableIncentive=d.ERC20VariableIncentive;exports.IncentiveByComponentInterface=d.IncentiveByComponentInterface;exports.incentiveFromAddress=d.incentiveFromAddress;exports.PointsIncentive=C.PointsIncentive;exports.preparePointsIncentivePayload=C.preparePointsIncentivePayload;exports.SignerValidator=i.SignerValidator;exports.prepareSignerValidatorClaimDataPayload=i.prepareSignerValidatorClaimDataPayload;exports.prepareSignerValidatorInputParams=i.prepareSignerValidatorInputParams;exports.prepareSignerValidatorPayload=i.prepareSignerValidatorPayload;exports.ValidatorByComponentInterface=I.ValidatorByComponentInterface;exports.validatorFromAddress=I.validatorFromAddress;exports.BoostCoreNoIdentifierEmitted=e.BoostCoreNoIdentifierEmitted;exports.BudgetMustAuthorizeBoostCore=e.BudgetMustAuthorizeBoostCore;exports.ContractAddressRequiredError=e.ContractAddressRequiredError;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.IncentiveNotCloneableError=e.IncentiveNotCloneableError;exports.InvalidComponentInterfaceError=e.InvalidComponentInterfaceError;exports.InvalidNumericalCriteriaError=e.InvalidNumericalCriteriaError;exports.MustInitializeBudgetError=e.MustInitializeBudgetError;exports.NoContractAddressUponReceiptError=e.NoContractAddressUponReceiptError;exports.NoEventActionStepsProvidedError=e.NoEventActionStepsProvidedError;exports.TooManyEventActionStepsProvidedError=e.TooManyEventActionStepsProvidedError;exports.UnknownTransferPayloadSupplied=e.UnknownTransferPayloadSupplied;exports.UnparseableAbiParamError=e.UnparseableAbiParamError;exports.UnrecognizedFilterTypeError=e.UnrecognizedFilterTypeError;exports.RegistryType=n.RegistryType;exports.awaitResult=n.awaitResult;exports.bytes4=n.bytes4;exports.getDeployedContractAddress=n.getDeployedContractAddress;exports.PassthroughAuth=B.PassthroughAuth;exports.allowListIncentiveAbi=r.A;exports.boostCoreAbi=r.c;exports.boostRegistryAbi=r.ee;exports.cgdaIncentiveAbi=r.v;exports.erc20IncentiveAbi=r.f;exports.managedBudgetAbi=r.p;exports.passthroughAuthAbi=r.ze;exports.pointsIncentiveAbi=r.l;exports.signerValidatorAbi=r.M;exports.simpleAllowListAbi=r.T;exports.simpleDenyListAbi=r.S;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,113 +1,117 @@
1
1
  import { BOOST_REGISTRY_ADDRESS as o, BoostRegistry as t } from "./BoostRegistry.js";
2
2
  import { BOOST_CORE_ADDRESS as i, BOOST_CORE_CLAIM_FEE as n, BoostCore as p } from "./BoostCore.js";
3
3
  import { Boost as s, prepareBoostPayload as d } from "./Boost.js";
4
- import { ActionByComponentInterface as A, actionFromAddress as y } from "./Actions/Action.js";
5
- import { EventAction as f, FilterType as E, PrimitiveType as g, SignatureType as v, isEventActionPayloadSimple as I, prepareEventActionPayload as C } from "./Actions/EventAction.js";
6
- import { AllowListByComponentInterface as b, allowListFromAddress as x } from "./AllowLists/AllowList.js";
7
- import { LIST_MANAGER_ROLE as S, SimpleAllowList as B, prepareSimpleAllowListPayload as R } from "./AllowLists/SimpleAllowList.js";
8
- import { SimpleDenyList as T, prepareSimpleDenyListPayload as L } from "./AllowLists/SimpleDenyList.js";
9
- import { BudgetByComponentInterface as F, budgetFromAddress as M } from "./Budgets/Budget.js";
10
- import { ManagedBudget as V, ManagedBudgetRoles as _, isERC1155TransferPayload as h, isFungibleTransfer as N, prepareManagedBudgetPayload as U, prepareTransfer as z } from "./Budgets/ManagedBudget.js";
11
- import { Deployable as k } from "./Deployable/Deployable.js";
12
- import { Contract as W } from "./Deployable/Contract.js";
13
- import { DeployableTarget as j } from "./Deployable/DeployableTarget.js";
14
- import { AllowListIncentive as J, prepareAllowListIncentivePayload as K } from "./Incentives/AllowListIncentive.js";
15
- import { CGDAIncentive as X, prepareCGDAIncentivePayload as Z } from "./Incentives/CGDAIncentive.js";
16
- import { ERC20Incentive as ee, prepareERC20IncentivePayload as re } from "./Incentives/ERC20Incentive.js";
17
- import { ERC20VariableIncentive as te, IncentiveByComponentInterface as ae, incentiveFromAddress as ie } from "./Incentives/Incentive.js";
18
- import { PointsIncentive as pe, preparePointsIncentivePayload as le } from "./Incentives/PointsIncentive.js";
19
- import { SignerValidator as de, prepareSignerValidatorClaimDataPayload as me, prepareSignerValidatorInputParams as Ae, prepareSignerValidatorPayload as ye } from "./Validators/SignerValidator.js";
20
- import { ValidatorByComponentInterface as fe, validatorFromAddress as Ee } from "./Validators/Validator.js";
21
- import { BoostCoreNoIdentifierEmitted as ve, BudgetMustAuthorizeBoostCore as Ie, ContractAddressRequiredError as Ce, DeployableAlreadyDeployedError as ue, DeployableBuildParametersUnspecifiedError as be, DeployableMissingPayloadError as xe, DeployableUnknownOwnerProvidedError as Pe, DeployableWagmiConfigurationRequiredError as Se, EventActionValidationError as Be, FieldValueNotComparableError as Re, FieldValueUndefinedError as De, IncentiveNotCloneableError as Te, InvalidComponentInterfaceError as Le, InvalidNumericalCriteriaError as we, MustInitializeBudgetError as Fe, NoContractAddressUponReceiptError as Me, NoEventActionStepsProvidedError as Oe, TooManyEventActionStepsProvidedError as Ve, UnknownTransferPayloadSupplied as _e, UnrecognizedFilterTypeError as he } from "./errors.js";
22
- import { RegistryType as Ue, awaitResult as ze, bytes4 as Ge, getDeployedContractAddress as ke } from "./utils.js";
23
- import { PassthroughAuth as We } from "./Auth/PassthroughAuth.js";
24
- import { A as je, c as He, e as Je, v as Ke, f as Qe, p as Xe, z as Ze, l as $e, M as er, T as rr, S as or } from "./generated-BDeDiaCK.js";
4
+ import { ActionByComponentInterface as A, actionFromAddress as c } from "./Actions/Action.js";
5
+ import { EventAction as f, FilterType as E, PrimitiveType as g, SignatureType as v, isEventActionPayloadSimple as I, prepareEventActionPayload as b } from "./Actions/EventAction.js";
6
+ import { AllowListByComponentInterface as C, OpenAllowList as P, allowListFromAddress as x } from "./AllowLists/AllowList.js";
7
+ import { LIST_MANAGER_ROLE as B, SimpleAllowList as D, prepareSimpleAllowListPayload as R } from "./AllowLists/SimpleAllowList.js";
8
+ import { S as L, p as w } from "./SimpleDenyList-IJ9Ipya7.js";
9
+ import { BudgetByComponentInterface as M, budgetFromAddress as O } from "./Budgets/Budget.js";
10
+ import { ManagedBudget as _, ManagedBudgetRoles as h, isERC1155TransferPayload as N, isFungibleTransfer as U, prepareManagedBudgetPayload as z, prepareTransfer as G } from "./Budgets/ManagedBudget.js";
11
+ import { Deployable as q } from "./Deployable/Deployable.js";
12
+ import { Contract as Y } from "./Deployable/Contract.js";
13
+ import { DeployableTarget as H } from "./Deployable/DeployableTarget.js";
14
+ import { AllowListIncentive as K, prepareAllowListIncentivePayload as Q } from "./Incentives/AllowListIncentive.js";
15
+ import { CGDAIncentive as Z, prepareCGDAIncentivePayload as $ } from "./Incentives/CGDAIncentive.js";
16
+ import { ERC20Incentive as re, prepareERC20IncentivePayload as oe } from "./Incentives/ERC20Incentive.js";
17
+ import { ERC20VariableIncentive as ae, IncentiveByComponentInterface as ie, incentiveFromAddress as ne } from "./Incentives/Incentive.js";
18
+ import { PointsIncentive as le, preparePointsIncentivePayload as se } from "./Incentives/PointsIncentive.js";
19
+ import { SignerValidator as me, prepareSignerValidatorClaimDataPayload as Ae, prepareSignerValidatorInputParams as ce, prepareSignerValidatorPayload as ye } from "./Validators/SignerValidator.js";
20
+ import { ValidatorByComponentInterface as Ee, validatorFromAddress as ge } from "./Validators/Validator.js";
21
+ import { BoostCoreNoIdentifierEmitted as Ie, BudgetMustAuthorizeBoostCore as be, ContractAddressRequiredError as ue, DecodedArgsMalformedError as Ce, DeployableAlreadyDeployedError as Pe, DeployableBuildParametersUnspecifiedError as xe, DeployableMissingPayloadError as Se, DeployableUnknownOwnerProvidedError as Be, DeployableWagmiConfigurationRequiredError as De, FieldActionValidationError as Re, FieldValueNotComparableError as Te, FieldValueUndefinedError as Le, FunctionDataDecodeError as we, IncentiveNotCloneableError as Fe, InvalidComponentInterfaceError as Me, InvalidNumericalCriteriaError as Oe, MustInitializeBudgetError as Ve, NoContractAddressUponReceiptError as _e, NoEventActionStepsProvidedError as he, TooManyEventActionStepsProvidedError as Ne, UnknownTransferPayloadSupplied as Ue, UnparseableAbiParamError as ze, UnrecognizedFilterTypeError as Ge } from "./errors.js";
22
+ import { RegistryType as qe, awaitResult as We, bytes4 as Ye, getDeployedContractAddress as je } from "./utils.js";
23
+ import { PassthroughAuth as Je } from "./Auth/PassthroughAuth.js";
24
+ import { A as Qe, c as Xe, e as Ze, v as $e, f as er, p as rr, z as or, l as tr, M as ar, T as ir, S as nr } from "./generated-HGddZXHJ.js";
25
25
  export {
26
26
  A as ActionByComponentInterface,
27
- b as AllowListByComponentInterface,
28
- J as AllowListIncentive,
27
+ C as AllowListByComponentInterface,
28
+ K as AllowListIncentive,
29
29
  i as BOOST_CORE_ADDRESS,
30
30
  n as BOOST_CORE_CLAIM_FEE,
31
31
  o as BOOST_REGISTRY_ADDRESS,
32
32
  s as Boost,
33
33
  p as BoostCore,
34
- ve as BoostCoreNoIdentifierEmitted,
34
+ Ie as BoostCoreNoIdentifierEmitted,
35
35
  t as BoostRegistry,
36
- F as BudgetByComponentInterface,
37
- Ie as BudgetMustAuthorizeBoostCore,
38
- X as CGDAIncentive,
39
- W as Contract,
40
- Ce as ContractAddressRequiredError,
41
- k as Deployable,
42
- ue as DeployableAlreadyDeployedError,
43
- be as DeployableBuildParametersUnspecifiedError,
44
- xe as DeployableMissingPayloadError,
45
- j as DeployableTarget,
46
- Pe as DeployableUnknownOwnerProvidedError,
47
- Se as DeployableWagmiConfigurationRequiredError,
48
- ee as ERC20Incentive,
49
- te as ERC20VariableIncentive,
36
+ M as BudgetByComponentInterface,
37
+ be as BudgetMustAuthorizeBoostCore,
38
+ Z as CGDAIncentive,
39
+ Y as Contract,
40
+ ue as ContractAddressRequiredError,
41
+ Ce as DecodedArgsMalformedError,
42
+ q as Deployable,
43
+ Pe as DeployableAlreadyDeployedError,
44
+ xe as DeployableBuildParametersUnspecifiedError,
45
+ Se as DeployableMissingPayloadError,
46
+ H as DeployableTarget,
47
+ Be as DeployableUnknownOwnerProvidedError,
48
+ De as DeployableWagmiConfigurationRequiredError,
49
+ re as ERC20Incentive,
50
+ ae as ERC20VariableIncentive,
50
51
  f as EventAction,
51
- Be as EventActionValidationError,
52
- Re as FieldValueNotComparableError,
53
- De as FieldValueUndefinedError,
52
+ Re as FieldActionValidationError,
53
+ Te as FieldValueNotComparableError,
54
+ Le as FieldValueUndefinedError,
54
55
  E as FilterType,
55
- ae as IncentiveByComponentInterface,
56
- Te as IncentiveNotCloneableError,
57
- Le as InvalidComponentInterfaceError,
58
- we as InvalidNumericalCriteriaError,
59
- S as LIST_MANAGER_ROLE,
60
- V as ManagedBudget,
61
- _ as ManagedBudgetRoles,
62
- Fe as MustInitializeBudgetError,
63
- Me as NoContractAddressUponReceiptError,
64
- Oe as NoEventActionStepsProvidedError,
65
- We as PassthroughAuth,
66
- pe as PointsIncentive,
56
+ we as FunctionDataDecodeError,
57
+ ie as IncentiveByComponentInterface,
58
+ Fe as IncentiveNotCloneableError,
59
+ Me as InvalidComponentInterfaceError,
60
+ Oe as InvalidNumericalCriteriaError,
61
+ B as LIST_MANAGER_ROLE,
62
+ _ as ManagedBudget,
63
+ h as ManagedBudgetRoles,
64
+ Ve as MustInitializeBudgetError,
65
+ _e as NoContractAddressUponReceiptError,
66
+ he as NoEventActionStepsProvidedError,
67
+ P as OpenAllowList,
68
+ Je as PassthroughAuth,
69
+ le as PointsIncentive,
67
70
  g as PrimitiveType,
68
- Ue as RegistryType,
71
+ qe as RegistryType,
69
72
  v as SignatureType,
70
- de as SignerValidator,
71
- B as SimpleAllowList,
72
- T as SimpleDenyList,
73
- Ve as TooManyEventActionStepsProvidedError,
74
- _e as UnknownTransferPayloadSupplied,
75
- he as UnrecognizedFilterTypeError,
76
- fe as ValidatorByComponentInterface,
77
- y as actionFromAddress,
73
+ me as SignerValidator,
74
+ D as SimpleAllowList,
75
+ L as SimpleDenyList,
76
+ Ne as TooManyEventActionStepsProvidedError,
77
+ Ue as UnknownTransferPayloadSupplied,
78
+ ze as UnparseableAbiParamError,
79
+ Ge as UnrecognizedFilterTypeError,
80
+ Ee as ValidatorByComponentInterface,
81
+ c as actionFromAddress,
78
82
  x as allowListFromAddress,
79
- je as allowListIncentiveAbi,
80
- ze as awaitResult,
81
- He as boostCoreAbi,
82
- Je as boostRegistryAbi,
83
- M as budgetFromAddress,
84
- Ge as bytes4,
85
- Ke as cgdaIncentiveAbi,
86
- Qe as erc20IncentiveAbi,
87
- ke as getDeployedContractAddress,
88
- ie as incentiveFromAddress,
89
- h as isERC1155TransferPayload,
83
+ Qe as allowListIncentiveAbi,
84
+ We as awaitResult,
85
+ Xe as boostCoreAbi,
86
+ Ze as boostRegistryAbi,
87
+ O as budgetFromAddress,
88
+ Ye as bytes4,
89
+ $e as cgdaIncentiveAbi,
90
+ er as erc20IncentiveAbi,
91
+ je as getDeployedContractAddress,
92
+ ne as incentiveFromAddress,
93
+ N as isERC1155TransferPayload,
90
94
  I as isEventActionPayloadSimple,
91
- N as isFungibleTransfer,
92
- Xe as managedBudgetAbi,
93
- Ze as passthroughAuthAbi,
94
- $e as pointsIncentiveAbi,
95
- K as prepareAllowListIncentivePayload,
95
+ U as isFungibleTransfer,
96
+ rr as managedBudgetAbi,
97
+ or as passthroughAuthAbi,
98
+ tr as pointsIncentiveAbi,
99
+ Q as prepareAllowListIncentivePayload,
96
100
  d as prepareBoostPayload,
97
- Z as prepareCGDAIncentivePayload,
98
- re as prepareERC20IncentivePayload,
99
- C as prepareEventActionPayload,
100
- U as prepareManagedBudgetPayload,
101
- le as preparePointsIncentivePayload,
102
- me as prepareSignerValidatorClaimDataPayload,
103
- Ae as prepareSignerValidatorInputParams,
101
+ $ as prepareCGDAIncentivePayload,
102
+ oe as prepareERC20IncentivePayload,
103
+ b as prepareEventActionPayload,
104
+ z as prepareManagedBudgetPayload,
105
+ se as preparePointsIncentivePayload,
106
+ Ae as prepareSignerValidatorClaimDataPayload,
107
+ ce as prepareSignerValidatorInputParams,
104
108
  ye as prepareSignerValidatorPayload,
105
109
  R as prepareSimpleAllowListPayload,
106
- L as prepareSimpleDenyListPayload,
107
- z as prepareTransfer,
108
- er as signerValidatorAbi,
109
- rr as simpleAllowListAbi,
110
- or as simpleDenyListAbi,
111
- Ee as validatorFromAddress
110
+ w as prepareSimpleDenyListPayload,
111
+ G as prepareTransfer,
112
+ ar as signerValidatorAbi,
113
+ ir as simpleAllowListAbi,
114
+ nr as simpleDenyListAbi,
115
+ ge as validatorFromAddress
112
116
  };
113
117
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boostxyz/sdk",
3
- "version": "0.0.0-alpha.10",
3
+ "version": "0.0.0-alpha.12",
4
4
  "license": "GPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "files": [
@@ -187,17 +187,21 @@
187
187
  "types": "./dist/Validators/SignerValidator.d.ts"
188
188
  }
189
189
  },
190
- "optionalDependencies": {
191
- "@boostxyz/evm": "0.0.0-alpha.1",
190
+ "dependencies": {
192
191
  "@boostxyz/signatures": "0.0.0-alpha.2"
193
192
  },
193
+ "optionalDependencies": {
194
+ "@boostxyz/signatures": "0.0.0-alpha.2",
195
+ "@boostxyz/evm": "0.0.0-alpha.2"
196
+ },
194
197
  "peerDependencies": {
195
198
  "@wagmi/core": "2",
196
- "viem": "2",
197
- "abitype": "1"
199
+ "abitype": "1",
200
+ "viem": "2"
198
201
  },
199
202
  "scripts": {
200
- "build": "vite build && tsc --build --emitDeclarationOnly --declaration --declarationMap --force",
203
+ "build": "vite build && tsc -p ./tsconfig.build.json --emitDeclarationOnly --declaration --declarationMap",
204
+ "typecheck": "tsc -p ./tsconfig.build.json --noEmit",
201
205
  "lint:ci": "npx biome ci",
202
206
  "lint": "npx biome check",
203
207
  "bench": "vitest bench",
@@ -206,6 +210,6 @@
206
210
  "dev": "vite build --watch",
207
211
  "test": "vitest dev",
208
212
  "test:ci": "CI=true vitest --coverage",
209
- "typedoc": "npx typedoc --sort required-first --sort visibility --sort kind"
213
+ "typedoc": "npx typedoc --tsconfig ./tsconfig.build.json --sort required-first --sort visibility --sort kind"
210
214
  }
211
215
  }
@@ -27,20 +27,24 @@ export function basicErc721TransferAction(
27
27
  actionClaimant: {
28
28
  chainid: 31337,
29
29
  signatureType: SignatureType.EVENT,
30
- signature: selectors['Transfer(address,address,uint256)'] as Hex,
31
- fieldIndex: 2,
30
+ signature: selectors[
31
+ 'Transfer(address indexed,address indexed,uint256 indexed)'
32
+ ] as Hex,
33
+ fieldIndex: 1,
32
34
  targetContract: erc721.assertValidAddress(),
33
35
  },
34
36
  actionSteps: [
35
37
  {
36
38
  chainid: 31337,
37
- signature: selectors['Transfer(address,address,uint256)'] as Hex,
39
+ signature: selectors[
40
+ 'Transfer(address indexed,address indexed,uint256 indexed)'
41
+ ] as Hex,
38
42
  signatureType: SignatureType.EVENT,
39
43
  targetContract: erc721.assertValidAddress(),
40
44
  actionParameter: {
41
45
  filterType: FilterType.EQUAL,
42
46
  fieldType: PrimitiveType.ADDRESS,
43
- fieldIndex: 2,
47
+ fieldIndex: 1,
44
48
  filterData: accounts[1].account,
45
49
  },
46
50
  },
@@ -50,7 +54,7 @@ export function basicErc721TransferAction(
50
54
 
51
55
  export function cloneEventAction(fixtures: Fixtures, erc721: MockERC721) {
52
56
  return function cloneEventAction() {
53
- return fixtures.registry.clone(
57
+ return fixtures.registry.initialize(
54
58
  crypto.randomUUID(),
55
59
  fixtures.core.EventAction(basicErc721TransferAction(erc721)),
56
60
  );
@@ -36,7 +36,7 @@ const mintSelector = toFunctionSelector(
36
36
 
37
37
  function payableContractAction(fixtures: Fixtures, erc20: MockERC20) {
38
38
  return function payableContractAction() {
39
- return fixtures.registry.clone(
39
+ return fixtures.registry.initialize(
40
40
  crypto.randomUUID(),
41
41
  fixtures.core.ContractAction({
42
42
  chainId: BigInt(31_337),
@@ -50,7 +50,7 @@ function payableContractAction(fixtures: Fixtures, erc20: MockERC20) {
50
50
 
51
51
  function nonPayableAction(fixtures: Fixtures, erc20: MockERC20) {
52
52
  return function nonPayableAction() {
53
- return fixtures.registry.clone(
53
+ return fixtures.registry.initialize(
54
54
  crypto.randomUUID(),
55
55
  fixtures.core.ContractAction({
56
56
  chainId: BigInt(31_337),
@@ -64,7 +64,7 @@ function nonPayableAction(fixtures: Fixtures, erc20: MockERC20) {
64
64
 
65
65
  function otherAction(fixtures: Fixtures, erc20: MockERC20) {
66
66
  return function nonPayableAction() {
67
- return fixtures.registry.clone(
67
+ return fixtures.registry.initialize(
68
68
  crypto.randomUUID(),
69
69
  fixtures.core.ContractAction({
70
70
  chainId: BigInt(31_337) + 1n,
@@ -29,7 +29,7 @@ const mintSelector = toFunctionSelector('function mint(address to)');
29
29
 
30
30
  function nonPayableAction(fixtures: Fixtures, erc721: MockERC721) {
31
31
  return function nonPayableAction() {
32
- return fixtures.registry.clone(
32
+ return fixtures.registry.initialize(
33
33
  crypto.randomUUID(),
34
34
  fixtures.core.ERC721MintAction({
35
35
  chainId: BigInt(31_337),