types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 37 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "nyks"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_nyks"
)
View Source
const (
	BtcPublicKeyLen = 66
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgSeenBtcChainTip = "seen_btc_chain_tip"
View Source
const TypeMsgSetDelegateAddresses = "set_delegate_addresses"

Variables

View Source
var (
	ErrInvalidLengthAttestation        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAttestation          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAttestation = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInternal                = sdkerrors.Register(ModuleName, 1, "internal")
	ErrDuplicate               = sdkerrors.Register(ModuleName, 2, "duplicate")
	ErrInvalid                 = sdkerrors.Register(ModuleName, 3, "invalid")
	ErrTimeout                 = sdkerrors.Register(ModuleName, 4, "timeout")
	ErrResetDelegateKeys       = sdkerrors.Register(ModuleName, 5, "can not set btcOracle address mapping more than once")
	ErrInvalidBtcPublicKey     = sdkerrors.Register(ModuleName, 6, "invalid btc public key")
	ErrNonContiguousEventNonce = sdkerrors.Register(ModuleName, 9, "non contiguous event nonce, expected: %v received: %v")
)

x/nyks module sentinel errors

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 (
	// AttestationVotesPowerThreshold threshold of votes power to succeed
	AttestationVotesPowerThreshold = sdk.NewInt(66)

	// AttestationVoteCountThreshold threshold of votes count to succeed
	// We use this for SeenBtcChainTip type proposal
	AttestationVoteCountThreshold = sdk.NewInt(66)
)
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 (
	// KeyOrchestratorAddress indexes the validator keys for an orchestrator
	KeyOrchestratorAddress = HashString("KeyOrchestratorAddress")

	// BtcPublicKeyByValidatorKey indexes cosmos validator account addresses
	BtcPublicKeyByValidatorKey = HashString("BtcPublicKeyValidatorKey")

	// ValidatorByBtcPublicKeyKey is used to index btc validator key
	ValidatorByBtcPublicKeyKey = HashString("ValidatorByBtcPublicKeyKey")

	// OracleAttestationKey attestation used in GetAttestationKey
	OracleAttestationKey = HashString("OracleAttestationKey")

	// LastBlockHeightByValidatorKey indexes lateset block height by validator
	LastBlockHeightByValidatorKey = HashString("LastBlockHeightByValidatorKey")

	// LastObservedBlockHeightKey indexes the latest block height
	LastObservedBlockHeightKey = HashString("LastObservedBlockHeightKey")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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 (
	ErrInvalidLengthSatoshitest        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSatoshitest          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSatoshitest = 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 ProposalType_name = map[int32]string{
	0: "PROPOSAL_TYPE_BTC_CHAINTIP",
	1: "PROPOSAL_TYPE_BTC_DEPOSIT",
	2: "PROPOSAL_TYPE_SWEEP_PROPOSAL",
	3: "PROPOSAL_TYPE_CONFIRM_WITHDRAW",
}
View Source
var ProposalType_value = map[string]int32{
	"PROPOSAL_TYPE_BTC_CHAINTIP":     0,
	"PROPOSAL_TYPE_BTC_DEPOSIT":      1,
	"PROPOSAL_TYPE_SWEEP_PROPOSAL":   2,
	"PROPOSAL_TYPE_CONFIRM_WITHDRAW": 3,
}

Functions

func AppendBytes

func AppendBytes(args ...[]byte) []byte

func BtcAddrLessThan

func BtcAddrLessThan(e BtcPublicKey, o BtcPublicKey) bool

BtcAddrLessThan migrates the Btc PublicKey less than function

func CreateTxFromHex added in v0.0.2

func CreateTxFromHex(txHex string) (*wire.MsgTx, error)

CreateTxFromHex creates a btc transaction object from a hex string

func GetAttestationKey

func GetAttestationKey(btcBlockHeight uint64, proposalHash []byte) []byte

GetAttestationKey returns the following key format prefix btc-block-height proposal-details-hash [0x0][0 0 0 0 0 0 0 1][fd1af8cec6c67fcf156f1b61fdf91ebc04d05484d007436e75342fc05bbff35a]

func GetBtcPublicKeyByValidatorKey

func GetBtcPublicKeyByValidatorKey(validator sdk.ValAddress) []byte

GetBtcPublicKeyByValidatorKey returns the following key format prefix cosmos-validator [HashString("BtcPublicKeyByValidatorKey")][twilightvaloper1ahx7f8wyertuus9r20284ej0asrs085ceqtfnm]

func GetLastBlockHeightByValidatorKey

func GetLastBlockHeightByValidatorKey(validator sdk.ValAddress) []byte

GetLastBlockHeightByValidatorKey indexes lateset btc-block-height by validator

func GetOrchestratorAddressKey

func GetOrchestratorAddressKey(orc sdk.AccAddress) []byte

GetOrchestratorAddressKey returns the following key format prefix orchestrator address [HashString("KeyOrchestratorAddress")][twilight1ahx7f8wyertuus9r20284ej0asrs085ceqtfnm]

func GetValidatorByBtcPublicKeyKey

func GetValidatorByBtcPublicKeyKey(btcPk BtcPublicKey) []byte

GetValidatorByBtcPublicKeyKeyy returns the following key format prefix cosmos-validator HashString("ValidatorByBtcPublicKeyKey")[0xAb5801a7D398351b8bE11C439e05C5B3259aeC9B]

func HashString

func HashString(input string) []byte

Hashing string using cryptographic MD5 function returns 128bit(16byte) value

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 UInt64Bytes

func UInt64Bytes(n uint64) []byte

UInt64Bytes uses the SDK byte marshaling to encode a uint64

func UInt64FromBytes

func UInt64FromBytes(s []byte) uint64

UInt64FromBytes create uint from binary big endian representation

func ValidateBtcPublicKey

func ValidateBtcPublicKey(PublicKey string) error

Validates the input string as an Btc PublicKey PublicKeyes must not be empty, have 64 character length, start with 0x and have 40 remaining characters in [0-9a-fA-F]

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
	GetModuleAddress(moduleName string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type Attestation

type Attestation struct {
	Observed bool       `protobuf:"varint,1,opt,name=observed,proto3" json:"observed,omitempty"`
	Votes    []string   `protobuf:"bytes,2,rep,name=votes,proto3" json:"votes,omitempty"`
	Height   uint64     `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	Proposal *types.Any `protobuf:"bytes,4,opt,name=proposal,proto3" json:"proposal,omitempty"`
}

Attestation is an aggregate of `proposals` that eventually becomes `observed` by all orchestrators OBSERVED: Observed indicates that >67% of validators have attested to the event, and that the event should be executed by the state machine

The actual content of the proposals is passed in with the transaction making the proposal and then passed through the call stack alongside the attestation while it is processed the key in which the attestation is stored is keyed on the exact details of the proposal but there is no reason to store those exact details becuause the next message sender will kindly provide you with them.

func (*Attestation) Descriptor

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

func (*Attestation) GetHeight

func (m *Attestation) GetHeight() uint64

func (*Attestation) GetObserved

func (m *Attestation) GetObserved() bool

func (*Attestation) GetProposal

func (m *Attestation) GetProposal() *types.Any

func (*Attestation) GetVotes

func (m *Attestation) GetVotes() []string

func (*Attestation) Marshal

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

func (*Attestation) MarshalTo

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

func (*Attestation) MarshalToSizedBuffer

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

func (*Attestation) ProtoMessage

func (*Attestation) ProtoMessage()

func (*Attestation) Reset

func (m *Attestation) Reset()

func (*Attestation) Size

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

func (*Attestation) String

func (m *Attestation) String() string

func (*Attestation) Unmarshal

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

func (*Attestation) XXX_DiscardUnknown

func (m *Attestation) XXX_DiscardUnknown()

func (*Attestation) XXX_Marshal

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

func (*Attestation) XXX_Merge

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

func (*Attestation) XXX_Size

func (m *Attestation) XXX_Size() int

func (*Attestation) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	//SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type BridgeKeeper

type BridgeKeeper interface {
	//GetValidatorAddressForJudgeAddress(ctx sdk.Context, judgeAddress sdk.AccAddress) (sdk.AccAddress, error)
	CheckandConfirmUserDeposit(ctx sdk.Context, twilightAddress sdk.AccAddress) error
}

type BtcProposal

type BtcProposal interface {
	// The block height that the proposal (checkpoint event on btc chain) occurred on.
	GetHeight() uint64
	// the delegate address of the proposar (orchestrator)
	GetProposarOrchestrator() sdk.AccAddress
	// Which type of proposal this is - this is for future functionality
	GetType() ProposalType
	ValidateBasic() error
	// The proposal hash of this proposal. This is used to store these proposals and also used to check if two different
	// validators proposals agree. Therefore it's extremely important that this include all elements of the proposal
	// with the exception of the orchestrator who sent it in, which will be used as a different part of the index
	ProposalHash() ([]byte, error)
}

BtcProposal represents a proposal of the latest btc chaintip

type BtcPublicKey

type BtcPublicKey struct {
	BtcPublicKey string
}

Regular BtcPublicKey

func NewBtcPublicKey

func NewBtcPublicKey(PublicKey string) (*BtcPublicKey, error)

Creates a new BtcPublicKey from a string, performing validation and returning any validation errors

func NewBtcPublicKeyFromBytes

func NewBtcPublicKeyFromBytes(publicKeyBytes []byte) (*BtcPublicKey, error)

Converts a stored byte btc public key into an encoded string THIS FUNCTION NEEDS TESTING

func (BtcPublicKey) GetBtcPublicKey

func (ea BtcPublicKey) GetBtcPublicKey() string

Returns the contained PublicKey as a string

func (BtcPublicKey) SetBtcPublicKey

func (ea BtcPublicKey) SetBtcPublicKey(PublicKey string) error

Sets the contained PublicKey, performing validation before updating the value

func (BtcPublicKey) ValidateBasic

func (ea BtcPublicKey) ValidateBasic() error

Performs validation on the wrapped string

type EventObservation

type EventObservation struct {
	AttestationType string `protobuf:"bytes,1,opt,name=attestation_type,json=attestationType,proto3" json:"attestation_type,omitempty"`
	AttestationId   string `protobuf:"bytes,2,opt,name=attestation_id,json=attestationId,proto3" json:"attestation_id,omitempty"`
}

func (*EventObservation) Descriptor

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

func (*EventObservation) GetAttestationId

func (m *EventObservation) GetAttestationId() string

func (*EventObservation) GetAttestationType

func (m *EventObservation) GetAttestationType() string

func (*EventObservation) Marshal

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

func (*EventObservation) MarshalTo

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

func (*EventObservation) MarshalToSizedBuffer

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

func (*EventObservation) ProtoMessage

func (*EventObservation) ProtoMessage()

func (*EventObservation) Reset

func (m *EventObservation) Reset()

func (*EventObservation) Size

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

func (*EventObservation) String

func (m *EventObservation) String() string

func (*EventObservation) Unmarshal

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

func (*EventObservation) XXX_DiscardUnknown

func (m *EventObservation) XXX_DiscardUnknown()

func (*EventObservation) XXX_Marshal

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

func (*EventObservation) XXX_Merge

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

func (*EventObservation) XXX_Size

func (m *EventObservation) XXX_Size() int

func (*EventObservation) XXX_Unmarshal

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

type EventProposal

type EventProposal struct {
	Message       string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	ProposalHash  string `protobuf:"bytes,2,opt,name=proposal_hash,json=proposalHash,proto3" json:"proposal_hash,omitempty"`
	AttestationId string `protobuf:"bytes,3,opt,name=attestation_id,json=attestationId,proto3" json:"attestation_id,omitempty"`
}

func (*EventProposal) Descriptor

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

func (*EventProposal) GetAttestationId

func (m *EventProposal) GetAttestationId() string

func (*EventProposal) GetMessage

func (m *EventProposal) GetMessage() string

func (*EventProposal) GetProposalHash

func (m *EventProposal) GetProposalHash() string

func (*EventProposal) Marshal

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

func (*EventProposal) MarshalTo

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

func (*EventProposal) MarshalToSizedBuffer

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

func (*EventProposal) ProtoMessage

func (*EventProposal) ProtoMessage()

func (*EventProposal) Reset

func (m *EventProposal) Reset()

func (*EventProposal) Size

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

func (*EventProposal) String

func (m *EventProposal) String() string

func (*EventProposal) Unmarshal

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

func (*EventProposal) XXX_DiscardUnknown

func (m *EventProposal) XXX_DiscardUnknown()

func (*EventProposal) XXX_Marshal

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

func (*EventProposal) XXX_Merge

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

func (*EventProposal) XXX_Size

func (m *EventProposal) XXX_Size() int

func (*EventProposal) XXX_Unmarshal

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

type EventSetDelegateAddresses

type EventSetDelegateAddresses struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

func (*EventSetDelegateAddresses) Descriptor

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

func (*EventSetDelegateAddresses) GetAddress

func (m *EventSetDelegateAddresses) GetAddress() string

func (*EventSetDelegateAddresses) GetMessage

func (m *EventSetDelegateAddresses) GetMessage() string

func (*EventSetDelegateAddresses) Marshal

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

func (*EventSetDelegateAddresses) MarshalTo

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

func (*EventSetDelegateAddresses) MarshalToSizedBuffer

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

func (*EventSetDelegateAddresses) ProtoMessage

func (*EventSetDelegateAddresses) ProtoMessage()

func (*EventSetDelegateAddresses) Reset

func (m *EventSetDelegateAddresses) Reset()

func (*EventSetDelegateAddresses) Size

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

func (*EventSetDelegateAddresses) String

func (m *EventSetDelegateAddresses) String() string

func (*EventSetDelegateAddresses) Unmarshal

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

func (*EventSetDelegateAddresses) XXX_DiscardUnknown

func (m *EventSetDelegateAddresses) XXX_DiscardUnknown()

func (*EventSetDelegateAddresses) XXX_Marshal

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

func (*EventSetDelegateAddresses) XXX_Merge

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

func (*EventSetDelegateAddresses) XXX_Size

func (m *EventSetDelegateAddresses) XXX_Size() int

func (*EventSetDelegateAddresses) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

GenesisState defines the nyks module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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 genesis state validation returning an error upon any failure.

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 IndividualTwilightReserveAccounter

type IndividualTwilightReserveAccounter interface {
	// Define the methods you need from the volt.IndividualTwilightReserveAccount type.
	GetTwilightAddress() string
	GetBtcValue() uint64
}

IndividualTwilightReserveAccounter is an interface that describes the methods required from the IndividualTwilightReserveAccount type in the volt module.

type MsgClient

type MsgClient interface {
	SetDelegateAddresses(ctx context.Context, in *MsgSetDelegateAddresses, opts ...grpc.CallOption) (*MsgSetDelegateAddressesResponse, error)
	SeenBtcChainTip(ctx context.Context, in *MsgSeenBtcChainTip, opts ...grpc.CallOption) (*MsgSeenBtcChainTipResponse, 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 MsgSeenBtcChainTip

type MsgSeenBtcChainTip struct {
	Height           uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Hash             string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	BtcOracleAddress string `protobuf:"bytes,3,opt,name=btcOracleAddress,proto3" json:"btcOracleAddress,omitempty"`
}

func NewMsgSeenBtcChainTip

func NewMsgSeenBtcChainTip(height uint64, hash string, btcOracleAddress string) *MsgSeenBtcChainTip

func (*MsgSeenBtcChainTip) Descriptor

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

func (*MsgSeenBtcChainTip) GetBtcOracleAddress

func (m *MsgSeenBtcChainTip) GetBtcOracleAddress() string

func (*MsgSeenBtcChainTip) GetHash

func (m *MsgSeenBtcChainTip) GetHash() string

func (*MsgSeenBtcChainTip) GetHeight

func (m *MsgSeenBtcChainTip) GetHeight() uint64

func (MsgSeenBtcChainTip) GetProposarOrchestrator

func (msg MsgSeenBtcChainTip) GetProposarOrchestrator() sdk.AccAddress

func (*MsgSeenBtcChainTip) GetSignBytes

func (msg *MsgSeenBtcChainTip) GetSignBytes() []byte

func (*MsgSeenBtcChainTip) GetSigners

func (msg *MsgSeenBtcChainTip) GetSigners() []sdk.AccAddress

func (*MsgSeenBtcChainTip) GetType

func (msg *MsgSeenBtcChainTip) GetType() ProposalType

GetType returns the claim type

func (*MsgSeenBtcChainTip) Marshal

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

func (*MsgSeenBtcChainTip) MarshalTo

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

func (*MsgSeenBtcChainTip) MarshalToSizedBuffer

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

func (*MsgSeenBtcChainTip) ProposalHash

func (msg *MsgSeenBtcChainTip) ProposalHash() ([]byte, error)

func (*MsgSeenBtcChainTip) ProtoMessage

func (*MsgSeenBtcChainTip) ProtoMessage()

func (*MsgSeenBtcChainTip) Reset

func (m *MsgSeenBtcChainTip) Reset()

func (*MsgSeenBtcChainTip) Route

func (msg *MsgSeenBtcChainTip) Route() string

func (*MsgSeenBtcChainTip) Size

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

func (*MsgSeenBtcChainTip) String

func (m *MsgSeenBtcChainTip) String() string

func (*MsgSeenBtcChainTip) Type

func (msg *MsgSeenBtcChainTip) Type() string

func (*MsgSeenBtcChainTip) Unmarshal

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

func (*MsgSeenBtcChainTip) ValidateBasic

func (msg *MsgSeenBtcChainTip) ValidateBasic() error

func (*MsgSeenBtcChainTip) XXX_DiscardUnknown

func (m *MsgSeenBtcChainTip) XXX_DiscardUnknown()

func (*MsgSeenBtcChainTip) XXX_Marshal

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

func (*MsgSeenBtcChainTip) XXX_Merge

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

func (*MsgSeenBtcChainTip) XXX_Size

func (m *MsgSeenBtcChainTip) XXX_Size() int

func (*MsgSeenBtcChainTip) XXX_Unmarshal

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

type MsgSeenBtcChainTipResponse

type MsgSeenBtcChainTipResponse struct {
}

func (*MsgSeenBtcChainTipResponse) Descriptor

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

func (*MsgSeenBtcChainTipResponse) Marshal

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

func (*MsgSeenBtcChainTipResponse) MarshalTo

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

func (*MsgSeenBtcChainTipResponse) MarshalToSizedBuffer

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

func (*MsgSeenBtcChainTipResponse) ProtoMessage

func (*MsgSeenBtcChainTipResponse) ProtoMessage()

func (*MsgSeenBtcChainTipResponse) Reset

func (m *MsgSeenBtcChainTipResponse) Reset()

func (*MsgSeenBtcChainTipResponse) Size

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

func (*MsgSeenBtcChainTipResponse) String

func (m *MsgSeenBtcChainTipResponse) String() string

func (*MsgSeenBtcChainTipResponse) Unmarshal

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

func (*MsgSeenBtcChainTipResponse) XXX_DiscardUnknown

func (m *MsgSeenBtcChainTipResponse) XXX_DiscardUnknown()

func (*MsgSeenBtcChainTipResponse) XXX_Marshal

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

func (*MsgSeenBtcChainTipResponse) XXX_Merge

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

func (*MsgSeenBtcChainTipResponse) XXX_Size

func (m *MsgSeenBtcChainTipResponse) XXX_Size() int

func (*MsgSeenBtcChainTipResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	SetDelegateAddresses(context.Context, *MsgSetDelegateAddresses) (*MsgSetDelegateAddressesResponse, error)
	SeenBtcChainTip(context.Context, *MsgSeenBtcChainTip) (*MsgSeenBtcChainTipResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetDelegateAddresses

type MsgSetDelegateAddresses struct {
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validatorAddress,proto3" json:"validatorAddress,omitempty"`
	BtcOracleAddress string `protobuf:"bytes,3,opt,name=btcOracleAddress,proto3" json:"btcOracleAddress,omitempty"`
	BtcPublicKey     string `protobuf:"bytes,4,opt,name=btcPublicKey,proto3" json:"btcPublicKey,omitempty"`
}

func NewMsgSetDelegateAddresses

func NewMsgSetDelegateAddresses(validatorAddress string, btcOracleAddress string, btcPublicKey string) *MsgSetDelegateAddresses

func (*MsgSetDelegateAddresses) Descriptor

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

func (*MsgSetDelegateAddresses) GetBtcOracleAddress

func (m *MsgSetDelegateAddresses) GetBtcOracleAddress() string

func (*MsgSetDelegateAddresses) GetBtcPublicKey

func (m *MsgSetDelegateAddresses) GetBtcPublicKey() string

func (*MsgSetDelegateAddresses) GetSignBytes

func (msg *MsgSetDelegateAddresses) GetSignBytes() []byte

func (*MsgSetDelegateAddresses) GetSigners

func (msg *MsgSetDelegateAddresses) GetSigners() []sdk.AccAddress

func (*MsgSetDelegateAddresses) GetValidatorAddress

func (m *MsgSetDelegateAddresses) GetValidatorAddress() string

func (*MsgSetDelegateAddresses) Marshal

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

func (*MsgSetDelegateAddresses) MarshalTo

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

func (*MsgSetDelegateAddresses) MarshalToSizedBuffer

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

func (*MsgSetDelegateAddresses) ProtoMessage

func (*MsgSetDelegateAddresses) ProtoMessage()

func (*MsgSetDelegateAddresses) Reset

func (m *MsgSetDelegateAddresses) Reset()

func (*MsgSetDelegateAddresses) Route

func (msg *MsgSetDelegateAddresses) Route() string

func (*MsgSetDelegateAddresses) Size

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

func (*MsgSetDelegateAddresses) String

func (m *MsgSetDelegateAddresses) String() string

func (*MsgSetDelegateAddresses) Type

func (msg *MsgSetDelegateAddresses) Type() string

func (*MsgSetDelegateAddresses) Unmarshal

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

func (*MsgSetDelegateAddresses) ValidateBasic

func (msg *MsgSetDelegateAddresses) ValidateBasic() error

func (*MsgSetDelegateAddresses) XXX_DiscardUnknown

func (m *MsgSetDelegateAddresses) XXX_DiscardUnknown()

func (*MsgSetDelegateAddresses) XXX_Marshal

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

func (*MsgSetDelegateAddresses) XXX_Merge

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

func (*MsgSetDelegateAddresses) XXX_Size

func (m *MsgSetDelegateAddresses) XXX_Size() int

func (*MsgSetDelegateAddresses) XXX_Unmarshal

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

type MsgSetDelegateAddressesResponse

type MsgSetDelegateAddressesResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MsgSetDelegateAddressesResponse) Descriptor

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

func (*MsgSetDelegateAddressesResponse) GetId

func (*MsgSetDelegateAddressesResponse) Marshal

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

func (*MsgSetDelegateAddressesResponse) MarshalTo

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

func (*MsgSetDelegateAddressesResponse) MarshalToSizedBuffer

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

func (*MsgSetDelegateAddressesResponse) ProtoMessage

func (*MsgSetDelegateAddressesResponse) ProtoMessage()

func (*MsgSetDelegateAddressesResponse) Reset

func (*MsgSetDelegateAddressesResponse) Size

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

func (*MsgSetDelegateAddressesResponse) String

func (*MsgSetDelegateAddressesResponse) Unmarshal

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

func (*MsgSetDelegateAddressesResponse) XXX_DiscardUnknown

func (m *MsgSetDelegateAddressesResponse) XXX_DiscardUnknown()

func (*MsgSetDelegateAddressesResponse) XXX_Marshal

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

func (*MsgSetDelegateAddressesResponse) XXX_Merge

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

func (*MsgSetDelegateAddressesResponse) XXX_Size

func (m *MsgSetDelegateAddressesResponse) XXX_Size() int

func (*MsgSetDelegateAddressesResponse) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type ProposalType

type ProposalType int32
const (
	PROPOSAL_TYPE_BTC_CHAINTIP     ProposalType = 0
	PROPOSAL_TYPE_BTC_DEPOSIT      ProposalType = 1
	PROPOSAL_TYPE_SWEEP_PROPOSAL   ProposalType = 2
	PROPOSAL_TYPE_CONFIRM_WITHDRAW ProposalType = 3
)

func (ProposalType) EnumDescriptor

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

func (ProposalType) String

func (x ProposalType) String() string

type QueryAttestationsRequest

type QueryAttestationsRequest struct {
	// limit defines how many attestations to limit in the response.
	Limit uint64 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	// order_by provides ordering of atteststions by nonce in the response. Either
	// 'asc' or 'desc' can be provided. If no value is provided, it defaults to
	// 'asc'.
	OrderBy string `protobuf:"bytes,2,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// proposal_type allows filtering attestations by proposal type
	ProposalType string `protobuf:"bytes,3,opt,name=proposal_type,json=proposalType,proto3" json:"proposal_type,omitempty"`
	// height allows filtering attestations by block height
	Height uint64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
}

QueryAttestationsRequest defines the request structure for getting recent attestations with optional query parameters. By default, a limited set of recent attestations will be returned, defined by 'limit'.

func (*QueryAttestationsRequest) Descriptor

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

func (*QueryAttestationsRequest) GetHeight

func (m *QueryAttestationsRequest) GetHeight() uint64

func (*QueryAttestationsRequest) GetLimit

func (m *QueryAttestationsRequest) GetLimit() uint64

func (*QueryAttestationsRequest) GetOrderBy

func (m *QueryAttestationsRequest) GetOrderBy() string

func (*QueryAttestationsRequest) GetProposalType

func (m *QueryAttestationsRequest) GetProposalType() string

func (*QueryAttestationsRequest) Marshal

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

func (*QueryAttestationsRequest) MarshalTo

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

func (*QueryAttestationsRequest) MarshalToSizedBuffer

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

func (*QueryAttestationsRequest) ProtoMessage

func (*QueryAttestationsRequest) ProtoMessage()

func (*QueryAttestationsRequest) Reset

func (m *QueryAttestationsRequest) Reset()

func (*QueryAttestationsRequest) Size

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

func (*QueryAttestationsRequest) String

func (m *QueryAttestationsRequest) String() string

func (*QueryAttestationsRequest) Unmarshal

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

func (*QueryAttestationsRequest) XXX_DiscardUnknown

func (m *QueryAttestationsRequest) XXX_DiscardUnknown()

func (*QueryAttestationsRequest) XXX_Marshal

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

func (*QueryAttestationsRequest) XXX_Merge

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

func (*QueryAttestationsRequest) XXX_Size

func (m *QueryAttestationsRequest) XXX_Size() int

func (*QueryAttestationsRequest) XXX_Unmarshal

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

type QueryAttestationsResponse

type QueryAttestationsResponse struct {
	Attestations []Attestation `protobuf:"bytes,1,rep,name=attestations,proto3" json:"attestations"`
}

func (*QueryAttestationsResponse) Descriptor

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

func (*QueryAttestationsResponse) GetAttestations

func (m *QueryAttestationsResponse) GetAttestations() []Attestation

func (*QueryAttestationsResponse) Marshal

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

func (*QueryAttestationsResponse) MarshalTo

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

func (*QueryAttestationsResponse) MarshalToSizedBuffer

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

func (*QueryAttestationsResponse) ProtoMessage

func (*QueryAttestationsResponse) ProtoMessage()

func (*QueryAttestationsResponse) Reset

func (m *QueryAttestationsResponse) Reset()

func (*QueryAttestationsResponse) Size

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

func (*QueryAttestationsResponse) String

func (m *QueryAttestationsResponse) String() string

func (*QueryAttestationsResponse) Unmarshal

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

func (*QueryAttestationsResponse) XXX_DiscardUnknown

func (m *QueryAttestationsResponse) XXX_DiscardUnknown()

func (*QueryAttestationsResponse) XXX_Marshal

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

func (*QueryAttestationsResponse) XXX_Merge

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

func (*QueryAttestationsResponse) XXX_Size

func (m *QueryAttestationsResponse) XXX_Size() int

func (*QueryAttestationsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of Attestations items.
	GetAttestations(ctx context.Context, in *QueryAttestationsRequest, opts ...grpc.CallOption) (*QueryAttestationsResponse, error)
	// Queries a list of DelegateKeysByBtcOracleAddress items.
	DelegateKeysByBtcOracleAddress(ctx context.Context, in *QueryDelegateKeysByBtcOracleAddressRequest, opts ...grpc.CallOption) (*QueryDelegateKeysByBtcOracleAddressResponse, error)
	// Queries a list of DelegateKeysAll items.
	DelegateKeysAll(ctx context.Context, in *QueryDelegateKeysAllRequest, opts ...grpc.CallOption) (*QueryDelegateKeysAllResponse, 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 QueryDelegateKeysAllRequest

type QueryDelegateKeysAllRequest struct {
}

func (*QueryDelegateKeysAllRequest) Descriptor

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

func (*QueryDelegateKeysAllRequest) Marshal

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

func (*QueryDelegateKeysAllRequest) MarshalTo

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

func (*QueryDelegateKeysAllRequest) MarshalToSizedBuffer

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

func (*QueryDelegateKeysAllRequest) ProtoMessage

func (*QueryDelegateKeysAllRequest) ProtoMessage()

func (*QueryDelegateKeysAllRequest) Reset

func (m *QueryDelegateKeysAllRequest) Reset()

func (*QueryDelegateKeysAllRequest) Size

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

func (*QueryDelegateKeysAllRequest) String

func (m *QueryDelegateKeysAllRequest) String() string

func (*QueryDelegateKeysAllRequest) Unmarshal

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

func (*QueryDelegateKeysAllRequest) XXX_DiscardUnknown

func (m *QueryDelegateKeysAllRequest) XXX_DiscardUnknown()

func (*QueryDelegateKeysAllRequest) XXX_Marshal

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

func (*QueryDelegateKeysAllRequest) XXX_Merge

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

func (*QueryDelegateKeysAllRequest) XXX_Size

func (m *QueryDelegateKeysAllRequest) XXX_Size() int

func (*QueryDelegateKeysAllRequest) XXX_Unmarshal

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

type QueryDelegateKeysAllResponse

type QueryDelegateKeysAllResponse struct {
	Addresses []MsgSetDelegateAddresses `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses"`
}

func (*QueryDelegateKeysAllResponse) Descriptor

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

func (*QueryDelegateKeysAllResponse) GetAddresses

func (*QueryDelegateKeysAllResponse) Marshal

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

func (*QueryDelegateKeysAllResponse) MarshalTo

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

func (*QueryDelegateKeysAllResponse) MarshalToSizedBuffer

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

func (*QueryDelegateKeysAllResponse) ProtoMessage

func (*QueryDelegateKeysAllResponse) ProtoMessage()

func (*QueryDelegateKeysAllResponse) Reset

func (m *QueryDelegateKeysAllResponse) Reset()

func (*QueryDelegateKeysAllResponse) Size

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

func (*QueryDelegateKeysAllResponse) String

func (*QueryDelegateKeysAllResponse) Unmarshal

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

func (*QueryDelegateKeysAllResponse) XXX_DiscardUnknown

func (m *QueryDelegateKeysAllResponse) XXX_DiscardUnknown()

func (*QueryDelegateKeysAllResponse) XXX_Marshal

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

func (*QueryDelegateKeysAllResponse) XXX_Merge

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

func (*QueryDelegateKeysAllResponse) XXX_Size

func (m *QueryDelegateKeysAllResponse) XXX_Size() int

func (*QueryDelegateKeysAllResponse) XXX_Unmarshal

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

type QueryDelegateKeysByBtcOracleAddressRequest

type QueryDelegateKeysByBtcOracleAddressRequest struct {
	BtcOracleAddress string `protobuf:"bytes,1,opt,name=btcOracleAddress,proto3" json:"btcOracleAddress,omitempty"`
}

func (*QueryDelegateKeysByBtcOracleAddressRequest) Descriptor

func (*QueryDelegateKeysByBtcOracleAddressRequest) GetBtcOracleAddress

func (m *QueryDelegateKeysByBtcOracleAddressRequest) GetBtcOracleAddress() string

func (*QueryDelegateKeysByBtcOracleAddressRequest) Marshal

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

func (*QueryDelegateKeysByBtcOracleAddressRequest) MarshalTo

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

func (*QueryDelegateKeysByBtcOracleAddressRequest) MarshalToSizedBuffer

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

func (*QueryDelegateKeysByBtcOracleAddressRequest) ProtoMessage

func (*QueryDelegateKeysByBtcOracleAddressRequest) Reset

func (*QueryDelegateKeysByBtcOracleAddressRequest) Size

func (*QueryDelegateKeysByBtcOracleAddressRequest) String

func (*QueryDelegateKeysByBtcOracleAddressRequest) Unmarshal

func (*QueryDelegateKeysByBtcOracleAddressRequest) XXX_DiscardUnknown

func (m *QueryDelegateKeysByBtcOracleAddressRequest) XXX_DiscardUnknown()

func (*QueryDelegateKeysByBtcOracleAddressRequest) XXX_Marshal

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

func (*QueryDelegateKeysByBtcOracleAddressRequest) XXX_Merge

func (*QueryDelegateKeysByBtcOracleAddressRequest) XXX_Size

func (*QueryDelegateKeysByBtcOracleAddressRequest) XXX_Unmarshal

type QueryDelegateKeysByBtcOracleAddressResponse

type QueryDelegateKeysByBtcOracleAddressResponse struct {
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validatorAddress,proto3" json:"validatorAddress,omitempty"`
	BtcPublicKey     string `protobuf:"bytes,2,opt,name=btcPublicKey,proto3" json:"btcPublicKey,omitempty"`
}

func (*QueryDelegateKeysByBtcOracleAddressResponse) Descriptor

func (*QueryDelegateKeysByBtcOracleAddressResponse) GetBtcPublicKey

func (*QueryDelegateKeysByBtcOracleAddressResponse) GetValidatorAddress

func (m *QueryDelegateKeysByBtcOracleAddressResponse) GetValidatorAddress() string

func (*QueryDelegateKeysByBtcOracleAddressResponse) Marshal

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

func (*QueryDelegateKeysByBtcOracleAddressResponse) MarshalTo

func (*QueryDelegateKeysByBtcOracleAddressResponse) MarshalToSizedBuffer

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

func (*QueryDelegateKeysByBtcOracleAddressResponse) ProtoMessage

func (*QueryDelegateKeysByBtcOracleAddressResponse) Reset

func (*QueryDelegateKeysByBtcOracleAddressResponse) Size

func (*QueryDelegateKeysByBtcOracleAddressResponse) String

func (*QueryDelegateKeysByBtcOracleAddressResponse) Unmarshal

func (*QueryDelegateKeysByBtcOracleAddressResponse) XXX_DiscardUnknown

func (m *QueryDelegateKeysByBtcOracleAddressResponse) XXX_DiscardUnknown()

func (*QueryDelegateKeysByBtcOracleAddressResponse) XXX_Marshal

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

func (*QueryDelegateKeysByBtcOracleAddressResponse) XXX_Merge

func (*QueryDelegateKeysByBtcOracleAddressResponse) XXX_Size

func (*QueryDelegateKeysByBtcOracleAddressResponse) XXX_Unmarshal

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Attestations items.
	GetAttestations(context.Context, *QueryAttestationsRequest) (*QueryAttestationsResponse, error)
	// Queries a list of DelegateKeysByBtcOracleAddress items.
	DelegateKeysByBtcOracleAddress(context.Context, *QueryDelegateKeysByBtcOracleAddressRequest) (*QueryDelegateKeysByBtcOracleAddressResponse, error)
	// Queries a list of DelegateKeysAll items.
	DelegateKeysAll(context.Context, *QueryDelegateKeysAllRequest) (*QueryDelegateKeysAllResponse, error)
}

QueryServer is the server API for Query service.

type SatoshiTest added in v0.0.2

type SatoshiTest struct {
	DepositAddress         string `protobuf:"bytes,1,opt,name=depositAddress,proto3" json:"depositAddress,omitempty"`
	TwilightDepositAddress string `protobuf:"bytes,2,opt,name=twilightDepositAddress,proto3" json:"twilightDepositAddress,omitempty"`
	DepositAmount          uint64 `protobuf:"varint,3,opt,name=depositAmount,proto3" json:"depositAmount,omitempty"`
	BlockHeight            int64  `protobuf:"varint,4,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	IsConfirmed            bool   `protobuf:"varint,5,opt,name=isConfirmed,proto3" json:"isConfirmed,omitempty"`
}

func (*SatoshiTest) Descriptor added in v0.0.2

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

func (*SatoshiTest) GetBlockHeight added in v0.0.2

func (m *SatoshiTest) GetBlockHeight() int64

func (*SatoshiTest) GetDepositAddress added in v0.0.2

func (m *SatoshiTest) GetDepositAddress() string

func (*SatoshiTest) GetDepositAmount added in v0.0.2

func (m *SatoshiTest) GetDepositAmount() uint64

func (*SatoshiTest) GetIsConfirmed added in v0.0.2

func (m *SatoshiTest) GetIsConfirmed() bool

func (*SatoshiTest) GetTwilightDepositAddress added in v0.0.2

func (m *SatoshiTest) GetTwilightDepositAddress() string

func (*SatoshiTest) Marshal added in v0.0.2

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

func (*SatoshiTest) MarshalTo added in v0.0.2

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

func (*SatoshiTest) MarshalToSizedBuffer added in v0.0.2

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

func (*SatoshiTest) ProtoMessage added in v0.0.2

func (*SatoshiTest) ProtoMessage()

func (*SatoshiTest) Reset added in v0.0.2

func (m *SatoshiTest) Reset()

func (*SatoshiTest) Size added in v0.0.2

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

func (*SatoshiTest) String added in v0.0.2

func (m *SatoshiTest) String() string

func (*SatoshiTest) Unmarshal added in v0.0.2

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

func (*SatoshiTest) XXX_DiscardUnknown added in v0.0.2

func (m *SatoshiTest) XXX_DiscardUnknown()

func (*SatoshiTest) XXX_Marshal added in v0.0.2

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

func (*SatoshiTest) XXX_Merge added in v0.0.2

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

func (*SatoshiTest) XXX_Size added in v0.0.2

func (m *SatoshiTest) XXX_Size() int

func (*SatoshiTest) XXX_Unmarshal added in v0.0.2

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

type StakingKeeper

type StakingKeeper interface {
	GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator
	GetLastValidatorPower(ctx sdk.Context, operator sdk.ValAddress) int64
	GetLastTotalPower(ctx sdk.Context) (power sdk.Int)
	IterateValidators(sdk.Context, func(index int64, validator stakingtypes.ValidatorI) (stop bool))
	ValidatorQueueIterator(ctx sdk.Context, endTime time.Time, endHeight int64) sdk.Iterator
	GetParams(ctx sdk.Context) stakingtypes.Params
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
	IterateBondedValidatorsByPower(sdk.Context, func(index int64, validator stakingtypes.ValidatorI) (stop bool))
	IterateLastValidators(sdk.Context, func(index int64, validator stakingtypes.ValidatorI) (stop bool))
	Validator(sdk.Context, sdk.ValAddress) stakingtypes.ValidatorI
	ValidatorByConsAddr(sdk.Context, sdk.ConsAddress) stakingtypes.ValidatorI
	Slash(sdk.Context, sdk.ConsAddress, int64, int64, sdk.Dec)
	Jail(sdk.Context, sdk.ConsAddress)
}

StakingKeeper defines the expected staking keeper methods

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) SeenBtcChainTip

func (*UnimplementedMsgServer) SetDelegateAddresses

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DelegateKeysAll

func (*UnimplementedQueryServer) GetAttestations

func (*UnimplementedQueryServer) Params

type VoltKeeper

type VoltKeeper interface {
	UpdateBtcReserveAfterMint(ctx sdk.Context, mintedValue uint64, twilightAddress sdk.AccAddress, reserveAddress string) error
	UpdateBtcReserveAfterSweepProposal(ctx sdk.Context, reserveId uint64, reserveAddress string, judgeAddress string, btcBlockNumber uint64, btcRelayCapacityValue uint64, btcTxHash string, unlockHeight uint64, roundId uint64) error
	ConfirmWithdrawRequestsAfterSweepConfirmation(ctx sdk.Context, reserveId uint64, roundId uint64) error
	PruneReserveWithdrawSnapshot(ctx sdk.Context, reserveId uint64, roundId uint64)
	PruneRefundTxSnapshot(ctx sdk.Context, reserveId uint64, roundId uint64)
}

VoltKeeper defines the expected interface needed for mapping of deposit addresses in a reserve

Jump to

Keyboard shortcuts

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