Skip to content

Commit a33883b

Browse files
committed
package renaming
1 parent 904f68c commit a33883b

23 files changed

Lines changed: 39 additions & 42 deletions
File renamed without changes.
Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [**@arcblock/node-ocap**](https://github.com/arcblock/node-ocap)
1+
# [**@arcblock/ocap-js**](https://github.com/arcblock/arc-javascript-sdk)
22

33
[![build status](https://img.shields.io/travis/ArcBlock/arc-javascript-sdk.svg)](https://travis-ci.org/ArcBlock/arc-javascript-sdk)
44
[![code coverage](https://img.shields.io/codecov/c/github/ArcBlock/arc-javascript-sdk.svg)](https://codecov.io/gh/ArcBlock/arc-javascript-sdk)
@@ -9,35 +9,35 @@
99

1010
> Node.js SDK for OCAP Service by ArcBlock
1111
12-
1312
## Table of Contents
1413

15-
* [Install](#install)
16-
* [Usage](#usage)
17-
* [Documentation](#documentation)
18-
* [Contributors](#contributors)
19-
* [License](#license)
20-
14+
- [Install](#install)
15+
- [Usage](#usage)
16+
- [Documentation](#documentation)
17+
- [Contributors](#contributors)
18+
- [License](#license)
2119

2220
## Install
2321

2422
```sh
25-
npm install @arcblock/node-ocap
23+
npm install @arcblock/ocap-js
2624
// or
27-
yarn add @arcblock/node-ocap
25+
yarn add @arcblock/ocap-js
2826
```
2927

30-
3128
## Usage
3229

3330
```js
34-
const OcapSDK = require('@arcblock/node-ocap');
31+
const OCAPClient = require('@arcblock/ocap-js');
3532

3633
// init client
37-
const client = new OcapSDK({
34+
const client = new OCAPClient({
3835
httpBaseUrl: 'https://ocap.arcblock.io/api', // we may have multiple hosts in future
3936
socketBaseUrl: ds => `wss://ocap.arcblock.io/api/${ds}/socket`,
4037
dataSource: 'eth', // btc, eth
38+
enableQuery: true,
39+
enableSubscription: true,
40+
enableMutation: true,
4141
});
4242

4343
// list api
@@ -59,21 +59,18 @@ See [docs/example.btc.js](./docs/example.btc.js) for Bitcoin examples.
5959
See [docs/example.eth.js](./docs/example.btc.js) for Ethereum examples.
6060
See [docs/spec.md](./docs/spec.md) for full api support.
6161

62-
6362
## Documentation
6463

65-
* [Bitcoin](./docs/btc.md)
66-
* [Ethereum](./docs/eth.md)
67-
64+
- [Bitcoin](./docs/btc.md)
65+
- [Ethereum](./docs/eth.md)
6866

6967
## Contributors
7068

7169
| Name | Website |
7270
| -------------- | -------------------------- |
7371
| **wangshijun** | <https://ocap.arcblock.io> |
7472

75-
* wangshijun
76-
73+
- wangshijun
7774

7875
## License
7976

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)