@agoric/orchestration 0.1.1-dev-1d5cb99.0 → 0.1.1-dev-8a52ddd.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/orchestration",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-8a52ddd.0+8a52ddd",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/internal": "0.3.3-dev-
|
|
40
|
-
"@agoric/network": "0.1.1-dev-
|
|
41
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-dev-
|
|
43
|
-
"@agoric/time": "0.3.3-dev-
|
|
44
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
45
|
-
"@agoric/vats": "0.15.2-dev-
|
|
46
|
-
"@agoric/vow": "0.1.1-dev-
|
|
47
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
48
|
-
"@agoric/zone": "0.2.3-dev-
|
|
36
|
+
"@agoric/async-flow": "0.1.1-dev-8a52ddd.0+8a52ddd",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-8a52ddd.0+8a52ddd",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-8a52ddd.0+8a52ddd",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-8a52ddd.0+8a52ddd",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-8a52ddd.0+8a52ddd",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-8a52ddd.0+8a52ddd",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-8a52ddd.0+8a52ddd",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-8a52ddd.0+8a52ddd",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-8a52ddd.0+8a52ddd",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-8a52ddd.0+8a52ddd",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-8a52ddd.0+8a52ddd",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-8a52ddd.0+8a52ddd",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-8a52ddd.0+8a52ddd",
|
|
49
49
|
"@endo/base64": "^1.0.9",
|
|
50
50
|
"@endo/errors": "^1.2.8",
|
|
51
51
|
"@endo/far": "^1.1.9",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@noble/hashes": "^1.5.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
57
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-8a52ddd.0+8a52ddd",
|
|
58
58
|
"@chain-registry/client": "^1.47.4",
|
|
59
59
|
"@cosmjs/amino": "^0.32.3",
|
|
60
60
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"typeCoverage": {
|
|
96
96
|
"atLeast": 97.23
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "8a52dddcda0af5eaedeca94bebcffd88bb8eebae"
|
|
99
99
|
}
|
package/src/exos/chain-hub.js
CHANGED
|
@@ -98,7 +98,7 @@ export const connectionKey = (chainId1, chainId2) => {
|
|
|
98
98
|
*/
|
|
99
99
|
const reverseConnInfo = connInfo => {
|
|
100
100
|
const { transferChannel } = connInfo;
|
|
101
|
-
return {
|
|
101
|
+
return harden({
|
|
102
102
|
id: connInfo.counterparty.connection_id,
|
|
103
103
|
client_id: connInfo.counterparty.client_id,
|
|
104
104
|
counterparty: {
|
|
@@ -113,7 +113,7 @@ const reverseConnInfo = connInfo => {
|
|
|
113
113
|
portId: transferChannel.counterPartyPortId,
|
|
114
114
|
counterPartyPortId: transferChannel.portId,
|
|
115
115
|
},
|
|
116
|
-
};
|
|
116
|
+
});
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain-hub-helper.d.ts","sourceRoot":"","sources":["chain-hub-helper.js"],"names":[],"mappings":"AAcO,kDALI,QAAQ,UACR,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,aAC5B,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,aAC3C,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"chain-hub-helper.d.ts","sourceRoot":"","sources":["chain-hub-helper.js"],"names":[],"mappings":"AAcO,kDALI,QAAQ,UACR,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,aAC5B,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,SAAS,aAC3C,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,GAAG,SAAS,QAyCxE;8BApD+D,aAAa;qCAAb,aAAa;2BAAb,aAAa;iCAAb,aAAa"}
|
|
@@ -18,8 +18,8 @@ export const registerChainsAndAssets = (
|
|
|
18
18
|
chainInfo,
|
|
19
19
|
assetInfo,
|
|
20
20
|
) => {
|
|
21
|
+
console.log('chainHub: registering chains', Object.keys(chainInfo || {}));
|
|
21
22
|
if (!chainInfo) {
|
|
22
|
-
console.log('No chain info provided, returning early.');
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -32,16 +32,17 @@ export const registerChainsAndAssets = (
|
|
|
32
32
|
const registeredPairs = new Set();
|
|
33
33
|
for (const [pChainId, connInfos] of Object.entries(conns)) {
|
|
34
34
|
for (const [cChainId, connInfo] of Object.entries(connInfos)) {
|
|
35
|
-
const pair = [pChainId, cChainId].sort().join('');
|
|
35
|
+
const pair = [pChainId, cChainId].sort().join('<->');
|
|
36
36
|
if (!registeredPairs.has(pair)) {
|
|
37
37
|
chainHub.registerConnection(pChainId, cChainId, connInfo);
|
|
38
38
|
registeredPairs.add(pair);
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
console.log('chainHub: registered connections', [...registeredPairs].sort());
|
|
42
43
|
|
|
44
|
+
console.log('chainHub: registering assets', Object.keys(assetInfo || {}));
|
|
43
45
|
if (!assetInfo) {
|
|
44
|
-
console.log('No asset info provided, returning early.');
|
|
45
46
|
return;
|
|
46
47
|
}
|
|
47
48
|
for (const [denom, info] of Object.entries(assetInfo)) {
|