@agoric/internal 0.3.3-other-dev-d15096d.0.d15096d → 0.3.3-other-dev-ecf44df.0.ecf44df
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 +32 -36
- package/src/action-types.d.ts +47 -20
- package/src/action-types.d.ts.map +1 -1
- package/src/action-types.js +21 -21
- package/src/ava-force-exit.d.mts +2 -0
- package/src/ava-force-exit.d.mts.map +1 -0
- package/src/ava-force-exit.mjs +7 -0
- package/src/batched-deliver.d.ts +2 -2
- package/src/batched-deliver.d.ts.map +1 -1
- package/src/batched-deliver.js +2 -3
- package/src/build-cache-types.d.ts +33 -0
- package/src/build-cache-types.d.ts.map +1 -0
- package/src/build-cache-types.js +42 -0
- package/src/build-cache.d.ts +12 -0
- package/src/build-cache.d.ts.map +1 -0
- package/src/build-cache.js +184 -0
- package/src/callback.d.ts +1 -1
- package/src/callback.d.ts.map +1 -1
- package/src/callback.js +1 -0
- package/src/chain-storage-paths.d.ts.map +1 -1
- package/src/chain-storage-paths.js +0 -2
- package/src/config.d.ts +3 -3
- package/src/config.d.ts.map +1 -1
- package/src/config.js +6 -5
- package/src/debug.d.ts +2 -2
- package/src/debug.d.ts.map +1 -1
- package/src/debug.js +19 -5
- package/src/hex.d.ts.map +1 -1
- package/src/hex.js +18 -22
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -2
- package/src/js-utils.d.ts +17 -2
- package/src/js-utils.d.ts.map +1 -1
- package/src/js-utils.js +49 -3
- package/src/keyMirror.d.ts +3 -0
- package/src/keyMirror.d.ts.map +1 -0
- package/src/keyMirror.js +45 -0
- package/src/kv-store.d.ts +33 -0
- package/src/kv-store.d.ts.map +1 -0
- package/src/kv-store.js +265 -0
- package/src/lib-chainStorage.d.ts +25 -42
- package/src/lib-chainStorage.d.ts.map +1 -1
- package/src/lib-chainStorage.js +38 -14
- package/src/lib-nodejs/ava-unhandled-rejection.d.ts +18 -3
- package/src/lib-nodejs/ava-unhandled-rejection.d.ts.map +1 -1
- package/src/lib-nodejs/ava-unhandled-rejection.js +217 -20
- package/src/lib-nodejs/engine-gc.js +2 -2
- package/src/lib-nodejs/gc-and-finalize.d.ts +2 -1
- package/src/lib-nodejs/gc-and-finalize.d.ts.map +1 -1
- package/src/lib-nodejs/gc-and-finalize.js +1 -0
- package/src/lib-nodejs/spawnSubprocessWorker.d.ts +11 -4
- package/src/lib-nodejs/spawnSubprocessWorker.d.ts.map +1 -1
- package/src/lib-nodejs/spawnSubprocessWorker.js +14 -4
- package/src/lib-nodejs/worker-protocol.d.ts +1 -1
- package/src/lib-nodejs/worker-protocol.d.ts.map +1 -1
- package/src/lib-nodejs/worker-protocol.js +5 -6
- package/src/magic-cookie-test-only.d.ts.map +1 -1
- package/src/magic-cookie-test-only.js +0 -2
- package/src/marshal/board-client-utils.d.ts.map +1 -1
- package/src/marshal/board-client-utils.js +4 -1
- package/src/marshal/cap-data.d.ts +9 -1
- package/src/marshal/cap-data.d.ts.map +1 -1
- package/src/marshal/cap-data.js +1 -2
- package/src/marshal/wrap-marshaller.d.ts +34 -7
- package/src/marshal/wrap-marshaller.d.ts.map +1 -1
- package/src/marshal/wrap-marshaller.js +64 -68
- package/src/metrics.d.ts +1 -4
- package/src/metrics.d.ts.map +1 -1
- package/src/metrics.js +7 -2
- package/src/module-utils.d.ts +1 -0
- package/src/module-utils.d.ts.map +1 -1
- package/src/module-utils.js +17 -0
- package/src/natural-sort.d.ts.map +1 -1
- package/src/natural-sort.js +7 -3
- package/src/netstring.d.ts +1 -1
- package/src/netstring.d.ts.map +1 -1
- package/src/netstring.js +5 -6
- package/src/node/buffer-line-transform.d.ts.map +1 -1
- package/src/node/buffer-line-transform.js +0 -1
- package/src/node/createBundles.d.ts +7 -3
- package/src/node/createBundles.d.ts.map +1 -1
- package/src/node/createBundles.js +31 -10
- package/src/node/fs-stream.d.ts +8 -5
- package/src/node/fs-stream.d.ts.map +1 -1
- package/src/node/fs-stream.js +120 -8
- package/src/node/read-json.d.ts +2 -0
- package/src/node/read-json.d.ts.map +1 -0
- package/src/node/read-json.js +16 -0
- package/src/node/shutdown.d.ts +6 -2
- package/src/node/shutdown.d.ts.map +1 -1
- package/src/node/shutdown.js +9 -3
- package/src/priority-senders.d.ts.map +1 -1
- package/src/priority-senders.js +1 -0
- package/src/queue.d.ts.map +1 -1
- package/src/queue.js +10 -2
- package/src/scratch.d.ts +32 -10
- package/src/scratch.d.ts.map +1 -1
- package/src/scratch.js +11 -0
- package/src/ses-utils.d.ts +14 -3
- package/src/ses-utils.d.ts.map +1 -1
- package/src/ses-utils.js +13 -15
- package/src/storage-test-utils.d.ts +4 -11
- package/src/storage-test-utils.d.ts.map +1 -1
- package/src/storage-test-utils.js +16 -14
- package/src/tagged.d.ts +18 -1
- package/src/testing-utils.d.ts +22 -1
- package/src/testing-utils.d.ts.map +1 -1
- package/src/testing-utils.js +131 -6
- package/src/tmpDir.d.ts.map +1 -1
- package/src/tmpDir.js +1 -1
- package/src/typeCheck.d.ts +4 -8
- package/src/typeCheck.d.ts.map +1 -1
- package/src/typeCheck.js +13 -6
- package/src/typeGuards.d.ts +5 -5
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +4 -5
- package/src/types-index.d.ts +1 -0
- package/src/types.d.ts +41 -14
- package/src/types.d.ts.map +1 -1
- package/src/types.js +161 -0
- package/src/upgrade-api.d.ts +2 -2
- package/src/upgrade-api.d.ts.map +1 -1
- package/src/upgrade-api.js +4 -3
- package/src/work-pool.d.ts.map +1 -1
- package/src/work-pool.js +9 -2
- package/vendor/anylogger.d.ts +98 -0
- package/vendor/anylogger.d.ts.map +1 -0
- package/vendor/anylogger.js +60 -0
- package/vendor/anylogger.ts +160 -0
- package/vendor/tsconfig.anylogger.json +15 -0
- package/exported.js +0 -2
- package/src/types.ts +0 -133
package/package.json
CHANGED
|
@@ -1,70 +1,66 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/internal",
|
|
3
|
-
"version": "0.3.3-other-dev-
|
|
3
|
+
"version": "0.3.3-other-dev-ecf44df.0.ecf44df",
|
|
4
4
|
"description": "Externally unsupported utilities internal to agoric-sdk",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/Agoric/agoric-sdk.git"
|
|
8
|
+
},
|
|
5
9
|
"type": "module",
|
|
6
10
|
"main": "src/index.js",
|
|
7
11
|
"engines": {
|
|
8
|
-
"node": "^
|
|
12
|
+
"node": "^22.11 || ^24.14"
|
|
9
13
|
},
|
|
10
14
|
"scripts": {
|
|
11
15
|
"build": "exit 0",
|
|
12
|
-
"prepack": "yarn run -T
|
|
13
|
-
"postpack": "
|
|
16
|
+
"prepack": "yarn run -T prepack-package",
|
|
17
|
+
"postpack": "yarn run -T postpack-package",
|
|
14
18
|
"test": "ava",
|
|
15
19
|
"test:nyc": "exit 0",
|
|
16
20
|
"test:xs": "exit 0",
|
|
17
21
|
"lint-fix": "yarn lint:eslint --fix",
|
|
18
22
|
"lint": "yarn run -T run-s --continue-on-error 'lint:*'",
|
|
19
|
-
"lint:eslint": "
|
|
20
|
-
"lint:types": "yarn run -T
|
|
23
|
+
"lint:eslint": "node ../../scripts/eslint-repo.mjs .",
|
|
24
|
+
"lint:types": "yarn run -T tsgo --tsBuildInfoFile tsconfig.tsgo.tsbuildinfo"
|
|
21
25
|
},
|
|
22
26
|
"dependencies": {
|
|
23
|
-
"@agoric/base-zone": "0.1.1-other-dev-
|
|
27
|
+
"@agoric/base-zone": "0.1.1-other-dev-ecf44df.0.ecf44df",
|
|
24
28
|
"@endo/cache-map": "^1.1.0",
|
|
25
|
-
"@endo/common": "^1.
|
|
26
|
-
"@endo/compartment-mapper": "^
|
|
27
|
-
"@endo/errors": "^1.
|
|
28
|
-
"@endo/eventual-send": "^1.
|
|
29
|
+
"@endo/common": "^1.4.0",
|
|
30
|
+
"@endo/compartment-mapper": "^2.3.0",
|
|
31
|
+
"@endo/errors": "^1.3.1",
|
|
32
|
+
"@endo/eventual-send": "^1.5.0",
|
|
29
33
|
"@endo/far": "^1.1.14",
|
|
30
|
-
"@endo/init": "^1.1.
|
|
31
|
-
"@endo/marshal": "^1.
|
|
32
|
-
"@endo/nat": "^5.
|
|
33
|
-
"@endo/pass-style": "^1.
|
|
34
|
-
"@endo/patterns": "^1.
|
|
35
|
-
"@endo/promise-kit": "^1.1
|
|
36
|
-
"@endo/stream": "^1.
|
|
37
|
-
"
|
|
34
|
+
"@endo/init": "^1.1.13",
|
|
35
|
+
"@endo/marshal": "^1.10.0",
|
|
36
|
+
"@endo/nat": "^5.2.0",
|
|
37
|
+
"@endo/pass-style": "^1.8.1",
|
|
38
|
+
"@endo/patterns": "^1.9.1",
|
|
39
|
+
"@endo/promise-kit": "^1.2.1",
|
|
40
|
+
"@endo/stream": "^1.3.1",
|
|
41
|
+
"import-meta-resolve": "^4.1.0",
|
|
38
42
|
"jessie.js": "^0.3.4"
|
|
39
43
|
},
|
|
40
44
|
"devDependencies": {
|
|
41
|
-
"@agoric/cosmic-proto": "0.4.1-other-dev-
|
|
42
|
-
"@endo/exo": "^1.
|
|
43
|
-
"@endo/init": "^1.1.
|
|
44
|
-
"@endo/ses-ava": "^1.
|
|
45
|
-
"@fast-check/ava": "^
|
|
46
|
-
"ava": "^
|
|
45
|
+
"@agoric/cosmic-proto": "0.4.1-other-dev-ecf44df.0.ecf44df",
|
|
46
|
+
"@endo/exo": "^1.7.0",
|
|
47
|
+
"@endo/init": "^1.1.13",
|
|
48
|
+
"@endo/ses-ava": "^1.4.2",
|
|
49
|
+
"@fast-check/ava": "^3.0.1",
|
|
50
|
+
"ava": "^8.0.1",
|
|
47
51
|
"tsd": "^0.33.0"
|
|
48
52
|
},
|
|
49
|
-
"ava": {
|
|
50
|
-
"require": [
|
|
51
|
-
"@endo/init/debug.js"
|
|
52
|
-
],
|
|
53
|
-
"files": [
|
|
54
|
-
"test/**/*.test.*"
|
|
55
|
-
]
|
|
56
|
-
},
|
|
57
53
|
"author": "Agoric",
|
|
58
54
|
"license": "Apache-2.0",
|
|
59
55
|
"files": [
|
|
60
56
|
"src",
|
|
61
|
-
"
|
|
57
|
+
"vendor"
|
|
62
58
|
],
|
|
63
59
|
"publishConfig": {
|
|
64
60
|
"access": "public"
|
|
65
61
|
},
|
|
66
62
|
"typeCoverage": {
|
|
67
|
-
"atLeast":
|
|
63
|
+
"atLeast": 95.63
|
|
68
64
|
},
|
|
69
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "ecf44df5eadcc7a1d68745f056fca19155fb5231"
|
|
70
66
|
}
|
package/src/action-types.d.ts
CHANGED
|
@@ -11,14 +11,28 @@
|
|
|
11
11
|
* - ../../cosmic-swingset/src/launch-chain.js
|
|
12
12
|
*/
|
|
13
13
|
export type SwingsetMessageType = (typeof SwingsetMessageType)[keyof typeof SwingsetMessageType];
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Types of messages used for communication between a cosmos-sdk blockchain node
|
|
16
|
+
* and its paired swingset VM, especially for the ABCI lifecycle. See:
|
|
17
|
+
*
|
|
18
|
+
* - https://github.com/tendermint/tendermint/blob/v0.34.x/spec/abci/abci.md#block-execution
|
|
19
|
+
* - ../../../golang/cosmos/vm/action.go
|
|
20
|
+
* - ../../../golang/cosmos/app/app.go
|
|
21
|
+
* - ../../../golang/cosmos/x/swingset/abci.go
|
|
22
|
+
* - ../../../golang/cosmos/x/swingset/keeper/swing_store_exports_handler.go
|
|
23
|
+
* - ../../cosmic-swingset/src/chain-main.js
|
|
24
|
+
* - ../../cosmic-swingset/src/launch-chain.js
|
|
25
|
+
*
|
|
26
|
+
* @typedef {(typeof SwingsetMessageType)[keyof typeof SwingsetMessageType]} SwingsetMessageType
|
|
27
|
+
*/
|
|
28
|
+
export const SwingsetMessageType: import("./keyMirror.js").KeyMirrorResult<{
|
|
29
|
+
AG_COSMOS_INIT: null;
|
|
30
|
+
BEGIN_BLOCK: null;
|
|
31
|
+
END_BLOCK: null;
|
|
32
|
+
COMMIT_BLOCK: null;
|
|
33
|
+
AFTER_COMMIT_BLOCK: null;
|
|
34
|
+
SWING_STORE_EXPORT: null;
|
|
35
|
+
}>;
|
|
22
36
|
export const AG_COSMOS_INIT: "AG_COSMOS_INIT";
|
|
23
37
|
export const BEGIN_BLOCK: "BEGIN_BLOCK";
|
|
24
38
|
export const END_BLOCK: "END_BLOCK";
|
|
@@ -37,18 +51,31 @@ export const SWING_STORE_EXPORT: "SWING_STORE_EXPORT";
|
|
|
37
51
|
* - ../../../golang/cosmos/x/vibc/types/ibc_module.go
|
|
38
52
|
*/
|
|
39
53
|
export type QueuedActionType = (typeof QueuedActionType)[keyof typeof QueuedActionType];
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
54
|
+
/**
|
|
55
|
+
* Types of "action" messages consumed by the swingset VM from actionQueue or
|
|
56
|
+
* highPriorityQueue during END_BLOCK. See:
|
|
57
|
+
*
|
|
58
|
+
* - ../../../golang/cosmos/x/swingset/keeper/msg_server.go
|
|
59
|
+
* - ../../../golang/cosmos/x/swingset/keeper/proposal.go
|
|
60
|
+
* - ../../../golang/cosmos/x/vbank/vbank.go
|
|
61
|
+
* - ../../../golang/cosmos/x/vibc/handler.go
|
|
62
|
+
* - ../../../golang/cosmos/x/vibc/keeper/triggers.go
|
|
63
|
+
* - ../../../golang/cosmos/x/vibc/types/ibc_module.go
|
|
64
|
+
*
|
|
65
|
+
* @typedef {(typeof QueuedActionType)[keyof typeof QueuedActionType]} QueuedActionType
|
|
66
|
+
*/
|
|
67
|
+
export const QueuedActionType: import("./keyMirror.js").KeyMirrorResult<{
|
|
68
|
+
CORE_EVAL: null;
|
|
69
|
+
DELIVER_INBOUND: null;
|
|
70
|
+
IBC_EVENT: null;
|
|
71
|
+
INSTALL_BUNDLE: null;
|
|
72
|
+
PLEASE_PROVISION: null;
|
|
73
|
+
VBANK_BALANCE_UPDATE: null;
|
|
74
|
+
WALLET_ACTION: null;
|
|
75
|
+
WALLET_SPEND_ACTION: null;
|
|
76
|
+
VTRANSFER_IBC_EVENT: null;
|
|
77
|
+
KERNEL_UPGRADE_EVENTS: null;
|
|
78
|
+
}>;
|
|
52
79
|
export const CORE_EVAL: "CORE_EVAL";
|
|
53
80
|
export const DELIVER_INBOUND: "DELIVER_INBOUND";
|
|
54
81
|
export const IBC_EVENT: "IBC_EVENT";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-types.d.ts","sourceRoot":"","sources":["action-types.js"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"action-types.d.ts","sourceRoot":"","sources":["action-types.js"],"names":[],"mappings":";;;;;;;;;;;;kCAca,CAAC,OAAO,mBAAmB,EAAE,MAAM,OAAO,mBAAmB,CAAC;AAZ3E;;;;;;;;;;;;;GAaG;AACH;;;;;;;GAOG;;;;;;;;;;;;;;;;;;+BAwBU,CAAC,OAAO,gBAAgB,EAAE,MAAM,OAAO,gBAAgB,CAAC;AAXrE;;;;;;;;;;;;GAYG;AACH;;;;;;;;;;;GAWG"}
|
package/src/action-types.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { keyMirror } from './keyMirror.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Types of messages used for communication between a cosmos-sdk blockchain node
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
* - ../../cosmic-swingset/src/chain-main.js
|
|
13
13
|
* - ../../cosmic-swingset/src/launch-chain.js
|
|
14
14
|
*
|
|
15
|
-
* @
|
|
15
|
+
* @typedef {(typeof SwingsetMessageType)[keyof typeof SwingsetMessageType]} SwingsetMessageType
|
|
16
16
|
*/
|
|
17
|
-
export const SwingsetMessageType =
|
|
18
|
-
AG_COSMOS_INIT:
|
|
19
|
-
BEGIN_BLOCK:
|
|
20
|
-
END_BLOCK:
|
|
21
|
-
COMMIT_BLOCK:
|
|
22
|
-
AFTER_COMMIT_BLOCK:
|
|
23
|
-
SWING_STORE_EXPORT:
|
|
17
|
+
export const SwingsetMessageType = keyMirror({
|
|
18
|
+
AG_COSMOS_INIT: null, // used to synchronize at process launch
|
|
19
|
+
BEGIN_BLOCK: null,
|
|
20
|
+
END_BLOCK: null,
|
|
21
|
+
COMMIT_BLOCK: null,
|
|
22
|
+
AFTER_COMMIT_BLOCK: null,
|
|
23
|
+
SWING_STORE_EXPORT: null, // used to synchronize data export
|
|
24
24
|
});
|
|
25
25
|
harden(SwingsetMessageType);
|
|
26
26
|
|
|
@@ -45,19 +45,19 @@ export const {
|
|
|
45
45
|
* - ../../../golang/cosmos/x/vibc/keeper/triggers.go
|
|
46
46
|
* - ../../../golang/cosmos/x/vibc/types/ibc_module.go
|
|
47
47
|
*
|
|
48
|
-
* @
|
|
48
|
+
* @typedef {(typeof QueuedActionType)[keyof typeof QueuedActionType]} QueuedActionType
|
|
49
49
|
*/
|
|
50
|
-
export const QueuedActionType =
|
|
51
|
-
CORE_EVAL:
|
|
52
|
-
DELIVER_INBOUND:
|
|
53
|
-
IBC_EVENT:
|
|
54
|
-
INSTALL_BUNDLE:
|
|
55
|
-
PLEASE_PROVISION:
|
|
56
|
-
VBANK_BALANCE_UPDATE:
|
|
57
|
-
WALLET_ACTION:
|
|
58
|
-
WALLET_SPEND_ACTION:
|
|
59
|
-
VTRANSFER_IBC_EVENT:
|
|
60
|
-
KERNEL_UPGRADE_EVENTS:
|
|
50
|
+
export const QueuedActionType = keyMirror({
|
|
51
|
+
CORE_EVAL: null,
|
|
52
|
+
DELIVER_INBOUND: null,
|
|
53
|
+
IBC_EVENT: null,
|
|
54
|
+
INSTALL_BUNDLE: null,
|
|
55
|
+
PLEASE_PROVISION: null,
|
|
56
|
+
VBANK_BALANCE_UPDATE: null,
|
|
57
|
+
WALLET_ACTION: null,
|
|
58
|
+
WALLET_SPEND_ACTION: null,
|
|
59
|
+
VTRANSFER_IBC_EVENT: null,
|
|
60
|
+
KERNEL_UPGRADE_EVENTS: null,
|
|
61
61
|
});
|
|
62
62
|
harden(QueuedActionType);
|
|
63
63
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ava-force-exit.d.mts","sourceRoot":"","sources":["ava-force-exit.mjs"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import process from 'node:process';
|
|
2
|
+
// eslint-disable-next-line import/no-extraneous-dependencies -- `ava` is the test runner; this hook ships with the package
|
|
3
|
+
import { registerCompletionHandler } from 'ava';
|
|
4
|
+
|
|
5
|
+
registerCompletionHandler(() => {
|
|
6
|
+
process.exit();
|
|
7
|
+
});
|
package/src/batched-deliver.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @param {DeliverMessages} deliver
|
|
6
6
|
* @param {{
|
|
7
|
-
* clearTimeout: clearTimeout;
|
|
8
|
-
* setTimeout: setTimeout;
|
|
7
|
+
* clearTimeout: typeof globalThis.clearTimeout;
|
|
8
|
+
* setTimeout: typeof globalThis.setTimeout;
|
|
9
9
|
* }} io
|
|
10
10
|
* @param {number} batchTimeoutMs
|
|
11
11
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batched-deliver.d.ts","sourceRoot":"","sources":["batched-deliver.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"batched-deliver.d.ts","sourceRoot":"","sources":["batched-deliver.js"],"names":[],"mappings":"AASA;;GAEG;AAEH;;;;;;;GAOG;AACH,4CAPW,eAAe,gCACf;IACN,YAAY,EAAE,OAAO,UAAU,CAAC,YAAY,CAAC;IAC7C,UAAU,EAAE,OAAO,UAAU,CAAC,UAAU,CAAC;CAC1C,mBACO,MAAM,aATM,OAAO,EAAE,UAAU,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAiDjE;AAzDD;;;GAGG;AAEH,uCAAwC,IAAI,CAAC;8BAGhC,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC"}
|
package/src/batched-deliver.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// @jessie-check
|
|
2
1
|
// @ts-check
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -15,8 +14,8 @@ export const DEFAULT_BATCH_TIMEOUT_MS = 1000;
|
|
|
15
14
|
/**
|
|
16
15
|
* @param {DeliverMessages} deliver
|
|
17
16
|
* @param {{
|
|
18
|
-
* clearTimeout: clearTimeout;
|
|
19
|
-
* setTimeout: setTimeout;
|
|
17
|
+
* clearTimeout: typeof globalThis.clearTimeout;
|
|
18
|
+
* setTimeout: typeof globalThis.setTimeout;
|
|
20
19
|
* }} io
|
|
21
20
|
* @param {number} batchTimeoutMs
|
|
22
21
|
*/
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface LockLifecycleEvent {
|
|
2
|
+
key: string;
|
|
3
|
+
lockPath: string;
|
|
4
|
+
type: 'lock-acquired' | 'lock-released';
|
|
5
|
+
}
|
|
6
|
+
export interface LockWaitingEvent {
|
|
7
|
+
key: string;
|
|
8
|
+
lockPath: string;
|
|
9
|
+
type: 'lock-waiting';
|
|
10
|
+
waitedMs: number;
|
|
11
|
+
}
|
|
12
|
+
export interface LockBrokenEvent {
|
|
13
|
+
ageMs?: number;
|
|
14
|
+
key: string;
|
|
15
|
+
lockPath: string;
|
|
16
|
+
ownerPid?: number;
|
|
17
|
+
reason: 'dead-owner' | 'stale-age';
|
|
18
|
+
staleLockMs?: number;
|
|
19
|
+
type: 'lock-broken';
|
|
20
|
+
}
|
|
21
|
+
export type BuildCacheEvent = LockLifecycleEvent | LockWaitingEvent | LockBrokenEvent;
|
|
22
|
+
export interface DirectoryLockPowers {
|
|
23
|
+
acquireTimeoutMs: number;
|
|
24
|
+
delayMs: (ms: number) => Promise<unknown>;
|
|
25
|
+
fs: Pick<typeof import('node:fs/promises'), 'mkdir' | 'readFile' | 'rm' | 'stat' | 'writeFile'>;
|
|
26
|
+
isPidAlive: (pid: number) => boolean;
|
|
27
|
+
lockRoot: string;
|
|
28
|
+
now: () => number;
|
|
29
|
+
onEvent?: (event: BuildCacheEvent) => void;
|
|
30
|
+
pid: number;
|
|
31
|
+
staleLockMs: number;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=build-cache-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-cache-types.d.ts","sourceRoot":"","sources":["build-cache-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,eAAe,GAAG,eAAe,CAAC;CACzC;AAED,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,cAAc,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,YAAY,GAAG,WAAW,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,MAAM,eAAe,GACvB,kBAAkB,GAClB,gBAAgB,GAChB,eAAe,CAAC;AAEpB,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1C,EAAE,EAAE,IAAI,CACN,cAAc,kBAAkB,CAAC,EACjC,OAAO,GAAG,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,WAAW,CACnD,CAAC;IACF,UAAU,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function makeDirectoryLock(powers: DirectoryLockPowers): {
|
|
2
|
+
withLock: (key: string, body: () => Promise<any>) => Promise<any>;
|
|
3
|
+
};
|
|
4
|
+
export function writeFileAtomic({ fs, filePath, data, now, pid }: {
|
|
5
|
+
fs: Pick<typeof import("node:fs/promises"), "rename" | "writeFile">;
|
|
6
|
+
filePath: string;
|
|
7
|
+
data: string;
|
|
8
|
+
now: () => number;
|
|
9
|
+
pid: number;
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
import type { DirectoryLockPowers } from './build-cache-types.js';
|
|
12
|
+
//# sourceMappingURL=build-cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build-cache.d.ts","sourceRoot":"","sources":["build-cache.js"],"names":[],"mappings":"AASO,0CAFI,mBAAmB;oBAmEjB,MAAM,QACN,MAAM,OAAO,CAAC,GAAG,CAAC;EAsF9B;AAgBM,kEAVI;IACN,EAAE,EAAE,IAAI,CAAC,cAAc,kBAAkB,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC,CAAC;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb,iBASH;yCAnLsD,wBAAwB"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @import {BuildCacheEvent, DirectoryLockPowers} from './build-cache-types.js';
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @param {DirectoryLockPowers} powers
|
|
9
|
+
*/
|
|
10
|
+
export const makeDirectoryLock = powers => {
|
|
11
|
+
const {
|
|
12
|
+
fs,
|
|
13
|
+
delayMs,
|
|
14
|
+
now,
|
|
15
|
+
pid,
|
|
16
|
+
isPidAlive,
|
|
17
|
+
lockRoot,
|
|
18
|
+
staleLockMs,
|
|
19
|
+
acquireTimeoutMs,
|
|
20
|
+
onEvent = () => {},
|
|
21
|
+
} = powers;
|
|
22
|
+
/** @param {BuildCacheEvent} event */
|
|
23
|
+
const safeEmit = event => {
|
|
24
|
+
try {
|
|
25
|
+
onEvent(event);
|
|
26
|
+
} catch {
|
|
27
|
+
// Event sinks must not interfere with cache lock correctness.
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @param {string} dpath */
|
|
32
|
+
const mkdirUnlessExists = async dpath => {
|
|
33
|
+
await null; // avoid accidentally catching synchronous exceptions
|
|
34
|
+
try {
|
|
35
|
+
await fs.mkdir(dpath);
|
|
36
|
+
return true;
|
|
37
|
+
} catch (err) {
|
|
38
|
+
const e = /** @type {NodeJS.ErrnoException} */ (err);
|
|
39
|
+
if (e.code === 'EEXIST') {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
throw err;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @param {string} fpath */
|
|
47
|
+
const statUnlessMissing = async fpath => {
|
|
48
|
+
await null; // avoid accidentally catching synchronous exceptions
|
|
49
|
+
try {
|
|
50
|
+
return await fs.stat(fpath);
|
|
51
|
+
} catch (err) {
|
|
52
|
+
const e = /** @type {NodeJS.ErrnoException} */ (err);
|
|
53
|
+
if (e.code === 'ENOENT') {
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
throw err;
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** @param {string} fpath */
|
|
61
|
+
const readUnlessMissing = async fpath => {
|
|
62
|
+
await null; // avoid accidentally catching synchronous exceptions
|
|
63
|
+
try {
|
|
64
|
+
return await fs.readFile(fpath, 'utf8');
|
|
65
|
+
} catch (err) {
|
|
66
|
+
const e = /** @type {NodeJS.ErrnoException} */ (err);
|
|
67
|
+
if (e.code === 'ENOENT') {
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
throw err;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @param {string} key
|
|
76
|
+
* @param {() => Promise<any>} body
|
|
77
|
+
*/
|
|
78
|
+
const withLock = async (key, body) => {
|
|
79
|
+
const lockPath = path.join(lockRoot, `${encodeURIComponent(key)}.lock`);
|
|
80
|
+
const ownerPath = path.join(lockPath, 'owner.json');
|
|
81
|
+
await fs.mkdir(lockRoot, { recursive: true });
|
|
82
|
+
const started = now();
|
|
83
|
+
|
|
84
|
+
const maybeBreakStaleLock = async () => {
|
|
85
|
+
const ownerText = await readUnlessMissing(ownerPath);
|
|
86
|
+
if (ownerText) {
|
|
87
|
+
try {
|
|
88
|
+
const ownerInfo = JSON.parse(ownerText);
|
|
89
|
+
if (
|
|
90
|
+
ownerInfo &&
|
|
91
|
+
typeof ownerInfo === 'object' &&
|
|
92
|
+
Number.isInteger(ownerInfo.pid) &&
|
|
93
|
+
!isPidAlive(ownerInfo.pid)
|
|
94
|
+
) {
|
|
95
|
+
await fs.rm(lockPath, { recursive: true, force: true });
|
|
96
|
+
safeEmit({
|
|
97
|
+
type: 'lock-broken',
|
|
98
|
+
key,
|
|
99
|
+
lockPath,
|
|
100
|
+
reason: 'dead-owner',
|
|
101
|
+
ownerPid: ownerInfo.pid,
|
|
102
|
+
});
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
} catch {
|
|
106
|
+
// rely on age-based lock breaking for malformed owner files
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const lockStats = await statUnlessMissing(lockPath);
|
|
111
|
+
if (!lockStats) {
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
const ageMs = now() - lockStats.mtimeMs;
|
|
115
|
+
if (ageMs >= staleLockMs) {
|
|
116
|
+
await fs.rm(lockPath, { recursive: true, force: true });
|
|
117
|
+
safeEmit({
|
|
118
|
+
type: 'lock-broken',
|
|
119
|
+
key,
|
|
120
|
+
lockPath,
|
|
121
|
+
reason: 'stale-age',
|
|
122
|
+
ageMs,
|
|
123
|
+
staleLockMs,
|
|
124
|
+
});
|
|
125
|
+
return true;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return false;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
for (;;) {
|
|
132
|
+
if (await mkdirUnlessExists(lockPath)) {
|
|
133
|
+
await fs.writeFile(
|
|
134
|
+
ownerPath,
|
|
135
|
+
JSON.stringify({ pid, createdAt: now() }),
|
|
136
|
+
'utf8',
|
|
137
|
+
);
|
|
138
|
+
safeEmit({ type: 'lock-acquired', key, lockPath });
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
const recovered = await maybeBreakStaleLock();
|
|
142
|
+
if (recovered) {
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
const waitedMs = now() - started;
|
|
146
|
+
safeEmit({ type: 'lock-waiting', key, lockPath, waitedMs });
|
|
147
|
+
if (waitedMs >= acquireTimeoutMs) {
|
|
148
|
+
throw Error(`Timed out waiting for cache lock ${lockPath}`);
|
|
149
|
+
}
|
|
150
|
+
await delayMs(20);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
try {
|
|
154
|
+
return await body();
|
|
155
|
+
} finally {
|
|
156
|
+
await fs.rm(lockPath, { recursive: true, force: true });
|
|
157
|
+
safeEmit({ type: 'lock-released', key, lockPath });
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
return harden({ withLock });
|
|
162
|
+
};
|
|
163
|
+
harden(makeDirectoryLock);
|
|
164
|
+
|
|
165
|
+
let atomicWriteSequence = 0;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @param {{
|
|
169
|
+
* fs: Pick<typeof import('node:fs/promises'), 'rename' | 'writeFile'>;
|
|
170
|
+
* filePath: string;
|
|
171
|
+
* data: string;
|
|
172
|
+
* now: () => number;
|
|
173
|
+
* pid: number;
|
|
174
|
+
* }} options
|
|
175
|
+
* @throws {NodeJS.ErrnoException} when a unique temp file cannot be created
|
|
176
|
+
* or the atomic rename fails.
|
|
177
|
+
*/
|
|
178
|
+
export const writeFileAtomic = async ({ fs, filePath, data, now, pid }) => {
|
|
179
|
+
atomicWriteSequence += 1;
|
|
180
|
+
const tempPath = `${filePath}.${pid}.${now()}.${atomicWriteSequence}.tmp`;
|
|
181
|
+
await fs.writeFile(tempPath, data, { flag: 'wx' });
|
|
182
|
+
await fs.rename(tempPath, filePath);
|
|
183
|
+
};
|
|
184
|
+
harden(writeFileAtomic);
|
package/src/callback.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export function prepareAttenuator<M extends PropertyKey>(zone: Zone, methodNames
|
|
|
12
12
|
target?: any;
|
|
13
13
|
isSync?: boolean | undefined;
|
|
14
14
|
overrides?: { [K_1 in M]?: Callback<any> | null | undefined; } | undefined;
|
|
15
|
-
}) => import("@endo/exo").Guarded<{ [K_2 in M]: (this: any, ...args: any[]) => any; }>;
|
|
15
|
+
}) => import("@endo/exo").Guarded<{ [K_2 in M]: (this: any, ...args: any[]) => any; }, InterfaceGuard>;
|
|
16
16
|
export function prepareGuardedAttenuator<G extends InterfaceGuard>(zone: Zone, interfaceGuard: G, opts?: {
|
|
17
17
|
tag?: string | undefined;
|
|
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,UAAU,CAAC,CAAC,CAAC,GAC/D,CAAE,WAAY,CAAC,eACG,CAAC,SAAT,GAAG,EAAG,eACT,CAAC,cACD,CAAC,YACD,CAAC,GACC,SAAS,CAAC,CAAC,CAWvB;AAOM,qCAHI,GAAG,GACD,QAAQ,IAAI,SAAS,GAAG,CAAC,CAcrC;AAgBM,kCAVoB,CAAC,SAAd,WAAY,QACf,IAAI,eACJ,CAAC,EAAE,4BAEX;IAEU,cAAc,qBADrB,CAAC;IAGkB,GAAG;CAC3B;aAiEc,GAAG;;;uDAtDgB,GAAG,WAAW,GAAG,EAAE,KAAK,GAAG,qBAyF5D;AAYM,yCANuB,CAAC,SAAlB,cAAgB,QAClB,IAAI,kBACJ,CAAC,SAET;IAAsB,GAAG;CAAC,GAQT,cAAc,CAAC,GAAG,CAAC,CACtC;2BAxSsB,CAAC,SAAX,OAAS,IACT,CACZ,GAAO,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,KACtD,QAAQ,CAAC,CAAC;kCAdwB,YAAY;8BAAZ,YAAY;0BAP/B,WAAW;0BAGX,mBAAmB;iCAEZ,gBAAgB;oCADb,gBAAgB;6BAHvB,WAAW;6BACX,WAAW"}
|
package/src/callback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain-storage-paths.d.ts","sourceRoot":"","sources":["chain-storage-paths.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chain-storage-paths.d.ts","sourceRoot":"","sources":["chain-storage-paths.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,2BAA4B,aAAa,CAAC;AAC1C,kCAAmC,mBAAmB,CAAC;AACvD,oCAAqC,qBAAqB,CAAC;AAC3D,yBAA0B,YAAY,CAAC;AACvC,qBAAsB,QAAQ,CAAC;AAC/B,sBAAuB,SAAS,CAAC;AACjC,sBAAuB,SAAS,CAAC;AACjC,qBAAsB,WAAW,CAAC;AAClC,0BAA2B,YAAY,CAAC"}
|
package/src/config.d.ts
CHANGED
|
@@ -17,9 +17,9 @@ export namespace CosmosInitKeyToBridgeId {
|
|
|
17
17
|
let vbankPort: "bank";
|
|
18
18
|
let vibcPort: "dibc";
|
|
19
19
|
}
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
}
|
|
20
|
+
export const WalletName: import("./keyMirror.js").KeyMirrorResult<{
|
|
21
|
+
depositFacet: null;
|
|
22
|
+
}>;
|
|
23
23
|
export namespace VBankAccount {
|
|
24
24
|
namespace reserve {
|
|
25
25
|
let module: "vbank/reserve";
|
package/src/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.js"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.js"],"names":[],"mappings":";;;uBAwCa,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,QAAQ,CAAC;;;;;;;;;;;;;;;;AAsBrD;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA9BU,OAAO,GAAG,SAAS,GAAG,SAAS"}
|