ast

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	// Name of the Contract.
	// Can be inferred from its metadata, if it implements TZIP-16 (TODO).
	Name string
	// Micheline script of the contract.
	Micheline string
	// Callable Entrypoints of the Contract.
	Entrypoints []*Entrypoint
	// Getters are TZIP-4 views (which should not be confused with Hangzhou views).
	// Although they are entrypoints, they require to be handled differently from
	// regular entrypoints.
	Getters []*Getter
	// Type of the Contract's Storage.
	Storage types.Type
	// Bigmaps referenced in the Contract's Storage.
	Bigmaps []any
}

type Entrypoint

type Entrypoint struct {
	Name   string
	Raw    *micheline.Entrypoint `json:"-"`
	Params []*types.Param
}

type Getter

type Getter struct {
	Entrypoint
	ReturnType types.Type
}

Getter is a read-only Entrypoint, with a return value.

It is implemented with TZIP-4.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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