@agoric/vats 0.15.2-dev-2a8fca7.0.2a8fca7 → 0.15.2-dev-4a66092.0.4a66092
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/vats",
|
|
3
|
-
"version": "0.15.2-dev-
|
|
3
|
+
"version": "0.15.2-dev-4a66092.0.4a66092",
|
|
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-4a66092.0.4a66092",
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-4a66092.0.4a66092",
|
|
27
|
+
"@agoric/governance": "0.10.4-dev-4a66092.0.4a66092",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-4a66092.0.4a66092",
|
|
29
|
+
"@agoric/network": "0.1.1-dev-4a66092.0.4a66092",
|
|
30
|
+
"@agoric/notifier": "0.6.3-dev-4a66092.0.4a66092",
|
|
31
|
+
"@agoric/store": "0.9.3-dev-4a66092.0.4a66092",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-4a66092.0.4a66092",
|
|
33
|
+
"@agoric/time": "0.3.3-dev-4a66092.0.4a66092",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-dev-4a66092.0.4a66092",
|
|
35
|
+
"@agoric/vow": "0.1.1-dev-4a66092.0.4a66092",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-4a66092.0.4a66092",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-4a66092.0.4a66092",
|
|
38
38
|
"@endo/errors": "^1.2.13",
|
|
39
39
|
"@endo/far": "^1.1.14",
|
|
40
40
|
"@endo/import-bundle": "^1.5.2",
|
|
@@ -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-4a66092.0.4a66092",
|
|
51
51
|
"@endo/bundle-source": "^4.1.2",
|
|
52
52
|
"@endo/init": "^1.1.12",
|
|
53
53
|
"ava": "^5.3.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"typeCoverage": {
|
|
80
80
|
"atLeast": 90.31
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "4a660927e7eafc2eabc8a6c5339c43177f168930"
|
|
83
83
|
}
|
package/src/localchain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localchain.d.ts","sourceRoot":"","sources":["localchain.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"localchain.d.ts","sourceRoot":"","sources":["localchain.js"],"names":[],"mappings":"AAmBA;;;;;;;;;;;;GAYG;AAEH;;;GAGG;AAEH;;;;;;GAMG;AAEH;;;;;;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QAAQ,OAAO,iBAAiB,CAAC,CAAC;mCAG3C,OAAO,CACf,UAAU,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAC3D;gCAGU,oBAAoB,CAAC,SAAS,CAAC;8BAwH/B,UAAU,CAAC,OAAO,sBAAsB,CAAC;8BAviBX,aAAa;2BADhB,cAAc;6BAAd,cAAc;4BAAd,cAAc;+BADL,sBAAsB;yBAE5B,aAAa;gCAAb,aAAa;0BAJzB,WAAW;6BACZ,gBAAgB;+BAIC,oBAAoB;wCAApB,oBAAoB;gCAHlB,sBAAsB;8BAAtB,sBAAsB;qCALtC,gDAAgD;0BAE3D,kDAAkD;6CAD/B,6DAA6D;0BAQnE,eAAe;yCACQ,YAAY;iCADnC,eAAe;AAubnD;;;;GAIG;AACH,yCAJW,OAAO,mBAAmB,EAAE,IAAI,kBAChC,UAAU,CAAC,OAAO,2BAA2B,CAAC,aAC9C,QAAQ,YAqFN,gBAAgB;IAjErB;;;;;;;OAOG;mBADU,WAAW,iBAAiB,CAAC;IAU1C;;;;;;;;OAQG;UAHuB,CAAC,SAAd,SAAW;;gBACb,CAAC,GACC,WAAW,SAAS,WAAW,CAAC,CAAC,CAAC,CAAC;;;;gBA7bzC,MAAM;;;;;GA2epB;6BAzhB+B,WAAW"}
|
package/src/localchain.js
CHANGED
|
@@ -9,9 +9,12 @@ import {
|
|
|
9
9
|
PaymentShape,
|
|
10
10
|
} from '@agoric/ertp';
|
|
11
11
|
import { Shape as NetworkShape } from '@agoric/network';
|
|
12
|
-
import {
|
|
12
|
+
import { CodecHelper } from '@agoric/cosmic-proto';
|
|
13
|
+
import { MsgSend as MsgSendType } from '@agoric/cosmic-proto/cosmos/bank/v1beta1/tx.js';
|
|
13
14
|
import { decodeAddressHook } from '@agoric/cosmic-proto/address-hooks.js';
|
|
14
15
|
|
|
16
|
+
const MsgSend = CodecHelper(MsgSendType);
|
|
17
|
+
|
|
15
18
|
const { Vow$ } = NetworkShape;
|
|
16
19
|
|
|
17
20
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localchain-test.d.ts","sourceRoot":"","sources":["localchain-test.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"localchain-test.d.ts","sourceRoot":"","sources":["localchain-test.js"],"names":[],"mappings":"AAmBO,iFARI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,UAAU,EAAE,OAAO,kBAAkB,EAAE,UAAU,CAAC;KACnD,CAAC;CACH,mCAED;IAA4C,OAAO,EAA3C;QAAE,cAAc,EAAE,MAAM,CAAA;KAAE;CACpC,iBAmHA;AAEM;;;;QAEH,CAAC,cAAc,CAAC,IAAI,CAAC;;;;;;;;;UASpB;;;;;EAKH"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
import { Far } from '@endo/far';
|
|
3
3
|
import { heapVowE as E } from '@agoric/vow/vat.js';
|
|
4
|
-
import {
|
|
4
|
+
import { CodecHelper } from '@agoric/cosmic-proto';
|
|
5
|
+
import { QueryAllBalancesRequest as QueryAllBalancesRequestType } from '@agoric/cosmic-proto/cosmos/bank/v1beta1/query.js';
|
|
6
|
+
import { MsgSend as MsgSendType } from '@agoric/cosmic-proto/cosmos/bank/v1beta1/tx.js';
|
|
7
|
+
|
|
8
|
+
const MsgSend = CodecHelper(MsgSendType);
|
|
9
|
+
const QueryAllBalancesRequest = CodecHelper(QueryAllBalancesRequestType);
|
|
5
10
|
|
|
6
11
|
/**
|
|
7
12
|
* @param {BootstrapPowers & {
|
|
@@ -42,7 +47,7 @@ export const testLocalChain = async (
|
|
|
42
47
|
receiverAddress,
|
|
43
48
|
});
|
|
44
49
|
|
|
45
|
-
const queryMsg = typedJson(
|
|
50
|
+
const queryMsg = QueryAllBalancesRequest.typedJson({
|
|
46
51
|
address: receiverAddress,
|
|
47
52
|
});
|
|
48
53
|
const balances = await E(localchain).query(queryMsg);
|
|
@@ -50,7 +55,7 @@ export const testLocalChain = async (
|
|
|
50
55
|
|
|
51
56
|
await E(lcaReceiver)
|
|
52
57
|
.executeTx([
|
|
53
|
-
typedJson(
|
|
58
|
+
MsgSend.typedJson({
|
|
54
59
|
fromAddress: receiverAddress,
|
|
55
60
|
toAddress: receiverAddress,
|
|
56
61
|
amount: [{ denom: 'ucosm', amount: '1' }],
|
|
@@ -92,7 +97,7 @@ export const testLocalChain = async (
|
|
|
92
97
|
try {
|
|
93
98
|
console.info('=== localchain test sendTo called');
|
|
94
99
|
const execResult = await E(lcaSender).executeTx([
|
|
95
|
-
typedJson(
|
|
100
|
+
MsgSend.typedJson({
|
|
96
101
|
fromAddress: senderAddress,
|
|
97
102
|
toAddress,
|
|
98
103
|
amount,
|