@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 +11 -11
- package/src/types.d.ts +49 -0
- package/src/types.js +2 -0
- package/tsconfig.json +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmic-swingset",
|
|
3
|
-
"version": "0.41.4-dev-
|
|
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-
|
|
26
|
-
"@agoric/cosmos": "0.34.2-dev-
|
|
27
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/store": "0.9.3-dev-
|
|
30
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
31
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
32
|
-
"@agoric/telemetry": "0.6.3-dev-
|
|
33
|
-
"@agoric/vm-config": "0.1.1-dev-
|
|
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": "
|
|
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