@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.
- package/dist/Actions/Action.js +2 -2
- package/dist/Actions/EventAction.cjs +1 -1
- package/dist/Actions/EventAction.cjs.map +1 -1
- package/dist/Actions/EventAction.d.ts +115 -31
- package/dist/Actions/EventAction.d.ts.map +1 -1
- package/dist/Actions/EventAction.js +306 -122
- package/dist/Actions/EventAction.js.map +1 -1
- package/dist/AllowLists/AllowList.cjs +1 -1
- package/dist/AllowLists/AllowList.cjs.map +1 -1
- package/dist/AllowLists/AllowList.d.ts +6 -4
- package/dist/AllowLists/AllowList.d.ts.map +1 -1
- package/dist/AllowLists/AllowList.js +45 -23
- package/dist/AllowLists/AllowList.js.map +1 -1
- package/dist/AllowLists/OpenAllowList.d.ts +240 -0
- package/dist/AllowLists/OpenAllowList.d.ts.map +1 -0
- package/dist/AllowLists/SimpleAllowList.js +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs +1 -1
- package/dist/AllowLists/SimpleDenyList.cjs.map +1 -1
- package/dist/AllowLists/SimpleDenyList.d.ts +2 -2
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -1
- package/dist/AllowLists/SimpleDenyList.js +9 -111
- package/dist/AllowLists/SimpleDenyList.js.map +1 -1
- package/dist/Auth/PassthroughAuth.js +1 -1
- package/dist/BoostCore.cjs +2 -2
- package/dist/BoostCore.cjs.map +1 -1
- package/dist/BoostCore.d.ts +14 -1
- package/dist/BoostCore.d.ts.map +1 -1
- package/dist/BoostCore.js +169 -151
- package/dist/BoostCore.js.map +1 -1
- package/dist/BoostRegistry.js +1 -1
- package/dist/Budgets/Budget.js +2 -2
- package/dist/Budgets/ManagedBudget.cjs +1 -1
- package/dist/Budgets/ManagedBudget.cjs.map +1 -1
- package/dist/Budgets/ManagedBudget.d.ts +29 -27
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -1
- package/dist/Budgets/ManagedBudget.js +78 -77
- package/dist/Budgets/ManagedBudget.js.map +1 -1
- package/dist/Budgets/SimpleBudget.d.ts +6 -6
- package/dist/Budgets/SimpleBudget.d.ts.map +1 -1
- package/dist/Budgets/VestingBudget.d.ts +6 -6
- package/dist/Budgets/VestingBudget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.cjs.map +1 -1
- package/dist/Deployable/DeployableTarget.d.ts +1 -1
- package/dist/Deployable/DeployableTarget.d.ts.map +1 -1
- package/dist/Deployable/DeployableTarget.js +1 -1
- package/dist/Deployable/DeployableTarget.js.map +1 -1
- package/dist/Incentives/AllowListIncentive.cjs +1 -1
- package/dist/Incentives/AllowListIncentive.cjs.map +1 -1
- package/dist/Incentives/AllowListIncentive.js +2 -2
- package/dist/Incentives/CGDAIncentive.js +1 -1
- package/dist/Incentives/ERC20Incentive.js +1 -1
- package/dist/Incentives/ERC20VariableIncentive.d.ts +5 -5
- package/dist/Incentives/Incentive.cjs.map +1 -1
- package/dist/Incentives/Incentive.js +16 -16
- package/dist/Incentives/Incentive.js.map +1 -1
- package/dist/Incentives/PointsIncentive.js +1 -1
- package/dist/SimpleDenyList-CqT0BMP7.cjs +2 -0
- package/dist/SimpleDenyList-CqT0BMP7.cjs.map +1 -0
- package/dist/SimpleDenyList-IJ9Ipya7.js +112 -0
- package/dist/SimpleDenyList-IJ9Ipya7.js.map +1 -0
- package/dist/Validators/SignerValidator.js +1 -1
- package/dist/Validators/Validator.js +2 -2
- package/dist/{componentInterfaces-DYkaxBda.js → componentInterfaces-Cmg8tUxq.js} +5 -5
- package/dist/componentInterfaces-Cmg8tUxq.js.map +1 -0
- package/dist/errors.cjs +1 -1
- package/dist/errors.cjs.map +1 -1
- package/dist/errors.d.ts +116 -20
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +106 -52
- package/dist/errors.js.map +1 -1
- package/dist/{generated-BDeDiaCK.js → generated-HGddZXHJ.js} +21 -21
- package/dist/{generated-BDeDiaCK.js.map → generated-HGddZXHJ.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +95 -91
- package/package.json +11 -7
- package/src/Actions/Action.test.ts +9 -5
- package/src/Actions/ContractAction.test.ts +3 -3
- package/src/Actions/ERC721MintAction.test.ts +1 -1
- package/src/Actions/EventAction.test.ts +527 -99
- package/src/Actions/EventAction.ts +296 -58
- package/src/AllowLists/AllowList.test.ts +2 -2
- package/src/AllowLists/AllowList.ts +5 -3
- package/src/AllowLists/OpenAllowList.test.ts +40 -0
- package/src/AllowLists/OpenAllowList.ts +45 -0
- package/src/AllowLists/SimpleAllowList.test.ts +1 -1
- package/src/AllowLists/SimpleDenyList.test.ts +1 -1
- package/src/AllowLists/SimpleDenyList.ts +6 -9
- package/src/BoostCore.ts +19 -0
- package/src/Budgets/ManagedBudget.test.ts +70 -7
- package/src/Budgets/ManagedBudget.ts +42 -31
- package/src/Budgets/SimpleBudget.test.ts +3 -3
- package/src/Budgets/SimpleBudget.ts +6 -6
- package/src/Budgets/VestingBudget.test.ts +3 -3
- package/src/Budgets/VestingBudget.ts +6 -6
- package/src/Deployable/DeployableTarget.ts +1 -1
- package/src/Incentives/AllowListIncentive.test.ts +1 -1
- package/src/Incentives/ERC20VariableIncentive.ts +5 -5
- package/src/Validators/SignerValidator.test.ts +1 -1
- package/src/errors.ts +160 -20
- 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
|
|
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
|
|
5
|
-
import { EventAction as f, FilterType as E, PrimitiveType as g, SignatureType as v, isEventActionPayloadSimple as I, prepareEventActionPayload as
|
|
6
|
-
import { AllowListByComponentInterface as
|
|
7
|
-
import { LIST_MANAGER_ROLE as
|
|
8
|
-
import {
|
|
9
|
-
import { BudgetByComponentInterface as
|
|
10
|
-
import { ManagedBudget as
|
|
11
|
-
import { Deployable as
|
|
12
|
-
import { Contract as
|
|
13
|
-
import { DeployableTarget as
|
|
14
|
-
import { AllowListIncentive as
|
|
15
|
-
import { CGDAIncentive as
|
|
16
|
-
import { ERC20Incentive as
|
|
17
|
-
import { ERC20VariableIncentive as
|
|
18
|
-
import { PointsIncentive as
|
|
19
|
-
import { SignerValidator as
|
|
20
|
-
import { ValidatorByComponentInterface as
|
|
21
|
-
import { BoostCoreNoIdentifierEmitted as
|
|
22
|
-
import { RegistryType as
|
|
23
|
-
import { PassthroughAuth as
|
|
24
|
-
import { A as
|
|
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
|
-
|
|
28
|
-
|
|
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
|
-
|
|
34
|
+
Ie as BoostCoreNoIdentifierEmitted,
|
|
35
35
|
t as BoostRegistry,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
xe as
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
Re as FieldActionValidationError,
|
|
53
|
+
Te as FieldValueNotComparableError,
|
|
54
|
+
Le as FieldValueUndefinedError,
|
|
54
55
|
E as FilterType,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
_ as
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
-
|
|
71
|
+
qe as RegistryType,
|
|
69
72
|
v as SignatureType,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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.
|
|
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
|
-
"
|
|
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
|
-
"
|
|
197
|
-
"
|
|
199
|
+
"abitype": "1",
|
|
200
|
+
"viem": "2"
|
|
198
201
|
},
|
|
199
202
|
"scripts": {
|
|
200
|
-
"build": "vite build && tsc
|
|
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[
|
|
31
|
-
|
|
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[
|
|
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:
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
32
|
+
return fixtures.registry.initialize(
|
|
33
33
|
crypto.randomUUID(),
|
|
34
34
|
fixtures.core.ERC721MintAction({
|
|
35
35
|
chainId: BigInt(31_337),
|