@agoric/cosmic-swingset 0.41.4-dev-b1998a7.0 → 0.41.4-dev-3d4f71f.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/cosmic-swingset",
3
- "version": "0.41.4-dev-b1998a7.0+b1998a7",
3
+ "version": "0.41.4-dev-3d4f71f.0+3d4f71f",
4
4
  "description": "Agoric's Cosmos blockchain integration",
5
5
  "type": "module",
6
6
  "bin": {
@@ -22,15 +22,15 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/builders": "0.1.1-dev-b1998a7.0+b1998a7",
26
- "@agoric/cosmos": "0.34.2-dev-b1998a7.0+b1998a7",
27
- "@agoric/deploy-script-support": "0.10.4-dev-b1998a7.0+b1998a7",
28
- "@agoric/internal": "0.3.3-dev-b1998a7.0+b1998a7",
29
- "@agoric/store": "0.9.3-dev-b1998a7.0+b1998a7",
30
- "@agoric/swing-store": "0.9.2-dev-b1998a7.0+b1998a7",
31
- "@agoric/swingset-vat": "0.32.3-dev-b1998a7.0+b1998a7",
32
- "@agoric/telemetry": "0.6.3-dev-b1998a7.0+b1998a7",
33
- "@agoric/vm-config": "0.1.1-dev-b1998a7.0+b1998a7",
25
+ "@agoric/builders": "0.1.1-dev-3d4f71f.0+3d4f71f",
26
+ "@agoric/cosmos": "0.34.2-dev-3d4f71f.0+3d4f71f",
27
+ "@agoric/deploy-script-support": "0.10.4-dev-3d4f71f.0+3d4f71f",
28
+ "@agoric/internal": "0.3.3-dev-3d4f71f.0+3d4f71f",
29
+ "@agoric/store": "0.9.3-dev-3d4f71f.0+3d4f71f",
30
+ "@agoric/swing-store": "0.9.2-dev-3d4f71f.0+3d4f71f",
31
+ "@agoric/swingset-vat": "0.32.3-dev-3d4f71f.0+3d4f71f",
32
+ "@agoric/telemetry": "0.6.3-dev-3d4f71f.0+3d4f71f",
33
+ "@agoric/vm-config": "0.1.1-dev-3d4f71f.0+3d4f71f",
34
34
  "@endo/bundle-source": "^3.5.0",
35
35
  "@endo/env-options": "^1.1.8",
36
36
  "@endo/errors": "^1.2.8",
@@ -71,5 +71,5 @@
71
71
  "typeCoverage": {
72
72
  "atLeast": 83.84
73
73
  },
74
- "gitHead": "b1998a7ae3c2010b5fe200179ea3d05d9d8005e2"
74
+ "gitHead": "3d4f71fa75205409e315a92c59645c3ca20b6172"
75
75
  }
package/src/types.d.ts ADDED
@@ -0,0 +1,49 @@
1
+ import { QueuedActionType } from '@agoric/internal/src/action-types.js';
2
+ import type {
3
+ CoreEval,
4
+ CoreEvalSDKType,
5
+ } from '@agoric/cosmic-proto/agoric/swingset/swingset.js';
6
+
7
+ // TODO move `walletFlags.js` from @agoric/vats to @agoric/cosmic-proto
8
+ type PowerFlag = 'SMART_WALLET' | 'REMOTE_WALLET';
9
+
10
+ // NB: keep these manually synced until we build these types out of the Golang
11
+ // structs or use some other shared type truth
12
+ // https://github.com/Agoric/agoric-sdk/issues/8545
13
+
14
+ interface ActionContext<T extends Uppercase<string>> {
15
+ type: T;
16
+ blockHeight: string;
17
+ blockTime: string;
18
+ }
19
+
20
+ /**
21
+ * @see coreEvalAction in proposal.go
22
+ */
23
+ export type CoreEvalAction = ActionContext<'CORE_EVAL'> & {
24
+ evals: CoreEvalSDKType[];
25
+ };
26
+
27
+ /**
28
+ * @see provisionAction in msg_server.go
29
+ */
30
+ export type PleaseProvisionAction = ActionContext<'PLEASE_PROVISION'> & {
31
+ address: string;
32
+ nickname: string;
33
+ powerFlags: PowerFlag[];
34
+ submitter: string;
35
+ autoProvision: boolean;
36
+ };
37
+
38
+ /**
39
+ * @see VbankBalanceUpdate in vbank.go
40
+ */
41
+ export type VbankBalanceUpdateAction = ActionContext<'VBANK_BALANCE_UPDATE'> & {
42
+ nonce: string;
43
+ updated: Array<{ address: string; denom: string; amount: string }>;
44
+ };
45
+
46
+ export type BridgeMessage =
47
+ | CoreEvalAction
48
+ | PleaseProvisionAction
49
+ | VbankBalanceUpdateAction;
package/src/types.js ADDED
@@ -0,0 +1,2 @@
1
+ // Empty JS file to correspond with types.d.ts
2
+ export {};
package/tsconfig.json CHANGED
@@ -1,6 +1,9 @@
1
1
  // This file can contain .js-specific Typescript compiler config.
2
2
  {
3
3
  "extends": "../../tsconfig.json",
4
+ "compilerOptions": {
5
+ "skipLibCheck": false
6
+ },
4
7
  "include": [
5
8
  "calc-*.js",
6
9
  "src/**/*.js",