currency

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 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) GetChain

func (a *Arweave) GetChain() string

func (*Arweave) GetName

func (a *Arweave) GetName() string

func (Arweave) GetPrivateKey

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

func (Arweave) GetPublicKey

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

func (*Arweave) GetRPCAddr

func (a *Arweave) GetRPCAddr() string

func (Arweave) GetRPCClient

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

func (*Arweave) GetSinger

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

func (*Arweave) GetSymbol

func (a *Arweave) GetSymbol() string

func (*Arweave) GetType

func (a *Arweave) GetType() CurrencyType

type Currency

type Currency interface {
	Ether
	GetName() string
	GetChain() string
	GetSymbol() string
	GetSinger() signer.Signer
	GetRPCAddr() string
	GetType() CurrencyType
}

func NewArbitrum

func NewArbitrum(privateKey, rpc string) (Currency, error)

NewArbitrum create arbitrum object currency

func NewArweave

func NewArweave(privateKey string) (Currency, error)

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

func NewArweaveFromFile

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

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

func NewAvalanche

func NewAvalanche(privateKey, rpc string) (Currency, error)

NewAvalanche create avalanche object currency

func NewBNB

func NewBNB(privateKey, rpc string) (Currency, error)

NewBNB create bnb object currency

func NewEthereum

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

NewEthereum create ethereum currency object

func NewFantom

func NewFantom(privateKey, rpc string) (Currency, error)

NewFantom create fantom object currency

func NewMatic

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

NewMatic create matic object currency

type CurrencyType

type CurrencyType uint8
const (
	ETHEREUM CurrencyType = iota
	MATIC
	BNB
	ARBITRUM
	AVALANCHE
	FANTOM
	ARWEAVE
)

type Ether

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

type Ethereum

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

func (*Ethereum) GetChain

func (e *Ethereum) GetChain() string

func (*Ethereum) GetName

func (e *Ethereum) GetName() string

func (*Ethereum) GetPrivateKey

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

func (*Ethereum) GetPublicKey

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

func (*Ethereum) GetRPCAddr

func (e *Ethereum) GetRPCAddr() string

func (*Ethereum) GetRPCClient

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

func (*Ethereum) GetSinger

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

func (*Ethereum) GetSymbol

func (e *Ethereum) GetSymbol() string

func (*Ethereum) GetType

func (e *Ethereum) GetType() CurrencyType

Jump to

Keyboard shortcuts

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