Skip to content

Commit

Permalink
chore(sdk): remove omitted interfaces from root export, docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sammccord committed Sep 11, 2024
1 parent 5530a03 commit eca42d9
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 36 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
>=22
35 changes: 15 additions & 20 deletions packages/cli/src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,15 @@ import {
BoostCore,
BoostRegistry,
CGDAIncentive,
ContractAction,
type DeployableOptions,
ERC20Incentive,
ERC20VariableIncentive,
ERC721MintAction,
ERC1155Incentive,
EventAction,
ManagedBudget,
PointsIncentive,
SignerValidator,
SimpleAllowList,
SimpleBudget,
SimpleDenyList,
VestingBudget,
getDeployedContractAddress,
} from '@boostxyz/sdk';
import { createConfig, deployContract } from '@wagmi/core';
Expand Down Expand Up @@ -228,12 +223,12 @@ export const deploy: Command<DeployResult> = async function deploy(opts) {
);

const bases = {
ContractAction: class TContractAction extends ContractAction {
public static override base = contractActionBase;
},
ERC721MintAction: class TERC721MintAction extends ERC721MintAction {
public static override base = erc721MintActionBase;
},
// ContractAction: class TContractAction extends ContractAction {
// public static override base = contractActionBase;
// },
// ERC721MintAction: class TERC721MintAction extends ERC721MintAction {
// public static override base = erc721MintActionBase;
// },
EventAction: class TEventAction extends EventAction {
public static override base = eventActionBase;
},
Expand All @@ -243,15 +238,15 @@ export const deploy: Command<DeployResult> = async function deploy(opts) {
SimpleDenyList: class TSimpleDenyList extends SimpleDenyList {
public static override base = simpleDenyListBase;
},
SimpleBudget: class TSimpleBudget extends SimpleBudget {
public static override base = simpleBudgetBase;
},
// SimpleBudget: class TSimpleBudget extends SimpleBudget {
// public static override base = simpleBudgetBase;
// },
ManagedBudget: class TSimpleBudget extends ManagedBudget {
public static override base = managedBudgetBase;
},
VestingBudget: class TVestingBudget extends VestingBudget {
public static override base = vestingBudgetBase;
},
// VestingBudget: class TVestingBudget extends VestingBudget {
// public static override base = vestingBudgetBase;
// },
AllowListIncentive: class TAllowListIncentive extends AllowListIncentive {
public static override base = allowListIncentiveBase;
},
Expand All @@ -264,9 +259,9 @@ export const deploy: Command<DeployResult> = async function deploy(opts) {
ERC20VariableIncentive: class TERC20VariableIncentive extends ERC20VariableIncentive {
public static override base = erc20VariableIncentiveBase;
},
ERC1155Incentive: class TERC1155Incentive extends ERC1155Incentive {
public static override base = erc1155IncentiveBase;
},
// ERC1155Incentive: class TERC1155Incentive extends ERC1155Incentive {
// public static override base = erc1155IncentiveBase;
// },
PointsIncentive: class TPointsIncentive extends PointsIncentive {
public static override base = pointsIncentiveBase;
},
Expand Down
11 changes: 6 additions & 5 deletions packages/sdk/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ describe('sdk exports', () => {

// interfaces
expect(SDK.PassthroughAuth).toBeDefined();
expect(SDK.ContractAction).toBeDefined();
expect(SDK.ERC721MintAction).toBeDefined();
// expect(SDK.ContractAction).toBeDefined();
// expect(SDK.ERC721MintAction).toBeDefined();
expect(SDK.SimpleAllowList).toBeDefined();
expect(SDK.SimpleDenyList).toBeDefined();
expect(SDK.SimpleBudget).toBeDefined();
expect(SDK.VestingBudget).toBeDefined();
expect(SDK.ManagedBudget).toBeDefined();
// expect(SDK.SimpleBudget).toBeDefined();
// expect(SDK.VestingBudget).toBeDefined();
expect(SDK.AllowListIncentive).toBeDefined();
expect(SDK.CGDAIncentive).toBeDefined();
expect(SDK.ERC20Incentive).toBeDefined();
expect(SDK.ERC1155Incentive).toBeDefined();
// expect(SDK.ERC1155Incentive).toBeDefined();
expect(SDK.PointsIncentive).toBeDefined();
expect(SDK.SignerValidator).toBeDefined();

Expand Down
11 changes: 6 additions & 5 deletions packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export * from './Auth/PassthroughAuth';
// Actions

export * from './Actions/Action';
export * from './Actions/ContractAction';
export * from './Actions/ERC721MintAction';
// export * from './Actions/ContractAction';
// export * from './Actions/ERC721MintAction';
export * from './Actions/EventAction';

// AllowLists
Expand All @@ -25,8 +25,9 @@ export * from './AllowLists/SimpleDenyList';
// Budgets

export * from './Budgets/Budget';
export * from './Budgets/SimpleBudget';
export * from './Budgets/VestingBudget';
// export * from './Budgets/SimpleBudget';
// export * from './Budgets/VestingBudget';
export * from './Budgets/ManagedBudget';

// Deployable

Expand All @@ -39,7 +40,7 @@ export * from './Deployable/DeployableTarget';
export * from './Incentives/AllowListIncentive';
export * from './Incentives/CGDAIncentive';
export * from './Incentives/ERC20Incentive';
export * from './Incentives/ERC1155Incentive';
// export * from './Incentives/ERC1155Incentive';
export * from './Incentives/Incentive';
export * from './Incentives/PointsIncentive';

Expand Down
12 changes: 6 additions & 6 deletions packages/sdk/test/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,21 @@ import {
BoostCore,
type Budget,
CGDAIncentive,
ContractAction,
type CreateBoostPayload,
ERC20Incentive,
ERC20VariableIncentive,
ERC721MintAction,
EventAction,
ManagedBudget,
PointsIncentive,
SignerValidator,
SimpleAllowList,
SimpleBudget,
SimpleDenyList,
VestingBudget,
} from '../src';
import { ContractAction } from '../src/Actions/ContractAction';
import { ERC721MintAction } from '../src/Actions/ERC721MintAction';
import { BoostRegistry } from '../src/BoostRegistry';
import { ManagedBudgetRoles } from '../src/Budgets/ManagedBudget';
import { VestingBudget } from '../src/Budgets/VestingBudget';
import { ERC1155Incentive } from '../src/Incentives/ERC1155Incentive';
import {
type ActionStep,
Expand All @@ -54,6 +53,7 @@ import {
SignatureType,
getDeployedContractAddress,
} from '../src/utils';
import { SimpleBudget } from './../src/Budgets/SimpleBudget';
import type { DeployableOptions } from './../src/Deployable/Deployable';
import { MockERC20 } from './MockERC20';
import { MockERC721 } from './MockERC721';
Expand Down Expand Up @@ -186,8 +186,8 @@ export async function deployFixtures(
const managedBudgetBase = await getDeployedContractAddress(
config,
deployContract(config, {
abi: SimpleBudgetArtifact.abi,
bytecode: SimpleBudgetArtifact.bytecode as Hex,
abi: ManagedBudgetArtifact.abi,
bytecode: ManagedBudgetArtifact.bytecode as Hex,
account,
}),
);
Expand Down

0 comments on commit eca42d9

Please sign in to comment.