token

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arweave

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

func (*Arweave) GetBundlrName

func (a *Arweave) GetBundlrName() string

func (*Arweave) GetChain

func (a *Arweave) GetChain() string

func (Arweave) GetPrivateKey added in v0.2.0

func (u Arweave) GetPrivateKey() *ecdsa.PrivateKey

func (Arweave) GetPublicKey added in v0.2.0

func (u Arweave) GetPublicKey() *ecdsa.PublicKey

func (*Arweave) GetRPCAddr added in v0.2.0

func (a *Arweave) GetRPCAddr() string

func (Arweave) GetRPCClient added in v0.2.0

func (u Arweave) GetRPCClient() *ethclient.Client

func (*Arweave) GetSinger added in v0.2.0

func (a *Arweave) GetSinger() signer.Signer

func (*Arweave) GetSymbol

func (a *Arweave) GetSymbol() string

func (*Arweave) GetType added in v0.2.0

func (a *Arweave) GetType() TokenType

type Ether added in v0.2.0

type Ether interface {
	GetRPCClient() *ethclient.Client
	GetPrivateKey() *ecdsa.PrivateKey
	GetPublicKey() *ecdsa.PublicKey
}

type Ethereum

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

func (*Ethereum) GetBundlrName

func (e *Ethereum) GetBundlrName() string

func (*Ethereum) GetChain

func (e *Ethereum) GetChain() string

func (*Ethereum) GetPrivateKey added in v0.2.0

func (e *Ethereum) GetPrivateKey() *ecdsa.PrivateKey

func (*Ethereum) GetPublicKey added in v0.2.0

func (e *Ethereum) GetPublicKey() *ecdsa.PublicKey

func (*Ethereum) GetRPCAddr added in v0.2.0

func (e *Ethereum) GetRPCAddr() string

func (*Ethereum) GetRPCClient added in v0.2.0

func (e *Ethereum) GetRPCClient() *ethclient.Client

func (*Ethereum) GetSinger added in v0.2.0

func (e *Ethereum) GetSinger() signer.Signer

func (*Ethereum) GetSymbol

func (e *Ethereum) GetSymbol() string

func (*Ethereum) GetType added in v0.2.0

func (e *Ethereum) GetType() TokenType

type Matic

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

func (*Matic) GetBundlrName

func (m *Matic) GetBundlrName() string

func (*Matic) GetChain

func (m *Matic) GetChain() string

func (*Matic) GetPrivateKey added in v0.2.0

func (m *Matic) GetPrivateKey() *ecdsa.PrivateKey

func (*Matic) GetPublicKey added in v0.2.0

func (m *Matic) GetPublicKey() *ecdsa.PublicKey

func (*Matic) GetRPCAddr added in v0.2.0

func (m *Matic) GetRPCAddr() string

func (*Matic) GetRPCClient added in v0.2.0

func (m *Matic) GetRPCClient() *ethclient.Client

func (*Matic) GetSinger added in v0.2.0

func (m *Matic) GetSinger() signer.Signer

func (*Matic) GetSymbol

func (m *Matic) GetSymbol() string

func (*Matic) GetType added in v0.2.0

func (m *Matic) GetType() TokenType

type Token

type Token interface {
	Ether
	GetBundlrName() string
	GetChain() string
	GetSymbol() string
	GetSinger() signer.Signer
	GetRPCAddr() string
	GetType() TokenType
}

func NewArweave

func NewArweave(privateKey string) (Token, error)

NewArweave create token object from arweave private key payload (not supported for TopUp Balance)

func NewArweaveFromFile

func NewArweaveFromFile(filePath, rpc string) (Token, error)

NewArweaveFromFile create token object for arweave by private key file arweave (not supported for TopUp Balance)

func NewEthereum

func NewEthereum(privateKey, rpc string) (Token, error)

NewEthereum create ethereum token object

func NewMatic

func NewMatic(privateKey, rpc string) (Token, error)

NewMatic create matic object token

type TokenType added in v0.2.0

type TokenType uint8
const (
	ETHEREUM TokenType = iota
	MATIC
	BNB
	ARWEAVE
)

Jump to

Keyboard shortcuts

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