The @iroha2/data-model
packages contains generated SCALE-definitions for Iroha 2 Data Model.
This version of package targets Iroha 2.0.0-pre-rc.20
.
The packages are published under the @iroha2
scope into Iroha Nexus Registry.
To install data-model
with npm
/pnpm
:
-
Configure your package manager to fetch scoped packages from Nexus Registry.
# FILE: .npmrc @iroha2:registry=https://nexus.iroha.tech/repository/npm-group/
-
Install the
data-model
package:npm i @iroha2/data-model
TODO: write extended usage documentation
In Rust, these structs assume that items are PartialOrd
-ordered while encoding to ensure consistency for signatures creation. The JS library doesn't provide this feature and you should put entries in the correct order by yourself.