@agoric/cosmos 0.34.2-dev-03b6420.0 → 0.34.2-dev-f1638f9.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
- 03b6420
1
+ f1638f9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/cosmos",
3
- "version": "0.34.2-dev-03b6420.0+03b6420",
3
+ "version": "0.34.2-dev-f1638f9.0+f1638f9",
4
4
  "description": "Connect JS to the Cosmos blockchain SDK",
5
5
  "parsers": {
6
6
  "js": "mjs"
@@ -39,5 +39,5 @@
39
39
  "typeCoverage": {
40
40
  "atLeast": 0
41
41
  },
42
- "gitHead": "03b6420649be77d010bc783efc5aaee5c7ed45e7"
42
+ "gitHead": "f1638f95424a0f3851e6e1d880c2a38dd14eca3d"
43
43
  }
@@ -3,12 +3,12 @@
3
3
  set -eo pipefail
4
4
 
5
5
  protoc_gen_gocosmos() {
6
- if ! grep "github.com/gogo/protobuf => github.com/regen-network/protobuf" go.mod &>/dev/null ; then
6
+ if ! grep "github.com/gogo/protobuf => github.com/regen-network/protobuf" go.mod &> /dev/null; then
7
7
  echo -e "\tPlease run this command from somewhere inside the ibc-go folder."
8
8
  return 1
9
9
  fi
10
10
 
11
- go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos@latest 2>/dev/null
11
+ go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos@latest 2> /dev/null
12
12
  }
13
13
 
14
14
  protoc_gen_gocosmos
@@ -19,12 +19,11 @@ for dir in $proto_dirs; do
19
19
  # allow_colon_final_segments=true
20
20
  # as per https://grpc-ecosystem.github.io/grpc-gateway/docs/development/grpc-gateway_v2_migration_guide/#withlastmatchwins-and-allow_colon_final_segmentstrue-is-now-default-behaviour
21
21
  protoc \
22
- -I proto \
23
- -I third_party/proto \
24
- --gocosmos_out=plugins=grpc,\
25
- Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types:. \
26
- --grpc-gateway_out=logtostderr=true,allow_colon_final_segments=true:. \
27
- $(find "${dir}" -maxdepth 1 -name '*.proto')
22
+ -I proto \
23
+ -I third_party/proto \
24
+ --gocosmos_out=plugins=grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types:. \
25
+ --grpc-gateway_out=logtostderr=true,allow_colon_final_segments=true:. \
26
+ $(find "${dir}" -maxdepth 1 -name '*.proto')
28
27
  done
29
28
 
30
29
  # move proto files to the right places
package/upgradegaia.sh CHANGED
@@ -8,8 +8,8 @@
8
8
  set -ueo pipefail
9
9
 
10
10
  test $# -eq 2 || {
11
- echo "Usage: $0 <FROM_BRANCH> <TO_BRANCH>" 1>&2
12
- exit 1
11
+ echo "Usage: $0 <FROM_BRANCH> <TO_BRANCH>" 1>&2
12
+ exit 1
13
13
  }
14
14
 
15
15
  FROM_BRANCH="$1"
@@ -23,8 +23,8 @@ for tag in "$FROM_BRANCH" "$TO_BRANCH"; do
23
23
  qtag=${tag//\//_}
24
24
  for root in Makefile app cmd/gaiad; do
25
25
  case "$root" in
26
- Makefile) echo "$root" ;;
27
- *) git ls-tree --name-only --full-tree -r "$tag:$root" | sed -e "s!^!$root/!" ;;
26
+ Makefile) echo "$root" ;;
27
+ *) git ls-tree --name-only --full-tree -r "$tag:$root" | sed -e "s!^!$root/!" ;;
28
28
  esac
29
29
  done | while read -r src; do
30
30
  # echo "$src"
@@ -36,12 +36,12 @@ for tag in "$FROM_BRANCH" "$TO_BRANCH"; do
36
36
  done
37
37
 
38
38
  echo "Compute 3-way diffs between Gaia and us"
39
- (cd "$tmp/${FROM_BRANCH//\//_}" && find . -type f -print) | \
40
- while read -r src; do
39
+ (cd "$tmp/${FROM_BRANCH//\//_}" && find . -type f -print) \
40
+ | while read -r src; do
41
41
  # echo "$src"
42
42
  case "$src" in
43
- ./cmd/gaiad/*) our=${src//cmd\/gaiad/daemon} ;;
44
- *) our=$src ;;
43
+ ./cmd/gaiad/*) our=${src//cmd\/gaiad/daemon} ;;
44
+ *) our=$src ;;
45
45
  esac
46
46
 
47
47
  new="$tmp/diff3/$our"