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

LockerV3: add batch vesting escrow lock creation #25

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

Conversation

docongminh
Copy link

No description provided.

escrow_metadata.name = params.name.clone();
escrow_metadata.description = params.description.clone();
escrow_metadata.creator_email = params.creator_email.clone();
escrow_metadata.recipient_email = params.recipient_email.clone();
Copy link
Collaborator

Choose a reason for hiding this comment

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

We dont need recipient email here because there are many recipients in escrow v3

Copy link
Author

Choose a reason for hiding this comment

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

To reuse VestingEscrowMetadata in this case. Should we use empty string (recipient_email = "") ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

can, you can validate recipient_email == ""

Copy link
Collaborator

Choose a reason for hiding this comment

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

In vesting_escrow_metadata, we don't need recipient_email, but we need an endpoint for merkle_tree_api, that also be string, could you combine recipient_email and merkle_tree_api in a common field, so we can make the endpoint work for both escrow v1 and escrow v3?

Copy link
Author

@docongminh docongminh Jan 19, 2025

Choose a reason for hiding this comment

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

i have updated recipient_endpoint field and make it common for both v1 & v2.

Copy link
Author

Choose a reason for hiding this comment

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

I have removed create_escrow_metadata_v3 and make common function create metadata for both v1 & v2

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