Skip to content

JS cookbook (v13) - part 2 #853

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

Merged
merged 2 commits into from
Apr 1, 2024
Merged

JS cookbook (v13) - part 2 #853

merged 2 commits into from
Apr 1, 2024

Conversation

andreibancioiu
Copy link
Contributor

Description of the pull request (what is new / what has changed)

Updating the SDK-JS cookbook, in regards with the upcoming sdk-core v13.

Did you test the changes locally ?

  • yes
  • no

Which category (categories) does this pull request belong to?

  • document new feature
  • update documentation that is not relevant anymore
  • add examples or more information about a component
  • fix grammar issues
  • other

@andreibancioiu andreibancioiu changed the base branch from main to development April 1, 2024 10:55
@andreibancioiu andreibancioiu self-assigned this Apr 1, 2024
@andreibancioiu andreibancioiu marked this pull request as ready for review April 1, 2024 10:56
@popenta popenta self-requested a review April 1, 2024 11:52
## Contract ABIs

A contract's ABI describes the endpoints, data structure and events that a contract exposes.
While contract interactions are possible without the ABI, they are easier to implement when the definitions is available.
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 it should be ...when the definitions are available.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

When creating transactions using `SmartContractTransactionsFactory`, even if the ABI is available and provided,
you can still use `TypedValue` objects as arguments for deployments and interactions.

Even further, you can use mix `TypedValue` objects with plain JavaScript values and objects. For example:
Copy link
Contributor

Choose a reason for hiding this comment

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

either use a mix of TypedValue ... or you can use mixed TypedValue....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@andreibancioiu andreibancioiu merged commit 7424e82 into development Apr 1, 2024
@andreibancioiu andreibancioiu deleted the js-cookbook-04-01 branch April 1, 2024 14:38
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.

3 participants