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

Funding Treasury #2

Merged
merged 29 commits into from
Oct 13, 2024
Merged

Funding Treasury #2

merged 29 commits into from
Oct 13, 2024

Conversation

keyan-m
Copy link
Owner

@keyan-m keyan-m commented Oct 13, 2024

This PR adds a treasury, meant to be funded by contributors, so that the platform can provide registration free of charge.

The open claim of stale accounts is also removed.

keyan-m added 29 commits August 16, 2024 00:33
The new contract, `treasury`, is meant to serve as a funding solution
supported by contributors.

It allows withdrawal of a single UTxO for each new account. The
off-chain code is meant to build contribution transactions in such a way
that each produced UTxO at treasury will hold enough funds for the 2
UTxOs of an account.

The datums of these UTxOs also hold the addresses of the contributors,
so that the contracts can validate the staking parts of the UTxOs to be
that of the contributors.

`treasury` is still incomplete.
Made possible by the new spend redeemer which only requires the account
UTxO to be present as a reference input.
A separate withdrawal script (called `account_extra`) leads to smaller
account script size, and therefore reduces account spends that don't
update `latest_activity`.
This allows lifting expiration for paid users
@keyan-m keyan-m merged commit 4d71f7c into main Oct 13, 2024
1 check failed
@keyan-m keyan-m deleted the funding-treasury branch October 13, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant