Taquito v11.0.1 with Hangzhou support #1196
jevonearth
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
This release of Taquito supports the upcoming Hangzhou protocol. As usual, this version supports the current protocol, Granada, and the next protocol Hangzhou.
We encourage all developers to update their projects to use version Taquito v11 as soon as is practical and absolutely before the Tezos mainnet transition from Granada to Hangzhou.
New features - Hangzhou protocol
@taquito/taquito- Support for the new operation kindregister_global_constanton the contract, batch and estimate APIs Add support for the newregister_global_constantoperation in the taquito/taquito package #1075operations-on-timelockin the local-forging package #1070constantprimitive Add support for the newconstanttype and the new operation kindregister_global_constantin the local-forging package #1077register_global_constantAdd support for the newconstanttype and the new operation kindregister_global_constantin the local-forging package #1077viewand theVIEWinstruction Add support for views in the local-forging package #1074@taquito/michelson-encoder- Support new types related to operations-on-timelock Support new types and instructions related tooperations-on-timelockin the michelson-encoder package #1071@taquito/michel-codecviewand theVIEWinstruction Add support for the newview Michelson sectionsin the michel-codec package #1073New features - General
@taquito/utils- Provide utility to verify signatures Provide Utility for Verifying Signatures #611@taquito/rpc- Support for the RPC endpointcontext/contracts/{contract}/script/normalized. Use the expanded script from the RPC to instantiate contractAbstraction #1114Documentation
Others
@taquito/beacon-wallet- The beacon-sdk is updated to version 2.3.7: https://github.com/airgap-it/beacon-sdk/releases/tag/v2.3.7Important note:
Please note that the
Michelson-Encoderdoes not support the global constant in this current release (11.0.0-beta). The expanded contract scripts need to be used with theMichelson-Encoderuntil further support. This brings the following limitation: only the 'init' property can be used if you want to originate a contract having a global constant in the storage section of its code. Do not use thestorageproperty, which depends on theMichelson-Encoder.Here an example:
@taquito/taquito- Support the new operation kindregister_global_constanton the contract, batch and estimate APIsThe new manager operation
register_global_constanthas been added to the contract, batch, and estimate APIs. This new operation allows users to register Micheline expressions in a global table of constants.A
registerGlobalConstantmethod is available on theContractProviderclass. Avaluerepresenting the Micheline expression to register in its JSON format is required as a parameter. TheregisterGlobalConstantmethod returns an instance ofRegisterGlobalConstantOperationcontaining aglobalConstantHashmember that corresponds to the index(hash) of the newly registered constant.After registering an expression as a global constant, the occurrences of this expression in a smart contract code can be replaced by its corresponding hash, allowing users to originate larger contracts. More details about the new
global constantfeature and examples using the batch API are available on the following documentation page: https://tezostaquito.io/docs/global_constant@taquito/michelson-encoder- Support new types related to operations-on-timelockNew tokens (ChestToken and ChestKeyToken) have been implemented in the Michelson-encoder package to support the new types
chestandchest_keyand allow data conversion between Michelson and js.@taquito/utils- Provide utility to verify signaturesTaquito provides a function named
verifySignaturethat allows verifying signatures of payloads. The function takes a message, a public key, and a signature as parameters and returns a boolean indicating if the signature matches.The crypto library stablelib is used instead of libsodium in order not to drastically increase the bundle size of the
@taquito/utilspackage.Here is an example of use:
@taquito/rpc- Support for the RPC endpointcontext/contracts/{contract}/script/normalizedA new method on the RpcClient named
getNormalizedScriptis available. If global constants are present in the code of a smart contract,getNormalizedScriptreturns the expanded script. In contrast, the global constants are not expanded in the response provided by thegetScriptmethod.Internally in Taquito, the usage of
getScripthas been replaced bygetNormalizedScriptto ensure that all script passed to the Michelson-Encoder won't contain global constant because theMichelson-Encoderdoes not support the global constant in this current release (11.0.0-beta).Preliminary support for Idiazabalnet protocol
This release includes preliminary support for the Idiazabal protocol to allow early testing.
Please note the following:
cost_per_byteis mistakenly set to1000instead of250. Meaning that storage costs are higher than on the precedent testnet until this is fixed in the next I network.Endorsementoperation has new required propertiesslot,roundandblock_payload_hashthat are not yet supported in the@taquito/local-forgingpackage.context/delegates/${address}has new properties that are not yet supported in the@taquito/rpcpackage.What's coming next for Taquito?
We plan to provide abstractions for some of the new Hangzhou features. For example, an addition to the ContractAbstration will allow running on-chain views and an abstraction that will make using the new timelock feature easier.
If you have feature or issue requests, please create an issue on http://github.com/ecadlabs/taquito/issues or join us on the Taquito community support channel on Telegram https://t.me/tezostaquito
This discussion was created from the release Taquito v11.0.1 with Hangzhou support.
All reactions