parser

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Finalized = "finalized"
	Sealed    = "sealed"
)

Finalized and Sealed represents the status of a block. It is used in rest arguments to provide block status.

View Source
const MaxAllowedScriptArguments = 100
View Source
const MaxIDsLength = 50

Variables

This section is empty.

Functions

func ParseAddress added in v0.40.0

func ParseAddress(raw string, chain flow.Chain) (flow.Address, error)

func ParseBlockStatus

func ParseBlockStatus(blockStatus string) (flow.BlockStatus, error)

Types

type Arguments added in v0.40.0

type Arguments [][]byte

func (Arguments) Flow added in v0.40.0

func (a Arguments) Flow() [][]byte

func (*Arguments) Parse added in v0.40.0

func (a *Arguments) Parse(raw []string) error

type EventType

type EventType string

func NewEventType added in v0.40.0

func NewEventType(raw string) (EventType, error)

func (EventType) Flow

func (e EventType) Flow() string

type EventTypes

type EventTypes []EventType

func NewEventTypes added in v0.40.0

func NewEventTypes(raw []string) (EventTypes, error)

func (EventTypes) Flow

func (e EventTypes) Flow() []string

type ID

type ID flow.Identifier

func (ID) Flow

func (i ID) Flow() flow.Identifier

func (*ID) Parse

func (i *ID) Parse(raw string) error

type IDs

type IDs []ID

func (IDs) Flow

func (i IDs) Flow() []flow.Identifier

func (*IDs) Parse

func (i *IDs) Parse(raw []string) error

type ProposalKey added in v0.40.0

type ProposalKey flow.ProposalKey

func (ProposalKey) Flow added in v0.40.0

func (p ProposalKey) Flow() flow.ProposalKey

func (*ProposalKey) Parse added in v0.40.0

func (p *ProposalKey) Parse(raw models.ProposalKey, chain flow.Chain) error

type Signature added in v0.40.0

type Signature []byte

func (Signature) Flow added in v0.40.0

func (s Signature) Flow() []byte

func (*Signature) Parse added in v0.40.0

func (s *Signature) Parse(raw string) error

type Transaction added in v0.40.0

type Transaction flow.TransactionBody

func (Transaction) Flow added in v0.40.0

func (t Transaction) Flow() flow.TransactionBody

func (*Transaction) Parse added in v0.40.0

func (t *Transaction) Parse(raw io.Reader, chain flow.Chain) error

type TransactionSignature added in v0.40.0

type TransactionSignature flow.TransactionSignature

func (TransactionSignature) Flow added in v0.40.0

func (*TransactionSignature) Parse added in v0.40.0

func (s *TransactionSignature) Parse(
	rawAddress string,
	rawKeyIndex string,
	rawSignature string,
	chain flow.Chain,
) error

type TransactionSignatures added in v0.40.0

type TransactionSignatures []TransactionSignature

func (TransactionSignatures) Flow added in v0.40.0

func (*TransactionSignatures) Parse added in v0.40.0

func (t *TransactionSignatures) Parse(rawSigs []models.TransactionSignature, chain flow.Chain) error

Jump to

Keyboard shortcuts

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