@agoric/orchestration 0.1.1-dev-62c73f5.0 → 0.1.1-dev-0cfea88.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 +16 -16
- package/src/chain-info.d.ts +3 -11
- package/src/chain-info.d.ts.map +1 -1
- package/src/examples/sendAnywhere.contract.d.ts +7 -40
- package/src/examples/sendAnywhere.contract.d.ts.map +1 -1
- package/src/examples/stakeBld.contract.d.ts +14 -41
- package/src/examples/stakeBld.contract.d.ts.map +1 -1
- package/src/examples/stakeIca.contract.d.ts +5 -10
- package/src/examples/stakeIca.contract.d.ts.map +1 -1
- package/src/examples/swapExample.contract.d.ts +5 -33
- package/src/examples/swapExample.contract.d.ts.map +1 -1
- package/src/examples/unbondExample.contract.d.ts +5 -33
- package/src/examples/unbondExample.contract.d.ts.map +1 -1
- package/src/exos/chain-account-kit.d.ts +9 -10
- package/src/exos/chain-account-kit.d.ts.map +1 -1
- package/src/exos/chain-hub.d.ts +5 -2330
- package/src/exos/chain-hub.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.d.ts +11 -26
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/icq-connection-kit.d.ts +7 -9
- package/src/exos/icq-connection-kit.d.ts.map +1 -1
- package/src/exos/local-chain-facade.d.ts +19 -125
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.d.ts +18 -64
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/orchestrator.d.ts +70 -2440
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/orchestrator.js +74 -27
- package/src/exos/remote-chain-facade.d.ts +16 -66
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/facade.d.ts +18 -188
- package/src/facade.d.ts.map +1 -1
- package/src/facade.js +7 -3
- package/src/proposals/orchestration-proposal.d.ts +8 -619
- package/src/proposals/orchestration-proposal.d.ts.map +1 -1
- package/src/proposals/start-stakeAtom.d.ts +3 -15
- package/src/proposals/start-stakeAtom.d.ts.map +1 -1
- package/src/proposals/start-stakeBld.d.ts +15 -48
- package/src/proposals/start-stakeBld.d.ts.map +1 -1
- package/src/proposals/start-stakeOsmo.d.ts +3 -15
- package/src/proposals/start-stakeOsmo.d.ts.map +1 -1
- package/src/service.d.ts +17 -73
- package/src/service.d.ts.map +1 -1
- package/src/utils/address.d.ts +8 -5
- package/src/utils/address.d.ts.map +1 -1
- package/src/utils/cosmos.d.ts.map +1 -1
- package/src/utils/orc.d.ts.map +1 -1
- package/src/utils/packet.d.ts +3 -3
- package/src/utils/packet.d.ts.map +1 -1
- package/src/utils/start-helper.d.ts +8 -42
- package/src/utils/start-helper.d.ts.map +1 -1
- package/src/utils/start-helper.js +1 -0
- package/src/utils/time.d.ts +5 -1
- package/src/utils/time.d.ts.map +1 -1
- package/src/utils/time.js +5 -1
- package/src/vat-orchestration.d.ts +14 -22
- package/src/vat-orchestration.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-proposal.d.ts","sourceRoot":"","sources":["orchestration-proposal.js"],"names":[],"mappings":"AAiCO
|
|
1
|
+
{"version":3,"file":"orchestration-proposal.d.ts","sourceRoot":"","sources":["orchestration-proposal.js"],"names":[],"mappings":"AAiCO,4LAjBI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,eAAqB,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;QACtC,aAAmB,EAAE,aAAa,CAAC;KAC9B,CAAC;IACN,OAAW,EAAE;QACb,aAAmB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QACnC,gBAAsB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QACtC,gBAAsB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;KACjC,CAAC;CACH,WACO;IAAE,OAAO,EAAE;QAAE,gBAAgB,EAAE,YAAY,CAAA;KAAE,CAAA;CAAE,iBAsCzD;AAoEM,+FAFI,eAAe,iBAYzB;AAWM,iFAPI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,aAAmB,EAAE,oBAAoB,CAAC;KACrC,CAAC;CACH,YACO,MAAM,iBAOhB;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBL;gCA3JW;IACZ,aAAiB,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC;CACvC;mCArB4B,iBAAiB;0CACV,eAAe;sCACnB,yBAAyB"}
|
|
@@ -2,21 +2,9 @@ export function startStakeAtom({ consume: { agoricNames, board, chainStorage, ch
|
|
|
2
2
|
installation: {
|
|
3
3
|
consume: {
|
|
4
4
|
stakeIca: Installation<(zcf: ZCF<StakeIcaTerms>, privateArgs: {
|
|
5
|
-
orchestration: import("
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
getLocalAddress(): `/ibc-port/${string}`;
|
|
9
|
-
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
10
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
11
|
-
}>>;
|
|
12
|
-
}>;
|
|
13
|
-
storageNode: globalThis.StorageNode;
|
|
14
|
-
marshaller: {
|
|
15
|
-
toCapData: import("@endo/marshal").ToCapData<unknown>;
|
|
16
|
-
fromCapData: import("@endo/marshal").FromCapData<unknown>;
|
|
17
|
-
serialize: import("@endo/marshal").ToCapData<unknown>;
|
|
18
|
-
unserialize: import("@endo/marshal").FromCapData<unknown>;
|
|
19
|
-
};
|
|
5
|
+
orchestration: import("../service.js").OrchestrationService;
|
|
6
|
+
storageNode: StorageNode;
|
|
7
|
+
marshaller: Marshaller;
|
|
20
8
|
timer: import("@agoric/time").TimerService;
|
|
21
9
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
22
10
|
publicFacet: import("@endo/exo").Guarded<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAuBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAuBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA0D,CACjD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAsDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;mCAnG4C,+BAA+B"}
|
|
@@ -3,36 +3,9 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
3
3
|
consume: {
|
|
4
4
|
stakeBld: Installation<(zcf: ZCF, privateArgs: {
|
|
5
5
|
agoricNames: import("@agoric/internal").Remote<import("@agoric/vats").NameHub>;
|
|
6
|
-
localchain: import("@agoric/internal").Remote<import("@
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
10
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
11
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
12
|
-
executeTx<MT extends {
|
|
13
|
-
'@type': string;
|
|
14
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
15
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
16
|
-
}>>;
|
|
17
|
-
query<T extends {
|
|
18
|
-
'@type': string;
|
|
19
|
-
} = {
|
|
20
|
-
'@type': string;
|
|
21
|
-
}>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
|
|
22
|
-
queryMany<RT extends {
|
|
23
|
-
'@type': string;
|
|
24
|
-
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
25
|
-
error?: string | undefined;
|
|
26
|
-
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
27
|
-
}>; }>;
|
|
28
|
-
}>>;
|
|
29
|
-
marshaller: {
|
|
30
|
-
toCapData: import("@endo/marshal").ToCapData<unknown>;
|
|
31
|
-
fromCapData: import("@endo/marshal").FromCapData<unknown>;
|
|
32
|
-
serialize: import("@endo/marshal").ToCapData<unknown>;
|
|
33
|
-
unserialize: import("@endo/marshal").FromCapData<unknown>;
|
|
34
|
-
};
|
|
35
|
-
storageNode: globalThis.StorageNode;
|
|
6
|
+
localchain: import("@agoric/internal").Remote<import("@agoric/vats/src/localchain.js").LocalChain>;
|
|
7
|
+
marshaller: Marshaller;
|
|
8
|
+
storageNode: StorageNode;
|
|
36
9
|
timerService: import("@agoric/time").TimerService;
|
|
37
10
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
38
11
|
publicFacet: import("@endo/exo").Guarded<{
|
|
@@ -50,7 +23,7 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
50
23
|
CloseAccount(): never;
|
|
51
24
|
}>;
|
|
52
25
|
account: import("@endo/exo").Guarded<{
|
|
53
|
-
getBalance(denom: DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
26
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
54
27
|
getBalances(): never;
|
|
55
28
|
getPublicTopics(): {
|
|
56
29
|
account: {
|
|
@@ -62,18 +35,16 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
62
35
|
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Record<unknown, unknown>>;
|
|
63
36
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").PromiseVow<void | import("@agoric/time").TimestampRecord>;
|
|
64
37
|
deposit(payment: globalThis.Payment<"nat">): Promise<void>;
|
|
65
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<
|
|
66
|
-
executeTx<MT extends {
|
|
67
|
-
'@type': string;
|
|
68
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
38
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<Payment<"nat">>;
|
|
39
|
+
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
69
40
|
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
70
41
|
send(toAccount: any, amount: any): Promise<void>;
|
|
71
42
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
72
|
-
transferSteps(amount: AmountArg, msg: TransferMsg): Promise<void>;
|
|
43
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Promise<void>;
|
|
73
44
|
}>;
|
|
74
45
|
}, undefined>>;
|
|
75
46
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
76
|
-
getBalance(denom: DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
47
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
77
48
|
getBalances(): never;
|
|
78
49
|
getPublicTopics(): {
|
|
79
50
|
account: {
|
|
@@ -85,14 +56,12 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
85
56
|
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Record<unknown, unknown>>;
|
|
86
57
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").PromiseVow<void | import("@agoric/time").TimestampRecord>;
|
|
87
58
|
deposit(payment: globalThis.Payment<"nat">): Promise<void>;
|
|
88
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<
|
|
89
|
-
executeTx<MT extends {
|
|
90
|
-
'@type': string;
|
|
91
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
59
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<Payment<"nat">>;
|
|
60
|
+
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
92
61
|
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
93
62
|
send(toAccount: any, amount: any): Promise<void>;
|
|
94
63
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
95
|
-
transferSteps(amount: AmountArg, msg: TransferMsg): Promise<void>;
|
|
64
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Promise<void>;
|
|
96
65
|
}>>;
|
|
97
66
|
makeAccountInvitationMaker(): Promise<Invitation<{
|
|
98
67
|
publicSubscribers: {
|
|
@@ -108,7 +77,7 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
108
77
|
CloseAccount(): never;
|
|
109
78
|
}>;
|
|
110
79
|
account: import("@endo/exo").Guarded<{
|
|
111
|
-
getBalance(denom: DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
80
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): Promise<import("../orchestration-api.js").DenomAmount>;
|
|
112
81
|
getBalances(): never;
|
|
113
82
|
getPublicTopics(): {
|
|
114
83
|
account: {
|
|
@@ -120,14 +89,12 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
120
89
|
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<Record<unknown, unknown>>;
|
|
121
90
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").PromiseVow<void | import("@agoric/time").TimestampRecord>;
|
|
122
91
|
deposit(payment: globalThis.Payment<"nat">): Promise<void>;
|
|
123
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<
|
|
124
|
-
executeTx<MT extends {
|
|
125
|
-
'@type': string;
|
|
126
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
92
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<Payment<"nat">>;
|
|
93
|
+
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
127
94
|
getAddress(): import("../orchestration-api.js").ChainAddress;
|
|
128
95
|
send(toAccount: any, amount: any): Promise<void>;
|
|
129
96
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
130
|
-
transferSteps(amount: AmountArg, msg: TransferMsg): Promise<void>;
|
|
97
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Promise<void>;
|
|
131
98
|
}>;
|
|
132
99
|
}, undefined>>;
|
|
133
100
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAkBO,6TAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAkBO,6TAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;+BAiCuC,kBACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAlCkE,CACxD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAwDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BN;sBApGqB,gCAAgC"}
|
|
@@ -2,21 +2,9 @@ export function startStakeOsmo({ consume: { agoricNames, board, chainStorage, ch
|
|
|
2
2
|
installation: {
|
|
3
3
|
consume: {
|
|
4
4
|
stakeIca: Installation<(zcf: ZCF<StakeIcaTerms>, privateArgs: {
|
|
5
|
-
orchestration: import("
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
getLocalAddress(): `/ibc-port/${string}`;
|
|
9
|
-
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
10
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
11
|
-
}>>;
|
|
12
|
-
}>;
|
|
13
|
-
storageNode: globalThis.StorageNode;
|
|
14
|
-
marshaller: {
|
|
15
|
-
toCapData: import("@endo/marshal").ToCapData<unknown>;
|
|
16
|
-
fromCapData: import("@endo/marshal").FromCapData<unknown>;
|
|
17
|
-
serialize: import("@endo/marshal").ToCapData<unknown>;
|
|
18
|
-
unserialize: import("@endo/marshal").FromCapData<unknown>;
|
|
19
|
-
};
|
|
5
|
+
orchestration: import("../service.js").OrchestrationService;
|
|
6
|
+
storageNode: StorageNode;
|
|
7
|
+
marshaller: Marshaller;
|
|
20
8
|
timer: import("@agoric/time").TimerService;
|
|
21
9
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
22
10
|
publicFacet: import("@endo/exo").Guarded<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"AAuBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"AAuBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA0D,CACjD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAuDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN"}
|
package/src/service.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
export function prepareOrchestrationTools(zone: Zone, vowTools: {
|
|
2
|
-
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>;
|
|
3
|
-
watch: <T_1 = any, TResult1_1 = T_1, TResult2_1 = never, C = any>(specimenP: import("@agoric/vow").ERef<T_1 | import("@agoric/vow").Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: C | undefined) => import("@agoric/vow").Vow<Exclude<TResult1_1, void> | Exclude<TResult2_1, void> extends never ? TResult1_1 : Exclude<TResult1_1, void> | Exclude<TResult2_1, void>>;
|
|
4
|
-
makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
|
|
5
|
-
allVows: (vows: unknown[]) => import("@agoric/vow").Vow<any[]>;
|
|
6
|
-
}): {
|
|
1
|
+
export function prepareOrchestrationTools(zone: Zone, vowTools: VowTools): {
|
|
7
2
|
makeOrchestrationKit: (initialPowers?: Partial<OrchestrationPowers> | undefined) => import("@endo/exo").GuardedKit<{
|
|
8
3
|
requestICAChannelWatcher: {
|
|
9
4
|
/**
|
|
@@ -15,7 +10,7 @@ export function prepareOrchestrationTools(zone: Zone, vowTools: {
|
|
|
15
10
|
*/
|
|
16
11
|
onFulfilled(port: Port, { chainId, remoteConnAddr }: {
|
|
17
12
|
chainId: string;
|
|
18
|
-
remoteConnAddr:
|
|
13
|
+
remoteConnAddr: RemoteIbcAddress;
|
|
19
14
|
}): import("@agoric/vow").Vow<any>;
|
|
20
15
|
};
|
|
21
16
|
requestICQChannelWatcher: {
|
|
@@ -27,8 +22,8 @@ export function prepareOrchestrationTools(zone: Zone, vowTools: {
|
|
|
27
22
|
* }} watchContext
|
|
28
23
|
*/
|
|
29
24
|
onFulfilled(port: Port, { remoteConnAddr, controllerConnectionId }: {
|
|
30
|
-
remoteConnAddr:
|
|
31
|
-
controllerConnectionId:
|
|
25
|
+
remoteConnAddr: RemoteIbcAddress;
|
|
26
|
+
controllerConnectionId: IBCConnectionID;
|
|
32
27
|
}): import("@agoric/vow").Vow<any>;
|
|
33
28
|
};
|
|
34
29
|
/**
|
|
@@ -48,7 +43,7 @@ export function prepareOrchestrationTools(zone: Zone, vowTools: {
|
|
|
48
43
|
onFulfilled(_connection: Connection, { connectionKit, returnFacet, saveICQConnection }: {
|
|
49
44
|
connectionKit: ConnectionKit;
|
|
50
45
|
returnFacet: string;
|
|
51
|
-
saveICQConnection?:
|
|
46
|
+
saveICQConnection?: IBCConnectionID;
|
|
52
47
|
}): any;
|
|
53
48
|
};
|
|
54
49
|
public: {
|
|
@@ -59,26 +54,17 @@ export function prepareOrchestrationTools(zone: Zone, vowTools: {
|
|
|
59
54
|
* @param {IBCConnectionID} controllerConnectionId self connection_id
|
|
60
55
|
* @returns {Promise<IcaAccount>}
|
|
61
56
|
*/
|
|
62
|
-
makeAccount(chainId: string, hostConnectionId:
|
|
57
|
+
makeAccount(chainId: string, hostConnectionId: IBCConnectionID, controllerConnectionId: IBCConnectionID): Promise<IcaAccount>;
|
|
63
58
|
/**
|
|
64
59
|
* @param {IBCConnectionID} controllerConnectionId
|
|
65
60
|
* @returns {Promise<ICQConnection>}
|
|
66
61
|
*/
|
|
67
|
-
provideICQConnection(controllerConnectionId:
|
|
68
|
-
getLocalAddress(): `/ibc-port/${string}`;
|
|
69
|
-
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
70
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
71
|
-
}>>;
|
|
62
|
+
provideICQConnection(controllerConnectionId: IBCConnectionID): Promise<ICQConnection>;
|
|
72
63
|
};
|
|
73
64
|
}>;
|
|
74
65
|
};
|
|
75
66
|
export type OrchestrationPowers = {
|
|
76
|
-
portAllocator: Remote<
|
|
77
|
-
allocateCustomIBCPort(specifiedName?: string): Promise<import("@agoric/vow").Vow<Port>>;
|
|
78
|
-
allocateICAControllerPort(): Promise<import("@agoric/vow").Vow<Port>>;
|
|
79
|
-
allocateICQControllerPort(): Promise<import("@agoric/vow").Vow<Port>>;
|
|
80
|
-
allocateCustomLocalPort(specifiedName?: string): Promise<import("@agoric/vow").Vow<Port>>;
|
|
81
|
-
}>>;
|
|
67
|
+
portAllocator: Remote<PortAllocator>;
|
|
82
68
|
};
|
|
83
69
|
/**
|
|
84
70
|
* PowerStore is used so additional powers can be added on upgrade. See
|
|
@@ -86,57 +72,8 @@ export type OrchestrationPowers = {
|
|
|
86
72
|
* state migrations.
|
|
87
73
|
*/
|
|
88
74
|
export type PowerStore = MapStore<keyof OrchestrationPowers, OrchestrationPowers[keyof OrchestrationPowers]>;
|
|
89
|
-
export type ICQConnectionStore =
|
|
90
|
-
|
|
91
|
-
getLocalAddress(): `/ibc-port/${string}`;
|
|
92
|
-
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
93
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
94
|
-
};
|
|
95
|
-
parseQueryPacketWatcher: {
|
|
96
|
-
onFulfilled(ack: string): import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[];
|
|
97
|
-
};
|
|
98
|
-
connectionHandler: {
|
|
99
|
-
onOpen(connection: Remote<Connection>, localAddr: `/ibc-port/${string}`, remoteAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`): Promise<void>;
|
|
100
|
-
onClose(_connection: any, reason: any): Promise<void>;
|
|
101
|
-
onReceive(connection: any, bytes: any): Promise<string>;
|
|
102
|
-
};
|
|
103
|
-
}>>;
|
|
104
|
-
export type ConnectionKit = import("@endo/exo").GuardedKit<{
|
|
105
|
-
connection: {
|
|
106
|
-
getLocalAddress(): `/ibc-port/${string}`;
|
|
107
|
-
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
108
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
109
|
-
};
|
|
110
|
-
parseQueryPacketWatcher: {
|
|
111
|
-
onFulfilled(ack: string): import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[];
|
|
112
|
-
};
|
|
113
|
-
connectionHandler: {
|
|
114
|
-
onOpen(connection: Remote<Connection>, localAddr: `/ibc-port/${string}`, remoteAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`): Promise<void>;
|
|
115
|
-
onClose(_connection: any, reason: any): Promise<void>;
|
|
116
|
-
onReceive(connection: any, bytes: any): Promise<string>;
|
|
117
|
-
};
|
|
118
|
-
}> | import("@endo/exo").GuardedKit<{
|
|
119
|
-
parseTxPacketWatcher: {
|
|
120
|
-
onFulfilled(ack: string): string;
|
|
121
|
-
};
|
|
122
|
-
account: {
|
|
123
|
-
getAddress(): import("./orchestration-api.js").ChainAddress;
|
|
124
|
-
getBalance(_denom: any): never;
|
|
125
|
-
getBalances(): never;
|
|
126
|
-
getLocalAddress(): `/ibc-port/${string}`;
|
|
127
|
-
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
128
|
-
getPort(): Port;
|
|
129
|
-
executeTx(): never;
|
|
130
|
-
executeEncodedTx(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/google/protobuf/any.js").Any>[], opts?: Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages"> | undefined): Promise<string>;
|
|
131
|
-
close(): Promise<void>;
|
|
132
|
-
getPurse(brand: Brand): Promise<never>;
|
|
133
|
-
};
|
|
134
|
-
connectionHandler: {
|
|
135
|
-
onOpen(connection: Remote<Connection>, localAddr: `/ibc-port/${string}`, remoteAddr: `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`): Promise<void>;
|
|
136
|
-
onClose(_connection: any, reason: any): Promise<void>;
|
|
137
|
-
onReceive(connection: any, bytes: any): Promise<string>;
|
|
138
|
-
};
|
|
139
|
-
}>;
|
|
75
|
+
export type ICQConnectionStore = MapStore<IBCConnectionID, ICQConnectionKit>;
|
|
76
|
+
export type ConnectionKit = ChainAccountKit | ICQConnectionKit;
|
|
140
77
|
export type OrchestrationState = {
|
|
141
78
|
powers: PowerStore;
|
|
142
79
|
icqConnections: ICQConnectionStore;
|
|
@@ -145,8 +82,15 @@ export type OrchestrationTools = ReturnType<typeof prepareOrchestrationTools>;
|
|
|
145
82
|
export type OrchestrationKit = ReturnType<OrchestrationTools["makeOrchestrationKit"]>;
|
|
146
83
|
export type OrchestrationService = OrchestrationKit["public"];
|
|
147
84
|
import type { Zone } from '@agoric/base-zone';
|
|
85
|
+
import type { VowTools } from '@agoric/vow';
|
|
148
86
|
import type { Port } from '@agoric/network';
|
|
87
|
+
import type { RemoteIbcAddress } from '@agoric/vats/tools/ibc-utils.js';
|
|
88
|
+
import type { IBCConnectionID } from '@agoric/vats';
|
|
149
89
|
import type { Connection } from '@agoric/network';
|
|
150
90
|
import type { IcaAccount } from './types.js';
|
|
91
|
+
import type { ICQConnection } from './types.js';
|
|
92
|
+
import type { PortAllocator } from '@agoric/network';
|
|
151
93
|
import type { Remote } from '@agoric/internal';
|
|
94
|
+
import type { ICQConnectionKit } from './types.js';
|
|
95
|
+
import type { ChainAccountKit } from './types.js';
|
|
152
96
|
//# 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":"AAuPO
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["service.js"],"names":[],"mappings":"AAuPO,gDAHI,IAAI,YACJ,QAAQ;;;YAhIX;;;;;;eAMG;8BALQ,IAAI,+BACJ;gBACV,OAAW,EAAE,MAAM,CAAC;gBACpB,cAAkB,EAAE,gBAAgB,CAAC;aAClC;;;YAgBJ;;;;;;eAMG;8BALQ,IAAI,8CACJ;gBACV,cAAkB,EAAE,gBAAgB,CAAC;gBACrC,sBAA0B,EAAE,eAAe,CAAC;aACzC;;QAgBN;;;;WAIG;;YAED;;;;;;;eAOG;qCANQ,UAAU,qDACV;gBACV,aAAiB,EAAE,aAAa,CAAC;gBACjC,WAAe,EAAE,MAAM,CAAC;gBACxB,iBAAqB,CAAC,EAAE,eAAe,CAAC;aACrC;;;YAkBJ;;;;;;eAMG;iCALQ,MAAM,oBACN,eAAe,0BAEf,eAAe,GACb,OAAO,CAAC,UAAU,CAAC;YAmBhC;;;eAGG;yDAFQ,eAAe,GACb,OAAO,CAAC,aAAa,CAAC;;;EA2C1C;;mBAxOa,OAAO,aAAa,CAAC;;;;;;;yBAQtB,QAAQ,CACpB,MAAU,mBAAmB,EAC7B,mBAAuB,CAAC,MAAM,mBAAmB,CAAC,CAC/C;iCAGU,QAAQ,CAAC,eAAe,EAAE,gBAAgB,CAAC;4BAE3C,eAAe,GAAG,gBAAgB;iCAYlC;IAAE,MAAM,EAAE,UAAU,CAAC;IAAC,cAAc,EAAE,kBAAkB,CAAA;CAAE;iCA+M1D,UAAU,CAAC,OAAO,yBAAyB,CAAC;+BAC5C,UAAU,CAAC,kBAAkB,CAAC,sBAAsB,CAAC,CAAC;mCACtD,gBAAgB,CAAC,QAAQ,CAAC;0BA1PjB,mBAAmB;8BAKf,aAAa;0BAHU,iBAAiB;sCAEhC,iCAAiC;qCADlC,cAAc;gCADE,iBAAiB;gCAIY,YAAY;mCAAZ,YAAY;mCAJzC,iBAAiB;4BAD1C,kBAAkB;sCAKoC,YAAY;qCAAZ,YAAY"}
|
package/src/utils/address.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
export function makeICAChannelAddress(hostConnectionId:
|
|
1
|
+
export function makeICAChannelAddress(hostConnectionId: IBCConnectionID, controllerConnectionId: IBCConnectionID, { version, encoding, ordering, txType, }?: {
|
|
2
2
|
encoding?: string | undefined;
|
|
3
3
|
ordering?: "ordered" | "unordered" | undefined;
|
|
4
4
|
txType?: string | undefined;
|
|
5
5
|
version?: string | undefined;
|
|
6
|
-
} | undefined):
|
|
7
|
-
export function makeICQChannelAddress(controllerConnectionId:
|
|
6
|
+
} | undefined): RemoteIbcAddress;
|
|
7
|
+
export function makeICQChannelAddress(controllerConnectionId: IBCConnectionID, { version }?: {
|
|
8
8
|
version?: string;
|
|
9
|
-
} | undefined):
|
|
10
|
-
export function findAddressField(remoteAddressString:
|
|
9
|
+
} | undefined): RemoteIbcAddress;
|
|
10
|
+
export function findAddressField(remoteAddressString: RemoteIbcAddress): ChainAddress["address"] | undefined;
|
|
11
|
+
import type { IBCConnectionID } from '@agoric/vats';
|
|
12
|
+
import type { RemoteIbcAddress } from '@agoric/vats/tools/ibc-utils.js';
|
|
13
|
+
import type { ChainAddress } from '../types.js';
|
|
11
14
|
//# sourceMappingURL=address.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["address.js"],"names":[],"mappings":"AAoBO;;;;;
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["address.js"],"names":[],"mappings":"AAoBO,wDAXI,eAAe,0BACf,eAAe;;;;;gBAQb,gBAAgB,CAuB5B;AAQM,8DAJI,eAAe;cACH,MAAM;gBAChB,gBAAgB,CAQ5B;AAaM,sDAJI,gBAAgB,GAEd,YAAY,CAAC,SAAS,CAAC,GAAG,SAAS,CAW/C;qCA1EiC,cAAc;sCAEb,iCAAiC;kCADrC,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["cosmos.js"],"names":[],"mappings":"AAIA,mFAAmF;AACnF,kCAAsC;AAO/B,2CAJI,OAAO,cACP,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,GACf,MAAM,CAQlB;AAOM,
|
|
1
|
+
{"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["cosmos.js"],"names":[],"mappings":"AAIA,mFAAmF;AACnF,kCAAsC;AAO/B,2CAJI,OAAO,cACP,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,GACf,MAAM,CAQlB;AAOM,kCAJM,CAAC,UACH,MAAM,gBACN,CAAC,CAAC,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,UAAU,CAAA;CAAE,KAAK,CAAC,KAY1D;oBAlCmB,6CAA6C"}
|
package/src/utils/orc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orc.d.ts","sourceRoot":"","sources":["orc.js"],"names":[],"mappings":";IASmB,
|
|
1
|
+
{"version":3,"file":"orc.d.ts","sourceRoot":"","sources":["orc.js"],"names":[],"mappings":";IASmB,gCAHN,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GACvB,WAAW,CAWvB;IACD;;;;;;;OAOG;IACH,gCALW,CAAC,SAAS,GAAG,eAAe,CAAC,GACvC,CAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,GAE7B,WAAW,CAWvB;;iCApCqE,aAAa;+BAAb,aAAa;qCAAb,aAAa;iCAAb,aAAa"}
|
package/src/utils/packet.d.ts
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* @returns {string} stringified InterchainAccountPacketData
|
|
15
15
|
* @throws {Error} if malformed messages are provided
|
|
16
16
|
*/
|
|
17
|
-
export function makeTxPacket(msgs:
|
|
17
|
+
export function makeTxPacket(msgs: AnyJson[], opts?: Partial<Omit<TxBody, "messages">> | undefined): string;
|
|
18
18
|
/**
|
|
19
19
|
* Makes an IBC query packet from an array of query messages. Expects the `data`
|
|
20
20
|
* of each message to be base64 encoded bytes. Skips checks for malformed
|
|
@@ -50,9 +50,9 @@ export function parseTxPacket(response: string): string;
|
|
|
50
50
|
* not found
|
|
51
51
|
*/
|
|
52
52
|
export function parseQueryPacket(response: string): JsonSafe<ResponseQuery>[];
|
|
53
|
-
import {
|
|
54
|
-
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
53
|
+
import type { AnyJson } from '@agoric/cosmic-proto';
|
|
55
54
|
import { TxBody } from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
56
55
|
import { RequestQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
56
|
+
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
57
57
|
import type { ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
58
58
|
//# sourceMappingURL=packet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packet.d.ts","sourceRoot":"","sources":["packet.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AAEH;;;;;;;;;GASG;AACH,
|
|
1
|
+
{"version":3,"file":"packet.d.ts","sourceRoot":"","sources":["packet.js"],"names":[],"mappings":"AAUA;;;;;GAKG;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,CAiBrC;6BAxGmC,sBAAsB;uBAXnC,8CAA8C;6BAExC,+CAA+C;8BASxC,sBAAsB;mCAC1B,+CAA+C"}
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
export function provideOrchestration(zcf: ZCF, baggage: Baggage, remotePowers: OrchestrationPowers, marshaller: Marshaller): {
|
|
2
2
|
chainHub: import("@endo/exo").Guarded<{
|
|
3
|
-
registerChain(name: string, chainInfo:
|
|
4
|
-
|
|
5
|
-
connections?: Record<string, import("../cosmos-api.js").IBCConnectionInfo> | undefined;
|
|
6
|
-
icqEnabled?: boolean | undefined;
|
|
7
|
-
stakingTokens?: readonly {
|
|
8
|
-
denom: string;
|
|
9
|
-
}[] | undefined;
|
|
10
|
-
}>): void;
|
|
11
|
-
getChainInfo<K extends string>(chainName: K): Promise<import("../exos/chain-hub.js").ActualChainInfo<K>>;
|
|
3
|
+
registerChain(name: string, chainInfo: import("../cosmos-api.js").CosmosChainInfo): void;
|
|
4
|
+
getChainInfo<K extends string>(chainName: K): Promise<ActualChainInfo<K>>;
|
|
12
5
|
registerConnection(chainId1: string, chainId2: string, connectionInfo: import("../cosmos-api.js").IBCConnectionInfo): void;
|
|
13
6
|
getConnectionInfo(chain1: string | {
|
|
14
7
|
chainId: string;
|
|
@@ -17,46 +10,19 @@ export function provideOrchestration(zcf: ZCF, baggage: Baggage, remotePowers: O
|
|
|
17
10
|
}): Promise<import("../cosmos-api.js").IBCConnectionInfo>;
|
|
18
11
|
}>;
|
|
19
12
|
zone: import("@agoric/base-zone").Zone;
|
|
20
|
-
orchestrate<Context, Args extends any[]>(durableName: string, ctx: Context, fn: (orc: import("../orchestration-api.js").Orchestrator, ctx2: Context, ...args: Args) =>
|
|
13
|
+
orchestrate<Context, Args extends any[]>(durableName: string, ctx: Context, fn: (orc: import("../orchestration-api.js").Orchestrator, ctx2: Context, ...args: Args) => object): (...args: Args) => Promise<unknown>;
|
|
21
14
|
};
|
|
22
15
|
export type OrchestrationPowers = {
|
|
23
|
-
localchain: Remote<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
27
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
28
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
29
|
-
executeTx<MT extends {
|
|
30
|
-
'@type': string;
|
|
31
|
-
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
32
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
33
|
-
}>>;
|
|
34
|
-
query<T extends {
|
|
35
|
-
'@type': string;
|
|
36
|
-
} = {
|
|
37
|
-
'@type': string;
|
|
38
|
-
}>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
|
|
39
|
-
queryMany<RT extends {
|
|
40
|
-
'@type': string;
|
|
41
|
-
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
42
|
-
error?: string | undefined;
|
|
43
|
-
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
44
|
-
}>; }>;
|
|
45
|
-
}>>;
|
|
46
|
-
orchestrationService: Remote<import("@endo/exo").Guarded<{
|
|
47
|
-
makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<import("../cosmos-api.js").IcaAccount>;
|
|
48
|
-
provideICQConnection(controllerConnectionId: `connection-${number}`): Promise<import("@endo/exo").Guarded<{
|
|
49
|
-
getLocalAddress(): `/ibc-port/${string}`;
|
|
50
|
-
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
51
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Promise<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
52
|
-
}>>;
|
|
53
|
-
}>>;
|
|
54
|
-
storageNode: Remote<globalThis.StorageNode>;
|
|
16
|
+
localchain: Remote<LocalChain>;
|
|
17
|
+
orchestrationService: Remote<OrchestrationService>;
|
|
18
|
+
storageNode: Remote<StorageNode>;
|
|
55
19
|
timerService: Remote<TimerService>;
|
|
56
20
|
agoricNames: Remote<NameHub>;
|
|
57
21
|
};
|
|
58
22
|
import type { Baggage } from '@agoric/vat-data';
|
|
23
|
+
import type { LocalChain } from '@agoric/vats/src/localchain.js';
|
|
59
24
|
import type { Remote } from '@agoric/vow';
|
|
25
|
+
import type { OrchestrationService } from '../service.js';
|
|
60
26
|
import type { TimerService } from '@agoric/time';
|
|
61
27
|
import type { NameHub } from '@agoric/vats';
|
|
62
28
|
//# sourceMappingURL=start-helper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-helper.d.ts","sourceRoot":"","sources":["start-helper.js"],"names":[],"mappings":"AAwCO,0CALI,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;;;;;;;;;;;;yJAyDH,GACjB,yBACQ,GAAG;EAOX;kCAlFY;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"}
|
package/src/utils/time.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/**
|
|
2
|
+
* XXX should this be durable? resumable?
|
|
3
|
+
*
|
|
4
|
+
* @param {Remote<TimerService>} timer
|
|
5
|
+
*/
|
|
2
6
|
export function makeTimestampHelper(timer: Remote<TimerService>): {
|
|
3
7
|
/**
|
|
4
8
|
* XXX do this need to be resumable / use Vows?
|
package/src/utils/time.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["time.js"],"names":[],"mappings":"AAWA,
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["time.js"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,2CAFW,OAAO,YAAY,CAAC;IAY3B;;;;;;;;;;OAUG;0EAFU,OAAO,CAAC,MAAM,CAAC;EAiB/B;AAhDD;;;GAGG;AAEH,qCAAsC;AACtC,iDAAqD;AAqD9C,oCAHI,IAAI,GACF,MAAM,CAE2D;8BAThE,OAAO,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;kCAjDE,cAAc;4BACpD,kBAAkB;wCADoB,cAAc"}
|
package/src/utils/time.js
CHANGED
|
@@ -9,7 +9,11 @@ import { TimeMath } from '@agoric/time';
|
|
|
9
9
|
export const SECONDS_PER_MINUTE = 60n;
|
|
10
10
|
export const NANOSECONDS_PER_SECOND = 1_000_000_000n;
|
|
11
11
|
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* XXX should this be durable? resumable?
|
|
14
|
+
*
|
|
15
|
+
* @param {Remote<TimerService>} timer
|
|
16
|
+
*/
|
|
13
17
|
export function makeTimestampHelper(timer) {
|
|
14
18
|
/** @type {TimerBrand | undefined} */
|
|
15
19
|
let brandCache;
|