@agoric/vats 0.15.2-dev-77eeafc.0 → 0.15.2-dev-ae69fbd.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 +25 -25
- package/src/core/boot-chain.d.ts +4 -4
- package/src/localchain.d.ts +2 -2
- package/src/localchain.d.ts.map +1 -1
- package/src/localchain.js +4 -1
- package/src/proposals/upgrade-provisionPool-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-provisionPool-proposal.js +2 -0
- package/src/vat-board.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-ae69fbd.0+ae69fbd",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,33 +22,33 @@
|
|
|
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-
|
|
38
|
-
"@endo/errors": "^1.2.
|
|
39
|
-
"@endo/far": "^1.1.
|
|
40
|
-
"@endo/import-bundle": "^1.1
|
|
41
|
-
"@endo/marshal": "^1.5.
|
|
42
|
-
"@endo/nat": "^5.0.
|
|
43
|
-
"@endo/patterns": "^1.4.
|
|
44
|
-
"@endo/promise-kit": "^1.1.
|
|
25
|
+
"@agoric/cosmic-proto": "0.4.1-dev-ae69fbd.0+ae69fbd",
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-ae69fbd.0+ae69fbd",
|
|
27
|
+
"@agoric/governance": "0.10.4-dev-ae69fbd.0+ae69fbd",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-ae69fbd.0+ae69fbd",
|
|
29
|
+
"@agoric/network": "0.1.1-dev-ae69fbd.0+ae69fbd",
|
|
30
|
+
"@agoric/notifier": "0.6.3-dev-ae69fbd.0+ae69fbd",
|
|
31
|
+
"@agoric/store": "0.9.3-dev-ae69fbd.0+ae69fbd",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-ae69fbd.0+ae69fbd",
|
|
33
|
+
"@agoric/time": "0.3.3-dev-ae69fbd.0+ae69fbd",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-dev-ae69fbd.0+ae69fbd",
|
|
35
|
+
"@agoric/vow": "0.1.1-dev-ae69fbd.0+ae69fbd",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-ae69fbd.0+ae69fbd",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-ae69fbd.0+ae69fbd",
|
|
38
|
+
"@endo/errors": "^1.2.4",
|
|
39
|
+
"@endo/far": "^1.1.4",
|
|
40
|
+
"@endo/import-bundle": "^1.2.1",
|
|
41
|
+
"@endo/marshal": "^1.5.2",
|
|
42
|
+
"@endo/nat": "^5.0.9",
|
|
43
|
+
"@endo/patterns": "^1.4.2",
|
|
44
|
+
"@endo/promise-kit": "^1.1.4",
|
|
45
45
|
"import-meta-resolve": "^2.2.1",
|
|
46
46
|
"jessie.js": "^0.3.4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
50
|
-
"@endo/bundle-source": "^3.
|
|
51
|
-
"@endo/init": "^1.1.
|
|
49
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-ae69fbd.0+ae69fbd",
|
|
50
|
+
"@endo/bundle-source": "^3.3.0",
|
|
51
|
+
"@endo/init": "^1.1.3",
|
|
52
52
|
"ava": "^5.3.0",
|
|
53
53
|
"c8": "^9.1.0"
|
|
54
54
|
},
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"typeCoverage": {
|
|
79
79
|
"atLeast": 91.52
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "ae69fbd35e00cc1bc6d497dc6baa484a930abdb5"
|
|
82
82
|
}
|
package/src/core/boot-chain.d.ts
CHANGED
|
@@ -137,8 +137,8 @@ export namespace modules {
|
|
|
137
137
|
unserialize(data: any): any;
|
|
138
138
|
}>;
|
|
139
139
|
}>;
|
|
140
|
-
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("
|
|
141
|
-
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("
|
|
140
|
+
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
141
|
+
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
142
142
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
143
143
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
144
144
|
getId(value: import("@endo/pass-style").RemotableObject): string;
|
|
@@ -159,8 +159,8 @@ export namespace modules {
|
|
|
159
159
|
unserialize(data: any): any;
|
|
160
160
|
}>;
|
|
161
161
|
}>;
|
|
162
|
-
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("
|
|
163
|
-
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("
|
|
162
|
+
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
163
|
+
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
164
164
|
}>>;
|
|
165
165
|
};
|
|
166
166
|
};
|
package/src/localchain.d.ts
CHANGED
|
@@ -66,12 +66,12 @@ export function prepareLocalChainAccountKit(zone: import("@agoric/base-zone").Zo
|
|
|
66
66
|
* This is safe, since even if the payment lies about its brand, ERTP
|
|
67
67
|
* will reject spoofed payment objects when depositing into a purse.
|
|
68
68
|
*
|
|
69
|
-
* @param {Payment<'nat'
|
|
69
|
+
* @param {ERef<Payment<'nat'>>} payment
|
|
70
70
|
* @param {Pattern} [optAmountShape] throws if the Amount of the Payment
|
|
71
71
|
* does not match the provided Pattern
|
|
72
72
|
* @returns {PromiseVow<Amount<'nat'>>}
|
|
73
73
|
*/
|
|
74
|
-
deposit(payment: Payment<"nat"
|
|
74
|
+
deposit(payment: ERef<Payment<"nat">>, optAmountShape?: Pattern): PromiseVow<Amount<"nat">>;
|
|
75
75
|
/**
|
|
76
76
|
* Withdraw a payment from the account's bank purse of the amount's
|
|
77
77
|
* brand.
|
package/src/localchain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localchain.d.ts","sourceRoot":"","sources":["localchain.js"],"names":[],"mappings":"AASA;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH;;;;;;;GAaG;AAMI,kDA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CAApB,oBAAoB;yCAE9B,YAAY;0BADd,eAAe;iCAAf,eAAe"}
|
package/src/localchain.js
CHANGED
|
@@ -115,12 +115,15 @@ export const prepareLocalChainAccountKit = (zone, { watch }) =>
|
|
|
115
115
|
const purse = E(bank).getPurse(brand);
|
|
116
116
|
return E(purse).getCurrentAmount();
|
|
117
117
|
},
|
|
118
|
+
|
|
119
|
+
// TODO The payment parameter type below should be Payment<'nat'>.
|
|
120
|
+
// https://github.com/Agoric/agoric-sdk/issues/9828
|
|
118
121
|
/**
|
|
119
122
|
* Deposit a payment into the bank purse that matches the alleged brand.
|
|
120
123
|
* This is safe, since even if the payment lies about its brand, ERTP
|
|
121
124
|
* will reject spoofed payment objects when depositing into a purse.
|
|
122
125
|
*
|
|
123
|
-
* @param {Payment<'nat'
|
|
126
|
+
* @param {ERef<Payment<'nat'>>} payment
|
|
124
127
|
* @param {Pattern} [optAmountShape] throws if the Amount of the Payment
|
|
125
128
|
* does not match the provided Pattern
|
|
126
129
|
* @returns {PromiseVow<Amount<'nat'>>}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-provisionPool-proposal.d.ts","sourceRoot":"","sources":["upgrade-provisionPool-proposal.js"],"names":[],"mappings":"AAYO,+MARI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,6BAAmC,EAAE,GAAG,CAAC;KACpC,CAAC;CACH,WAED;IAAoD,OAAO,EAAnD;QAAE,gBAAgB,EAAE,YAAY,CAAA;KAAE;CAC5C,
|
|
1
|
+
{"version":3,"file":"upgrade-provisionPool-proposal.d.ts","sourceRoot":"","sources":["upgrade-provisionPool-proposal.js"],"names":[],"mappings":"AAYO,+MARI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,6BAAmC,EAAE,GAAG,CAAC;KACpC,CAAC;CACH,WAED;IAAoD,OAAO,EAAnD;QAAE,gBAAgB,EAAE,YAAY,CAAA;KAAE;CAC5C,iBAwCA;AAEM;;;;;;;;;;;;;;;;EAeL"}
|
|
@@ -32,6 +32,8 @@ export const upgradeProvisionPool = async (
|
|
|
32
32
|
const { adminFacet, instance } = provisionPoolStartResult;
|
|
33
33
|
|
|
34
34
|
const [originalPrivateArgs, poserInvitation] = await Promise.all([
|
|
35
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
36
|
+
// @ts-ignore Local tsc sees this as an error but typedoc does not
|
|
35
37
|
deeplyFulfilled(instancePrivateArgs.get(instance)),
|
|
36
38
|
E(electorateCreatorFacet).getPoserInvitation(),
|
|
37
39
|
]);
|
package/src/vat-board.d.ts
CHANGED
|
@@ -23,8 +23,8 @@ export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, ba
|
|
|
23
23
|
unserialize(data: any): any;
|
|
24
24
|
}>;
|
|
25
25
|
}>;
|
|
26
|
-
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("
|
|
27
|
-
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("
|
|
26
|
+
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
27
|
+
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
28
28
|
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
29
29
|
getBoard: () => import("@endo/exo").Guarded<{
|
|
30
30
|
getId(value: import("@endo/marshal").RemotableObject): string;
|
|
@@ -45,7 +45,7 @@ export function buildRootObject(_vatPowers: unknown, _vatParameters: unknown, ba
|
|
|
45
45
|
unserialize(data: any): any;
|
|
46
46
|
}>;
|
|
47
47
|
}>;
|
|
48
|
-
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("
|
|
49
|
-
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("
|
|
48
|
+
makePublishingRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
49
|
+
makeReadOnlyRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: import("@agoric/internal").TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
50
50
|
}>;
|
|
51
51
|
//# sourceMappingURL=vat-board.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-localchain.d.ts","sourceRoot":"","sources":["vat-localchain.js"],"names":[],"mappings":"AAOO;IASH;;;;;OAKG;2BADQ,OAAO,iBAAiB,EAAE,gBAAgB;;;;;
|
|
1
|
+
{"version":3,"file":"vat-localchain.d.ts","sourceRoot":"","sources":["vat-localchain.js"],"names":[],"mappings":"AAOO;IASH;;;;;OAKG;2BADQ,OAAO,iBAAiB,EAAE,gBAAgB;;;;;oCASi7P,sBAAsB;iBAAwK,CAAC;;;;;IAbrqQ;;;;;OAKG;2BADQ,OAAO,iBAAiB,EAAE,gBAAgB;;;;;;iBAS+mQ,CAAC;;;;GAHxqQ;4BAEa,UAAU,CAAC,OAAO,eAAe,CAAC"}
|