Skip to content

Commit

Permalink
chore: revert changes in tx.proto in randomness
Browse files Browse the repository at this point in the history
  • Loading branch information
jim380 committed Jan 31, 2024
1 parent 23bddf4 commit 387d4f3
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 33 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ lint:
###############################################################################
### Protobuf ###
###############################################################################
protoVer=0.14.0
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName)

proto-all: proto-gen proto-format proto-lint

Expand All @@ -157,7 +160,8 @@ proto-dep-install:

proto-gen:
@echo "Generating Protobuf files"
@./scripts/proto_gen.sh
@$(protoImage) sh ./scripts/proto_gen.sh
@go mod tidy

proto-fmt:
@echo "Formatting Protobuf files"
Expand Down
15 changes: 9 additions & 6 deletions proto/sedachain/randomness/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ import "cosmos/msg/v1/msg.proto";

option go_package = "github.com/sedaprotocol/seda-chain/x/randomness/types";

service Msg { rpc NewSeed(MsgNewSeed) returns (MsgNewSeedResponse); }
service Msg {
rpc NewSeed(MsgNewSeed)
returns (MsgNewSeedResponse);
}

message MsgNewSeed {
option (cosmos.msg.v1.signer) = "proposer";

string proposer = 1;
string pi = 2; // VRF proof
option (cosmos.msg.v1.signer) = "prover";
string prover = 1; // address of VRF key used to produce proof
string pi = 2; // VRF proof
string beta = 3; // VRF hash
}

message MsgNewSeedResponse {}
message MsgNewSeedResponse {}
52 changes: 26 additions & 26 deletions x/randomness/types/tx.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 387d4f3

Please sign in to comment.