Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Defaults = Config{
Blocks: 30,
Percentile: 60,
MaxPrice: defaultMaxPrice,
IgnorePrice: defaultIgnorePrice,
}
)
Functions ¶
This section is empty.
Types ¶
type Oracle ¶
type Oracle struct {
// contains filtered or unexported fields
}
Oracle recommends gas prices based on the content of recent blocks. Suitable for both light and full clients.
type OracleBackend ¶
type OracleBackend interface { Header() *types.Header GetBlockByNumber(n uint64, full bool) (*types.Block, bool) GetReceiptsByHash(hash types.Hash) ([]*types.Receipt, error) // PendingBlockAndReceipts() (*types.Block, types.Receipts) ChainID() uint64 ForksInTime(number uint64) chain.ForksInTime SubscribeEvents() blockchain.Subscription }
OracleBackend includes most necessary background APIs for oracle.
Click to show internal directories.
Click to hide internal directories.