@agoric/vats 0.15.2-dev-b9091ce.0 → 0.15.2-dev-1f8cef0.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/centralSupply.d.ts +1 -1
- package/src/core/boot-chain.d.ts +9 -9
- package/src/core/boot-sim.d.ts +1 -1
- package/src/core/boot-solo.d.ts +1 -1
- package/src/core/lib-boot.d.ts +1 -1
- package/src/core/types-ambient.d.ts +8 -2
- package/src/core/utils.d.ts +8 -8
- package/src/repl.d.ts +3 -3
- package/src/types.d.ts +2 -2
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +4 -3
- package/src/vat-agoricNames.d.ts +1 -1
- package/src/vat-board.d.ts +7 -7
- package/src/vat-bridge.d.ts +1 -1
- package/src/vat-ibc.d.ts +1 -1
- package/src/vat-localchain.d.ts +1 -1
- package/src/vat-mints.d.ts +1 -11
- package/src/vat-mints.d.ts.map +1 -1
- package/src/vat-mints.js +7 -15
- package/src/vat-network.d.ts +1 -1
- package/src/vat-priceAuthority.d.ts +1 -1
- package/src/vat-provisioning.d.ts +1 -1
- package/src/vat-transfer.d.ts +1 -1
- package/src/vat-zoe.d.ts +1 -1
- package/tools/board-utils.d.ts +3 -3
- package/tools/boot-test-utils.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/vats",
|
|
3
|
-
"version": "0.15.2-dev-
|
|
3
|
+
"version": "0.15.2-dev-1f8cef0.0+1f8cef0",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
26
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
27
|
-
"@agoric/governance": "0.10.4-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/network": "0.1.1-dev-
|
|
30
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
31
|
-
"@agoric/store": "0.9.3-dev-
|
|
32
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
33
|
-
"@agoric/time": "0.3.3-dev-
|
|
34
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
35
|
-
"@agoric/vow": "0.1.1-dev-
|
|
36
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
37
|
-
"@agoric/zone": "0.2.3-dev-
|
|
25
|
+
"@agoric/cosmic-proto": "0.4.1-dev-1f8cef0.0+1f8cef0",
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-1f8cef0.0+1f8cef0",
|
|
27
|
+
"@agoric/governance": "0.10.4-dev-1f8cef0.0+1f8cef0",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-1f8cef0.0+1f8cef0",
|
|
29
|
+
"@agoric/network": "0.1.1-dev-1f8cef0.0+1f8cef0",
|
|
30
|
+
"@agoric/notifier": "0.6.3-dev-1f8cef0.0+1f8cef0",
|
|
31
|
+
"@agoric/store": "0.9.3-dev-1f8cef0.0+1f8cef0",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-1f8cef0.0+1f8cef0",
|
|
33
|
+
"@agoric/time": "0.3.3-dev-1f8cef0.0+1f8cef0",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-dev-1f8cef0.0+1f8cef0",
|
|
35
|
+
"@agoric/vow": "0.1.1-dev-1f8cef0.0+1f8cef0",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-1f8cef0.0+1f8cef0",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-1f8cef0.0+1f8cef0",
|
|
38
38
|
"@endo/errors": "^1.2.10",
|
|
39
39
|
"@endo/far": "^1.1.11",
|
|
40
40
|
"@endo/import-bundle": "^1.4.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"jessie.js": "^0.3.4"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
50
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-1f8cef0.0+1f8cef0",
|
|
51
51
|
"@endo/bundle-source": "^4.0.0",
|
|
52
52
|
"@endo/init": "^1.1.9",
|
|
53
53
|
"ava": "^5.3.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"typeCoverage": {
|
|
80
80
|
"atLeast": 90.49
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "1f8cef0f9b259cc357a34ee38299ce36e07c01aa"
|
|
83
83
|
}
|
package/src/centralSupply.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export function start(zcf: ZCF<{
|
|
|
5
5
|
}): Promise<{
|
|
6
6
|
creatorFacet: {
|
|
7
7
|
getBootstrapPayment: () => globalThis.Payment<any, any>;
|
|
8
|
-
} &
|
|
8
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
9
9
|
getBootstrapPayment: () => globalThis.Payment<any, any>;
|
|
10
10
|
}>;
|
|
11
11
|
}>;
|
package/src/core/boot-chain.d.ts
CHANGED
|
@@ -91,7 +91,7 @@ export namespace modules {
|
|
|
91
91
|
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
92
92
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
93
93
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo) => any;
|
|
94
|
-
} &
|
|
94
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
95
95
|
getNameHub: () => import("../types.js").NameHub<any>;
|
|
96
96
|
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
97
97
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
@@ -99,10 +99,10 @@ export namespace modules {
|
|
|
99
99
|
}>>;
|
|
100
100
|
board: Promise<{
|
|
101
101
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
102
|
-
getId(value:
|
|
103
|
-
getValue(id: BoardId):
|
|
102
|
+
getId(value: RemotableObject): string;
|
|
103
|
+
getValue(id: BoardId): RemotableObject;
|
|
104
104
|
lookup(...path: string[]): Promise<any>;
|
|
105
|
-
has(val:
|
|
105
|
+
has(val: RemotableObject): boolean;
|
|
106
106
|
ids(): string[];
|
|
107
107
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
108
108
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -119,12 +119,12 @@ export namespace modules {
|
|
|
119
119
|
}>;
|
|
120
120
|
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("jessie.js").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
121
121
|
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("jessie.js").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
122
|
-
} &
|
|
122
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
123
123
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
124
|
-
getId(value:
|
|
125
|
-
getValue(id: BoardId):
|
|
124
|
+
getId(value: RemotableObject): string;
|
|
125
|
+
getValue(id: BoardId): RemotableObject;
|
|
126
126
|
lookup(...path: string[]): Promise<any>;
|
|
127
|
-
has(val:
|
|
127
|
+
has(val: RemotableObject): boolean;
|
|
128
128
|
ids(): string[];
|
|
129
129
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
130
130
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -162,7 +162,7 @@ export function buildRootObject(vatPowers: VatPowers & {
|
|
|
162
162
|
resetItem: (name: string) => void;
|
|
163
163
|
awaitVatObject: (presence: any, path?: any[]) => Promise<any>;
|
|
164
164
|
snapshotStore: <K, V>(store: MapStore<K, V>) => [K, V][];
|
|
165
|
-
} &
|
|
165
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
166
166
|
bootstrap: (vats: SwingsetVats, devices: SoloDevices | ChainDevices) => Promise<void>;
|
|
167
167
|
consumeItem: (name: string) => Promise<unknown>;
|
|
168
168
|
produceItem: (name: any, resolution: any) => void;
|
package/src/core/boot-sim.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export function buildRootObject(vatPowers: VatPowers & {
|
|
|
13
13
|
resetItem: (name: string) => void;
|
|
14
14
|
awaitVatObject: (presence: any, path?: any[]) => Promise<any>;
|
|
15
15
|
snapshotStore: <K, V>(store: MapStore<K, V>) => [K, V][];
|
|
16
|
-
} &
|
|
16
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
17
17
|
bootstrap: (vats: SwingsetVats, devices: SoloDevices | ChainDevices) => Promise<void>;
|
|
18
18
|
consumeItem: (name: string) => Promise<unknown>;
|
|
19
19
|
produceItem: (name: any, resolution: any) => void;
|
package/src/core/boot-solo.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export function buildRootObject(vatPowers: VatPowers & {
|
|
|
12
12
|
resetItem: (name: string) => void;
|
|
13
13
|
awaitVatObject: (presence: any, path?: any[]) => Promise<any>;
|
|
14
14
|
snapshotStore: <K, V>(store: MapStore<K, V>) => [K, V][];
|
|
15
|
-
} &
|
|
15
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
16
16
|
bootstrap: (vats: SwingsetVats, devices: SoloDevices | ChainDevices) => Promise<void>;
|
|
17
17
|
consumeItem: (name: string) => Promise<unknown>;
|
|
18
18
|
produceItem: (name: any, resolution: any) => void;
|
package/src/core/lib-boot.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export function makeBootstrap(vatPowers: import("@agoric/swingset-vat").VatPower
|
|
|
20
20
|
* @param {MapStore<K, V>} store
|
|
21
21
|
*/
|
|
22
22
|
snapshotStore: <K, V>(store: MapStore<K, V>) => [K, V][];
|
|
23
|
-
} &
|
|
23
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
24
24
|
/**
|
|
25
25
|
* Bootstrap vats and devices.
|
|
26
26
|
*
|
|
@@ -199,13 +199,19 @@ type WellKnownName = {
|
|
|
199
199
|
};
|
|
200
200
|
|
|
201
201
|
type ContractInstallationPromises<
|
|
202
|
-
StartFns extends Record<
|
|
202
|
+
StartFns extends Record<
|
|
203
|
+
WellKnownName['installation'],
|
|
204
|
+
import('@agoric/zoe').ContractStartFn
|
|
205
|
+
>,
|
|
203
206
|
> = {
|
|
204
207
|
[Property in keyof StartFns]: Promise<Installation<StartFns[Property]>>;
|
|
205
208
|
};
|
|
206
209
|
|
|
207
210
|
type ContractInstancePromises<
|
|
208
|
-
StartFns extends Record<
|
|
211
|
+
StartFns extends Record<
|
|
212
|
+
WellKnownName['instance'],
|
|
213
|
+
import('@agoric/zoe').ContractStartFn
|
|
214
|
+
>,
|
|
209
215
|
> = {
|
|
210
216
|
[Property in keyof StartFns]: Promise<
|
|
211
217
|
import('@agoric/zoe/src/zoeService/utils.js').Instance<StartFns[Property]>
|
package/src/core/utils.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export function makeVatSpace(svc: ERef<ReturnType<Awaited<VatAdminVat>["createVa
|
|
|
43
43
|
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
44
44
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
45
45
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo) => any;
|
|
46
|
-
} &
|
|
46
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
47
47
|
getNameHub: () => import("../types.js").NameHub<any>;
|
|
48
48
|
getNameHubKit: () => import("../types.js").NameHubKit;
|
|
49
49
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
|
@@ -51,10 +51,10 @@ export function makeVatSpace(svc: ERef<ReturnType<Awaited<VatAdminVat>["createVa
|
|
|
51
51
|
}>>;
|
|
52
52
|
board: Promise<{
|
|
53
53
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
54
|
-
getId(value:
|
|
55
|
-
getValue(id: BoardId):
|
|
54
|
+
getId(value: RemotableObject): string;
|
|
55
|
+
getValue(id: BoardId): RemotableObject;
|
|
56
56
|
lookup(...path: string[]): Promise<any>;
|
|
57
|
-
has(val:
|
|
57
|
+
has(val: RemotableObject): boolean;
|
|
58
58
|
ids(): string[];
|
|
59
59
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
60
60
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -71,12 +71,12 @@ export function makeVatSpace(svc: ERef<ReturnType<Awaited<VatAdminVat>["createVa
|
|
|
71
71
|
}>;
|
|
72
72
|
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("jessie.js").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
73
73
|
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("jessie.js").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
74
|
-
} &
|
|
74
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
75
75
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
76
|
-
getId(value:
|
|
77
|
-
getValue(id: BoardId):
|
|
76
|
+
getId(value: RemotableObject): string;
|
|
77
|
+
getValue(id: BoardId): RemotableObject;
|
|
78
78
|
lookup(...path: string[]): Promise<any>;
|
|
79
|
-
has(val:
|
|
79
|
+
has(val: RemotableObject): boolean;
|
|
80
80
|
ids(): string[];
|
|
81
81
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
82
82
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
package/src/repl.d.ts
CHANGED
|
@@ -3,17 +3,17 @@ export function getReplHandler(replObjects: any, send: any): {
|
|
|
3
3
|
onOpen(_obj: any, meta: any): void;
|
|
4
4
|
onClose(_obj: any, meta: any): void;
|
|
5
5
|
onMessage(obj: any, meta: any): any;
|
|
6
|
-
} &
|
|
6
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
7
7
|
onOpen(_obj: any, meta: any): void;
|
|
8
8
|
onClose(_obj: any, meta: any): void;
|
|
9
9
|
onMessage(obj: any, meta: any): any;
|
|
10
10
|
}>;
|
|
11
|
-
} &
|
|
11
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
12
12
|
getCommandHandler(): {
|
|
13
13
|
onOpen(_obj: any, meta: any): void;
|
|
14
14
|
onClose(_obj: any, meta: any): void;
|
|
15
15
|
onMessage(obj: any, meta: any): any;
|
|
16
|
-
} &
|
|
16
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
17
17
|
onOpen(_obj: any, meta: any): void;
|
|
18
18
|
onClose(_obj: any, meta: any): void;
|
|
19
19
|
onMessage(obj: any, meta: any): any;
|
package/src/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
2
|
+
import type { PacketSDKType } from '@agoric/cosmic-proto/ibc/core/channel/v1/channel.js';
|
|
1
3
|
import type { BridgeId, Remote } from '@agoric/internal';
|
|
2
4
|
import type { Bytes } from '@agoric/network';
|
|
3
5
|
import type { Guarded } from '@endo/exo';
|
|
4
|
-
import type { PacketSDKType } from '@agoric/cosmic-proto/ibc/core/channel/v1/channel.js';
|
|
5
|
-
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
6
6
|
export type Board = ReturnType<ReturnType<typeof import('./lib-board.js').prepareBoardKit>>['board'];
|
|
7
7
|
/**
|
|
8
8
|
* read-only access to a node in a name hierarchy
|
package/src/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,MAAM,MAAM,KAAK,GAAG,UAAU,CAC5B,UAAU,CAAC,cAAc,gBAAgB,EAAE,eAAe,CAAC,CAC5D,CAAC,OAAO,CAAC,CAAC;AAEX;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,CAAC,KAAK,GAAG,GAAG,IAAI;IACjC,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9B;;;OAGG;IACH,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5C,2DAA2D;IAC3D,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE,OAAO,KAAK,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,QAAQ,CAAC,eAAe,EAAE,qBAAqB,CAAC,CAAC"}
|
package/src/types.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars -- fails to notice the @see uses */
|
|
2
|
+
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
1
3
|
import type { FungibleTokenPacketData } from '@agoric/cosmic-proto/ibc/applications/transfer/v2/packet.js';
|
|
4
|
+
import type { PacketSDKType } from '@agoric/cosmic-proto/ibc/core/channel/v1/channel.js';
|
|
2
5
|
import type { BridgeId, Remote } from '@agoric/internal';
|
|
3
6
|
import type { Bytes } from '@agoric/network';
|
|
4
7
|
import type { Guarded } from '@endo/exo';
|
|
5
|
-
import type { PacketSDKType } from '@agoric/cosmic-proto/ibc/core/channel/v1/channel.js';
|
|
6
|
-
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
7
|
-
import type { LocalChainAccount } from './localchain.js';
|
|
8
8
|
import type { TargetApp } from './bridge-target.js';
|
|
9
|
+
import type { LocalChainAccount } from './localchain.js';
|
|
9
10
|
|
|
10
11
|
export type Board = ReturnType<
|
|
11
12
|
ReturnType<typeof import('./lib-board.js').prepareBoardKit>
|
package/src/vat-agoricNames.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, ba
|
|
|
9
9
|
* @param {DisplayInfo} displayInfo
|
|
10
10
|
*/
|
|
11
11
|
provideInertBrand: (keyword: string, displayInfo: DisplayInfo) => any;
|
|
12
|
-
} &
|
|
12
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
13
13
|
getNameHub: () => import("./types.js").NameHub<any>;
|
|
14
14
|
getNameHubKit: () => import("./types.js").NameHubKit;
|
|
15
15
|
publishNameHubs: (nameStorage: ERef<StorageNode>, vatBoard: ERef<BoardVat>, kinds: string[]) => Promise<void>;
|
package/src/vat-board.d.ts
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, baggage: import("@agoric/vat-data").Baggage): {
|
|
7
7
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
8
|
-
getId(value:
|
|
9
|
-
getValue(id: BoardId):
|
|
8
|
+
getId(value: RemotableObject): string;
|
|
9
|
+
getValue(id: BoardId): RemotableObject;
|
|
10
10
|
lookup(...path: string[]): Promise<any>;
|
|
11
|
-
has(val:
|
|
11
|
+
has(val: RemotableObject): boolean;
|
|
12
12
|
ids(): string[];
|
|
13
13
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
14
14
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -25,12 +25,12 @@ export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, ba
|
|
|
25
25
|
}>;
|
|
26
26
|
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("jessie.js").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
27
27
|
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("jessie.js").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
28
|
-
} &
|
|
28
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
29
29
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
30
|
-
getId(value:
|
|
31
|
-
getValue(id: BoardId):
|
|
30
|
+
getId(value: RemotableObject): string;
|
|
31
|
+
getValue(id: BoardId): RemotableObject;
|
|
32
32
|
lookup(...path: string[]): Promise<any>;
|
|
33
|
-
has(val:
|
|
33
|
+
has(val: RemotableObject): boolean;
|
|
34
34
|
ids(): string[];
|
|
35
35
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
36
36
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
package/src/vat-bridge.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export function buildRootObject(vatPowers: any, _args: any, baggage: any): {
|
|
|
8
8
|
setValue(value: string): Promise<void>;
|
|
9
9
|
}>>;
|
|
10
10
|
provideManagerForBridge: (bridgeDevice: BridgeDevice) => import("./types.js").BridgeManager;
|
|
11
|
-
} &
|
|
11
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
12
12
|
makeBridgedChainStorageRoot: (storageBridgeManagerP: ERef<import("./types.js").ScopedBridgeManager<"storage">>, rootPath: string, options?: object) => Promise<import("@endo/exo").Guarded<{
|
|
13
13
|
getPath(): string;
|
|
14
14
|
getStoreKey(): Promise<VStorageKey>;
|
package/src/vat-ibc.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
6
6
|
makeCallbacks: (dibcBridgeManager: import("./types.js").ScopedBridgeManager<"dibc">) => import("@endo/exo").Guarded<{
|
|
7
7
|
downcall(method: string, obj: any): Promise<any>;
|
|
8
8
|
}>;
|
|
9
|
-
} &
|
|
9
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
10
10
|
createHandlers: (callbacks: any) => {
|
|
11
11
|
protocolHandler: import("@agoric/network").ProtocolHandler;
|
|
12
12
|
bridgeHandler: import("./types.js").BridgeHandler;
|
package/src/vat-localchain.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
19
19
|
};
|
|
20
20
|
}[]>;
|
|
21
21
|
}>;
|
|
22
|
-
} &
|
|
22
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
23
23
|
/**
|
|
24
24
|
* Create a local chain that allows permissionlessly making fresh local
|
|
25
25
|
* chain accounts, then using them to send chain queries and transactions.
|
package/src/vat-mints.d.ts
CHANGED
|
@@ -13,11 +13,6 @@ export function buildRootObject(): {
|
|
|
13
13
|
getMint: (name: string) => globalThis.Mint;
|
|
14
14
|
/** @param {string[]} issuerNames */
|
|
15
15
|
getMints: (issuerNames: string[]) => globalThis.Mint[];
|
|
16
|
-
/**
|
|
17
|
-
* @param {any} issuerNameSingular For example, 'moola', or 'simolean'
|
|
18
|
-
* @param {[AssetKind?, DisplayInfo?]} issuerArgs
|
|
19
|
-
*/
|
|
20
|
-
makeMintAndIssuer: (issuerNameSingular: any, issuerArgs_0?: globalThis.AssetKind | undefined, issuerArgs_1?: globalThis.DisplayInfo | undefined) => globalThis.Issuer<"copySet" | "copyBag" | "set" | "nat", import("@endo/patterns").Key>;
|
|
21
16
|
provideIssuerKit: (issuerName: any, ...issuerArgs: any[]) => {
|
|
22
17
|
mint: globalThis.Mint<any, import("@endo/patterns").Key>;
|
|
23
18
|
issuer: globalThis.Issuer<any, import("@endo/patterns").Key>;
|
|
@@ -33,7 +28,7 @@ export function buildRootObject(): {
|
|
|
33
28
|
* @param {bigint[]} values
|
|
34
29
|
*/
|
|
35
30
|
mintInitialPayments: (issuerNames: string[], values: bigint[]) => (globalThis.Payment<globalThis.AssetKind, import("@endo/patterns").Key> | undefined)[];
|
|
36
|
-
} &
|
|
31
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
37
32
|
getAllIssuerNames: () => string[];
|
|
38
33
|
getIssuer: (issuerName: any) => globalThis.Issuer<globalThis.AssetKind, import("@endo/patterns").Key>;
|
|
39
34
|
/** @param {string[]} issuerNames */
|
|
@@ -48,11 +43,6 @@ export function buildRootObject(): {
|
|
|
48
43
|
getMint: (name: string) => globalThis.Mint;
|
|
49
44
|
/** @param {string[]} issuerNames */
|
|
50
45
|
getMints: (issuerNames: string[]) => globalThis.Mint[];
|
|
51
|
-
/**
|
|
52
|
-
* @param {any} issuerNameSingular For example, 'moola', or 'simolean'
|
|
53
|
-
* @param {[AssetKind?, DisplayInfo?]} issuerArgs
|
|
54
|
-
*/
|
|
55
|
-
makeMintAndIssuer: (issuerNameSingular: any, issuerArgs_0?: globalThis.AssetKind | undefined, issuerArgs_1?: globalThis.DisplayInfo | undefined) => globalThis.Issuer<"copySet" | "copyBag" | "set" | "nat", import("@endo/patterns").Key>;
|
|
56
46
|
provideIssuerKit: (issuerName: any, ...issuerArgs: any[]) => {
|
|
57
47
|
mint: globalThis.Mint<any, import("@endo/patterns").Key>;
|
|
58
48
|
issuer: globalThis.Issuer<any, import("@endo/patterns").Key>;
|
package/src/vat-mints.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-mints.d.ts","sourceRoot":"","sources":["vat-mints.js"],"names":[],"mappings":"AASA;;;
|
|
1
|
+
{"version":3,"file":"vat-mints.d.ts","sourceRoot":"","sources":["vat-mints.js"],"names":[],"mappings":"AASA;;;IAYI,oCAAoC;8BAAxB,MAAM,EAAE;IAGpB;;;;;;OAMG;oBADQ,MAAM;IAOjB,oCAAoC;4BAAxB,MAAM,EAAE;;;;;;IAoBpB;;;OAGG;qCAFQ,MAAM,SACN,MAAM;IAWjB;;;OAGG;uCAFQ,MAAM,EAAE,UACR,MAAM,EAAE;;;;IAlDnB,oCAAoC;8BAAxB,MAAM,EAAE;IAGpB;;;;;;OAMG;oBADQ,MAAM;IAOjB,oCAAoC;4BAAxB,MAAM,EAAE;;;;;;IAoBpB;;;OAGG;qCAFQ,MAAM,SACN,MAAM;IAWjB;;;OAGG;uCAFQ,MAAM,EAAE,UACR,MAAM,EAAE;GAStB"}
|
package/src/vat-mints.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Far } from '@endo/far';
|
|
2
|
-
import {
|
|
2
|
+
import { AmountMath, makeIssuerKit } from '@agoric/ertp';
|
|
3
3
|
|
|
4
4
|
import { makeScalarMapStore } from '@agoric/store';
|
|
5
5
|
import { notForProductionUse } from '@agoric/internal/src/magic-cookie-test-only.js';
|
|
@@ -13,10 +13,12 @@ export function buildRootObject() {
|
|
|
13
13
|
|
|
14
14
|
const api = Far('api', {
|
|
15
15
|
getAllIssuerNames: () => [...mintsAndBrands.keys()],
|
|
16
|
+
|
|
16
17
|
getIssuer: issuerName => {
|
|
17
18
|
const { mint } = mintsAndBrands.get(issuerName);
|
|
18
19
|
return mint.getIssuer();
|
|
19
20
|
},
|
|
21
|
+
|
|
20
22
|
/** @param {string[]} issuerNames */
|
|
21
23
|
getIssuers: issuerNames => issuerNames.map(api.getIssuer),
|
|
22
24
|
|
|
@@ -31,22 +33,10 @@ export function buildRootObject() {
|
|
|
31
33
|
notForProductionUse();
|
|
32
34
|
return mintsAndBrands.get(name).mint;
|
|
33
35
|
},
|
|
36
|
+
|
|
34
37
|
/** @param {string[]} issuerNames */
|
|
35
38
|
getMints: issuerNames => issuerNames.map(api.getMint),
|
|
36
|
-
|
|
37
|
-
* @param {any} issuerNameSingular For example, 'moola', or 'simolean'
|
|
38
|
-
* @param {[AssetKind?, DisplayInfo?]} issuerArgs
|
|
39
|
-
*/
|
|
40
|
-
makeMintAndIssuer: (issuerNameSingular, ...issuerArgs) => {
|
|
41
|
-
notForProductionUse();
|
|
42
|
-
// makeIssuerKit fails upgrade, this contract is for demo only
|
|
43
|
-
const { mint, issuer, brand } = makeIssuerKit(
|
|
44
|
-
issuerNameSingular,
|
|
45
|
-
...issuerArgs,
|
|
46
|
-
);
|
|
47
|
-
mintsAndBrands.init(issuerNameSingular, { mint, brand });
|
|
48
|
-
return issuer;
|
|
49
|
-
},
|
|
39
|
+
|
|
50
40
|
provideIssuerKit: (issuerName, ...issuerArgs) => {
|
|
51
41
|
notForProductionUse();
|
|
52
42
|
if (mintsAndBrands.has(issuerName)) {
|
|
@@ -63,6 +53,7 @@ export function buildRootObject() {
|
|
|
63
53
|
return { mint, issuer, brand };
|
|
64
54
|
}
|
|
65
55
|
},
|
|
56
|
+
|
|
66
57
|
/**
|
|
67
58
|
* @param {string} issuerName
|
|
68
59
|
* @param {bigint} value
|
|
@@ -75,6 +66,7 @@ export function buildRootObject() {
|
|
|
75
66
|
const amount = AmountMath.make(brand, value);
|
|
76
67
|
return mint.mintPayment(amount);
|
|
77
68
|
},
|
|
69
|
+
|
|
78
70
|
/**
|
|
79
71
|
* @param {string[]} issuerNames
|
|
80
72
|
* @param {bigint[]} values
|
package/src/vat-network.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
32
32
|
allocateICQControllerPort(): Promise<import("@agoric/vow").Vow<import("@agoric/network").Port>>;
|
|
33
33
|
allocateCustomLocalPort(specifiedName?: string): Promise<import("@agoric/vow").Vow<import("@agoric/network").Port>>;
|
|
34
34
|
}>;
|
|
35
|
-
} &
|
|
35
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
36
36
|
makeLoopbackProtocolHandler: (instancePrefix?: string) => import("@endo/exo").Guarded<{
|
|
37
37
|
onCreate(_impl: any, _protocolHandler: any): Promise<void>;
|
|
38
38
|
generatePortID(_localAddr: any, _protocolHandler: any): Promise<string>;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export function buildRootObject(_vatPowers: VatPowers, _vatParams: unknown, baggage: import("@agoric/vat-data").Baggage): {
|
|
10
10
|
getRegistry: () => import("./priceAuthorityRegistry.js").PriceAuthorityRegistry;
|
|
11
|
-
} &
|
|
11
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
12
12
|
getRegistry: () => import("./priceAuthorityRegistry.js").PriceAuthorityRegistry;
|
|
13
13
|
}>;
|
|
14
14
|
//# sourceMappingURL=vat-priceAuthority.d.ts.map
|
|
@@ -12,7 +12,7 @@ export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, ba
|
|
|
12
12
|
namesByAddress: import("./types.js").NameHub<any>;
|
|
13
13
|
namesByAddressAdmin: import("@endo/exo").Farable<import("./types.js").NamesByAddressAdmin>;
|
|
14
14
|
};
|
|
15
|
-
} &
|
|
15
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
16
16
|
register: (b: ERef<ClientCreator>, c: CommsVatRoot, v: VattpVat) => Promise<void>;
|
|
17
17
|
pleaseProvision: (nickname: string, address: string, powerFlags: string[]) => Promise<{
|
|
18
18
|
ingressIndex: number;
|
package/src/vat-transfer.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
37
37
|
unregisterTap(target: string): Promise<void>;
|
|
38
38
|
};
|
|
39
39
|
}>;
|
|
40
|
-
} &
|
|
40
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
41
41
|
/**
|
|
42
42
|
* @template {import('@agoric/internal').BridgeId} T
|
|
43
43
|
* @param {import('./types.js').ScopedBridgeManager<T>} manager
|
package/src/vat-zoe.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export function buildRootObject(vatPowers: any, _vatParams: any, zoeBaggage: any
|
|
|
4
4
|
feeMintAccess: FeeMintAccess;
|
|
5
5
|
}>;
|
|
6
6
|
getZoeConfigFacet: () => any;
|
|
7
|
-
} &
|
|
7
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
8
8
|
buildZoe: (adminVat: any, feeIssuerConfig: any, zcfBundleName: any) => Promise<{
|
|
9
9
|
zoeService: import("@endo/exo").Guarded<globalThis.ZoeService>;
|
|
10
10
|
feeMintAccess: FeeMintAccess;
|
package/tools/board-utils.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ export function makeFakeBoard(initSequence?: bigint | number, options?: {
|
|
|
4
4
|
prefix?: string | undefined;
|
|
5
5
|
crcDigits?: number | undefined;
|
|
6
6
|
}): import("@endo/exo").Guarded<{
|
|
7
|
-
getId(value:
|
|
8
|
-
getValue(id: BoardId):
|
|
7
|
+
getId(value: RemotableObject): string;
|
|
8
|
+
getValue(id: BoardId): RemotableObject;
|
|
9
9
|
lookup(...path: string[]): Promise<any>;
|
|
10
|
-
has(val:
|
|
10
|
+
has(val: RemotableObject): boolean;
|
|
11
11
|
ids(): string[];
|
|
12
12
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
13
13
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -33,7 +33,7 @@ export function makeMock(log: any): {
|
|
|
33
33
|
_: string;
|
|
34
34
|
};
|
|
35
35
|
}>;
|
|
36
|
-
} &
|
|
36
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
37
37
|
addRemote: () => void;
|
|
38
38
|
addEgress: () => void;
|
|
39
39
|
addIngress: () => Promise<{
|
|
@@ -53,7 +53,7 @@ export function makeMock(log: any): {
|
|
|
53
53
|
};
|
|
54
54
|
timer: {
|
|
55
55
|
createTimerService: () => Promise<import("@agoric/zoe/tools/manualTimer.js").ZoeManualTimer>;
|
|
56
|
-
} &
|
|
56
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
57
57
|
createTimerService: () => Promise<import("@agoric/zoe/tools/manualTimer.js").ZoeManualTimer>;
|
|
58
58
|
}>;
|
|
59
59
|
uploads: {
|
|
@@ -64,7 +64,7 @@ export function makeMock(log: any): {
|
|
|
64
64
|
network: {
|
|
65
65
|
registerProtocolHandler: () => void;
|
|
66
66
|
makeLoopbackProtocolHandler: () => void;
|
|
67
|
-
} &
|
|
67
|
+
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
68
68
|
registerProtocolHandler: () => void;
|
|
69
69
|
makeLoopbackProtocolHandler: () => void;
|
|
70
70
|
}>;
|