Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithThresholdPct ¶
func WithTicker ¶
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func NewBuffer ¶
NewBuffer creates a new gas price buffer.
A gas price buffer maintains a buffered view of gas prices for multiple chains. Buffered gas prices are not updated unless they are outside the threshold percentage. Start steaming gas prices with Buffer.Stream(ctx).
type MockPricer ¶
type MockPricer struct {
// contains filtered or unexported fields
}
func NewMockPricer ¶
func NewMockPricer(price uint64) *MockPricer
func (*MockPricer) Price ¶
func (m *MockPricer) Price() uint64
func (*MockPricer) SetPrice ¶
func (m *MockPricer) SetPrice(price uint64)
func (*MockPricer) SuggestGasPrice ¶
Click to show internal directories.
Click to hide internal directories.