-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(batcher): batch message request
- Loading branch information
Showing
20 changed files
with
2,476 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
syntax = "proto3"; | ||
package axelar.batcher.v1beta1; | ||
|
||
option go_package = "github.com/axelarnetwork/axelar-core/x/batcher/types"; | ||
option (gogoproto.messagename_all) = true; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
message FailedMessages { | ||
message FailedMessage { | ||
int32 index = 1; | ||
string error = 2; | ||
} | ||
repeated FailedMessage messages = 1 [ (gogoproto.nullable) = false, (gogoproto.jsontag) = "messages,omitempty" ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
syntax = "proto3"; | ||
package axelar.batcher.v1beta1; | ||
|
||
option go_package = "github.com/axelarnetwork/axelar-core/x/batcher/types"; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option (gogoproto.goproto_getters_all) = false; | ||
|
||
// GenesisState represents the genesis state | ||
message GenesisState {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
syntax = "proto3"; | ||
package axelar.batcher.v1beta1; | ||
|
||
option go_package = "github.com/axelarnetwork/axelar-core/x/batcher/types"; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "google/api/annotations.proto"; | ||
import "axelar/batcher/v1beta1/tx.proto"; | ||
|
||
option (gogoproto.goproto_registration) = true; | ||
|
||
// Msg defines the nexus Msg service. | ||
service MsgService { | ||
rpc Batch(BatchRequest) returns (BatchResponse) { | ||
option (google.api.http) = { | ||
post : "/axelar/batcher/batch" | ||
body : "*" | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
syntax = "proto3"; | ||
package axelar.batcher.v1beta1; | ||
|
||
import "google/protobuf/any.proto"; | ||
import "gogoproto/gogo.proto"; | ||
|
||
import "axelar/permission/exported/v1beta1/types.proto"; | ||
|
||
option go_package = "github.com/axelarnetwork/axelar-core/x/batcher/types"; | ||
|
||
message BatchRequest { | ||
option (permission.exported.v1beta1.permission_role) = ROLE_UNRESTRICTED; | ||
|
||
bytes sender = 1 [ (gogoproto.casttype) = | ||
"github.com/cosmos/cosmos-sdk/types.AccAddress" ]; | ||
repeated google.protobuf.Any must_succeed_messages = 2 | ||
[ (gogoproto.nullable) = false ]; | ||
repeated google.protobuf.Any can_fail_messages = 3 | ||
[ (gogoproto.nullable) = false ]; | ||
} | ||
|
||
message BatchResponse {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.