tokens

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSignableTokenERC20

func NewSignableTokenERC20(decimals int, tokenAddress string) *api.SignableToken

NewSignableTokenERC20 returns a new ERC20 type token. https://docs.x.immutable.com/docs/token-data-object#type-erc20

func NewSignableTokenERC721

func NewSignableTokenERC721(tokenID, tokenAddress string) *api.SignableToken

NewSignableTokenERC721 returns a new ERC721 type token. https://docs.x.immutable.com/docs/token-data-object#type-erc721

func NewSignableTokenEth

func NewSignableTokenEth() *api.SignableToken

NewSignableTokenEth returns a new ETH type token. https://docs.x.immutable.com/docs/token-data-object#type-eth

Types

type TokenType

type TokenType string
const (
	ETHType    TokenType = "ETH"
	ERC20Type  TokenType = "ERC20"
	ERC721Type TokenType = "ERC721"
)

Jump to

Keyboard shortcuts

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