@agoric/inter-protocol 0.16.2-dev-2288a0c.0 → 0.16.2-dev-785e426.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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/inter-protocol",
|
|
3
|
-
"version": "0.16.2-dev-
|
|
3
|
+
"version": "0.16.2-dev-785e426.0+785e426",
|
|
4
4
|
"description": "Core cryptoeconomy contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
35
|
-
"@agoric/governance": "0.10.4-dev-
|
|
36
|
-
"@agoric/internal": "0.3.3-dev-
|
|
37
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
38
|
-
"@agoric/store": "0.9.3-dev-
|
|
39
|
-
"@agoric/time": "0.3.3-dev-
|
|
40
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
41
|
-
"@agoric/vats": "0.15.2-dev-
|
|
42
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
43
|
-
"@agoric/zone": "0.2.3-dev-
|
|
34
|
+
"@agoric/ertp": "0.16.3-dev-785e426.0+785e426",
|
|
35
|
+
"@agoric/governance": "0.10.4-dev-785e426.0+785e426",
|
|
36
|
+
"@agoric/internal": "0.3.3-dev-785e426.0+785e426",
|
|
37
|
+
"@agoric/notifier": "0.6.3-dev-785e426.0+785e426",
|
|
38
|
+
"@agoric/store": "0.9.3-dev-785e426.0+785e426",
|
|
39
|
+
"@agoric/time": "0.3.3-dev-785e426.0+785e426",
|
|
40
|
+
"@agoric/vat-data": "0.5.3-dev-785e426.0+785e426",
|
|
41
|
+
"@agoric/vats": "0.15.2-dev-785e426.0+785e426",
|
|
42
|
+
"@agoric/zoe": "0.26.3-dev-785e426.0+785e426",
|
|
43
|
+
"@agoric/zone": "0.2.3-dev-785e426.0+785e426",
|
|
44
44
|
"@endo/captp": "^4.4.3",
|
|
45
45
|
"@endo/errors": "^1.2.8",
|
|
46
46
|
"@endo/eventual-send": "^1.2.8",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"jessie.js": "^0.3.4"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
55
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
56
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
54
|
+
"@agoric/smart-wallet": "0.5.4-dev-785e426.0+785e426",
|
|
55
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-785e426.0+785e426",
|
|
56
|
+
"@agoric/swingset-vat": "0.32.3-dev-785e426.0+785e426",
|
|
57
57
|
"@endo/bundle-source": "^3.5.0",
|
|
58
58
|
"@endo/init": "^1.1.7",
|
|
59
59
|
"@endo/promise-kit": "^1.1.8",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"typeCoverage": {
|
|
85
85
|
"atLeast": 95.58
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "785e426312297a21731f67c9e36815502cbf9fb9"
|
|
88
88
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export function prepareBridgeProvisionTool(zone: import("@agoric/zone").Zone): (bankManager?: any, walletFactory?: any, namesByAddressAdmin?: any, forHandler?: any) => import("@endo/exo").Guarded<{
|
|
2
|
-
|
|
2
|
+
/** @param {BridgeMessage} obj */
|
|
3
|
+
fromBridge(obj: BridgeMessage): Promise<void>;
|
|
3
4
|
}>;
|
|
4
5
|
export function prepareProvisionPoolKit(zone: import("@agoric/zone").Zone, { makeRecorderKit, params, poolBank, zcf, makeBridgeProvisionTool }: {
|
|
5
6
|
makeRecorderKit: import("@agoric/zoe/src/contractSupport/recorder.js").MakeRecorderKit;
|
|
@@ -105,6 +106,7 @@ export type MetricsNotification = {
|
|
|
105
106
|
*/
|
|
106
107
|
totalMintedConverted: Amount<"nat">;
|
|
107
108
|
};
|
|
109
|
+
import type { BridgeMessage } from '@agoric/cosmic-swingset/src/types.js';
|
|
108
110
|
import type { Bank } from '@agoric/vats/src/vat-bank.js';
|
|
109
111
|
import type { ERef } from '@endo/far';
|
|
110
112
|
import type { Amount } from '@agoric/ertp/src/types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provisionPoolKit.d.ts","sourceRoot":"","sources":["provisionPoolKit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provisionPoolKit.d.ts","sourceRoot":"","sources":["provisionPoolKit.js"],"names":[],"mappings":"AAiFO,iDAFI,OAAO,cAAc,EAAE,IAAI;IAehC,iCAAiC;oBAArB,aAAa;GA6B5B;AAYI,8CATI,OAAO,cAAc,EAAE,IAAI,uEAC3B;IACN,eAAe,EAAE,OAAO,6CAA6C,EAAE,eAAe,CAAC;IACvF,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,OAAO,WAAW,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,GAAG,EAAE,GAAG,CAAC;IACT,uBAAuB,EAAE,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC;CACxE,gCA6YC;IAA2B,SAAS,EAA5B,KAAK,CAAC,KAAK,CAAC;IACY,WAAW,EAAnC,KAAK,WAAW,CAAC;CACzB,KAAU,OAAO,CAAC,gBAAgB,CAAC,CAcvC;+BAvfY;IACR,OAAO,EAAE,GAAG,CAAC;IACb,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;CACb;0BAIS,OAAO,qCAAqC,EAAE,QAAQ,CAClE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CAiWmB,cAAC;kDAIS,cAC7B;;;;;;;;;;;;EAtWyD,CACtD;;iBAKU,KAAK,WAAW,CAAC;yBACjB,KAAK,OAAO,cAAc,EAAE,SAAS,CAAC;mBACtC,KACb,OAAW,6CAA6C,EAAE,wBAAwB,CAAC,cAAc,CAAC,CAC/F;;;;;;;;;;wBAMU,MAAM;;;;;yBACN,OAAO,KAAK,CAAC;;;;;0BAEb,OAAO,KAAK,CAAC;;mCA7CK,sCAAsC;0BAYlC,8BAA8B;0BAF3C,WAAW;4BACT,2BAA2B;iCAChB,8BAA8B"}
|
package/src/provisionPoolKit.js
CHANGED
|
@@ -23,6 +23,10 @@ import {
|
|
|
23
23
|
import { InstanceHandleShape } from '@agoric/zoe/src/typeGuards.js';
|
|
24
24
|
import { isUpgradeDisconnection } from '@agoric/internal/src/upgrade-api.js';
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* @import {BridgeMessage} from '@agoric/cosmic-swingset/src/types.js';
|
|
28
|
+
*/
|
|
29
|
+
|
|
26
30
|
const trace = makeTracer('ProvPool');
|
|
27
31
|
|
|
28
32
|
const FIRST_UPPER_KEYWORD = /^[A-Z][a-zA-Z0-9_$]*$/;
|
|
@@ -88,11 +92,14 @@ export const prepareBridgeProvisionTool = zone =>
|
|
|
88
92
|
forHandler,
|
|
89
93
|
}),
|
|
90
94
|
{
|
|
95
|
+
/** @param {BridgeMessage} obj */
|
|
91
96
|
async fromBridge(obj) {
|
|
92
|
-
obj.type
|
|
93
|
-
Fail`Unrecognized request ${obj.type}`;
|
|
97
|
+
if (obj.type !== 'PLEASE_PROVISION')
|
|
98
|
+
throw Fail`Unrecognized request ${obj.type}`;
|
|
94
99
|
trace('PLEASE_PROVISION', obj);
|
|
95
100
|
const { address, powerFlags } = obj;
|
|
101
|
+
// XXX expects powerFlags to be an array, but if it's a string then
|
|
102
|
+
// this allows a string that has 'SMART_WALLET' in it.
|
|
96
103
|
powerFlags.includes(PowerFlags.SMART_WALLET) ||
|
|
97
104
|
Fail`missing SMART_WALLET in powerFlags`;
|
|
98
105
|
|