polkascan / py-substrate-interface

Python Substrate Interface
https://polkascan.github.io/py-substrate-interface/
Apache License 2.0
240 stars 114 forks source link

Support for contracts metadata V2 #168

Closed arjanz closed 2 years ago

arjanz commented 2 years ago

https://github.com/polkadot-js/api/pull/4289

cmichi commented 2 years ago

Hi there, I just want to point out that there is also a metadata V3 now. You can find the (two) changes for V3 described here: https://github.com/paritytech/ink/blob/master/RELEASES.md#metadata-changes.

For V2 there are some more details found here: https://github.com/paritytech/ink/blob/master/RELEASES.md#new-metadata-format.

arjanz commented 2 years ago

Thanks for pointing this out @cmichi, it is still on the todo list, mainly because back then I couldn't find a suitable test node to test this against.. Do you know if there is a branch or fork of Substrate where I can test V2 (and perhaps also V3)? Basically it would be ideal if I had a node I can compile or a websocket endpoint to test the changes

arjanz commented 2 years ago

Ok I obviously didn't read your release notes thoroughly enough.. :) I just successfully created a V3 contract with the latest cargo-contract CLI and deployed on substrate-contracts-node v0.5.0. So I have my test env for V3, which is great. I'll bump this in my todo-list

cmichi commented 2 years ago

Ah nice, that's great to hear!

Not sure if you know, but there are binary releases available for substrate-contracts-node on the releases page. This might help you if you only need to do some basic testing and don't want to wait for the entire compilation to go through ;-).

We also have a testnet, which could come in handy if you need an up-to-date endpoint (here's the polkadot-js link to it).