Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterMsgHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error
- func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type ClawbackVestingAccount
- func (*ClawbackVestingAccount) Descriptor() ([]byte, []int)
- func (m *ClawbackVestingAccount) Marshal() (dAtA []byte, err error)
- func (m *ClawbackVestingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *ClawbackVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClawbackVestingAccount) ProtoMessage()
- func (m *ClawbackVestingAccount) Reset()
- func (m *ClawbackVestingAccount) Size() (n int)
- func (m *ClawbackVestingAccount) Unmarshal(dAtA []byte) error
- func (m *ClawbackVestingAccount) XXX_DiscardUnknown()
- func (m *ClawbackVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClawbackVestingAccount) XXX_Merge(src proto.Message)
- func (m *ClawbackVestingAccount) XXX_Size() int
- func (m *ClawbackVestingAccount) XXX_Unmarshal(b []byte) error
- type MsgClawback
- func (*MsgClawback) Descriptor() ([]byte, []int)
- func (m *MsgClawback) GetAccountAddress() string
- func (m *MsgClawback) GetDestAddress() string
- func (m *MsgClawback) GetFunderAddress() string
- func (m *MsgClawback) Marshal() (dAtA []byte, err error)
- func (m *MsgClawback) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClawback) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClawback) ProtoMessage()
- func (m *MsgClawback) Reset()
- func (m *MsgClawback) Size() (n int)
- func (m *MsgClawback) String() string
- func (m *MsgClawback) Unmarshal(dAtA []byte) error
- func (m *MsgClawback) XXX_DiscardUnknown()
- func (m *MsgClawback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClawback) XXX_Merge(src proto.Message)
- func (m *MsgClawback) XXX_Size() int
- func (m *MsgClawback) XXX_Unmarshal(b []byte) error
- type MsgClawbackResponse
- func (*MsgClawbackResponse) Descriptor() ([]byte, []int)
- func (m *MsgClawbackResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgClawbackResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgClawbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgClawbackResponse) ProtoMessage()
- func (m *MsgClawbackResponse) Reset()
- func (m *MsgClawbackResponse) Size() (n int)
- func (m *MsgClawbackResponse) String() string
- func (m *MsgClawbackResponse) Unmarshal(dAtA []byte) error
- func (m *MsgClawbackResponse) XXX_DiscardUnknown()
- func (m *MsgClawbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgClawbackResponse) XXX_Merge(src proto.Message)
- func (m *MsgClawbackResponse) XXX_Size() int
- func (m *MsgClawbackResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateClawbackVestingAccount
- func (*MsgCreateClawbackVestingAccount) Descriptor() ([]byte, []int)
- func (m *MsgCreateClawbackVestingAccount) GetFromAddress() string
- func (m *MsgCreateClawbackVestingAccount) GetLockupPeriods() github_com_reapchain_cosmos_sdk_x_auth_vesting_types.Periods
- func (m *MsgCreateClawbackVestingAccount) GetMerge() bool
- func (m *MsgCreateClawbackVestingAccount) GetStartTime() time.Time
- func (m *MsgCreateClawbackVestingAccount) GetToAddress() string
- func (m *MsgCreateClawbackVestingAccount) GetVestingPeriods() github_com_reapchain_cosmos_sdk_x_auth_vesting_types.Periods
- func (m *MsgCreateClawbackVestingAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateClawbackVestingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateClawbackVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateClawbackVestingAccount) ProtoMessage()
- func (m *MsgCreateClawbackVestingAccount) Reset()
- func (m *MsgCreateClawbackVestingAccount) Size() (n int)
- func (m *MsgCreateClawbackVestingAccount) String() string
- func (m *MsgCreateClawbackVestingAccount) Unmarshal(dAtA []byte) error
- func (m *MsgCreateClawbackVestingAccount) XXX_DiscardUnknown()
- func (m *MsgCreateClawbackVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateClawbackVestingAccount) XXX_Merge(src proto.Message)
- func (m *MsgCreateClawbackVestingAccount) XXX_Size() int
- func (m *MsgCreateClawbackVestingAccount) XXX_Unmarshal(b []byte) error
- type MsgCreateClawbackVestingAccountResponse
- func (*MsgCreateClawbackVestingAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateClawbackVestingAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateClawbackVestingAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateClawbackVestingAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateClawbackVestingAccountResponse) ProtoMessage()
- func (m *MsgCreateClawbackVestingAccountResponse) Reset()
- func (m *MsgCreateClawbackVestingAccountResponse) Size() (n int)
- func (m *MsgCreateClawbackVestingAccountResponse) String() string
- func (m *MsgCreateClawbackVestingAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateClawbackVestingAccountResponse) XXX_DiscardUnknown()
- func (m *MsgCreateClawbackVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateClawbackVestingAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateClawbackVestingAccountResponse) XXX_Size() int
- func (m *MsgCreateClawbackVestingAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryBalancesRequest
- func (*QueryBalancesRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalancesRequest) GetAddress() string
- func (m *QueryBalancesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesRequest) ProtoMessage()
- func (m *QueryBalancesRequest) Reset()
- func (m *QueryBalancesRequest) Size() (n int)
- func (m *QueryBalancesRequest) String() string
- func (m *QueryBalancesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesRequest) XXX_DiscardUnknown()
- func (m *QueryBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesRequest) XXX_Merge(src proto.Message)
- func (m *QueryBalancesRequest) XXX_Size() int
- func (m *QueryBalancesRequest) XXX_Unmarshal(b []byte) error
- type QueryBalancesResponse
- func (*QueryBalancesResponse) Descriptor() ([]byte, []int)
- func (m *QueryBalancesResponse) GetLocked() github_com_reapchain_cosmos_sdk_types.Coins
- func (m *QueryBalancesResponse) GetUnvested() github_com_reapchain_cosmos_sdk_types.Coins
- func (m *QueryBalancesResponse) GetVested() github_com_reapchain_cosmos_sdk_types.Coins
- func (m *QueryBalancesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesResponse) ProtoMessage()
- func (m *QueryBalancesResponse) Reset()
- func (m *QueryBalancesResponse) Size() (n int)
- func (m *QueryBalancesResponse) String() string
- func (m *QueryBalancesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesResponse) XXX_DiscardUnknown()
- func (m *QueryBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesResponse) XXX_Merge(src proto.Message)
- func (m *QueryBalancesResponse) XXX_Size() int
- func (m *QueryBalancesResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func RegisterMsgHandler ¶
RegisterMsgHandler registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMsgHandlerClient ¶
RegisterMsgHandlerClient registers the http handlers for service Msg to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MsgClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MsgClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MsgClient" to call the correct interceptors.
func RegisterMsgHandlerFromEndpoint ¶
func RegisterMsgHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterMsgHandlerFromEndpoint is same as RegisterMsgHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMsgHandlerServer ¶
RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMsgHandlerFromEndpoint instead.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type ClawbackVestingAccount ¶
type ClawbackVestingAccount struct { // base_vesting_account implements the VestingAccount interface. It contains // all the necessary fields needed for any vesting account implementation *types.BaseVestingAccount `` /* 147-byte string literal not displayed */ // funder_address specifies the account which can perform clawback FunderAddress string `protobuf:"bytes,2,opt,name=funder_address,json=funderAddress,proto3" json:"funder_address,omitempty"` // start_time defines the time at which the vesting period begins StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"` // lockup_periods defines the unlocking schedule relative to the start_time LockupPeriods github_com_reapchain_cosmos_sdk_x_auth_vesting_types.Periods `` /* 164-byte string literal not displayed */ // vesting_periods defines the vesting schedule relative to the start_time VestingPeriods github_com_reapchain_cosmos_sdk_x_auth_vesting_types.Periods `` /* 167-byte string literal not displayed */ }
ClawbackVestingAccount implements the VestingAccount interface. It provides an account that can hold contributions subject to "lockup" (like a PeriodicVestingAccount), or vesting which is subject to clawback of unvested tokens, or a combination (tokens vest, but are still locked).
func (*ClawbackVestingAccount) Descriptor ¶
func (*ClawbackVestingAccount) Descriptor() ([]byte, []int)
func (*ClawbackVestingAccount) Marshal ¶
func (m *ClawbackVestingAccount) Marshal() (dAtA []byte, err error)
func (*ClawbackVestingAccount) MarshalTo ¶
func (m *ClawbackVestingAccount) MarshalTo(dAtA []byte) (int, error)
func (*ClawbackVestingAccount) MarshalToSizedBuffer ¶
func (m *ClawbackVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClawbackVestingAccount) ProtoMessage ¶
func (*ClawbackVestingAccount) ProtoMessage()
func (*ClawbackVestingAccount) Reset ¶
func (m *ClawbackVestingAccount) Reset()
func (*ClawbackVestingAccount) Size ¶
func (m *ClawbackVestingAccount) Size() (n int)
func (*ClawbackVestingAccount) Unmarshal ¶
func (m *ClawbackVestingAccount) Unmarshal(dAtA []byte) error
func (*ClawbackVestingAccount) XXX_DiscardUnknown ¶
func (m *ClawbackVestingAccount) XXX_DiscardUnknown()
func (*ClawbackVestingAccount) XXX_Marshal ¶
func (m *ClawbackVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClawbackVestingAccount) XXX_Merge ¶
func (m *ClawbackVestingAccount) XXX_Merge(src proto.Message)
func (*ClawbackVestingAccount) XXX_Size ¶
func (m *ClawbackVestingAccount) XXX_Size() int
func (*ClawbackVestingAccount) XXX_Unmarshal ¶
func (m *ClawbackVestingAccount) XXX_Unmarshal(b []byte) error
type MsgClawback ¶
type MsgClawback struct { // funder_address is the address which funded the account FunderAddress string `protobuf:"bytes,1,opt,name=funder_address,json=funderAddress,proto3" json:"funder_address,omitempty"` // account_address is the address of the ClawbackVestingAccount to claw back // from. AccountAddress string `protobuf:"bytes,2,opt,name=account_address,json=accountAddress,proto3" json:"account_address,omitempty"` // dest_address specifies where the clawed-back tokens should be transferred // to. If empty, the tokens will be transferred back to the original funder of // the account. DestAddress string `protobuf:"bytes,3,opt,name=dest_address,json=destAddress,proto3" json:"dest_address,omitempty"` }
MsgClawback defines a message that removes unvested tokens from a ClawbackVestingAccount.
func (*MsgClawback) Descriptor ¶
func (*MsgClawback) Descriptor() ([]byte, []int)
func (*MsgClawback) GetAccountAddress ¶
func (m *MsgClawback) GetAccountAddress() string
func (*MsgClawback) GetDestAddress ¶
func (m *MsgClawback) GetDestAddress() string
func (*MsgClawback) GetFunderAddress ¶
func (m *MsgClawback) GetFunderAddress() string
func (*MsgClawback) Marshal ¶
func (m *MsgClawback) Marshal() (dAtA []byte, err error)
func (*MsgClawback) MarshalToSizedBuffer ¶
func (m *MsgClawback) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClawback) ProtoMessage ¶
func (*MsgClawback) ProtoMessage()
func (*MsgClawback) Reset ¶
func (m *MsgClawback) Reset()
func (*MsgClawback) Size ¶
func (m *MsgClawback) Size() (n int)
func (*MsgClawback) String ¶
func (m *MsgClawback) String() string
func (*MsgClawback) Unmarshal ¶
func (m *MsgClawback) Unmarshal(dAtA []byte) error
func (*MsgClawback) XXX_DiscardUnknown ¶
func (m *MsgClawback) XXX_DiscardUnknown()
func (*MsgClawback) XXX_Marshal ¶
func (m *MsgClawback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClawback) XXX_Merge ¶
func (m *MsgClawback) XXX_Merge(src proto.Message)
func (*MsgClawback) XXX_Size ¶
func (m *MsgClawback) XXX_Size() int
func (*MsgClawback) XXX_Unmarshal ¶
func (m *MsgClawback) XXX_Unmarshal(b []byte) error
type MsgClawbackResponse ¶
type MsgClawbackResponse struct { }
MsgClawbackResponse defines the MsgClawback response type.
func (*MsgClawbackResponse) Descriptor ¶
func (*MsgClawbackResponse) Descriptor() ([]byte, []int)
func (*MsgClawbackResponse) Marshal ¶
func (m *MsgClawbackResponse) Marshal() (dAtA []byte, err error)
func (*MsgClawbackResponse) MarshalTo ¶
func (m *MsgClawbackResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgClawbackResponse) MarshalToSizedBuffer ¶
func (m *MsgClawbackResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgClawbackResponse) ProtoMessage ¶
func (*MsgClawbackResponse) ProtoMessage()
func (*MsgClawbackResponse) Reset ¶
func (m *MsgClawbackResponse) Reset()
func (*MsgClawbackResponse) Size ¶
func (m *MsgClawbackResponse) Size() (n int)
func (*MsgClawbackResponse) String ¶
func (m *MsgClawbackResponse) String() string
func (*MsgClawbackResponse) Unmarshal ¶
func (m *MsgClawbackResponse) Unmarshal(dAtA []byte) error
func (*MsgClawbackResponse) XXX_DiscardUnknown ¶
func (m *MsgClawbackResponse) XXX_DiscardUnknown()
func (*MsgClawbackResponse) XXX_Marshal ¶
func (m *MsgClawbackResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgClawbackResponse) XXX_Merge ¶
func (m *MsgClawbackResponse) XXX_Merge(src proto.Message)
func (*MsgClawbackResponse) XXX_Size ¶
func (m *MsgClawbackResponse) XXX_Size() int
func (*MsgClawbackResponse) XXX_Unmarshal ¶
func (m *MsgClawbackResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // CreateClawbackVestingAccount creats a vesting account that is subject to // clawback and the configuration of vesting and lockup schedules. CreateClawbackVestingAccount(ctx context.Context, in *MsgCreateClawbackVestingAccount, opts ...grpc.CallOption) (*MsgCreateClawbackVestingAccountResponse, error) // Clawback removes the unvested tokens from a ClawbackVestingAccount. Clawback(ctx context.Context, in *MsgClawback, opts ...grpc.CallOption) (*MsgClawbackResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateClawbackVestingAccount ¶
type MsgCreateClawbackVestingAccount struct { // from_address specifies the account to provide the funds and sign the // clawback request FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` // to_address specifies the account to receive the funds ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` // start_time defines the time at which the vesting period begins StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"` // lockup_periods defines the unlocking schedule relative to the start_time LockupPeriods github_com_reapchain_cosmos_sdk_x_auth_vesting_types.Periods `` /* 164-byte string literal not displayed */ // vesting_periods defines thevesting schedule relative to the start_time VestingPeriods github_com_reapchain_cosmos_sdk_x_auth_vesting_types.Periods `` /* 167-byte string literal not displayed */ // merge specifies a the creation mechanism for existing // ClawbackVestingAccounts. If true, merge this new grant into an existing // ClawbackVestingAccount, or create it if it does not exist. If false, // creates a new account. New grants to an existing account must be from the // same from_address. Merge bool `protobuf:"varint,6,opt,name=merge,proto3" json:"merge,omitempty"` }
MsgCreateClawbackVestingAccount defines a message that enables creating a ClawbackVestingAccount.
func (*MsgCreateClawbackVestingAccount) Descriptor ¶
func (*MsgCreateClawbackVestingAccount) Descriptor() ([]byte, []int)
func (*MsgCreateClawbackVestingAccount) GetFromAddress ¶
func (m *MsgCreateClawbackVestingAccount) GetFromAddress() string
func (*MsgCreateClawbackVestingAccount) GetLockupPeriods ¶
func (m *MsgCreateClawbackVestingAccount) GetLockupPeriods() github_com_reapchain_cosmos_sdk_x_auth_vesting_types.Periods
func (*MsgCreateClawbackVestingAccount) GetMerge ¶
func (m *MsgCreateClawbackVestingAccount) GetMerge() bool
func (*MsgCreateClawbackVestingAccount) GetStartTime ¶
func (m *MsgCreateClawbackVestingAccount) GetStartTime() time.Time
func (*MsgCreateClawbackVestingAccount) GetToAddress ¶
func (m *MsgCreateClawbackVestingAccount) GetToAddress() string
func (*MsgCreateClawbackVestingAccount) GetVestingPeriods ¶
func (m *MsgCreateClawbackVestingAccount) GetVestingPeriods() github_com_reapchain_cosmos_sdk_x_auth_vesting_types.Periods
func (*MsgCreateClawbackVestingAccount) Marshal ¶
func (m *MsgCreateClawbackVestingAccount) Marshal() (dAtA []byte, err error)
func (*MsgCreateClawbackVestingAccount) MarshalTo ¶
func (m *MsgCreateClawbackVestingAccount) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateClawbackVestingAccount) MarshalToSizedBuffer ¶
func (m *MsgCreateClawbackVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateClawbackVestingAccount) ProtoMessage ¶
func (*MsgCreateClawbackVestingAccount) ProtoMessage()
func (*MsgCreateClawbackVestingAccount) Reset ¶
func (m *MsgCreateClawbackVestingAccount) Reset()
func (*MsgCreateClawbackVestingAccount) Size ¶
func (m *MsgCreateClawbackVestingAccount) Size() (n int)
func (*MsgCreateClawbackVestingAccount) String ¶
func (m *MsgCreateClawbackVestingAccount) String() string
func (*MsgCreateClawbackVestingAccount) Unmarshal ¶
func (m *MsgCreateClawbackVestingAccount) Unmarshal(dAtA []byte) error
func (*MsgCreateClawbackVestingAccount) XXX_DiscardUnknown ¶
func (m *MsgCreateClawbackVestingAccount) XXX_DiscardUnknown()
func (*MsgCreateClawbackVestingAccount) XXX_Marshal ¶
func (m *MsgCreateClawbackVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateClawbackVestingAccount) XXX_Merge ¶
func (m *MsgCreateClawbackVestingAccount) XXX_Merge(src proto.Message)
func (*MsgCreateClawbackVestingAccount) XXX_Size ¶
func (m *MsgCreateClawbackVestingAccount) XXX_Size() int
func (*MsgCreateClawbackVestingAccount) XXX_Unmarshal ¶
func (m *MsgCreateClawbackVestingAccount) XXX_Unmarshal(b []byte) error
type MsgCreateClawbackVestingAccountResponse ¶
type MsgCreateClawbackVestingAccountResponse struct { }
MsgCreateClawbackVestingAccountResponse defines the MsgCreateClawbackVestingAccount response type.
func (*MsgCreateClawbackVestingAccountResponse) Descriptor ¶
func (*MsgCreateClawbackVestingAccountResponse) Descriptor() ([]byte, []int)
func (*MsgCreateClawbackVestingAccountResponse) Marshal ¶
func (m *MsgCreateClawbackVestingAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateClawbackVestingAccountResponse) MarshalTo ¶
func (m *MsgCreateClawbackVestingAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateClawbackVestingAccountResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateClawbackVestingAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateClawbackVestingAccountResponse) ProtoMessage ¶
func (*MsgCreateClawbackVestingAccountResponse) ProtoMessage()
func (*MsgCreateClawbackVestingAccountResponse) Reset ¶
func (m *MsgCreateClawbackVestingAccountResponse) Reset()
func (*MsgCreateClawbackVestingAccountResponse) Size ¶
func (m *MsgCreateClawbackVestingAccountResponse) Size() (n int)
func (*MsgCreateClawbackVestingAccountResponse) String ¶
func (m *MsgCreateClawbackVestingAccountResponse) String() string
func (*MsgCreateClawbackVestingAccountResponse) Unmarshal ¶
func (m *MsgCreateClawbackVestingAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateClawbackVestingAccountResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateClawbackVestingAccountResponse) XXX_DiscardUnknown()
func (*MsgCreateClawbackVestingAccountResponse) XXX_Marshal ¶
func (m *MsgCreateClawbackVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateClawbackVestingAccountResponse) XXX_Merge ¶
func (m *MsgCreateClawbackVestingAccountResponse) XXX_Merge(src proto.Message)
func (*MsgCreateClawbackVestingAccountResponse) XXX_Size ¶
func (m *MsgCreateClawbackVestingAccountResponse) XXX_Size() int
func (*MsgCreateClawbackVestingAccountResponse) XXX_Unmarshal ¶
func (m *MsgCreateClawbackVestingAccountResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // CreateClawbackVestingAccount creats a vesting account that is subject to // clawback and the configuration of vesting and lockup schedules. CreateClawbackVestingAccount(context.Context, *MsgCreateClawbackVestingAccount) (*MsgCreateClawbackVestingAccountResponse, error) // Clawback removes the unvested tokens from a ClawbackVestingAccount. Clawback(context.Context, *MsgClawback) (*MsgClawbackResponse, error) }
MsgServer is the server API for Msg service.
type QueryBalancesRequest ¶
type QueryBalancesRequest struct { // address of the clawback vesting account Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` }
QueryBalancesRequest is the request type for the Query/Balances RPC method.
func (*QueryBalancesRequest) Descriptor ¶
func (*QueryBalancesRequest) Descriptor() ([]byte, []int)
func (*QueryBalancesRequest) GetAddress ¶
func (m *QueryBalancesRequest) GetAddress() string
func (*QueryBalancesRequest) Marshal ¶
func (m *QueryBalancesRequest) Marshal() (dAtA []byte, err error)
func (*QueryBalancesRequest) MarshalTo ¶
func (m *QueryBalancesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesRequest) MarshalToSizedBuffer ¶
func (m *QueryBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesRequest) ProtoMessage ¶
func (*QueryBalancesRequest) ProtoMessage()
func (*QueryBalancesRequest) Reset ¶
func (m *QueryBalancesRequest) Reset()
func (*QueryBalancesRequest) Size ¶
func (m *QueryBalancesRequest) Size() (n int)
func (*QueryBalancesRequest) String ¶
func (m *QueryBalancesRequest) String() string
func (*QueryBalancesRequest) Unmarshal ¶
func (m *QueryBalancesRequest) Unmarshal(dAtA []byte) error
func (*QueryBalancesRequest) XXX_DiscardUnknown ¶
func (m *QueryBalancesRequest) XXX_DiscardUnknown()
func (*QueryBalancesRequest) XXX_Marshal ¶
func (m *QueryBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesRequest) XXX_Merge ¶
func (m *QueryBalancesRequest) XXX_Merge(src proto.Message)
func (*QueryBalancesRequest) XXX_Size ¶
func (m *QueryBalancesRequest) XXX_Size() int
func (*QueryBalancesRequest) XXX_Unmarshal ¶
func (m *QueryBalancesRequest) XXX_Unmarshal(b []byte) error
type QueryBalancesResponse ¶
type QueryBalancesResponse struct { // current amount of locked tokens Locked github_com_reapchain_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=locked,proto3,castrepeated=github.com/reapchain/cosmos-sdk/types.Coins" json:"locked"` // current amount of unvested tokens Unvested github_com_reapchain_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=unvested,proto3,castrepeated=github.com/reapchain/cosmos-sdk/types.Coins" json:"unvested"` // current amount of vested tokens Vested github_com_reapchain_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=vested,proto3,castrepeated=github.com/reapchain/cosmos-sdk/types.Coins" json:"vested"` }
QueryBalancesResponse is the response type for the Query/Balances RPC method.
func (*QueryBalancesResponse) Descriptor ¶
func (*QueryBalancesResponse) Descriptor() ([]byte, []int)
func (*QueryBalancesResponse) GetLocked ¶
func (m *QueryBalancesResponse) GetLocked() github_com_reapchain_cosmos_sdk_types.Coins
func (*QueryBalancesResponse) GetUnvested ¶
func (m *QueryBalancesResponse) GetUnvested() github_com_reapchain_cosmos_sdk_types.Coins
func (*QueryBalancesResponse) GetVested ¶
func (m *QueryBalancesResponse) GetVested() github_com_reapchain_cosmos_sdk_types.Coins
func (*QueryBalancesResponse) Marshal ¶
func (m *QueryBalancesResponse) Marshal() (dAtA []byte, err error)
func (*QueryBalancesResponse) MarshalTo ¶
func (m *QueryBalancesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesResponse) MarshalToSizedBuffer ¶
func (m *QueryBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesResponse) ProtoMessage ¶
func (*QueryBalancesResponse) ProtoMessage()
func (*QueryBalancesResponse) Reset ¶
func (m *QueryBalancesResponse) Reset()
func (*QueryBalancesResponse) Size ¶
func (m *QueryBalancesResponse) Size() (n int)
func (*QueryBalancesResponse) String ¶
func (m *QueryBalancesResponse) String() string
func (*QueryBalancesResponse) Unmarshal ¶
func (m *QueryBalancesResponse) Unmarshal(dAtA []byte) error
func (*QueryBalancesResponse) XXX_DiscardUnknown ¶
func (m *QueryBalancesResponse) XXX_DiscardUnknown()
func (*QueryBalancesResponse) XXX_Marshal ¶
func (m *QueryBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesResponse) XXX_Merge ¶
func (m *QueryBalancesResponse) XXX_Merge(src proto.Message)
func (*QueryBalancesResponse) XXX_Size ¶
func (m *QueryBalancesResponse) XXX_Size() int
func (*QueryBalancesResponse) XXX_Unmarshal ¶
func (m *QueryBalancesResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Retrieves the unvested, vested and locked tokens for a vesting account Balances(ctx context.Context, in *QueryBalancesRequest, opts ...grpc.CallOption) (*QueryBalancesResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryServer ¶
type QueryServer interface { // Retrieves the unvested, vested and locked tokens for a vesting account Balances(context.Context, *QueryBalancesRequest) (*QueryBalancesResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Clawback ¶
func (*UnimplementedMsgServer) Clawback(ctx context.Context, req *MsgClawback) (*MsgClawbackResponse, error)
func (*UnimplementedMsgServer) CreateClawbackVestingAccount ¶
func (*UnimplementedMsgServer) CreateClawbackVestingAccount(ctx context.Context, req *MsgCreateClawbackVestingAccount) (*MsgCreateClawbackVestingAccountResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Balances ¶
func (*UnimplementedQueryServer) Balances(ctx context.Context, req *QueryBalancesRequest) (*QueryBalancesResponse, error)