ava-labs / avalanche-types-rs

Avalanche primitive types in Rust (experimental)
Other
32 stars 10 forks source link

Allow to fetch all VMs versions from `info.getNodeVersion` #70

Closed Nuttymoon closed 1 year ago

Nuttymoon commented 1 year ago

Currently, the library uses the VmVersions struct to deserialize the vmVersions field of info.getNodeVersion. This struct only supports the 3 VMs of the Primary Network: https://github.com/ava-labs/avalanche-types-rs/blob/6c7603418b9b00d5785c9de4ecf8f93fab6a3542/src/jsonrpc/info.rs#L305-L309

As the number of Subnets/VMs increase, we should be able to parse any number of VMs as a HashMap.