2025-01-07 09:23:01 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package zgc.wrappeda0gibase;
|
|
|
|
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "google/protobuf/any.proto";
|
|
|
|
|
|
|
|
option go_package = "github.com/0glabs/0g-chain/x/wrapped-a0gi-base/types";
|
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
|
|
|
|
// Msg defines the wrapped a0gi base Msg service
|
|
|
|
service Msg {
|
|
|
|
rpc SetWA0GI(MsgSetWA0GI) returns (MsgSetWA0GIResponse);
|
|
|
|
rpc SetMinterCap(MsgSetMintCap) returns (MsgSetMintCapResponse);
|
|
|
|
rpc Mint(MsgMint) returns (MsgMintResponse);
|
|
|
|
rpc Burn(MsgBurn) returns (MsgBurnResponse);
|
|
|
|
}
|
|
|
|
|
|
|
|
message MsgSetWA0GI {
|
|
|
|
string authority = 1;
|
2025-01-08 04:58:14 +00:00
|
|
|
bytes address = 2;
|
2025-01-07 09:23:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message MsgSetWA0GIResponse {}
|
|
|
|
|
|
|
|
message MsgSetMintCap {
|
|
|
|
string authority = 1;
|
2025-01-08 04:58:14 +00:00
|
|
|
bytes minter = 2;
|
|
|
|
bytes cap = 3; // big endian
|
2025-01-07 09:23:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message MsgSetMintCapResponse {}
|
|
|
|
|
|
|
|
message MsgMint {
|
2025-01-08 04:58:14 +00:00
|
|
|
bytes minter = 1;
|
2025-01-08 05:45:12 +00:00
|
|
|
bytes amount = 2; // big endian
|
2025-01-07 09:23:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message MsgMintResponse {}
|
|
|
|
|
|
|
|
message MsgBurn {
|
2025-01-08 04:58:14 +00:00
|
|
|
bytes minter = 1;
|
|
|
|
bytes amount = 2; // big endian
|
2025-01-07 09:23:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message MsgBurnResponse {}
|