Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ChainId *big.Int GasPriceMultiPoint float64 GasPrice int64 )
Functions ¶
This section is empty.
Types ¶
type AppService ¶
An AppService provides an HTTP client and a signer to make a HTTP request with the signature to KuCoin API.
func NewAppService ¶
func NewAppService(opts ...AppServiceOption) (*AppService, error)
func (*AppService) GetNativeBalance ¶
func (as *AppService) GetNativeBalance(userAddr string) (*big.Int, error)
func (*AppService) SpiltTx ¶
func (as *AppService) SpiltTx(txHash string) string
func (*AppService) TransferNativeBalance ¶
type AppServiceOption ¶
type AppServiceOption func(service *AppService)
An AppServiceOption is an option parameter to create the instance of AppService.
func AppChainIdOption ¶
func AppChainIdOption(chainId string) AppServiceOption
AppChainIdOption creates an instance of ApiServiceOption about chainId.
func AppGasPriceMultiOption ¶
func AppGasPriceMultiOption(gasPriceMulti float64) AppServiceOption
AppGasPriceMultiOption creates an instance of ApiServiceOption about gas price multipoint.
func AppGasPriceOption ¶
func AppGasPriceOption(gasPrice int64) AppServiceOption
AppGasPriceOption creates an instance of ApiServiceOption about gas price.
func AppKeyOption ¶
func AppKeyOption(key string) AppServiceOption
AppKeyOption creates an instance of ApiServiceOption about key.
func AppRpcUriOption ¶
func AppRpcUriOption(rpcUri string) AppServiceOption
AppRpcUriOption creates an instance of ApiServiceOption about rpc uri.
type Config ¶
type Config struct { Token Token Mojito Mojito Torches Torches Chain Chain Witnet Witnet TorchesOralce TorchesOralce MojitoOracle MojitoOracle }
func GetConfigForKCC ¶
func GetConfigForKCC() *Config
func GetConfigForKCCTestnet ¶
func GetConfigForKCCTestnet() *Config
type MojitoOracle ¶
type NetworkParams ¶
type Token ¶
type Token struct { BTCAddress string ETHAddress string SKCSAddress string WKCSAddress string WOKTAddress string OKBAddress string USDTAddress string USDCAddress string MJTAddress string CHEAddress string APEAddress string MULTIAddress string SAXAddress string SANDAddress string MANAAddress string MLSAddress string AAVEAddress string CRVAddress string UNIAddress string CFXAddress string LINKAddress string }
type TorchesOralce ¶
Click to show internal directories.
Click to hide internal directories.