evm

package
v0.0.0-...-f8fb21d Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const ContractGasLimit = 3000000

Variables

This section is empty.

Functions

func ERC20ABI

func ERC20ABI() abi.ABI

func NewClient

func NewClient(chain common.Chain, host string, keys *thorclient.Keys) (LiteChainClient, error)

func NewConstructor

func NewConstructor(host string) LiteChainClientConstructor

func RouterABI

func RouterABI() abi.ABI

func Tokens

func Tokens(chain common.Chain) map[common.Asset]tokenlist.ERC20Token

Tokens returns the list of tokens that are used in the simulation. All tokens will be looked up and included in the GetAccount response. This method can be replicated with build tag scope for testing different environments in the future.

Types

type Client

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

func (*Client) BroadcastTx

func (c *Client) BroadcastTx(signed []byte) (string, error)

func (*Client) GetAccount

func (c *Client) GetAccount(pk *common.PubKey) (*common.Account, error)

func (*Client) GetTokenDecimals

func (c *Client) GetTokenDecimals(address string) (int, error)

func (*Client) SignContractTx

func (c *Client) SignContractTx(tx SimContractTx) ([]byte, error)

func (*Client) SignTx

func (c *Client) SignTx(tx SimTx) ([]byte, error)

Jump to

Keyboard shortcuts

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