@agoric/internal 0.4.1-upgrade-23-dev-7007b60.0.7007b60 → 0.5.0-u23.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 +4 -4
- package/vendor/anylogger.d.ts +0 -1
- package/src/action-types.d.ts +0 -89
- package/src/action-types.d.ts.map +0 -1
- package/src/ava-force-exit.d.mts +0 -2
- package/src/ava-force-exit.d.mts.map +0 -1
- package/src/batched-deliver.d.ts +0 -22
- package/src/batched-deliver.d.ts.map +0 -1
- package/src/build-cache-types.d.ts +0 -33
- package/src/build-cache-types.d.ts.map +0 -1
- package/src/build-cache.d.ts +0 -12
- package/src/build-cache.d.ts.map +0 -1
- package/src/callback.d.ts +0 -28
- package/src/callback.d.ts.map +0 -1
- package/src/chain-storage-paths.d.ts +0 -15
- package/src/chain-storage-paths.d.ts.map +0 -1
- package/src/chain-utils.d.ts +0 -27
- package/src/chain-utils.d.ts.map +0 -1
- package/src/cli-utils.d.ts +0 -2
- package/src/cli-utils.d.ts.map +0 -1
- package/src/config.d.ts +0 -54
- package/src/config.d.ts.map +0 -1
- package/src/debug.d.ts +0 -5
- package/src/debug.d.ts.map +0 -1
- package/src/errors.d.ts +0 -2
- package/src/errors.d.ts.map +0 -1
- package/src/hex.d.ts +0 -15
- package/src/hex.d.ts.map +0 -1
- package/src/index.d.ts +0 -16
- package/src/index.d.ts.map +0 -1
- package/src/install-ses-debug.d.ts +0 -2
- package/src/install-ses-debug.d.ts.map +0 -1
- package/src/js-utils.d.ts +0 -44
- package/src/js-utils.d.ts.map +0 -1
- package/src/keyMirror.d.ts +0 -3
- package/src/keyMirror.d.ts.map +0 -1
- package/src/kv-store.d.ts +0 -33
- package/src/kv-store.d.ts.map +0 -1
- package/src/lib-chainStorage.d.ts +0 -182
- package/src/lib-chainStorage.d.ts.map +0 -1
- package/src/lib-nodejs/ava-unhandled-rejection.d.ts +0 -28
- package/src/lib-nodejs/ava-unhandled-rejection.d.ts.map +0 -1
- package/src/lib-nodejs/engine-gc.d.ts +0 -3
- package/src/lib-nodejs/engine-gc.d.ts.map +0 -1
- package/src/lib-nodejs/gc-and-finalize.d.ts +0 -2
- package/src/lib-nodejs/gc-and-finalize.d.ts.map +0 -1
- package/src/lib-nodejs/spawnSubprocessWorker.d.ts +0 -13
- package/src/lib-nodejs/spawnSubprocessWorker.d.ts.map +0 -1
- package/src/lib-nodejs/waitUntilQuiescent.d.ts +0 -5
- package/src/lib-nodejs/waitUntilQuiescent.d.ts.map +0 -1
- package/src/lib-nodejs/worker-protocol.d.ts +0 -4
- package/src/lib-nodejs/worker-protocol.d.ts.map +0 -1
- package/src/magic-cookie-test-only.d.ts +0 -2
- package/src/magic-cookie-test-only.d.ts.map +0 -1
- package/src/marshal/board-client-utils.d.ts +0 -19
- package/src/marshal/board-client-utils.d.ts.map +0 -1
- package/src/marshal/cap-data.d.ts +0 -11
- package/src/marshal/cap-data.d.ts.map +0 -1
- package/src/marshal/inaccessible-val.d.ts +0 -2
- package/src/marshal/inaccessible-val.d.ts.map +0 -1
- package/src/marshal/pure-data.d.ts +0 -8
- package/src/marshal/pure-data.d.ts.map +0 -1
- package/src/marshal/wrap-marshaller.d.ts +0 -60
- package/src/marshal/wrap-marshaller.d.ts.map +0 -1
- package/src/method-tools.d.ts +0 -4
- package/src/method-tools.d.ts.map +0 -1
- package/src/metrics.d.ts +0 -183
- package/src/metrics.d.ts.map +0 -1
- package/src/module-utils.d.ts +0 -3
- package/src/module-utils.d.ts.map +0 -1
- package/src/natural-sort.d.ts +0 -2
- package/src/natural-sort.d.ts.map +0 -1
- package/src/netstring.d.ts +0 -24
- package/src/netstring.d.ts.map +0 -1
- package/src/node/buffer-line-transform.d.ts +0 -50
- package/src/node/buffer-line-transform.d.ts.map +0 -1
- package/src/node/createBundles.d.ts +0 -4
- package/src/node/createBundles.d.ts.map +0 -1
- package/src/node/fs-stream.d.ts +0 -13
- package/src/node/fs-stream.d.ts.map +0 -1
- package/src/node/read-json.d.ts +0 -2
- package/src/node/read-json.d.ts.map +0 -1
- package/src/node/shutdown.d.ts +0 -6
- package/src/node/shutdown.d.ts.map +0 -1
- package/src/priority-senders.d.ts +0 -33
- package/src/priority-senders.d.ts.map +0 -1
- package/src/queue.d.ts +0 -2
- package/src/queue.d.ts.map +0 -1
- package/src/scratch.d.ts +0 -19
- package/src/scratch.d.ts.map +0 -1
- package/src/ses-utils.d.ts +0 -90
- package/src/ses-utils.d.ts.map +0 -1
- package/src/storage-test-utils.d.ts +0 -76
- package/src/storage-test-utils.d.ts.map +0 -1
- package/src/testing-utils.d.ts +0 -8
- package/src/testing-utils.d.ts.map +0 -1
- package/src/tmpDir.d.ts +0 -2
- package/src/tmpDir.d.ts.map +0 -1
- package/src/tokens.d.ts +0 -34
- package/src/tokens.d.ts.map +0 -1
- package/src/typeCheck.d.ts +0 -9
- package/src/typeCheck.d.ts.map +0 -1
- package/src/typeGuards.d.ts +0 -23
- package/src/typeGuards.d.ts.map +0 -1
- package/src/types.d.ts +0 -100
- package/src/types.d.ts.map +0 -1
- package/src/upgrade-api.d.ts +0 -18
- package/src/upgrade-api.d.ts.map +0 -1
- package/src/work-pool.d.ts +0 -13
- package/src/work-pool.d.ts.map +0 -1
- package/vendor/anylogger.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/internal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0-u23.0",
|
|
4
4
|
"description": "Externally unsupported utilities internal to agoric-sdk",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"lint:types": "yarn run -T tsc"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@agoric/base-zone": "0.
|
|
23
|
+
"@agoric/base-zone": "0.3.0-u23.0",
|
|
24
24
|
"@endo/cache-map": "^1.1.0",
|
|
25
25
|
"@endo/common": "^1.2.13",
|
|
26
26
|
"@endo/compartment-mapper": "^1.6.3",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"jessie.js": "^0.3.4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@agoric/cosmic-proto": "0.
|
|
41
|
+
"@agoric/cosmic-proto": "0.6.0-u23.0",
|
|
42
42
|
"@endo/exo": "^1.5.12",
|
|
43
43
|
"@endo/init": "^1.1.12",
|
|
44
44
|
"@endo/ses-ava": "^1.3.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"typeCoverage": {
|
|
67
67
|
"atLeast": 92.84
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "1147be15b0704de17204d04e2407fa3192b98a1c"
|
|
70
70
|
}
|
package/vendor/anylogger.d.ts
CHANGED
package/src/action-types.d.ts
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Types of messages used for communication between a cosmos-sdk blockchain node
|
|
3
|
-
* and its paired swingset VM, especially for the ABCI lifecycle. See:
|
|
4
|
-
*
|
|
5
|
-
* - https://github.com/tendermint/tendermint/blob/v0.34.x/spec/abci/abci.md#block-execution
|
|
6
|
-
* - ../../../golang/cosmos/vm/action.go
|
|
7
|
-
* - ../../../golang/cosmos/app/app.go
|
|
8
|
-
* - ../../../golang/cosmos/x/swingset/abci.go
|
|
9
|
-
* - ../../../golang/cosmos/x/swingset/keeper/swing_store_exports_handler.go
|
|
10
|
-
* - ../../cosmic-swingset/src/chain-main.js
|
|
11
|
-
* - ../../cosmic-swingset/src/launch-chain.js
|
|
12
|
-
*/
|
|
13
|
-
export type SwingsetMessageType = (typeof SwingsetMessageType)[keyof typeof SwingsetMessageType];
|
|
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
|
-
* @enum {(typeof SwingsetMessageType)[keyof typeof 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
|
-
}>;
|
|
36
|
-
export const AG_COSMOS_INIT: "AG_COSMOS_INIT";
|
|
37
|
-
export const BEGIN_BLOCK: "BEGIN_BLOCK";
|
|
38
|
-
export const END_BLOCK: "END_BLOCK";
|
|
39
|
-
export const COMMIT_BLOCK: "COMMIT_BLOCK";
|
|
40
|
-
export const AFTER_COMMIT_BLOCK: "AFTER_COMMIT_BLOCK";
|
|
41
|
-
export const SWING_STORE_EXPORT: "SWING_STORE_EXPORT";
|
|
42
|
-
/**
|
|
43
|
-
* Types of "action" messages consumed by the swingset VM from actionQueue or
|
|
44
|
-
* highPriorityQueue during END_BLOCK. See:
|
|
45
|
-
*
|
|
46
|
-
* - ../../../golang/cosmos/x/swingset/keeper/msg_server.go
|
|
47
|
-
* - ../../../golang/cosmos/x/swingset/keeper/proposal.go
|
|
48
|
-
* - ../../../golang/cosmos/x/vbank/vbank.go
|
|
49
|
-
* - ../../../golang/cosmos/x/vibc/handler.go
|
|
50
|
-
* - ../../../golang/cosmos/x/vibc/keeper/triggers.go
|
|
51
|
-
* - ../../../golang/cosmos/x/vibc/types/ibc_module.go
|
|
52
|
-
*/
|
|
53
|
-
export type QueuedActionType = (typeof QueuedActionType)[keyof typeof QueuedActionType];
|
|
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
|
-
* @enum {(typeof QueuedActionType)[keyof typeof 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
|
-
}>;
|
|
79
|
-
export const CORE_EVAL: "CORE_EVAL";
|
|
80
|
-
export const DELIVER_INBOUND: "DELIVER_INBOUND";
|
|
81
|
-
export const IBC_EVENT: "IBC_EVENT";
|
|
82
|
-
export const INSTALL_BUNDLE: "INSTALL_BUNDLE";
|
|
83
|
-
export const PLEASE_PROVISION: "PLEASE_PROVISION";
|
|
84
|
-
export const VBANK_BALANCE_UPDATE: "VBANK_BALANCE_UPDATE";
|
|
85
|
-
export const WALLET_ACTION: "WALLET_ACTION";
|
|
86
|
-
export const WALLET_SPEND_ACTION: "WALLET_SPEND_ACTION";
|
|
87
|
-
export const VTRANSFER_IBC_EVENT: "VTRANSFER_IBC_EVENT";
|
|
88
|
-
export const KERNEL_UPGRADE_EVENTS: "KERNEL_UPGRADE_EVENTS";
|
|
89
|
-
//# sourceMappingURL=action-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-types.d.ts","sourceRoot":"","sources":["action-types.js"],"names":[],"mappings":";;;;;;;;;;;;kCAcU,CAAC,OAAO,mBAAmB,EAAE,MAAM,OAAO,mBAAmB,CAAC;AAZxE;;;;;;;;;;;;;GAaG;AACH;;;;;;;GAOG;;;;;;;;;;;;;;;;;;+BAwBO,CAAC,OAAO,gBAAgB,EAAE,MAAM,OAAO,gBAAgB,CAAC;AAXlE;;;;;;;;;;;;GAYG;AACH;;;;;;;;;;;GAWG"}
|
package/src/ava-force-exit.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ava-force-exit.d.mts","sourceRoot":"","sources":["ava-force-exit.mjs"],"names":[],"mappings":""}
|
package/src/batched-deliver.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {(message: unknown[], ackNum: number) => Promise<void>} DeliverMessages
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @param {DeliverMessages} deliver
|
|
6
|
-
* @param {{
|
|
7
|
-
* clearTimeout: clearTimeout;
|
|
8
|
-
* setTimeout: setTimeout;
|
|
9
|
-
* }} io
|
|
10
|
-
* @param {number} batchTimeoutMs
|
|
11
|
-
*/
|
|
12
|
-
export function makeBatchedDeliver(deliver: DeliverMessages, { clearTimeout, setTimeout }: {
|
|
13
|
-
clearTimeout: typeof globalThis.clearTimeout;
|
|
14
|
-
setTimeout: typeof globalThis.setTimeout;
|
|
15
|
-
}, batchTimeoutMs?: number): (message: unknown[], ackNum: number) => Promise<void>;
|
|
16
|
-
/**
|
|
17
|
-
* @import {clearTimeout} from 'node:timers';
|
|
18
|
-
* @import {setTimeout} from 'node:timers';
|
|
19
|
-
*/
|
|
20
|
-
export const DEFAULT_BATCH_TIMEOUT_MS: 1000;
|
|
21
|
-
export type DeliverMessages = (message: unknown[], ackNum: number) => Promise<void>;
|
|
22
|
-
//# sourceMappingURL=batched-deliver.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,iCAAe;IAC3B,UAAU,+BAAa;CACxB,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"}
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/src/build-cache.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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
|
package/src/build-cache.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-cache.d.ts","sourceRoot":"","sources":["build-cache.js"],"names":[],"mappings":"AAUO,0CAFI,mBAAmB;oBAkEjB,MAAM,QACN,MAAM,OAAO,CAAC,GAAG,CAAC;EAsF9B;AAgBM,kEAVI;IACN,EAAE,EAAE,IAAI,CAAC,iCAA0B,EAAE,QAAQ,GAAG,WAAW,CAAC,CAAC;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb,iBASH;yCAlLsD,wBAAwB"}
|
package/src/callback.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export function callSync<I extends (...args: any[]) => any>(callback: SyncCallback<I>, ...args: Parameters<I>): ReturnType<I>;
|
|
2
|
-
export function callE<I extends (...args: any[]) => any>(callback: Callback<I>, ...args: Parameters<I>): Promise<Awaited<ReturnType<I>>>;
|
|
3
|
-
export function makeSyncFunctionCallback<I extends (...args: any[]) => any, T extends (...args: [...B, ...Parameters<I>]) => ReturnType<I> = I, B extends any[] = []>(target: T, ...bound: B): SyncCallback<I>;
|
|
4
|
-
export function makeFunctionCallback<I extends (...args: any[]) => any, T extends ERef<(...args: [...B, ...Parameters<I>]) => ReturnType<I>> = ERef<I>, B extends any[] = []>(target: T, ...bound: B): Callback<I>;
|
|
5
|
-
export function makeSyncMethodCallback<I extends (...args: any[]) => any, P extends PropertyKey, T extends { [x in P]: (...args: [...B, ...Parameters<I>]) => ReturnType<I>; } = { [x in P]: I; }, B extends any[] = []>(target: T, methodName: P, ...bound: B): SyncCallback<I>;
|
|
6
|
-
export function makeMethodCallback<I extends (...args: any[]) => any, P extends PropertyKey, T extends ERef<{ [x in P]: (...args: [...B, ...Parameters<I>]) => ReturnType<I>; }> = ERef<{ [x in P]: I; }>, B extends any[] = []>(target: T, methodName: P, ...bound: B): Callback<I>;
|
|
7
|
-
export function isCallback(callback: any): callback is Callback<any>;
|
|
8
|
-
export function prepareAttenuator<M extends PropertyKey>(zone: Zone, methodNames: M[], { interfaceGuard, tag }?: {
|
|
9
|
-
interfaceGuard?: InterfaceGuard<{ [K in M]: MethodGuard; }> | undefined;
|
|
10
|
-
tag?: string | undefined;
|
|
11
|
-
}): (args_0: {
|
|
12
|
-
target?: any;
|
|
13
|
-
isSync?: boolean | undefined;
|
|
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; }>;
|
|
16
|
-
export function prepareGuardedAttenuator<G extends InterfaceGuard>(zone: Zone, interfaceGuard: G, opts?: {
|
|
17
|
-
tag?: string | undefined;
|
|
18
|
-
}): MakeAttenuator<any>;
|
|
19
|
-
export type MakeAttenuator<T extends Methods> = (...args: Parameters<ReturnType<typeof prepareAttenuator>>) => Farable<T>;
|
|
20
|
-
import type { SyncCallback } from './types.js';
|
|
21
|
-
import type { Callback } from './types.js';
|
|
22
|
-
import type { ERef } from '@endo/far';
|
|
23
|
-
import type { Zone } from '@agoric/base-zone';
|
|
24
|
-
import type { MethodGuard } from '@endo/patterns';
|
|
25
|
-
import type { InterfaceGuard } from '@endo/patterns';
|
|
26
|
-
import type { Methods } from '@endo/exo';
|
|
27
|
-
import type { Farable } from '@endo/exo';
|
|
28
|
-
//# sourceMappingURL=callback.d.ts.map
|
package/src/callback.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["callback.js"],"names":[],"mappings":"AAuDO,yBALgC,CAAC,SAA3B,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAI,YAC3B,aAAa,CAAC,CAAC,WACf,UAAU,CAAC,CAAC,CAAC,GACX,UAAU,CAAC,CAAC,CAAC,CAQzB;AAWM,sBALgC,CAAC,SAA3B,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAI,YAC3B,SAAS,CAAC,CAAC,WACX,UAAU,CAAC,CAAC,CAAC,GACX,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAQ3C;AAaM,yCAPgC,CAAC,SAA3B,CAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAA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AAC,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;aAgEc,GAAG;;;uDArDgB,GAAG,WAAW,GAAG,EAAE,KAAK,GAAG,KAwF5D;AAYM,yCANuB,CAAC,SAAlB,cAAgB,QAClB,IAAI,kBACJ,CAAC,SAET;IAAsB,GAAG;CAAC,GAQT,cAAc,CAAC,GAAG,CAAC,CACtC;2BAvSsB,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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These identify top-level paths for SwingSet chain storage (and serve as
|
|
3
|
-
* prefixes). To avoid collisions, they should remain synchronized with
|
|
4
|
-
* golang/cosmos/x/swingset/keeper/keeper.go
|
|
5
|
-
*/
|
|
6
|
-
export const ACTION_QUEUE: "actionQueue";
|
|
7
|
-
export const HIGH_PRIORITY_QUEUE: "highPriorityQueue";
|
|
8
|
-
export const HIGH_PRIORITY_SENDERS: "highPrioritySenders";
|
|
9
|
-
export const BEANSOWING: "beansOwing";
|
|
10
|
-
export const EGRESS: "egress";
|
|
11
|
-
export const MAILBOX: "mailbox";
|
|
12
|
-
export const BUNDLES: "bundles";
|
|
13
|
-
export const CUSTOM: "published";
|
|
14
|
-
export const SWING_STORE: "swingStore";
|
|
15
|
-
//# sourceMappingURL=chain-storage-paths.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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/chain-utils.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export function makeInitMsg(initAction: any): InitMsg;
|
|
2
|
-
export type NatString = `${bigint}`;
|
|
3
|
-
export type BlockInfo = {
|
|
4
|
-
blockHeight: number;
|
|
5
|
-
/**
|
|
6
|
-
* POSIX Seconds Since the Epoch
|
|
7
|
-
*/
|
|
8
|
-
blockTime: number;
|
|
9
|
-
params: JsonSafe<ParamsSDKType>;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* cosmosInitAction fields that are subject to consensus. See cosmosInitAction
|
|
13
|
-
* in {@link ../../../golang/cosmos/app/app.go}.
|
|
14
|
-
*/
|
|
15
|
-
export type InitMsg = BlockInfo & {
|
|
16
|
-
type: typeof _ActionType.AG_COSMOS_INIT;
|
|
17
|
-
chainID: string;
|
|
18
|
-
isBootstrap?: boolean;
|
|
19
|
-
supplyCoins: {
|
|
20
|
-
denom: string;
|
|
21
|
-
amount: NatString;
|
|
22
|
-
}[];
|
|
23
|
-
};
|
|
24
|
-
import type { ParamsSDKType } from '@agoric/cosmic-proto/swingset/swingset.js';
|
|
25
|
-
import type { JsonSafe } from '@agoric/cosmic-proto/json-safe';
|
|
26
|
-
import * as _ActionType from './action-types.js';
|
|
27
|
-
//# sourceMappingURL=chain-utils.d.ts.map
|
package/src/chain-utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chain-utils.d.ts","sourceRoot":"","sources":["chain-utils.js"],"names":[],"mappings":"AA2CO,wCAHI,GAAG,GACD,OAAO,CAoBnB;wBA/Ca,GAAG,MAAM,EAAE;;iBASX,MAAM;;;;eACN,MAAM;YACN,SAAS,aAAa,CAAC;;;;;;sBAIxB,SAAS,GAAG;IACpB,IAAI,EAAE,OAAO,WAAW,CAAC,cAAc,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,SAAS,CAAA;KAAE,EAAE,CAAC;CACrD;mCAjB4B,2CAA2C;8BAChD,gCAAgC;6BAN9B,mBAAmB"}
|
package/src/cli-utils.d.ts
DELETED
package/src/cli-utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli-utils.d.ts","sourceRoot":"","sources":["cli-utils.js"],"names":[],"mappings":"AAUO,qCAJI,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,GAErD,MAAM,EAAE,CAYjB"}
|
package/src/config.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Event source ids used by the bridge device.
|
|
3
|
-
*/
|
|
4
|
-
export type BridgeId = (typeof BridgeId)[keyof typeof BridgeId];
|
|
5
|
-
export namespace BridgeId {
|
|
6
|
-
let BANK: "bank";
|
|
7
|
-
let CORE: "core";
|
|
8
|
-
let DIBC: "dibc";
|
|
9
|
-
let STORAGE: "storage";
|
|
10
|
-
let PROVISION: "provision";
|
|
11
|
-
let PROVISION_SMART_WALLET: "provisionWallet";
|
|
12
|
-
let VLOCALCHAIN: "vlocalchain";
|
|
13
|
-
let VTRANSFER: "vtransfer";
|
|
14
|
-
let WALLET: "wallet";
|
|
15
|
-
}
|
|
16
|
-
export namespace CosmosInitKeyToBridgeId {
|
|
17
|
-
let vbankPort: "bank";
|
|
18
|
-
let vibcPort: "dibc";
|
|
19
|
-
}
|
|
20
|
-
export const WalletName: import("./keyMirror.js").KeyMirrorResult<{
|
|
21
|
-
depositFacet: null;
|
|
22
|
-
}>;
|
|
23
|
-
export namespace VBankAccount {
|
|
24
|
-
namespace reserve {
|
|
25
|
-
let module: "vbank/reserve";
|
|
26
|
-
let address: "agoric1ae0lmtzlgrcnla9xjkpaarq5d5dfez63h3nucl";
|
|
27
|
-
}
|
|
28
|
-
namespace provision {
|
|
29
|
-
let module_1: "vbank/provision";
|
|
30
|
-
export { module_1 as module };
|
|
31
|
-
let address_1: "agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346";
|
|
32
|
-
export { address_1 as address };
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* ClusterName specifies a collection of networks. The specific networks
|
|
37
|
-
* associated with a particular name may vary from context to context, and may
|
|
38
|
-
* also overlap (e.g. a "local" cluster may connect to the same remote networks
|
|
39
|
-
* as a "testnet" cluster), but this type nevertheless supports cross-package
|
|
40
|
-
* coordination where the values associated with static labels are subject to
|
|
41
|
-
* choice of cluster. Some examples:
|
|
42
|
-
*
|
|
43
|
-
* - the chain ID for a static label like "Agoric" or "Ethereum"
|
|
44
|
-
* - the cryptographic hash for a static label like "BLD" or "USDC"
|
|
45
|
-
* - the URL for a service like "Agoric RPC" or "Axelar" or "Spectrum"
|
|
46
|
-
*
|
|
47
|
-
* "mainnet" should always include the Agoric network described by
|
|
48
|
-
* https://main.agoric.net/network-config rather than some other alternative.
|
|
49
|
-
*
|
|
50
|
-
* XXX This actually belongs somewhere else, possibly with refactoring.
|
|
51
|
-
* https://github.com/Agoric/agoric-sdk/pull/12185#discussion_r2500123226
|
|
52
|
-
*/
|
|
53
|
-
export type ClusterName = "local" | "testnet" | "mainnet";
|
|
54
|
-
//# sourceMappingURL=config.d.ts.map
|
package/src/config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["config.js"],"names":[],"mappings":";;;uBAwCU,CAAC,OAAO,QAAQ,EAAE,MAAM,OAAO,QAAQ,CAAC;;;;;;;;;;;;;;;;AAsBlD;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA9BU,OAAO,GAAG,SAAS,GAAG,SAAS"}
|
package/src/debug.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export function makeTracer(label: string, enable?: boolean | "verbose"): ((..._args: any[]) => void) & {
|
|
2
|
-
sub: (subLabel: any, subEnable?: boolean | "verbose") => ((..._args: any[]) => void) & /*elided*/ any;
|
|
3
|
-
};
|
|
4
|
-
export type TraceLogger = ReturnType<typeof makeTracer>;
|
|
5
|
-
//# sourceMappingURL=debug.d.ts.map
|
package/src/debug.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["debug.js"],"names":[],"mappings":"AAQO,kCAHI,MAAM,WACN,OAAO,GAAG,SAAS;;EAwC7B;0BAIY,UAAU,CAAC,OAAO,UAAU,CAAC"}
|
package/src/errors.d.ts
DELETED
package/src/errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["errors.js"],"names":[],"mappings":"AAQO,2BALM,CAAC,OACH,CAAC,GAAG,IAAI,GAAG,SAAS,eACpB,MAAM,GACJ,CAAC,CAQb"}
|
package/src/hex.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export function makePortableHexCodec(): HexCodec;
|
|
2
|
-
export function makeBufferishHexCodec(Bufferish: BufferishConstructor): HexCodec;
|
|
3
|
-
export const encodeHex: (buf: Uint8Array) => string;
|
|
4
|
-
export const decodeHex: (hex: string) => Uint8Array;
|
|
5
|
-
export type HexCodec = {
|
|
6
|
-
encodeHex: (buf: Uint8Array) => string;
|
|
7
|
-
decodeHex: (hex: string) => Uint8Array;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* is the portion of the Node.js Buffer API we need for hex conversion.
|
|
11
|
-
*/
|
|
12
|
-
export type BufferishConstructor = Pick<BufferConstructor, "from" | "isBuffer"> & {
|
|
13
|
-
prototype: Pick<Buffer, "toString"> & Uint8Array;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=hex.d.ts.map
|
package/src/hex.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["hex.js"],"names":[],"mappings":"AAsCO,wCAFM,QAAQ,CAyBpB;AAgBM,iDAJI,oBAAoB,GAElB,QAAQ,CAoBpB;8BA7FmB,UAAU,KAAK,MAAM;8BACrB,MAAM,KAAK,UAAU;;eAD3B,CAAC,GAAG,EAAE,UAAU,KAAK,MAAM;eAC3B,CAAC,GAAG,EAAE,MAAM,KAAK,UAAU;;;;;mCA6D5B,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG;IACvD,SAAS,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,UAAU,CAAC;CAClD"}
|
package/src/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from "./cli-utils.js";
|
|
2
|
-
export * from "./config.js";
|
|
3
|
-
export * from "./debug.js";
|
|
4
|
-
export * from "./errors.js";
|
|
5
|
-
export * from "./js-utils.js";
|
|
6
|
-
export * from "./keyMirror.js";
|
|
7
|
-
export * from "./method-tools.js";
|
|
8
|
-
export * from "./metrics.js";
|
|
9
|
-
export * from "./natural-sort.js";
|
|
10
|
-
export * from "./ses-utils.js";
|
|
11
|
-
export * from "./tmpDir.js";
|
|
12
|
-
export * from "./typeCheck.js";
|
|
13
|
-
export * from "./typeGuards.js";
|
|
14
|
-
export * from "./types-index.js";
|
|
15
|
-
export { pureDataMarshaller } from "./marshal/pure-data.js";
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"install-ses-debug.d.ts","sourceRoot":"","sources":["install-ses-debug.js"],"names":[],"mappings":""}
|
package/src/js-utils.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/** For overriding TypeScript inferring the type of `true` as boolean. */
|
|
2
|
-
export const TRUE: true;
|
|
3
|
-
/**
|
|
4
|
-
* @typedef {<O extends Record<string, unknown>>(
|
|
5
|
-
* obj: O,
|
|
6
|
-
* ) => Exclude<
|
|
7
|
-
* { [K in keyof O]: K extends string ? [K, O[K]] : never }[keyof O],
|
|
8
|
-
* undefined
|
|
9
|
-
* >[]} TypedEntries
|
|
10
|
-
*/
|
|
11
|
-
export const typedEntries: TypedEntries;
|
|
12
|
-
/**
|
|
13
|
-
* @typedef {<
|
|
14
|
-
* const Entries extends ReadonlyArray<readonly [PropertyKey, unknown]>,
|
|
15
|
-
* >(
|
|
16
|
-
* entries: Entries,
|
|
17
|
-
* ) => { [Entry in Entries[number] as Entry[0]]: Entry[1] }} FromTypedEntries
|
|
18
|
-
*/
|
|
19
|
-
export const fromTypedEntries: FromTypedEntries;
|
|
20
|
-
/**
|
|
21
|
-
* @typedef {<A extends unknown[], V>(
|
|
22
|
-
* arr: A,
|
|
23
|
-
* mapper: <K extends number>(el: A[K], idx: K, arr: A) => V,
|
|
24
|
-
* ) => V[]} TypedMap
|
|
25
|
-
*/
|
|
26
|
-
export const typedMap: TypedMap;
|
|
27
|
-
export const logLevels: readonly ["debug", "log", "info", "warn", "error"];
|
|
28
|
-
export function deepCopyJsonable<T>(value: T): T;
|
|
29
|
-
export function deepMapObject<O extends Record<string, unknown>, M>(obj: O, mapper: <T extends Record<string, unknown>, K extends string & keyof T>(value: T[K], name: K, record: T) => T[K] | M): O | { [K_1 in keyof O]: K_1 extends string ? O[K_1] | M : never; };
|
|
30
|
-
export function defineName<F extends Function>(name: string, fn: F): F;
|
|
31
|
-
export function objectMapMutable<O extends Record<string, unknown>, M>(obj: O, mapper: <K extends keyof O>(value: O[K], key: K) => M): { [K in keyof O]: K extends string ? M : never; };
|
|
32
|
-
export function partialMap<T, U>(arr: T[], mapOrDrop: (value: T, index: number, arr: T[]) => U | undefined | false): U[];
|
|
33
|
-
export function provideLazyMap<K, V>(map: [K] extends [WeakKey] ? WeakMap<K, V> : Map<K, V>, key: K, makeValue: (key: K) => V): V;
|
|
34
|
-
export function makeMeasureSeconds(currentTimeMillisec: () => number): <T>(fn: () => Promise<T>) => Promise<{
|
|
35
|
-
result: T;
|
|
36
|
-
duration: number;
|
|
37
|
-
}>;
|
|
38
|
-
export function unprefixedProperties<P extends string, K extends string, V>(obj: Record<`${P}${K}`, V>, prefix: P): Record<K, V>;
|
|
39
|
-
export type TypedEntries = <O extends Record<string, unknown>>(obj: O) => Exclude<{ [K in keyof O]: K extends string ? [K, O[K]] : never; }[keyof O], undefined>[];
|
|
40
|
-
export type FromTypedEntries = <const Entries extends ReadonlyArray<readonly [PropertyKey, unknown]>>(entries: Entries) => { [Entry in Entries[number] as Entry[0]]: Entry[1]; };
|
|
41
|
-
export type TypedMap = <A extends unknown[], V>(arr: A, mapper: <K extends number>(el: A[K], idx: K, arr: A) => V) => V[];
|
|
42
|
-
export type LogLevel = (typeof logLevels)[keyof readonly ["debug", "log", "info", "warn", "error"] & number];
|
|
43
|
-
export type LimitedConsole = Pick<Console, LogLevel>;
|
|
44
|
-
//# sourceMappingURL=js-utils.d.ts.map
|
package/src/js-utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"js-utils.d.ts","sourceRoot":"","sources":["js-utils.js"],"names":[],"mappings":"AAQA,yEA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AAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,KACtD,CAAC,EAAE;uBAeG,CAAC,OAAO,SAAS,EAAE,2DAAkB,MAAM,CAAC;6BAE5C,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC"}
|
package/src/keyMirror.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export function keyMirror<Init extends Record<string, string | null> & Record<Exclude<PropertyKey, string>, never>>(record: Init & { readonly [K in keyof Init]: Init[K] extends null ? null : K; }): KeyMirrorResult<Init>;
|
|
2
|
-
export type KeyMirrorResult<Init extends Record<string, string | null> & Record<Exclude<PropertyKey, string>, never>> = { readonly [K in keyof Init]: K; };
|
|
3
|
-
//# sourceMappingURL=keyMirror.d.ts.map
|
package/src/keyMirror.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keyMirror.d.ts","sourceRoot":"","sources":["keyMirror.js"],"names":[],"mappings":"AAuBO,0BAJoF,IAAI,SAAjF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,KAAK,CAAE,UAC/E,IAAI,GAAG,EAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,GAAG,CAAC,GAAE,GACpE,eAAe,CAAC,IAAI,CAAC,CAqBjC;4BArC0F,IAAI,SAAjF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,KAAK,CAAE,IAC7E,EAAE,QAAQ,EAAE,CAAC,IAAI,MAAM,IAAI,GAAG,CAAC,GAAE"}
|
package/src/kv-store.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @import {Database} from 'better-sqlite3';
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @template [T=string]
|
|
6
|
-
* @typedef {{
|
|
7
|
-
* has: (key: string) => boolean;
|
|
8
|
-
* get: (key: string) => T | undefined;
|
|
9
|
-
* getNextKey: (previousKey: string) => string | undefined;
|
|
10
|
-
* set: (key: string, value: T) => void;
|
|
11
|
-
* delete: (key: string) => void;
|
|
12
|
-
* }} KVStore
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* @param {Database} db The SQLite database connection.
|
|
16
|
-
* @param {() => void} beforeMutation Called before mutating methods to
|
|
17
|
-
* establish a DB transaction if needed
|
|
18
|
-
* @param {(...args: string[]) => void} trace Called after set/delete to record
|
|
19
|
-
* a debug log
|
|
20
|
-
* @returns {KVStore}
|
|
21
|
-
*/
|
|
22
|
-
export function makeKVStore(db: Database, beforeMutation: () => void, trace: (...args: string[]) => void): KVStore;
|
|
23
|
-
export function compareByCodePoints(left: any, right: any): 0 | 1 | -1;
|
|
24
|
-
export function makeKVStoreFromMap<T = unknown>(map: Map<string, T>): KVStore<T>;
|
|
25
|
-
export type KVStore<T = string> = {
|
|
26
|
-
has: (key: string) => boolean;
|
|
27
|
-
get: (key: string) => T | undefined;
|
|
28
|
-
getNextKey: (previousKey: string) => string | undefined;
|
|
29
|
-
set: (key: string, value: T) => void;
|
|
30
|
-
delete: (key: string) => void;
|
|
31
|
-
};
|
|
32
|
-
import type { Database } from 'better-sqlite3';
|
|
33
|
-
//# sourceMappingURL=kv-store.d.ts.map
|
package/src/kv-store.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"kv-store.d.ts","sourceRoot":"","sources":["kv-store.js"],"names":[],"mappings":"AAGA;;GAEG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;GAOG;AAEH,gCARW,QAAQ,kBACR,MAAM,IAAI,SAEV,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,GAEzB,OAAO,CA0InB;AAOM,uEAoBN;AAOM,mCAJO,CAAC,iBACJ,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,GACZ,OAAO,CAAC,CAAC,CAAC,CA8DtB;oBAxPa,CAAC,aACF;IACR,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC;IAC9B,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,CAAC;IACpC,UAAU,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACxD,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IACrC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/B;8BAXuB,gBAAgB"}
|