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 ¶
- type RequstGenerator
- func (r *RequstGenerator) Address() common.Address
- func (r *RequstGenerator) NormalTx(tokenId int32, nonce uint64, to common.Address, value *math.BigInt) rpc.NewTxRequest
- func (r *RequstGenerator) SecondPublicOffering(tokenId int32, nonce uint64, value *math.BigInt) rpc.NewPublicOfferingRequest
- func (r *RequstGenerator) TokenDestroy(tokenId int32, nonce uint64) rpc.NewPublicOfferingRequest
- func (r *RequstGenerator) TokenPublishing(nonce uint64, enableSPO bool, tokenName string, value *math.BigInt) rpc.NewPublicOfferingRequest
- type TxClient
- func (o *TxClient) ConsumeQueue()
- func (a *TxClient) GetNonce(addr common.Address) (nonce uint64, err error)
- func (a *TxClient) GetTokenList() (TokenList string, err error)
- func (A *TxClient) SendAsyncTx(Req *rpc.NewTxRequest)
- func (a *TxClient) SendNormalTx(request *rpc.NewTxRequest) (string, error)
- func (a *TxClient) SendNormalTxs(request *rpc.NewTxsRequests) (string, error)
- func (a *TxClient) SendTokenDestroy(request *rpc.NewPublicOfferingRequest) (string, error)
- func (a *TxClient) SendTokenIPO(request *rpc.NewPublicOfferingRequest) (string, error)
- func (a *TxClient) SendTokenSPO(request *rpc.NewPublicOfferingRequest) (string, error)
- func (a *TxClient) StartAsyncLoop()
- func (a *TxClient) Stop()
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 ¶
func NewTxClient ¶
func NewTxClientWIthTimeOut ¶
func (*TxClient) ConsumeQueue ¶
func (o *TxClient) ConsumeQueue()
func (*TxClient) GetTokenList ¶
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()
Click to show internal directories.
Click to hide internal directories.