Documentation ¶
Index ¶
- Variables
- func AllMinersOfPool(pool common.Address) [][32]byte
- func AllPoosInMarket() (map[common.Address]*eth.PoolData, error)
- func ApproveToSpend(tokenNo *big.Int, key *ecdsa.PrivateKey) (string, error)
- func BuyPacket(userAddr, poolAddr string, tokenNo *big.Int, key *ecdsa.PrivateKey) (string, error)
- func ConvertByDecimal(val *big.Int) float64
- func ConvertByFloat(val float64) *big.Int
- func EthUserData(user, pool common.Address) (*eth.UserData, error)
- func MinerDetails(subAddr [32]byte) *eth.MinerData
- func MinerSize(pool common.Address) int
- func MinersByIndex(pool common.Address, start, end int64) [][32]byte
- func QueryApproved(address common.Address) *big.Int
- func SubscribedPools(user common.Address) ([]common.Address, error)
- func SyncSystemSetting() (*eth.SysSetting, error)
- func TokenBalance(address string) (*big.Int, *big.Int, *big.Int)
- func TransferEth(target string, tokenNo float64, privateKey *ecdsa.PrivateKey) (string, error)
- func TransferLinToken(target string, tokenNo float64, key *ecdsa.PrivateKey) (string, error)
- func TxStatus(tx common.Hash) bool
- func VersionManager() (*eth.Versions, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Conf = &com.EthereumConfig{ NetworkID: com.RopstenNetworkId, EthApiUrl: "https://ropsten.infura.io/v3/f3245cef90ed440897e43efc6b3dd0f7", MicroPaySys: common.HexToAddress("0x2af669877aFe2fe2aF750b4d7dCa8aE19501b054"), Token: common.HexToAddress("0x3adc98d5e292355e59ae2ca169d241d889b092e3"), }
Functions ¶
func AllMinersOfPool ¶
func ApproveToSpend ¶
func ConvertByDecimal ¶
func ConvertByFloat ¶
func MinerDetails ¶
func SyncSystemSetting ¶
func SyncSystemSetting() (*eth.SysSetting, error)
func TransferEth ¶
func TransferLinToken ¶
func VersionManager ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.