Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BOOST-5262] feat(sdk): TransparentBudget implementation #421

Conversation

sammccord
Copy link
Contributor

@sammccord sammccord commented Mar 7, 2025

Description

basic transparent budget implementation
additional BoostCore.createBoost methods to support new creation method
tsdoc, basic boost creation tests
still needs mintlify documentation

💔 Thank you!

topocount and others added 4 commits March 6, 2025 11:25
An owner of a boost deployed from a Transparent budget can clawback the
funds of an active boost, but they must call the interface directly. It
is possible to allow for EIP-712 signed clawbacks submitted by another
address, but it's probably more important to get back to automations
asap.
This library is for testing only and has no direct impact on deployed source
code.
Copy link

changeset-bot bot commented Mar 7, 2025

🦋 Changeset detected

Latest commit: 698846c

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "@boostxyz/test" is specified in the `ignore` option but it is not found in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

@sammccord
Copy link
Contributor Author

Fails
🚫 Please add some non-placeholder details to the PR description.

Generated by 🚫 dangerJS against 668046d

Base automatically changed from kevin/boost-5261-transparent-clawbacks to main March 7, 2025 19:32
@sammccord
Copy link
Contributor Author

Fails
🚫 Please add some non-placeholder details to the PR description.

Generated by 🚫 dangerJS against 668046d

@github-actions github-actions bot added the EVM label Mar 7, 2025
@sammccord
Copy link
Contributor Author

Fails
🚫 Please add some non-placeholder details to the PR description.

Generated by 🚫 dangerJS against c315e65

1 similar comment
@sammccord
Copy link
Contributor Author

Fails
🚫 Please add some non-placeholder details to the PR description.

Generated by 🚫 dangerJS against c315e65

@sammccord
Copy link
Contributor Author

Fails
🚫 Please add some non-placeholder details to the PR description.

Generated by 🚫 dangerJS against ae413e0

export function fundTransparentBudget(
options: DeployableTestOptions,
fixtures: Fixtures,
budget?: ManagedBudget,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
budget?: ManagedBudget,
budget?: TransparentBudget,

// });

return { budget, erc20, erc1155, points } as BudgetFixtures & {
budget: ManagedBudget;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
budget: ManagedBudget;
budget: TransparentBudget;

@mmackz
Copy link
Contributor

mmackz commented Mar 10, 2025

Left some suggested changes to fix the type errors.

@sammccord
Copy link
Contributor Author

Fails
🚫 Please add some non-placeholder details to the PR description.

Generated by 🚫 dangerJS against adee595

@sammccord
Copy link
Contributor Author

Fails
🚫 Please add some non-placeholder details to the PR description.

Generated by 🚫 dangerJS against e3dd750

@sammccord
Copy link
Contributor Author

Fails
🚫 Please add some non-placeholder details to the PR description.

Generated by 🚫 dangerJS against 80327f5

1 similar comment
@sammccord
Copy link
Contributor Author

Fails
🚫 Please add some non-placeholder details to the PR description.

Generated by 🚫 dangerJS against 80327f5

@sammccord
Copy link
Contributor Author

Fails
🚫 Please add some non-placeholder details to the PR description.

Generated by 🚫 dangerJS against 048a839

@@ -0,0 +1,5 @@
---
"@boostxyz/sdk": minor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we also want to open up a changeset against evm?

Copy link
Contributor Author

@sammccord sammccord Mar 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't publish evm so it doesn't really matter, also this pr doesn't alter contract logic

) {
return async function freshTransparentBudget() {
const budget = new fixtures.bases.TransparentBudget(options);
await budget.deploy();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// @ ts-ignore

Copy link
Contributor

@mmackz mmackz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@sammccord sammccord merged commit 836d814 into main Mar 11, 2025
6 checks passed
@sammccord sammccord deleted the sam/boost-5262-sdk-work-to-support-createboost-on-a-transparent-budget branch March 11, 2025 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants