Documentation ¶
Index ¶
- type Arweave
- func (a *Arweave) GetChain() string
- func (a *Arweave) GetName() string
- func (u Arweave) GetPrivateKey() *ecdsa.PrivateKey
- func (u Arweave) GetPublicKey() *ecdsa.PublicKey
- func (a *Arweave) GetRPCAddr() string
- func (u Arweave) GetRPCClient() *ethclient.Client
- func (a *Arweave) GetSinger() signer.Signer
- func (a *Arweave) GetSymbol() string
- func (a *Arweave) GetType() CurrencyType
- type Currency
- func NewArbitrum(privateKey, rpc string) (Currency, error)
- func NewArweave(privateKey string) (Currency, error)
- func NewArweaveFromFile(filePath, rpc string) (Currency, error)
- func NewAvalanche(privateKey, rpc string) (Currency, error)
- func NewBNB(privateKey, rpc string) (Currency, error)
- func NewEthereum(privateKey, rpc string) (Currency, error)
- func NewFantom(privateKey, rpc string) (Currency, error)
- func NewMatic(privateKey, rpc string) (Currency, error)
- type CurrencyType
- type Ether
- type Ethereum
- func (e *Ethereum) GetChain() string
- func (e *Ethereum) GetName() string
- func (e *Ethereum) GetPrivateKey() *ecdsa.PrivateKey
- func (e *Ethereum) GetPublicKey() *ecdsa.PublicKey
- func (e *Ethereum) GetRPCAddr() string
- func (e *Ethereum) GetRPCClient() *ethclient.Client
- func (e *Ethereum) GetSinger() signer.Signer
- func (e *Ethereum) GetSymbol() string
- func (e *Ethereum) GetType() CurrencyType
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) GetPrivateKey ¶
func (u Arweave) GetPrivateKey() *ecdsa.PrivateKey
func (Arweave) GetPublicKey ¶
func (*Arweave) GetRPCAddr ¶
func (Arweave) GetRPCClient ¶
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 ¶
NewArbitrum create arbitrum object currency
func NewArweave ¶
NewArweave create token object from arweave private key payload (not supported for TopUp Balance)
func NewArweaveFromFile ¶
NewArweaveFromFile create token object for arweave by private key file arweave (not supported for TopUp Balance)
func NewAvalanche ¶
NewAvalanche create avalanche object currency
func NewEthereum ¶
NewEthereum create ethereum currency object
type CurrencyType ¶
type CurrencyType uint8
const ( ETHEREUM CurrencyType = iota MATIC BNB ARBITRUM AVALANCHE FANTOM ARWEAVE )
type Ethereum ¶
type Ethereum struct {
// contains filtered or unexported fields
}
func (*Ethereum) GetPrivateKey ¶
func (e *Ethereum) GetPrivateKey() *ecdsa.PrivateKey
func (*Ethereum) GetPublicKey ¶
func (*Ethereum) GetRPCAddr ¶
func (*Ethereum) GetRPCClient ¶
func (*Ethereum) GetType ¶
func (e *Ethereum) GetType() CurrencyType
Click to show internal directories.
Click to hide internal directories.