@agoric/cosmos 0.34.2-dev-305b232.0 → 0.34.2-dev-55a0902.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/Makefile +5 -7
- package/git-revision.txt +1 -1
- package/package.json +2 -2
- package/scripts/protocgen.sh +11 -0
- package/third_party/proto/cosmos/base/query/v1beta1/pagination.proto +2 -0
- package/third_party/proto/cosmos/upgrade/v1beta1/upgrade.proto +2 -0
- package/third_party/proto/cosmos_proto/cosmos.proto +16 -0
- package/third_party/proto/ibc/core/channel/v1/channel.proto +15 -1
- package/third_party/proto/ibc/core/client/v1/client.proto +9 -6
package/Makefile
CHANGED
|
@@ -98,17 +98,12 @@ proto-lint: proto-tools
|
|
|
98
98
|
proto-check-breaking: proto-tools
|
|
99
99
|
${BIN}/buf breaking --against $(PR_TARGET_REPO)#branch=$(PR_TARGET_BRANCH),subdir=golang/cosmos
|
|
100
100
|
|
|
101
|
-
TMVER := $(shell go list -m all | sed -ne 's!^github\.com/tendermint/tendermint \(.*\)!\1!p')
|
|
102
|
-
COSMOSVER = $(shell go list -m all | sed -ne 's!^github\.com/cosmos/cosmos-sdk \(.*\)!\1!p')
|
|
103
|
-
IBCVER = 832044782f10
|
|
104
|
-
t:
|
|
105
|
-
echo "X$(COSMOSVER)X"
|
|
106
|
-
|
|
107
|
-
TM_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/tendermint/tendermint)/proto/tendermint
|
|
108
101
|
GOGO_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/gogo/protobuf)
|
|
109
102
|
IBC_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/ibc-go/v4)/proto/ibc/core
|
|
103
|
+
COSMOS_PROTO_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/regen-network/cosmos-proto)
|
|
110
104
|
COSMOS_SDK_PROTO_URL := file://$(shell go list -m -f '{{ .Dir }}' github.com/cosmos/cosmos-sdk)/proto/cosmos
|
|
111
105
|
|
|
106
|
+
COSMOS_PROTO_TYPES = third_party/proto/cosmos_proto
|
|
112
107
|
GOGO_PROTO_TYPES = third_party/proto/gogoproto
|
|
113
108
|
IBC_CHANNEL_TYPES = third_party/proto/ibc/core/channel/v1
|
|
114
109
|
IBC_CLIENT_TYPES = third_party/proto/ibc/core/client/v1
|
|
@@ -116,6 +111,9 @@ SDK_QUERY_TYPES = third_party/proto/cosmos/base/query/v1beta1
|
|
|
116
111
|
SDK_UPGRADE_TYPES = third_party/proto/cosmos/upgrade/v1beta1
|
|
117
112
|
|
|
118
113
|
proto-update-deps:
|
|
114
|
+
mkdir -p $(COSMOS_PROTO_TYPES)
|
|
115
|
+
curl -sSL $(COSMOS_PROTO_PROTO_URL)/cosmos.proto > $(COSMOS_PROTO_TYPES)/cosmos.proto
|
|
116
|
+
|
|
119
117
|
mkdir -p $(GOGO_PROTO_TYPES)
|
|
120
118
|
curl -sSL $(GOGO_PROTO_URL)/gogoproto/gogo.proto > $(GOGO_PROTO_TYPES)/gogo.proto
|
|
121
119
|
|
package/git-revision.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
55a0902
|
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-55a0902.0+55a0902",
|
|
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": "55a09026e240a75c7ea13c4d679302b8e0238d20"
|
|
42
42
|
}
|
package/scripts/protocgen.sh
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
set -eo pipefail
|
|
4
4
|
|
|
5
|
+
protoc_gen_gocosmos() {
|
|
6
|
+
if ! grep "github.com/gogo/protobuf => github.com/regen-network/protobuf" go.mod &>/dev/null ; then
|
|
7
|
+
echo -e "\tPlease run this command from somewhere inside the ibc-go folder."
|
|
8
|
+
return 1
|
|
9
|
+
fi
|
|
10
|
+
|
|
11
|
+
go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos@latest 2>/dev/null
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
protoc_gen_gocosmos
|
|
15
|
+
|
|
5
16
|
proto_dirs=$(find . -path ./third_party -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
|
|
6
17
|
for dir in $proto_dirs; do
|
|
7
18
|
# NOTE: when migrating to grpc-gateway v2, we will need to remove the
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
package cosmos_proto;
|
|
3
|
+
|
|
4
|
+
import "google/protobuf/descriptor.proto";
|
|
5
|
+
|
|
6
|
+
option go_package = "github.com/regen-network/cosmos-proto";
|
|
7
|
+
|
|
8
|
+
extend google.protobuf.MessageOptions {
|
|
9
|
+
string interface_type = 93001;
|
|
10
|
+
|
|
11
|
+
string implements_interface = 93002;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
extend google.protobuf.FieldOptions {
|
|
15
|
+
string accepts_interface = 93001;
|
|
16
|
+
}
|
|
@@ -2,7 +2,7 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package ibc.core.channel.v1;
|
|
4
4
|
|
|
5
|
-
option go_package = "github.com/cosmos/ibc-go/
|
|
5
|
+
option go_package = "github.com/cosmos/ibc-go/v4/modules/core/04-channel/types";
|
|
6
6
|
|
|
7
7
|
import "gogoproto/gogo.proto";
|
|
8
8
|
import "ibc/core/client/v1/client.proto";
|
|
@@ -132,6 +132,20 @@ message PacketState {
|
|
|
132
132
|
bytes data = 4;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
// PacketId is an identifer for a unique Packet
|
|
136
|
+
// Source chains refer to packets by source port/channel
|
|
137
|
+
// Destination chains refer to packets by destination port/channel
|
|
138
|
+
message PacketId {
|
|
139
|
+
option (gogoproto.goproto_getters) = false;
|
|
140
|
+
|
|
141
|
+
// channel port identifier
|
|
142
|
+
string port_id = 1 [(gogoproto.moretags) = "yaml:\"port_id\""];
|
|
143
|
+
// channel unique identifier
|
|
144
|
+
string channel_id = 2 [(gogoproto.moretags) = "yaml:\"channel_id\""];
|
|
145
|
+
// packet sequence
|
|
146
|
+
uint64 sequence = 3;
|
|
147
|
+
}
|
|
148
|
+
|
|
135
149
|
// Acknowledgement is the recommended acknowledgement format to be used by
|
|
136
150
|
// app-specific protocols.
|
|
137
151
|
// NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental
|
|
@@ -2,11 +2,12 @@ syntax = "proto3";
|
|
|
2
2
|
|
|
3
3
|
package ibc.core.client.v1;
|
|
4
4
|
|
|
5
|
-
option go_package = "github.com/cosmos/ibc-go/
|
|
5
|
+
option go_package = "github.com/cosmos/ibc-go/v4/modules/core/02-client/types";
|
|
6
6
|
|
|
7
7
|
import "gogoproto/gogo.proto";
|
|
8
8
|
import "google/protobuf/any.proto";
|
|
9
9
|
import "cosmos/upgrade/v1beta1/upgrade.proto";
|
|
10
|
+
import "cosmos_proto/cosmos.proto";
|
|
10
11
|
|
|
11
12
|
// IdentifiedClientState defines a client state with an additional client
|
|
12
13
|
// identifier field.
|
|
@@ -23,7 +24,7 @@ message ConsensusStateWithHeight {
|
|
|
23
24
|
// consensus state height
|
|
24
25
|
Height height = 1 [(gogoproto.nullable) = false];
|
|
25
26
|
// consensus state
|
|
26
|
-
google.protobuf.Any consensus_state = 2 [(gogoproto.moretags) = "yaml
|
|
27
|
+
google.protobuf.Any consensus_state = 2 [(gogoproto.moretags) = "yaml:\"consensus_state\""];
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
// ClientConsensusStates defines all the stored consensus states for a given
|
|
@@ -41,7 +42,8 @@ message ClientConsensusStates {
|
|
|
41
42
|
// handler may fail if the subject and the substitute do not match in client and
|
|
42
43
|
// chain parameters (with exception to latest height, frozen height, and chain-id).
|
|
43
44
|
message ClientUpdateProposal {
|
|
44
|
-
option (gogoproto.goproto_getters)
|
|
45
|
+
option (gogoproto.goproto_getters) = false;
|
|
46
|
+
option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content";
|
|
45
47
|
// the title of the update proposal
|
|
46
48
|
string title = 1;
|
|
47
49
|
// the description of the proposal
|
|
@@ -56,9 +58,10 @@ message ClientUpdateProposal {
|
|
|
56
58
|
// UpgradeProposal is a gov Content type for initiating an IBC breaking
|
|
57
59
|
// upgrade.
|
|
58
60
|
message UpgradeProposal {
|
|
59
|
-
option (gogoproto.goproto_getters)
|
|
60
|
-
option (gogoproto.goproto_stringer)
|
|
61
|
-
option (gogoproto.equal)
|
|
61
|
+
option (gogoproto.goproto_getters) = false;
|
|
62
|
+
option (gogoproto.goproto_stringer) = false;
|
|
63
|
+
option (gogoproto.equal) = true;
|
|
64
|
+
option (cosmos_proto.implements_interface) = "cosmos.gov.v1beta1.Content";
|
|
62
65
|
|
|
63
66
|
string title = 1;
|
|
64
67
|
string description = 2;
|