quarantine

package
v1.20.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package quarantine is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the name of the module
	ModuleName = "quarantine"

	// StoreKey is the store key string for gov
	StoreKey = ModuleName
)
View Source
const (
	// NoAutoB is a byte with value 0 (corresponding to AUTO_RESPONSE_UNSPECIFIED).
	NoAutoB = byte(0x00)
	// AutoAcceptB is a byte with value 1 (corresponding to AUTO_RESPONSE_ACCEPT).
	AutoAcceptB = byte(0x01)
	// AutoDeclineB is a byte with value 2 (corresponding to AUTO_RESPONSE_DECLINE).
	AutoDeclineB = byte(0x02)
)

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// OptInPrefix is the prefix for the quarantine account opt-in flags.
	OptInPrefix = []byte{0x00}

	// AutoResponsePrefix is the prefix for quarantine auto-response settings.
	AutoResponsePrefix = []byte{0x01}

	// RecordPrefix is the prefix for keys with the records of quarantined funds.
	RecordPrefix = []byte{0x02}

	// RecordIndexPrefix is the prefix for the index of record suffixes.
	RecordIndexPrefix = []byte{0x03}
)
View Source
var (
	ErrInvalidLengthQuarantine        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuarantine          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuarantine = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AllRequestMsgs = []sdk.Msg{
	(*MsgOptIn)(nil),
	(*MsgOptOut)(nil),
	(*MsgAccept)(nil),
	(*MsgDecline)(nil),
	(*MsgUpdateAutoResponses)(nil),
}

AllRequestMsgs defines all the Msg*Request messages.

View Source
var AutoResponse_name = map[int32]string{
	0: "AUTO_RESPONSE_UNSPECIFIED",
	1: "AUTO_RESPONSE_ACCEPT",
	2: "AUTO_RESPONSE_DECLINE",
}
View Source
var AutoResponse_value = map[string]int32{
	"AUTO_RESPONSE_UNSPECIFIED": 0,
	"AUTO_RESPONSE_ACCEPT":      1,
	"AUTO_RESPONSE_DECLINE":     2,
}
View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

func CreateAutoResponseKey

func CreateAutoResponseKey(toAddr, fromAddr sdk.AccAddress) []byte

CreateAutoResponseKey creates the key for a quarantine auto-response.

func CreateAutoResponseToAddrPrefix

func CreateAutoResponseToAddrPrefix(toAddr sdk.AccAddress) []byte

CreateAutoResponseToAddrPrefix creates a prefix for the quarantine auto-responses for a receiving address.

func CreateOptInKey

func CreateOptInKey(toAddr sdk.AccAddress) []byte

CreateOptInKey creates the key for a quarantine opt-in record.

func CreateRecordIndexKey

func CreateRecordIndexKey(toAddr, fromAddr sdk.AccAddress) []byte

CreateRecordIndexKey creates the key for the quarantine record suffix index.

func CreateRecordIndexToAddrPrefix

func CreateRecordIndexToAddrPrefix(toAddr sdk.AccAddress) []byte

CreateRecordIndexToAddrPrefix creates a prefix for the quarantine record index entries for a receiving address.

func CreateRecordKey

func CreateRecordKey(toAddr sdk.AccAddress, fromAddrs ...sdk.AccAddress) []byte

CreateRecordKey creates the key for a quarantine record.

If there is only one fromAddr, it is used as the record suffix. If there are more than one, a hash of them is used as the suffix.

Panics if no fromAddrs are provided.

func CreateRecordToAddrPrefix

func CreateRecordToAddrPrefix(toAddr sdk.AccAddress) []byte

CreateRecordToAddrPrefix creates a prefix for the quarantine funds for a receiving address.

func HasBypass

func HasBypass[C context.Context](ctx C) bool

HasBypass checks the context to see if the quarantine bank send restriction should be skipped.

func MakeKey

func MakeKey(part1, part2 []byte) []byte

MakeKey concatenates the two byte slices into a new byte slice.

func ParseAutoResponseKey

func ParseAutoResponseKey(key []byte) (toAddr, fromAddr sdk.AccAddress)

ParseAutoResponseKey extracts the to address and from address from the provided quarantine auto-response key.

func ParseOptInKey

func ParseOptInKey(key []byte) (toAddr sdk.AccAddress)

ParseOptInKey extracts the account address from the provided quarantine opt-in key.

func ParseRecordIndexKey

func ParseRecordIndexKey(key []byte) (toAddr, fromAddr sdk.AccAddress)

ParseRecordIndexKey extracts the to address and from address from the provided quarantine record index key.

func ParseRecordKey

func ParseRecordKey(key []byte) (toAddr, recordSuffix sdk.AccAddress)

ParseRecordKey extracts the to address and record suffix from the provided quarantine funds key.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers concrete implementations for this module.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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)

func ToAutoB

func ToAutoB(r AutoResponse) byte

ToAutoB converts a AutoResponse into the byte that will represent it.

func WithBypass

func WithBypass[C context.Context](ctx C) C

WithBypass returns a new context that will cause the quarantine bank send restriction to be skipped.

func WithoutBypass

func WithoutBypass[C context.Context](ctx C) C

WithoutBypass returns a new context that will cause the quarantine bank send restriction to not be skipped.

Types

type AccountKeeper

type AccountKeeper interface {
	NewAccount(context.Context, sdk.AccountI) sdk.AccountI
	GetAccount(context.Context, sdk.AccAddress) sdk.AccountI
	SetAccount(context.Context, sdk.AccountI)
}

AccountKeeper defines the account/auth functionality needed from within the quarantine module.

type AutoResponse

type AutoResponse int32

AutoResponse enumerates the quarantine auto-response options.

const (
	// AUTO_RESPONSE_UNSPECIFIED defines that an automatic response has not been specified.
	// This means that no automatic action should be taken, i.e. this auto-response is off,
	// and default quarantine behavior is used.
	AUTO_RESPONSE_UNSPECIFIED AutoResponse = 0
	// AUTO_RESPONSE_ACCEPT defines that sends should be automatically accepted, bypassing quarantine.
	AUTO_RESPONSE_ACCEPT AutoResponse = 1
	// AUTO_RESPONSE_DECLINE defines that sends should be automatically declined.
	AUTO_RESPONSE_DECLINE AutoResponse = 2
)

func ToAutoResponse

func ToAutoResponse(bz []byte) AutoResponse

ToAutoResponse returns the AutoResponse represented by the provided byte slice.

func (AutoResponse) EnumDescriptor

func (AutoResponse) EnumDescriptor() ([]byte, []int)

func (AutoResponse) IsAccept

func (r AutoResponse) IsAccept() bool

IsAccept returns true if this is an auto-accept response.

func (AutoResponse) IsDecline

func (r AutoResponse) IsDecline() bool

IsDecline returns true if this is an auto-decline response.

func (AutoResponse) IsValid

func (r AutoResponse) IsValid() bool

IsValid returns true if this is a known response value

func (AutoResponse) String

func (x AutoResponse) String() string

type AutoResponseEntry

type AutoResponseEntry struct {
	// to_address is the receiving address.
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// from_address is the sending address.
	FromAddress string `protobuf:"bytes,2,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	// response is the auto-response setting for these two addresses.
	Response AutoResponse `protobuf:"varint,3,opt,name=response,proto3,enum=cosmos.quarantine.v1beta1.AutoResponse" json:"response,omitempty"`
}

AutoResponseEntry defines the auto response to one address from another.

func NewAutoResponseEntry

func NewAutoResponseEntry(toAddr, fromAddr sdk.AccAddress, response AutoResponse) *AutoResponseEntry

NewAutoResponseEntry creates a new quarantined auto-response entry.

func (*AutoResponseEntry) Descriptor

func (*AutoResponseEntry) Descriptor() ([]byte, []int)

func (*AutoResponseEntry) GetFromAddress

func (m *AutoResponseEntry) GetFromAddress() string

func (*AutoResponseEntry) GetResponse

func (m *AutoResponseEntry) GetResponse() AutoResponse

func (*AutoResponseEntry) GetToAddress

func (m *AutoResponseEntry) GetToAddress() string

func (*AutoResponseEntry) Marshal

func (m *AutoResponseEntry) Marshal() (dAtA []byte, err error)

func (*AutoResponseEntry) MarshalTo

func (m *AutoResponseEntry) MarshalTo(dAtA []byte) (int, error)

func (*AutoResponseEntry) MarshalToSizedBuffer

func (m *AutoResponseEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AutoResponseEntry) ProtoMessage

func (*AutoResponseEntry) ProtoMessage()

func (*AutoResponseEntry) Reset

func (m *AutoResponseEntry) Reset()

func (*AutoResponseEntry) Size

func (m *AutoResponseEntry) Size() (n int)

func (*AutoResponseEntry) String

func (m *AutoResponseEntry) String() string

func (*AutoResponseEntry) Unmarshal

func (m *AutoResponseEntry) Unmarshal(dAtA []byte) error

func (AutoResponseEntry) Validate

func (e AutoResponseEntry) Validate() error

Validate does simple stateless validation of these quarantined funds.

func (*AutoResponseEntry) XXX_DiscardUnknown

func (m *AutoResponseEntry) XXX_DiscardUnknown()

func (*AutoResponseEntry) XXX_Marshal

func (m *AutoResponseEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AutoResponseEntry) XXX_Merge

func (m *AutoResponseEntry) XXX_Merge(src proto.Message)

func (*AutoResponseEntry) XXX_Size

func (m *AutoResponseEntry) XXX_Size() int

func (*AutoResponseEntry) XXX_Unmarshal

func (m *AutoResponseEntry) XXX_Unmarshal(b []byte) error

type AutoResponseUpdate

type AutoResponseUpdate struct {
	// from_address is the address that funds would be coming from.
	FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	// response is the automatic action to take on funds sent from from_address.
	// Provide AUTO_RESPONSE_UNSPECIFIED to turn off an auto-response.
	Response AutoResponse `protobuf:"varint,2,opt,name=response,proto3,enum=cosmos.quarantine.v1beta1.AutoResponse" json:"response,omitempty"`
}

AutoResponseUpdate defines a quarantine auto response update that should be applied.

func (*AutoResponseUpdate) Descriptor

func (*AutoResponseUpdate) Descriptor() ([]byte, []int)

func (*AutoResponseUpdate) GetFromAddress

func (m *AutoResponseUpdate) GetFromAddress() string

func (*AutoResponseUpdate) GetResponse

func (m *AutoResponseUpdate) GetResponse() AutoResponse

func (*AutoResponseUpdate) Marshal

func (m *AutoResponseUpdate) Marshal() (dAtA []byte, err error)

func (*AutoResponseUpdate) MarshalTo

func (m *AutoResponseUpdate) MarshalTo(dAtA []byte) (int, error)

func (*AutoResponseUpdate) MarshalToSizedBuffer

func (m *AutoResponseUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AutoResponseUpdate) ProtoMessage

func (*AutoResponseUpdate) ProtoMessage()

func (*AutoResponseUpdate) Reset

func (m *AutoResponseUpdate) Reset()

func (*AutoResponseUpdate) Size

func (m *AutoResponseUpdate) Size() (n int)

func (*AutoResponseUpdate) String

func (m *AutoResponseUpdate) String() string

func (*AutoResponseUpdate) Unmarshal

func (m *AutoResponseUpdate) Unmarshal(dAtA []byte) error

func (AutoResponseUpdate) Validate

func (u AutoResponseUpdate) Validate() error

Validate does simple stateless validation of this update.

func (*AutoResponseUpdate) XXX_DiscardUnknown

func (m *AutoResponseUpdate) XXX_DiscardUnknown()

func (*AutoResponseUpdate) XXX_Marshal

func (m *AutoResponseUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AutoResponseUpdate) XXX_Merge

func (m *AutoResponseUpdate) XXX_Merge(src proto.Message)

func (*AutoResponseUpdate) XXX_Size

func (m *AutoResponseUpdate) XXX_Size() int

func (*AutoResponseUpdate) XXX_Unmarshal

func (m *AutoResponseUpdate) XXX_Unmarshal(b []byte) error

type BankKeeper

type BankKeeper interface {
	AppendSendRestriction(restriction banktypes.SendRestrictionFn)
	GetAllBalances(context context.Context, addr sdk.AccAddress) sdk.Coins
	SendCoins(context context.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SpendableCoins(context context.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the bank functionality needed from within the quarantine module.

type EventFundsQuarantined

type EventFundsQuarantined struct {
	ToAddress string                                   `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	Coins     github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

EventFundsQuarantined is an event emitted when funds are quarantined.

func (*EventFundsQuarantined) Descriptor

func (*EventFundsQuarantined) Descriptor() ([]byte, []int)

func (*EventFundsQuarantined) GetCoins

func (*EventFundsQuarantined) GetToAddress

func (m *EventFundsQuarantined) GetToAddress() string

func (*EventFundsQuarantined) Marshal

func (m *EventFundsQuarantined) Marshal() (dAtA []byte, err error)

func (*EventFundsQuarantined) MarshalTo

func (m *EventFundsQuarantined) MarshalTo(dAtA []byte) (int, error)

func (*EventFundsQuarantined) MarshalToSizedBuffer

func (m *EventFundsQuarantined) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventFundsQuarantined) ProtoMessage

func (*EventFundsQuarantined) ProtoMessage()

func (*EventFundsQuarantined) Reset

func (m *EventFundsQuarantined) Reset()

func (*EventFundsQuarantined) Size

func (m *EventFundsQuarantined) Size() (n int)

func (*EventFundsQuarantined) String

func (m *EventFundsQuarantined) String() string

func (*EventFundsQuarantined) Unmarshal

func (m *EventFundsQuarantined) Unmarshal(dAtA []byte) error

func (*EventFundsQuarantined) XXX_DiscardUnknown

func (m *EventFundsQuarantined) XXX_DiscardUnknown()

func (*EventFundsQuarantined) XXX_Marshal

func (m *EventFundsQuarantined) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventFundsQuarantined) XXX_Merge

func (m *EventFundsQuarantined) XXX_Merge(src proto.Message)

func (*EventFundsQuarantined) XXX_Size

func (m *EventFundsQuarantined) XXX_Size() int

func (*EventFundsQuarantined) XXX_Unmarshal

func (m *EventFundsQuarantined) XXX_Unmarshal(b []byte) error

type EventFundsReleased

type EventFundsReleased struct {
	ToAddress string                                   `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	Coins     github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

EventFundsReleased is an event emitted when quarantined funds are accepted and released.

func (*EventFundsReleased) Descriptor

func (*EventFundsReleased) Descriptor() ([]byte, []int)

func (*EventFundsReleased) GetCoins

func (*EventFundsReleased) GetToAddress

func (m *EventFundsReleased) GetToAddress() string

func (*EventFundsReleased) Marshal

func (m *EventFundsReleased) Marshal() (dAtA []byte, err error)

func (*EventFundsReleased) MarshalTo

func (m *EventFundsReleased) MarshalTo(dAtA []byte) (int, error)

func (*EventFundsReleased) MarshalToSizedBuffer

func (m *EventFundsReleased) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventFundsReleased) ProtoMessage

func (*EventFundsReleased) ProtoMessage()

func (*EventFundsReleased) Reset

func (m *EventFundsReleased) Reset()

func (*EventFundsReleased) Size

func (m *EventFundsReleased) Size() (n int)

func (*EventFundsReleased) String

func (m *EventFundsReleased) String() string

func (*EventFundsReleased) Unmarshal

func (m *EventFundsReleased) Unmarshal(dAtA []byte) error

func (*EventFundsReleased) XXX_DiscardUnknown

func (m *EventFundsReleased) XXX_DiscardUnknown()

func (*EventFundsReleased) XXX_Marshal

func (m *EventFundsReleased) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventFundsReleased) XXX_Merge

func (m *EventFundsReleased) XXX_Merge(src proto.Message)

func (*EventFundsReleased) XXX_Size

func (m *EventFundsReleased) XXX_Size() int

func (*EventFundsReleased) XXX_Unmarshal

func (m *EventFundsReleased) XXX_Unmarshal(b []byte) error

type EventOptIn

type EventOptIn struct {
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
}

EventOptIn is an event emitted when an address opts into quarantine.

func (*EventOptIn) Descriptor

func (*EventOptIn) Descriptor() ([]byte, []int)

func (*EventOptIn) GetToAddress

func (m *EventOptIn) GetToAddress() string

func (*EventOptIn) Marshal

func (m *EventOptIn) Marshal() (dAtA []byte, err error)

func (*EventOptIn) MarshalTo

func (m *EventOptIn) MarshalTo(dAtA []byte) (int, error)

func (*EventOptIn) MarshalToSizedBuffer

func (m *EventOptIn) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventOptIn) ProtoMessage

func (*EventOptIn) ProtoMessage()

func (*EventOptIn) Reset

func (m *EventOptIn) Reset()

func (*EventOptIn) Size

func (m *EventOptIn) Size() (n int)

func (*EventOptIn) String

func (m *EventOptIn) String() string

func (*EventOptIn) Unmarshal

func (m *EventOptIn) Unmarshal(dAtA []byte) error

func (*EventOptIn) XXX_DiscardUnknown

func (m *EventOptIn) XXX_DiscardUnknown()

func (*EventOptIn) XXX_Marshal

func (m *EventOptIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventOptIn) XXX_Merge

func (m *EventOptIn) XXX_Merge(src proto.Message)

func (*EventOptIn) XXX_Size

func (m *EventOptIn) XXX_Size() int

func (*EventOptIn) XXX_Unmarshal

func (m *EventOptIn) XXX_Unmarshal(b []byte) error

type EventOptOut

type EventOptOut struct {
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
}

EventOptOut is an event emitted when an address opts out of quarantine.

func (*EventOptOut) Descriptor

func (*EventOptOut) Descriptor() ([]byte, []int)

func (*EventOptOut) GetToAddress

func (m *EventOptOut) GetToAddress() string

func (*EventOptOut) Marshal

func (m *EventOptOut) Marshal() (dAtA []byte, err error)

func (*EventOptOut) MarshalTo

func (m *EventOptOut) MarshalTo(dAtA []byte) (int, error)

func (*EventOptOut) MarshalToSizedBuffer

func (m *EventOptOut) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventOptOut) ProtoMessage

func (*EventOptOut) ProtoMessage()

func (*EventOptOut) Reset

func (m *EventOptOut) Reset()

func (*EventOptOut) Size

func (m *EventOptOut) Size() (n int)

func (*EventOptOut) String

func (m *EventOptOut) String() string

func (*EventOptOut) Unmarshal

func (m *EventOptOut) Unmarshal(dAtA []byte) error

func (*EventOptOut) XXX_DiscardUnknown

func (m *EventOptOut) XXX_DiscardUnknown()

func (*EventOptOut) XXX_Marshal

func (m *EventOptOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventOptOut) XXX_Merge

func (m *EventOptOut) XXX_Merge(src proto.Message)

func (*EventOptOut) XXX_Size

func (m *EventOptOut) XXX_Size() int

func (*EventOptOut) XXX_Unmarshal

func (m *EventOptOut) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	// quarantined_addresses defines account addresses that are opted into quarantine.
	QuarantinedAddresses []string `protobuf:"bytes,1,rep,name=quarantined_addresses,json=quarantinedAddresses,proto3" json:"quarantined_addresses,omitempty"`
	// auto_responses defines the quarantine auto-responses for addresses.
	AutoResponses []*AutoResponseEntry `protobuf:"bytes,2,rep,name=auto_responses,json=autoResponses,proto3" json:"auto_responses,omitempty"`
	// quarantined_funds defines funds that are quarantined.
	QuarantinedFunds []*QuarantinedFunds `protobuf:"bytes,3,rep,name=quarantined_funds,json=quarantinedFunds,proto3" json:"quarantined_funds,omitempty"`
}

GenesisState defines the quarantine module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default quarantine module genesis state.

func NewGenesisState

func NewGenesisState(quarantinedAddresses []string, autoResponses []*AutoResponseEntry, funds []*QuarantinedFunds) *GenesisState

NewGenesisState creates a new genesis state for the quarantine module.

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetAutoResponses

func (m *GenesisState) GetAutoResponses() []*AutoResponseEntry

func (*GenesisState) GetQuarantinedAddresses

func (m *GenesisState) GetQuarantinedAddresses() []string

func (*GenesisState) GetQuarantinedFunds

func (m *GenesisState) GetQuarantinedFunds() []*QuarantinedFunds

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic validation of genesis data returning an error for any failed validation criteria.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type MsgAccept

type MsgAccept struct {
	// to_address is the address of the quarantined account that is accepting funds.
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// from_addresses is one or more addresses that have sent funds to the quarantined account.
	// All funds quarantined for to_address from any from_addresses are marked as accepted and released if appropriate.
	// At least one is required.
	FromAddresses []string `protobuf:"bytes,2,rep,name=from_addresses,json=fromAddresses,proto3" json:"from_addresses,omitempty"`
	// permanent, if true, sets up auto-accept for the to_address from each from_address.
	// If false (default), only the currently quarantined funds will be accepted.
	Permanent bool `protobuf:"varint,3,opt,name=permanent,proto3" json:"permanent,omitempty"`
}

MsgAccept represents a message for accepting quarantined funds.

func NewMsgAccept

func NewMsgAccept(toAddr sdk.AccAddress, fromAddrsStrs []string, permanent bool) *MsgAccept

NewMsgAccept creates a new msg to accept quarantined funds.

func (*MsgAccept) Descriptor

func (*MsgAccept) Descriptor() ([]byte, []int)

func (*MsgAccept) GetFromAddresses

func (m *MsgAccept) GetFromAddresses() []string

func (*MsgAccept) GetPermanent

func (m *MsgAccept) GetPermanent() bool

func (*MsgAccept) GetToAddress

func (m *MsgAccept) GetToAddress() string

func (*MsgAccept) Marshal

func (m *MsgAccept) Marshal() (dAtA []byte, err error)

func (*MsgAccept) MarshalTo

func (m *MsgAccept) MarshalTo(dAtA []byte) (int, error)

func (*MsgAccept) MarshalToSizedBuffer

func (m *MsgAccept) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAccept) ProtoMessage

func (*MsgAccept) ProtoMessage()

func (*MsgAccept) Reset

func (m *MsgAccept) Reset()

func (*MsgAccept) Size

func (m *MsgAccept) Size() (n int)

func (*MsgAccept) String

func (m *MsgAccept) String() string

func (*MsgAccept) Unmarshal

func (m *MsgAccept) Unmarshal(dAtA []byte) error

func (MsgAccept) ValidateBasic

func (msg MsgAccept) ValidateBasic() error

ValidateBasic does simple stateless validation of this Msg.

func (*MsgAccept) XXX_DiscardUnknown

func (m *MsgAccept) XXX_DiscardUnknown()

func (*MsgAccept) XXX_Marshal

func (m *MsgAccept) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAccept) XXX_Merge

func (m *MsgAccept) XXX_Merge(src proto.Message)

func (*MsgAccept) XXX_Size

func (m *MsgAccept) XXX_Size() int

func (*MsgAccept) XXX_Unmarshal

func (m *MsgAccept) XXX_Unmarshal(b []byte) error

type MsgAcceptResponse

type MsgAcceptResponse struct {
	// funds_released is the amount that was quarantined but has now been released and sent to the requester.
	FundsReleased github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */
}

MsgAcceptResponse defines the Msg/Accept response type.

func (*MsgAcceptResponse) Descriptor

func (*MsgAcceptResponse) Descriptor() ([]byte, []int)

func (*MsgAcceptResponse) GetFundsReleased

func (*MsgAcceptResponse) Marshal

func (m *MsgAcceptResponse) Marshal() (dAtA []byte, err error)

func (*MsgAcceptResponse) MarshalTo

func (m *MsgAcceptResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgAcceptResponse) MarshalToSizedBuffer

func (m *MsgAcceptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAcceptResponse) ProtoMessage

func (*MsgAcceptResponse) ProtoMessage()

func (*MsgAcceptResponse) Reset

func (m *MsgAcceptResponse) Reset()

func (*MsgAcceptResponse) Size

func (m *MsgAcceptResponse) Size() (n int)

func (*MsgAcceptResponse) String

func (m *MsgAcceptResponse) String() string

func (*MsgAcceptResponse) Unmarshal

func (m *MsgAcceptResponse) Unmarshal(dAtA []byte) error

func (*MsgAcceptResponse) XXX_DiscardUnknown

func (m *MsgAcceptResponse) XXX_DiscardUnknown()

func (*MsgAcceptResponse) XXX_Marshal

func (m *MsgAcceptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAcceptResponse) XXX_Merge

func (m *MsgAcceptResponse) XXX_Merge(src proto.Message)

func (*MsgAcceptResponse) XXX_Size

func (m *MsgAcceptResponse) XXX_Size() int

func (*MsgAcceptResponse) XXX_Unmarshal

func (m *MsgAcceptResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// OptIn defines a method for opting in to account quarantine.
	// Funds sent to a quarantined account must be approved before they can be received.
	OptIn(ctx context.Context, in *MsgOptIn, opts ...grpc.CallOption) (*MsgOptInResponse, error)
	// OptOut defines a method for opting out of account quarantine.
	// Any pending funds for the account must still be accepted, but new sends will no longer be quarantined.
	OptOut(ctx context.Context, in *MsgOptOut, opts ...grpc.CallOption) (*MsgOptOutResponse, error)
	// Accept defines a method for accepting quarantined funds.
	Accept(ctx context.Context, in *MsgAccept, opts ...grpc.CallOption) (*MsgAcceptResponse, error)
	// Decline defines a method for declining quarantined funds.
	Decline(ctx context.Context, in *MsgDecline, opts ...grpc.CallOption) (*MsgDeclineResponse, error)
	// UpdateAutoResponses defines a method for updating the auto-response settings for a quarantined address.
	UpdateAutoResponses(ctx context.Context, in *MsgUpdateAutoResponses, opts ...grpc.CallOption) (*MsgUpdateAutoResponsesResponse, 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 MsgDecline

type MsgDecline struct {
	// to_address is the address of the quarantined account that is accepting funds.
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// from_addresses is one or more addresses that have sent funds to the quarantined account.
	// All funds quarantined for to_address from any from_addresses are marked as declined.
	// At least one is required.
	FromAddresses []string `protobuf:"bytes,2,rep,name=from_addresses,json=fromAddresses,proto3" json:"from_addresses,omitempty"`
	// permanent, if true, sets up auto-decline for the to_address from each from_address.
	// If false (default), only the currently quarantined funds will be declined.
	Permanent bool `protobuf:"varint,3,opt,name=permanent,proto3" json:"permanent,omitempty"`
}

MsgDecline represents a message for declining quarantined funds.

func NewMsgDecline

func NewMsgDecline(toAddr sdk.AccAddress, fromAddrsStrs []string, permanent bool) *MsgDecline

NewMsgDecline creates a new msg to decline quarantined funds.

func (*MsgDecline) Descriptor

func (*MsgDecline) Descriptor() ([]byte, []int)

func (*MsgDecline) GetFromAddresses

func (m *MsgDecline) GetFromAddresses() []string

func (*MsgDecline) GetPermanent

func (m *MsgDecline) GetPermanent() bool

func (*MsgDecline) GetToAddress

func (m *MsgDecline) GetToAddress() string

func (*MsgDecline) Marshal

func (m *MsgDecline) Marshal() (dAtA []byte, err error)

func (*MsgDecline) MarshalTo

func (m *MsgDecline) MarshalTo(dAtA []byte) (int, error)

func (*MsgDecline) MarshalToSizedBuffer

func (m *MsgDecline) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDecline) ProtoMessage

func (*MsgDecline) ProtoMessage()

func (*MsgDecline) Reset

func (m *MsgDecline) Reset()

func (*MsgDecline) Size

func (m *MsgDecline) Size() (n int)

func (*MsgDecline) String

func (m *MsgDecline) String() string

func (*MsgDecline) Unmarshal

func (m *MsgDecline) Unmarshal(dAtA []byte) error

func (MsgDecline) ValidateBasic

func (msg MsgDecline) ValidateBasic() error

ValidateBasic does simple stateless validation of this Msg.

func (*MsgDecline) XXX_DiscardUnknown

func (m *MsgDecline) XXX_DiscardUnknown()

func (*MsgDecline) XXX_Marshal

func (m *MsgDecline) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDecline) XXX_Merge

func (m *MsgDecline) XXX_Merge(src proto.Message)

func (*MsgDecline) XXX_Size

func (m *MsgDecline) XXX_Size() int

func (*MsgDecline) XXX_Unmarshal

func (m *MsgDecline) XXX_Unmarshal(b []byte) error

type MsgDeclineResponse

type MsgDeclineResponse struct {
}

MsgDeclineResponse defines the Msg/Decline response type.

func (*MsgDeclineResponse) Descriptor

func (*MsgDeclineResponse) Descriptor() ([]byte, []int)

func (*MsgDeclineResponse) Marshal

func (m *MsgDeclineResponse) Marshal() (dAtA []byte, err error)

func (*MsgDeclineResponse) MarshalTo

func (m *MsgDeclineResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeclineResponse) MarshalToSizedBuffer

func (m *MsgDeclineResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeclineResponse) ProtoMessage

func (*MsgDeclineResponse) ProtoMessage()

func (*MsgDeclineResponse) Reset

func (m *MsgDeclineResponse) Reset()

func (*MsgDeclineResponse) Size

func (m *MsgDeclineResponse) Size() (n int)

func (*MsgDeclineResponse) String

func (m *MsgDeclineResponse) String() string

func (*MsgDeclineResponse) Unmarshal

func (m *MsgDeclineResponse) Unmarshal(dAtA []byte) error

func (*MsgDeclineResponse) XXX_DiscardUnknown

func (m *MsgDeclineResponse) XXX_DiscardUnknown()

func (*MsgDeclineResponse) XXX_Marshal

func (m *MsgDeclineResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeclineResponse) XXX_Merge

func (m *MsgDeclineResponse) XXX_Merge(src proto.Message)

func (*MsgDeclineResponse) XXX_Size

func (m *MsgDeclineResponse) XXX_Size() int

func (*MsgDeclineResponse) XXX_Unmarshal

func (m *MsgDeclineResponse) XXX_Unmarshal(b []byte) error

type MsgOptIn

type MsgOptIn struct {
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
}

MsgOptIn represents a message for opting in to account quarantine.

func NewMsgOptIn

func NewMsgOptIn(toAddr sdk.AccAddress) *MsgOptIn

NewMsgOptIn creates a new msg to opt in to account quarantine.

func (*MsgOptIn) Descriptor

func (*MsgOptIn) Descriptor() ([]byte, []int)

func (*MsgOptIn) GetToAddress

func (m *MsgOptIn) GetToAddress() string

func (*MsgOptIn) Marshal

func (m *MsgOptIn) Marshal() (dAtA []byte, err error)

func (*MsgOptIn) MarshalTo

func (m *MsgOptIn) MarshalTo(dAtA []byte) (int, error)

func (*MsgOptIn) MarshalToSizedBuffer

func (m *MsgOptIn) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgOptIn) ProtoMessage

func (*MsgOptIn) ProtoMessage()

func (*MsgOptIn) Reset

func (m *MsgOptIn) Reset()

func (*MsgOptIn) Size

func (m *MsgOptIn) Size() (n int)

func (*MsgOptIn) String

func (m *MsgOptIn) String() string

func (*MsgOptIn) Unmarshal

func (m *MsgOptIn) Unmarshal(dAtA []byte) error

func (MsgOptIn) ValidateBasic

func (msg MsgOptIn) ValidateBasic() error

ValidateBasic does simple stateless validation of this Msg.

func (*MsgOptIn) XXX_DiscardUnknown

func (m *MsgOptIn) XXX_DiscardUnknown()

func (*MsgOptIn) XXX_Marshal

func (m *MsgOptIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgOptIn) XXX_Merge

func (m *MsgOptIn) XXX_Merge(src proto.Message)

func (*MsgOptIn) XXX_Size

func (m *MsgOptIn) XXX_Size() int

func (*MsgOptIn) XXX_Unmarshal

func (m *MsgOptIn) XXX_Unmarshal(b []byte) error

type MsgOptInResponse

type MsgOptInResponse struct {
}

MsgOptInResponse defines the Msg/OptIn response type.

func (*MsgOptInResponse) Descriptor

func (*MsgOptInResponse) Descriptor() ([]byte, []int)

func (*MsgOptInResponse) Marshal

func (m *MsgOptInResponse) Marshal() (dAtA []byte, err error)

func (*MsgOptInResponse) MarshalTo

func (m *MsgOptInResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgOptInResponse) MarshalToSizedBuffer

func (m *MsgOptInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgOptInResponse) ProtoMessage

func (*MsgOptInResponse) ProtoMessage()

func (*MsgOptInResponse) Reset

func (m *MsgOptInResponse) Reset()

func (*MsgOptInResponse) Size

func (m *MsgOptInResponse) Size() (n int)

func (*MsgOptInResponse) String

func (m *MsgOptInResponse) String() string

func (*MsgOptInResponse) Unmarshal

func (m *MsgOptInResponse) Unmarshal(dAtA []byte) error

func (*MsgOptInResponse) XXX_DiscardUnknown

func (m *MsgOptInResponse) XXX_DiscardUnknown()

func (*MsgOptInResponse) XXX_Marshal

func (m *MsgOptInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgOptInResponse) XXX_Merge

func (m *MsgOptInResponse) XXX_Merge(src proto.Message)

func (*MsgOptInResponse) XXX_Size

func (m *MsgOptInResponse) XXX_Size() int

func (*MsgOptInResponse) XXX_Unmarshal

func (m *MsgOptInResponse) XXX_Unmarshal(b []byte) error

type MsgOptOut

type MsgOptOut struct {
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
}

MsgOptOut represents a message for opting in to account quarantine.

func NewMsgOptOut

func NewMsgOptOut(toAddr sdk.AccAddress) *MsgOptOut

NewMsgOptOut creates a new msg to opt out of account quarantine.

func (*MsgOptOut) Descriptor

func (*MsgOptOut) Descriptor() ([]byte, []int)

func (*MsgOptOut) GetToAddress

func (m *MsgOptOut) GetToAddress() string

func (*MsgOptOut) Marshal

func (m *MsgOptOut) Marshal() (dAtA []byte, err error)

func (*MsgOptOut) MarshalTo

func (m *MsgOptOut) MarshalTo(dAtA []byte) (int, error)

func (*MsgOptOut) MarshalToSizedBuffer

func (m *MsgOptOut) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgOptOut) ProtoMessage

func (*MsgOptOut) ProtoMessage()

func (*MsgOptOut) Reset

func (m *MsgOptOut) Reset()

func (*MsgOptOut) Size

func (m *MsgOptOut) Size() (n int)

func (*MsgOptOut) String

func (m *MsgOptOut) String() string

func (*MsgOptOut) Unmarshal

func (m *MsgOptOut) Unmarshal(dAtA []byte) error

func (MsgOptOut) ValidateBasic

func (msg MsgOptOut) ValidateBasic() error

ValidateBasic does simple stateless validation of this Msg.

func (*MsgOptOut) XXX_DiscardUnknown

func (m *MsgOptOut) XXX_DiscardUnknown()

func (*MsgOptOut) XXX_Marshal

func (m *MsgOptOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgOptOut) XXX_Merge

func (m *MsgOptOut) XXX_Merge(src proto.Message)

func (*MsgOptOut) XXX_Size

func (m *MsgOptOut) XXX_Size() int

func (*MsgOptOut) XXX_Unmarshal

func (m *MsgOptOut) XXX_Unmarshal(b []byte) error

type MsgOptOutResponse

type MsgOptOutResponse struct {
}

MsgOptOutResponse defines the Msg/OptOut response type.

func (*MsgOptOutResponse) Descriptor

func (*MsgOptOutResponse) Descriptor() ([]byte, []int)

func (*MsgOptOutResponse) Marshal

func (m *MsgOptOutResponse) Marshal() (dAtA []byte, err error)

func (*MsgOptOutResponse) MarshalTo

func (m *MsgOptOutResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgOptOutResponse) MarshalToSizedBuffer

func (m *MsgOptOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgOptOutResponse) ProtoMessage

func (*MsgOptOutResponse) ProtoMessage()

func (*MsgOptOutResponse) Reset

func (m *MsgOptOutResponse) Reset()

func (*MsgOptOutResponse) Size

func (m *MsgOptOutResponse) Size() (n int)

func (*MsgOptOutResponse) String

func (m *MsgOptOutResponse) String() string

func (*MsgOptOutResponse) Unmarshal

func (m *MsgOptOutResponse) Unmarshal(dAtA []byte) error

func (*MsgOptOutResponse) XXX_DiscardUnknown

func (m *MsgOptOutResponse) XXX_DiscardUnknown()

func (*MsgOptOutResponse) XXX_Marshal

func (m *MsgOptOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgOptOutResponse) XXX_Merge

func (m *MsgOptOutResponse) XXX_Merge(src proto.Message)

func (*MsgOptOutResponse) XXX_Size

func (m *MsgOptOutResponse) XXX_Size() int

func (*MsgOptOutResponse) XXX_Unmarshal

func (m *MsgOptOutResponse) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// OptIn defines a method for opting in to account quarantine.
	// Funds sent to a quarantined account must be approved before they can be received.
	OptIn(context.Context, *MsgOptIn) (*MsgOptInResponse, error)
	// OptOut defines a method for opting out of account quarantine.
	// Any pending funds for the account must still be accepted, but new sends will no longer be quarantined.
	OptOut(context.Context, *MsgOptOut) (*MsgOptOutResponse, error)
	// Accept defines a method for accepting quarantined funds.
	Accept(context.Context, *MsgAccept) (*MsgAcceptResponse, error)
	// Decline defines a method for declining quarantined funds.
	Decline(context.Context, *MsgDecline) (*MsgDeclineResponse, error)
	// UpdateAutoResponses defines a method for updating the auto-response settings for a quarantined address.
	UpdateAutoResponses(context.Context, *MsgUpdateAutoResponses) (*MsgUpdateAutoResponsesResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateAutoResponses

type MsgUpdateAutoResponses struct {
	// to_address is the quarantined address that would be accepting or declining funds.
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// updates is the list of addresses and auto-responses that should be updated for the to_address.
	Updates []*AutoResponseUpdate `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"`
}

MsgUpdateAutoResponses represents a message for updating quarantine auto-responses for a receiving address.

func NewMsgUpdateAutoResponses

func NewMsgUpdateAutoResponses(toAddr sdk.AccAddress, updates []*AutoResponseUpdate) *MsgUpdateAutoResponses

NewMsgUpdateAutoResponses creates a new msg to update quarantined auto-responses.

func (*MsgUpdateAutoResponses) Descriptor

func (*MsgUpdateAutoResponses) Descriptor() ([]byte, []int)

func (*MsgUpdateAutoResponses) GetToAddress

func (m *MsgUpdateAutoResponses) GetToAddress() string

func (*MsgUpdateAutoResponses) GetUpdates

func (m *MsgUpdateAutoResponses) GetUpdates() []*AutoResponseUpdate

func (*MsgUpdateAutoResponses) Marshal

func (m *MsgUpdateAutoResponses) Marshal() (dAtA []byte, err error)

func (*MsgUpdateAutoResponses) MarshalTo

func (m *MsgUpdateAutoResponses) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateAutoResponses) MarshalToSizedBuffer

func (m *MsgUpdateAutoResponses) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateAutoResponses) ProtoMessage

func (*MsgUpdateAutoResponses) ProtoMessage()

func (*MsgUpdateAutoResponses) Reset

func (m *MsgUpdateAutoResponses) Reset()

func (*MsgUpdateAutoResponses) Size

func (m *MsgUpdateAutoResponses) Size() (n int)

func (*MsgUpdateAutoResponses) String

func (m *MsgUpdateAutoResponses) String() string

func (*MsgUpdateAutoResponses) Unmarshal

func (m *MsgUpdateAutoResponses) Unmarshal(dAtA []byte) error

func (MsgUpdateAutoResponses) ValidateBasic

func (msg MsgUpdateAutoResponses) ValidateBasic() error

ValidateBasic does simple stateless validation of this Msg.

func (*MsgUpdateAutoResponses) XXX_DiscardUnknown

func (m *MsgUpdateAutoResponses) XXX_DiscardUnknown()

func (*MsgUpdateAutoResponses) XXX_Marshal

func (m *MsgUpdateAutoResponses) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateAutoResponses) XXX_Merge

func (m *MsgUpdateAutoResponses) XXX_Merge(src proto.Message)

func (*MsgUpdateAutoResponses) XXX_Size

func (m *MsgUpdateAutoResponses) XXX_Size() int

func (*MsgUpdateAutoResponses) XXX_Unmarshal

func (m *MsgUpdateAutoResponses) XXX_Unmarshal(b []byte) error

type MsgUpdateAutoResponsesResponse

type MsgUpdateAutoResponsesResponse struct {
}

MsgUpdateAutoResponsesResponse defines the Msg/UpdateAutoResponse response type.

func (*MsgUpdateAutoResponsesResponse) Descriptor

func (*MsgUpdateAutoResponsesResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateAutoResponsesResponse) Marshal

func (m *MsgUpdateAutoResponsesResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateAutoResponsesResponse) MarshalTo

func (m *MsgUpdateAutoResponsesResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateAutoResponsesResponse) MarshalToSizedBuffer

func (m *MsgUpdateAutoResponsesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateAutoResponsesResponse) ProtoMessage

func (*MsgUpdateAutoResponsesResponse) ProtoMessage()

func (*MsgUpdateAutoResponsesResponse) Reset

func (m *MsgUpdateAutoResponsesResponse) Reset()

func (*MsgUpdateAutoResponsesResponse) Size

func (m *MsgUpdateAutoResponsesResponse) Size() (n int)

func (*MsgUpdateAutoResponsesResponse) String

func (*MsgUpdateAutoResponsesResponse) Unmarshal

func (m *MsgUpdateAutoResponsesResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateAutoResponsesResponse) XXX_DiscardUnknown

func (m *MsgUpdateAutoResponsesResponse) XXX_DiscardUnknown()

func (*MsgUpdateAutoResponsesResponse) XXX_Marshal

func (m *MsgUpdateAutoResponsesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateAutoResponsesResponse) XXX_Merge

func (m *MsgUpdateAutoResponsesResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateAutoResponsesResponse) XXX_Size

func (m *MsgUpdateAutoResponsesResponse) XXX_Size() int

func (*MsgUpdateAutoResponsesResponse) XXX_Unmarshal

func (m *MsgUpdateAutoResponsesResponse) XXX_Unmarshal(b []byte) error

type QuarantineRecord

type QuarantineRecord struct {
	// unaccepted_from_addresses are the senders that have not been part of an accept yet for these coins.
	UnacceptedFromAddresses []github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 187-byte string literal not displayed */
	// accepted_from_addresses are the senders that have already been part of an accept for these coins.
	AcceptedFromAddresses []github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 181-byte string literal not displayed */
	// coins is the amount that has been quarantined.
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
	// declined is whether these funds have been declined.
	Declined bool `protobuf:"varint,4,opt,name=declined,proto3" json:"declined,omitempty"`
}

QuarantineRecord defines information regarding quarantined funds that is stored in state.

func NewQuarantineRecord

func NewQuarantineRecord(unacceptedFromAddrs []string, coins sdk.Coins, declined bool) *QuarantineRecord

NewQuarantineRecord creates a new quarantine record object.

func (*QuarantineRecord) AcceptFrom

func (r *QuarantineRecord) AcceptFrom(addrs []sdk.AccAddress) bool

AcceptFrom moves the provided addrs from the unaccepted slice to the accepted slice. If none of the provided addrs are in this record's unaccepted slice, this does nothing. Returns true if anything in this record changed.

func (*QuarantineRecord) AddCoins

func (r *QuarantineRecord) AddCoins(coins ...sdk.Coin)

AddCoins adds coins to this.

func (QuarantineRecord) AsQuarantinedFunds

func (r QuarantineRecord) AsQuarantinedFunds(toAddr sdk.AccAddress) *QuarantinedFunds

AsQuarantinedFunds creates a new QuarantinedFunds using fields in this and the provided addresses.

func (*QuarantineRecord) DeclineFrom

func (r *QuarantineRecord) DeclineFrom(addrs []sdk.AccAddress) bool

DeclineFrom marks this as declined and moves any of the provided addrs from accepted to unaccepted. If none of the provided addrs are in this record's accepted slice, accepted and unaccepted are left unchanged, but the record is still marked as declined. Returns true if anything in this record changed.

func (*QuarantineRecord) Descriptor

func (*QuarantineRecord) Descriptor() ([]byte, []int)

func (*QuarantineRecord) GetAcceptedFromAddresses

func (m *QuarantineRecord) GetAcceptedFromAddresses() []github_com_cosmos_cosmos_sdk_types.AccAddress

func (*QuarantineRecord) GetAllFromAddrs

func (r *QuarantineRecord) GetAllFromAddrs() []sdk.AccAddress

func (*QuarantineRecord) GetCoins

func (*QuarantineRecord) GetDeclined

func (m *QuarantineRecord) GetDeclined() bool

func (*QuarantineRecord) GetUnacceptedFromAddresses

func (m *QuarantineRecord) GetUnacceptedFromAddresses() []github_com_cosmos_cosmos_sdk_types.AccAddress

func (QuarantineRecord) IsFullyAccepted

func (r QuarantineRecord) IsFullyAccepted() bool

IsFullyAccepted returns true if this record has been accepted for all from addresses involved.

func (*QuarantineRecord) Marshal

func (m *QuarantineRecord) Marshal() (dAtA []byte, err error)

func (*QuarantineRecord) MarshalTo

func (m *QuarantineRecord) MarshalTo(dAtA []byte) (int, error)

func (*QuarantineRecord) MarshalToSizedBuffer

func (m *QuarantineRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuarantineRecord) ProtoMessage

func (*QuarantineRecord) ProtoMessage()

func (*QuarantineRecord) Reset

func (m *QuarantineRecord) Reset()

func (*QuarantineRecord) Size

func (m *QuarantineRecord) Size() (n int)

func (*QuarantineRecord) String

func (m *QuarantineRecord) String() string

func (*QuarantineRecord) Unmarshal

func (m *QuarantineRecord) Unmarshal(dAtA []byte) error

func (QuarantineRecord) Validate

func (r QuarantineRecord) Validate() error

Validate does simple stateless validation of these quarantined funds.

func (*QuarantineRecord) XXX_DiscardUnknown

func (m *QuarantineRecord) XXX_DiscardUnknown()

func (*QuarantineRecord) XXX_Marshal

func (m *QuarantineRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuarantineRecord) XXX_Merge

func (m *QuarantineRecord) XXX_Merge(src proto.Message)

func (*QuarantineRecord) XXX_Size

func (m *QuarantineRecord) XXX_Size() int

func (*QuarantineRecord) XXX_Unmarshal

func (m *QuarantineRecord) XXX_Unmarshal(b []byte) error

type QuarantineRecordSuffixIndex

type QuarantineRecordSuffixIndex struct {
	RecordSuffixes [][]byte `protobuf:"bytes,1,rep,name=record_suffixes,json=recordSuffixes,proto3" json:"record_suffixes,omitempty"`
}

QuarantineRecordSuffixIndex defines a list of record suffixes that can be stored in state and used as an index.

func (*QuarantineRecordSuffixIndex) AddSuffixes

func (s *QuarantineRecordSuffixIndex) AddSuffixes(suffixes ...[]byte)

AddSuffixes adds the provided suffixes to this. No attempt is made to deduplicate entries. After using this, you should use Simplify before trying to save it.

func (*QuarantineRecordSuffixIndex) Descriptor

func (*QuarantineRecordSuffixIndex) Descriptor() ([]byte, []int)

func (*QuarantineRecordSuffixIndex) GetRecordSuffixes

func (m *QuarantineRecordSuffixIndex) GetRecordSuffixes() [][]byte

func (*QuarantineRecordSuffixIndex) Marshal

func (m *QuarantineRecordSuffixIndex) Marshal() (dAtA []byte, err error)

func (*QuarantineRecordSuffixIndex) MarshalTo

func (m *QuarantineRecordSuffixIndex) MarshalTo(dAtA []byte) (int, error)

func (*QuarantineRecordSuffixIndex) MarshalToSizedBuffer

func (m *QuarantineRecordSuffixIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuarantineRecordSuffixIndex) ProtoMessage

func (*QuarantineRecordSuffixIndex) ProtoMessage()

func (*QuarantineRecordSuffixIndex) Reset

func (m *QuarantineRecordSuffixIndex) Reset()

func (*QuarantineRecordSuffixIndex) Simplify

func (s *QuarantineRecordSuffixIndex) Simplify(toRemove ...[]byte)

Simplify updates the suffixes in this so that they are ordered and there aren't any duplicates.

func (*QuarantineRecordSuffixIndex) Size

func (m *QuarantineRecordSuffixIndex) Size() (n int)

func (*QuarantineRecordSuffixIndex) String

func (m *QuarantineRecordSuffixIndex) String() string

func (*QuarantineRecordSuffixIndex) Unmarshal

func (m *QuarantineRecordSuffixIndex) Unmarshal(dAtA []byte) error

func (*QuarantineRecordSuffixIndex) XXX_DiscardUnknown

func (m *QuarantineRecordSuffixIndex) XXX_DiscardUnknown()

func (*QuarantineRecordSuffixIndex) XXX_Marshal

func (m *QuarantineRecordSuffixIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuarantineRecordSuffixIndex) XXX_Merge

func (m *QuarantineRecordSuffixIndex) XXX_Merge(src proto.Message)

func (*QuarantineRecordSuffixIndex) XXX_Size

func (m *QuarantineRecordSuffixIndex) XXX_Size() int

func (*QuarantineRecordSuffixIndex) XXX_Unmarshal

func (m *QuarantineRecordSuffixIndex) XXX_Unmarshal(b []byte) error

type QuarantinedFunds

type QuarantinedFunds struct {
	// to_address is the intended recipient of the coins that have been quarantined.
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// unaccepted_from_addresses are the senders that have not been part of an accept yet for these coins.
	UnacceptedFromAddresses []string `` /* 132-byte string literal not displayed */
	// coins is the amount currently in quarantined for the two addresses.
	Coins github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
	// declined is true if these funds were previously declined.
	Declined bool `protobuf:"varint,4,opt,name=declined,proto3" json:"declined,omitempty"`
}

QuarantinedFunds defines structure that represents coins that have been quarantined.

func NewQuarantinedFunds

func NewQuarantinedFunds(toAddr sdk.AccAddress, fromAddrs []sdk.AccAddress, coins sdk.Coins, declined bool) *QuarantinedFunds

NewQuarantinedFunds creates a new quarantined funds object.

func (*QuarantinedFunds) Descriptor

func (*QuarantinedFunds) Descriptor() ([]byte, []int)

func (*QuarantinedFunds) GetCoins

func (*QuarantinedFunds) GetDeclined

func (m *QuarantinedFunds) GetDeclined() bool

func (*QuarantinedFunds) GetToAddress

func (m *QuarantinedFunds) GetToAddress() string

func (*QuarantinedFunds) GetUnacceptedFromAddresses

func (m *QuarantinedFunds) GetUnacceptedFromAddresses() []string

func (*QuarantinedFunds) Marshal

func (m *QuarantinedFunds) Marshal() (dAtA []byte, err error)

func (*QuarantinedFunds) MarshalTo

func (m *QuarantinedFunds) MarshalTo(dAtA []byte) (int, error)

func (*QuarantinedFunds) MarshalToSizedBuffer

func (m *QuarantinedFunds) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuarantinedFunds) ProtoMessage

func (*QuarantinedFunds) ProtoMessage()

func (*QuarantinedFunds) Reset

func (m *QuarantinedFunds) Reset()

func (*QuarantinedFunds) Size

func (m *QuarantinedFunds) Size() (n int)

func (*QuarantinedFunds) String

func (m *QuarantinedFunds) String() string

func (*QuarantinedFunds) Unmarshal

func (m *QuarantinedFunds) Unmarshal(dAtA []byte) error

func (QuarantinedFunds) Validate

func (f QuarantinedFunds) Validate() error

Validate does simple stateless validation of these quarantined funds.

func (*QuarantinedFunds) XXX_DiscardUnknown

func (m *QuarantinedFunds) XXX_DiscardUnknown()

func (*QuarantinedFunds) XXX_Marshal

func (m *QuarantinedFunds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuarantinedFunds) XXX_Merge

func (m *QuarantinedFunds) XXX_Merge(src proto.Message)

func (*QuarantinedFunds) XXX_Size

func (m *QuarantinedFunds) XXX_Size() int

func (*QuarantinedFunds) XXX_Unmarshal

func (m *QuarantinedFunds) XXX_Unmarshal(b []byte) error

type QueryAutoResponsesRequest

type QueryAutoResponsesRequest struct {
	// to_address is the quarantined account to get info on.
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// from_address is an optional sender address to limit results.
	FromAddress string `protobuf:"bytes,2,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	// pagination defines optional pagination parameters for the request.
	Pagination *query.PageRequest `protobuf:"bytes,99,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAutoResponsesRequest defines the RPC request for getting auto-response settings for an address.

func (*QueryAutoResponsesRequest) Descriptor

func (*QueryAutoResponsesRequest) Descriptor() ([]byte, []int)

func (*QueryAutoResponsesRequest) GetFromAddress

func (m *QueryAutoResponsesRequest) GetFromAddress() string

func (*QueryAutoResponsesRequest) GetPagination

func (m *QueryAutoResponsesRequest) GetPagination() *query.PageRequest

func (*QueryAutoResponsesRequest) GetToAddress

func (m *QueryAutoResponsesRequest) GetToAddress() string

func (*QueryAutoResponsesRequest) Marshal

func (m *QueryAutoResponsesRequest) Marshal() (dAtA []byte, err error)

func (*QueryAutoResponsesRequest) MarshalTo

func (m *QueryAutoResponsesRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAutoResponsesRequest) MarshalToSizedBuffer

func (m *QueryAutoResponsesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAutoResponsesRequest) ProtoMessage

func (*QueryAutoResponsesRequest) ProtoMessage()

func (*QueryAutoResponsesRequest) Reset

func (m *QueryAutoResponsesRequest) Reset()

func (*QueryAutoResponsesRequest) Size

func (m *QueryAutoResponsesRequest) Size() (n int)

func (*QueryAutoResponsesRequest) String

func (m *QueryAutoResponsesRequest) String() string

func (*QueryAutoResponsesRequest) Unmarshal

func (m *QueryAutoResponsesRequest) Unmarshal(dAtA []byte) error

func (*QueryAutoResponsesRequest) XXX_DiscardUnknown

func (m *QueryAutoResponsesRequest) XXX_DiscardUnknown()

func (*QueryAutoResponsesRequest) XXX_Marshal

func (m *QueryAutoResponsesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAutoResponsesRequest) XXX_Merge

func (m *QueryAutoResponsesRequest) XXX_Merge(src proto.Message)

func (*QueryAutoResponsesRequest) XXX_Size

func (m *QueryAutoResponsesRequest) XXX_Size() int

func (*QueryAutoResponsesRequest) XXX_Unmarshal

func (m *QueryAutoResponsesRequest) XXX_Unmarshal(b []byte) error

type QueryAutoResponsesResponse

type QueryAutoResponsesResponse struct {
	// auto_responses are the auto-response entries from the provided query.
	AutoResponses []*AutoResponseEntry `protobuf:"bytes,1,rep,name=auto_responses,json=autoResponses,proto3" json:"auto_responses,omitempty"`
	// pagination defines the pagination parameters of the response.
	Pagination *query.PageResponse `protobuf:"bytes,99,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAutoResponsesResponse defines the RPC response of a AutoResponses query.

func (*QueryAutoResponsesResponse) Descriptor

func (*QueryAutoResponsesResponse) Descriptor() ([]byte, []int)

func (*QueryAutoResponsesResponse) GetAutoResponses

func (m *QueryAutoResponsesResponse) GetAutoResponses() []*AutoResponseEntry

func (*QueryAutoResponsesResponse) GetPagination

func (m *QueryAutoResponsesResponse) GetPagination() *query.PageResponse

func (*QueryAutoResponsesResponse) Marshal

func (m *QueryAutoResponsesResponse) Marshal() (dAtA []byte, err error)

func (*QueryAutoResponsesResponse) MarshalTo

func (m *QueryAutoResponsesResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAutoResponsesResponse) MarshalToSizedBuffer

func (m *QueryAutoResponsesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAutoResponsesResponse) ProtoMessage

func (*QueryAutoResponsesResponse) ProtoMessage()

func (*QueryAutoResponsesResponse) Reset

func (m *QueryAutoResponsesResponse) Reset()

func (*QueryAutoResponsesResponse) Size

func (m *QueryAutoResponsesResponse) Size() (n int)

func (*QueryAutoResponsesResponse) String

func (m *QueryAutoResponsesResponse) String() string

func (*QueryAutoResponsesResponse) Unmarshal

func (m *QueryAutoResponsesResponse) Unmarshal(dAtA []byte) error

func (*QueryAutoResponsesResponse) XXX_DiscardUnknown

func (m *QueryAutoResponsesResponse) XXX_DiscardUnknown()

func (*QueryAutoResponsesResponse) XXX_Marshal

func (m *QueryAutoResponsesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAutoResponsesResponse) XXX_Merge

func (m *QueryAutoResponsesResponse) XXX_Merge(src proto.Message)

func (*QueryAutoResponsesResponse) XXX_Size

func (m *QueryAutoResponsesResponse) XXX_Size() int

func (*QueryAutoResponsesResponse) XXX_Unmarshal

func (m *QueryAutoResponsesResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// IsQuarantined checks if an account has opted into quarantine.
	IsQuarantined(ctx context.Context, in *QueryIsQuarantinedRequest, opts ...grpc.CallOption) (*QueryIsQuarantinedResponse, error)
	// QuarantinedFunds gets information about funds that have been quarantined.
	//
	// If both a to_address and from_address are provided, any such quarantined funds will be returned regardless of
	// whether they've been declined. If only a to_address is provided, the unaccepted and undeclined funds waiting on a
	// response from to_address will be returned. If neither a to_address nor from_address is provided, all non-declined
	// quarantined funds for any address will be returned. The request is invalid if only a from_address is provided.
	QuarantinedFunds(ctx context.Context, in *QueryQuarantinedFundsRequest, opts ...grpc.CallOption) (*QueryQuarantinedFundsResponse, error)
	// AutoResponses gets the auto-response settings for a quarantined account.
	//
	// The to_address is required. If a from_address is provided only the auto response for that from_address will be
	// returned. If no from_address is provided, all auto-response settings for the given to_address will be returned.
	AutoResponses(ctx context.Context, in *QueryAutoResponsesRequest, opts ...grpc.CallOption) (*QueryAutoResponsesResponse, 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 QueryIsQuarantinedRequest

type QueryIsQuarantinedRequest struct {
	// to_address is the address to check.
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
}

QueryIsQuarantinedRequest defines the RPC request for checking if an account has opted into quarantine.

func (*QueryIsQuarantinedRequest) Descriptor

func (*QueryIsQuarantinedRequest) Descriptor() ([]byte, []int)

func (*QueryIsQuarantinedRequest) GetToAddress

func (m *QueryIsQuarantinedRequest) GetToAddress() string

func (*QueryIsQuarantinedRequest) Marshal

func (m *QueryIsQuarantinedRequest) Marshal() (dAtA []byte, err error)

func (*QueryIsQuarantinedRequest) MarshalTo

func (m *QueryIsQuarantinedRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryIsQuarantinedRequest) MarshalToSizedBuffer

func (m *QueryIsQuarantinedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryIsQuarantinedRequest) ProtoMessage

func (*QueryIsQuarantinedRequest) ProtoMessage()

func (*QueryIsQuarantinedRequest) Reset

func (m *QueryIsQuarantinedRequest) Reset()

func (*QueryIsQuarantinedRequest) Size

func (m *QueryIsQuarantinedRequest) Size() (n int)

func (*QueryIsQuarantinedRequest) String

func (m *QueryIsQuarantinedRequest) String() string

func (*QueryIsQuarantinedRequest) Unmarshal

func (m *QueryIsQuarantinedRequest) Unmarshal(dAtA []byte) error

func (*QueryIsQuarantinedRequest) XXX_DiscardUnknown

func (m *QueryIsQuarantinedRequest) XXX_DiscardUnknown()

func (*QueryIsQuarantinedRequest) XXX_Marshal

func (m *QueryIsQuarantinedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryIsQuarantinedRequest) XXX_Merge

func (m *QueryIsQuarantinedRequest) XXX_Merge(src proto.Message)

func (*QueryIsQuarantinedRequest) XXX_Size

func (m *QueryIsQuarantinedRequest) XXX_Size() int

func (*QueryIsQuarantinedRequest) XXX_Unmarshal

func (m *QueryIsQuarantinedRequest) XXX_Unmarshal(b []byte) error

type QueryIsQuarantinedResponse

type QueryIsQuarantinedResponse struct {
	// is_quarantined is true if the to_address has opted into quarantine.
	IsQuarantined bool `protobuf:"varint,1,opt,name=is_quarantined,json=isQuarantined,proto3" json:"is_quarantined,omitempty"`
}

QueryIsQuarantinedResponse defines the RPC response of an IsQuarantined query.

func (*QueryIsQuarantinedResponse) Descriptor

func (*QueryIsQuarantinedResponse) Descriptor() ([]byte, []int)

func (*QueryIsQuarantinedResponse) GetIsQuarantined

func (m *QueryIsQuarantinedResponse) GetIsQuarantined() bool

func (*QueryIsQuarantinedResponse) Marshal

func (m *QueryIsQuarantinedResponse) Marshal() (dAtA []byte, err error)

func (*QueryIsQuarantinedResponse) MarshalTo

func (m *QueryIsQuarantinedResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryIsQuarantinedResponse) MarshalToSizedBuffer

func (m *QueryIsQuarantinedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryIsQuarantinedResponse) ProtoMessage

func (*QueryIsQuarantinedResponse) ProtoMessage()

func (*QueryIsQuarantinedResponse) Reset

func (m *QueryIsQuarantinedResponse) Reset()

func (*QueryIsQuarantinedResponse) Size

func (m *QueryIsQuarantinedResponse) Size() (n int)

func (*QueryIsQuarantinedResponse) String

func (m *QueryIsQuarantinedResponse) String() string

func (*QueryIsQuarantinedResponse) Unmarshal

func (m *QueryIsQuarantinedResponse) Unmarshal(dAtA []byte) error

func (*QueryIsQuarantinedResponse) XXX_DiscardUnknown

func (m *QueryIsQuarantinedResponse) XXX_DiscardUnknown()

func (*QueryIsQuarantinedResponse) XXX_Marshal

func (m *QueryIsQuarantinedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryIsQuarantinedResponse) XXX_Merge

func (m *QueryIsQuarantinedResponse) XXX_Merge(src proto.Message)

func (*QueryIsQuarantinedResponse) XXX_Size

func (m *QueryIsQuarantinedResponse) XXX_Size() int

func (*QueryIsQuarantinedResponse) XXX_Unmarshal

func (m *QueryIsQuarantinedResponse) XXX_Unmarshal(b []byte) error

type QueryQuarantinedFundsRequest

type QueryQuarantinedFundsRequest struct {
	// to_address is the intended recipient of the coins that have been quarantined.
	ToAddress string `protobuf:"bytes,1,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	// from_address is the sender of the coins. If provided, a to_address must also be provided.
	FromAddress string `protobuf:"bytes,2,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"`
	// pagination defines optional pagination parameters for the request.
	Pagination *query.PageRequest `protobuf:"bytes,99,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryQuarantinedFundsRequest defines the RPC request for looking up quarantined funds.

func (*QueryQuarantinedFundsRequest) Descriptor

func (*QueryQuarantinedFundsRequest) Descriptor() ([]byte, []int)

func (*QueryQuarantinedFundsRequest) GetFromAddress

func (m *QueryQuarantinedFundsRequest) GetFromAddress() string

func (*QueryQuarantinedFundsRequest) GetPagination

func (m *QueryQuarantinedFundsRequest) GetPagination() *query.PageRequest

func (*QueryQuarantinedFundsRequest) GetToAddress

func (m *QueryQuarantinedFundsRequest) GetToAddress() string

func (*QueryQuarantinedFundsRequest) Marshal

func (m *QueryQuarantinedFundsRequest) Marshal() (dAtA []byte, err error)

func (*QueryQuarantinedFundsRequest) MarshalTo

func (m *QueryQuarantinedFundsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryQuarantinedFundsRequest) MarshalToSizedBuffer

func (m *QueryQuarantinedFundsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryQuarantinedFundsRequest) ProtoMessage

func (*QueryQuarantinedFundsRequest) ProtoMessage()

func (*QueryQuarantinedFundsRequest) Reset

func (m *QueryQuarantinedFundsRequest) Reset()

func (*QueryQuarantinedFundsRequest) Size

func (m *QueryQuarantinedFundsRequest) Size() (n int)

func (*QueryQuarantinedFundsRequest) String

func (*QueryQuarantinedFundsRequest) Unmarshal

func (m *QueryQuarantinedFundsRequest) Unmarshal(dAtA []byte) error

func (*QueryQuarantinedFundsRequest) XXX_DiscardUnknown

func (m *QueryQuarantinedFundsRequest) XXX_DiscardUnknown()

func (*QueryQuarantinedFundsRequest) XXX_Marshal

func (m *QueryQuarantinedFundsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryQuarantinedFundsRequest) XXX_Merge

func (m *QueryQuarantinedFundsRequest) XXX_Merge(src proto.Message)

func (*QueryQuarantinedFundsRequest) XXX_Size

func (m *QueryQuarantinedFundsRequest) XXX_Size() int

func (*QueryQuarantinedFundsRequest) XXX_Unmarshal

func (m *QueryQuarantinedFundsRequest) XXX_Unmarshal(b []byte) error

type QueryQuarantinedFundsResponse

type QueryQuarantinedFundsResponse struct {
	// quarantinedFunds is info about coins sitting in quarantine.
	QuarantinedFunds []*QuarantinedFunds `protobuf:"bytes,1,rep,name=quarantinedFunds,proto3" json:"quarantinedFunds,omitempty"`
	// pagination defines the pagination parameters of the response.
	Pagination *query.PageResponse `protobuf:"bytes,99,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryQuarantinedFundsResponse defines the RPC response of a QuarantinedFunds query.

func (*QueryQuarantinedFundsResponse) Descriptor

func (*QueryQuarantinedFundsResponse) Descriptor() ([]byte, []int)

func (*QueryQuarantinedFundsResponse) GetPagination

func (m *QueryQuarantinedFundsResponse) GetPagination() *query.PageResponse

func (*QueryQuarantinedFundsResponse) GetQuarantinedFunds

func (m *QueryQuarantinedFundsResponse) GetQuarantinedFunds() []*QuarantinedFunds

func (*QueryQuarantinedFundsResponse) Marshal

func (m *QueryQuarantinedFundsResponse) Marshal() (dAtA []byte, err error)

func (*QueryQuarantinedFundsResponse) MarshalTo

func (m *QueryQuarantinedFundsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryQuarantinedFundsResponse) MarshalToSizedBuffer

func (m *QueryQuarantinedFundsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryQuarantinedFundsResponse) ProtoMessage

func (*QueryQuarantinedFundsResponse) ProtoMessage()

func (*QueryQuarantinedFundsResponse) Reset

func (m *QueryQuarantinedFundsResponse) Reset()

func (*QueryQuarantinedFundsResponse) Size

func (m *QueryQuarantinedFundsResponse) Size() (n int)

func (*QueryQuarantinedFundsResponse) String

func (*QueryQuarantinedFundsResponse) Unmarshal

func (m *QueryQuarantinedFundsResponse) Unmarshal(dAtA []byte) error

func (*QueryQuarantinedFundsResponse) XXX_DiscardUnknown

func (m *QueryQuarantinedFundsResponse) XXX_DiscardUnknown()

func (*QueryQuarantinedFundsResponse) XXX_Marshal

func (m *QueryQuarantinedFundsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryQuarantinedFundsResponse) XXX_Merge

func (m *QueryQuarantinedFundsResponse) XXX_Merge(src proto.Message)

func (*QueryQuarantinedFundsResponse) XXX_Size

func (m *QueryQuarantinedFundsResponse) XXX_Size() int

func (*QueryQuarantinedFundsResponse) XXX_Unmarshal

func (m *QueryQuarantinedFundsResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// IsQuarantined checks if an account has opted into quarantine.
	IsQuarantined(context.Context, *QueryIsQuarantinedRequest) (*QueryIsQuarantinedResponse, error)
	// QuarantinedFunds gets information about funds that have been quarantined.
	//
	// If both a to_address and from_address are provided, any such quarantined funds will be returned regardless of
	// whether they've been declined. If only a to_address is provided, the unaccepted and undeclined funds waiting on a
	// response from to_address will be returned. If neither a to_address nor from_address is provided, all non-declined
	// quarantined funds for any address will be returned. The request is invalid if only a from_address is provided.
	QuarantinedFunds(context.Context, *QueryQuarantinedFundsRequest) (*QueryQuarantinedFundsResponse, error)
	// AutoResponses gets the auto-response settings for a quarantined account.
	//
	// The to_address is required. If a from_address is provided only the auto response for that from_address will be
	// returned. If no from_address is provided, all auto-response settings for the given to_address will be returned.
	AutoResponses(context.Context, *QueryAutoResponsesRequest) (*QueryAutoResponsesResponse, 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) Accept

func (*UnimplementedMsgServer) Decline

func (*UnimplementedMsgServer) OptIn

func (*UnimplementedMsgServer) OptOut

func (*UnimplementedMsgServer) UpdateAutoResponses

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AutoResponses

func (*UnimplementedQueryServer) IsQuarantined

func (*UnimplementedQueryServer) QuarantinedFunds

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL