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

Server based allocator #27

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Server based allocator #27

wants to merge 12 commits into from

Conversation

vimageDE
Copy link
Collaborator

@vimageDE vimageDE commented Nov 7, 2024

Introduces a first example allocator contract that focuses on a server-based approach. While a backend would need to keep track of the allocated balances of sponsors, the contract will be used to manage signers, verify signatures of claims and handle attests for transfers. It can also consume nonces on theCompact.

@vimageDE vimageDE requested a review from 0age November 7, 2024 15:14
0age and others added 2 commits November 7, 2024 08:52
merge main into server-based-allocator branch
/// @inheritdoc IServerAllocator
function addSigner(address signer_) external onlyOwner {
if (_containsSigner(signer_)) {
return;
Copy link
Collaborator

Choose a reason for hiding this comment

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

would it make more sense to revert here with a SignerAlreadyAdded error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am personally not a fan of reverting if the expected result was achieved, but that is personal preference.

@vimageDE vimageDE requested a review from 0age December 16, 2024 15:59
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.

2 participants