lib

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyInfo

type BodyInfo interface {
	Compact() string
	Describe() string
}

BodyInfo describes the contents of a message or event.

- Compact is a single-line representation. - Describe is a pretty-printed, multi-line representation.

type ContractDecoder

type ContractDecoder interface {
	ContractType() string
	InternalMessageInfo(body *cell.Cell) (MessageInfo, error)
	ExternalMessageInfo(body *cell.Cell) (MessageInfo, error)
	EventInfo(dstAddr *address.Address, msg *cell.Cell) (MessageInfo, error)
	ExitCodeInfo(exitCode tvm.ExitCode) (string, error)
}

type DebuggerVisualization

type DebuggerVisualization interface {
	NewActor(address string, contractType string, name string)
	NewSentMessage(msg *tt.SentMessage, info MessageInfo) DebuggerVisualization
	NewReceivedMessage(msg *tt.ReceivedMessage, info TxInfo) DebuggerVisualization
	NewEvent(msg *tt.OutgoingExternalMessages, info MessageInfo)
	ToString() string
}

type MessageInfo

type MessageInfo interface {
	Name() string
	Body() BodyInfo
}

Describes a decoded message or event.

- Name is a short name of the message/event type. - Body carries the contents of the message/event in both compact and detailed forms.

func NewMessageInfo

func NewMessageInfo(name string, msg any) (MessageInfo, error)

func NewMessageInfoFromCell

func NewMessageInfoFromCell(t string, msg *cell.Cell, tlbs tvm.TLBMap, tlbsCtx tvm.TLBMap) (MessageInfo, error)

NewMessageInfoFromCell attempts to decode the given cell using the provided TL-B candidates mapped by their opcodes.

type TxInfo

type TxInfo struct {
	Msg      MessageInfo
	ExitCode string
}

type Wrapper

type Wrapper struct {
	Type  string
	Value any
}

func (Wrapper) MarshalJSON

func (w Wrapper) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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