@agoric/vats 0.15.2-dev-fbd8633.0 → 0.15.2-dev-a2c6d29.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/core/basic-behaviors.d.ts +6 -1108
- package/src/core/basic-behaviors.d.ts.map +1 -1
- package/src/core/boot-chain.d.ts +58 -1142
- package/src/core/boot-chain.d.ts.map +1 -1
- package/src/core/boot-sim.d.ts +1 -1
- package/src/core/boot-solo.d.ts +1 -1
- package/src/core/chain-behaviors.d.ts +8 -395
- package/src/core/chain-behaviors.d.ts.map +1 -1
- package/src/core/demoIssuers.d.ts +4 -4
- package/src/core/demoIssuers.d.ts.map +1 -1
- package/src/core/promise-space.d.ts +1 -1
- package/src/core/promise-space.d.ts.map +1 -1
- package/src/core/startWalletFactory.d.ts +18 -18
- package/src/core/startWalletFactory.d.ts.map +1 -1
- package/src/core/utils.d.ts +2 -66
- package/src/core/utils.d.ts.map +1 -1
- package/src/ibc.d.ts +12 -29
- package/src/ibc.d.ts.map +1 -1
- package/src/ibc.js +6 -2
- package/src/priceAuthorityRegistry.d.ts.map +1 -1
- package/src/proposals/localchain-proposal.d.ts +1 -49
- package/src/proposals/localchain-proposal.d.ts.map +1 -1
- package/src/proposals/network-proposal.d.ts +1 -1
- package/src/proposals/network-proposal.d.ts.map +1 -1
- package/src/proposals/network-proposal.js +5 -0
- package/src/proposals/upgrade-zoe-proposal.d.ts +12 -116
- package/src/proposals/upgrade-zoe-proposal.d.ts.map +1 -1
- package/src/proposals/zcf-proposal.d.ts +12 -116
- package/src/proposals/zcf-proposal.d.ts.map +1 -1
- package/src/vat-agoricNames.d.ts.map +1 -1
- package/src/vat-bank.d.ts +81 -143
- package/src/vat-bank.d.ts.map +1 -1
- package/src/vat-bridge.d.ts +4 -4
- package/src/vat-bridge.d.ts.map +1 -1
- package/src/vat-ibc.d.ts +2 -30
- package/src/vat-ibc.d.ts.map +1 -1
- package/src/vat-network.d.ts +65 -16
- package/src/vat-network.d.ts.map +1 -1
- package/src/vat-priceAuthority.d.ts +1 -1
- package/src/vat-priceAuthority.d.ts.map +1 -1
- package/src/vat-provisioning.d.ts.map +1 -1
- package/src/virtual-purse.d.ts +20 -20
- package/src/virtual-purse.d.ts.map +1 -1
- package/tools/bank-utils.d.ts +1 -1
|
@@ -125,8 +125,8 @@ import { Stable } from '@agoric/internal/src/tokens.js';
|
|
|
125
125
|
*/
|
|
126
126
|
declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<import("@agoric/smart-wallet/src/walletFactory.js").start>): Promise<import("@agoric/zoe/src/zoeService/utils.js").StartedInstanceKit<(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
|
|
127
127
|
storageNode: ERef<StorageNode>;
|
|
128
|
-
walletBridgeManager?: ERef<import("
|
|
129
|
-
walletReviver?: ERef<
|
|
128
|
+
walletBridgeManager?: ERef<import("../../index.js").ScopedBridgeManager>;
|
|
129
|
+
walletReviver?: ERef<WalletReviver>;
|
|
130
130
|
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
131
131
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
132
132
|
provideSmartWallet(address: string, bank: ERef<import("../vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("../types.js").NameAdmin>): Promise<[wallet: {
|
|
@@ -138,17 +138,17 @@ declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<
|
|
|
138
138
|
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
139
139
|
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
140
140
|
}>;
|
|
141
|
-
getCurrentSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
142
|
-
getUpdatesSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
141
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
142
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
143
143
|
getPublicTopics(): {
|
|
144
144
|
current: {
|
|
145
145
|
description: string;
|
|
146
|
-
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
146
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
147
147
|
storagePath: Promise<string>;
|
|
148
148
|
};
|
|
149
149
|
updates: {
|
|
150
150
|
description: string;
|
|
151
|
-
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
151
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
152
152
|
storagePath: Promise<string>;
|
|
153
153
|
};
|
|
154
154
|
};
|
|
@@ -162,17 +162,17 @@ declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<
|
|
|
162
162
|
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
163
163
|
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
164
164
|
}>;
|
|
165
|
-
getCurrentSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
166
|
-
getUpdatesSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
165
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
166
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
167
167
|
getPublicTopics(): {
|
|
168
168
|
current: {
|
|
169
169
|
description: string;
|
|
170
|
-
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
170
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
171
171
|
storagePath: Promise<string>;
|
|
172
172
|
};
|
|
173
173
|
updates: {
|
|
174
174
|
description: string;
|
|
175
|
-
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
175
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
176
176
|
storagePath: Promise<string>;
|
|
177
177
|
};
|
|
178
178
|
};
|
|
@@ -186,17 +186,17 @@ declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<
|
|
|
186
186
|
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
187
187
|
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
188
188
|
}>;
|
|
189
|
-
getCurrentSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
190
|
-
getUpdatesSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
189
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
190
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
191
191
|
getPublicTopics(): {
|
|
192
192
|
current: {
|
|
193
193
|
description: string;
|
|
194
|
-
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
194
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
195
195
|
storagePath: Promise<string>;
|
|
196
196
|
};
|
|
197
197
|
updates: {
|
|
198
198
|
description: string;
|
|
199
|
-
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
199
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
200
200
|
storagePath: Promise<string>;
|
|
201
201
|
};
|
|
202
202
|
};
|
|
@@ -210,17 +210,17 @@ declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<
|
|
|
210
210
|
executeOffer(offerSpec: OfferSpec): Promise<void>;
|
|
211
211
|
tryExitOffer(offerId: OfferId): Promise<void>;
|
|
212
212
|
}>;
|
|
213
|
-
getCurrentSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
214
|
-
getUpdatesSubscriber(): Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
213
|
+
getCurrentSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
214
|
+
getUpdatesSubscriber(): globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
215
215
|
getPublicTopics(): {
|
|
216
216
|
current: {
|
|
217
217
|
description: string;
|
|
218
|
-
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
218
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").CurrentWalletRecord>;
|
|
219
219
|
storagePath: Promise<string>;
|
|
220
220
|
};
|
|
221
221
|
updates: {
|
|
222
222
|
description: string;
|
|
223
|
-
subscriber: Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
223
|
+
subscriber: globalThis.Subscriber<import("@agoric/smart-wallet/src/smartWallet.js").UpdateRecord>;
|
|
224
224
|
storagePath: Promise<string>;
|
|
225
225
|
};
|
|
226
226
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"AAiFO,qnBArBI,eAAe,GACzB,qBAAyB,GACzB,cAAkB,CAAC;IACnB,6BAAmC,EAAE,OAAO,qCAAqC,EAAE,+BAA+B,CAAC;IACnH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;;;;;;;;;;;;;EAWN;uCAjSY,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;uBAftC,gCAAgC;AASvD;;;;;;;GAOG;AAEH,2CARW,IAAI,CAAC,UAAU,CAAC,QAChB,YAAY,CACtB,OAAW,2CAA2C,EAAE,KAAK,CAC1D,kFAyGyD,IAAI,wBAC9D,CAAC,eAEF;IACA,aAAe,KAAM,WAAW,CAAC,CAAC;IAAC,mBAEjC,CAAF,EAAE,KAAK,OACH,gBAAa,EAAE,mBAAmB,CAAC,CAAC;IAAA,aAAoB,CAAA,EAAC,KAAO,aAAY,CAAC,CAAC;CACnF,WAGE,OACC,kBAAc,EAAE,OAChB;;kDA8KugB,KAAK,OAAO,gBAA8B,EAAE,IAAI,CAAC,uBAAwB,KAAK,OAAO,aAA2B,EAAE,SAAS,CAAC;8CAA022B,OAAO,eAAe,EAAE,OAAO,CAAC,SAAQ,IAAK,CAAC;;iCAA//R,OAAO;;;wCAAy1I,SAAS;sCAA+tH,OAAO;;;;;;;;;;;;;;;;;;sEAA05B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;sEAAP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;sEAAP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;KA/R183B"}
|
package/src/core/utils.d.ts
CHANGED
|
@@ -43,71 +43,7 @@ export function makeMyAddressNameAdminKit(address: string): {
|
|
|
43
43
|
nameHub: import("../types.js").NameHub;
|
|
44
44
|
myAddressNameAdmin: import("../types.js").MyAddressNameAdmin;
|
|
45
45
|
};
|
|
46
|
-
export function makeVatSpace(svc: ERef<
|
|
47
|
-
waitForBundleCap(bundleID: any): any;
|
|
48
|
-
getBundleCap(bundleID: any): any;
|
|
49
|
-
getNamedBundleCap(name: any): any;
|
|
50
|
-
getBundleIDByName(name: any): any;
|
|
51
|
-
createMeter(remaining: any, threshold: any): import("@agoric/swingset-liveslots").KindFacet<{
|
|
52
|
-
addRemaining({ state }: {
|
|
53
|
-
state: any;
|
|
54
|
-
}, delta: any): void;
|
|
55
|
-
setThreshold({ state }: {
|
|
56
|
-
state: any;
|
|
57
|
-
}, newThreshold: any): void;
|
|
58
|
-
get: ({ state }: {
|
|
59
|
-
state: any;
|
|
60
|
-
}) => any;
|
|
61
|
-
getNotifier: ({ _self }: {
|
|
62
|
-
_self: any;
|
|
63
|
-
}) => never;
|
|
64
|
-
}>;
|
|
65
|
-
createUnlimitedMeter(_context: any): import("@agoric/swingset-liveslots").KindFacet<{
|
|
66
|
-
addRemaining(_context: any, _delta: any): void;
|
|
67
|
-
setThreshold(_context: any, _newThreshold: any): void;
|
|
68
|
-
get: () => {
|
|
69
|
-
remaining: string;
|
|
70
|
-
threshold: number;
|
|
71
|
-
};
|
|
72
|
-
getNotifier: ({ _self }: {
|
|
73
|
-
_self: any;
|
|
74
|
-
}) => never;
|
|
75
|
-
}>;
|
|
76
|
-
createVat(bundleOrBundleCap: any, options?: {}): Promise<{
|
|
77
|
-
adminNode: import("@agoric/swingset-liveslots").KindFacet<{
|
|
78
|
-
terminateWithFailure({ state }: {
|
|
79
|
-
state: any;
|
|
80
|
-
}, reason: any): void;
|
|
81
|
-
done({ state }: {
|
|
82
|
-
state: any;
|
|
83
|
-
}): any;
|
|
84
|
-
upgrade({ state }: {
|
|
85
|
-
state: any;
|
|
86
|
-
}, bundlecap: any, options: any): Promise<any>;
|
|
87
|
-
changeOptions({ state }: {
|
|
88
|
-
state: any;
|
|
89
|
-
}, options: any): void;
|
|
90
|
-
}>;
|
|
91
|
-
root: any;
|
|
92
|
-
}>;
|
|
93
|
-
createVatByName(bundleName: any, options?: {}): Promise<{
|
|
94
|
-
adminNode: import("@agoric/swingset-liveslots").KindFacet<{
|
|
95
|
-
terminateWithFailure({ state }: {
|
|
96
|
-
state: any;
|
|
97
|
-
}, reason: any): void;
|
|
98
|
-
done({ state }: {
|
|
99
|
-
state: any;
|
|
100
|
-
}): any;
|
|
101
|
-
upgrade({ state }: {
|
|
102
|
-
state: any;
|
|
103
|
-
}, bundlecap: any, options: any): Promise<any>;
|
|
104
|
-
changeOptions({ state }: {
|
|
105
|
-
state: any;
|
|
106
|
-
}, options: any): void;
|
|
107
|
-
}>;
|
|
108
|
-
root: any;
|
|
109
|
-
}>;
|
|
110
|
-
}>>, criticalVatKey: unknown, log?: ((...args: any) => void) | undefined, label?: string | undefined): {
|
|
46
|
+
export function makeVatSpace(svc: ERef<ReturnType<Awaited<VatAdminVat>["createVatAdminService"]>>, criticalVatKey: unknown, log?: ((...args: any) => void) | undefined, label?: string | undefined): {
|
|
111
47
|
space: {
|
|
112
48
|
consume: {
|
|
113
49
|
agoricNames: Promise<{
|
|
@@ -168,7 +104,7 @@ export function makeVatSpace(svc: ERef<import("@endo/exo").Guarded<{
|
|
|
168
104
|
}>>;
|
|
169
105
|
};
|
|
170
106
|
};
|
|
171
|
-
durableStore: MapStore<
|
|
107
|
+
durableStore: globalThis.MapStore<any, any>;
|
|
172
108
|
};
|
|
173
109
|
export type VatStore = {
|
|
174
110
|
/**
|
package/src/core/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH,kCAJU,GACJ,CAAC,IAAI,MAAM,aAAa,GAAG,GAAG,EAAE,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,MAAM,GAAE,GACjE,CA+DD;AAEH,8BAA8B;AAC9B,8BADW,eAAe,CAKxB;AAQK,gCAHI,MAAM,8BACN;IAAE,IAAI,EAAE;QAAE,KAAK,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,YAAY,CAAA;KAAE,CAAA;CAAE,iBAK5D;AAQM,yCAJI,CAAC,CAAC,GAAG,IAAI,KAAA,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,WACrC,OAAO,KACR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAG0B;AAWvD,kCALI,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7 @@
|
|
|
1
1
|
export function prepareIBCConnectionHandler(zone: Zone): (args_0: {
|
|
2
2
|
protocolUtils: any;
|
|
3
|
-
channelKeyToConnP: MapStore<string,
|
|
4
|
-
channelKeyToSeqAck: MapStore<string, MapStore<number,
|
|
3
|
+
channelKeyToConnP: globalThis.MapStore<string, Remote<Connection, {}>>;
|
|
4
|
+
channelKeyToSeqAck: globalThis.MapStore<string, globalThis.MapStore<number, VowKit<string>>>;
|
|
5
5
|
}, args_1: {
|
|
6
6
|
channelID: `channel-${number}`;
|
|
7
7
|
portID: string;
|
|
@@ -14,7 +14,7 @@ export function prepareIBCConnectionHandler(zone: Zone): (args_0: {
|
|
|
14
14
|
/** @type {Required<ConnectionHandler>['onReceive']} */
|
|
15
15
|
onReceive(connection: Remote<Connection>, ack: Bytes, c: Remote<ConnectionHandler>, opts?: Record<string, any>): PromiseVow<string>;
|
|
16
16
|
/** @type {Required<ConnectionHandler>['onClose']} */
|
|
17
|
-
onClose(connection: Remote<Connection>, reason?: CloseReason, c?: Remote<ConnectionHandler>): PromiseVow<void>;
|
|
17
|
+
onClose(connection: Remote<Connection>, reason?: CloseReason, c?: Remote<ConnectionHandler> | undefined): PromiseVow<void>;
|
|
18
18
|
}>;
|
|
19
19
|
export function prepareIBCProtocol(zone: Zone, powers: {
|
|
20
20
|
when: <T, TResult1 = import("@agoric/vow").Unwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow/src/types.js").Unwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
|
|
@@ -26,29 +26,6 @@ export function prepareIBCProtocol(zone: Zone, powers: {
|
|
|
26
26
|
}) => {
|
|
27
27
|
protocolHandler: ProtocolHandler;
|
|
28
28
|
bridgeHandler: BridgeHandler;
|
|
29
|
-
} | {
|
|
30
|
-
protocolHandler: import("@endo/exo").Guarded<{
|
|
31
|
-
/** @type {Required<ProtocolHandler>['onCreate']} */
|
|
32
|
-
onCreate(protocol: Remote<ProtocolImpl>, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
33
|
-
/** @type {Required<ProtocolHandler>['onInstantiate']} */
|
|
34
|
-
onInstantiate(port: Remote<Port>, localAddr: Endpoint, remote: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<string>;
|
|
35
|
-
/** @type {Required<ProtocolHandler>['generatePortID']} */
|
|
36
|
-
generatePortID(localAddr: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<string>;
|
|
37
|
-
/** @type {Required<ProtocolHandler>['onBind']} */
|
|
38
|
-
onBind(port: Remote<Port>, localAddr: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
39
|
-
/** @type {Required<ProtocolHandler>['onConnect']} */
|
|
40
|
-
onConnect(port: Remote<Port>, localAddr: Endpoint, remote: Endpoint, c: Remote<ConnectionHandler>, p: Remote<ProtocolHandler>): PromiseVow<AttemptDescription>;
|
|
41
|
-
/** @type {Required<ProtocolHandler>['onListen']} */
|
|
42
|
-
onListen(port: Remote<Port>, localAddr: Endpoint, listenHandler: Remote<ListenHandler>, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
43
|
-
/** @type {Required<ProtocolHandler>['onListenRemove']} */
|
|
44
|
-
onListenRemove(port: Remote<Port>, localAddr: Endpoint, listenHandler: Remote<ListenHandler>, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
45
|
-
/** @type {Required<ProtocolHandler>['onRevoke']} */
|
|
46
|
-
onRevoke(port: Remote<Port>, localAddr: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
47
|
-
}>;
|
|
48
|
-
bridgeHandler: import("@endo/exo").Guarded<{
|
|
49
|
-
/** @param {IBCEvent<IBCBridgeEvent>} obj */
|
|
50
|
-
fromBridge(obj: IBCEvent<IBCBridgeEvent>): Promise<import("@agoric/vow").Vow<any> | undefined>;
|
|
51
|
-
}>;
|
|
52
29
|
};
|
|
53
30
|
export function prepareCallbacks(zone: Zone): (dibcBridgeManager: ScopedBridgeManager) => import("@endo/exo").Guarded<{
|
|
54
31
|
/**
|
|
@@ -62,18 +39,24 @@ export type OnConnectP = {
|
|
|
62
39
|
resolver: VowResolver<AttemptDescription>;
|
|
63
40
|
};
|
|
64
41
|
export type Outbound = Omit<ConnectingInfo, "counterparty" | "channelID" | "counterpartyVersion"> & {
|
|
65
|
-
localAddr:
|
|
42
|
+
localAddr: string;
|
|
66
43
|
onConnectP: OnConnectP;
|
|
67
44
|
counterparty: {
|
|
68
45
|
port_id: string;
|
|
69
46
|
};
|
|
70
47
|
};
|
|
71
48
|
import type { Zone } from '@agoric/base-zone';
|
|
49
|
+
import type { Connection } from '@agoric/network';
|
|
50
|
+
import type { Remote } from '@agoric/vow';
|
|
72
51
|
import type { VowKit } from '@agoric/vow';
|
|
52
|
+
import type { Endpoint } from '@agoric/network';
|
|
53
|
+
import type { ConnectionHandler } from '@agoric/network';
|
|
54
|
+
import type { PromiseVow } from '@agoric/vow';
|
|
55
|
+
import type { Bytes } from '@agoric/network';
|
|
56
|
+
import type { ProtocolHandler } from '@agoric/network';
|
|
73
57
|
import type { BridgeHandler } from './types.js';
|
|
74
|
-
import type { IBCBridgeEvent } from './types.js';
|
|
75
|
-
import type { IBCEvent } from './types.js';
|
|
76
58
|
import type { ScopedBridgeManager } from './types.js';
|
|
59
|
+
import type { AttemptDescription } from '@agoric/network';
|
|
77
60
|
import type { VowResolver } from '@agoric/vow';
|
|
78
61
|
import type { ConnectingInfo } from './types.js';
|
|
79
62
|
//# sourceMappingURL=ibc.d.ts.map
|
package/src/ibc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ibc.d.ts","sourceRoot":"","sources":["ibc.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ibc.d.ts","sourceRoot":"","sources":["ibc.js"],"names":[],"mappings":"AAiDO;mBAciB,GAAG;;;;;YAYV,MAAM;;aAEL,MAAM;WACR,SAAS,GAAG,WAAW;;IAuBjC,oDAAoD;sDAET,QAAS,cAElD,QAAO;IAWT,uDAAuD;mDAJlC,KAAM,uCAEN,mBAAoB;IAsBzC,qDAAqD;qDAhB/C,WACN;GAyCL;AAMM;uFAxJN,CAAC,yBAC6C,OAAO,0BAAY,EAAE,MAAM,CAAC,CAAC,CAC5E;uFAwHQ,OAAA,0BAAU,EAAE,IAAI,CAAC,GAAC,GAAE,OAAQ,0BAAY,EACxC,GAAL,CAAK,GAAH,CAAC,CAAC;;;;cAoCS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC;;;;EAunB7D;AAIM;IAOD;;;OAGG;qBAFQ,MAAM,OACN,GAAG;GAYnB;;;;;;;gBApxBgB,UAAU;kBACR;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;;0BAbf,mBAAmB;gCAFsE,iBAAiB;4BAG7D,aAAa;4BAAb,aAAa;8BAH+B,iBAAiB;uCAAjB,iBAAiB;gCAG7D,aAAa;2BAH+B,iBAAiB;qCAAjB,iBAAiB;mCACyE,YAAY;yCAAZ,YAAY;wCAZjL,iBAAiB;iCAcc,aAAa;oCAFyH,YAAY"}
|
package/src/ibc.js
CHANGED
|
@@ -14,7 +14,10 @@ import {
|
|
|
14
14
|
encodeRemoteIbcAddress,
|
|
15
15
|
} from '../tools/ibc-utils.js';
|
|
16
16
|
|
|
17
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* @import {LocalIbcAddress, RemoteIbcAddress} from '../tools/ibc-utils.js';
|
|
19
|
+
* @import {AttemptDescription} from '@agoric/network';
|
|
20
|
+
*/
|
|
18
21
|
|
|
19
22
|
// CAVEAT: IBC acks cannot be empty, as the Cosmos IAVL tree cannot represent
|
|
20
23
|
// empty acknowledgements as distinct from unacknowledged packets.
|
|
@@ -24,9 +27,10 @@ const DEFAULT_ACKNOWLEDGEMENT = '\x00';
|
|
|
24
27
|
const DEFAULT_PACKET_TIMEOUT_NS = 60n * 60n * 1_000_000_000n;
|
|
25
28
|
|
|
26
29
|
/**
|
|
30
|
+
* @import {Endpoint, Connection, ConnectionHandler, InboundAttempt, Bytes, ProtocolHandler, ProtocolImpl} from '@agoric/network';
|
|
27
31
|
* @import {BridgeHandler, ScopedBridgeManager, ConnectingInfo, IBCChannelID, IBCChannelOrdering, IBCEvent, IBCPacket, IBCPortID, IBCDowncallPacket, IBCDowncallMethod, IBCDowncall, IBCBridgeEvent} from './types.js';
|
|
28
32
|
* @import {Zone} from '@agoric/base-zone';
|
|
29
|
-
* @import {Remote, VowKit, VowResolver, VowTools} from '@agoric/vow';
|
|
33
|
+
* @import {PromiseVow, Remote, VowKit, VowResolver, VowTools} from '@agoric/vow';
|
|
30
34
|
*/
|
|
31
35
|
|
|
32
36
|
/** @typedef {VowKit<AttemptDescription>} OnConnectP */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAuthorityRegistry.d.ts","sourceRoot":"","sources":["priceAuthorityRegistry.js"],"names":[],"mappings":"AA4CO,uDAHI,OAAO,kBAAkB,EAAE,OAAO,GAChC,sBAAsB,CA4KlC;;YAtMa,MAAM,IAAI;;;;;;
|
|
1
|
+
{"version":3,"file":"priceAuthorityRegistry.d.ts","sourceRoot":"","sources":["priceAuthorityRegistry.js"],"names":[],"mappings":"AA4CO,uDAHI,OAAO,kBAAkB,EAAE,OAAO,GAChC,sBAAsB,CA4KlC;;YAtMa,MAAM,IAAI;;;;;;4BAKV,CACb,EAAM,EAAE,IAAI,CAAC,cAAc,CAAC,EAC5B,OAAW,EAAE,KAAK,EAClB,QAAY,EAAE,KAAK,EACnB,KAAS,CAAC,EAAE,OAAO,KACZ,OAAO,CAAC,OAAO,CAAC;;;;;;;;oBAQV,cAAc;gBACd,2BAA2B"}
|
|
@@ -59,54 +59,6 @@ export function getManifestForLocalChain(_powers: any, { localchainRef }: {
|
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
61
|
export type LocalChainVats = {
|
|
62
|
-
localchain: ERef<
|
|
63
|
-
makeLocalChain(initialPowers?: Partial<import("../localchain.js").LocalChainPowers> | undefined): import("@endo/exo").GuardedKit<{
|
|
64
|
-
admin: {
|
|
65
|
-
setPower<K extends keyof import("../localchain.js").LocalChainPowers>(name: K, power?: import("../localchain.js").LocalChainPowers[K] | undefined): void;
|
|
66
|
-
};
|
|
67
|
-
public: {
|
|
68
|
-
createAccount(): Promise<import("@endo/exo").Guarded<{
|
|
69
|
-
getAddress(): Promise<string>;
|
|
70
|
-
deposit(payment: Payment): Promise<globalThis.Amount<globalThis.AssetKind>>;
|
|
71
|
-
executeTx(messages: import("@agoric/cosmic-proto").TypedJson<unknown>[]): Promise<{
|
|
72
|
-
'@type': string;
|
|
73
|
-
}[]>;
|
|
74
|
-
}>>;
|
|
75
|
-
query(request: import("@agoric/cosmic-proto").TypedJson): Promise<{
|
|
76
|
-
'@type': string;
|
|
77
|
-
}>;
|
|
78
|
-
queryMany(requests: import("@agoric/cosmic-proto").TypedJson[]): Promise<{
|
|
79
|
-
error?: string | undefined;
|
|
80
|
-
reply: {
|
|
81
|
-
'@type': string;
|
|
82
|
-
};
|
|
83
|
-
}[]>;
|
|
84
|
-
};
|
|
85
|
-
}>;
|
|
86
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
87
|
-
makeLocalChain(initialPowers?: Partial<import("../localchain.js").LocalChainPowers> | undefined): import("@endo/exo").GuardedKit<{
|
|
88
|
-
admin: {
|
|
89
|
-
setPower<K extends keyof import("../localchain.js").LocalChainPowers>(name: K, power?: import("../localchain.js").LocalChainPowers[K] | undefined): void;
|
|
90
|
-
};
|
|
91
|
-
public: {
|
|
92
|
-
createAccount(): Promise<import("@endo/exo").Guarded<{
|
|
93
|
-
getAddress(): Promise<string>;
|
|
94
|
-
deposit(payment: Payment): Promise<globalThis.Amount<globalThis.AssetKind>>;
|
|
95
|
-
executeTx(messages: import("@agoric/cosmic-proto").TypedJson<unknown>[]): Promise<{
|
|
96
|
-
'@type': string;
|
|
97
|
-
}[]>;
|
|
98
|
-
}>>;
|
|
99
|
-
query(request: import("@agoric/cosmic-proto").TypedJson): Promise<{
|
|
100
|
-
'@type': string;
|
|
101
|
-
}>;
|
|
102
|
-
queryMany(requests: import("@agoric/cosmic-proto").TypedJson[]): Promise<{
|
|
103
|
-
error?: string | undefined;
|
|
104
|
-
reply: {
|
|
105
|
-
'@type': string;
|
|
106
|
-
};
|
|
107
|
-
}[]>;
|
|
108
|
-
};
|
|
109
|
-
}>;
|
|
110
|
-
}>>;
|
|
62
|
+
localchain: ERef<import("../vat-localchain.js").LocalChainVat>;
|
|
111
63
|
};
|
|
112
64
|
//# sourceMappingURL=localchain-proposal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localchain-proposal.d.ts","sourceRoot":"","sources":["localchain-proposal.js"],"names":[],"mappings":"AA0BO,2QArBI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,eAAqB,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;QACtC,aAAmB,EAAE,OAAO,UAAU,EAAE,aAAa,CAAC;QACtD,uBAA6B,EAAE,OAAO,UAAU,EAAE,mBAAmB,CAAC;QACtE,WAAiB,EAAE,OAAO,CAAC,OAAO,gBAAgB,EAAE,WAAW,CAAC,CAAC;KAC5D,CAAC;IACN,OAAW,EAAE;QACb,UAAgB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAChC,eAAqB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QACrC,aAAmB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QACnC,uBAA6B,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;KACxC,CAAC;CACH;IAEgD,OAAO,EAAhD;QAAE,aAAa,EAAE,YAAY,CAAA;KAAE;kBAoFzC;AAUM,2EAPI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,UAAgB,EAAE,OAAO,kBAAkB,EAAE,UAAU,CAAC;KACnD,CAAC;CACH,YACO,MAAM,iBAOhB;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BL
|
|
1
|
+
{"version":3,"file":"localchain-proposal.d.ts","sourceRoot":"","sources":["localchain-proposal.js"],"names":[],"mappings":"AA0BO,2QArBI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,eAAqB,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;QACtC,aAAmB,EAAE,OAAO,UAAU,EAAE,aAAa,CAAC;QACtD,uBAA6B,EAAE,OAAO,UAAU,EAAE,mBAAmB,CAAC;QACtE,WAAiB,EAAE,OAAO,CAAC,OAAO,gBAAgB,EAAE,WAAW,CAAC,CAAC;KAC5D,CAAC;IACN,OAAW,EAAE;QACb,UAAgB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAChC,eAAqB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QACrC,aAAmB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QACnC,uBAA6B,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;KACxC,CAAC;CACH;IAEgD,OAAO,EAAhD;QAAE,aAAa,EAAE,YAAY,CAAA;KAAE;kBAoFzC;AAUM,2EAPI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,UAAgB,EAAE,OAAO,kBAAkB,EAAE,UAAU,CAAC;KACnD,CAAC;CACH,YACO,MAAM,iBAOhB;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BL;6BA/HW;IACZ,UAAc,EAAE,IAAI,CAAC,OAAO,sBAAsB,EAAE,aAAa,CAAC,CAAC;CAChE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function registerNetworkProtocols(vats: SoloVats | NetVats, dibcBridgeManager?: ERef<import("../types.js").ScopedBridgeManager> | undefined): Promise<void>;
|
|
1
|
+
export function registerNetworkProtocols(vats: SoloVats | NetVats, dibcBridgeManager?: globalThis.ERef<import("../types.js").ScopedBridgeManager> | undefined): Promise<void>;
|
|
2
2
|
export function setupNetworkProtocols({ consume: { client, loadCriticalVat, bridgeManager: bridgeManagerP, provisioning, vatUpgradeInfo: vatUpgradeInfoP, }, produce: { portAllocator, vatUpgradeInfo: produceVatUpgradeInfo }, }: BootstrapPowers & {
|
|
3
3
|
consume: {
|
|
4
4
|
loadCriticalVat: VatLoader<any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-proposal.d.ts","sourceRoot":"","sources":["network-proposal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"network-proposal.d.ts","sourceRoot":"","sources":["network-proposal.js"],"names":[],"mappings":"AAwBO,+CAHI,QAAQ,GAAG,OAAO,6GAuC5B;AAkCM,mOAhBI,eAAe,GAAG;IAC5B,OAAW,EAAE;QAAE,eAAe,EAAE,SAAS,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;IACjD,OAAW,EAAE;QAAE,aAAa,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;CAC3C;IAEmE,OAAO,EAAnE;QAAE,UAAU,EAAE,YAAY,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE;kBAgF5D;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;EAsBL;;;;;;;;;;;;;;;;;yBArGW,CAAC,CAAC,IAAI,EAAE,SAAS,KAAK,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,CAAC;;;;;;;;;;;;;;;;;sBAE7D;IACZ,OAAW,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC9B,GAAO,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACtB,YAAgB,EAAE,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC;CACjD"}
|
|
@@ -11,6 +11,11 @@ import { makeScalarBigMapStore } from '@agoric/vat-data';
|
|
|
11
11
|
// bootstrap vat can't yet be upgraded.
|
|
12
12
|
import { when } from '@agoric/vat-data/vow.js';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @import {ProtocolHandler} from '@agoric/network';
|
|
16
|
+
* @import {Remote} from '@agoric/vow';
|
|
17
|
+
*/
|
|
18
|
+
|
|
14
19
|
const NUM_IBC_PORTS_PER_CLIENT = 3;
|
|
15
20
|
|
|
16
21
|
/**
|
|
@@ -16,12 +16,7 @@ export function upgradeZoe({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
16
16
|
modules: {
|
|
17
17
|
behaviors: {
|
|
18
18
|
bridgeCoreEval: (allPowers: BootstrapPowers) => Promise<void>;
|
|
19
|
-
makeProvisioner: ({ consume: { clientCreator, loadCriticalVat }, vats: { comms, vattp }, produce: { provisioning }, }:
|
|
20
|
-
vatAdminSvc: VatAdminSvc;
|
|
21
|
-
}, {}, {
|
|
22
|
-
loadVat: VatLoader<unknown>;
|
|
23
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
24
|
-
}> & any & {
|
|
19
|
+
makeProvisioner: ({ consume: { clientCreator, loadCriticalVat }, vats: { comms, vattp }, produce: { provisioning }, }: BootstrapPowers & {
|
|
25
20
|
consume: {
|
|
26
21
|
loadCriticalVat: ERef<VatLoader<ProvisioningVat>>;
|
|
27
22
|
};
|
|
@@ -32,32 +27,17 @@ export function upgradeZoe({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
32
27
|
template?: Record<string, unknown>;
|
|
33
28
|
}) => Promise<void>;
|
|
34
29
|
startTimerService: ({ devices: { timer: timerDevice }, vats: { timer: timerVat }, consume: { client }, produce: { chainTimerService: produceTimer }, brand: { produce: { timer }, }, }: BootstrapPowers) => Promise<void>;
|
|
35
|
-
makeBridgeManager: ({ consume: { loadCriticalVat }, devices: { bridge }, produce: { bridgeManager: bridgeManagerP, provisionBridgeManager, provisionWalletBridgeManager, walletBridgeManager, }, }: BootDevices<ChainDevices> &
|
|
36
|
-
vatAdminSvc: VatAdminSvc;
|
|
37
|
-
}, {}, {
|
|
38
|
-
loadVat: VatLoader<unknown>;
|
|
39
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
40
|
-
}> & {
|
|
30
|
+
makeBridgeManager: ({ consume: { loadCriticalVat }, devices: { bridge }, produce: { bridgeManager: bridgeManagerP, provisionBridgeManager, provisionWalletBridgeManager, walletBridgeManager, }, }: BootDevices<ChainDevices> & BootstrapSpace & {
|
|
41
31
|
consume: {
|
|
42
32
|
loadCriticalVat: ERef<VatLoader<ChainStorageVat>>;
|
|
43
33
|
};
|
|
44
34
|
}) => Promise<void>;
|
|
45
|
-
makeChainStorage: ({ consume: { loadCriticalVat, bridgeManager: bridgeManagerP }, produce: { chainStorage: chainStorageP, storageBridgeManager: storageBridgeManagerP, }, }:
|
|
46
|
-
vatAdminSvc: VatAdminSvc;
|
|
47
|
-
}, {}, {
|
|
48
|
-
loadVat: VatLoader<unknown>;
|
|
49
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
50
|
-
}> & {
|
|
35
|
+
makeChainStorage: ({ consume: { loadCriticalVat, bridgeManager: bridgeManagerP }, produce: { chainStorage: chainStorageP, storageBridgeManager: storageBridgeManagerP, }, }: BootstrapSpace & {
|
|
51
36
|
consume: {
|
|
52
37
|
loadCriticalVat: ERef<VatLoader<ChainStorageVat>>;
|
|
53
38
|
};
|
|
54
39
|
}) => Promise<void>;
|
|
55
|
-
produceHighPrioritySendersManager: ({ consume: { loadCriticalVat, storageBridgeManager: storageBridgeManagerP }, produce: { highPrioritySendersManager: managerP }, }:
|
|
56
|
-
vatAdminSvc: VatAdminSvc;
|
|
57
|
-
}, {}, {
|
|
58
|
-
loadVat: VatLoader<unknown>;
|
|
59
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
60
|
-
}> & {
|
|
40
|
+
produceHighPrioritySendersManager: ({ consume: { loadCriticalVat, storageBridgeManager: storageBridgeManagerP }, produce: { highPrioritySendersManager: managerP }, }: BootstrapSpace & {
|
|
61
41
|
consume: {
|
|
62
42
|
loadCriticalVat: ERef<VatLoader<ChainStorageVat>>;
|
|
63
43
|
};
|
|
@@ -82,34 +62,19 @@ export function upgradeZoe({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
82
62
|
economicCommitteeCreatorFacet: import("@agoric/inter-protocol/src/proposals/econ-behaviors.js").EconomyBootstrapPowers["consume"]["economicCommitteeCreatorFacet"];
|
|
83
63
|
};
|
|
84
64
|
}) => Promise<void>;
|
|
85
|
-
buildZoe: ({ consume: { vatAdminSvc, loadCriticalVat, client }, produce: { zoe, feeMintAccess }, brand: { produce: { Invitation: invitationBrand }, }, issuer: { produce: { Invitation: invitationIssuer }, }, }:
|
|
86
|
-
vatAdminSvc: VatAdminSvc;
|
|
87
|
-
}, {}, {
|
|
88
|
-
loadVat: VatLoader<unknown>;
|
|
89
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
90
|
-
}> & any & {
|
|
65
|
+
buildZoe: ({ consume: { vatAdminSvc, loadCriticalVat, client }, produce: { zoe, feeMintAccess }, brand: { produce: { Invitation: invitationBrand }, }, issuer: { produce: { Invitation: invitationIssuer }, }, }: BootstrapPowers & {
|
|
91
66
|
consume: {
|
|
92
|
-
loadCriticalVat: ERef<VatLoader<
|
|
67
|
+
loadCriticalVat: ERef<VatLoader<ZoeVat>>;
|
|
93
68
|
};
|
|
94
69
|
}) => Promise<void>;
|
|
95
|
-
startPriceAuthorityRegistry: ({ consume: { loadCriticalVat, client }, produce, }:
|
|
96
|
-
vatAdminSvc: VatAdminSvc;
|
|
97
|
-
}, {}, {
|
|
98
|
-
loadVat: VatLoader<unknown>;
|
|
99
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
100
|
-
}> & any & {
|
|
70
|
+
startPriceAuthorityRegistry: ({ consume: { loadCriticalVat, client }, produce, }: BootstrapPowers & {
|
|
101
71
|
consume: {
|
|
102
|
-
loadCriticalVat: ERef<VatLoader<
|
|
72
|
+
loadCriticalVat: ERef<VatLoader<PriceAuthorityVat>>;
|
|
103
73
|
};
|
|
104
74
|
}) => Promise<void>;
|
|
105
75
|
makeOracleBrands: ({ namedVat: { consume: { agoricNames }, }, oracleBrand: { produce: { USD }, }, }: BootstrapPowers & NamedVatPowers) => Promise<void>;
|
|
106
76
|
produceBoard: ({ consume: { client }, produce: { board: pBoard }, namedVat: { consume: { board: vatBoard }, }, }: BootstrapPowers & NamedVatPowers) => Promise<void>;
|
|
107
|
-
makeBoard: ({ consume: { loadCriticalVat, client }, produce: { board: { resolve: resolveBoard }, }, }:
|
|
108
|
-
vatAdminSvc: VatAdminSvc;
|
|
109
|
-
}, {}, {
|
|
110
|
-
loadVat: VatLoader<unknown>;
|
|
111
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
112
|
-
}> & any & {
|
|
77
|
+
makeBoard: ({ consume: { loadCriticalVat, client }, produce: { board: { resolve: resolveBoard }, }, }: BootstrapPowers & {
|
|
113
78
|
consume: {
|
|
114
79
|
loadCriticalVat: ERef<VatLoader<BoardVat>>;
|
|
115
80
|
};
|
|
@@ -141,12 +106,7 @@ export function upgradeZoe({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
141
106
|
};
|
|
142
107
|
};
|
|
143
108
|
}) => Promise<void>;
|
|
144
|
-
addBankAssets: ({ consume: { agoricNamesAdmin, initialSupply, bridgeManager: bridgeManagerP, loadCriticalVat, startUpgradable, zoe, }, produce: { bankManager, bldIssuerKit }, installation: { consume: { mintHolder }, }, issuer: { produce: produceIssuer }, brand: { produce: produceBrand }, }:
|
|
145
|
-
vatAdminSvc: VatAdminSvc;
|
|
146
|
-
}, {}, {
|
|
147
|
-
loadVat: VatLoader<unknown>;
|
|
148
|
-
loadCriticalVat: VatLoader<unknown>;
|
|
149
|
-
}> & {
|
|
109
|
+
addBankAssets: ({ consume: { agoricNamesAdmin, initialSupply, bridgeManager: bridgeManagerP, loadCriticalVat, startUpgradable, zoe, }, produce: { bankManager, bldIssuerKit }, installation: { consume: { mintHolder }, }, issuer: { produce: produceIssuer }, brand: { produce: produceBrand }, }: BootstrapSpace & {
|
|
150
110
|
consume: {
|
|
151
111
|
loadCriticalVat: ERef<VatLoader<BankVat>>;
|
|
152
112
|
};
|
|
@@ -240,71 +200,7 @@ export function upgradeZoe({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
240
200
|
nameHub: import("../types.js").NameHub;
|
|
241
201
|
myAddressNameAdmin: import("../types.js").MyAddressNameAdmin;
|
|
242
202
|
};
|
|
243
|
-
makeVatSpace: (svc: ERef<
|
|
244
|
-
waitForBundleCap(bundleID: any): any;
|
|
245
|
-
getBundleCap(bundleID: any): any;
|
|
246
|
-
getNamedBundleCap(name: any): any;
|
|
247
|
-
getBundleIDByName(name: any): any;
|
|
248
|
-
createMeter(remaining: any, threshold: any): import("@agoric/swingset-liveslots").KindFacet<{
|
|
249
|
-
addRemaining({ state }: {
|
|
250
|
-
state: any;
|
|
251
|
-
}, delta: any): void;
|
|
252
|
-
setThreshold({ state }: {
|
|
253
|
-
state: any;
|
|
254
|
-
}, newThreshold: any): void;
|
|
255
|
-
get: ({ state }: {
|
|
256
|
-
state: any;
|
|
257
|
-
}) => any;
|
|
258
|
-
getNotifier: ({ _self }: {
|
|
259
|
-
_self: any;
|
|
260
|
-
}) => never;
|
|
261
|
-
}>;
|
|
262
|
-
createUnlimitedMeter(_context: any): import("@agoric/swingset-liveslots").KindFacet<{
|
|
263
|
-
addRemaining(_context: any, _delta: any): void;
|
|
264
|
-
setThreshold(_context: any, _newThreshold: any): void;
|
|
265
|
-
get: () => {
|
|
266
|
-
remaining: string;
|
|
267
|
-
threshold: number;
|
|
268
|
-
};
|
|
269
|
-
getNotifier: ({ _self }: {
|
|
270
|
-
_self: any;
|
|
271
|
-
}) => never;
|
|
272
|
-
}>;
|
|
273
|
-
createVat(bundleOrBundleCap: any, options?: {}): Promise<{
|
|
274
|
-
adminNode: import("@agoric/swingset-liveslots").KindFacet<{
|
|
275
|
-
terminateWithFailure({ state }: {
|
|
276
|
-
state: any;
|
|
277
|
-
}, reason: any): void;
|
|
278
|
-
done({ state }: {
|
|
279
|
-
state: any;
|
|
280
|
-
}): any;
|
|
281
|
-
upgrade({ state }: {
|
|
282
|
-
state: any;
|
|
283
|
-
}, bundlecap: any, options: any): Promise<any>;
|
|
284
|
-
changeOptions({ state }: {
|
|
285
|
-
state: any;
|
|
286
|
-
}, options: any): void;
|
|
287
|
-
}>;
|
|
288
|
-
root: any;
|
|
289
|
-
}>;
|
|
290
|
-
createVatByName(bundleName: any, options?: {}): Promise<{
|
|
291
|
-
adminNode: import("@agoric/swingset-liveslots").KindFacet<{
|
|
292
|
-
terminateWithFailure({ state }: {
|
|
293
|
-
state: any;
|
|
294
|
-
}, reason: any): void;
|
|
295
|
-
done({ state }: {
|
|
296
|
-
state: any;
|
|
297
|
-
}): any;
|
|
298
|
-
upgrade({ state }: {
|
|
299
|
-
state: any;
|
|
300
|
-
}, bundlecap: any, options: any): Promise<any>;
|
|
301
|
-
changeOptions({ state }: {
|
|
302
|
-
state: any;
|
|
303
|
-
}, options: any): void;
|
|
304
|
-
}>;
|
|
305
|
-
root: any;
|
|
306
|
-
}>;
|
|
307
|
-
}>>, criticalVatKey: unknown, log?: ((...args: any) => void) | undefined, label?: string | undefined) => {
|
|
203
|
+
makeVatSpace: (svc: ERef<ReturnType<Awaited<VatAdminVat>["createVatAdminService"]>>, criticalVatKey: unknown, log?: ((...args: any) => void) | undefined, label?: string | undefined) => {
|
|
308
204
|
space: {
|
|
309
205
|
consume: {
|
|
310
206
|
agoricNames: Promise<{
|
|
@@ -365,7 +261,7 @@ export function upgradeZoe({ consume: { vatAdminSvc, vatStore } }: WellKnownSpac
|
|
|
365
261
|
}>>;
|
|
366
262
|
};
|
|
367
263
|
};
|
|
368
|
-
durableStore: MapStore<
|
|
264
|
+
durableStore: globalThis.MapStore<any, any>;
|
|
369
265
|
};
|
|
370
266
|
};
|
|
371
267
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-zoe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