tx_client

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Copyright © 2019 Annchain Authors <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by TxClientlicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequstGenerator

type RequstGenerator struct {
	Nodebug bool
	// contains filtered or unexported fields
}

func NewRequestGenerator

func NewRequestGenerator(priv crypto.PrivateKey) *RequstGenerator

func (*RequstGenerator) Address

func (r *RequstGenerator) Address() common.Address

func (*RequstGenerator) NormalTx

func (r *RequstGenerator) NormalTx(tokenId int32, nonce uint64, to common.Address, value *math.BigInt) rpc.NewTxRequest

func (*RequstGenerator) SecondPublicOffering

func (r *RequstGenerator) SecondPublicOffering(tokenId int32, nonce uint64, value *math.BigInt) rpc.NewPublicOfferingRequest

func (*RequstGenerator) TokenDestroy

func (r *RequstGenerator) TokenDestroy(tokenId int32, nonce uint64) rpc.NewPublicOfferingRequest

func (*RequstGenerator) TokenPublishing

func (r *RequstGenerator) TokenPublishing(nonce uint64, enableSPO bool, tokenName string, value *math.BigInt) rpc.NewPublicOfferingRequest

type TxClient

type TxClient struct {
	Host  string
	Debug bool
	// contains filtered or unexported fields
}

func NewTxClient

func NewTxClient(Host string, debug bool) TxClient

func NewTxClientWIthTimeOut

func NewTxClientWIthTimeOut(Host string, debug bool, timeOut time.Duration) TxClient

func (*TxClient) ConsumeQueue

func (o *TxClient) ConsumeQueue()

func (*TxClient) GetNonce

func (a *TxClient) GetNonce(addr common.Address) (nonce uint64, err error)

func (*TxClient) GetTokenList

func (a *TxClient) GetTokenList() (TokenList string, err error)

func (*TxClient) SendAsyncTx

func (A *TxClient) SendAsyncTx(Req *rpc.NewTxRequest)

func (*TxClient) SendNormalTx

func (a *TxClient) SendNormalTx(request *rpc.NewTxRequest) (string, error)

func (*TxClient) SendNormalTxs

func (a *TxClient) SendNormalTxs(request *rpc.NewTxsRequests) (string, error)

func (*TxClient) SendTokenDestroy

func (a *TxClient) SendTokenDestroy(request *rpc.NewPublicOfferingRequest) (string, error)

func (*TxClient) SendTokenIPO

func (a *TxClient) SendTokenIPO(request *rpc.NewPublicOfferingRequest) (string, error)

func (*TxClient) SendTokenSPO

func (a *TxClient) SendTokenSPO(request *rpc.NewPublicOfferingRequest) (string, error)

func (*TxClient) StartAsyncLoop

func (a *TxClient) StartAsyncLoop()

func (*TxClient) Stop

func (a *TxClient) Stop()

Jump to

Keyboard shortcuts

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