Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frol/near-web4-demo
https://github.com/frol/near-web4-demo
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/frol/near-web4-demo
- Owner: frol
- Created: 2022-03-30T17:11:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-30T17:20:59.000Z (almost 3 years ago)
- Last Synced: 2024-10-10T20:22:29.870Z (3 months ago)
- Language: Rust
- Size: 1.95 KB
- Stars: 13
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Web4 Demo on NEAR protocol
==========================[Web4](https://web4.near.page) is a gateway to the smart contracts deployed to NEAR protocol.
This demo just shows the minimum viable application that lives on NEAR chain, and thus anyone hosting the gateway can serve all the Web4 projects!
See it live on testnet: https://hello-web4.testnet.page
When you deploy on mainnet, you should be able to use https://ACCOUNT_ID.near.page as your gateway.
## Build
See [near-sdk docs](https://near-sdk.io) for the prerequisites, and then build the contract:
```
$ cargo build --target wasm32-unknown-unknown --release
```## Deploy
Using [near-cli-rs](https://near.cli.rs) you can deploy the contract to your account:
```
$ near-cli add contract-code network testnet account ACCOUNT_ID.testnet contract-file ./target/wasm32-unknown-unknown/release/web4_demo.wasm no-initialize sign-with-keychain
```