@agoric/cosmos 0.34.2-dev-65d19fe.0 → 0.34.2-dev-accf269.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/git-revision.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
accf269
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmos",
|
|
3
|
-
"version": "0.34.2-dev-
|
|
3
|
+
"version": "0.34.2-dev-accf269.0+accf269",
|
|
4
4
|
"description": "Connect JS to the Cosmos blockchain SDK",
|
|
5
5
|
"parsers": {
|
|
6
6
|
"js": "mjs"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"typeCoverage": {
|
|
39
39
|
"atLeast": 0
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "accf269881172476c07506de498adb204637884b"
|
|
42
42
|
}
|
|
@@ -45,7 +45,7 @@ func (h portHandler) Receive(cctx context.Context, str string) (ret string, err
|
|
|
45
45
|
}
|
|
46
46
|
ret = string(bz)
|
|
47
47
|
|
|
48
|
-
case "
|
|
48
|
+
case "VLOCALCHAIN_QUERY_MANY":
|
|
49
49
|
// Copy the JSON messages string into a CosmosTx object so we can
|
|
50
50
|
// deserialize it with just proto3 JSON.
|
|
51
51
|
cosmosTxBz := []byte(`{"messages":` + string(msg.Messages) + `}`)
|
|
@@ -180,7 +180,7 @@ func TestQuery(t *testing.T) {
|
|
|
180
180
|
tc := tc
|
|
181
181
|
ctx := sdk.UnwrapSDKContext(cctx)
|
|
182
182
|
t.Run(tc.name, func(t *testing.T) {
|
|
183
|
-
msgGetBalances := `{"type":"
|
|
183
|
+
msgGetBalances := `{"type":"VLOCALCHAIN_QUERY_MANY","messages":[{"@type":"/cosmos.bank.v1beta1.QueryAllBalancesRequest","address":"` + tc.addr + `"}]}`
|
|
184
184
|
t.Logf("query request: %v", msgGetBalances)
|
|
185
185
|
ret, err := handler.Receive(cctx, msgGetBalances)
|
|
186
186
|
t.Logf("query response: %v", ret)
|