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

Erdjs interaction examples #268

Merged
merged 6 commits into from
Aug 9, 2021
Merged

Erdjs interaction examples #268

merged 6 commits into from
Aug 9, 2021

Conversation

claudiu725
Copy link
Contributor

@claudiu725 claudiu725 commented Jun 28, 2021

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

Comment on lines +37 to +41
// 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
Copy link
Contributor

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..

Copy link
Contributor Author

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

Comment on lines +45 to +49
// 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
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

see above

Comment on lines 11 to 12
// 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
Copy link
Contributor

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

Copy link
Contributor Author

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.

@claudiu725 claudiu725 requested a review from alyn509 July 28, 2021 15:19
@claudiu725 claudiu725 merged commit db080f7 into master Aug 9, 2021
@claudiu725 claudiu725 deleted the erdjs-interaction branch August 9, 2021 10:48
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