You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Silvestr Predko a775c83f10 Change optimization config to most efficient 3 hace 2 años
.github/workflows Add CD pipeline for web-client hace 2 años
common-api Use near-client from crates.io hace 2 años
example Fixed a e2ee issues hace 2 años
web-client Use an ```ApiResponse``` in a client. hace 2 años
.dockerignore Add /pkg to docker ignore hace 2 años
.gitignore Rename js-client to example hace 2 años
Cargo.toml Change optimization config to most efficient 3 hace 2 años
Dockerfile Use near-client from crates.io hace 2 años
README.md Update README accordignly to the changes hace 2 años
docker-compose.yml Update a Docker file for new integration tests hace 2 años

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