@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
package/src/vat-ibc.d.ts
CHANGED
|
@@ -1,43 +1,15 @@
|
|
|
1
1
|
export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
2
2
|
createHandlers: (callbacks: any) => {
|
|
3
|
-
protocolHandler: ProtocolHandler;
|
|
3
|
+
protocolHandler: import("@agoric/network").ProtocolHandler;
|
|
4
4
|
bridgeHandler: import("./types.js").BridgeHandler;
|
|
5
|
-
} | {
|
|
6
|
-
protocolHandler: import("@endo/exo").Guarded<{
|
|
7
|
-
onCreate(protocol: Remote<ProtocolImpl>, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
8
|
-
onInstantiate(port: Remote<Port>, localAddr: Endpoint, remote: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<string>;
|
|
9
|
-
generatePortID(localAddr: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<string>;
|
|
10
|
-
onBind(port: Remote<Port>, localAddr: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
11
|
-
onConnect(port: Remote<Port>, localAddr: Endpoint, remote: Endpoint, c: Remote<ConnectionHandler>, p: Remote<ProtocolHandler>): PromiseVow<AttemptDescription>;
|
|
12
|
-
onListen(port: Remote<Port>, localAddr: Endpoint, listenHandler: Remote<ListenHandler>, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
13
|
-
onListenRemove(port: Remote<Port>, localAddr: Endpoint, listenHandler: Remote<ListenHandler>, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
14
|
-
onRevoke(port: Remote<Port>, localAddr: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
15
|
-
}>;
|
|
16
|
-
bridgeHandler: import("@endo/exo").Guarded<{
|
|
17
|
-
fromBridge(obj: import("./types.js").IBCEvent<import("./types.js").IBCBridgeEvent>): Promise<import("@agoric/vow").Vow<any> | undefined>;
|
|
18
|
-
}>;
|
|
19
5
|
};
|
|
20
6
|
makeCallbacks: (dibcBridgeManager: import("./types.js").ScopedBridgeManager) => import("@endo/exo").Guarded<{
|
|
21
7
|
downcall(method: string, obj: any): Promise<any>;
|
|
22
8
|
}>;
|
|
23
9
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
24
10
|
createHandlers: (callbacks: any) => {
|
|
25
|
-
protocolHandler: ProtocolHandler;
|
|
11
|
+
protocolHandler: import("@agoric/network").ProtocolHandler;
|
|
26
12
|
bridgeHandler: import("./types.js").BridgeHandler;
|
|
27
|
-
} | {
|
|
28
|
-
protocolHandler: import("@endo/exo").Guarded<{
|
|
29
|
-
onCreate(protocol: Remote<ProtocolImpl>, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
30
|
-
onInstantiate(port: Remote<Port>, localAddr: Endpoint, remote: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<string>;
|
|
31
|
-
generatePortID(localAddr: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<string>;
|
|
32
|
-
onBind(port: Remote<Port>, localAddr: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
33
|
-
onConnect(port: Remote<Port>, localAddr: Endpoint, remote: Endpoint, c: Remote<ConnectionHandler>, p: Remote<ProtocolHandler>): PromiseVow<AttemptDescription>;
|
|
34
|
-
onListen(port: Remote<Port>, localAddr: Endpoint, listenHandler: Remote<ListenHandler>, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
35
|
-
onListenRemove(port: Remote<Port>, localAddr: Endpoint, listenHandler: Remote<ListenHandler>, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
36
|
-
onRevoke(port: Remote<Port>, localAddr: Endpoint, p: Remote<ProtocolHandler>): PromiseVow<void>;
|
|
37
|
-
}>;
|
|
38
|
-
bridgeHandler: import("@endo/exo").Guarded<{
|
|
39
|
-
fromBridge(obj: import("./types.js").IBCEvent<import("./types.js").IBCBridgeEvent>): Promise<import("@agoric/vow").Vow<any> | undefined>;
|
|
40
|
-
}>;
|
|
41
13
|
};
|
|
42
14
|
makeCallbacks: (dibcBridgeManager: import("./types.js").ScopedBridgeManager) => import("@endo/exo").Guarded<{
|
|
43
15
|
downcall(method: string, obj: any): Promise<any>;
|
package/src/vat-ibc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-ibc.d.ts","sourceRoot":"","sources":["vat-ibc.js"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"vat-ibc.d.ts","sourceRoot":"","sources":["vat-ibc.js"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAmBC"}
|
package/src/vat-network.d.ts
CHANGED
|
@@ -3,29 +3,47 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
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>;
|
|
6
|
-
onConnect(_port: any, localAddr:
|
|
6
|
+
onConnect(_port: any, localAddr: string, remoteAddr: string): import("@agoric/vow").PromiseVow<import("@agoric/network").AttemptDescription>;
|
|
7
7
|
onInstantiate(_port: any, _localAddr: any, _remote: any, _protocol: any): Promise<string>;
|
|
8
8
|
onListen(port: any, localAddr: any, listenHandler: any, _protocolHandler: any): Promise<void>;
|
|
9
|
-
onListenRemove(port: Remote<Port>, localAddr:
|
|
9
|
+
onListenRemove(port: import("@agoric/vow").Remote<import("@agoric/network").Port, {}>, localAddr: string, listenHandler: import("@agoric/vow").Remote<import("@agoric/network").ListenHandler, {
|
|
10
|
+
/**
|
|
11
|
+
* The listener has been registered
|
|
12
|
+
*/
|
|
13
|
+
onListen?: undefined;
|
|
14
|
+
/**
|
|
15
|
+
* The connection was rejected
|
|
16
|
+
*/
|
|
17
|
+
onReject?: undefined;
|
|
18
|
+
/**
|
|
19
|
+
* There was an error while listening
|
|
20
|
+
*/
|
|
21
|
+
onError?: undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The
|
|
24
|
+
* listener has been removed
|
|
25
|
+
*/
|
|
26
|
+
onRemove?: undefined;
|
|
27
|
+
}>, _protocolHandler: any): Promise<void>;
|
|
10
28
|
onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
|
|
11
29
|
}>;
|
|
12
30
|
makeEchoConnectionKit: () => import("@endo/exo").GuardedKit<{
|
|
13
31
|
handler: {
|
|
14
|
-
onReceive(_connection: Connection, bytes:
|
|
15
|
-
onClose(_connection: Connection, _reason?:
|
|
32
|
+
onReceive(_connection: import("@agoric/network").Connection, bytes: string, _connectionHandler: import("@agoric/network").ConnectionHandler): Promise<string>;
|
|
33
|
+
onClose(_connection: import("@agoric/network").Connection, _reason?: any, _connectionHandler?: import("@agoric/network").ConnectionHandler | undefined): Promise<void>;
|
|
16
34
|
};
|
|
17
35
|
listener: {
|
|
18
36
|
onAccept(_port: any, _localAddr: any, _remoteAddr: any, _listenHandler: any): Promise<import("@endo/exo").Guarded<{
|
|
19
|
-
onReceive(_connection: Connection, bytes:
|
|
20
|
-
onClose(_connection: Connection, _reason?:
|
|
37
|
+
onReceive(_connection: import("@agoric/network").Connection, bytes: string, _connectionHandler: import("@agoric/network").ConnectionHandler): Promise<string>;
|
|
38
|
+
onClose(_connection: import("@agoric/network").Connection, _reason?: any, _connectionHandler?: import("@agoric/network").ConnectionHandler | undefined): Promise<void>;
|
|
21
39
|
}>>;
|
|
22
40
|
onListen(port: any, _listenHandler: any): Promise<void>;
|
|
23
41
|
};
|
|
24
42
|
}>;
|
|
25
43
|
/** @param {Parameters<typeof protocol.registerProtocolHandler>} args */
|
|
26
|
-
registerProtocolHandler: (paths: string[], protocolHandler: Remote<ProtocolHandler>) => void;
|
|
44
|
+
registerProtocolHandler: (paths: string[], protocolHandler: import("@agoric/vow").Remote<import("@agoric/network").ProtocolHandler>) => void;
|
|
27
45
|
/** @param {Parameters<typeof protocol.unregisterProtocolHandler>} args */
|
|
28
|
-
unregisterProtocolHandler: (prefix: string, protocolHandler: Remote<ProtocolHandler>) => void;
|
|
46
|
+
unregisterProtocolHandler: (prefix: string, protocolHandler: import("@agoric/vow").Remote<import("@agoric/network").ProtocolHandler>) => void;
|
|
29
47
|
getPortAllocator(): import("@endo/exo").Guarded<{
|
|
30
48
|
allocateCustomIBCPort(specifiedName?: string): import("@agoric/vow").Vow<any>;
|
|
31
49
|
allocateICAControllerPort(): import("@agoric/vow").Vow<any>;
|
|
@@ -36,29 +54,60 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
36
54
|
onCreate(_impl: any, _protocolHandler: any): Promise<void>;
|
|
37
55
|
generatePortID(_localAddr: any, _protocolHandler: any): Promise<string>;
|
|
38
56
|
onBind(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
|
|
39
|
-
onConnect(_port: any, localAddr:
|
|
57
|
+
onConnect(_port: any, localAddr: string, remoteAddr: string): import("@agoric/vow").PromiseVow<import("@agoric/network").AttemptDescription>;
|
|
40
58
|
onInstantiate(_port: any, _localAddr: any, _remote: any, _protocol: any): Promise<string>;
|
|
41
59
|
onListen(port: any, localAddr: any, listenHandler: any, _protocolHandler: any): Promise<void>;
|
|
42
|
-
onListenRemove(port: Remote<Port>, localAddr:
|
|
60
|
+
onListenRemove(port: import("@agoric/vow").Remote<import("@agoric/network").Port, {}>, localAddr: string, listenHandler: import("@agoric/vow").Remote<import("@agoric/network").ListenHandler, {
|
|
61
|
+
/**
|
|
62
|
+
* The listener has been registered
|
|
63
|
+
*/
|
|
64
|
+
/**
|
|
65
|
+
* The listener has been registered
|
|
66
|
+
*/
|
|
67
|
+
onListen?: undefined;
|
|
68
|
+
/**
|
|
69
|
+
* The connection was rejected
|
|
70
|
+
*/
|
|
71
|
+
/**
|
|
72
|
+
* The connection was rejected
|
|
73
|
+
*/
|
|
74
|
+
onReject?: undefined;
|
|
75
|
+
/**
|
|
76
|
+
* There was an error while listening
|
|
77
|
+
*/
|
|
78
|
+
/**
|
|
79
|
+
* There was an error while listening
|
|
80
|
+
*/
|
|
81
|
+
onError?: undefined;
|
|
82
|
+
/**
|
|
83
|
+
* The
|
|
84
|
+
* listener has been removed
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* The
|
|
88
|
+
* listener has been removed
|
|
89
|
+
*/
|
|
90
|
+
onRemove?: undefined;
|
|
91
|
+
}>, _protocolHandler: any): Promise<void>;
|
|
43
92
|
onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
|
|
44
93
|
}>;
|
|
45
94
|
makeEchoConnectionKit: () => import("@endo/exo").GuardedKit<{
|
|
46
95
|
handler: {
|
|
47
|
-
onReceive(_connection: Connection, bytes:
|
|
48
|
-
onClose(_connection: Connection, _reason?:
|
|
96
|
+
onReceive(_connection: import("@agoric/network").Connection, bytes: string, _connectionHandler: import("@agoric/network").ConnectionHandler): Promise<string>;
|
|
97
|
+
onClose(_connection: import("@agoric/network").Connection, _reason?: any, _connectionHandler?: import("@agoric/network").ConnectionHandler | undefined): Promise<void>;
|
|
49
98
|
};
|
|
50
99
|
listener: {
|
|
51
100
|
onAccept(_port: any, _localAddr: any, _remoteAddr: any, _listenHandler: any): Promise<import("@endo/exo").Guarded<{
|
|
52
|
-
onReceive(_connection: Connection, bytes:
|
|
53
|
-
onClose(_connection: Connection, _reason?:
|
|
101
|
+
onReceive(_connection: import("@agoric/network").Connection, bytes: string, _connectionHandler: import("@agoric/network").ConnectionHandler): Promise<string>;
|
|
102
|
+
onClose(_connection: import("@agoric/network").Connection, _reason?: any, _connectionHandler?: import("@agoric/network").ConnectionHandler | undefined): Promise<void>;
|
|
54
103
|
}>>;
|
|
55
104
|
onListen(port: any, _listenHandler: any): Promise<void>;
|
|
56
105
|
};
|
|
57
106
|
}>;
|
|
58
107
|
/** @param {Parameters<typeof protocol.registerProtocolHandler>} args */
|
|
59
|
-
registerProtocolHandler: (paths: string[], protocolHandler: Remote<ProtocolHandler>) => void;
|
|
108
|
+
registerProtocolHandler: (paths: string[], protocolHandler: import("@agoric/vow").Remote<import("@agoric/network").ProtocolHandler>) => void;
|
|
60
109
|
/** @param {Parameters<typeof protocol.unregisterProtocolHandler>} args */
|
|
61
|
-
unregisterProtocolHandler: (prefix: string, protocolHandler: Remote<ProtocolHandler>) => void;
|
|
110
|
+
unregisterProtocolHandler: (prefix: string, protocolHandler: import("@agoric/vow").Remote<import("@agoric/network").ProtocolHandler>) => void;
|
|
62
111
|
getPortAllocator(): import("@endo/exo").Guarded<{
|
|
63
112
|
allocateCustomIBCPort(specifiedName?: string): import("@agoric/vow").Vow<any>;
|
|
64
113
|
allocateICAControllerPort(): import("@agoric/vow").Vow<any>;
|
package/src/vat-network.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-network.d.ts","sourceRoot":"","sources":["vat-network.js"],"names":[],"mappings":"AAWA
|
|
1
|
+
{"version":3,"file":"vat-network.d.ts","sourceRoot":"","sources":["vat-network.js"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BI,wEAAwE;;IAGxE,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAH1E,wEAAwE;;IAGxE,0EAA0E;;;;;;;GAO7E"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @param {unknown} _vatParams
|
|
7
7
|
* @param {import('@agoric/vat-data').Baggage} baggage
|
|
8
8
|
*/
|
|
9
|
-
export function buildRootObject(_vatPowers:
|
|
9
|
+
export function buildRootObject(_vatPowers: TerminationVatPowers, _vatParams: unknown, baggage: import("@agoric/vat-data").Baggage): {
|
|
10
10
|
getRegistry: () => import("./priceAuthorityRegistry.js").PriceAuthorityRegistry;
|
|
11
11
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
12
12
|
getRegistry: () => import("./priceAuthorityRegistry.js").PriceAuthorityRegistry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-priceAuthority.d.ts","sourceRoot":"","sources":["vat-priceAuthority.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,
|
|
1
|
+
{"version":3,"file":"vat-priceAuthority.d.ts","sourceRoot":"","sources":["vat-priceAuthority.js"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,8EAHW,OAAO,WACP,OAAO,kBAAkB,EAAE,OAAO;;;;GAK5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-provisioning.d.ts","sourceRoot":"","sources":["vat-provisioning.js"],"names":[],"mappings":"AAkFA;;;;GAIG;AACH,4CAJW,OAAO,kBACP,OAAO,WACP,OAAO,kBAAkB,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"vat-provisioning.d.ts","sourceRoot":"","sources":["vat-provisioning.js"],"names":[],"mappings":"AAkFA;;;;GAIG;AACH,4CAJW,OAAO,kBACP,OAAO,WACP,OAAO,kBAAkB,EAAE,OAAO;kBAmBhC,IAAI,CAAC,aAAa,CAAC,KACnB,YAAY,KACZ,QAAQ;gCASR,MAAM,WACN,MAAM,cACN,MAAM,EAAE;;;;;;;;kBAbR,IAAI,CAAC,aAAa,CAAC,KACnB,YAAY,KACZ,QAAQ;gCASR,MAAM,WACN,MAAM,cACN,MAAM,EAAE;;;;;;;GAuDpB"}
|
package/src/virtual-purse.d.ts
CHANGED
|
@@ -34,38 +34,38 @@ 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<
|
|
37
|
+
issuer: ERef<Issuer>;
|
|
38
38
|
brand: Brand;
|
|
39
|
-
mint?: ERef<
|
|
40
|
-
escrowPurse?: ERef<
|
|
39
|
+
mint?: ERef<Mint>;
|
|
40
|
+
escrowPurse?: ERef<Purse>;
|
|
41
41
|
}) => Promise<{
|
|
42
42
|
/**
|
|
43
43
|
* Get the alleged Brand for this
|
|
44
44
|
* Purse
|
|
45
45
|
*/
|
|
46
|
-
getAllegedBrand: () => ERef<{
|
|
46
|
+
getAllegedBrand: () => globalThis.ERef<{
|
|
47
47
|
/**
|
|
48
48
|
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
49
49
|
*/
|
|
50
|
-
isMyIssuer: (allegedIssuer: ERef<globalThis.Issuer>) => ERef<boolean>;
|
|
51
|
-
getAllegedName: () => ERef<string>;
|
|
50
|
+
isMyIssuer: (allegedIssuer: globalThis.ERef<globalThis.Issuer>) => globalThis.ERef<boolean>;
|
|
51
|
+
getAllegedName: () => globalThis.ERef<string>;
|
|
52
52
|
/**
|
|
53
53
|
* Give information to UI on how
|
|
54
54
|
* to display the amount.
|
|
55
55
|
*/
|
|
56
|
-
getDisplayInfo: () => ERef<globalThis.DisplayInfo<globalThis.AssetKind>>;
|
|
56
|
+
getDisplayInfo: () => globalThis.ERef<globalThis.DisplayInfo<globalThis.AssetKind>>;
|
|
57
57
|
getAmountShape: () => any;
|
|
58
58
|
}>;
|
|
59
59
|
/**
|
|
60
60
|
* Get the amount contained in this
|
|
61
61
|
* purse.
|
|
62
62
|
*/
|
|
63
|
-
getCurrentAmount: () => ERef<globalThis.Amount<globalThis.AssetKind>>;
|
|
63
|
+
getCurrentAmount: () => globalThis.ERef<globalThis.Amount<globalThis.AssetKind>>;
|
|
64
64
|
/**
|
|
65
65
|
* Get a lossy
|
|
66
66
|
* notifier for changes to this purse's balance.
|
|
67
67
|
*/
|
|
68
|
-
getCurrentAmountNotifier: () => ERef<{
|
|
68
|
+
getCurrentAmountNotifier: () => globalThis.ERef<{
|
|
69
69
|
/**
|
|
70
70
|
* Returns a promise for an update record as of an update count.
|
|
71
71
|
* If the `updateCount` argument is omitted or differs from the current update count,
|
|
@@ -76,7 +76,7 @@ export function prepareVirtualPurse(zone: import("@agoric/zone").Zone): (vpc: ER
|
|
|
76
76
|
* Used to make lossy ("latest") iterators.
|
|
77
77
|
* NOTE: Use of `number` as an `updateCount` is deprecated.
|
|
78
78
|
*/
|
|
79
|
-
getUpdateSince: (updateCount?: number | bigint | undefined) => ERef<UpdateRecord<globalThis.Amount<globalThis.AssetKind>>>;
|
|
79
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => globalThis.ERef<globalThis.UpdateRecord<globalThis.Amount<globalThis.AssetKind>>>;
|
|
80
80
|
}>;
|
|
81
81
|
/**
|
|
82
82
|
* Deposit all the contents of payment into
|
|
@@ -85,12 +85,12 @@ export function prepareVirtualPurse(zone: import("@agoric/zone").Zone): (vpc: ER
|
|
|
85
85
|
*
|
|
86
86
|
* If payment is a promise, throw an error.
|
|
87
87
|
*/
|
|
88
|
-
deposit: (args_0: globalThis.Payment<globalThis.AssetKind>, args_1?: any) => ERef<globalThis.Amount<globalThis.AssetKind>>;
|
|
88
|
+
deposit: (args_0: globalThis.Payment<globalThis.AssetKind>, args_1?: any) => globalThis.ERef<globalThis.Amount<globalThis.AssetKind>>;
|
|
89
89
|
/**
|
|
90
90
|
* Return an object whose
|
|
91
91
|
* `receive` method deposits to the current Purse.
|
|
92
92
|
*/
|
|
93
|
-
getDepositFacet: () => ERef<{
|
|
93
|
+
getDepositFacet: () => globalThis.ERef<{
|
|
94
94
|
/**
|
|
95
95
|
* Deposit all the contents of payment
|
|
96
96
|
* into the purse that made this facet, returning the amount. If the optional
|
|
@@ -99,30 +99,30 @@ export function prepareVirtualPurse(zone: import("@agoric/zone").Zone): (vpc: ER
|
|
|
99
99
|
*
|
|
100
100
|
* If payment is a promise, throw an error.
|
|
101
101
|
*/
|
|
102
|
-
receive: (args_0: globalThis.Payment, args_1?: any) => ERef<globalThis.Amount>;
|
|
102
|
+
receive: (args_0: globalThis.Payment, args_1?: any) => globalThis.ERef<globalThis.Amount>;
|
|
103
103
|
}>;
|
|
104
104
|
/**
|
|
105
105
|
* Withdraw amount from
|
|
106
106
|
* this purse into a new Payment.
|
|
107
107
|
*/
|
|
108
|
-
withdraw: (amount: globalThis.Amount<globalThis.AssetKind>) => ERef<{
|
|
108
|
+
withdraw: (amount: globalThis.Amount<globalThis.AssetKind>) => globalThis.ERef<{
|
|
109
109
|
/**
|
|
110
110
|
* Get the allegedBrand, indicating
|
|
111
111
|
* the type of digital asset this payment purports to be, and which issuer to
|
|
112
112
|
* use. Because payments are not trusted, any method calls on payments should
|
|
113
113
|
* be treated with suspicion and verified elsewhere.
|
|
114
114
|
*/
|
|
115
|
-
getAllegedBrand: () => ERef<{
|
|
115
|
+
getAllegedBrand: () => globalThis.ERef<{
|
|
116
116
|
/**
|
|
117
117
|
* Should be used with `issuer.getBrand` to ensure an issuer and brand match.
|
|
118
118
|
*/
|
|
119
|
-
isMyIssuer: (allegedIssuer: ERef<globalThis.Issuer>) => ERef<boolean>;
|
|
120
|
-
getAllegedName: () => ERef<string>;
|
|
119
|
+
isMyIssuer: (allegedIssuer: globalThis.ERef<globalThis.Issuer>) => globalThis.ERef<boolean>;
|
|
120
|
+
getAllegedName: () => globalThis.ERef<string>;
|
|
121
121
|
/**
|
|
122
122
|
* Give information to UI on how
|
|
123
123
|
* to display the amount.
|
|
124
124
|
*/
|
|
125
|
-
getDisplayInfo: () => ERef<globalThis.DisplayInfo<globalThis.AssetKind>>;
|
|
125
|
+
getDisplayInfo: () => globalThis.ERef<globalThis.DisplayInfo<globalThis.AssetKind>>;
|
|
126
126
|
getAmountShape: () => any;
|
|
127
127
|
}>;
|
|
128
128
|
}>;
|
|
@@ -138,7 +138,7 @@ export function prepareVirtualPurse(zone: import("@agoric/zone").Zone): (vpc: ER
|
|
|
138
138
|
*
|
|
139
139
|
* Returns an empty set if this issuer does not support recovery sets.
|
|
140
140
|
*/
|
|
141
|
-
getRecoverySet: () => ERef<import("@endo/patterns").CopySet<globalThis.Payment<globalThis.AssetKind>>>;
|
|
141
|
+
getRecoverySet: () => globalThis.ERef<import("@endo/patterns").CopySet<globalThis.Payment<globalThis.AssetKind>>>;
|
|
142
142
|
/**
|
|
143
143
|
* For use in emergencies, such as coming
|
|
144
144
|
* back from a traumatic crash and upgrade. This deposits all the payments in
|
|
@@ -147,7 +147,7 @@ export function prepareVirtualPurse(zone: import("@agoric/zone").Zone): (vpc: ER
|
|
|
147
147
|
*
|
|
148
148
|
* Returns an empty amount if this issuer does not support recovery sets.
|
|
149
149
|
*/
|
|
150
|
-
recoverAll: () => ERef<globalThis.Amount<globalThis.AssetKind>>;
|
|
150
|
+
recoverAll: () => globalThis.ERef<globalThis.Amount<globalThis.AssetKind>>;
|
|
151
151
|
}>;
|
|
152
152
|
export type Retain = (pmt: Payment, optAmountShape?: Pattern) => Promise<Amount>;
|
|
153
153
|
export type Redeem = (amt: Amount) => Promise<Payment>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-purse.d.ts","sourceRoot":"","sources":["virtual-purse.js"],"names":[],"mappings":"AAsBO,qDAHI,OAAO,gBACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6DjB;AAwLM,0CADK,OAAO,cAAc,EAAE,IAAI
|
|
1
|
+
{"version":3,"file":"virtual-purse.d.ts","sourceRoot":"","sources":["virtual-purse.js"],"names":[],"mappings":"AAsBO,qDAHI,OAAO,gBACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6DjB;AAwLM,0CADK,OAAO,cAAc,EAAE,IAAI,SAK1B,IAAI,CAAC,sBAAsB,CAAC,qDAE5B;IACV,MAAU,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACzB,KAAS,EAAE,KAAK,CAAC;IACjB,IAAQ,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACtB,WAAe,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;CAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCL;qBAhOa,CAAC,GAAG,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC;qBAC3D,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC;;;;;;;;;;;;gBAKjC,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;;;;;;;gBAIjC,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;;;;;iBAIjC,CAAC,KAAK,EAAE,KAAK,KAAK,WAAW,CAAC,MAAM,CAAC"}
|
package/tools/bank-utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function makeFakeBankKit(issuerKits: Pick<IssuerKit, "brand" | "issuer">[]): {
|
|
2
2
|
addAsset: (denom: string, issuerName: string, proposedName: string, kit: import("../src/vat-bank.js").AssetIssuerKit) => void;
|
|
3
|
-
assetPublication: IterationObserver<import("../src/vat-bank.js").AssetDescriptor>;
|
|
3
|
+
assetPublication: globalThis.IterationObserver<import("../src/vat-bank.js").AssetDescriptor>;
|
|
4
4
|
bank: import("../src/vat-bank.js").Bank;
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=bank-utils.d.ts.map
|