types

package
v0.11.9 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignatureSecp256k1 = iota
	SignatureEd25519

	DefaultTimeoutHeight = uint64(10)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivatedPPReq

type ActivatedPPReq struct {
	PPList []*protos.ReqActivatedPP `json:"pp_list"`
}

type ActivatedSPReq

type ActivatedSPReq struct {
	SPList []*protos.ReqActivatedSP `json:"sp_list"`
}

type DeactivatedPPReq

type DeactivatedPPReq struct {
	PPList []*protos.ReqDeactivatedPP `json:"pp_list"`
}

type FileUploadedReq

type FileUploadedReq struct {
	UploadList []*protos.Uploaded `json:"upload_list"`
}

type PrepaidReq

type PrepaidReq struct {
	WalletList []*protos.ReqPrepaid `json:"wallet_list"`
}

type SignatureKey

type SignatureKey struct {
	AccountNum      uint64 `json:"account_num,omitempty"`
	AccountSequence uint64 `json:"account_sequence,omitempty"`
	Address         string `json:"address,omitempty"`
	PrivateKey      []byte `json:"private_key,omitempty"`
	Type            int    `json:"type,omitempty"`
}

type SlashedPP

type SlashedPP struct {
	P2PAddress string   `json:"p2p_address"`
	QueryFirst bool     `json:"query_first"`
	Suspended  bool     `json:"suspended"`
	SlashedAmt *big.Int `json:"slashed_amt"`
}

type SlashedPPReq

type SlashedPPReq struct {
	PPList []SlashedPP `json:"pp_list"`
	TxHash string      `json:"tx_hash"`
}

type UnbondingPPReq

type UnbondingPPReq struct {
	PPList []*protos.ReqUnbondingPP `json:"pp_list"`
}

type UnbondingSPReq added in v0.10.0

type UnbondingSPReq struct {
	SPList []*protos.ReqUnbondingSP `json:"sp_list"`
}

type UnsignedMsg

type UnsignedMsg struct {
	Msg           sdktypes.Msg   `json:"msg,omitempty"`
	SignatureKeys []SignatureKey `json:"signature_keys,omitempty"`
	Type          string         `json:"type,omitempty"`
}

func (UnsignedMsg) ToBytes

func (u UnsignedMsg) ToBytes() UnsignedMsgBytes

type UnsignedMsgBytes

type UnsignedMsgBytes struct {
	Msg           []byte         `json:"msg,omitempty"`
	SignatureKeys []SignatureKey `json:"signature_keys,omitempty"`
	Type          string         `json:"type,omitempty"`
}

func (UnsignedMsgBytes) FromBytes

func (u UnsignedMsgBytes) FromBytes() (UnsignedMsg, error)

type UnsignedMsgs

type UnsignedMsgs struct {
	Msgs []UnsignedMsgBytes `json:"msgs,omitempty"`
}

type UpdatedDepositPPReq added in v0.10.0

type UpdatedDepositPPReq struct {
	PPList []*protos.ReqUpdatedDepositPP `json:"pp_list"`
}

type UpdatedDepositSPReq added in v0.10.0

type UpdatedDepositSPReq struct {
	SPList []*protos.ReqUpdatedDepositSP `json:"sp_list"`
}

type UpdatedEffectiveDepositPP added in v0.10.0

type UpdatedEffectiveDepositPP struct {
	P2PAddress                string   `json:"p2p_address"`
	IsUnsuspendedDuringUpdate bool     `json:"is_unsuspended_during_update"`
	EffectiveDepositAfter     *big.Int `json:"effective_deposit_after"`
}

type UpdatedEffectiveDepositPPReq added in v0.10.0

type UpdatedEffectiveDepositPPReq struct {
	PPList []UpdatedEffectiveDepositPP `json:"pp_list"`
	TxHash string                      `json:"tx_hash"`
}

type VolumeReportedReq

type VolumeReportedReq struct {
	Epochs []string `json:"epochs"`
}

type WithdrawnDepositSPReq added in v0.10.0

type WithdrawnDepositSPReq struct {
	SPList []*protos.ReqWithdrawnDepositSP `json:"sp_list"`
	TxHash string                          `json:"tx_hash"`
}

Jump to

Keyboard shortcuts

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