model

package
v0.0.0-...-a1ac4f3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Actor

type Actor struct {
	ID        string `json:"id"`
	Code      string `json:"Code"`
	Head      string `json:"Head"`
	Nonce     uint64 `json:"Nonce"`
	Balance   string `json:"Balance"`
	StateRoot string `json:"StateRoot"`
	Height    int64  `json:"Height"`
}

type Address

type Address struct {
	ID     string `json:"id"`
	Robust string `json:"robust"`
}

type Block

type Block struct {
	Cid             string   `json:"cid"`
	Height          int64    `json:"height"`
	Miner           string   `json:"miner"`
	Parents         []string `json:"parents"`
	ParentWeight    string   `json:"parentWeight"`
	ParentBaseFee   string   `json:"parentBaseFee"`
	ParentStateRoot string   `json:"parentStateRoot"`
	WinCount        *int64   `json:"winCount"`
	Messages        string   `json:"messages"`
	Timestamp       uint64   `json:"timestamp"`
	ForkSignaling   *uint64  `json:"forkSignaling"`
}

type ChainHead

type ChainHead struct {
	Height int64 `json:"height"`
}

type ExecutionTrace

type ExecutionTrace struct {
	ExecutionTrace string `json:"executionTrace"`
}

type FilUnit

type FilUnit string
const (
	FilUnitFil      FilUnit = "Fil"
	FilUnitAttoFil  FilUnit = "AttoFil"
	FilUnitFemtoFil FilUnit = "FemtoFil"
	FilUnitPicoFil  FilUnit = "PicoFil"
	FilUnitNanoFil  FilUnit = "NanoFil"
)

func (FilUnit) IsValid

func (e FilUnit) IsValid() bool

func (FilUnit) MarshalGQL

func (e FilUnit) MarshalGQL(w io.Writer)

func (FilUnit) String

func (e FilUnit) String() string

func (*FilUnit) UnmarshalGQL

func (e *FilUnit) UnmarshalGQL(v interface{}) error

type GasCost

type GasCost struct {
	GasUsed            int64  `json:"gasUsed"`
	BaseFeeBurn        string `json:"baseFeeBurn"`
	OverEstimationBurn string `json:"overEstimationBurn"`
	MinerPenalty       string `json:"minerPenalty"`
	MinerTip           string `json:"minerTip"`
	Refund             string `json:"refund"`
	TotalCost          string `json:"totalCost"`
}

type InvocResult

type InvocResult struct {
	GasCost        *GasCost        `json:"gasCost"`
	Receipt        *MessageReceipt `json:"receipt"`
	ExecutionTrace *ExecutionTrace `json:"executionTrace"`
}

type Message

type Message struct {
	Cid        string `json:"cid"`
	Version    uint64 `json:"version"`
	To         string `json:"to"`
	From       string `json:"from"`
	Nonce      uint64 `json:"nonce"`
	Value      string `json:"value"`
	GasLimit   int64  `json:"gasLimit"`
	GasFeeCap  string `json:"gasFeeCap"`
	GasPremium string `json:"gasPremium"`
	Method     uint64 `json:"method"`
	Height     uint64 `json:"height"`
	Params     string `json:"params"`
}

func CreateMessage

func CreateMessage(item *types.Message) *Message

type MessageConfirmed

type MessageConfirmed struct {
	Cid        string `json:"cid"`
	Height     int64  `json:"height"`
	StateRoot  string `json:"stateRoot"`
	Version    int    `json:"version"`
	From       string `json:"from"`
	To         string `json:"to"`
	Value      string `json:"value"`
	GasFeeCap  string `json:"gasFeeCap"`
	GasPremium string `json:"gasPremium"`
	GasLimit   int64  `json:"gasLimit"`
	SizeBytes  int    `json:"sizeBytes"`
	Nonce      uint64 `json:"nonce"`
	Method     uint64 `json:"method"`
	//	MethodName         string   `json:"methodName"`
	ActorName          string `json:"actorName"`
	ActorFamily        string `json:"actorFamily"`
	ExitCode           int64  `json:"exitCode"`
	GasUsed            int64  `json:"gasUsed"`
	ParentBaseFee      string `json:"parentBaseFee"`
	BaseFeeBurn        string `json:"baseFeeBurn"`
	OverEstimationBurn string `json:"overEstimationBurn"`
	MinerPenalty       string `json:"minerPenalty"`
	MinerTip           string `json:"minerTip"`
	Refund             string `json:"refund"`
	GasRefund          int64  `json:"gasRefund"`
	GasBurned          int64  `json:"gasBurned"`
	Params             string `json:"params"`
}

type MessagePending

type MessagePending struct {
	Cid     string `json:"cid"`
	Version string `json:"version"`
	From    string `json:"from"`
	To      string `json:"to"`
	// To         *Address `json:"to"`
	// From       *Address `json:"from"`
	Nonce      uint64 `json:"nonce"`
	Value      string `json:"value"`
	GasLimit   int64  `json:"gasLimit"`
	GasFeeCap  string `json:"gasFeeCap"`
	GasPremium string `json:"gasPremium"`
	Method     uint64 `json:"method"`
	Height     int64  `json:"height"`
	Params     string `json:"params"`
}

func CreatePendingMessage

func CreatePendingMessage(item *types.Message) *MessagePending

type MessageReceipt

type MessageReceipt struct {
	ExitCode int64  `json:"exitCode"`
	Return   string `json:"return"`
	GasUsed  int64  `json:"gasUsed"`
}

type MpoolUpdate

type MpoolUpdate struct {
	Type    int             `json:"type"`
	Message *MessagePending `json:"message"`
}

type MsigTransaction

type MsigTransaction struct {
	ID           int64      `json:"id"`
	To           *Address   `json:"to"`
	Value        string     `json:"value"`
	Method       uint64     `json:"method"`
	Params       string     `json:"params"`
	Approved     []*Address `json:"approved"`
	ProposalHash string     `json:"proposalHash"`
}

type QueryMessage

type QueryMessage struct {
	Messages []*Message `json:"messages"`
}

type Status

type Status struct {
	Height   int64 `json:"height"`
	Estimate int64 `json:"estimate"`
}

type TipSet

type TipSet struct {
	Cids         []string `json:"cids"`
	Blks         []*Block `json:"blks"`
	Height       int64    `json:"height"`
	Key          string   `json:"key"`
	MinTimestamp uint64   `json:"minTimestamp"`
}

type Todo

type Todo struct {
	ID     string `json:"id"`
	Text   string `json:"text"`
	Done   bool   `json:"done"`
	UserID string `json:"user"`
}

Jump to

Keyboard shortcuts

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