Skip to content

Commit

Permalink
Make sure all protos have their amino type
Browse files Browse the repository at this point in the history
  • Loading branch information
Segfaultd committed Feb 20, 2024
1 parent 808aad2 commit 0389abe
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 93 deletions.
26 changes: 26 additions & 0 deletions proto/lum/network/millions/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ syntax = "proto3";
package lum.network.millions;

import "gogoproto/gogo.proto";
import "amino/amino.proto";

import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";

Expand All @@ -28,6 +30,8 @@ service Msg {
}

message MsgUpdateParams {
option (amino.name) = "lum-network/millions/MsgUpdateParams";

string min_deposit_amount = 1 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int",
(gogoproto.nullable) = true
Expand Down Expand Up @@ -58,6 +62,8 @@ message MsgUpdateParams {
message MsgUpdateParamsResponse {}

message MsgRegisterPool {
option (amino.name) = "lum-network/millions/MsgRegisterPool";

string chain_id = 1;
string denom = 2;
string native_denom = 3;
Expand All @@ -78,6 +84,8 @@ message MsgRegisterPool {
message MsgRegisterPoolResponse { uint64 pool_id = 1; }

message MsgUpdatePool {
option (amino.name) = "lum-network/millions/MsgUpdatePool";

uint64 pool_id = 1;
repeated string validators = 2 [ (gogoproto.nullable) = true ];
string min_deposit_amount = 3 [
Expand All @@ -92,6 +100,8 @@ message MsgUpdatePool {
message MsgUpdatePoolResponse {}

message MsgDeposit {
option (amino.name) = "lum-network/millions/MsgPool";

uint64 pool_id = 1;
cosmos.base.v1beta1.Coin amount = 2 [ (gogoproto.nullable) = false ];
string depositor_address = 3
Expand All @@ -103,13 +113,17 @@ message MsgDeposit {
message MsgDepositResponse { uint64 deposit_id = 1; }

message MsgDepositRetry {
option (amino.name) = "lum-network/millions/MsgDepositRetry";

uint64 pool_id = 1;
uint64 deposit_id = 2;
string depositor_address = 3
[ (cosmos_proto.scalar) = "cosmos.AddressString" ];
}

message MsgDepositEdit {
option (amino.name) = "lum-network/millions/MsgDepositEdit";

uint64 pool_id = 1;
uint64 deposit_id = 2;
string winner_address = 3 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
Expand All @@ -123,6 +137,8 @@ message MsgDepositEditResponse {}
message MsgDepositRetryResponse {}

message MsgClaimPrize {
option (amino.name) = "lum-network/millions/MsgClaimPrize";

uint64 pool_id = 1;
uint64 draw_id = 2;
uint64 prize_id = 3;
Expand All @@ -132,6 +148,8 @@ message MsgClaimPrize {
message MsgClaimPrizeResponse {}

message MsgWithdrawDeposit {
option (amino.name) = "lum-network/millions/MsgWithdrawDeposit";

uint64 pool_id = 1;
uint64 deposit_id = 2;
string depositor_address = 3
Expand All @@ -142,6 +160,8 @@ message MsgWithdrawDeposit {
message MsgWithdrawDepositResponse { uint64 withdrawal_id = 1; }

message MsgWithdrawDepositRetry {
option (amino.name) = "lum-network/millions/MsgWithdrawDepositRetry";

uint64 pool_id = 1;
uint64 withdrawal_id = 2;
string depositor_address = 3
Expand All @@ -151,6 +171,8 @@ message MsgWithdrawDepositRetry {
message MsgWithdrawDepositRetryResponse {}

message MsgDrawRetry {
option (amino.name) = "lum-network/millions/MsgRetry";

uint64 pool_id = 1;
uint64 draw_id = 2;
string draw_retry_address = 3
Expand All @@ -160,6 +182,8 @@ message MsgDrawRetry {
message MsgDrawRetryResponse {}

message MsgRestoreInterchainAccounts {
option (amino.name) = "lum-network/millions/MsgRestoreInterchainAccounts";

uint64 pool_id = 1;
string restorer_address = 2
[ (cosmos_proto.scalar) = "cosmos.AddressString" ];
Expand All @@ -168,6 +192,8 @@ message MsgRestoreInterchainAccounts {
message MsgRestoreInterchainAccountsResponse {}

message MsgGenerateSeed {
option (amino.name) = "lum-network/millions/MsgGenerateSeed";

string requester_address = 1
[ (cosmos_proto.scalar) = "cosmos.AddressString" ];
}
Expand Down
Loading

0 comments on commit 0389abe

Please sign in to comment.