ton

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 10 Imported by: 117

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMessageNotAccepted = errors.New("message was not accepted by the contract")

Functions

This section is empty.

Types

type APIClient

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

func NewAPIClient

func NewAPIClient(client LiteClient) *APIClient

func (*APIClient) GetAccount added in v0.3.0

func (c *APIClient) GetAccount(ctx context.Context, block *tlb.BlockInfo, addr *address.Address) (*Account, error)

func (*APIClient) GetBlockInfo

func (c *APIClient) GetBlockInfo(ctx context.Context) (*tlb.BlockInfo, error)

func (*APIClient) ListTransactions added in v0.5.0

func (c *APIClient) ListTransactions(ctx context.Context, addr *address.Address, num uint32, lt uint64, txHash tlb.TxHash) ([]*tlb.Transaction, error)

func (*APIClient) RunGetMethod

func (c *APIClient) RunGetMethod(ctx context.Context, blockInfo *tlb.BlockInfo, addr *address.Address, method string, params ...interface{}) ([]interface{}, error)

func (*APIClient) SendExternalMessage added in v0.4.0

func (c *APIClient) SendExternalMessage(ctx context.Context, addr *address.Address, msg *cell.Cell) error

type Account added in v0.3.0

type Account struct {
	IsActive   bool
	State      *tlb.AccountState
	Data       *cell.Cell
	Code       *cell.Cell
	LastTxLT   uint64
	LastTxHash tlb.TxHash
}

type LiteClient

type LiteClient interface {
	Do(ctx context.Context, typeID int32, payload []byte) (*liteclient.LiteResponse, error)
}

Jump to

Keyboard shortcuts

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