@agoric/vats 0.15.2-dev-83c2ebd.0 → 0.15.2-dev-74fc45b.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/lib-boot.d.ts +2 -1
- package/src/core/lib-boot.d.ts.map +1 -1
- package/src/core/lib-boot.js +5 -1
- package/src/core/startWalletFactory.d.ts +3 -2
- package/src/core/startWalletFactory.d.ts.map +1 -1
- package/src/core/startWalletFactory.js +5 -1
- package/src/localchain.d.ts +41 -1
- package/src/localchain.d.ts.map +1 -1
- package/src/localchain.js +2 -2
- package/src/proposals/transfer-proposal.d.ts.map +1 -1
- package/src/proposals/transfer-proposal.js +5 -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-74fc45b.0+74fc45b",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,19 +22,19 @@
|
|
|
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-
|
|
25
|
+
"@agoric/cosmic-proto": "0.4.1-dev-74fc45b.0+74fc45b",
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-74fc45b.0+74fc45b",
|
|
27
|
+
"@agoric/governance": "0.10.4-dev-74fc45b.0+74fc45b",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-74fc45b.0+74fc45b",
|
|
29
|
+
"@agoric/network": "0.1.1-dev-74fc45b.0+74fc45b",
|
|
30
|
+
"@agoric/notifier": "0.6.3-dev-74fc45b.0+74fc45b",
|
|
31
|
+
"@agoric/store": "0.9.3-dev-74fc45b.0+74fc45b",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-74fc45b.0+74fc45b",
|
|
33
|
+
"@agoric/time": "0.3.3-dev-74fc45b.0+74fc45b",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-dev-74fc45b.0+74fc45b",
|
|
35
|
+
"@agoric/vow": "0.1.1-dev-74fc45b.0+74fc45b",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-74fc45b.0+74fc45b",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-74fc45b.0+74fc45b",
|
|
38
38
|
"@endo/errors": "^1.2.9",
|
|
39
39
|
"@endo/far": "^1.1.10",
|
|
40
40
|
"@endo/import-bundle": "^1.3.3",
|
|
@@ -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-74fc45b.0+74fc45b",
|
|
51
51
|
"@endo/bundle-source": "^3.5.1",
|
|
52
52
|
"@endo/init": "^1.1.8",
|
|
53
53
|
"ava": "^5.3.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"typeCoverage": {
|
|
80
80
|
"atLeast": 90.43
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "74fc45b3588986de37f6a84347058592dc1d529b"
|
|
83
83
|
}
|
package/src/core/lib-boot.d.ts
CHANGED
|
@@ -62,5 +62,6 @@ export type ModuleNamespace = Record<string, unknown>;
|
|
|
62
62
|
export type BootModules = {
|
|
63
63
|
utils: typeof import("./utils.js");
|
|
64
64
|
} & Record<string, Record<string, any>>;
|
|
65
|
-
export type BootstrapRootObject =
|
|
65
|
+
export type BootstrapRootObject = EReturn<typeof makeBootstrap>;
|
|
66
|
+
import type { EReturn } from '@endo/far';
|
|
66
67
|
//# sourceMappingURL=lib-boot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib-boot.d.ts","sourceRoot":"","sources":["lib-boot.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lib-boot.d.ts","sourceRoot":"","sources":["lib-boot.js"],"names":[],"mappings":"AA6DO,yCAVI,OAAO,sBAAsB,EAAE,SAAS,GAAG;IACjD,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,CAAC,EAAE,OAAO,OAAO,CAAC,GAAG,CAAC;CAC7B,iBACO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,gBACvB,iBAAiB,aACjB,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,WAC5B,WAAW,SACX,OAAO,cAAc,EAAE,IAAI;IAkHlC;;;;;OAKG;sBAFQ,YAAY,WACZ,WAAW,GAAG,YAAY;IAerC,6BAA6B;wBAAjB,MAAM;;IASlB,6BAA6B;sBAAjB,MAAM;;IAclB;;;OAGG;oBAFU,CAAC,EAAE,CAAC,SACN,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;;IA5CzB;;;;;OAKG;sBAFQ,YAAY,WACZ,WAAW,GAAG,YAAY;IAerC,6BAA6B;wBAAjB,MAAM;;IASlB,6BAA6B;sBAAjB,MAAM;;IAclB;;;OAGG;oBAFU,CAAC,EAAE,CAAC,SACN,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;GAK5B;sCA/MY,IAAI,GACV,MAAM,GACN;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS,CAAA;CAAE;;;;;;;;;;;;;;gCAgBhD,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC;2BAIvC,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC;8BAE5C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;0BAEvB;IAAE,KAAK,EAAE,cAAc,YAAY,CAAC,CAAA;CAAE,GAAG,MAAM,CAC3D,MAAU,EACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACpB;kCAmLU,QAAQ,OAAO,aAAa,CAAC;6BApNjB,WAAW"}
|
package/src/core/lib-boot.js
CHANGED
|
@@ -8,6 +8,10 @@ import {
|
|
|
8
8
|
} from './utils.js';
|
|
9
9
|
import { makePromiseSpace } from './promise-space.js';
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @import {EReturn} from '@endo/far';
|
|
13
|
+
*/
|
|
14
|
+
|
|
11
15
|
/**
|
|
12
16
|
* @typedef {true
|
|
13
17
|
* | string
|
|
@@ -217,4 +221,4 @@ export const makeBootstrap = (
|
|
|
217
221
|
//#endregion
|
|
218
222
|
});
|
|
219
223
|
};
|
|
220
|
-
/** @typedef {
|
|
224
|
+
/** @typedef {EReturn<typeof makeBootstrap>} BootstrapRootObject */
|
|
@@ -113,7 +113,7 @@ export function getManifestForWalletFactory({ restoreRef }: {
|
|
|
113
113
|
walletFactory: any;
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
|
-
export type WalletFactoryStartResult =
|
|
116
|
+
export type WalletFactoryStartResult = EReturn<typeof startFactoryInstance>;
|
|
117
117
|
import { Stable } from '@agoric/internal/src/tokens.js';
|
|
118
118
|
/**
|
|
119
119
|
* @param {ERef<ZoeService>} zoe
|
|
@@ -122,7 +122,7 @@ import { Stable } from '@agoric/internal/src/tokens.js';
|
|
|
122
122
|
* >} inst
|
|
123
123
|
*
|
|
124
124
|
*
|
|
125
|
-
* @typedef {
|
|
125
|
+
* @typedef {EReturn<typeof startFactoryInstance>} WalletFactoryStartResult
|
|
126
126
|
*/
|
|
127
127
|
declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<import("@agoric/smart-wallet/src/walletFactory.js").start>): Promise<import("@agoric/zoe/src/zoeService/utils.js").StartedInstanceKit<(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
|
|
128
128
|
storageNode: ERef<StorageNode>;
|
|
@@ -133,5 +133,6 @@ declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<
|
|
|
133
133
|
provideSmartWallet(address: string, bank: ERef<import("../vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("../types.js").NameAdmin>): Promise<[wallet: import("@agoric/smart-wallet/src/smartWallet.js").SmartWallet, isNew: boolean]>;
|
|
134
134
|
}>;
|
|
135
135
|
}>>>;
|
|
136
|
+
import type { EReturn } from '@endo/far';
|
|
136
137
|
export {};
|
|
137
138
|
//# sourceMappingURL=startWalletFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"AAsFO,qnBArBI,eAAe,GACrB,qBAAqB,GACrB,cAAc,CAAC;IACb,6BAA6B,EAAE,OAAO,qCAAqC,EAAE,+BAA+B,CAAC;IAC7G,cAAc,EAAE;QACd,YAAY,EAAE,OAAO,CACnB,UAAU,CACpB,mEAAwE,CAAC,OAAO,CAAC,CACtE,CACF,CAAC,cAAc,CAAC,CAAC;QAClB,UAAU,EAAE,UAAU,CAAC;KACxB,CAAC;IACF,mBAAmB,EAAE,OAAO,aAAa,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACzE,4BAA4B,EAAE,OAAO,aAAa,EAAE,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;CAC5F,CAAC,4CACI;IACN,OAAO,CAAC,EAAE;QACR,sBAAsB,CAAC,EAAE,MAAM,CAAC;KACjC,CAAC;CACH,iBAoLH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCE;AAEK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWN;uCAnSY,QAAQ,OAAO,oBAAoB,CAAC;uBApB1B,gCAAgC;AAavD;;;;;;;;GAQG;AAEH,2CATW,IAAI,CAAC,UAAU,CAAC,QAChB,YAAY,CACtB,OAAW,2CAA2C,EAAE,KAAK,CAC1D;;uBA8GmC,CAAC,cAEpC,aACC;iBAA0D,CAAC;mBAK5D,kBAAgB;;8DA8IJ,gBAEf,0CAEO,aACJ,uCAI8B,yCAEhC;;KAzQoE;6BAf5C,WAAW"}
|
|
@@ -12,6 +12,10 @@ import {
|
|
|
12
12
|
slotToBoardRemote,
|
|
13
13
|
} from '../../tools/board-utils.js';
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* @import {EReturn} from '@endo/far';
|
|
17
|
+
*/
|
|
18
|
+
|
|
15
19
|
const trace = makeTracer('StartWF');
|
|
16
20
|
|
|
17
21
|
/**
|
|
@@ -21,7 +25,7 @@ const trace = makeTracer('StartWF');
|
|
|
21
25
|
* >} inst
|
|
22
26
|
*
|
|
23
27
|
*
|
|
24
|
-
* @typedef {
|
|
28
|
+
* @typedef {EReturn<typeof startFactoryInstance>} WalletFactoryStartResult
|
|
25
29
|
*/
|
|
26
30
|
// eslint-disable-next-line no-unused-vars
|
|
27
31
|
const startFactoryInstance = (zoe, inst) => E(zoe).startInstance(inst);
|
package/src/localchain.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* @import {EReturn} from '@endo/far';
|
|
2
3
|
* @import {TypedJson, ResponseTo, JsonSafe} from '@agoric/cosmic-proto';
|
|
3
4
|
* @import {PromiseVow, VowTools} from '@agoric/vow';
|
|
4
5
|
* @import {TargetApp, TargetRegistration} from './bridge-target.js';
|
|
@@ -122,6 +123,7 @@ export function prepareLocalChainAccountKit(zone: import("@agoric/base-zone").Zo
|
|
|
122
123
|
monitorTransfers(tap: TargetApp): PromiseVow<TargetRegistration>;
|
|
123
124
|
};
|
|
124
125
|
}>;
|
|
126
|
+
/** @typedef {EReturn<EReturn<typeof prepareLocalChain>>} LocalChain */
|
|
125
127
|
/**
|
|
126
128
|
* @typedef {Awaited<
|
|
127
129
|
* ReturnType<ReturnType<typeof prepareLocalChainAccountKit>>
|
|
@@ -199,10 +201,10 @@ export type LocalChainPowers = {
|
|
|
199
201
|
bankManager: BankManager;
|
|
200
202
|
transfer: import("./transfer.js").TransferMiddleware;
|
|
201
203
|
};
|
|
204
|
+
export type LocalChain = EReturn<EReturn<typeof prepareLocalChain>>;
|
|
202
205
|
export type LocalChainAccountKit = Awaited<ReturnType<ReturnType<typeof prepareLocalChainAccountKit>>>;
|
|
203
206
|
export type LocalChainAccount = LocalChainAccountKit["account"];
|
|
204
207
|
export type LocalChainTools = ReturnType<typeof prepareLocalChainTools>;
|
|
205
|
-
export type LocalChain = ReturnType<LocalChainTools["makeLocalChain"]>;
|
|
206
208
|
import type { VowTools } from '@agoric/vow';
|
|
207
209
|
import type { PromiseVow } from '@agoric/vow';
|
|
208
210
|
import type { TypedJson } from '@agoric/cosmic-proto';
|
|
@@ -213,4 +215,42 @@ import type { TargetRegistration } from './bridge-target.js';
|
|
|
213
215
|
import type { ScopedBridgeManager } from './types.js';
|
|
214
216
|
import type { Bank } from './vat-bank.js';
|
|
215
217
|
import type { BankManager } from './vat-bank.js';
|
|
218
|
+
/**
|
|
219
|
+
* @param {import('@agoric/base-zone').Zone} zone
|
|
220
|
+
* @param {ReturnType<typeof prepareLocalChainAccountKit>} makeAccountKit
|
|
221
|
+
* @param {VowTools} vowTools
|
|
222
|
+
*/
|
|
223
|
+
declare function prepareLocalChain(zone: import("@agoric/base-zone").Zone, makeAccountKit: ReturnType<typeof prepareLocalChainAccountKit>, { watch }: VowTools): (powers: LocalChainPowers) => import("@endo/exo").Guarded<{
|
|
224
|
+
/**
|
|
225
|
+
* Allocate a fresh address that doesn't correspond with a public key,
|
|
226
|
+
* and follows the ICA guidelines to help reduce collisions. See
|
|
227
|
+
* x/vlocalchain/keeper/keeper.go AllocateAddress for the use of the app
|
|
228
|
+
* hash and block data hash.
|
|
229
|
+
*
|
|
230
|
+
* @returns {PromiseVow<LocalChainAccount>}
|
|
231
|
+
*/
|
|
232
|
+
makeAccount(): PromiseVow<LocalChainAccount>;
|
|
233
|
+
/**
|
|
234
|
+
* Make a single query to the local chain. Will reject with an error if
|
|
235
|
+
* the query fails. Otherwise, return the response as a JSON-compatible
|
|
236
|
+
* object.
|
|
237
|
+
*
|
|
238
|
+
* @template {TypedJson} [T=TypedJson]
|
|
239
|
+
* @param {T} request
|
|
240
|
+
* @returns {PromiseVow<JsonSafe<ResponseTo<T>>>}
|
|
241
|
+
*/
|
|
242
|
+
query<T extends TypedJson = {
|
|
243
|
+
'@type': string;
|
|
244
|
+
}>(request: T): PromiseVow<JsonSafe<ResponseTo<T>>>;
|
|
245
|
+
queryMany(requests: {
|
|
246
|
+
'@type': string;
|
|
247
|
+
}[]): PromiseVowOfTupleMappedToGenerics<{
|
|
248
|
+
error?: string | undefined;
|
|
249
|
+
reply: {
|
|
250
|
+
'@type': string;
|
|
251
|
+
};
|
|
252
|
+
}[]>;
|
|
253
|
+
}>;
|
|
254
|
+
import type { EReturn } from '@endo/far';
|
|
255
|
+
export {};
|
|
216
256
|
//# 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":"AAc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CAAC;;;;gBA5OzC,MAAM;;;;;GA0RpB;6BAzTyB,WAAW"}
|
package/src/localchain.js
CHANGED
|
@@ -13,6 +13,7 @@ import { Shape as NetworkShape } from '@agoric/network';
|
|
|
13
13
|
const { Vow$ } = NetworkShape;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
+
* @import {EReturn} from '@endo/far';
|
|
16
17
|
* @import {TypedJson, ResponseTo, JsonSafe} from '@agoric/cosmic-proto';
|
|
17
18
|
* @import {PromiseVow, VowTools} from '@agoric/vow';
|
|
18
19
|
* @import {TargetApp, TargetRegistration} from './bridge-target.js';
|
|
@@ -215,6 +216,7 @@ export const prepareLocalChainAccountKit = (zone, { watch }) =>
|
|
|
215
216
|
},
|
|
216
217
|
},
|
|
217
218
|
);
|
|
219
|
+
/** @typedef {EReturn<EReturn<typeof prepareLocalChain>>} LocalChain */
|
|
218
220
|
|
|
219
221
|
/**
|
|
220
222
|
* @typedef {Awaited<
|
|
@@ -337,6 +339,4 @@ export const prepareLocalChainTools = (zone, vowTools) => {
|
|
|
337
339
|
return harden({ makeLocalChain });
|
|
338
340
|
};
|
|
339
341
|
harden(prepareLocalChainTools);
|
|
340
|
-
|
|
341
342
|
/** @typedef {ReturnType<typeof prepareLocalChainTools>} LocalChainTools */
|
|
342
|
-
/** @typedef {ReturnType<LocalChainTools['makeLocalChain']>} LocalChain */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-proposal.d.ts","sourceRoot":"","sources":["transfer-proposal.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transfer-proposal.d.ts","sourceRoot":"","sources":["transfer-proposal.js"],"names":[],"mappings":"AAyBO,iTAdI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,aAAa,EAAE,OAAO,UAAU,EAAE,aAAa,CAAC;QAChD,sBAAsB,EAAE,OAAO,UAAU,EAAE,mBAAmB,CAAC,WAAW,CAAC,CAAC;KAC7E,CAAC;IACF,OAAO,EAAE;QACP,kBAAkB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAClC,WAAW,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC3B,sBAAsB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;KACvC,CAAC;CACH,WAED;IAA+C,OAAO,EAA9C;QAAE,WAAW,EAAE,YAAY,CAAA;KAAE;CACvC,iBA2EA;AAEM;;;;;;;;;;;;;;;;;;;;EAkBL"}
|
|
@@ -4,6 +4,10 @@ import { BridgeId as BRIDGE_ID } from '@agoric/internal';
|
|
|
4
4
|
import { VTRANSFER_IBC_EVENT } from '@agoric/internal/src/action-types.js';
|
|
5
5
|
import { makeScopedBridge } from '../bridge.js';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @import {EReturn} from '@endo/far';
|
|
9
|
+
*/
|
|
10
|
+
|
|
7
11
|
/**
|
|
8
12
|
* @param {BootstrapPowers & {
|
|
9
13
|
* consume: {
|
|
@@ -66,7 +70,7 @@ export const setupTransferMiddleware = async (
|
|
|
66
70
|
VTRANSFER_IBC_EVENT,
|
|
67
71
|
interceptorFactory,
|
|
68
72
|
);
|
|
69
|
-
/** @type {
|
|
73
|
+
/** @type {EReturn<typeof provideBridgeTargetKit>} */
|
|
70
74
|
let bridgeTargetKit;
|
|
71
75
|
try {
|
|
72
76
|
const vtransferBridge = await makeScopedBridge(bridgeManager, vtransferID);
|