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

Add support for the new view Michelson sections in the michel-codec package #1073

Closed
roxaneletourneau opened this issue Sep 24, 2021 · 0 comments
Assignees
Labels
hangzhou michel-codec Issues related to the @taquito/michel-codec package Michelson 🥸 Related to Michelson language and Taquito's handling of same
Milestone

Comments

@roxaneletourneau
Copy link
Collaborator

roxaneletourneau commented Sep 24, 2021

The Hangzhou protocol brings a new section to the Michelson script called view.

Views are declared at the top level of the script of the contract on which they operate, alongside the contract parameter type, storage type, and code.
Example:

{ parameter nat;
  storage nat;
  code { CAR; NIL operation ; PAIR };
  view "add_v" nat nat { UNPAIR; ADD };
  view "mul_v" nat nat { UNPAIR; MUL };
}

Acceptance criteria:

Additional context
https://github.com/ecadlabs/taquito/blob/master/packages/taquito-michel-codec/src/michelson-types.ts#L165

@roxaneletourneau roxaneletourneau added Michelson 🥸 Related to Michelson language and Taquito's handling of same hangzhou labels Sep 24, 2021
@roxaneletourneau roxaneletourneau added this to the v11 milestone Sep 24, 2021
@jevonearth jevonearth added the michel-codec Issues related to the @taquito/michel-codec package label Sep 28, 2021
@Innkst Innkst changed the title Add support for the new view Michelon sections in the michel-codec package Add support for the new view Michelson sections in the michel-codec package Sep 29, 2021
@ac10n ac10n moved this to Done in Taquito Dev Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hangzhou michel-codec Issues related to the @taquito/michel-codec package Michelson 🥸 Related to Michelson language and Taquito's handling of same
Projects
Status: Done
Development

No branches or pull requests

3 participants