Skip to content

Commit eca42d9

Browse files
committed
chore(sdk): remove omitted interfaces from root export, docs
1 parent 5530a03 commit eca42d9

File tree

5 files changed

+34
-36
lines changed

5 files changed

+34
-36
lines changed

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
>=22

packages/cli/src/commands/deploy.ts

+15-20
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,15 @@ import {
1818
BoostCore,
1919
BoostRegistry,
2020
CGDAIncentive,
21-
ContractAction,
2221
type DeployableOptions,
2322
ERC20Incentive,
2423
ERC20VariableIncentive,
25-
ERC721MintAction,
26-
ERC1155Incentive,
2724
EventAction,
2825
ManagedBudget,
2926
PointsIncentive,
3027
SignerValidator,
3128
SimpleAllowList,
32-
SimpleBudget,
3329
SimpleDenyList,
34-
VestingBudget,
3530
getDeployedContractAddress,
3631
} from '@boostxyz/sdk';
3732
import { createConfig, deployContract } from '@wagmi/core';
@@ -228,12 +223,12 @@ export const deploy: Command<DeployResult> = async function deploy(opts) {
228223
);
229224

230225
const bases = {
231-
ContractAction: class TContractAction extends ContractAction {
232-
public static override base = contractActionBase;
233-
},
234-
ERC721MintAction: class TERC721MintAction extends ERC721MintAction {
235-
public static override base = erc721MintActionBase;
236-
},
226+
// ContractAction: class TContractAction extends ContractAction {
227+
// public static override base = contractActionBase;
228+
// },
229+
// ERC721MintAction: class TERC721MintAction extends ERC721MintAction {
230+
// public static override base = erc721MintActionBase;
231+
// },
237232
EventAction: class TEventAction extends EventAction {
238233
public static override base = eventActionBase;
239234
},
@@ -243,15 +238,15 @@ export const deploy: Command<DeployResult> = async function deploy(opts) {
243238
SimpleDenyList: class TSimpleDenyList extends SimpleDenyList {
244239
public static override base = simpleDenyListBase;
245240
},
246-
SimpleBudget: class TSimpleBudget extends SimpleBudget {
247-
public static override base = simpleBudgetBase;
248-
},
241+
// SimpleBudget: class TSimpleBudget extends SimpleBudget {
242+
// public static override base = simpleBudgetBase;
243+
// },
249244
ManagedBudget: class TSimpleBudget extends ManagedBudget {
250245
public static override base = managedBudgetBase;
251246
},
252-
VestingBudget: class TVestingBudget extends VestingBudget {
253-
public static override base = vestingBudgetBase;
254-
},
247+
// VestingBudget: class TVestingBudget extends VestingBudget {
248+
// public static override base = vestingBudgetBase;
249+
// },
255250
AllowListIncentive: class TAllowListIncentive extends AllowListIncentive {
256251
public static override base = allowListIncentiveBase;
257252
},
@@ -264,9 +259,9 @@ export const deploy: Command<DeployResult> = async function deploy(opts) {
264259
ERC20VariableIncentive: class TERC20VariableIncentive extends ERC20VariableIncentive {
265260
public static override base = erc20VariableIncentiveBase;
266261
},
267-
ERC1155Incentive: class TERC1155Incentive extends ERC1155Incentive {
268-
public static override base = erc1155IncentiveBase;
269-
},
262+
// ERC1155Incentive: class TERC1155Incentive extends ERC1155Incentive {
263+
// public static override base = erc1155IncentiveBase;
264+
// },
270265
PointsIncentive: class TPointsIncentive extends PointsIncentive {
271266
public static override base = pointsIncentiveBase;
272267
},

packages/sdk/src/index.test.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ describe('sdk exports', () => {
99

1010
// interfaces
1111
expect(SDK.PassthroughAuth).toBeDefined();
12-
expect(SDK.ContractAction).toBeDefined();
13-
expect(SDK.ERC721MintAction).toBeDefined();
12+
// expect(SDK.ContractAction).toBeDefined();
13+
// expect(SDK.ERC721MintAction).toBeDefined();
1414
expect(SDK.SimpleAllowList).toBeDefined();
1515
expect(SDK.SimpleDenyList).toBeDefined();
16-
expect(SDK.SimpleBudget).toBeDefined();
17-
expect(SDK.VestingBudget).toBeDefined();
16+
expect(SDK.ManagedBudget).toBeDefined();
17+
// expect(SDK.SimpleBudget).toBeDefined();
18+
// expect(SDK.VestingBudget).toBeDefined();
1819
expect(SDK.AllowListIncentive).toBeDefined();
1920
expect(SDK.CGDAIncentive).toBeDefined();
2021
expect(SDK.ERC20Incentive).toBeDefined();
21-
expect(SDK.ERC1155Incentive).toBeDefined();
22+
// expect(SDK.ERC1155Incentive).toBeDefined();
2223
expect(SDK.PointsIncentive).toBeDefined();
2324
expect(SDK.SignerValidator).toBeDefined();
2425

packages/sdk/src/index.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ export * from './Auth/PassthroughAuth';
1212
// Actions
1313

1414
export * from './Actions/Action';
15-
export * from './Actions/ContractAction';
16-
export * from './Actions/ERC721MintAction';
15+
// export * from './Actions/ContractAction';
16+
// export * from './Actions/ERC721MintAction';
1717
export * from './Actions/EventAction';
1818

1919
// AllowLists
@@ -25,8 +25,9 @@ export * from './AllowLists/SimpleDenyList';
2525
// Budgets
2626

2727
export * from './Budgets/Budget';
28-
export * from './Budgets/SimpleBudget';
29-
export * from './Budgets/VestingBudget';
28+
// export * from './Budgets/SimpleBudget';
29+
// export * from './Budgets/VestingBudget';
30+
export * from './Budgets/ManagedBudget';
3031

3132
// Deployable
3233

@@ -39,7 +40,7 @@ export * from './Deployable/DeployableTarget';
3940
export * from './Incentives/AllowListIncentive';
4041
export * from './Incentives/CGDAIncentive';
4142
export * from './Incentives/ERC20Incentive';
42-
export * from './Incentives/ERC1155Incentive';
43+
// export * from './Incentives/ERC1155Incentive';
4344
export * from './Incentives/Incentive';
4445
export * from './Incentives/PointsIncentive';
4546

packages/sdk/test/helpers.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,21 @@ import {
2929
BoostCore,
3030
type Budget,
3131
CGDAIncentive,
32-
ContractAction,
3332
type CreateBoostPayload,
3433
ERC20Incentive,
3534
ERC20VariableIncentive,
36-
ERC721MintAction,
3735
EventAction,
3836
ManagedBudget,
3937
PointsIncentive,
4038
SignerValidator,
4139
SimpleAllowList,
42-
SimpleBudget,
4340
SimpleDenyList,
44-
VestingBudget,
4541
} from '../src';
42+
import { ContractAction } from '../src/Actions/ContractAction';
43+
import { ERC721MintAction } from '../src/Actions/ERC721MintAction';
4644
import { BoostRegistry } from '../src/BoostRegistry';
4745
import { ManagedBudgetRoles } from '../src/Budgets/ManagedBudget';
46+
import { VestingBudget } from '../src/Budgets/VestingBudget';
4847
import { ERC1155Incentive } from '../src/Incentives/ERC1155Incentive';
4948
import {
5049
type ActionStep,
@@ -54,6 +53,7 @@ import {
5453
SignatureType,
5554
getDeployedContractAddress,
5655
} from '../src/utils';
56+
import { SimpleBudget } from './../src/Budgets/SimpleBudget';
5757
import type { DeployableOptions } from './../src/Deployable/Deployable';
5858
import { MockERC20 } from './MockERC20';
5959
import { MockERC721 } from './MockERC721';
@@ -186,8 +186,8 @@ export async function deployFixtures(
186186
const managedBudgetBase = await getDeployedContractAddress(
187187
config,
188188
deployContract(config, {
189-
abi: SimpleBudgetArtifact.abi,
190-
bytecode: SimpleBudgetArtifact.bytecode as Hex,
189+
abi: ManagedBudgetArtifact.abi,
190+
bytecode: ManagedBudgetArtifact.bytecode as Hex,
191191
account,
192192
}),
193193
);

0 commit comments

Comments
 (0)