Skip to content

Commit

Permalink
feat(sdk): typedoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sammccord committed Jul 11, 2024
1 parent e162f32 commit d821b08
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ tsconfig.tsbuildinfo
.env*
!.env.sample
cache
docs
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"lefthook": "^1.6.15",
"prettier": "^3.2.5",
"turbo": "^2.0.0",
"typedoc": "^0.26.4",
"typescript": "^5.3.3",
"viem": "^2.9.9",
"vite": "^5.2.13",
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@
"bench:ci": "CI=true vitest bench",
"clean": "rm -rf dist",
"test": "vitest dev",
"test:ci": "CI=true vitest --coverage"
"test:ci": "CI=true vitest --coverage",
"typedoc": "typedoc"
},
"devDependencies": {
"@boostxyz/evm": "workspace:*"
Expand Down
10 changes: 0 additions & 10 deletions packages/sdk/src/BoostCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ export class BoostCore extends Deployable<[Address, Address]> {
let budgetPayload: OnChainBoostPayload['budget'] = zeroAddress;
if (budget.address) {
budgetPayload = budget.address;
console.log(await budget.isAuthorized(coreAddress));
if (!(await budget.isAuthorized(coreAddress))) {
throw new BudgetMustAuthorizeBoostCore(coreAddress);
}
Expand Down Expand Up @@ -286,8 +285,6 @@ export class BoostCore extends Deployable<[Address, Address]> {
}
}

console.log(incentivesPayloads);

const onChainPayload = {
budget: budgetPayload,
action: actionPayload,
Expand All @@ -300,13 +297,6 @@ export class BoostCore extends Deployable<[Address, Address]> {
owner,
};

console.log(onChainPayload);

console.log({
args: [prepareBoostPayload(onChainPayload)],
...this.optionallyAttachAccount(options.account),
});

const boostHash = await boostFactory(options.config, {
args: [prepareBoostPayload(onChainPayload)],
...this.optionallyAttachAccount(options.account),
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/test/MockERC20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export class MockERC20 extends Deployable {
value: bigint,
params?: WriteParams<typeof mockErc20Abi, 'mintPayable'>,
) {
return this.awaitResult(this.mintPayableRaw(address, value, params));
// biome-ignore lint/suspicious/noExplicitAny: this is a mock contract, it's fine
return this.awaitResult(this.mintPayableRaw(address, value, params as any));
}
public async mintPayableRaw(
address: Address,
Expand Down
6 changes: 6 additions & 0 deletions packages/sdk/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
// Comments are supported, like tsconfig.json
"entryPoints": ["./src/index.ts"],
"exclude": ["./test", "./src/**/*.test.ts"],
"out": "docs"
}
90 changes: 89 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d821b08

Please sign in to comment.