@agoric/orchestration 0.1.1-dev-60cffcf.0 → 0.1.1-dev-cc2bf0b.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 +15 -15
- package/src/examples/stakeAtom.contract.d.ts +2 -1
- package/src/examples/stakeAtom.contract.d.ts.map +1 -1
- package/src/examples/stakeAtom.contract.js +3 -2
- package/src/examples/swapExample.contract.d.ts +7 -7
- package/src/examples/swapExample.contract.d.ts.map +1 -1
- package/src/examples/swapExample.contract.js +9 -8
- package/src/examples/unbondExample.contract.d.ts +6 -7
- package/src/examples/unbondExample.contract.d.ts.map +1 -1
- package/src/examples/unbondExample.contract.js +5 -5
- package/src/facade.d.ts +6 -6
- package/src/facade.d.ts.map +1 -1
- package/src/facade.js +6 -6
- package/src/proposals/start-stakeAtom.d.ts.map +1 -1
- package/src/service.d.ts +5 -16
- package/src/service.d.ts.map +1 -1
- package/src/service.js +2 -1
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-cc2bf0b.0+cc2bf0b",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agoric/assert": "0.6.1-dev-
|
|
35
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
36
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
37
|
-
"@agoric/internal": "0.3.3-dev-
|
|
38
|
-
"@agoric/network": "0.1.1-dev-
|
|
39
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
40
|
-
"@agoric/store": "0.9.3-dev-
|
|
41
|
-
"@agoric/time": "0.3.3-dev-
|
|
42
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
43
|
-
"@agoric/vats": "0.15.2-dev-
|
|
44
|
-
"@agoric/vow": "0.1.1-dev-
|
|
45
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
46
|
-
"@agoric/zone": "0.2.3-dev-
|
|
34
|
+
"@agoric/assert": "0.6.1-dev-cc2bf0b.0+cc2bf0b",
|
|
35
|
+
"@agoric/cosmic-proto": "0.4.1-dev-cc2bf0b.0+cc2bf0b",
|
|
36
|
+
"@agoric/ertp": "0.16.3-dev-cc2bf0b.0+cc2bf0b",
|
|
37
|
+
"@agoric/internal": "0.3.3-dev-cc2bf0b.0+cc2bf0b",
|
|
38
|
+
"@agoric/network": "0.1.1-dev-cc2bf0b.0+cc2bf0b",
|
|
39
|
+
"@agoric/notifier": "0.6.3-dev-cc2bf0b.0+cc2bf0b",
|
|
40
|
+
"@agoric/store": "0.9.3-dev-cc2bf0b.0+cc2bf0b",
|
|
41
|
+
"@agoric/time": "0.3.3-dev-cc2bf0b.0+cc2bf0b",
|
|
42
|
+
"@agoric/vat-data": "0.5.3-dev-cc2bf0b.0+cc2bf0b",
|
|
43
|
+
"@agoric/vats": "0.15.2-dev-cc2bf0b.0+cc2bf0b",
|
|
44
|
+
"@agoric/vow": "0.1.1-dev-cc2bf0b.0+cc2bf0b",
|
|
45
|
+
"@agoric/zoe": "0.26.3-dev-cc2bf0b.0+cc2bf0b",
|
|
46
|
+
"@agoric/zone": "0.2.3-dev-cc2bf0b.0+cc2bf0b",
|
|
47
47
|
"@endo/base64": "^1.0.5",
|
|
48
48
|
"@endo/far": "^1.1.2",
|
|
49
49
|
"@endo/marshal": "^1.5.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"typeCoverage": {
|
|
86
86
|
"atLeast": 97.38
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "cc2bf0bb431aa64c601628f53cf191fcc84c5750"
|
|
89
89
|
}
|
|
@@ -3,7 +3,7 @@ export namespace meta {
|
|
|
3
3
|
export let orchestration: import("@endo/patterns").Matcher;
|
|
4
4
|
export { StorageNodeShape as storageNode };
|
|
5
5
|
export let marshaller: import("@endo/patterns").Matcher;
|
|
6
|
-
export
|
|
6
|
+
export { TimerServiceShape as timer };
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
export namespace privateArgsShape { }
|
|
@@ -79,6 +79,7 @@ export type StakeAtomTerms = {
|
|
|
79
79
|
};
|
|
80
80
|
export type StakeAtomSF = typeof start;
|
|
81
81
|
import { StorageNodeShape } from '@agoric/internal';
|
|
82
|
+
import { TimerServiceShape } from '@agoric/time';
|
|
82
83
|
import type { TimerService } from '@agoric/time';
|
|
83
84
|
import type { Baggage } from '@agoric/vat-data';
|
|
84
85
|
//# sourceMappingURL=stakeAtom.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stakeAtom.contract.d.ts","sourceRoot":"","sources":["stakeAtom.contract.js"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"stakeAtom.contract.d.ts","sourceRoot":"","sources":["stakeAtom.contract.js"],"names":[],"mappings":";;;;;;;;;AAkDO,2BATI,GAAG,CAAC,cAAc,CAAC;;;;;;;;;iBAGb,WAAW;gBACZ,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+FAiF6/G,OAAO,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;GAHniH;;;;eAxFc,MAAM;;0BA0FP,OAAO,KAAK;iCAzHmB,kBAAkB;kCAC7B,cAAc;kCAYf,cAAc;6BAFnB,kBAAkB"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { makeTracer, StorageNodeShape } from '@agoric/internal';
|
|
6
|
+
import { TimerServiceShape } from '@agoric/time';
|
|
6
7
|
import { V as E } from '@agoric/vow/vat.js';
|
|
7
8
|
import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport';
|
|
8
9
|
import { InvitationShape } from '@agoric/zoe/src/typeGuards.js';
|
|
@@ -22,8 +23,8 @@ export const meta = harden({
|
|
|
22
23
|
privateArgsShape: {
|
|
23
24
|
orchestration: M.remotable('orchestration'),
|
|
24
25
|
storageNode: StorageNodeShape,
|
|
25
|
-
marshaller: M.remotable('
|
|
26
|
-
timer:
|
|
26
|
+
marshaller: M.remotable('marshaller'),
|
|
27
|
+
timer: TimerServiceShape,
|
|
27
28
|
},
|
|
28
29
|
});
|
|
29
30
|
export const privateArgsShape = meta.privateArgsShape;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @import {Orchestrator, IcaAccount, CosmosValidatorAddress} from '../types.js'
|
|
3
3
|
* @import {TimerService} from '@agoric/time';
|
|
4
4
|
* @import {LocalChain} from '@agoric/vats/src/localchain.js';
|
|
5
|
-
* @import {
|
|
5
|
+
* @import {Remote} from '@agoric/internal';
|
|
6
6
|
* @import {OrchestrationService} from '../service.js';
|
|
7
7
|
* @import {Zone} from '@agoric/zone';
|
|
8
8
|
*/
|
|
@@ -13,7 +13,7 @@ export function makeNatAmountShape(brand: Brand, min?: bigint | undefined): {
|
|
|
13
13
|
value: import("@endo/patterns").Matcher;
|
|
14
14
|
};
|
|
15
15
|
export function start(zcf: ZCF, privateArgs: {
|
|
16
|
-
localchain:
|
|
16
|
+
localchain: Remote<import("@endo/exo").Guarded<{
|
|
17
17
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
18
18
|
getAddress(): Promise<string>;
|
|
19
19
|
getBalance(brand: Brand<"nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
@@ -33,16 +33,16 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
33
33
|
};
|
|
34
34
|
}[]>;
|
|
35
35
|
}>>;
|
|
36
|
-
orchestrationService:
|
|
36
|
+
orchestrationService: Remote<import("@endo/exo").Guarded<{
|
|
37
37
|
makeAccount(hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<IcaAccount>;
|
|
38
38
|
provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
|
|
39
39
|
getLocalAddress(): `/ibc-port/${string}`;
|
|
40
40
|
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
41
41
|
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").Base64Any<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
42
42
|
}>>;
|
|
43
|
-
}
|
|
44
|
-
storageNode:
|
|
45
|
-
timerService:
|
|
43
|
+
}>> | null;
|
|
44
|
+
storageNode: Remote<globalThis.StorageNode>;
|
|
45
|
+
timerService: Remote<TimerService> | null;
|
|
46
46
|
zone: Zone;
|
|
47
47
|
}): Promise<{
|
|
48
48
|
publicFacet: {
|
|
@@ -57,7 +57,7 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
57
57
|
}>>;
|
|
58
58
|
}>;
|
|
59
59
|
}>;
|
|
60
|
-
import type {
|
|
60
|
+
import type { Remote } from '@agoric/internal';
|
|
61
61
|
import type { IcaAccount } from '../types.js';
|
|
62
62
|
import type { TimerService } from '@agoric/time';
|
|
63
63
|
import type { Zone } from '@agoric/zone';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"AASA;;;;;;;GAOG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAUrB;AASK,0CAHI,KAAK;;;EAIsC;AAY/C,2BATI,GAAG;;;;8BAEW,MAAM,KAC9B,CAAC;6BAeE,QAAG,KACJ,CAAC,mBACW,OACV;6BAaqC,OAAO,KAEhD,CAAC;;;2BAc0B,EAAE;;uBAqCwtC,OAAO,sBAAsB,EAAE,SAAS;;;4BAAyqB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;oBA9Dr8D,MAAM,CAAC,KAAK,CAAC;;;;;oBAAb,MAAM,CAAC,KAAK,CAAC;;;;GA6DxD;4BAlHwB,kBAAkB;gCAHwB,aAAa;kCACjD,cAAc;0BAItB,cAAc;4CAL8B,aAAa"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { StorageNodeShape } from '@agoric/internal';
|
|
2
|
+
import { TimerServiceShape } from '@agoric/time';
|
|
2
3
|
import { withdrawFromSeat } from '@agoric/zoe/src/contractSupport/zoeHelpers.js';
|
|
3
4
|
import { Far } from '@endo/far';
|
|
4
5
|
import { deeplyFulfilled } from '@endo/marshal';
|
|
@@ -10,7 +11,7 @@ import { orcUtils } from '../utils/orc.js';
|
|
|
10
11
|
* @import {Orchestrator, IcaAccount, CosmosValidatorAddress} from '../types.js'
|
|
11
12
|
* @import {TimerService} from '@agoric/time';
|
|
12
13
|
* @import {LocalChain} from '@agoric/vats/src/localchain.js';
|
|
13
|
-
* @import {
|
|
14
|
+
* @import {Remote} from '@agoric/internal';
|
|
14
15
|
* @import {OrchestrationService} from '../service.js';
|
|
15
16
|
* @import {Zone} from '@agoric/zone';
|
|
16
17
|
*/
|
|
@@ -18,10 +19,10 @@ import { orcUtils } from '../utils/orc.js';
|
|
|
18
19
|
/** @type {ContractMeta} */
|
|
19
20
|
export const meta = {
|
|
20
21
|
privateArgsShape: {
|
|
21
|
-
localchain: M.
|
|
22
|
-
orchestrationService: M.
|
|
22
|
+
localchain: M.remotable('localchain'),
|
|
23
|
+
orchestrationService: M.or(M.remotable('orchestration'), null),
|
|
23
24
|
storageNode: StorageNodeShape,
|
|
24
|
-
timerService: M.
|
|
25
|
+
timerService: M.or(TimerServiceShape, null),
|
|
25
26
|
zone: M.any(),
|
|
26
27
|
},
|
|
27
28
|
upgradability: 'canUpgrade',
|
|
@@ -40,10 +41,10 @@ export const makeNatAmountShape = (brand, min) =>
|
|
|
40
41
|
/**
|
|
41
42
|
* @param {ZCF} zcf
|
|
42
43
|
* @param {{
|
|
43
|
-
* localchain:
|
|
44
|
-
* orchestrationService:
|
|
45
|
-
* storageNode:
|
|
46
|
-
* timerService:
|
|
44
|
+
* localchain: Remote<LocalChain>;
|
|
45
|
+
* orchestrationService: Remote<OrchestrationService> | null;
|
|
46
|
+
* storageNode: Remote<StorageNode>;
|
|
47
|
+
* timerService: Remote<TimerService> | null;
|
|
47
48
|
* zone: Zone;
|
|
48
49
|
* }} privateArgs
|
|
49
50
|
*/
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export function start(zcf: ZCF, privateArgs: {
|
|
2
|
-
localchain:
|
|
2
|
+
localchain: Remote<import("@endo/exo").Guarded<{
|
|
3
3
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
4
4
|
getAddress(): Promise<string>;
|
|
5
|
-
getBalance(brand: Brand
|
|
6
|
-
"nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
5
|
+
getBalance(brand: Brand<"nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
7
6
|
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): Promise<globalThis.Amount>;
|
|
8
7
|
withdraw(amount: Amount<"nat">): Promise<globalThis.Payment<"nat">>;
|
|
9
8
|
executeTx<MT extends {
|
|
@@ -20,7 +19,7 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
20
19
|
};
|
|
21
20
|
}[]>;
|
|
22
21
|
}>>;
|
|
23
|
-
orchestrationService:
|
|
22
|
+
orchestrationService: Remote<import("@endo/exo").Guarded<{
|
|
24
23
|
makeAccount(hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<IcaAccount>;
|
|
25
24
|
provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
|
|
26
25
|
getLocalAddress(): `/ibc-port/${string}`;
|
|
@@ -28,8 +27,8 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
28
27
|
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").Base64Any<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
29
28
|
}>>;
|
|
30
29
|
}>>;
|
|
31
|
-
storageNode:
|
|
32
|
-
timerService:
|
|
30
|
+
storageNode: Remote<globalThis.StorageNode>;
|
|
31
|
+
timerService: Remote<TimerService>;
|
|
33
32
|
zone: Zone;
|
|
34
33
|
}): Promise<{
|
|
35
34
|
publicFacet: {
|
|
@@ -38,7 +37,7 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
38
37
|
makeUnbondAndLiquidStakeInvitation: () => Promise<Invitation<unknown, never>>;
|
|
39
38
|
}>;
|
|
40
39
|
}>;
|
|
41
|
-
import type {
|
|
40
|
+
import type { Remote } from '@agoric/internal';
|
|
42
41
|
import type { IcaAccount } from '../types.js';
|
|
43
42
|
import type { TimerService } from '@agoric/time';
|
|
44
43
|
import type { Zone } from '@agoric/zone';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unbondExample.contract.d.ts","sourceRoot":"","sources":["unbondExample.contract.js"],"names":[],"mappings":"AAuBO,2BATI,GAAG;;;;
|
|
1
|
+
{"version":3,"file":"unbondExample.contract.d.ts","sourceRoot":"","sources":["unbondExample.contract.js"],"names":[],"mappings":"AAuBO,2BATI,GAAG;;;;8BA8B6C,MAAM,KAAK,CAAC;6BAUjE,QAAC,KAAK,CAAC,mBAA2B,OAAO;6BAiBjB,OAAQ,KAAI,CAAC;;;2BAa4O,EAAE;;uBAA6oE,OAAO,sBAAsB,EAAE,SAAS;;;4BAAyqB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;;;;;;;;;;;;;;;;;GADhqG;4BA3EwB,kBAAkB;gCAHwB,aAAa;kCACjD,cAAc;0BAItB,cAAc"}
|
|
@@ -6,7 +6,7 @@ import { makeOrchestrationFacade } from '../facade.js';
|
|
|
6
6
|
* @import {Orchestrator, IcaAccount, CosmosValidatorAddress} from '../types.js'
|
|
7
7
|
* @import {TimerService} from '@agoric/time';
|
|
8
8
|
* @import {LocalChain} from '@agoric/vats/src/localchain.js';
|
|
9
|
-
* @import {
|
|
9
|
+
* @import {Remote} from '@agoric/internal';
|
|
10
10
|
* @import {OrchestrationService} from '../service.js';
|
|
11
11
|
* @import {Zone} from '@agoric/zone';
|
|
12
12
|
*/
|
|
@@ -14,10 +14,10 @@ import { makeOrchestrationFacade } from '../facade.js';
|
|
|
14
14
|
/**
|
|
15
15
|
* @param {ZCF} zcf
|
|
16
16
|
* @param {{
|
|
17
|
-
* localchain:
|
|
18
|
-
* orchestrationService:
|
|
19
|
-
* storageNode:
|
|
20
|
-
* timerService:
|
|
17
|
+
* localchain: Remote<LocalChain>;
|
|
18
|
+
* orchestrationService: Remote<OrchestrationService>;
|
|
19
|
+
* storageNode: Remote<StorageNode>;
|
|
20
|
+
* timerService: Remote<TimerService>;
|
|
21
21
|
* zone: Zone;
|
|
22
22
|
* }} privateArgs
|
|
23
23
|
*/
|
package/src/facade.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export function makeOrchestrationFacade({ zone, timerService, zcf, storageNode, orchestrationService, localchain, }: {
|
|
2
2
|
zone: Zone;
|
|
3
|
-
timerService:
|
|
3
|
+
timerService: Remote<TimerService> | null;
|
|
4
4
|
zcf: ZCF;
|
|
5
|
-
storageNode:
|
|
6
|
-
orchestrationService:
|
|
5
|
+
storageNode: Remote<globalThis.StorageNode>;
|
|
6
|
+
orchestrationService: Remote<import("@endo/exo").Guarded<{
|
|
7
7
|
makeAccount(hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<import("./cosmos-api.js").IcaAccount>;
|
|
8
8
|
provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
|
|
9
9
|
getLocalAddress(): `/ibc-port/${string}`;
|
|
10
10
|
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
11
11
|
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").Base64Any<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
12
12
|
}>>;
|
|
13
|
-
}
|
|
14
|
-
localchain:
|
|
13
|
+
}>> | null;
|
|
14
|
+
localchain: Remote<import("@endo/exo").Guarded<{
|
|
15
15
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
16
16
|
getAddress(): Promise<string>;
|
|
17
17
|
getBalance(brand: Brand<"nat">): Promise<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
@@ -45,6 +45,6 @@ export function makeOrchestrationFacade({ zone, timerService, zcf, storageNode,
|
|
|
45
45
|
export type OrchestrationFacade = ReturnType<typeof makeOrchestrationFacade>;
|
|
46
46
|
import type { Zone } from '@agoric/zone';
|
|
47
47
|
import type { TimerService } from '@agoric/time';
|
|
48
|
-
import type {
|
|
48
|
+
import type { Remote } from '@agoric/internal';
|
|
49
49
|
import type { Orchestrator } from './types.js';
|
|
50
50
|
//# sourceMappingURL=facade.d.ts.map
|
package/src/facade.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["facade.js"],"names":[],"mappings":"AA+IO;;;SANG,GAAG;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["facade.js"],"names":[],"mappings":"AA+IO;;;SANG,GAAG;;;;;;;;;;;;;8BA9EK,MACd,KAAE,CAAC;6BAcC,QAAC,KACN,CAAC,mBACM,OAAC;6BAiBY,OACb,KAAF,CAAC;;;2BAiBW,EAAE;;uBA8EgL,OAAO,sBAAsB,EAAE,SAAS;;;4BAAyqB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;IA7B77B;;;;;;;OAOG;gBAFkC,OAAO,EACrB,IAAI,6BAHhB,MAAM,OAEoB,OAAO,AAD1B,gCACmB,OAAO,WACrB,IAAI,AADgC,KAAK,MAAM,GACzD,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC;EAoBnD;kCAEa,UAAU,CAAC,OAAO,uBAAuB,CAAC;0BAvLjC,cAAc;kCACN,cAAc;4BAEpB,kBAAkB;kCAE4B,YAAY"}
|
package/src/facade.js
CHANGED
|
@@ -6,7 +6,7 @@ import { E } from '@endo/far';
|
|
|
6
6
|
* @import {Zone} from '@agoric/zone';
|
|
7
7
|
* @import {TimerService} from '@agoric/time';
|
|
8
8
|
* @import {LocalChain} from '@agoric/vats/src/localchain.js';
|
|
9
|
-
* @import {
|
|
9
|
+
* @import {Remote} from '@agoric/internal';
|
|
10
10
|
* @import {OrchestrationService} from './service.js';
|
|
11
11
|
* @import {Chain, ChainInfo, OrchestrationAccount, Orchestrator} from './types.js';
|
|
12
12
|
*/
|
|
@@ -15,7 +15,7 @@ import { E } from '@endo/far';
|
|
|
15
15
|
const anyVal = null;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* @param {
|
|
18
|
+
* @param {Remote<LocalChain>} localchain
|
|
19
19
|
* @returns {Chain}
|
|
20
20
|
*/
|
|
21
21
|
const makeLocalChainFacade = localchain => {
|
|
@@ -134,11 +134,11 @@ const makeRemoteChainFacade = name => {
|
|
|
134
134
|
*
|
|
135
135
|
* @param {{
|
|
136
136
|
* zone: Zone;
|
|
137
|
-
* timerService:
|
|
137
|
+
* timerService: Remote<TimerService> | null;
|
|
138
138
|
* zcf: ZCF;
|
|
139
|
-
* storageNode:
|
|
140
|
-
* orchestrationService:
|
|
141
|
-
* localchain:
|
|
139
|
+
* storageNode: Remote<StorageNode>;
|
|
140
|
+
* orchestrationService: Remote<OrchestrationService> | null;
|
|
141
|
+
* localchain: Remote<LocalChain>;
|
|
142
142
|
* }} powers
|
|
143
143
|
*/
|
|
144
144
|
export const makeOrchestrationFacade = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAYO,0OAHI,eAAe,GAAG;IAAE,YAAY,EAAE;QAAC,OAAO,EAAE;YAAC,SAAS,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAYO,0OAHI,eAAe,GAAG;IAAE,YAAY,EAAE;QAAC,OAAO,EAAE;YAAC,SAAS,EAAE,YAAY,OAgCtB,IAAI,cACtD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2GAsDwnJ,OAAO,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;eAvF3gJ,CAAA;SAAC,CAAA;KAAC,CAAA;CAAC;;kBAuDpI;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;oCA3FgD,gCAAgC"}
|
package/src/service.d.ts
CHANGED
|
@@ -24,19 +24,13 @@ export function prepareOrchestrationTools(zone: Zone): {
|
|
|
24
24
|
provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
|
|
25
25
|
getLocalAddress(): `/ibc-port/${string}`;
|
|
26
26
|
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
27
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").Base64Any<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
28
|
-
* @param {IBCConnectionID} hostConnectionId
|
|
29
|
-
* the counterparty connection_id
|
|
30
|
-
* @param {IBCConnectionID} controllerConnectionId
|
|
31
|
-
* self connection_id
|
|
32
|
-
* @returns {Promise<IcaAccount>}
|
|
33
|
-
*/
|
|
27
|
+
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").Base64Any<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
34
28
|
}>>;
|
|
35
29
|
};
|
|
36
30
|
}>;
|
|
37
31
|
};
|
|
38
32
|
export type OrchestrationPowers = {
|
|
39
|
-
portAllocator:
|
|
33
|
+
portAllocator: Remote<import("@endo/exo").Guarded<{
|
|
40
34
|
allocateCustomIBCPort(specifiedName?: string): import("@agoric/vow").Vow<any>;
|
|
41
35
|
allocateICAControllerPort(): import("@agoric/vow").Vow<any>;
|
|
42
36
|
allocateICQControllerPort(): import("@agoric/vow").Vow<any>;
|
|
@@ -53,16 +47,10 @@ export type ICQConnectionStore = import("@endo/pass-style").RemotableObject & im
|
|
|
53
47
|
connection: {
|
|
54
48
|
getLocalAddress(): `/ibc-port/${string}`;
|
|
55
49
|
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
56
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").Base64Any<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
57
|
-
* @param {IBCConnectionID} hostConnectionId
|
|
58
|
-
* the counterparty connection_id
|
|
59
|
-
* @param {IBCConnectionID} controllerConnectionId
|
|
60
|
-
* self connection_id
|
|
61
|
-
* @returns {Promise<IcaAccount>}
|
|
62
|
-
*/
|
|
50
|
+
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").Base64Any<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
63
51
|
};
|
|
64
52
|
connectionHandler: {
|
|
65
|
-
onOpen(connection:
|
|
53
|
+
onOpen(connection: Remote<import("@agoric/network").Connection>, localAddr: `/ibc-port/${string}`, remoteAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`): Promise<void>;
|
|
66
54
|
onClose(_connection: any, reason: any): Promise<void>;
|
|
67
55
|
onReceive(connection: any, bytes: any): Promise<string>;
|
|
68
56
|
};
|
|
@@ -76,4 +64,5 @@ export type OrchestrationKit = ReturnType<OrchestrationTools["makeOrchestrationK
|
|
|
76
64
|
export type OrchestrationService = OrchestrationKit["public"];
|
|
77
65
|
import type { Zone } from '@agoric/base-zone';
|
|
78
66
|
import type { IcaAccount } from './types.js';
|
|
67
|
+
import type { Remote } from '@agoric/internal';
|
|
79
68
|
//# sourceMappingURL=service.d.ts.map
|
package/src/service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["service.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["service.js"],"names":[],"mappings":"AAoDA;;;GAOG;AA4GI;;;;;;;YAzDC;;;;;;eAMG;;YAkBH;;;eAGG;;;;;;;;EAwCV;;;;;;;;;;;;;;yBAjJY,QAAQ,CACpB,MAAU,mBAAmB,EAC7B,mBAAuB,CAAC,MAAM,mBAAmB,CAAC,CAC/C;;;;;;;;;;;;;iCA0BU;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,cAAc,EAAE,kBAAkB,CAAA;CAAE;iCAuH1D,UAAU,CAAC,OAAO,yBAAyB,CAAC;+BAC5C,UAAU,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;mCACtD,gBAAgB,CAAC,QAAQ,CAAC;0BAzKf,mBAAmB;gCAIoB,YAAY;4BAHnD,kBAAkB"}
|
package/src/service.js
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @import { Zone } from '@agoric/base-zone';
|
|
15
|
+
* @import {Remote} from '@agoric/internal';
|
|
15
16
|
* @import { Port, PortAllocator } from '@agoric/network';
|
|
16
17
|
* @import { IBCConnectionID } from '@agoric/vats';
|
|
17
18
|
* @import { ICQConnection, IcaAccount, ICQConnectionKit } from './types.js';
|
|
@@ -21,7 +22,7 @@ const { Fail, bare } = assert;
|
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
24
|
* @typedef {object} OrchestrationPowers
|
|
24
|
-
* @property {
|
|
25
|
+
* @property {Remote<PortAllocator>} portAllocator
|
|
25
26
|
*/
|
|
26
27
|
|
|
27
28
|
/**
|