Documentation ¶
Index ¶
- func GetKeyStore() (string, *strings.Reader)
- func GetKeyStoreReader() *strings.Reader
- type Blockchain
- func (b *Blockchain) GetRelayer(coinAddress common.Address, contractAddress common.Address) (*RInfo, error)
- func (b *Blockchain) GetTokenInfo(token common.Address, abi *abi.ABI) (*TokenInfo, error)
- func (b *Blockchain) GetTokenInfoEx(token common.Address, abiPath string) (*TokenInfo, error)
- func (b *Blockchain) RunContract(contractAddr common.Address, abi *abi.ABI, method string, args ...interface{}) (interface{}, error)
- type PairToken
- type RInfo
- type Relayer
- type Signer
- type TokenInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeyStore ¶
GetKeyStore return passparser and keystore reader
func GetKeyStoreReader ¶
GetKeyStoreReader return reader for keystore
Types ¶
type Blockchain ¶
type Blockchain struct {
// contains filtered or unexported fields
}
Blockchain struct
func NewBlockchain ¶
NewBlockchain init
func (*Blockchain) GetRelayer ¶
func (b *Blockchain) GetRelayer(coinAddress common.Address, contractAddress common.Address) (*RInfo, error)
GetRelayer return all tokens in smart contract
func (*Blockchain) GetTokenInfo ¶
GetTokenInfo return token info
func (*Blockchain) GetTokenInfoEx ¶
GetTokenInfoEx return token info
func (*Blockchain) RunContract ¶
func (b *Blockchain) RunContract(contractAddr common.Address, abi *abi.ABI, method string, args ...interface{}) (interface{}, error)
RunContract run smart contract
type RInfo ¶
type RInfo struct { Tokens map[common.Address]*TokenInfo Pairs []*PairToken MakeFee uint16 TakeFee uint16 }
RInfo struct
type Relayer ¶
type Relayer struct {
// contains filtered or unexported fields
}
Relayer get token
func NewRelayer ¶
NewRelayer init relayer
func (*Relayer) GetRelayer ¶
GetRelayer get relayer information
type Signer ¶
type Signer struct { Keystore string `json:"keystore_path"` Passphrase string `json:"passphrase"` // contains filtered or unexported fields }
func NewSignerFile ¶
func (*Signer) GetAddress ¶
func (*Signer) GetTransactOpts ¶
func (self *Signer) GetTransactOpts() *bind.TransactOpts
func (*Signer) Sign ¶
func (self *Signer) Sign(tx *types.Transaction) (*types.Transaction, error)
Click to show internal directories.
Click to hide internal directories.