Documentation
¶
Index ¶
- type Manager
- type MemoryStorage
- type RedisStorage
- type SimpleManager
- func (nm *SimpleManager) PeekNonce(account common.Address) (uint64, error)
- func (nm *SimpleManager) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (nm *SimpleManager) ResetNonce(ctx context.Context, account common.Address) error
- func (nm *SimpleManager) SuggestGasPrice(ctx context.Context) (gasPrice *big.Int, err error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStorage ¶
type MemoryStorage struct {
// contains filtered or unexported fields
}
func NewMemoryStorage ¶
func NewMemoryStorage() *MemoryStorage
func (*MemoryStorage) GetNonce ¶
func (s *MemoryStorage) GetNonce(account common.Address) (uint64, error)
func (*MemoryStorage) NonceLockFrom ¶
func (s *MemoryStorage) NonceLockFrom(from common.Address) sync.Locker
type RedisStorage ¶
type RedisStorage struct {
// contains filtered or unexported fields
}
func NewRedisStorage ¶
func NewRedisStorage(chainId *big.Int, pool redis.Pool) *RedisStorage
func (*RedisStorage) GetNonce ¶
func (s *RedisStorage) GetNonce(account common.Address) (uint64, error)
func (*RedisStorage) NonceLockFrom ¶
func (s *RedisStorage) NonceLockFrom(from common.Address) sync.Locker
type SimpleManager ¶
type SimpleManager struct {
Storage
// contains filtered or unexported fields
}
func GetSimpleManager ¶
func GetSimpleManager(backend ethBackend, storage Storage) (*SimpleManager, error)
func NewSimpleManager ¶
func NewSimpleManager(backend ethBackend, storage Storage) (*SimpleManager, error)
func (*SimpleManager) PeekNonce ¶
func (nm *SimpleManager) PeekNonce(account common.Address) (uint64, error)
func (*SimpleManager) PendingNonceAt ¶
func (*SimpleManager) ResetNonce ¶
func (*SimpleManager) SuggestGasPrice ¶
Click to show internal directories.
Click to hide internal directories.