@agoric/cosmos
Advanced tools
Comparing version 0.34.2-dev-3fd7a2b.0 to 0.34.2-dev-40ad937.0
@@ -1,1 +0,1 @@ | ||
3fd7a2b | ||
40ad937 |
{ | ||
"name": "@agoric/cosmos", | ||
"version": "0.34.2-dev-3fd7a2b.0+3fd7a2b", | ||
"version": "0.34.2-dev-40ad937.0+40ad937", | ||
"description": "Connect JS to the Cosmos blockchain SDK", | ||
@@ -8,6 +8,7 @@ "parsers": { | ||
}, | ||
"main": "src/index.cjs", | ||
"main": "index.cjs", | ||
"engines": { | ||
"node": ">=14.15.0" | ||
"node": "^18.12 || ^20.9" | ||
}, | ||
"packageManager": "yarn@1.22.22", | ||
"scripts": { | ||
@@ -42,3 +43,3 @@ "test": "exit 0", | ||
}, | ||
"gitHead": "3fd7a2bef942ddcce5233c87116d6ef7e1220f6d" | ||
"gitHead": "40ad93703d6b4a87ce1f5eb43006afc0ddafdc50" | ||
} |
@@ -40,9 +40,7 @@ # Virtual Storage | ||
A blockchain node may be interrogated by RPC using `agd [--node $url] query vstorage $command` via [client/cli](./client/cli/query.go). | ||
* `children [--height $blockHeight] [-o {text,json}] [$path]` | ||
* `data [--height $blockHeight] [-o {text,json}] $path` | ||
A blockchain node may be interrogated by RPC using `agd [--node $url] query vstorage path` via [client/cli](./client/cli/query.go). (See command help for options and variants `data` and `children`.) | ||
Examples: | ||
```sh | ||
$ agd --node https://main.rpc.agoric.net:443/ query vstorage children published.reserve | ||
$ agd --node https://main.rpc.agoric.net:443/ query vstorage path published.reserve. | ||
children: | ||
@@ -53,6 +51,6 @@ - governance | ||
$ agd --node https://main.rpc.agoric.net:443/ query vstorage children -o json published.reserve | ||
$ agd --node https://main.rpc.agoric.net:443/ query vstorage path -o json published.reserve. | ||
{"children":["governance","metrics"],"pagination":null} | ||
$ agd --node https://main.rpc.agoric.net:443/ query vstorage data published.reserve.metrics | ||
$ agd --node https://main.rpc.agoric.net:443/ query vstorage path published.reserve.metrics | ||
value: '{"blockHeight":"11030240","values":["{\"body\":\"#{\\\"allocations\\\":{\\\"Fee\\\":{\\\"brand\\\":\\\"$0.Alleged: | ||
@@ -73,2 +71,47 @@ IST brand\\\",\\\"value\\\":\\\"+20053582387\\\"}},\\\"shortfallBalance\\\":{\\\"brand\\\":\\\"$0\\\",\\\"value\\\":\\\"+0\\\"},\\\"totalFeeBurned\\\":{\\\"brand\\\":\\\"$0\\\",\\\"value\\\":\\\"+0\\\"},\\\"totalFeeMinted\\\":{\\\"brand\\\":\\\"$0\\\",\\\"value\\\":\\\"+0\\\"}}\",\"slots\":[\"board0257\"]}"]}' | ||
Example: | ||
```sh | ||
$ curl -sS 'https://main.rpc.agoric.net/' -H 'Content-Type: application/json' -X POST --data "$( | ||
jq -n --arg queryChildrenRequestHex 0a147075626c69736865642e636f6d6d697474656573 '{ | ||
id: 1, | ||
method: "abci_query", | ||
params: { path: "/agoric.vstorage.Query/Children", data: $queryChildrenRequestHex } | ||
}' | \ | ||
tee /dev/stderr \ | ||
)" | \ | ||
jq . | \ | ||
tee /dev/stderr | \ | ||
jq -r '.result.response.value' | \ | ||
base64 -d | \ | ||
protoc -I golang/cosmos/proto/agoric/vstorage/ -I golang/cosmos/third_party/proto/ \ | ||
--decode=agoric.vstorage.QueryChildrenResponse golang/cosmos/proto/agoric/vstorage/query.proto | ||
{ | ||
"id": 1, | ||
"method": "abci_query", | ||
"params": { | ||
"path": "/agoric.vstorage.Query/Children", | ||
"data": "0a147075626c69736865642e636f6d6d697474656573" | ||
} | ||
} | ||
{ | ||
"jsonrpc": "2.0", | ||
"id": 1, | ||
"result": { | ||
"response": { | ||
"code": 0, | ||
"log": "", | ||
"info": "", | ||
"index": "0", | ||
"key": null, | ||
"value": "ChJFY29ub21pY19Db21taXR0ZWUKCWtyZWFkLWdvdg==", | ||
"proofOps": null, | ||
"height": "12222836", | ||
"codespace": "" | ||
} | ||
} | ||
} | ||
children: "Economic_Committee" | ||
children: "kread-gov" | ||
``` | ||
## External JSON interface | ||
@@ -75,0 +118,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1621932
229