@agoric/vats 0.15.2-dev-a3bdfb1.0 → 0.15.2-dev-fa844b5.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 +2 -2
- package/src/core/basic-behaviors.d.ts +27 -27
- package/src/core/boot-chain.d.ts +90 -90
- package/src/core/chain-behaviors.d.ts +9 -9
- package/src/core/chain-behaviors.js +1 -1
- package/src/core/demoIssuers.d.ts +7 -7
- package/src/core/promise-space.d.ts +1 -1
- package/src/core/promise-space.d.ts.map +1 -1
- package/src/core/promise-space.js +1 -1
- package/src/core/startWalletFactory.d.ts +15 -15
- package/src/core/utils.d.ts +9 -9
- package/src/ibc.d.ts +4 -4
- package/src/lib-board.d.ts +3 -3
- package/src/localchain.d.ts +5 -5
- package/src/mintHolder.d.ts +4 -4
- package/src/mintHolder.d.ts.map +1 -1
- package/src/nameHub.d.ts +1 -1
- package/src/nameHub.d.ts.map +1 -1
- package/src/proposals/localchain-proposal.d.ts +6 -6
- package/src/proposals/upgrade-zoe-proposal.d.ts +9 -9
- package/src/proposals/zcf-proposal.d.ts +9 -9
- package/src/vat-bank.d.ts +81 -69
- package/src/vat-bank.d.ts.map +1 -1
- package/src/vat-bank.js +5 -1
- package/src/vat-board.d.ts +6 -6
- package/src/vat-bridge.d.ts +2 -2
- package/src/vat-ibc.d.ts +6 -6
- package/src/vat-localchain.d.ts +6 -6
- package/src/vat-mints.d.ts +20 -20
- package/src/vat-network.d.ts +6 -6
- package/src/vat-provisioning.d.ts +2 -2
- package/src/virtual-purse.d.ts +3 -3
- package/tools/board-utils.d.ts +3 -3
package/src/vat-localchain.d.ts
CHANGED
|
@@ -5,14 +5,14 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
5
5
|
*
|
|
6
6
|
* @param {Partial<import('./localchain.js').LocalChainPowers>} [initialPowers]
|
|
7
7
|
*/
|
|
8
|
-
makeLocalChain(initialPowers?: Partial<import("./localchain.js").LocalChainPowers> | undefined): import("@endo/exo
|
|
8
|
+
makeLocalChain(initialPowers?: Partial<import("./localchain.js").LocalChainPowers> | undefined): import("@endo/exo").GuardedKit<{
|
|
9
9
|
admin: {
|
|
10
10
|
setPower<K extends keyof import("./localchain.js").LocalChainPowers>(name: K, power?: import("./localchain.js").LocalChainPowers[K] | undefined): void;
|
|
11
11
|
};
|
|
12
12
|
public: {
|
|
13
|
-
createAccount(): Promise<import("@endo/exo
|
|
13
|
+
createAccount(): Promise<import("@endo/exo").Guarded<{
|
|
14
14
|
getAddress(): Promise<string>;
|
|
15
|
-
deposit(payment: Payment
|
|
15
|
+
deposit(payment: globalThis.Payment): Promise<globalThis.Amount<globalThis.AssetKind>>;
|
|
16
16
|
executeTx(messages: import("./localchain.js").Proto3Jsonable[]): Promise<import("./localchain.js").Proto3Jsonable[]>;
|
|
17
17
|
}>>;
|
|
18
18
|
query(request: import("./localchain.js").Proto3Jsonable): Promise<import("./localchain.js").Proto3Jsonable>;
|
|
@@ -29,14 +29,14 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
29
29
|
*
|
|
30
30
|
* @param {Partial<import('./localchain.js').LocalChainPowers>} [initialPowers]
|
|
31
31
|
*/
|
|
32
|
-
makeLocalChain(initialPowers?: Partial<import("./localchain.js").LocalChainPowers> | undefined): import("@endo/exo
|
|
32
|
+
makeLocalChain(initialPowers?: Partial<import("./localchain.js").LocalChainPowers> | undefined): import("@endo/exo").GuardedKit<{
|
|
33
33
|
admin: {
|
|
34
34
|
setPower<K extends keyof import("./localchain.js").LocalChainPowers>(name: K, power?: import("./localchain.js").LocalChainPowers[K] | undefined): void;
|
|
35
35
|
};
|
|
36
36
|
public: {
|
|
37
|
-
createAccount(): Promise<import("@endo/exo
|
|
37
|
+
createAccount(): Promise<import("@endo/exo").Guarded<{
|
|
38
38
|
getAddress(): Promise<string>;
|
|
39
|
-
deposit(payment: Payment
|
|
39
|
+
deposit(payment: globalThis.Payment): Promise<globalThis.Amount<globalThis.AssetKind>>;
|
|
40
40
|
executeTx(messages: import("./localchain.js").Proto3Jsonable[]): Promise<import("./localchain.js").Proto3Jsonable[]>;
|
|
41
41
|
}>>;
|
|
42
42
|
query(request: import("./localchain.js").Proto3Jsonable): Promise<import("./localchain.js").Proto3Jsonable>;
|
package/src/vat-mints.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export function buildRootObject(): {
|
|
2
2
|
getAllIssuerNames: () => string[];
|
|
3
|
-
getIssuer: (issuerName: any) => Issuer<AssetKind>;
|
|
3
|
+
getIssuer: (issuerName: any) => globalThis.Issuer<globalThis.AssetKind>;
|
|
4
4
|
/** @param {string[]} issuerNames */
|
|
5
|
-
getIssuers: (issuerNames: string[]) => Issuer<AssetKind>[];
|
|
5
|
+
getIssuers: (issuerNames: string[]) => globalThis.Issuer<globalThis.AssetKind>[];
|
|
6
6
|
/**
|
|
7
7
|
* WARNING: a mint is ability to mint new digital assets, a very powerful
|
|
8
8
|
* authority that is usually closely held. But this mint is for demo /
|
|
@@ -10,34 +10,34 @@ export function buildRootObject(): {
|
|
|
10
10
|
*
|
|
11
11
|
* @param {string} name
|
|
12
12
|
*/
|
|
13
|
-
getMint: (name: string) => Mint
|
|
13
|
+
getMint: (name: string) => globalThis.Mint;
|
|
14
14
|
/** @param {string[]} issuerNames */
|
|
15
|
-
getMints: (issuerNames: string[]) => Mint
|
|
15
|
+
getMints: (issuerNames: string[]) => globalThis.Mint[];
|
|
16
16
|
/**
|
|
17
17
|
* @param {any} issuerNameSingular For example, 'moola', or 'simolean'
|
|
18
18
|
* @param {[AssetKind?, DisplayInfo?]} issuerArgs
|
|
19
19
|
*/
|
|
20
|
-
makeMintAndIssuer: (issuerNameSingular: any, issuerArgs_0?: AssetKind | undefined, issuerArgs_1?: DisplayInfo
|
|
20
|
+
makeMintAndIssuer: (issuerNameSingular: any, issuerArgs_0?: globalThis.AssetKind | undefined, issuerArgs_1?: globalThis.DisplayInfo | undefined) => globalThis.Issuer<"copySet" | "set" | "nat" | "copyBag">;
|
|
21
21
|
provideIssuerKit: (issuerName: any, ...issuerArgs: any[]) => {
|
|
22
|
-
mint: Mint<any>;
|
|
23
|
-
issuer: Issuer<any>;
|
|
24
|
-
brand: Brand<any>;
|
|
22
|
+
mint: globalThis.Mint<any>;
|
|
23
|
+
issuer: globalThis.Issuer<any>;
|
|
24
|
+
brand: globalThis.Brand<any>;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* @param {string} issuerName
|
|
28
28
|
* @param {bigint} value
|
|
29
29
|
*/
|
|
30
|
-
mintInitialPayment: (issuerName: string, value: bigint) => Payment<AssetKind> | undefined;
|
|
30
|
+
mintInitialPayment: (issuerName: string, value: bigint) => globalThis.Payment<globalThis.AssetKind> | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* @param {string[]} issuerNames
|
|
33
33
|
* @param {bigint[]} values
|
|
34
34
|
*/
|
|
35
|
-
mintInitialPayments: (issuerNames: string[], values: bigint[]) => (Payment<AssetKind> | undefined)[];
|
|
35
|
+
mintInitialPayments: (issuerNames: string[], values: bigint[]) => (globalThis.Payment<globalThis.AssetKind> | undefined)[];
|
|
36
36
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
37
37
|
getAllIssuerNames: () => string[];
|
|
38
|
-
getIssuer: (issuerName: any) => Issuer<AssetKind>;
|
|
38
|
+
getIssuer: (issuerName: any) => globalThis.Issuer<globalThis.AssetKind>;
|
|
39
39
|
/** @param {string[]} issuerNames */
|
|
40
|
-
getIssuers: (issuerNames: string[]) => Issuer<AssetKind>[];
|
|
40
|
+
getIssuers: (issuerNames: string[]) => globalThis.Issuer<globalThis.AssetKind>[];
|
|
41
41
|
/**
|
|
42
42
|
* WARNING: a mint is ability to mint new digital assets, a very powerful
|
|
43
43
|
* authority that is usually closely held. But this mint is for demo /
|
|
@@ -45,28 +45,28 @@ export function buildRootObject(): {
|
|
|
45
45
|
*
|
|
46
46
|
* @param {string} name
|
|
47
47
|
*/
|
|
48
|
-
getMint: (name: string) => Mint
|
|
48
|
+
getMint: (name: string) => globalThis.Mint;
|
|
49
49
|
/** @param {string[]} issuerNames */
|
|
50
|
-
getMints: (issuerNames: string[]) => Mint
|
|
50
|
+
getMints: (issuerNames: string[]) => globalThis.Mint[];
|
|
51
51
|
/**
|
|
52
52
|
* @param {any} issuerNameSingular For example, 'moola', or 'simolean'
|
|
53
53
|
* @param {[AssetKind?, DisplayInfo?]} issuerArgs
|
|
54
54
|
*/
|
|
55
|
-
makeMintAndIssuer: (issuerNameSingular: any, issuerArgs_0?: AssetKind | undefined, issuerArgs_1?: DisplayInfo
|
|
55
|
+
makeMintAndIssuer: (issuerNameSingular: any, issuerArgs_0?: globalThis.AssetKind | undefined, issuerArgs_1?: globalThis.DisplayInfo | undefined) => globalThis.Issuer<"copySet" | "set" | "nat" | "copyBag">;
|
|
56
56
|
provideIssuerKit: (issuerName: any, ...issuerArgs: any[]) => {
|
|
57
|
-
mint: Mint<any>;
|
|
58
|
-
issuer: Issuer<any>;
|
|
59
|
-
brand: Brand<any>;
|
|
57
|
+
mint: globalThis.Mint<any>;
|
|
58
|
+
issuer: globalThis.Issuer<any>;
|
|
59
|
+
brand: globalThis.Brand<any>;
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
62
|
* @param {string} issuerName
|
|
63
63
|
* @param {bigint} value
|
|
64
64
|
*/
|
|
65
|
-
mintInitialPayment: (issuerName: string, value: bigint) => Payment<AssetKind> | undefined;
|
|
65
|
+
mintInitialPayment: (issuerName: string, value: bigint) => globalThis.Payment<globalThis.AssetKind> | undefined;
|
|
66
66
|
/**
|
|
67
67
|
* @param {string[]} issuerNames
|
|
68
68
|
* @param {bigint[]} values
|
|
69
69
|
*/
|
|
70
|
-
mintInitialPayments: (issuerNames: string[], values: bigint[]) => (Payment<AssetKind> | undefined)[];
|
|
70
|
+
mintInitialPayments: (issuerNames: string[], values: bigint[]) => (globalThis.Payment<globalThis.AssetKind> | undefined)[];
|
|
71
71
|
}>;
|
|
72
72
|
//# sourceMappingURL=vat-mints.d.ts.map
|
package/src/vat-network.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
2
|
-
makeLoopbackProtocolHandler: (instancePrefix?: string | undefined) => import("@endo/exo
|
|
2
|
+
makeLoopbackProtocolHandler: (instancePrefix?: string | undefined) => import("@endo/exo").Guarded<{
|
|
3
3
|
onCreate(_impl: any, _protocolHandler: any): Promise<void>;
|
|
4
4
|
generatePortID(_localAddr: any, _protocolHandler: any): Promise<string>;
|
|
5
5
|
onBind(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
|
|
@@ -9,13 +9,13 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
9
9
|
onListenRemove(port: Remote<Port>, localAddr: string, listenHandler: Remote<ListenHandler>, _protocolHandler: any): Promise<void>;
|
|
10
10
|
onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
|
|
11
11
|
}>;
|
|
12
|
-
makeEchoConnectionKit: () => import("@endo/exo
|
|
12
|
+
makeEchoConnectionKit: () => import("@endo/exo").GuardedKit<{
|
|
13
13
|
handler: {
|
|
14
14
|
onReceive(_connection: Connection, bytes: string, _connectionHandler: ConnectionHandler): Promise<string>;
|
|
15
15
|
onClose(_connection: Connection, _reason?: any, _connectionHandler?: ConnectionHandler | undefined): Promise<void>;
|
|
16
16
|
};
|
|
17
17
|
listener: {
|
|
18
|
-
onAccept(_port: any, _localAddr: any, _remoteAddr: any, _listenHandler: any): Promise<import("@endo/exo
|
|
18
|
+
onAccept(_port: any, _localAddr: any, _remoteAddr: any, _listenHandler: any): Promise<import("@endo/exo").Guarded<{
|
|
19
19
|
onReceive(_connection: Connection, bytes: string, _connectionHandler: ConnectionHandler): Promise<string>;
|
|
20
20
|
onClose(_connection: Connection, _reason?: any, _connectionHandler?: ConnectionHandler | undefined): Promise<void>;
|
|
21
21
|
}>>;
|
|
@@ -29,7 +29,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
29
29
|
/** @param {Parameters<typeof protocol.bind>} args */
|
|
30
30
|
bind: (localAddr: string) => Promise<Port | import("@agoric/vow").Vow<Port>>;
|
|
31
31
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
32
|
-
makeLoopbackProtocolHandler: (instancePrefix?: string | undefined) => import("@endo/exo
|
|
32
|
+
makeLoopbackProtocolHandler: (instancePrefix?: string | undefined) => import("@endo/exo").Guarded<{
|
|
33
33
|
onCreate(_impl: any, _protocolHandler: any): Promise<void>;
|
|
34
34
|
generatePortID(_localAddr: any, _protocolHandler: any): Promise<string>;
|
|
35
35
|
onBind(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
|
|
@@ -39,13 +39,13 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
39
39
|
onListenRemove(port: Remote<Port>, localAddr: string, listenHandler: Remote<ListenHandler>, _protocolHandler: any): Promise<void>;
|
|
40
40
|
onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
|
|
41
41
|
}>;
|
|
42
|
-
makeEchoConnectionKit: () => import("@endo/exo
|
|
42
|
+
makeEchoConnectionKit: () => import("@endo/exo").GuardedKit<{
|
|
43
43
|
handler: {
|
|
44
44
|
onReceive(_connection: Connection, bytes: string, _connectionHandler: ConnectionHandler): Promise<string>;
|
|
45
45
|
onClose(_connection: Connection, _reason?: any, _connectionHandler?: ConnectionHandler | undefined): Promise<void>;
|
|
46
46
|
};
|
|
47
47
|
listener: {
|
|
48
|
-
onAccept(_port: any, _localAddr: any, _remoteAddr: any, _listenHandler: any): Promise<import("@endo/exo
|
|
48
|
+
onAccept(_port: any, _localAddr: any, _remoteAddr: any, _listenHandler: any): Promise<import("@endo/exo").Guarded<{
|
|
49
49
|
onReceive(_connection: Connection, bytes: string, _connectionHandler: ConnectionHandler): Promise<string>;
|
|
50
50
|
onClose(_connection: Connection, _reason?: any, _connectionHandler?: ConnectionHandler | undefined): Promise<void>;
|
|
51
51
|
}>>;
|
|
@@ -10,7 +10,7 @@ export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, ba
|
|
|
10
10
|
}>;
|
|
11
11
|
getNamesByAddressKit: () => {
|
|
12
12
|
namesByAddress: import("./types.js").NameHub;
|
|
13
|
-
namesByAddressAdmin: import("@endo/exo
|
|
13
|
+
namesByAddressAdmin: import("@endo/exo").Farable<import("./types.js").NamesByAddressAdmin>;
|
|
14
14
|
};
|
|
15
15
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
16
16
|
register: (b: ERef<ClientCreator>, c: CommsVatRoot, v: VattpVat) => Promise<void>;
|
|
@@ -19,7 +19,7 @@ export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, ba
|
|
|
19
19
|
}>;
|
|
20
20
|
getNamesByAddressKit: () => {
|
|
21
21
|
namesByAddress: import("./types.js").NameHub;
|
|
22
|
-
namesByAddressAdmin: import("@endo/exo
|
|
22
|
+
namesByAddressAdmin: import("@endo/exo").Farable<import("./types.js").NamesByAddressAdmin>;
|
|
23
23
|
};
|
|
24
24
|
}>;
|
|
25
25
|
//# sourceMappingURL=vat-provisioning.d.ts.map
|
package/src/virtual-purse.d.ts
CHANGED
|
@@ -34,10 +34,10 @@ export function makeVirtualPurseKitIKit(brandShape?: Pattern, amountShape?: Patt
|
|
|
34
34
|
}>;
|
|
35
35
|
};
|
|
36
36
|
export function prepareVirtualPurse(zone: import('@agoric/zone').Zone): (vpc: ERef<VirtualPurseController>, { escrowPurse: defaultEscrowPurse, ...issuerKit }: {
|
|
37
|
-
issuer: ERef<Issuer
|
|
37
|
+
issuer: ERef<globalThis.Issuer>;
|
|
38
38
|
brand: Brand;
|
|
39
|
-
mint?: ERef<Mint
|
|
40
|
-
escrowPurse?: ERef<Purse
|
|
39
|
+
mint?: ERef<globalThis.Mint> | undefined;
|
|
40
|
+
escrowPurse?: ERef<globalThis.Purse> | undefined;
|
|
41
41
|
}) => Promise<Awaited<EOnly<Purse>>>;
|
|
42
42
|
export type EOnly<T> = import('@endo/far').EOnly<T>;
|
|
43
43
|
export type Retain = (pmt: Payment, optAmountShape?: Pattern) => Promise<Amount>;
|
package/tools/board-utils.d.ts
CHANGED
|
@@ -3,19 +3,19 @@ export function makeAgoricNamesRemotesFromFakeStorage(fakeStorageKit: import('@a
|
|
|
3
3
|
export function makeFakeBoard(initSequence?: number | bigint | undefined, options?: {
|
|
4
4
|
prefix?: string | undefined;
|
|
5
5
|
crcDigits?: number | undefined;
|
|
6
|
-
} | undefined): import("@endo/exo
|
|
6
|
+
} | undefined): import("@endo/exo").Guarded<{
|
|
7
7
|
getId(value: any): string;
|
|
8
8
|
getValue(id: string): any;
|
|
9
9
|
lookup(...path: string[]): Promise<any>;
|
|
10
10
|
has(val: any): boolean;
|
|
11
11
|
ids(): string[];
|
|
12
|
-
getPublishingMarshaller(): import("@endo/exo
|
|
12
|
+
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
13
13
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
14
14
|
fromCapData(data: any): any;
|
|
15
15
|
serialize(data: any): import("@endo/marshal").CapData<string>;
|
|
16
16
|
unserialize(data: any): any;
|
|
17
17
|
}>;
|
|
18
|
-
getReadonlyMarshaller(): import("@endo/exo
|
|
18
|
+
getReadonlyMarshaller(): import("@endo/exo").Guarded<{
|
|
19
19
|
toCapData(val: any): import("@endo/marshal").CapData<string | null>;
|
|
20
20
|
fromCapData(data: any): any;
|
|
21
21
|
serialize(data: any): import("@endo/marshal").CapData<string | null>;
|