@ocap/sdk 1.13.11 → 1.13.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -19
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -6,18 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
> Forge Javascript SDK packages all in one
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
## Table of Contents
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
- [Install](#install)
|
|
12
|
+
- [Usage](#usage)
|
|
13
|
+
- [ES5(commonjs)](#es5commonjs)
|
|
14
|
+
- [ES6](#es6)
|
|
15
|
+
- [Util](#util)
|
|
16
|
+
- [Wallet](#wallet)
|
|
17
|
+
- [Message](#message)
|
|
18
|
+
- [Packages Included](#packages-included)
|
|
21
19
|
|
|
22
20
|
## Install
|
|
23
21
|
|
|
@@ -27,7 +25,6 @@ npm i @ocap/sdk
|
|
|
27
25
|
yarn add @ocap/sdk
|
|
28
26
|
```
|
|
29
27
|
|
|
30
|
-
|
|
31
28
|
## Usage
|
|
32
29
|
|
|
33
30
|
### ES5(commonjs)
|
|
@@ -55,7 +52,7 @@ OcapSDK.getChainInfo({ conn: 'beta' }).then(console.log);
|
|
|
55
52
|
OcapSDK.getChainInfo({ conn: 'local' }).then(console.log);
|
|
56
53
|
|
|
57
54
|
// Poke and transfer on test chain
|
|
58
|
-
await OcapSDK.transfer({ to: receiver.
|
|
55
|
+
await OcapSDK.transfer({ to: receiver.address, token: 1, wallet: sender }, { conn: 'test' }).then(console.log);
|
|
59
56
|
```
|
|
60
57
|
|
|
61
58
|
### ES6
|
|
@@ -106,12 +103,11 @@ const message = OcapSDK.Message.createMessage('Transaction', {
|
|
|
106
103
|
console.log(message);
|
|
107
104
|
```
|
|
108
105
|
|
|
109
|
-
|
|
110
106
|
## Packages Included
|
|
111
107
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
108
|
+
- [graphql-client](https://www.npmjs.com/package/@ocap/client), available after `OcapSDK.connect`
|
|
109
|
+
- [grpc-client](https://www.npmjs.com/package/@ocap/grpc-client), available after `OcapSDK.connect`
|
|
110
|
+
- [forge-util](https://www.npmjs.com/package/@ocap/util), available on `OcapSDK.Util`
|
|
111
|
+
- [did-util](https://www.npmjs.com/package/@arcblock/did-util), available on `OcapSDK.Util`
|
|
112
|
+
- [forge-wallet](https://www.npmjs.com/package/@ocap/wallet), available on `OcapSDK.Wallet`
|
|
113
|
+
- [forge-message](https://www.npmjs.com/package/@ocap/message), available on `OcapSDK.Message`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/sdk",
|
|
3
3
|
"description": "Forge javascript SDK packages all-in-one",
|
|
4
|
-
"version": "1.13.
|
|
4
|
+
"version": "1.13.15",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "wangshijun",
|
|
7
7
|
"email": "shijun@arcblock.io",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@arcblock/did-util": "1.13.
|
|
19
|
-
"@ocap/client": "1.13.
|
|
20
|
-
"@ocap/message": "1.13.
|
|
21
|
-
"@ocap/util": "1.13.
|
|
22
|
-
"@ocap/wallet": "1.13.
|
|
18
|
+
"@arcblock/did-util": "1.13.15",
|
|
19
|
+
"@ocap/client": "1.13.15",
|
|
20
|
+
"@ocap/message": "1.13.15",
|
|
21
|
+
"@ocap/util": "1.13.15",
|
|
22
|
+
"@ocap/wallet": "1.13.15",
|
|
23
23
|
"debug": "^4.3.2",
|
|
24
24
|
"react-app-polyfill": "^1.0.1"
|
|
25
25
|
},
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"test": "node tools/jest.js",
|
|
79
79
|
"coverage": "yarn test -- --coverage"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "59cc74fe26cd934c73392b0a8072a1945cbc425a"
|
|
82
82
|
}
|