elastosadenine

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	Connection *grpc.ClientConn
}

func NewCommon

func NewCommon(host string, port int, production bool) *Common

func (*Common) Close

func (c *Common) Close()

func (*Common) GenerateAPIRequest

func (c *Common) GenerateAPIRequest(secretKey, did string) *common.Response

func (*Common) GenerateAPIRequestMnemonic

func (c *Common) GenerateAPIRequestMnemonic(mnemonic string) *common.Response

func (*Common) GetAPIKey

func (c *Common) GetAPIKey(secretKey, did string) *common.Response

func (*Common) GetAPIKeyMnemonic

func (c *Common) GetAPIKeyMnemonic(mnemonic string) *common.Response

type HealthCheck

type HealthCheck struct {
	Connection *grpc.ClientConn
}

func NewHealthCheck

func NewHealthCheck(host string, port int, production bool) *HealthCheck

func (*HealthCheck) Check

func (*HealthCheck) Close

func (hc *HealthCheck) Close()

type Hive

type Hive struct {
	Connection *grpc.ClientConn
}

func NewHive

func NewHive(host string, port int, production bool) *Hive

func (*Hive) Close

func (h *Hive) Close()

func (*Hive) UploadAndSign

func (h *Hive) UploadAndSign(apiKey, network, privateKey, filename string) *hive.Response

func (*Hive) VerifyAndShow

func (h *Hive) VerifyAndShow(apiKey, network, privateKey, msg, pub, sig, hash string) *hive.Response

type InputRequestWallet

type InputRequestWallet struct {
	Address string `json:"address"`
	Chain   string `json:"chain"`
}

type InputSidechainEthDeploy

type InputSidechainEthDeploy struct {
	Address        string `json:"eth_account_address"`
	PrivateKey     string `json:"eth_private_key"`
	Gas            int    `json:"eth_gas"`
	ContractSource string `json:"contract_source"`
	ContractName   string `json:"contract_name"`
}

type InputSidechainEthWatch

type InputSidechainEthWatch struct {
	ContractAddress  string `json:"contract_address"`
	ContractName     string `json:"contract_name"`
	ContractCodeHash string `json:"contract_code_hash"`
}

type InputUploadAndSign

type InputUploadAndSign struct {
	PrivateKey string `json:"privateKey"`
}

type InputVerifyAndShow

type InputVerifyAndShow struct {
	Msg        string `json:"msg"`
	Pub        string `json:"pub"`
	Sig        string `json:"sig"`
	Hash       string `json:"hash"`
	PrivateKey string `json:"privateKey"`
}

type InputViewWallet

type InputViewWallet struct {
	Address string `json:"address"`
	Chain   string `json:"chain"`
}

type SidechainEth

type SidechainEth struct {
	Connection *grpc.ClientConn
}

func NewSidechainEth

func NewSidechainEth(host string, port int, production bool) *SidechainEth

func (*SidechainEth) Close

func (e *SidechainEth) Close()

func (*SidechainEth) DeployEthContract

func (e *SidechainEth) DeployEthContract(apiKey, network, address, privateKey string, gas int, fileName string) *sidechain_eth.Response

func (*SidechainEth) WatchEthContract

func (e *SidechainEth) WatchEthContract(apiKey, network, contractAddress, contractName, contractCodeHash string) *sidechain_eth.Response

type SolidityListener

type SolidityListener struct {
	*parser.BaseSolidityListener
	ContractName string
}

func (*SolidityListener) EnterContractDefinition

func (s *SolidityListener) EnterContractDefinition(ctx *parser.ContractDefinitionContext)

type Wallet

type Wallet struct {
	Connection *grpc.ClientConn
}

func NewWallet

func NewWallet(host string, port int, production bool) *Wallet

func (*Wallet) Close

func (w *Wallet) Close()

func (*Wallet) CreateWallet

func (w *Wallet) CreateWallet(apiKey, network string) *wallet.Response

func (*Wallet) RequestELA

func (w *Wallet) RequestELA(apiKey, chain, address string) *wallet.Response

func (*Wallet) ViewWallet

func (w *Wallet) ViewWallet(apiKey, network, chain, address string) *wallet.Response

Directories

Path Synopsis
stubs

Jump to

Keyboard shortcuts

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