Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
4 contributors

Users who have contributed to this file

@johnnynanjiang @leoneparise @hewigovens @vikmeup
91 lines (77 sloc) 1.98 KB
syntax = "proto3";
package TW.Cosmos.Proto;
option java_package = "wallet.core.jni.proto";
// Amount
message Amount {
string denom = 1;
int64 amount = 2;
}
// Fee
message Fee {
repeated Amount amounts = 1;
uint64 gas = 2;
}
// Message for sending coins.
message SendCoinsMessage {
string from_address = 1;
string to_address = 2;
repeated Amount amounts = 3;
// default is cosmos-sdk/MsgSend
string type_prefix = 4;
}
// Message for staking.
message StakeMessage {
string delegator_address = 1;
string validator_address = 2;
Amount amount = 3;
// cosmos-sdk/MsgDelegate to stake and cosmos-sdk/MsgUndelegate to unstake
string type_prefix = 4;
}
// Message for staking.
message WithdrawStakeRewardMessage {
string delegator_address = 1;
string validator_address = 2;
// default is cosmos-sdk/MsgWithdrawDelegationReward
string type_prefix = 3;
}
// Signature
message Signature {
bytes public_key = 1;
bytes signature = 2;
}
// Transaction
message Transaction {
Fee fee = 1;
string memo = 2;
Signature signature = 3;
oneof message_oneof {
SendCoinsMessage send_coins_message = 4;
StakeMessage stake_message = 5;
StakeMessage unstake_message = 6;
WithdrawStakeRewardMessage withdraw_stake_reward_message = 7;
}
}
// Input data necessary to create a signed order.
message SigningInput {
uint64 account_number = 1;
string chain_id = 2;
Fee fee = 3;
string memo = 4;
uint64 sequence = 5;
bytes private_key = 6;
oneof message_oneof {
SendCoinsMessage send_coins_message = 7;
StakeMessage stake_message = 8;
StakeMessage unstake_message = 9;
WithdrawStakeRewardMessage withdraw_stake_reward_message = 10;
}
// default is cosmos-sdk/MsgSend
string type_prefix = 11;
}
// Transaction signing output.
message SigningOutput {
// Signature
bytes signature = 1;
// Signed transaction in JSON.
string json = 2;
}
You can’t perform that action at this time.