@agoric/orchestration 0.1.1-dev-a19a964.0 → 0.1.1-dev-30e56ae.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/sendAnywhere.contract.d.ts +15 -13
- package/src/examples/sendAnywhere.contract.d.ts.map +1 -1
- package/src/examples/stakeBld.contract.d.ts +24 -22
- package/src/examples/stakeBld.contract.d.ts.map +1 -1
- package/src/examples/stakeBld.contract.js +10 -8
- package/src/examples/swapExample.contract.d.ts +15 -13
- package/src/examples/swapExample.contract.d.ts.map +1 -1
- package/src/examples/unbondExample.contract.d.ts +15 -13
- package/src/examples/unbondExample.contract.d.ts.map +1 -1
- package/src/exos/local-chain-account-kit.d.ts +57 -34
- package/src/exos/local-chain-account-kit.d.ts.map +1 -1
- package/src/exos/local-chain-account-kit.js +9 -8
- package/src/facade.d.ts +15 -13
- package/src/facade.d.ts.map +1 -1
- package/src/facade.js +1 -1
- package/src/proposals/orchestration-proposal.d.ts +4 -4
- package/src/proposals/start-stakeBld.d.ts +24 -22
- package/src/proposals/start-stakeBld.d.ts.map +1 -1
- package/src/service.d.ts +4 -4
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-30e56ae.0+30e56ae",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@agoric/assert": "0.6.1-dev-
|
|
36
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
37
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
38
|
-
"@agoric/internal": "0.3.3-dev-
|
|
39
|
-
"@agoric/network": "0.1.1-dev-
|
|
40
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
41
|
-
"@agoric/store": "0.9.3-dev-
|
|
42
|
-
"@agoric/time": "0.3.3-dev-
|
|
43
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
44
|
-
"@agoric/vats": "0.15.2-dev-
|
|
45
|
-
"@agoric/vow": "0.1.1-dev-
|
|
46
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
47
|
-
"@agoric/zone": "0.2.3-dev-
|
|
35
|
+
"@agoric/assert": "0.6.1-dev-30e56ae.0+30e56ae",
|
|
36
|
+
"@agoric/cosmic-proto": "0.4.1-dev-30e56ae.0+30e56ae",
|
|
37
|
+
"@agoric/ertp": "0.16.3-dev-30e56ae.0+30e56ae",
|
|
38
|
+
"@agoric/internal": "0.3.3-dev-30e56ae.0+30e56ae",
|
|
39
|
+
"@agoric/network": "0.1.1-dev-30e56ae.0+30e56ae",
|
|
40
|
+
"@agoric/notifier": "0.6.3-dev-30e56ae.0+30e56ae",
|
|
41
|
+
"@agoric/store": "0.9.3-dev-30e56ae.0+30e56ae",
|
|
42
|
+
"@agoric/time": "0.3.3-dev-30e56ae.0+30e56ae",
|
|
43
|
+
"@agoric/vat-data": "0.5.3-dev-30e56ae.0+30e56ae",
|
|
44
|
+
"@agoric/vats": "0.15.2-dev-30e56ae.0+30e56ae",
|
|
45
|
+
"@agoric/vow": "0.1.1-dev-30e56ae.0+30e56ae",
|
|
46
|
+
"@agoric/zoe": "0.26.3-dev-30e56ae.0+30e56ae",
|
|
47
|
+
"@agoric/zone": "0.2.3-dev-30e56ae.0+30e56ae",
|
|
48
48
|
"@endo/base64": "^1.0.5",
|
|
49
49
|
"@endo/far": "^1.1.2",
|
|
50
50
|
"@endo/marshal": "^1.5.0",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"typeCoverage": {
|
|
88
88
|
"atLeast": 97.1
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "30e56ae346c474049de4c2e4485bd368f575a2ee"
|
|
91
91
|
}
|
|
@@ -40,25 +40,27 @@ export function start(zcf: ZCF, privateArgs: OrchestrationPowers & {
|
|
|
40
40
|
}>;
|
|
41
41
|
export type OrchestrationPowers = {
|
|
42
42
|
localchain: Remote<import("@endo/exo").Guarded<{
|
|
43
|
-
makeAccount():
|
|
43
|
+
makeAccount(): import("@agoric/vow").PromiseVow<import("@endo/exo").Guarded<{
|
|
44
44
|
getAddress(): string;
|
|
45
|
-
getBalance(brand: Brand<"nat">):
|
|
46
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
47
|
-
withdraw(amount: Amount<"nat">):
|
|
45
|
+
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
46
|
+
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
47
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
48
48
|
executeTx<MT extends {
|
|
49
49
|
'@type': string;
|
|
50
|
-
}[]>(messages: MT):
|
|
51
|
-
monitorTransfers(tap:
|
|
50
|
+
}[]>(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]>>; }>;
|
|
51
|
+
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
52
52
|
}>>;
|
|
53
|
-
query
|
|
53
|
+
query<T extends {
|
|
54
54
|
'@type': string;
|
|
55
|
-
}
|
|
56
|
-
|
|
55
|
+
} = {
|
|
56
|
+
'@type': string;
|
|
57
|
+
}>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
|
|
58
|
+
queryMany<RT extends {
|
|
59
|
+
'@type': string;
|
|
60
|
+
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
57
61
|
error?: string | undefined;
|
|
58
|
-
reply:
|
|
59
|
-
|
|
60
|
-
};
|
|
61
|
-
}[]>;
|
|
62
|
+
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
63
|
+
}>; }>;
|
|
62
64
|
}>>;
|
|
63
65
|
orchestrationService: Remote<import("@endo/exo").Guarded<{
|
|
64
66
|
makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<import("../cosmos-api").IcaAccount>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendAnywhere.contract.d.ts","sourceRoot":"","sources":["sendAnywhere.contract.js"],"names":[],"mappings":"AAgBA;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AAEH,kEAKE;AASK,2BANI,GAAG,eACH,mBAAmB,GAAG;IAChC,UAAc,EAAE,UAAU,CAAC;CACxB;;;;;QAqGE;;;WAGG;;;;;;;;;;GAgBR;;;;;
|
|
1
|
+
{"version":3,"file":"sendAnywhere.contract.d.ts","sourceRoot":"","sources":["sendAnywhere.contract.js"],"names":[],"mappings":"AAgBA;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AAEH,kEAKE;AASK,2BANI,GAAG,eACH,mBAAmB,GAAG;IAChC,UAAc,EAAE,UAAU,CAAC;CACxB;;;;;QAqGE;;;WAGG;;;;;;;;;;GAgBR;;;;;8BAjEuB,MAAM,KAAK,CAAC;6BAmBtB,QAAQ,KAAK,CAAC,mBAElB,OAAO;6BA6BX,OAJE,KACL,CAAC;;;2BAmBgI,EAAE;;;;;;;oBAAqjG,CAAC;;;uBAA6lB,EAAE;;;;;;;;;;;;;;;;;6BAvJjwH,kBAAkB;uCACS,eAAe;4BAK3C,aAAa;kCAJK,cAAc;6BAG/B,cAAc"}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
export function start(zcf: ZCF, privateArgs: {
|
|
2
2
|
agoricNames: Remote<NameHub>;
|
|
3
3
|
localchain: Remote<import("@endo/exo").Guarded<{
|
|
4
|
-
makeAccount():
|
|
4
|
+
makeAccount(): import("@agoric/vow").PromiseVow<import("@endo/exo").Guarded<{
|
|
5
5
|
getAddress(): string;
|
|
6
|
-
getBalance(brand: Brand<"nat">):
|
|
7
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
8
|
-
withdraw(amount: Amount<"nat">):
|
|
6
|
+
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
7
|
+
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
8
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
9
9
|
executeTx<MT extends {
|
|
10
10
|
'@type': string;
|
|
11
|
-
}[]>(messages: MT):
|
|
12
|
-
monitorTransfers(tap:
|
|
11
|
+
}[]>(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]>>; }>;
|
|
12
|
+
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
13
13
|
}>>;
|
|
14
|
-
query
|
|
14
|
+
query<T extends {
|
|
15
|
+
'@type': string;
|
|
16
|
+
} = {
|
|
17
|
+
'@type': string;
|
|
18
|
+
}>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
|
|
19
|
+
queryMany<RT extends {
|
|
15
20
|
'@type': string;
|
|
16
|
-
}
|
|
17
|
-
queryMany(requests: import("@agoric/cosmic-proto").TypedJson[]): Promise<{
|
|
21
|
+
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
18
22
|
error?: string | undefined;
|
|
19
|
-
reply:
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
}[]>;
|
|
23
|
+
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
24
|
+
}>; }>;
|
|
23
25
|
}>>;
|
|
24
26
|
marshaller: Marshaller;
|
|
25
27
|
storageNode: StorageNode;
|
|
@@ -56,11 +58,11 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
56
58
|
'@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
|
|
57
59
|
}>>;
|
|
58
60
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<void>;
|
|
59
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
60
|
-
withdraw(amount: Amount<"nat">):
|
|
61
|
+
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
62
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
61
63
|
executeTx<MT extends {
|
|
62
64
|
'@type': string;
|
|
63
|
-
}[]>(messages: MT):
|
|
65
|
+
}[]>(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]>>; }>;
|
|
64
66
|
getAddress(): string;
|
|
65
67
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
66
68
|
}>;
|
|
@@ -77,11 +79,11 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
77
79
|
'@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
|
|
78
80
|
}>>;
|
|
79
81
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<void>;
|
|
80
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
81
|
-
withdraw(amount: Amount<"nat">):
|
|
82
|
+
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
83
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
82
84
|
executeTx<MT extends {
|
|
83
85
|
'@type': string;
|
|
84
|
-
}[]>(messages: MT):
|
|
86
|
+
}[]>(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]>>; }>;
|
|
85
87
|
getAddress(): string;
|
|
86
88
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
87
89
|
}>>;
|
|
@@ -115,11 +117,11 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
115
117
|
'@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
|
|
116
118
|
}>>;
|
|
117
119
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<void>;
|
|
118
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
119
|
-
withdraw(amount: Amount<"nat">):
|
|
120
|
+
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
121
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
120
122
|
executeTx<MT extends {
|
|
121
123
|
'@type': string;
|
|
122
|
-
}[]>(messages: MT):
|
|
124
|
+
}[]>(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]>>; }>;
|
|
123
125
|
getAddress(): string;
|
|
124
126
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
125
127
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stakeBld.contract.d.ts","sourceRoot":"","sources":["stakeBld.contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stakeBld.contract.d.ts","sourceRoot":"","sources":["stakeBld.contract.js"],"names":[],"mappings":"AAmCO,2BAVI,GAAG;;;;;8BA6ER,MACA,KAAF,CAAC;6BAc2C,QACpC,KAAR,CAAC,mBACO,OAAD;6BASqb,OAAO,KAAK,CAAC;;;2BAA6rB,EAAE;;;;;;;oBAAqjG,CAAC;;;uBAA6lB,EAAE;;;;;gBAnGhxJ,UAAU;iBACT,WAAW;;YAGlB,OAAO,kBAAkB,EAAE,OAAO;;QA2CvC;;WAEG;;;;;;;;;;+DA2CD,OAAI,KAAK,CAAC;;;iEAOyX,OAAO,KAAK,CAAC;;;;;;;;;;;+DAAs4B,OAAO,KAAK,CAAC;;;iEAA+yB,OAAO,KAAK,CAAC;iCAXvjE,QACpC,KAAR,CAAC,mBACO,OAAD;iCASqb,OAAO,KAAK,CAAC;;;+BAA6rB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;QApBtoC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiBR;6BA/GyB,cAAc;4BACf,kBAAkB;kCACZ,cAAc"}
|
|
@@ -6,6 +6,7 @@ import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport/record
|
|
|
6
6
|
import { withdrawFromSeat } from '@agoric/zoe/src/contractSupport/zoeHelpers.js';
|
|
7
7
|
import { InvitationShape } from '@agoric/zoe/src/typeGuards.js';
|
|
8
8
|
import { makeDurableZone } from '@agoric/zone/durable.js';
|
|
9
|
+
import { V } from '@agoric/vow/vat.js';
|
|
9
10
|
import { E } from '@endo/far';
|
|
10
11
|
import { deeplyFulfilled } from '@endo/marshal';
|
|
11
12
|
import { M } from '@endo/patterns';
|
|
@@ -33,11 +34,6 @@ const trace = makeTracer('StakeBld');
|
|
|
33
34
|
* @param {import('@agoric/vat-data').Baggage} baggage
|
|
34
35
|
*/
|
|
35
36
|
export const start = async (zcf, privateArgs, baggage) => {
|
|
36
|
-
const BLD = zcf.getTerms().brands.In;
|
|
37
|
-
|
|
38
|
-
// XXX is this safe to call before prepare statements are completed?
|
|
39
|
-
const bldAmountShape = await E(BLD).getAmountShape();
|
|
40
|
-
|
|
41
37
|
const zone = makeDurableZone(baggage);
|
|
42
38
|
|
|
43
39
|
const { makeRecorderKit } = prepareRecorderKitMakers(
|
|
@@ -53,9 +49,15 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
53
49
|
makeChainHub(privateArgs.agoricNames),
|
|
54
50
|
);
|
|
55
51
|
|
|
52
|
+
// ----------------
|
|
53
|
+
// All `prepare*` calls should go above this line.
|
|
54
|
+
|
|
55
|
+
const BLD = zcf.getTerms().brands.In;
|
|
56
|
+
const bldAmountShape = await E(BLD).getAmountShape();
|
|
57
|
+
|
|
56
58
|
async function makeLocalAccountKit() {
|
|
57
|
-
const account = await
|
|
58
|
-
const address = await
|
|
59
|
+
const account = await V(privateArgs.localchain).makeAccount();
|
|
60
|
+
const address = await V(account).getAddress();
|
|
59
61
|
// XXX 'address' is implied by 'account'; use an async maker that get the value itself
|
|
60
62
|
return makeLocalChainAccountKit({
|
|
61
63
|
account,
|
|
@@ -84,7 +86,7 @@ export const start = async (zcf, privateArgs, baggage) => {
|
|
|
84
86
|
const { In } = await deeplyFulfilled(
|
|
85
87
|
withdrawFromSeat(zcf, seat, give),
|
|
86
88
|
);
|
|
87
|
-
await
|
|
89
|
+
await V(holder).deposit(In);
|
|
88
90
|
seat.exit();
|
|
89
91
|
return harden({
|
|
90
92
|
publicSubscribers: holder.getPublicTopics(),
|
|
@@ -16,25 +16,27 @@ export function makeNatAmountShape(brand: Brand, min?: bigint | undefined): {
|
|
|
16
16
|
export function start(zcf: ZCF, privateArgs: {
|
|
17
17
|
agoricNames: Remote<NameHub>;
|
|
18
18
|
localchain: Remote<import("@endo/exo").Guarded<{
|
|
19
|
-
makeAccount():
|
|
19
|
+
makeAccount(): import("@agoric/vow").PromiseVow<import("@endo/exo").Guarded<{
|
|
20
20
|
getAddress(): string;
|
|
21
|
-
getBalance(brand: Brand<"nat">):
|
|
22
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
23
|
-
withdraw(amount: Amount<"nat">):
|
|
21
|
+
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
22
|
+
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
23
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
24
24
|
executeTx<MT extends {
|
|
25
25
|
'@type': string;
|
|
26
|
-
}[]>(messages: MT):
|
|
27
|
-
monitorTransfers(tap:
|
|
26
|
+
}[]>(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]>>; }>;
|
|
27
|
+
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
28
28
|
}>>;
|
|
29
|
-
query
|
|
29
|
+
query<T extends {
|
|
30
30
|
'@type': string;
|
|
31
|
-
}
|
|
32
|
-
|
|
31
|
+
} = {
|
|
32
|
+
'@type': string;
|
|
33
|
+
}>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
|
|
34
|
+
queryMany<RT extends {
|
|
35
|
+
'@type': string;
|
|
36
|
+
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
33
37
|
error?: string | undefined;
|
|
34
|
-
reply:
|
|
35
|
-
|
|
36
|
-
};
|
|
37
|
-
}[]>;
|
|
38
|
+
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
39
|
+
}>; }>;
|
|
38
40
|
}>>;
|
|
39
41
|
orchestrationService: Remote<import("@endo/exo").Guarded<{
|
|
40
42
|
makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<IcaAccount>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"AAaA;;;;;;;;GAQG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAWnC;AASK,0CAHI,KAAK;;;EAIsC;AAc/C,2BAXI,GAAG;;;;;
|
|
1
|
+
{"version":3,"file":"swapExample.contract.d.ts","sourceRoot":"","sources":["swapExample.contract.js"],"names":[],"mappings":"AAaA;;;;;;;;GAQG;AAEH,yCAAyC;AACzC,mBADW,YAAY,CAAC,OAAO,KAAK,CAAC,CAWnC;AASK,0CAHI,KAAK;;;EAIsC;AAc/C,2BAXI,GAAG;;;;;8BA0DoB,MAAM,KAEvC,CAAC;6BAekB,QAAQ,KAAK,CAAC,mBAC1B,OAAO;6BAoBU,OAAO,KAAK,CAAC;;;2BAkBiQ,EAAE;;;;;;;oBAAqjG,CAAC;;;uBAA6lB,EAAE;;;;;;;;;;;;;;;gBA3G76H,UAAU;;;;oBA2CV,MAAM,CAAC,KAAK,CAAC;;;;;oBAAb,MAAM,CAAC,KAAK,CAAC;;;;GA+D7B;6BA5IyB,cAAc;4BAHf,kBAAkB;gCAHwB,aAAa;kCACjD,cAAc;6BAInB,kBAAkB;4CALuB,aAAa"}
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
export function start(zcf: ZCF, privateArgs: {
|
|
2
2
|
agoricNames: Remote<NameHub>;
|
|
3
3
|
localchain: Remote<import("@endo/exo").Guarded<{
|
|
4
|
-
makeAccount():
|
|
4
|
+
makeAccount(): import("@agoric/vow").PromiseVow<import("@endo/exo").Guarded<{
|
|
5
5
|
getAddress(): string;
|
|
6
|
-
getBalance(brand: Brand<"nat">):
|
|
7
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
8
|
-
withdraw(amount: Amount<"nat">):
|
|
6
|
+
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
7
|
+
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
8
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
9
9
|
executeTx<MT extends {
|
|
10
10
|
'@type': string;
|
|
11
|
-
}[]>(messages: MT):
|
|
12
|
-
monitorTransfers(tap:
|
|
11
|
+
}[]>(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]>>; }>;
|
|
12
|
+
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
13
13
|
}>>;
|
|
14
|
-
query
|
|
14
|
+
query<T extends {
|
|
15
15
|
'@type': string;
|
|
16
|
-
}
|
|
17
|
-
|
|
16
|
+
} = {
|
|
17
|
+
'@type': string;
|
|
18
|
+
}>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
|
|
19
|
+
queryMany<RT extends {
|
|
20
|
+
'@type': string;
|
|
21
|
+
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
18
22
|
error?: string | undefined;
|
|
19
|
-
reply:
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
}[]>;
|
|
23
|
+
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
24
|
+
}>; }>;
|
|
23
25
|
}>>;
|
|
24
26
|
orchestrationService: Remote<import("@endo/exo").Guarded<{
|
|
25
27
|
makeAccount(chainId: string, hostConnectionId: `connection-${number}`, controllerConnectionId: `connection-${number}`): Promise<IcaAccount>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unbondExample.contract.d.ts","sourceRoot":"","sources":["unbondExample.contract.js"],"names":[],"mappings":"AA8BO,2BAXI,GAAG;;;;;
|
|
1
|
+
{"version":3,"file":"unbondExample.contract.d.ts","sourceRoot":"","sources":["unbondExample.contract.js"],"names":[],"mappings":"AA8BO,2BAXI,GAAG;;;;;8BA0EC,MAAM,KACnB,CAAC;6BAiB4H,QAAQ,KAAK,CAAC,mBAA6B,OAAO;6BAAwjB,OAAO,KAAK,CAAC;;;2BAA6rB,EAAE;;;;;;;oBAAqjG,CAAC;;;uBAA6lB,EAAE;;;;;;;;;;;;;;gBAtFzjK,UAAU;;;;;;;;GAqF1B;6BAjGyB,cAAc;4BACf,kBAAkB;gCALwB,aAAa;kCACjD,cAAc;6BACnB,kBAAkB"}
|
|
@@ -100,6 +100,17 @@ export function prepareLocalChainAccountKit(zone: Zone, makeRecorderKit: <T>(sto
|
|
|
100
100
|
readonly counterPartyChannelId: "channel-62";
|
|
101
101
|
readonly counterPartyPortId: "transfer";
|
|
102
102
|
readonly ordering: 0;
|
|
103
|
+
/**
|
|
104
|
+
* @typedef {object} LocalChainAccountNotification
|
|
105
|
+
* @property {string} address
|
|
106
|
+
*/
|
|
107
|
+
/**
|
|
108
|
+
* @typedef {{
|
|
109
|
+
* topicKit: RecorderKit<LocalChainAccountNotification>;
|
|
110
|
+
* account: LocalChainAccount;
|
|
111
|
+
* address: ChainAddress['address'];
|
|
112
|
+
* }} State
|
|
113
|
+
*/
|
|
103
114
|
readonly state: 3;
|
|
104
115
|
readonly version: "ics20-1";
|
|
105
116
|
};
|
|
@@ -214,12 +225,12 @@ export function prepareLocalChainAccountKit(zone: Zone, makeRecorderKit: <T>(sto
|
|
|
214
225
|
celestia: {
|
|
215
226
|
readonly chainId: "celestia";
|
|
216
227
|
readonly stakingTokens: readonly [{
|
|
217
|
-
readonly denom: "utia";
|
|
218
|
-
* @param {string} validatorAddress
|
|
219
|
-
* @param {Amount<'nat'>} ertpAmount
|
|
220
|
-
*/
|
|
228
|
+
readonly denom: "utia";
|
|
221
229
|
}];
|
|
222
|
-
readonly icqEnabled: false;
|
|
230
|
+
readonly icqEnabled: false; /**
|
|
231
|
+
* @param {string} validatorAddress
|
|
232
|
+
* @param {Amount<'nat'>} ertpAmount
|
|
233
|
+
*/
|
|
223
234
|
readonly connections: {
|
|
224
235
|
readonly 'neutron-1': {
|
|
225
236
|
readonly id: "connection-7";
|
|
@@ -252,10 +263,7 @@ export function prepareLocalChainAccountKit(zone: Zone, makeRecorderKit: <T>(sto
|
|
|
252
263
|
readonly key_prefix: "FIXME";
|
|
253
264
|
};
|
|
254
265
|
};
|
|
255
|
-
readonly state: 3;
|
|
256
|
-
* @param {string} validatorAddress
|
|
257
|
-
* @param {Amount<'nat'>} ertpAmount
|
|
258
|
-
*/
|
|
266
|
+
readonly state: 3;
|
|
259
267
|
readonly transferChannel: {
|
|
260
268
|
readonly channelId: "channel-6994";
|
|
261
269
|
readonly portId: "transfer";
|
|
@@ -285,13 +293,14 @@ export function prepareLocalChainAccountKit(zone: Zone, makeRecorderKit: <T>(sto
|
|
|
285
293
|
readonly ordering: 0;
|
|
286
294
|
readonly state: 3;
|
|
287
295
|
readonly version: "ics20-1";
|
|
288
|
-
};
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
readonly 'stargaze-1': {
|
|
299
|
+
/**
|
|
289
300
|
* @param {string} validatorAddress
|
|
290
301
|
* @param {Amount<'nat'>} ertpAmount
|
|
291
302
|
* @returns {Promise<void>}
|
|
292
303
|
*/
|
|
293
|
-
};
|
|
294
|
-
readonly 'stargaze-1': {
|
|
295
304
|
readonly id: "connection-56";
|
|
296
305
|
readonly client_id: "07-tendermint-86";
|
|
297
306
|
readonly counterparty: {
|
|
@@ -329,11 +338,7 @@ export function prepareLocalChainAccountKit(zone: Zone, makeRecorderKit: <T>(sto
|
|
|
329
338
|
readonly counterPartyChannelId: "channel-4";
|
|
330
339
|
readonly counterPartyPortId: "transfer";
|
|
331
340
|
readonly ordering: 0;
|
|
332
|
-
readonly state: 3;
|
|
333
|
-
* Starting a transfer revokes the account holder. The associated
|
|
334
|
-
* updater will get a special notification that the account is being
|
|
335
|
-
* transferred.
|
|
336
|
-
*/
|
|
341
|
+
readonly state: 3;
|
|
337
342
|
readonly version: "ics20-1";
|
|
338
343
|
};
|
|
339
344
|
};
|
|
@@ -344,7 +349,7 @@ export function prepareLocalChainAccountKit(zone: Zone, makeRecorderKit: <T>(sto
|
|
|
344
349
|
readonly stakingTokens: readonly [{
|
|
345
350
|
readonly denom: "uatom";
|
|
346
351
|
}];
|
|
347
|
-
readonly icqEnabled: false;
|
|
352
|
+
readonly icqEnabled: false;
|
|
348
353
|
readonly connections: {
|
|
349
354
|
readonly 'agoric-3': {
|
|
350
355
|
readonly id: "connection-649";
|
|
@@ -363,14 +368,15 @@ export function prepareLocalChainAccountKit(zone: Zone, makeRecorderKit: <T>(sto
|
|
|
363
368
|
readonly counterPartyChannelId: "channel-405";
|
|
364
369
|
readonly counterPartyPortId: "transfer";
|
|
365
370
|
readonly ordering: 0;
|
|
366
|
-
readonly state: 3;
|
|
371
|
+
readonly state: 3;
|
|
367
372
|
readonly version: "ics20-1";
|
|
368
|
-
};
|
|
373
|
+
}; /** @returns {ChainAddress['address']} */
|
|
369
374
|
};
|
|
370
375
|
readonly 'juno-1': {
|
|
371
376
|
readonly id: "connection-372";
|
|
372
377
|
readonly client_id: "07-tendermint-439";
|
|
373
378
|
readonly counterparty: {
|
|
379
|
+
readonly client_id: "07-tendermint-3";
|
|
374
380
|
/**
|
|
375
381
|
* @param {AmountArg} amount an ERTP {@link Amount} or a
|
|
376
382
|
* {@link DenomAmount}
|
|
@@ -380,7 +386,6 @@ export function prepareLocalChainAccountKit(zone: Zone, makeRecorderKit: <T>(sto
|
|
|
380
386
|
* be set for 5 minutes in the future
|
|
381
387
|
* @returns {Promise<void>}
|
|
382
388
|
*/
|
|
383
|
-
readonly client_id: "07-tendermint-3";
|
|
384
389
|
readonly connection_id: "connection-2";
|
|
385
390
|
readonly prefix: {
|
|
386
391
|
readonly key_prefix: "FIXME";
|
|
@@ -2343,13 +2348,19 @@ export function prepareLocalChainAccountKit(zone: Zone, makeRecorderKit: <T>(sto
|
|
|
2343
2348
|
}): (args_0: {
|
|
2344
2349
|
account: import("@endo/exo").Guarded<{
|
|
2345
2350
|
getAddress(): string;
|
|
2346
|
-
getBalance(brand: Brand<"nat">):
|
|
2347
|
-
deposit(payment: Payment<"nat"
|
|
2348
|
-
|
|
2351
|
+
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
2352
|
+
deposit(payment: Payment<"nat" /**
|
|
2353
|
+
* @param {string} validatorAddress
|
|
2354
|
+
* @param {Amount<'nat'>} ertpAmount
|
|
2355
|
+
*/> /**
|
|
2356
|
+
* @param {string} validatorAddress
|
|
2357
|
+
* @param {Amount<'nat'>} ertpAmount
|
|
2358
|
+
*/, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
2359
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
2349
2360
|
executeTx<MT extends {
|
|
2350
2361
|
'@type': string;
|
|
2351
|
-
}[]>(messages: MT):
|
|
2352
|
-
monitorTransfers(tap:
|
|
2362
|
+
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/vatsafe").ResponseTo<MT[K_1]>>; }>;
|
|
2363
|
+
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
2353
2364
|
}>;
|
|
2354
2365
|
address: string;
|
|
2355
2366
|
storageNode: StorageNode;
|
|
@@ -2396,13 +2407,19 @@ export function prepareLocalChainAccountKit(zone: Zone, makeRecorderKit: <T>(sto
|
|
|
2396
2407
|
* transferred.
|
|
2397
2408
|
*/
|
|
2398
2409
|
/** @type {LocalChainAccount['deposit']} */
|
|
2399
|
-
deposit(payment: Payment<"nat"
|
|
2410
|
+
deposit(payment: Payment<"nat" /**
|
|
2411
|
+
* @param {string} validatorAddress
|
|
2412
|
+
* @param {Amount<'nat'>} ertpAmount
|
|
2413
|
+
*/> /**
|
|
2414
|
+
* @param {string} validatorAddress
|
|
2415
|
+
* @param {Amount<'nat'>} ertpAmount
|
|
2416
|
+
*/, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
2400
2417
|
/** @type {LocalChainAccount['withdraw']} */
|
|
2401
|
-
withdraw(amount: Amount<"nat">):
|
|
2418
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
2402
2419
|
/** @type {LocalChainAccount['executeTx']} */
|
|
2403
2420
|
executeTx<MT extends {
|
|
2404
2421
|
'@type': string;
|
|
2405
|
-
}[]>(messages: MT):
|
|
2422
|
+
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/vatsafe").ResponseTo<MT[K_1]>>; }>;
|
|
2406
2423
|
/** @returns {ChainAddress['address']} */
|
|
2407
2424
|
getAddress(): string;
|
|
2408
2425
|
/**
|
|
@@ -2424,13 +2441,19 @@ export type State = {
|
|
|
2424
2441
|
topicKit: RecorderKit<LocalChainAccountNotification>;
|
|
2425
2442
|
account: import("@endo/exo").Guarded<{
|
|
2426
2443
|
getAddress(): string;
|
|
2427
|
-
getBalance(brand: Brand<"nat">):
|
|
2428
|
-
deposit(payment: Payment<"nat"
|
|
2429
|
-
|
|
2444
|
+
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
2445
|
+
deposit(payment: Payment<"nat" /**
|
|
2446
|
+
* @param {string} validatorAddress
|
|
2447
|
+
* @param {Amount<'nat'>} ertpAmount
|
|
2448
|
+
*/> /**
|
|
2449
|
+
* @param {string} validatorAddress
|
|
2450
|
+
* @param {Amount<'nat'>} ertpAmount
|
|
2451
|
+
*/, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
2452
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
2430
2453
|
executeTx<MT extends {
|
|
2431
2454
|
'@type': string;
|
|
2432
|
-
}[]>(messages: MT):
|
|
2433
|
-
monitorTransfers(tap:
|
|
2455
|
+
}[]>(messages: MT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/vatsafe").ResponseTo<MT[K]>>; }>;
|
|
2456
|
+
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
2434
2457
|
}>;
|
|
2435
2458
|
address: string;
|
|
2436
2459
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-chain-account-kit.d.ts","sourceRoot":"","sources":["local-chain-account-kit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"local-chain-account-kit.d.ts","sourceRoot":"","sources":["local-chain-account-kit.js"],"names":[],"mappings":"AAqEO,0FAkES,WACd,GAAQ,QAAG,OAAO,WAAW,EAAE,MAAM,CAAC,WACnC,CAAC,CAAC,0HAxEI,GAAG;;;;;;;;;8CAaP,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA/CR;;;2BAGG;wBAEH;;;;;;2BAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAgFK;;;eAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAiDH;;;;uBAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA4CH,yCAAyC;;;;;;;wBAIzC;;;;;;;;2BAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA7IiC,MAAM,KAC/C,CAAC;yBAaU,QAAQ,KACrB,CAAO;;;WAGG,CAHT,CAAM;;;WAGG,mBAFQ,OAAO;yBAiBX,OAAO,KAAK,CAAC;;;uBAoBE,EAAE;;;;iBAnDjB,WAAW;;;QAalB;;;WAGG;mCAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;;;QAYxB;;;WAGG;qCAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;;;;;;;;;;;QA0BxB;;;WAGG;mCAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;;;QAsBxB;;;;WAIG;qCAHQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC,GACX,OAAO,CAAC,IAAI,CAAC;QA2B1B;;;;WAIG;QACH,2CAA2C;yBAtGrC,QAAQ,KACrB,CAAO;;;WAGG,CAHT,CAAM;;;WAGG,mBAFQ,OAAO;QAwGlB,4CAA4C;yBAvFrC,OAAO,KAAK,CAAC;QA2FpB,6CAA6C;;;uBAvEvB,EAAE;QA4ExB,yCAAyC;;QAIzC;;;;;;;;WAQG;0GADU,OAAO,CAAC,IAAI,CAAC;;GA8CjC;;aAtPa,MAAM;;;;;;0BA4DwB,MAAM,KAC/C,CAAC;yBAaU,QAAQ,KACrB,CAAO;;;WAGG,CAHT,CAAM;;;WAGG,mBAFQ,OAAO;yBAiBX,OAAO,KAAK,CAAC;;;uBAoBE,EAAE;;;;;mCAsIlB,UAAU,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC;0BAlQjD,cAAc;iCADU,6CAA6C;kCAGjD,cAAc;4BADhC,kBAAkB;+BAHoD,uBAAuB;kCAAvB,uBAAuB;2CAAvB,uBAAuB"}
|
|
@@ -6,6 +6,7 @@ import { makeTracer } from '@agoric/internal';
|
|
|
6
6
|
import { M } from '@agoric/vat-data';
|
|
7
7
|
import { TopicsRecordShape } from '@agoric/zoe/src/contractSupport/index.js';
|
|
8
8
|
import { InvitationShape } from '@agoric/zoe/src/typeGuards.js';
|
|
9
|
+
import { V } from '@agoric/vow/vat.js';
|
|
9
10
|
import { E } from '@endo/far';
|
|
10
11
|
import {
|
|
11
12
|
AmountArgShape,
|
|
@@ -159,9 +160,9 @@ export const prepareLocalChainAccountKit = (
|
|
|
159
160
|
};
|
|
160
161
|
const { account: lca } = this.state;
|
|
161
162
|
trace('lca', lca);
|
|
162
|
-
const delegatorAddress = await
|
|
163
|
+
const delegatorAddress = await V(lca).getAddress();
|
|
163
164
|
trace('delegatorAddress', delegatorAddress);
|
|
164
|
-
const [result] = await
|
|
165
|
+
const [result] = await V(lca).executeTx([
|
|
165
166
|
typedJson('/cosmos.staking.v1beta1.MsgDelegate', {
|
|
166
167
|
amount,
|
|
167
168
|
validatorAddress,
|
|
@@ -184,9 +185,9 @@ export const prepareLocalChainAccountKit = (
|
|
|
184
185
|
};
|
|
185
186
|
const { account: lca } = this.state;
|
|
186
187
|
trace('lca', lca);
|
|
187
|
-
const delegatorAddress = await
|
|
188
|
+
const delegatorAddress = await V(lca).getAddress();
|
|
188
189
|
trace('delegatorAddress', delegatorAddress);
|
|
189
|
-
const [response] = await
|
|
190
|
+
const [response] = await V(lca).executeTx([
|
|
190
191
|
typedJson('/cosmos.staking.v1beta1.MsgUndelegate', {
|
|
191
192
|
amount,
|
|
192
193
|
validatorAddress,
|
|
@@ -208,16 +209,16 @@ export const prepareLocalChainAccountKit = (
|
|
|
208
209
|
*/
|
|
209
210
|
/** @type {LocalChainAccount['deposit']} */
|
|
210
211
|
async deposit(payment, optAmountShape) {
|
|
211
|
-
return
|
|
212
|
+
return V(this.state.account).deposit(payment, optAmountShape);
|
|
212
213
|
},
|
|
213
214
|
/** @type {LocalChainAccount['withdraw']} */
|
|
214
215
|
async withdraw(amount) {
|
|
215
|
-
return
|
|
216
|
+
return V(this.state.account).withdraw(amount);
|
|
216
217
|
},
|
|
217
218
|
/** @type {LocalChainAccount['executeTx']} */
|
|
218
219
|
async executeTx(messages) {
|
|
219
220
|
// @ts-expect-error subtype
|
|
220
|
-
return
|
|
221
|
+
return V(this.state.account).executeTx(messages);
|
|
221
222
|
},
|
|
222
223
|
/** @returns {ChainAddress['address']} */
|
|
223
224
|
getAddress() {
|
|
@@ -252,7 +253,7 @@ export const prepareLocalChainAccountKit = (
|
|
|
252
253
|
? 0n
|
|
253
254
|
: await timestampHelper.getTimeoutTimestampNS());
|
|
254
255
|
|
|
255
|
-
const [result] = await
|
|
256
|
+
const [result] = await V(this.state.account).executeTx([
|
|
256
257
|
typedJson('/ibc.applications.transfer.v1.MsgTransfer', {
|
|
257
258
|
sourcePort: transferChannel.portId,
|
|
258
259
|
sourceChannel: transferChannel.channelId,
|
package/src/facade.d.ts
CHANGED
|
@@ -12,25 +12,27 @@ export function makeOrchestrationFacade({ zone, timerService, zcf, storageNode,
|
|
|
12
12
|
}>>;
|
|
13
13
|
}>>;
|
|
14
14
|
localchain: Remote<import("@endo/exo").Guarded<{
|
|
15
|
-
makeAccount():
|
|
15
|
+
makeAccount(): import("@agoric/vow").PromiseVow<import("@endo/exo").Guarded<{
|
|
16
16
|
getAddress(): string;
|
|
17
|
-
getBalance(brand: Brand<"nat">):
|
|
18
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
19
|
-
withdraw(amount: Amount<"nat">):
|
|
17
|
+
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
18
|
+
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
19
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
20
20
|
executeTx<MT extends {
|
|
21
21
|
'@type': string;
|
|
22
|
-
}[]>(messages: MT):
|
|
23
|
-
monitorTransfers(tap:
|
|
22
|
+
}[]>(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]>>; }>;
|
|
23
|
+
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
24
24
|
}>>;
|
|
25
|
-
query
|
|
25
|
+
query<T extends {
|
|
26
26
|
'@type': string;
|
|
27
|
-
}
|
|
28
|
-
|
|
27
|
+
} = {
|
|
28
|
+
'@type': string;
|
|
29
|
+
}>(request: T): import("@agoric/vow").PromiseVow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<T>>>;
|
|
30
|
+
queryMany<RT extends {
|
|
31
|
+
'@type': string;
|
|
32
|
+
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
29
33
|
error?: string | undefined;
|
|
30
|
-
reply:
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
}[]>;
|
|
34
|
+
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
35
|
+
}>; }>;
|
|
34
36
|
}>>;
|
|
35
37
|
chainHub: import("./utils/chainHub.js").ChainHub;
|
|
36
38
|
makeLocalChainAccountKit: ReturnType<typeof import("./exos/local-chain-account-kit.js").prepareLocalChainAccountKit>;
|
package/src/facade.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["facade.js"],"names":[],"mappings":"AA6JO;;;SAVG,GAAG;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"facade.d.ts","sourceRoot":"","sources":["facade.js"],"names":[],"mappings":"AA6JO;;;SAVG,GAAG;;;;;;;;;;;;;8BAvCsB,MAAM,KAAK,CAAC;6BAkBG,QAAQ,KAAK,CAAC,mBAE/C,OAChB;6BAsByB,OAAO,KAAK,CAAC;;;2BA8BR,EAAE;;;;;;;oBA2CosD,CAAC;;;uBAA6lB,EAAE;;;;;cAzEtzE,OAAO,qBAAqB,EAAE,QAAQ;8BACtB,UAAU,CACxC,cAAoB,mCAAmC,EAAE,2BAA2B,CAC/E;;IAsBF;;;;;;;;OAQG;gBAFkC,OAAO,EACrB,IAAI,6BAJhB,MAAM,OAGoB,OAAO,AAD1B,gCACmB,OAAO,WACrB,IAAI,AADgC,KAAK,MAAM,GACzD,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC;EAsCnD;kCAEa,UAAU,CAAC,OAAO,uBAAuB,CAAC;0BAzNjC,cAAc;kCACN,cAAc;4BAGpB,kBAAkB;kCAEgE,YAAY"}
|
package/src/facade.js
CHANGED
|
@@ -273,10 +273,10 @@ export function setupOrchestrationVat({ consume: { loadCriticalVat, portAllocato
|
|
|
273
273
|
consume: {
|
|
274
274
|
loadCriticalVat: VatLoader<any>;
|
|
275
275
|
portAllocator: import("@endo/exo").Guarded<{
|
|
276
|
-
allocateCustomIBCPort(specifiedName?: string): import("@agoric/vow").Vow<import("@agoric/network").Port
|
|
277
|
-
allocateICAControllerPort(): import("@agoric/vow").Vow<import("@agoric/network").Port
|
|
278
|
-
allocateICQControllerPort(): import("@agoric/vow").Vow<import("@agoric/network").Port
|
|
279
|
-
allocateCustomLocalPort(specifiedName?: string): import("@agoric/vow").Vow<import("@agoric/network").Port
|
|
276
|
+
allocateCustomIBCPort(specifiedName?: string): Promise<import("@agoric/vow").Vow<import("@agoric/network").Port>>;
|
|
277
|
+
allocateICAControllerPort(): Promise<import("@agoric/vow").Vow<import("@agoric/network").Port>>;
|
|
278
|
+
allocateICQControllerPort(): Promise<import("@agoric/vow").Vow<import("@agoric/network").Port>>;
|
|
279
|
+
allocateCustomLocalPort(specifiedName?: string): Promise<import("@agoric/vow").Vow<import("@agoric/network").Port>>;
|
|
280
280
|
}>;
|
|
281
281
|
};
|
|
282
282
|
produce: {
|
|
@@ -4,25 +4,27 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
4
4
|
stakeBld: Installation<(zcf: ZCF, privateArgs: {
|
|
5
5
|
agoricNames: import("@agoric/internal").Remote<import("@agoric/vats").NameHub>;
|
|
6
6
|
localchain: import("@agoric/internal").Remote<import("@endo/exo").Guarded<{
|
|
7
|
-
makeAccount():
|
|
7
|
+
makeAccount(): import("@agoric/vow").PromiseVow<import("@endo/exo").Guarded<{
|
|
8
8
|
getAddress(): string;
|
|
9
|
-
getBalance(brand: Brand<"nat">):
|
|
10
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
11
|
-
withdraw(amount: Amount<"nat">):
|
|
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
12
|
executeTx<MT extends {
|
|
13
13
|
'@type': string;
|
|
14
|
-
}[]>(messages: MT):
|
|
15
|
-
monitorTransfers(tap:
|
|
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
16
|
}>>;
|
|
17
|
-
query
|
|
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 {
|
|
18
23
|
'@type': string;
|
|
19
|
-
}
|
|
20
|
-
queryMany(requests: import("@agoric/cosmic-proto").TypedJson[]): Promise<{
|
|
24
|
+
}[]>(requests: RT): import("@agoric/vats/src/localchain.js").PromiseVowOfTupleMappedToGenerics<{ [K_1 in keyof RT]: import("@agoric/cosmic-proto").JsonSafe<{
|
|
21
25
|
error?: string | undefined;
|
|
22
|
-
reply:
|
|
23
|
-
|
|
24
|
-
};
|
|
25
|
-
}[]>;
|
|
26
|
+
reply: import("@agoric/cosmic-proto").ResponseTo<RT[K_1]>;
|
|
27
|
+
}>; }>;
|
|
26
28
|
}>>;
|
|
27
29
|
marshaller: {
|
|
28
30
|
toCapData: import("@endo/marshal").ToCapData<unknown>;
|
|
@@ -61,11 +63,11 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
61
63
|
'@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
|
|
62
64
|
}>>;
|
|
63
65
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<void>;
|
|
64
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
65
|
-
withdraw(amount: Amount<"nat">):
|
|
66
|
+
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
67
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
66
68
|
executeTx<MT extends {
|
|
67
69
|
'@type': string;
|
|
68
|
-
}[]>(messages: MT):
|
|
70
|
+
}[]>(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]>>; }>;
|
|
69
71
|
getAddress(): string;
|
|
70
72
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
71
73
|
}>;
|
|
@@ -82,11 +84,11 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
82
84
|
'@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
|
|
83
85
|
}>>;
|
|
84
86
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<void>;
|
|
85
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
86
|
-
withdraw(amount: Amount<"nat">):
|
|
87
|
+
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
88
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
87
89
|
executeTx<MT extends {
|
|
88
90
|
'@type': string;
|
|
89
|
-
}[]>(messages: MT):
|
|
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]>>; }>;
|
|
90
92
|
getAddress(): string;
|
|
91
93
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
92
94
|
}>>;
|
|
@@ -117,11 +119,11 @@ export function startStakeBld({ consume: { agoricNames: agoricNamesP, board, cha
|
|
|
117
119
|
'@type': "/cosmos.staking.v1beta1.MsgDelegateResponse";
|
|
118
120
|
}>>;
|
|
119
121
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<void>;
|
|
120
|
-
deposit(payment: Payment<"nat">, optAmountShape?: Pattern):
|
|
121
|
-
withdraw(amount: Amount<"nat">):
|
|
122
|
+
deposit(payment: Payment<"nat">, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<import("@agoric/ertp/src/types.js").NatAmount>;
|
|
123
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<globalThis.Payment<"nat">>;
|
|
122
124
|
executeTx<MT extends {
|
|
123
125
|
'@type': string;
|
|
124
|
-
}[]>(messages: MT):
|
|
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]>>; }>;
|
|
125
127
|
getAddress(): string;
|
|
126
128
|
transfer(amount: import("../orchestration-api.js").AmountArg, destination: import("../orchestration-api.js").ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Promise<void>;
|
|
127
129
|
}>;
|
|
@@ -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,OA6B7B,GAAA;;;;;0CA+D80B,MAAM,KAAK,CAAC;yCAA6gB,QAAQ,KAAK,CAAC,mBAA6B,OAAO;yCAAwjB,OAAO,KAAK,CAAC;;;uCAA6rB,EAAE;;;;;;;gCAAqjG,CAAC;;;mCAA6lB,EAAE;;;;;;;;;;;;;wBA1DhzM,OAAO,kBAAkB,EAAE,OAAO;;;;;;;;;;;2EA0D05C,OAAO,KAAK,CAAC;;;6EAAid,OAAO,KAAK,CAAC;;;;;;;;;;;2EAAs4B,OAAO,KAAK,CAAC;;;6EAA+yB,OAAO,KAAK,CAAC;6CAAjxE,QAAQ,KAAK,CAAC,mBAA6B,OAAO;6CAAwjB,OAAO,KAAK,CAAC;;;2CAA6rB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA1FrpF,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAwDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BN;sBApGqB,gCAAgC"}
|
package/src/service.d.ts
CHANGED
|
@@ -31,10 +31,10 @@ export function prepareOrchestrationTools(zone: Zone): {
|
|
|
31
31
|
};
|
|
32
32
|
export type OrchestrationPowers = {
|
|
33
33
|
portAllocator: Remote<import("@endo/exo").Guarded<{
|
|
34
|
-
allocateCustomIBCPort(specifiedName?: string): import("@agoric/vow").Vow<Port
|
|
35
|
-
allocateICAControllerPort(): import("@agoric/vow").Vow<Port
|
|
36
|
-
allocateICQControllerPort(): import("@agoric/vow").Vow<Port
|
|
37
|
-
allocateCustomLocalPort(specifiedName?: string): import("@agoric/vow").Vow<Port
|
|
34
|
+
allocateCustomIBCPort(specifiedName?: string): Promise<import("@agoric/vow").Vow<Port>>;
|
|
35
|
+
allocateICAControllerPort(): Promise<import("@agoric/vow").Vow<Port>>;
|
|
36
|
+
allocateICQControllerPort(): Promise<import("@agoric/vow").Vow<Port>>;
|
|
37
|
+
allocateCustomLocalPort(specifiedName?: string): Promise<import("@agoric/vow").Vow<Port>>;
|
|
38
38
|
}>>;
|
|
39
39
|
};
|
|
40
40
|
/**
|