Documentation ¶
Index ¶
- type DispatchStatus
- type MinimalTxInfo
- type OTX
- type Opts
- type PostgresStore
- func (s *PostgresStore) ActivateAccount(ctx context.Context, publicAddress string) error
- func (s *PostgresStore) CreateDispatchStatus(ctx context.Context, dispatch DispatchStatus) error
- func (s *PostgresStore) CreateOtx(ctx context.Context, otx OTX) (uint, error)
- func (s *PostgresStore) DecrGasQuota(ctx context.Context, publicAddress string) error
- func (s *PostgresStore) GetAccountActivationQuorum(ctx context.Context, trackingId string) (int, error)
- func (s *PostgresStore) GetAccountStatusByAddress(ctx context.Context, publicAddress string) (bool, int, error)
- func (s *PostgresStore) GetTxStatusByTrackingId(ctx context.Context, trackingId string) ([]*TxStatus, error)
- func (s *PostgresStore) ResetGasQuota(ctx context.Context, publicAddress string) error
- func (s *PostgresStore) UpdateOtxStatusFromChainEvent(ctx context.Context, chainEvent MinimalTxInfo) error
- type Store
- type TxStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DispatchStatus ¶
type MinimalTxInfo ¶
type PostgresStore ¶
type PostgresStore struct {
// contains filtered or unexported fields
}
func (*PostgresStore) ActivateAccount ¶
func (s *PostgresStore) ActivateAccount(ctx context.Context, publicAddress string) error
func (*PostgresStore) CreateDispatchStatus ¶
func (s *PostgresStore) CreateDispatchStatus(ctx context.Context, dispatch DispatchStatus) error
func (*PostgresStore) DecrGasQuota ¶
func (s *PostgresStore) DecrGasQuota(ctx context.Context, publicAddress string) error
func (*PostgresStore) GetAccountActivationQuorum ¶
func (*PostgresStore) GetAccountStatusByAddress ¶
func (*PostgresStore) GetTxStatusByTrackingId ¶
func (*PostgresStore) ResetGasQuota ¶
func (s *PostgresStore) ResetGasQuota(ctx context.Context, publicAddress string) error
func (*PostgresStore) UpdateOtxStatusFromChainEvent ¶
func (s *PostgresStore) UpdateOtxStatusFromChainEvent(ctx context.Context, chainEvent MinimalTxInfo) error
type Store ¶
type Store interface { CreateOtx(ctx context.Context, otx OTX) (id uint, err error) CreateDispatchStatus(ctx context.Context, dispatch DispatchStatus) error GetTxStatusByTrackingId(ctx context.Context, trackingId string) ([]*TxStatus, error) UpdateOtxStatusFromChainEvent(ctx context.Context, chainEvent MinimalTxInfo) error GetAccountStatusByAddress(ctx context.Context, publicAddress string) (bool, int, error) GetAccountActivationQuorum(ctx context.Context, trackingId string) (int, error) DecrGasQuota(ctx context.Context, publicAddress string) error ResetGasQuota(ctx context.Context, publicAddress string) error ActivateAccount(ctx context.Context, publicAddress string) error }
func NewPostgresStore ¶
Click to show internal directories.
Click to hide internal directories.