├── .gitignore ├── README.md ├── celer_client_linux ├── celer_client_mac └── profile.json /.gitignore: -------------------------------------------------------------------------------- 1 | /celer-hackathon-ropsten/ 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Celer Client 2 | 3 | ## Overview 4 | 5 | This repository provides a prebuilt client binary running a gRPC API server that 6 | enables JavaScript applications to interact with Celer Network in both NodeJS 7 | and browser environments. 8 | 9 | ## Usage 10 | 11 | ``` 12 | ./celer_client_mac -keystore -config -port -allowedorigins 13 | ``` 14 | 15 | Enter the password for the keystore when prompted. Note that a local folder 16 | `celer-hackathon-ropsten` will be created. The folder contains the your 17 | off-chain states that must be preserved for all interactions with Celer Network. 18 | The path of the directory is configurable via the `StoreDir` field in 19 | `profile.json`. 20 | 21 | By default, the web API server will be started at `http://localhost:29979`. 22 | 23 | See the [Celer Web SDK](https://github.com/celer-network/Celer-Web-SDK) for the 24 | JavaScript APIs. 25 | 26 | -------------------------------------------------------------------------------- /celer_client_linux: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/celer-network/celer-client/9b7c707c8f36bbba6b7ab2ba472431fcad619472/celer_client_linux -------------------------------------------------------------------------------- /celer_client_mac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/celer-network/celer-client/9b7c707c8f36bbba6b7ab2ba472431fcad619472/celer_client_mac -------------------------------------------------------------------------------- /profile.json: -------------------------------------------------------------------------------- 1 | { 2 | "ethInstance": "wss://ropsten.infura.io/ws/v3/7b9c142998c444ebb5e30f3608c048b4", 3 | "svrEthAddr": "f805979adde8d63d08490c7c965ee5c1df0aaae2", 4 | "chanAddr": "125d354e99e90fe0764992d1ae0c6146acf50795", 5 | "resolverAddr": "f44339a31f7b80db56151b75f26151c17f459a2a", 6 | "depositPoolAddr": "b255c4f6a8e2ea441f3eefd8370a42f998e00818", 7 | "htlRegistryAddr": "371ec109574ba8208a9d216e07d3a1f04caa054a", 8 | "svrRpc": "osp1-hack-ropsten.celer.app:10000", 9 | "storeDir": "celer-hackathon-ropsten", 10 | "webPort": "", 11 | "wsOrigin": "", 12 | "noBlockDelay": true, 13 | "tokens": [ 14 | { 15 | "name": "GT", 16 | "type": "ERC20", 17 | "contract": "0x2b26f700feb38cdddf7991c0b47d9a3cfc0498b6" 18 | } 19 | ] 20 | } 21 | --------------------------------------------------------------------------------