-
Notifications
You must be signed in to change notification settings - Fork 117
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
fix(michelson-encoder): improvement extract schema #1316
Conversation
ExtractSchema is missing some important details (i.e. there is no distinction between "or" and "pair" types, "option" type is not marked as optional). A new method called "generateSchema" has been implemented and is intended to replace the "ExtractSchema" method. "generateSchema" provides a more accurate and uniform schema representation. BREAKING CHANGE: The schema representation is different between ExtractSchema and generateSchema method. ExtractSchema will be marked as deprecated and the migration to generateSchema will incur breaking change. re #1252, re #1303, re #1304
Deploying with Cloudflare Pages
|
A new deploy preview is available on Netlify at https://a7c8b6fe--tezostaquito.netlify.app |
New packages have been deployed to the preview repository at https://npm.preview.tezostaquito.io/. Published packages:
|
Codecov Report
@@ Coverage Diff @@
## master #1316 +/- ##
==========================================
- Coverage 79.40% 79.33% -0.08%
==========================================
Files 187 188 +1
Lines 9907 10090 +183
Branches 2369 2360 -9
==========================================
+ Hits 7867 8005 +138
- Misses 2030 2075 +45
Partials 10 10
Continue to review full report at Codecov.
|
* added test changes to handle SUB MUTEZ change in michelson * update signature.json to suit test change * add test case detail * added new test for SUB MUTEZ * corrected contract to work on Ithaca * remove console log from test * changes per review * mark some tests as skip until forger supports sub_mutez
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5. - [Release notes](https://github.com/shelljs/shelljs/releases) - [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md) - [Commits](shelljs/shelljs@v0.8.4...v0.8.5) --- updated-dependencies: - dependency-name: shelljs dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]>
New packages have been deployed to the preview repository at https://npm.preview.tezostaquito.io/. Published packages:
|
A new deploy preview is available on Netlify at https://b9a32254--tezostaquito.netlify.app |
chore: update supported versions in SECURITY.md file
Unit tests for generateSchema method
* changes for new op codes * imprive handing for sub_mutez * stabilize * correction per review
…es/taquito-tzip16/shelljs-0.8.5 Bump shelljs from 0.8.4 to 0.8.5 in /packages/taquito-tzip16
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5. - [Release notes](https://github.com/shelljs/shelljs/releases) - [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md) - [Commits](shelljs/shelljs@v0.8.4...v0.8.5) --- updated-dependencies: - dependency-name: shelljs dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5. - [Release notes](https://github.com/shelljs/shelljs/releases) - [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md) - [Commits](shelljs/shelljs@v0.8.4...v0.8.5) --- updated-dependencies: - dependency-name: shelljs dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]>
…s-0.8.5 Bump shelljs from 0.8.4 to 0.8.5
Bip 39 had unneeded translation files increasing the bundle size. fix #1110
…ff-newlines-1.0.3 Bump trim-off-newlines from 1.0.1 to 1.0.3
fix(signer): removed bip39 dependency
Added validation to some packages and updated unit tests, as well as added new error classes
Update setup-node and cache GH actions to their latest versions and fix caching in pipelines
Limit GH Action workflows concurrency
…ests Run Taquito integration tests from public GH runners
ExtractSchema is missing some important details (i.e. there is no distinction between "or" and "pair" types, "option" type is not marked as optional). A new method called "generateSchema" has been implemented and is intended to replace the "ExtractSchema" method. "generateSchema" provides a more accurate and uniform schema representation. BREAKING CHANGE: The schema representation is different between ExtractSchema and generateSchema method. ExtractSchema will be marked as deprecated and the migration to generateSchema will incur breaking change. re #1252, re #1303, re #1304
New packages have been deployed to the preview repository at https://npm.preview.tezostaquito.io/. Published packages:
|
New packages have been deployed to the preview repository at https://npm.preview.tezostaquito.io/. Published packages:
|
A new deploy preview is available on Netlify at https://69f96b8f--tezostaquito.netlify.app |
ExtractSchema
is missing some important details (i.e. there is no distinction between "or" and"pair" types, "option" type is not marked as optional). A new method called
generateSchema
"hasbeen implemented and is intended to replace the
ExtractSchema
method.generateSchema
provides amore accurate and uniform schema representation.
For each token,
generateSchema
returns an object of typeTokenSchema
.TokenSchema
has a property calledschema
which contains information on the schema of the subtoken when applicable.Examples:
The michelson type:
{ prim: 'option', args: [{ prim: 'int' }], annots: [] }
will be represented as follow by thegenerateSchema
method:The michelson type:
{ prim: 'pair', args: [{ prim: 'int', annots: ['test'] }, { prim: 'string', annots: ['test2'] }], }
will be represented as follow by thegenerateSchema
method:The michelson type:
{ prim: 'map', args: [{ prim: 'string' }, { prim: 'int' }], annots: [] }
will be represented as follow by thegenerateSchema
method:BREAKING CHANGE: The schema representation is different between ExtractSchema and generateSchema
method. ExtractSchema will be marked as deprecated and the migration to generateSchema will incur
breaking change.
re #1252, re #1303, re #1304
Thank you for your contribution to Taquito.
Before submitting this PR, please make sure:
Release Note Draft Snippet
If relevant, please write a summary of your change that will be suitable for
inclusion in the Release Notes for the next Taquito release.