managers

package
v0.0.0-...-9831709 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2019 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddressCollection map[string]AddressInfo
View Source
var Chain api.Chain

Functions

func AddBlockReference

func AddBlockReference(transaction aelf.Transaction) aelf.Transaction

func ConvertTransactionRawTxString

func ConvertTransactionRawTxString(transaction aelf.Transaction) (rawString string)

func GetHash

func GetHash(signature []byte) (hash aelf.Hash)

func GetHashBytes

func GetHashBytes(signature []byte) []byte

func GetSignatureData

func GetSignatureData(transaction aelf.Transaction) []byte

func GetTransactionBytes

func GetTransactionBytes(transaction aelf.Transaction) (bytes []byte)

func InitBlockMarking

func InitBlockMarking(chain api.Chain)

Types

type AddressInfo

type AddressInfo struct {
	PublicKey  []byte
	PrivateKey []byte
	Address    aelf.Address
	Account    string
}

func GenerateNewAddress

func GenerateNewAddress() (addressInfo AddressInfo)

func GetAddressByString

func GetAddressByString(account string) (address AddressInfo)

func (AddressInfo) SignTransaction

func (address AddressInfo) SignTransaction(transaction aelf.Transaction) aelf.Transaction

type ContractFactory

type ContractFactory struct {
	Chain           api.Chain
	Owner           AddressInfo
	ContractAddress string
}

func GetContractFactory

func GetContractFactory(chain api.Chain, info AddressInfo, contract string) (cf ContractFactory)

func (ContractFactory) CallTransaction

func (cf ContractFactory) CallTransaction(method string, inputMessage proto.Message) (result []byte)

func (ContractFactory) GenerateTransaction

func (cf ContractFactory) GenerateTransaction(method string, inputMessage proto.Message) (transaction aelf.Transaction)

func (ContractFactory) SendTransaction

func (cf ContractFactory) SendTransaction(method string, inputMessage proto.Message) (result dto.BroadcastTransactionOutput)

type TransactionManager

type TransactionManager struct {
}

Jump to

Keyboard shortcuts

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