Documentation
¶
Index ¶
- Variables
- type ContractExt
- func (contract *ContractExt) Call(v interface{}, tx *dto.TransactionParameters, functionName string, ...) (interface{}, error)
- func (contract *ContractExt) Deploy(tx *dto.TransactionParameters, bytecode string, args ...interface{}) (string, error)
- func (contract *ContractExt) Do(tx *dto.TransactionParameters, functionName string, args ...interface{}) (string, error)
- type Web3Config
- type Web3Ext
- func (ext *Web3Ext) DBGetString(k string) (string, error)
- func (ext *Web3Ext) GetRawTransactionByHash(hash string) (string, error)
- func (ext *Web3Ext) GetTransactionByHash(hash string) (*types.Transaction, error)
- func (ext *Web3Ext) NewContract(abiJson []byte) (*ContractExt, error)
- func (ext *Web3Ext) SendCoin(txC uint64, toString string, value *big.Int, keyString string, data []byte, ...) (uint64, error)
- func (ext *Web3Ext) SendRawTransaction(raw string) (string, error)
- func (ext *Web3Ext) SendTransaction(tx *eip155.Transaction, si eip155.Signer, config *Web3Config) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UNPARSEABLEINTERFACE = errors.New("Unparseable Interface") WEBSOCKETNOTDENIFIED = errors.New("Websocket connection dont exist") )
Functions ¶
This section is empty.
Types ¶
type ContractExt ¶
func (*ContractExt) Call ¶
func (contract *ContractExt) Call(v interface{}, tx *dto.TransactionParameters, functionName string, args ...interface{}) (interface{}, error)
func (*ContractExt) Deploy ¶
func (contract *ContractExt) Deploy(tx *dto.TransactionParameters, bytecode string, args ...interface{}) (string, error)
func (*ContractExt) Do ¶
func (contract *ContractExt) Do(tx *dto.TransactionParameters, functionName string, args ...interface{}) (string, error)
type Web3Config ¶
type Web3Ext ¶
type Web3Ext struct {
// contains filtered or unexported fields
}
func NewWeb3Ext ¶
func NewWeb3Ext(provider providers.ProviderInterface) *Web3Ext
func (*Web3Ext) GetRawTransactionByHash ¶
func (*Web3Ext) GetTransactionByHash ¶
func (ext *Web3Ext) GetTransactionByHash(hash string) (*types.Transaction, error)
func (*Web3Ext) NewContract ¶
func (ext *Web3Ext) NewContract(abiJson []byte) (*ContractExt, error)
func (*Web3Ext) SendRawTransaction ¶
func (*Web3Ext) SendTransaction ¶
func (ext *Web3Ext) SendTransaction(tx *eip155.Transaction, si eip155.Signer, config *Web3Config) error
Click to show internal directories.
Click to hide internal directories.