@agoric/orchestration 0.1.1-dev-caaec05.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);
|
|
@@ -12,10 +12,11 @@ export function provideOrchestration(zcf: ZCF, baggage: Baggage, remotePowers: O
|
|
|
12
12
|
}>;
|
|
13
13
|
vowTools: {
|
|
14
14
|
when: <T, TResult1 = import("@agoric/vow").EUnwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").EUnwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
|
|
15
|
-
watch: <T = any, TResult1 = T, TResult2 = never, C extends any[] = any[]>(specimenP: import("@agoric/vow").
|
|
15
|
+
watch: <T = any, TResult1 = T, TResult2 = never, C extends any[] = any[]>(specimenP: import("@agoric/vow").EVow<T>, watcher?: import("@agoric/vow").Watcher<T, TResult1, TResult2, C> | undefined, ...watcherArgs: C) => import("@agoric/vow").Vow<Exclude<TResult1, void> | Exclude<TResult2, void> extends never ? TResult1 : Exclude<TResult1, void> | Exclude<TResult2, void>>;
|
|
16
16
|
makeVowKit: <T>() => import("@agoric/vow").VowKit<T>;
|
|
17
|
-
allVows: (
|
|
17
|
+
allVows: (maybeVows: import("@agoric/vow").EVow<unknown>[]) => import("@agoric/vow").Vow<any[]>;
|
|
18
18
|
asVow: <T extends unknown>(fn: (...args: any[]) => import("@agoric/vow").Vow<Awaited<T>> | Awaited<T> | import("@agoric/vow").PromiseVow<T>) => import("@agoric/vow").Vow<Awaited<T>>;
|
|
19
|
+
asPromise: import("@agoric/vow").AsPromiseFunction;
|
|
19
20
|
};
|
|
20
21
|
zone: import("@agoric/base-zone").Zone;
|
|
21
22
|
orchestrate<GuestReturn, HostReturn, GuestContext, HostContext, GuestArgs extends any[], HostArgs extends any[]>(durableName: string, hostCtx: HostContext, guestFn: (guestOrc: import("../orchestration-api.js").Orchestrator, guestCtx: GuestContext, ...args: GuestArgs) => Promise<GuestReturn>): (...args: HostArgs) => Promise<HostReturn>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AAwCO,0CALI,GAAG,WACH,OAAO,gBACP,mBAAmB,cACnB,UAAU;;;;;;;;;;;;;;;;;wCAyCV,GAAG
|
|
1
|
+
{"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AAwCO,0CALI,GAAG,WACH,OAAO,gBACP,mBAAmB,cACnB,UAAU;;;;;;;;;;;;;;;;;wCAyCV,GAAG;;;;4PA6BS,GACjB,4CAA4E,GAAG;;;;;;EAFpF;kCArFY;IACZ,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,oBAAoB,CAAC,CAAC;IACvD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;CAC9B;6BAbsB,kBAAkB;gCAFf,gCAAgC;4BAIpC,aAAa;0CACC,eAAe;kCAJX,cAAc;6BAE/B,cAAc"}
|