entities

package
v0.0.0-...-019d704 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllViewRes

type AllViewRes struct {
	RPCBaseRes
	Result []*ViewState
}

type BTCRelayingBestStateRes

type BTCRelayingBestStateRes struct {
	RPCBaseRes
	Result *blockchain.BestState
}

type CreateTransactionResult

type CreateTransactionResult struct {
	Base58CheckData string
	TxID            string
	TxType          string
	ShardID         byte
}

type ExternalFeeInfo

type ExternalFeeInfo struct {
	NetworkFee    uint
	RBFReqIncTxID string
}

type PortalV4State

type PortalV4State struct {
	ProcessedUnshieldRequests map[string]map[string]*ProcessedUnshieldRequestBatch // tokenID : hash(tokenID || batchID) : value
}

type PortalV4StateByHeightRes

type PortalV4StateByHeightRes struct {
	RPCBaseRes
	Result *PortalV4State
}

type ProcessedUnshieldRequestBatch

type ProcessedUnshieldRequestBatch struct {
	BatchID      string
	UnshieldsID  []string
	ExternalFees map[uint64]*ExternalFeeInfo
}

type RPCBaseRes

type RPCBaseRes struct {
	Id       int       `json:"id"`
	RPCError *RPCError `json:"error"`
}

type RPCError

type RPCError struct {
	Code       int    `json:"code"`
	Message    string `json:"message"`
	StackTrace string `json:"stack_trace"`
}

type RelayingBlockRes

type RelayingBlockRes struct {
	RPCBaseRes
	Result interface{}
}

type RequestStatus

type RequestStatus struct {
	Status int
}

type RequestStatusRes

type RequestStatusRes struct {
	RPCBaseRes
	Result *RequestStatus
}

type SendRawTxRes

type SendRawTxRes struct {
	RPCBaseRes
	Result *CreateTransactionResult
}

type ShieldingRequestStatus

type ShieldingRequestStatus struct {
	Status int
	Error  string
}

type ShieldingRequestStatusRes

type ShieldingRequestStatusRes struct {
	RPCBaseRes
	Result *ShieldingRequestStatus
}

type SignedRawTx

type SignedRawTx struct {
	SignedTx     string
	BeaconHeight uint64
	TxID         string
}

type SignedRawTxRes

type SignedRawTxRes struct {
	RPCBaseRes
	Result *SignedRawTx
}

type TxDetail

type TxDetail struct {
	IsInBlock   bool
	BlockHeight uint64
}

type TxDetailRes

type TxDetailRes struct {
	RPCBaseRes
	Result *TxDetail
}

type UnshieldingBatchStatus

type UnshieldingBatchStatus struct {
	Status      int
	UnshieldIDs []string
	NetworkFees map[uint64]*ExternalFeeInfo
}

type UnshieldingBatchStatusRes

type UnshieldingBatchStatusRes struct {
	RPCBaseRes
	Result *UnshieldingBatchStatus
}

type ViewState

type ViewState struct {
	Height uint64
}

Jump to

Keyboard shortcuts

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