Skip to content

Commit

Permalink
use string instead of bytes for creator
Browse files Browse the repository at this point in the history
  • Loading branch information
Son of Odin committed Mar 11, 2024
1 parent a41a74f commit 8b8379f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
22 changes: 11 additions & 11 deletions proto/arkeo/arkeo/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ service Msg {
rpc SetVersion (MsgSetVersion) returns (MsgSetVersionResponse);
}
message MsgBondProvider {
bytes creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"] ;
bytes provider = 2 [(gogoproto.casttype) = "github.com/arkeonetwork/arkeo/common.PubKey" ] ;
string creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"] ;
string provider = 2 [(gogoproto.casttype) = "github.com/arkeonetwork/arkeo/common.PubKey" ] ;
string service = 3;
string bond = 4 [(cosmos_proto.scalar) = "cosmos.Int" , (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", (gogoproto.nullable) = false];
}

message MsgBondProviderResponse {}

message MsgModProvider {
bytes creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
bytes provider = 2 [(gogoproto.casttype) = "github.com/arkeonetwork/arkeo/common.PubKey" ];
string creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string provider = 2 [(gogoproto.casttype) = "github.com/arkeonetwork/arkeo/common.PubKey" ];
string service = 3;
string metadata_uri = 4;
uint64 metadata_nonce = 5;
Expand All @@ -46,11 +46,11 @@ message MsgModProvider {
message MsgModProviderResponse {}

message MsgOpenContract {
bytes creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"] ;
bytes provider = 2 [(gogoproto.casttype) = "github.com/arkeonetwork/arkeo/common.PubKey" ] ;
string creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"] ;
string provider = 2 [(gogoproto.casttype) = "github.com/arkeonetwork/arkeo/common.PubKey" ] ;
string service = 3;
bytes client = 4 [(gogoproto.casttype) = "github.com/arkeonetwork/arkeo/common.PubKey" ] ;
bytes delegate = 5 [(gogoproto.casttype) = "github.com/arkeonetwork/arkeo/common.PubKey" ] ;
string client = 4 [(gogoproto.casttype) = "github.com/arkeonetwork/arkeo/common.PubKey" ] ;
string delegate = 5 [(gogoproto.casttype) = "github.com/arkeonetwork/arkeo/common.PubKey" ] ;
ContractType contract_type = 6;
int64 duration = 7;
cosmos.base.v1beta1.Coin rate = 8 [(gogoproto.nullable) = false ] ;
Expand All @@ -63,14 +63,14 @@ message MsgOpenContract {
message MsgOpenContractResponse {}

message MsgCloseContract {
bytes creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
uint64 contract_id = 2;
}

message MsgCloseContractResponse {}

message MsgClaimContractIncome {
bytes creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
string creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"];
uint64 contract_id = 2;
bytes signature = 4;
int64 nonce = 5;
Expand All @@ -81,7 +81,7 @@ message MsgClaimContractIncomeResponse {}

// this line is used by starport scaffolding # proto/tx/message
message MsgSetVersion {
bytes creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"] ;
string creator = 1 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress"] ;
int64 version = 2;
}

Expand Down
10 changes: 5 additions & 5 deletions proto/arkeo/claim/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ service Msg {
// this line is used by starport scaffolding # proto/tx/rpc
}
message MsgClaimEth {
bytes creator = 1 [ (gogoproto.casttype) =
string creator = 1 [ (gogoproto.casttype) =
"github.com/cosmos/cosmos-sdk/types.AccAddress" ];
string eth_address = 2; // the adress the claim is for
string signature = 3; // EIP712 signature that has to be signed by ethAddress
Expand All @@ -23,23 +23,23 @@ message MsgClaimEth {
message MsgClaimEthResponse {}

message MsgClaimArkeo {
bytes creator = 1 [ (gogoproto.casttype) =
string creator = 1 [ (gogoproto.casttype) =
"github.com/cosmos/cosmos-sdk/types.AccAddress" ];
}

message MsgClaimArkeoResponse {}

message MsgTransferClaim {
bytes creator = 1 [ (gogoproto.casttype) =
string creator = 1 [ (gogoproto.casttype) =
"github.com/cosmos/cosmos-sdk/types.AccAddress" ];
bytes toAddress = 2 [ (gogoproto.casttype) =
string toAddress = 2 [ (gogoproto.casttype) =
"github.com/cosmos/cosmos-sdk/types.AccAddress" ];
}

message MsgTransferClaimResponse {}

message MsgAddClaim {
bytes creator = 1 [ (gogoproto.casttype) =
string creator = 1 [ (gogoproto.casttype) =
"github.com/cosmos/cosmos-sdk/types.AccAddress" ];
Chain chain = 2;
string address = 3;
Expand Down

0 comments on commit 8b8379f

Please sign in to comment.