rpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CellDep

type CellDep struct {
	OutPoint OutPoint         `json:"out_point"`
	DepType  ckbTypes.DepType `json:"dep_type"`
}

type CellInput

type CellInput struct {
	Since          hexutil.Uint64 `json:"since"`
	PreviousOutput OutPoint       `json:"previous_output"`
}

type CellOutput

type CellOutput struct {
	Capacity hexutil.Uint64 `json:"capacity"`
	Lock     *Script        `json:"lock"`
	Type     *Script        `json:"type"`
}

type NewTransactionSubscriptionParams

type NewTransactionSubscriptionParams struct {
	Result string `json:"result"`
}

type NewTransactionSubscriptionResponse

type NewTransactionSubscriptionResponse struct {
	JsonRPC string                           `json:"jsonrpc"`
	Method  string                           `json:"method"`
	Params  NewTransactionSubscriptionParams `json:"params"`
}

type NewTransactionSubscriptionResult

type NewTransactionSubscriptionResult struct {
	Transaction PoolTransactionEntry `json:"transaction"`
	Fee         hexutil.Uint64       `json:"fee"`
	Cycles      hexutil.Uint64       `json:"cycles"`
	Size        hexutil.Uint64       `json:"size"`
}

type OutPoint

type OutPoint struct {
	TxHash ckbTypes.Hash `json:"tx_hash"`
	Index  hexutil.Uint  `json:"index"`
}

type PoolTransactionEntry

type PoolTransactionEntry struct {
	CellDeps    []CellDep       `json:"cell_deps"`
	Hash        ckbTypes.Hash   `json:"hash"`
	HeaderDeps  []ckbTypes.Hash `json:"header_deps"`
	Inputs      []CellInput     `json:"inputs"`
	Outputs     []CellOutput    `json:"outputs"`
	OutputsData []hexutil.Bytes `json:"outputs_data"`
	Version     hexutil.Uint    `json:"version"`
	Witnesses   []hexutil.Bytes `json:"witnesses"`
	Fee         hexutil.Uint64  `json:"fee"`
	Cycles      hexutil.Uint64  `json:"cycles"`
	Size        hexutil.Uint64  `json:"size"`
}

func (PoolTransactionEntry) ToPoolTransactionEntryModel

func (t PoolTransactionEntry) ToPoolTransactionEntryModel() (model.PoolTransactionEntry, error)

type Script

type Script struct {
	CodeHash ckbTypes.Hash           `json:"code_hash"`
	HashType ckbTypes.ScriptHashType `json:"hash_type"`
	Args     hexutil.Bytes           `json:"args"`
}

Jump to

Keyboard shortcuts

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