-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathtx.proto
110 lines (85 loc) · 3.89 KB
/
tx.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
syntax = "proto3";
package babylon.epoching.v1;
import "gogoproto/gogo.proto";
import "cosmos/staking/v1beta1/tx.proto";
import "babylon/epoching/v1/params.proto";
import "cosmos_proto/cosmos.proto";
import "cosmos/msg/v1/msg.proto";
option go_package = "github.com/babylonlabs-io/babylon/x/epoching/types";
// Msg defines the Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;
// WrappedDelegate defines a method for performing a delegation of coins from
// a delegator to a validator.
rpc WrappedDelegate(MsgWrappedDelegate) returns (MsgWrappedDelegateResponse);
// WrappedUndelegate defines a method for performing an undelegation from a
// delegate and a validator.
rpc WrappedUndelegate(MsgWrappedUndelegate)
returns (MsgWrappedUndelegateResponse);
// WrappedBeginRedelegate defines a method for performing a redelegation of
// coins from a delegator and source validator to a destination validator.
rpc WrappedBeginRedelegate(MsgWrappedBeginRedelegate)
returns (MsgWrappedBeginRedelegateResponse);
// WrappedCancelUnbondingDelegation defines a method for cancelling unbonding of
// coins from a delegator and source validator to a destination validator.
rpc WrappedCancelUnbondingDelegation(MsgWrappedCancelUnbondingDelegation)
returns (MsgWrappedCancelUnbondingDelegationResponse);
// UpdateParams defines a method for updating epoching module parameters.
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
}
// MsgWrappedDelegate is the message for delegating stakes
message MsgWrappedDelegate {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (cosmos.msg.v1.signer) = "msg";
cosmos.staking.v1beta1.MsgDelegate msg = 1;
}
// MsgWrappedDelegate is the response to the MsgWrappedDelegate message
message MsgWrappedDelegateResponse {}
// MsgWrappedUndelegate is the message for undelegating stakes
message MsgWrappedUndelegate {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (cosmos.msg.v1.signer) = "msg";
cosmos.staking.v1beta1.MsgUndelegate msg = 1;
}
// MsgWrappedUndelegateResponse is the response to the MsgWrappedUndelegate
// message
message MsgWrappedUndelegateResponse {}
// MsgWrappedDelegate is the message for moving bonded stakes from a
// validator to another validator
message MsgWrappedBeginRedelegate {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (cosmos.msg.v1.signer) = "msg";
cosmos.staking.v1beta1.MsgBeginRedelegate msg = 1;
}
// MsgWrappedBeginRedelegateResponse is the response to the
// MsgWrappedBeginRedelegate message
message MsgWrappedBeginRedelegateResponse {}
// MsgWrappedCancelUnbondingDelegation is the message for cancelling
// an unbonding delegation
message MsgWrappedCancelUnbondingDelegation {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (cosmos.msg.v1.signer) = "msg";
cosmos.staking.v1beta1.MsgCancelUnbondingDelegation msg = 1;
}
// MsgWrappedCancelUnbondingDelegationResponse is the response to the
// MsgWrappedCancelUnbondingDelegation message
message MsgWrappedCancelUnbondingDelegationResponse {}
// MsgUpdateParams defines a message for updating epoching module parameters.
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
// authority is the address of the governance account.
// just FYI: cosmos.AddressString marks that this field should use type alias
// for AddressString instead of string, but the functionality is not yet implemented
// in cosmos-proto
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// params defines the epoching parameters to update.
//
// NOTE: All parameters must be supplied.
Params params = 2 [(gogoproto.nullable) = false];
}
// MsgUpdateParamsResponse is the response to the MsgUpdateParams message.
message MsgUpdateParamsResponse {}