base

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Prim        string        `json:"prim,omitempty"`
	Args        []*Node       `json:"args,omitempty"`
	Annots      []string      `json:"annots,omitempty"`
	StringValue *string       `json:"string,omitempty"`
	BytesValue  *string       `json:"bytes,omitempty"`
	IntValue    *types.BigInt `json:"int,omitempty"`
}

Node - struct for parsing micheline

func (*Node) Compare

func (node *Node) Compare(second *Node) bool

Compare -

func (*Node) Fingerprint

func (node *Node) Fingerprint(isCode bool) (string, error)

Fingerprint -

func (*Node) GetAnnotations

func (node *Node) GetAnnotations() map[string]struct{}

GetAnnotations - returns all node`s annotations recursively

func (*Node) Hash

func (node *Node) Hash() (string, error)

Hash -

func (*Node) IsLambda

func (node *Node) IsLambda() bool

IsLambda -

func (*Node) MarshalJSON

func (node *Node) MarshalJSON() ([]byte, error)

MarshalJSON -

func (*Node) String

func (node *Node) String() string

String - converts node info to string

func (*Node) UnmarshalJSON

func (node *Node) UnmarshalJSON(data []byte) error

UnmarshalJSON -

Jump to

Keyboard shortcuts

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