tron

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ChainID = caip.TronChainID

Variables

This section is empty.

Functions

func ToCommonAddress

func ToCommonAddress(addr string) (common.Address, error)

Types

type MessageHandler

type MessageHandler interface {
	HandleMessage(m *message.Message) (*proposal.Proposal, error)
}

type TronChain

type TronChain struct {
	// contains filtered or unexported fields
}

func NewTronChain

func NewTronChain(messageHandler MessageHandler) *TronChain

func (*TronChain) DomainID

func (c *TronChain) DomainID() uint64

func (*TronChain) PollEvents

func (c *TronChain) PollEvents(_ context.Context)

func (*TronChain) ReceiveMessage

func (c *TronChain) ReceiveMessage(m *message.Message) (*proposal.Proposal, error)

func (*TronChain) Write

func (c *TronChain) Write(_ []*proposal.Proposal) error

Directories

Path Synopsis
mock
Package mock_message is a generated GoMock package.
Package mock_message is a generated GoMock package.

Jump to

Keyboard shortcuts

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