@agoric/network 0.1.1-dev-6bf6362.0.6bf6362 → 0.1.1-dev-01b8bed.0.01b8bed
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 +7 -1
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -48,7 +48,13 @@ You must also prepare a `ConnectionHandler` object to manage the connection you'
|
|
|
48
48
|
Then you will call the `connect()` method on your local `Port`. This will return a `Promise` that will fire with a new `Connection` object, on which you can send data. Your `ConnectionHandler` will be notified about the new channel, and will receive inbound data from the other side.
|
|
49
49
|
|
|
50
50
|
```js
|
|
51
|
-
|
|
51
|
+
import { encodeIbcEndpoint } from '@agoric/vats/tools/ibc-utils.js';
|
|
52
|
+
const remoteEndpoint = encodeIbcEndpoint({
|
|
53
|
+
hops: [connectionID],
|
|
54
|
+
portID,
|
|
55
|
+
order: 'ordered',
|
|
56
|
+
version
|
|
57
|
+
});;
|
|
52
58
|
E(home.ibcport[0]).connect(remoteEndpoint, connectionHandler)
|
|
53
59
|
.then(conn => doSomethingWithConnection(conn));
|
|
54
60
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/network",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-01b8bed.0.01b8bed",
|
|
4
4
|
"description": "Agoric's network protocol API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"author": "Agoric",
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@agoric/internal": "0.3.3-dev-
|
|
25
|
-
"@agoric/store": "0.9.3-dev-
|
|
26
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
24
|
+
"@agoric/internal": "0.3.3-dev-01b8bed.0.01b8bed",
|
|
25
|
+
"@agoric/store": "0.9.3-dev-01b8bed.0.01b8bed",
|
|
26
|
+
"@agoric/vat-data": "0.5.3-dev-01b8bed.0.01b8bed",
|
|
27
27
|
"@endo/base64": "^1.0.12",
|
|
28
28
|
"@endo/errors": "^1.2.13",
|
|
29
29
|
"@endo/far": "^1.1.14",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"@endo/promise-kit": "^1.1.13"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
36
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
37
|
-
"@agoric/vow": "0.1.1-dev-
|
|
38
|
-
"@agoric/zone": "0.2.3-dev-
|
|
35
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-01b8bed.0.01b8bed",
|
|
36
|
+
"@agoric/swingset-vat": "0.32.3-dev-01b8bed.0.01b8bed",
|
|
37
|
+
"@agoric/vow": "0.1.1-dev-01b8bed.0.01b8bed",
|
|
38
|
+
"@agoric/zone": "0.2.3-dev-01b8bed.0.01b8bed",
|
|
39
39
|
"@endo/bundle-source": "^4.1.2",
|
|
40
40
|
"ava": "^5.3.0",
|
|
41
41
|
"c8": "^10.1.3"
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"typeCoverage": {
|
|
69
69
|
"atLeast": 91.16
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "01b8beda43fafc16d741a066c3195941fe52a015"
|
|
72
72
|
}
|