-
Notifications
You must be signed in to change notification settings - Fork 98
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
Erdjs interaction examples #268
Conversation
// Wait a minute first, otherwise you'll get the "cannot claim before deadline" error | ||
// If the claim doesn't return an error - there are two possibilities: | ||
// - the funding failed, and 1.5 EGLD are sent back to both bob and carol | ||
// - it was succesful and alice receives 3 EGLD | ||
// Because the target sum specified on deployment was 2 EGLD, and we have 3 EGLD, the funding should be succesful |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should make a separate section in the docs where you write these stuff..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This info depends on the following example
// Wait a minute first, otherwise you'll get the "cannot claim before deadline" error | ||
// If the claim doesn't return an error - there are two possibilities: | ||
// - the funding failed, and 1.5 MYTOKEN are sent back to both bob and carol | ||
// - it was succesful and alice receives 3 MYTOKEN | ||
// Because the target sum specified on deployment was 2 MYTOKEN, and we have 3 MYTOKEN, the funding should be succesful |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see above
// Deploy a multisig contract with a quorum of 3, but 4 possible signers: alice, bob, carol, dan | ||
// A quorum is the minimum required number of signers in order to be able to perform a proposed action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new notion => write it in the docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This info is already in the readme for this contract. I left a note at the top of this script pointing to that readme.
Added interaction examples for several example smart contracts, as well as for basic ESDT scenarios.
The
erdjs
contract wrapper implementation which enables these examples can be found in: multiversx/mx-sdk-js-core#9