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

[docs] More Smart Contract Interaction Examples #398

Merged
merged 7 commits into from
Nov 15, 2024

Conversation

ariady-putra
Copy link
Contributor

@ariady-putra ariady-putra commented Nov 13, 2024

Interact with a Smart Contract

Apply parameters

Added 3 more applying parameters to a smart contract examples on top of the existing 1:

  • 1 param: Int (eg. [10n]) - The existing one
  • 2 params: ByteArray, Bool (eg. [#"...", new Constr(0, [])])
  • 1 param with 1 level Constr (eg. Aiken's OutputReference)
  • 1 param with 2 levels Constr (eg. Plutus' OutputReference)

Redeemer Builder

Add RedeemerBuilder usage example.

Copy link

changeset-bot bot commented Nov 13, 2024

🦋 Changeset detected

Latest commit: 6cbe365

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
docs Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ariady-putra ariady-putra marked this pull request as ready for review November 15, 2024 07:24
@nikhils9 nikhils9 self-requested a review November 15, 2024 09:23
@nikhils9
Copy link
Collaborator

Thank you for adding this much needed doc! I'll expand the RedemerBuilder section further to cover redeemer builder of kind: self which provides index of a script input to its corresponding redeemer (i.e. it's own index) for efficient input finding with list.find(inputs, index).

@nikhils9 nikhils9 closed this Nov 15, 2024
@nikhils9 nikhils9 reopened this Nov 15, 2024
@nikhils9 nikhils9 merged commit 17323e0 into Anastasia-Labs:main Nov 15, 2024
1 check failed
@github-actions github-actions bot mentioned this pull request Nov 15, 2024
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