Skip to content

Commit

Permalink
[ADHOC] chore: sepolia release (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
sammccord authored Sep 10, 2024
2 parents c45183f + 627fbb5 commit 600abef
Show file tree
Hide file tree
Showing 18 changed files with 418 additions and 364 deletions.
6 changes: 4 additions & 2 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"tag": "alpha",
"initialVersions": {
"@boostxyz/evm": "0.0.0-alpha.0",
"@boostxyz/sdk": "0.0.0-alpha.0"
"@boostxyz/sdk": "0.0.0-alpha.0",
"@boostxyz/signatures": "0.0.0-alpha.0"
},
"changesets": [
"mighty-pans-provide",
"polite-jars-lie",
"silent-ants-impress"
"silent-ants-impress",
"witty-beers-melt"
]
}
6 changes: 6 additions & 0 deletions .changeset/witty-beers-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@boostxyz/sdk": patch
"@boostxyz/signatures": patch
---

initial sepolia release, omit unused, unaudited interfaces, release @boostxyz/signatures
35 changes: 5 additions & 30 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "@boostxyz/sdk",
"version": "0.0.0-alpha.2",
"license": "GPL-3.0-or-later",
"private": true,
"type": "module",
"files": ["dist"],
"repository": "https://github.com/rabbitholegg/boost-protocol",
Expand Down Expand Up @@ -93,18 +92,6 @@
"node": "./dist/Actions/Action.js",
"types": "./dist/Actions/Action.d.ts"
},
"./Actions/ContractAction": {
"require": "./dist/Actions/ContractAction.cjs",
"import": "./dist/Actions/ContractAction.js",
"node": "./dist/Actions/ContractAction.js",
"types": "./dist/Actions/ContractAction.d.ts"
},
"./Actions/ERC721MintAction": {
"require": "./dist/Actions/ERC721MintAction.cjs",
"import": "./dist/Actions/ERC721MintAction.js",
"node": "./dist/Actions/ERC721MintAction.js",
"types": "./dist/Actions/ERC721MintAction.d.ts"
},
"./Actions/EventAction": {
"require": "./dist/Actions/EventAction.cjs",
"import": "./dist/Actions/EventAction.js",
Expand Down Expand Up @@ -135,17 +122,11 @@
"node": "./dist/Budgets/Budget.js",
"types": "./dist/Budgets/Budget.d.ts"
},
"./Budgets/SimpleBudget": {
"require": "./dist/Budgets/SimpleBudget.cjs",
"import": "./dist/Budgets/SimpleBudget.js",
"node": "./dist/Budgets/SimpleBudget.js",
"types": "./dist/Budgets/SimpleBudget.d.ts"
},
"./Budgets/VestingBudget": {
"require": "./dist/Budgets/VestingBudget.cjs",
"import": "./dist/Budgets/VestingBudget.js",
"node": "./dist/Budgets/VestingBudget.js",
"types": "./dist/Budgets/VestingBudget.d.ts"
"./Budgets/ManagedBudget": {
"require": "./dist/Budgets/ManagedBudget.cjs",
"import": "./dist/Budgets/ManagedBudget.js",
"node": "./dist/Budgets/ManagedBudget.js",
"types": "./dist/Budgets/ManagedBudget.d.ts"
},
"./Incentives/AllowListIncentive": {
"require": "./dist/Incentives/AllowListIncentive.cjs",
Expand All @@ -165,12 +146,6 @@
"node": "./dist/Incentives/ERC20Incentive.js",
"types": "./dist/Incentives/ERC20Incentive.d.ts"
},
"./Incentives/ERC1155Incentive": {
"require": "./dist/Incentives/ERC1155Incentive.cjs",
"import": "./dist/Incentives/ERC1155Incentive.js",
"node": "./dist/Incentives/ERC1155Incentive.js",
"types": "./dist/Incentives/ERC1155Incentive.d.ts"
},
"./Incentives/Incentive": {
"require": "./dist/Incentives/Incentive.cjs",
"import": "./dist/Incentives/Incentive.js",
Expand Down
25 changes: 12 additions & 13 deletions packages/sdk/src/Actions/Action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,31 @@ import { readContract } from '@wagmi/core';
import type { Address, Hex } from 'viem';
import type { DeployableOptions } from '../Deployable/Deployable';
import { InvalidComponentInterfaceError } from '../errors';
import { ContractAction } from './ContractAction';
import { ERC721MintAction } from './ERC721MintAction';
import { EventAction } from './EventAction';

export { ContractAction, ERC721MintAction };
export {
// ContractAction,
// ERC721MintAction,
EventAction,
};

/**
* A union type representing all valid protocol Action implementations
*
* @export
* @typedef {Action}
*/
export type Action = ContractAction | ERC721MintAction | EventAction;
export type Action = EventAction; // | ContractAction | ERC721MintAction

/**
* A map of Action component interfaces to their constructors.
*
* @type {{ "0x2fae823b": ContractAction; "0xcba21e6c": ERC721MintAction; "0x916b9f6d": EventAction; }}
* @type {{ "0x7687b0ed": EventAction; }}
*/
export const ActionByComponentInterface = {
['0x2fae823b']: ContractAction,
['0xcba21e6c']: ERC721MintAction,
['0x916b9f6d']: EventAction,
// ['0x6c3129aa']: ContractAction,
// ['0x97e083eb']: ERC721MintAction,
['0x7687b0ed']: EventAction,
};

/**
Expand All @@ -35,7 +37,7 @@ export const ActionByComponentInterface = {
* @async
* @param {DeployableOptions} options
* @param {Address} address
* @returns {Promise<ContractAction | ERC721MintAction | EventAction>}
* @returns {Promise<EventAction>}
* @throws {@link InvalidComponentInterfaceError}
*/
export async function actionFromAddress(
Expand All @@ -54,8 +56,5 @@ export async function actionFromAddress(
interfaceId,
);
}
return new Ctor(options, address) as
| ContractAction
| ERC721MintAction
| EventAction;
return new Ctor(options, address);
}
2 changes: 1 addition & 1 deletion packages/sdk/src/Actions/ContractAction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function otherAction(fixtures: Fixtures, erc20: MockERC20) {
};
}

describe('ContractAction', () => {
describe.skip('ContractAction', () => {
beforeEach(async () => {
erc20 = await loadFixture(fundErc20(defaultOptions));
});
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/Actions/ERC721MintAction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function nonPayableAction(fixtures: Fixtures, erc721: MockERC721) {
};
}

describe('ERC721MintAction', () => {
describe.skip('ERC721MintAction', () => {
beforeEach(async () => {
erc721 = await loadFixture(fundErc721(defaultOptions));
});
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/AllowLists/AllowList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export type AllowList = SimpleAllowList | SimpleDenyList;
* @type {{ "0x2bc9016b": SimpleAllowList; "0x9d585f63": SimpleDenyList; }}
*/
export const AllowListByComponentInterface = {
['0x2bc9016b']: SimpleAllowList,
['0x9d585f63']: SimpleDenyList,
['0x8ba1fc24']: SimpleAllowList,
['0x3d30a22c']: SimpleDenyList,
};

/**
Expand Down
Loading

0 comments on commit 600abef

Please sign in to comment.