CosmWasm / wasmvm

Go bindings to the running cosmwasm contracts with wasmer
Apache License 2.0
169 stars 100 forks source link

Add bindings for the pinned metrics #526

Closed aumetra closed 2 weeks ago

aumetra commented 4 months ago

Add Go FFI bindings for the new pinned metrics. Uses MessagePack as the encoding format for complex types across the boundary.

Follow-up to https://github.com/CosmWasm/cosmwasm/issues/2034

(This is me whipping out my rusty (haha, funny pun) Go skills from around (if not before) Go 1.11)


TODO:

aumetra commented 3 months ago

This PR also adds a Nix flake. I can remove it again if it's not wanted in-tree, I just used it to set up a Go development environment quickly. Installing everything manually would have taken me longer, so a few lines of Nix and a nix develop later made that way quicker

chipshort commented 2 weeks ago

The 2.1.0-rc.1 is released now and merged on main, so this can be updated to that.

aumetra commented 2 weeks ago

@chipshort Rebased on main

aumetra commented 2 weeks ago

Okay, I finally figured it out. I really don't know Go well enough..
Basically, our previous MessagePack library in Go didn't like the new format. But doesn't matter because this new library doesn't care and is actually faster.