您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Silvestr Predko a775c83f10 Change optimization config to most efficient 3 2 年前
.github/workflows Add CD pipeline for web-client 2 年前
common-api Use near-client from crates.io 2 年前
example Fixed a e2ee issues 2 年前
web-client Use an ```ApiResponse``` in a client. 2 年前
.dockerignore Add /pkg to docker ignore 2 年前
.gitignore Rename js-client to example 2 年前
Cargo.toml Change optimization config to most efficient 3 2 年前
Dockerfile Use near-client from crates.io 2 年前
README.md Update README accordignly to the changes 2 年前
docker-compose.yml Update a Docker file for new integration tests 2 年前

README.md

Client

CI

Common-API 🦆

Commonly used API among different dependencies. For example key-exchange-server

Web-Client 🦘

Client library for communication from browser and Near blockchain. It’s a high-level API. User doesn’t need to understand how blockchain works.

Usage of web-client library:

Please follow the official instructions to use the latest package.

Build

wasm-pack build web-client --target bundler --out-dir ../pkg

Test

Pre requirements: Clone a key-exchange-server and near-smartcontracts. Deploy their docker instances:

⚠️ Please keep the order(near-smartcontracts depends on the key-exchange-server network)

  1. key-exchange-server: bash docker-compose up -d
  2. near-smartcontracts: bash docker-compose -f docker-compose.yml -f docker-compose.tests.yml up -d

Then:

docker-compose up