mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 07:45:18 +00:00
0c02c27a9d
* feat: use gov to manage dasigners params * feat: evm precompile query func * test: unit test * feat: remove epoch and block height hard check * feat: add params event
48 lines
1.1 KiB
Protocol Buffer
48 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
package zgc.dasigners.v1;
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "gogoproto/gogo.proto";
|
|
import "google/protobuf/any.proto";
|
|
import "zgc/dasigners/v1/dasigners.proto";
|
|
import "zgc/dasigners/v1/genesis.proto";
|
|
|
|
option go_package = "github.com/0glabs/0g-chain/x/dasigners/v1/types";
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
// Msg defines the dasigners Msg service
|
|
service Msg {
|
|
rpc ChangeParams(MsgChangeParams) returns (MsgChangeParamsResponse);
|
|
rpc RegisterSigner(MsgRegisterSigner) returns (MsgRegisterSignerResponse);
|
|
rpc UpdateSocket(MsgUpdateSocket) returns (MsgUpdateSocketResponse);
|
|
rpc RegisterNextEpoch(MsgRegisterNextEpoch) returns (MsgRegisterNextEpochResponse);
|
|
}
|
|
|
|
message MsgChangeParams {
|
|
string authority = 1;
|
|
Params params = 2;
|
|
}
|
|
|
|
message MsgChangeParamsResponse {}
|
|
|
|
message MsgRegisterSigner {
|
|
Signer signer = 1;
|
|
bytes signature = 2;
|
|
}
|
|
|
|
message MsgRegisterSignerResponse {}
|
|
|
|
message MsgUpdateSocket {
|
|
string account = 1;
|
|
string socket = 2;
|
|
}
|
|
|
|
message MsgUpdateSocketResponse {}
|
|
|
|
message MsgRegisterNextEpoch {
|
|
string account = 1;
|
|
bytes signature = 2;
|
|
}
|
|
|
|
message MsgRegisterNextEpochResponse {}
|