Documentation ¶
Index ¶
- Constants
- type Configuration
- type Engine
- func (e *Engine) EnsureSendGroupEvents(address string, events []*encoding.Event) error
- func (e *Engine) EstimateCost(events []*encoding.Event) (common.Integer, error)
- func (e *Engine) Hash(b []byte) []byte
- func (e *Engine) IsPublisher() bool
- func (e *Engine) ReceiveGroupEvents(address string, offset uint64, limit int) ([]*encoding.Event, error)
- func (e *Engine) SetupNotifier(address string) error
- func (e *Engine) VerifyAddress(address string, _ []byte) error
- func (e *Engine) VerifyEvent(address string, event *encoding.Event) bool
- type EthereumError
- type Log
- type RPC
- func (chain *RPC) GetAddressBalance(address string) (decimal.Decimal, error)
- func (chain *RPC) GetAddressNonce(address string) (uint64, error)
- func (chain *RPC) GetBlockHeight() (uint64, error)
- func (chain *RPC) GetLogs(topic string, from, to uint64) ([]*Log, error)
- func (chain *RPC) SendRawTransaction(raw string) (string, error)
Constants ¶
View Source
const ( ClockTick = 3 * time.Second // event MixinTransaction(bytes); EventTopic = "0xdb53e751d28ed0d6e3682814bf8d23f7dd7b29c94f74a56fbb7f88e9dca9f39b" // function mixin(bytes calldata raw) public returns (bool) EventMethod = "0x5cae8005" GasLimit = 8000000 GasPrice = 50000000 NotifierMinimumBalance = 0.02 NotifierMaximumBalance = 0.1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func Boot ¶
func Boot(conf *Configuration) (*Engine, error)
func (*Engine) EnsureSendGroupEvents ¶
func (*Engine) EstimateCost ¶
func (*Engine) IsPublisher ¶
func (*Engine) ReceiveGroupEvents ¶
func (*Engine) SetupNotifier ¶
type EthereumError ¶
func (*EthereumError) Error ¶
func (err *EthereumError) Error() string
type RPC ¶
type RPC struct {
// contains filtered or unexported fields
}
func (*RPC) GetAddressBalance ¶
func (*RPC) GetBlockHeight ¶
Click to show internal directories.
Click to hide internal directories.