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

feat(autonomi): support prepaid put operations #2364

Merged
merged 5 commits into from
Oct 31, 2024

Conversation

mickvandijke
Copy link
Contributor

@mickvandijke mickvandijke commented Oct 30, 2024

Allows doing put operations with a Receipt as proof of payment instead of having to pass a Wallet and doing payments on the fly.

This is needed for web3 wallet support and also opens the doors to retrying put operations without having to pay again if we store the receipts somewhere.

You can run an integration test that puts a private file in a vault using receipts with this command (make sure to run a local network):

EVM_NETWORK=local cargo test --package=autonomi --features=local,data,vault,external-signer --test external_signer

@mickvandijke mickvandijke force-pushed the feat-autonomi-prepaid-uploads branch from 91ce57d to fd1f7f6 Compare October 30, 2024 14:51
@mickvandijke mickvandijke force-pushed the feat-autonomi-prepaid-uploads branch from fd1f7f6 to 873fe5b Compare October 30, 2024 14:56
@mickvandijke mickvandijke force-pushed the feat-autonomi-prepaid-uploads branch from 87f7643 to 96b94d6 Compare October 30, 2024 16:43
Copy link
Member

@grumbach grumbach left a comment

Choose a reason for hiding this comment

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

LGTM!

@grumbach grumbach added this pull request to the merge queue Oct 31, 2024
Merged via the queue into maidsafe:main with commit 374e84b Oct 31, 2024
27 checks passed
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