@agoric/orchestration 0.1.1-dev-8edf902.0 → 0.1.1-dev-0752cec.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-0752cec.0+0752cec",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,20 +33,20 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/assert": "0.6.1-dev-
|
|
37
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
38
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
39
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
40
|
-
"@agoric/internal": "0.3.3-dev-
|
|
41
|
-
"@agoric/network": "0.1.1-dev-
|
|
42
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
43
|
-
"@agoric/store": "0.9.3-dev-
|
|
44
|
-
"@agoric/time": "0.3.3-dev-
|
|
45
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
46
|
-
"@agoric/vats": "0.15.2-dev-
|
|
47
|
-
"@agoric/vow": "0.1.1-dev-
|
|
48
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
49
|
-
"@agoric/zone": "0.2.3-dev-
|
|
36
|
+
"@agoric/assert": "0.6.1-dev-0752cec.0+0752cec",
|
|
37
|
+
"@agoric/async-flow": "0.1.1-dev-0752cec.0+0752cec",
|
|
38
|
+
"@agoric/cosmic-proto": "0.4.1-dev-0752cec.0+0752cec",
|
|
39
|
+
"@agoric/ertp": "0.16.3-dev-0752cec.0+0752cec",
|
|
40
|
+
"@agoric/internal": "0.3.3-dev-0752cec.0+0752cec",
|
|
41
|
+
"@agoric/network": "0.1.1-dev-0752cec.0+0752cec",
|
|
42
|
+
"@agoric/notifier": "0.6.3-dev-0752cec.0+0752cec",
|
|
43
|
+
"@agoric/store": "0.9.3-dev-0752cec.0+0752cec",
|
|
44
|
+
"@agoric/time": "0.3.3-dev-0752cec.0+0752cec",
|
|
45
|
+
"@agoric/vat-data": "0.5.3-dev-0752cec.0+0752cec",
|
|
46
|
+
"@agoric/vats": "0.15.2-dev-0752cec.0+0752cec",
|
|
47
|
+
"@agoric/vow": "0.1.1-dev-0752cec.0+0752cec",
|
|
48
|
+
"@agoric/zoe": "0.26.3-dev-0752cec.0+0752cec",
|
|
49
|
+
"@agoric/zone": "0.2.3-dev-0752cec.0+0752cec",
|
|
50
50
|
"@endo/base64": "^1.0.5",
|
|
51
51
|
"@endo/errors": "^1.2.2",
|
|
52
52
|
"@endo/far": "^1.1.2",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"typeCoverage": {
|
|
92
92
|
"atLeast": 97.1
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "0752cecf484c94c1f596dcf7cb8ffd8429a8381c"
|
|
95
95
|
}
|
|
@@ -12,7 +12,7 @@ import { makeDurableZone } from '@agoric/zone/durable.js';
|
|
|
12
12
|
import { M } from '@endo/patterns';
|
|
13
13
|
import { prepareCosmosOrchestrationAccount } from '../exos/cosmos-orchestration-account.js';
|
|
14
14
|
|
|
15
|
-
const trace = makeTracer('
|
|
15
|
+
const trace = makeTracer('StakeIca');
|
|
16
16
|
/**
|
|
17
17
|
* @import {Baggage} from '@agoric/vat-data';
|
|
18
18
|
* @import {IBCConnectionID} from '@agoric/vats';
|
package/src/utils/packet.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @import {AnyJson, JsonSafe} from '@agoric/cosmic-proto';
|
|
3
|
-
* @import {ResponseQuery} from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
4
3
|
* @import {InterchainAccountPacketData} from '@agoric/cosmic-proto/ibc/applications/interchain_accounts/v1/packet.js';
|
|
5
4
|
* @import {InterchainQueryPacketData} from '@agoric/cosmic-proto/icq/v1/packet.js';
|
|
6
5
|
*/
|
|
@@ -54,5 +53,5 @@ import type { AnyJson } from '@agoric/cosmic-proto';
|
|
|
54
53
|
import { TxBody } from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
55
54
|
import { RequestQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
56
55
|
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
57
|
-
import
|
|
56
|
+
import { ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
58
57
|
//# sourceMappingURL=packet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packet.d.ts","sourceRoot":"","sources":["packet.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"packet.d.ts","sourceRoot":"","sources":["packet.js"],"names":[],"mappings":"AAcA;;;;GAIG;AAEH;;;;;;;;;GASG;AACH,mCALW,OAAO,EAAE,yDAEP,MAAM,CAmBlB;AAGD;;;;;;;;GAQG;AACH,sCAJW,SAAS,YAAY,CAAC,EAAE,GACtB,MAAM,CAgBlB;AAGD;;;;;;;;;;GAUG;AACH,wCALW,MAAM,GACJ,MAAM,CASlB;AAGD;;;;;;;;;;;GAWG;AACH,2CALW,MAAM,GACJ,SAAS,aAAa,CAAC,EAAE,CASrC;6BA/FmC,sBAAsB;uBAdnC,8CAA8C;6BAK9D,+CAA+C;8BASlB,sBAAsB;8BATnD,+CAA+C"}
|
package/src/utils/packet.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Fail } from '@endo/errors';
|
|
2
2
|
import { TxBody } from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
3
3
|
import { Any } from '@agoric/cosmic-proto/google/protobuf/any.js';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
RequestQuery,
|
|
6
|
+
ResponseQuery,
|
|
7
|
+
} from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
5
8
|
import { atob, decodeBase64, encodeBase64 } from '@endo/base64';
|
|
6
9
|
import {
|
|
7
10
|
CosmosQuery,
|
|
@@ -11,7 +14,6 @@ import { Type as PacketType } from '@agoric/cosmic-proto/ibc/applications/interc
|
|
|
11
14
|
|
|
12
15
|
/**
|
|
13
16
|
* @import {AnyJson, JsonSafe} from '@agoric/cosmic-proto';
|
|
14
|
-
* @import {ResponseQuery} from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
15
17
|
* @import {InterchainAccountPacketData} from '@agoric/cosmic-proto/ibc/applications/interchain_accounts/v1/packet.js';
|
|
16
18
|
* @import {InterchainQueryPacketData} from '@agoric/cosmic-proto/icq/v1/packet.js';
|
|
17
19
|
*/
|
|
@@ -105,14 +107,6 @@ export function parseQueryPacket(response) {
|
|
|
105
107
|
const result = parseTxPacket(response);
|
|
106
108
|
const { data } = JSON.parse(atob(result));
|
|
107
109
|
const { responses = [] } = CosmosResponse.decode(decodeBase64(data));
|
|
108
|
-
return harden(
|
|
109
|
-
responses.map(resp => ({
|
|
110
|
-
...resp,
|
|
111
|
-
height: String(resp.index),
|
|
112
|
-
index: String(resp.index),
|
|
113
|
-
key: encodeBase64(resp.key),
|
|
114
|
-
value: encodeBase64(resp.value),
|
|
115
|
-
})),
|
|
116
|
-
);
|
|
110
|
+
return harden(responses.map(ResponseQuery.toJSON));
|
|
117
111
|
}
|
|
118
112
|
harden(parseQueryPacket);
|