Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Updated views topic #328

Merged
merged 27 commits into from
Apr 11, 2024
Merged

Updated views topic #328

merged 27 commits into from
Apr 11, 2024

Conversation

timothymcmackin
Copy link
Collaborator

@timothymcmackin timothymcmackin commented Feb 16, 2024

Working on a topic on views that would fit with the opentezos organization so we could reuse the content.

Preview: https://docs-staging-git-views-for-opentezos-trili-tech.vercel.app/smart-contracts/views

@timothymcmackin timothymcmackin self-assigned this Feb 16, 2024
Copy link

vercel bot commented Feb 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs-staging ✅ Ready (Inspect) Visit Preview Apr 2, 2024 4:45pm

@timothymcmackin timothymcmackin marked this pull request as ready for review February 23, 2024 16:29
@timothymcmackin timothymcmackin requested a review from a team as a code owner February 23, 2024 16:29
@timothymcmackin timothymcmackin changed the title [wip] Updated views topic Updated views topic Feb 23, 2024
@NicNomadic
Copy link
Collaborator

I would like to leave a new comment on this phrase but I cannot in github:

Because views run synchronously, off-chain users can ask a node to run a view and return the result immediately; this is a convenient way to get information from a smart contract.

In fact, the sync model has nothing to do here. We just want to say that off-chain users can also use them and how:

Off-chain users can also run a view by using the Octez client run view command; this is a convenient way to get information from a smart contract.

@timothymcmackin
Copy link
Collaborator Author

I would like to leave a new comment on this phrase but I cannot in github:

Because views run synchronously, off-chain users can ask a node to run a view and return the result immediately; this is a convenient way to get information from a smart contract.

In fact, the sync model has nothing to do here. We just want to say that off-chain users can also use them and how:

Off-chain users can also run a view by using the Octez client run view command; this is a convenient way to get information from a smart contract.

Updated to:

Off-chain users can run a view without creating a transaction, which is a convenient way to get information from a smart contract. For example, you can use the Octez client run view command to run a view from the command line.

@timothymcmackin timothymcmackin merged commit eab7bd1 into staging Apr 11, 2024
4 checks passed
@timothymcmackin timothymcmackin deleted the views-for-opentezos branch April 11, 2024 18:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants