@agoric/vats 0.15.2-dev-96c9ff5.0 → 0.15.2-dev-1d3807b.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 +17 -17
- package/src/localchain.d.ts +21 -6
- package/src/localchain.d.ts.map +1 -1
- package/src/localchain.js +9 -2
- package/src/vat-localchain.d.ts +4 -4
- package/src/vat-localchain.d.ts.map +1 -1
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-1d3807b.0+1d3807b",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,20 +22,20 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/assert": "0.6.1-dev-
|
|
26
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
27
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
28
|
-
"@agoric/governance": "0.10.4-dev-
|
|
29
|
-
"@agoric/internal": "0.3.3-dev-
|
|
30
|
-
"@agoric/network": "0.1.1-dev-
|
|
31
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
32
|
-
"@agoric/store": "0.9.3-dev-
|
|
33
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
34
|
-
"@agoric/time": "0.3.3-dev-
|
|
35
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
36
|
-
"@agoric/vow": "0.1.1-dev-
|
|
37
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
38
|
-
"@agoric/zone": "0.2.3-dev-
|
|
25
|
+
"@agoric/assert": "0.6.1-dev-1d3807b.0+1d3807b",
|
|
26
|
+
"@agoric/cosmic-proto": "0.4.1-dev-1d3807b.0+1d3807b",
|
|
27
|
+
"@agoric/ertp": "0.16.3-dev-1d3807b.0+1d3807b",
|
|
28
|
+
"@agoric/governance": "0.10.4-dev-1d3807b.0+1d3807b",
|
|
29
|
+
"@agoric/internal": "0.3.3-dev-1d3807b.0+1d3807b",
|
|
30
|
+
"@agoric/network": "0.1.1-dev-1d3807b.0+1d3807b",
|
|
31
|
+
"@agoric/notifier": "0.6.3-dev-1d3807b.0+1d3807b",
|
|
32
|
+
"@agoric/store": "0.9.3-dev-1d3807b.0+1d3807b",
|
|
33
|
+
"@agoric/swingset-vat": "0.32.3-dev-1d3807b.0+1d3807b",
|
|
34
|
+
"@agoric/time": "0.3.3-dev-1d3807b.0+1d3807b",
|
|
35
|
+
"@agoric/vat-data": "0.5.3-dev-1d3807b.0+1d3807b",
|
|
36
|
+
"@agoric/vow": "0.1.1-dev-1d3807b.0+1d3807b",
|
|
37
|
+
"@agoric/zoe": "0.26.3-dev-1d3807b.0+1d3807b",
|
|
38
|
+
"@agoric/zone": "0.2.3-dev-1d3807b.0+1d3807b",
|
|
39
39
|
"@endo/base64": "^1.0.5",
|
|
40
40
|
"@endo/far": "^1.1.2",
|
|
41
41
|
"@endo/import-bundle": "^1.1.2",
|
|
@@ -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-1d3807b.0+1d3807b",
|
|
51
51
|
"@endo/bundle-source": "^3.2.3",
|
|
52
52
|
"@endo/init": "^1.1.2",
|
|
53
53
|
"ava": "^5.3.0",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"typeCoverage": {
|
|
81
81
|
"atLeast": 91.33
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "1d3807ba35247b0811140760851159940d855e56"
|
|
84
84
|
}
|
package/src/localchain.d.ts
CHANGED
|
@@ -44,10 +44,17 @@ export function prepareLocalChainTools(zone: import("@agoric/base-zone").Zone):
|
|
|
44
44
|
*/
|
|
45
45
|
deposit(payment: Payment): Promise<import("@agoric/ertp/exported.js").NatAmount | import("@agoric/ertp/exported.js").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp/exported.js").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp/exported.js").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
47
|
+
* Execute a batch of transactions and return the responses. Use
|
|
48
|
+
* `typedJson()` on the arguments to get typed return values.
|
|
49
|
+
*
|
|
50
|
+
* @template {TypedJson[]} MT messages tuple (use const with multiple
|
|
51
|
+
* elements or it will be a mixed array)
|
|
52
|
+
* @param {MT} messages
|
|
53
|
+
* @returns {Promise<{ [K in keyof MT]: ResponseTo<MT[K]> }>}
|
|
49
54
|
*/
|
|
50
|
-
executeTx
|
|
55
|
+
executeTx<MT extends {
|
|
56
|
+
'@type': string;
|
|
57
|
+
}[]>(messages: MT): Promise<{ [K_1 in keyof MT]: ResponseTo<MT[K_1]>; }>;
|
|
51
58
|
}>>;
|
|
52
59
|
/**
|
|
53
60
|
* Make a single query to the local chain. Will reject with an error if
|
|
@@ -87,6 +94,7 @@ export type LocalChainAccount = Awaited<ReturnType<Awaited<ReturnType<typeof pre
|
|
|
87
94
|
export type LocalChainTools = ReturnType<typeof prepareLocalChainTools>;
|
|
88
95
|
export type LocalChainKit = ReturnType<LocalChainTools["makeLocalChain"]>;
|
|
89
96
|
export type LocalChain = LocalChainKit["public"];
|
|
97
|
+
import type { ResponseTo } from '@agoric/cosmic-proto';
|
|
90
98
|
/** @param {import('@agoric/base-zone').Zone} zone */
|
|
91
99
|
declare function prepareLocalChainAccount(zone: import("@agoric/base-zone").Zone): (address: string, powers: PowerStore) => import("@endo/exo").Guarded<{
|
|
92
100
|
getAddress(): Promise<string>;
|
|
@@ -99,10 +107,17 @@ declare function prepareLocalChainAccount(zone: import("@agoric/base-zone").Zone
|
|
|
99
107
|
*/
|
|
100
108
|
deposit(payment: Payment): Promise<import("@agoric/ertp/exported.js").NatAmount | import("@agoric/ertp/exported.js").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp/exported.js").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp/exported.js").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
101
109
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
110
|
+
* Execute a batch of transactions and return the responses. Use
|
|
111
|
+
* `typedJson()` on the arguments to get typed return values.
|
|
112
|
+
*
|
|
113
|
+
* @template {TypedJson[]} MT messages tuple (use const with multiple
|
|
114
|
+
* elements or it will be a mixed array)
|
|
115
|
+
* @param {MT} messages
|
|
116
|
+
* @returns {Promise<{ [K in keyof MT]: ResponseTo<MT[K]> }>}
|
|
104
117
|
*/
|
|
105
|
-
executeTx
|
|
118
|
+
executeTx<MT extends {
|
|
119
|
+
'@type': string;
|
|
120
|
+
}[]>(messages: MT): Promise<{ [K in keyof MT]: ResponseTo<MT[K]>; }>;
|
|
106
121
|
}>;
|
|
107
122
|
export {};
|
|
108
123
|
//# sourceMappingURL=localchain.d.ts.map
|
package/src/localchain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localchain.d.ts","sourceRoot":"","sources":["localchain.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"localchain.d.ts","sourceRoot":"","sources":["localchain.js"],"names":[],"mappings":"AA+BA;;;;GAMG;AA4DH;;;;GAIG;AAEH;;;;GAIG;AAEH;;GAEG;AAsGI,6CADK,OAAO,mBAAmB,EAAE,IAAI;;;YA9EpC;;;;eAIG;qBAFQ,CAAC,uCAAD,CAAC;;;YAkBZ;;;;;eAKG;;;gBAzGL;;;;;;mBAMG;iCADQ,OAAO;gBAYlB;;;;;;;;mBAQG;0BADgD,EAAE;;+BAAF,EAAE,AADxC;;YA2FX;;;;;;;eAOG;2BAFQ,OAAO,sBAAsB,EAAE,SAAS,GACtC,OAAO,CAAC,OAAO,sBAAsB,EAAE,SAAS,CAAC;YAa9D;;;;;;;;;;;;eAYG;gCAPQ,OAAO,sBAAsB,EAAE,SAAS,EAAE,GACxC,OAAO,CACnB;gBACA,KAAW,CAAC,EAAE,MAAM,CAAC;gBACrB,KAAW,EAAE,OAAO,sBAAsB,EAAE,SAAS,CAAC;aACjD,EAAE,CACJ;;;EAoBX;+BAhNY;IACZ,MAAU,EAAE,OAAO,YAAY,EAAE,mBAAmB,CAAC;IACrD,WAAe,EAAE,OAAO,eAAe,EAAE,WAAW,CAAC;CAClD;yBAES,QAAQ,CACpB,MAAU,gBAAgB,EAC1B,gBAAoB,CAAC,MAAM,gBAAgB,CAAC,CACzC;gCAgFS,OAAO,CACnB,UAAc,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC,CAAC,CACjE;8BAyHU,UAAU,CAAC,OAAO,sBAAsB,CAAC;4BACzC,UAAU,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC;yBAC7C,aAAa,CAAC,QAAQ,CAAC;gCAxNI,sBAAsB;AAgC/D,qDAAqD;AACrD,gDADY,OAAO,mBAAmB,EAAE,IAAI;;IAetC;;;;;;OAMG;qBADQ,OAAO;IAYlB;;;;;;;;OAQG;cADgD,EAAE;;mBAAF,EAAE,AADxC;GAmBhB"}
|
package/src/localchain.js
CHANGED
|
@@ -5,6 +5,8 @@ import { AmountShape } from '@agoric/ertp';
|
|
|
5
5
|
|
|
6
6
|
const { Fail, bare } = assert;
|
|
7
7
|
|
|
8
|
+
/** @import {TypedJson, ResponseTo} from '@agoric/cosmic-proto'; */
|
|
9
|
+
|
|
8
10
|
/**
|
|
9
11
|
* @typedef {{
|
|
10
12
|
* system: import('./types.js').ScopedBridgeManager;
|
|
@@ -68,8 +70,13 @@ const prepareLocalChainAccount = zone =>
|
|
|
68
70
|
return E(allegedPurse).deposit(payment);
|
|
69
71
|
},
|
|
70
72
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
+
* Execute a batch of transactions and return the responses. Use
|
|
74
|
+
* `typedJson()` on the arguments to get typed return values.
|
|
75
|
+
*
|
|
76
|
+
* @template {TypedJson[]} MT messages tuple (use const with multiple
|
|
77
|
+
* elements or it will be a mixed array)
|
|
78
|
+
* @param {MT} messages
|
|
79
|
+
* @returns {Promise<{ [K in keyof MT]: ResponseTo<MT[K]> }>}
|
|
73
80
|
*/
|
|
74
81
|
async executeTx(messages) {
|
|
75
82
|
const { address, powers } = this.state;
|
package/src/vat-localchain.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
13
13
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
14
14
|
getAddress(): Promise<string>;
|
|
15
15
|
deposit(payment: Payment): Promise<import("@agoric/ertp/exported.js").NatAmount | import("@agoric/ertp/exported.js").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp/exported.js").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp/exported.js").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
16
|
-
executeTx
|
|
16
|
+
executeTx<MT extends {
|
|
17
17
|
'@type': string;
|
|
18
|
-
}[]>;
|
|
18
|
+
}[]>(messages: MT): Promise<{ [K_1 in keyof MT]: import("@agoric/cosmic-proto").ResponseTo<MT[K_1]>; }>;
|
|
19
19
|
}>>;
|
|
20
20
|
query(request: import("@agoric/cosmic-proto").TypedJson): Promise<{
|
|
21
21
|
'@type': string;
|
|
@@ -43,9 +43,9 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
43
43
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
44
44
|
getAddress(): Promise<string>;
|
|
45
45
|
deposit(payment: Payment): Promise<import("@agoric/ertp/exported.js").NatAmount | import("@agoric/ertp/exported.js").CopySetAmount<import("@endo/patterns").Key> | import("@agoric/ertp/exported.js").SetAmount<import("@endo/patterns").Key> | import("@agoric/ertp/exported.js").CopyBagAmount<import("@endo/patterns").Key>>;
|
|
46
|
-
executeTx
|
|
46
|
+
executeTx<MT extends {
|
|
47
47
|
'@type': string;
|
|
48
|
-
}[]>;
|
|
48
|
+
}[]>(messages: MT): Promise<{ [K_1 in keyof MT]: import("@agoric/cosmic-proto").ResponseTo<MT[K_1]>; }>;
|
|
49
49
|
}>>;
|
|
50
50
|
query(request: import("@agoric/cosmic-proto").TypedJson): Promise<{
|
|
51
51
|
'@type': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-localchain.d.ts","sourceRoot":"","sources":["vat-localchain.js"],"names":[],"mappings":"AAMO;IAKH;;;;;OAKG;;;
|
|
1
|
+
{"version":3,"file":"vat-localchain.d.ts","sourceRoot":"","sources":["vat-localchain.js"],"names":[],"mappings":"AAMO;IAKH;;;;;OAKG;;;uFAQ8kH,CAAC;;;;;iCAArqF,OAAO;;;+BAA8sB,EAAE;;2BAAkvG,OAAO,sBAAsB,EAAE,SAAS;;;gCAAwtB,OAAO,sBAAsB,EAAE,SAAS,EAAE;;;;;;;;;IAbhqL;;;;;OAKG;;;;;;;;;;;;;0DAQk5J,SAAS;;;+DAAuvB,SAAS;;;;;;;;GAHjqL;4BAEa,UAAU,CAAC,OAAO,eAAe,CAAC"}
|