https://github.com/tetcoin/pro-types-node-runtime
Node runtime types for pro!
https://github.com/tetcoin/pro-types-node-runtime
nodejs pro runtime
Last synced: about 6 hours ago
JSON representation
Node runtime types for pro!
- Host: GitHub
- URL: https://github.com/tetcoin/pro-types-node-runtime
- Owner: tetcoin
- License: gpl-3.0
- Created: 2021-01-30T05:19:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-20T20:40:13.000Z (over 4 years ago)
- Last Synced: 2025-03-31T08:44:34.031Z (6 months ago)
- Topics: nodejs, pro, runtime
- Language: Rust
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node runtime types for `pro!`
Defines types for [pro!](https://github.com/tetcoin/pro) smart contracts targeting [Substrate's `node-runtime`](https://github.com/paritytech/substrate/blob/master/bin/node/runtime/src/lib.rs).
Supplies an implementation of the [pro! `EnvTypes` trait](https://github.com/tetcoin/pro/blob/master/core/src/env/types.rs#L128).
See `pro!` [examples](./examples) for usage.
## Requirements
```
rustup component add rust-src --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain stable
cargo install cargo-contract --vers 0.6.1 --force
```## Build
### Runtime Dependencies
```
cargo +nightly build --release
```### pro! Smart Contract
```
cargo +nightly contract build
cargo +nightly contract generate-metadata
```## Test
```
cargo +nightly test
```