mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-10-31 21:26:45 +01:00
fix: export TxStatus struct
This commit is contained in:
parent
e91f82c08a
commit
8ef2311d8e
@ -22,7 +22,7 @@ type (
|
|||||||
GasPrice *big.Int
|
GasPrice *big.Int
|
||||||
Nonce uint64
|
Nonce uint64
|
||||||
}
|
}
|
||||||
txStatus struct {
|
TxStatus struct {
|
||||||
CreatedAt time.Time `db:"created_at" json:"createdAt"`
|
CreatedAt time.Time `db:"created_at" json:"createdAt"`
|
||||||
Status string `db:"status" json:"status"`
|
Status string `db:"status" json:"status"`
|
||||||
TransferValue uint64 `db:"transfer_value" json:"transferValue"`
|
TransferValue uint64 `db:"transfer_value" json:"transferValue"`
|
||||||
@ -85,9 +85,9 @@ func (s *PgStore) GetNextNonce(
|
|||||||
func (s *PgStore) GetTxStatus(
|
func (s *PgStore) GetTxStatus(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
trackingId string,
|
trackingId string,
|
||||||
) (txStatus, error) {
|
) (TxStatus, error) {
|
||||||
var (
|
var (
|
||||||
tx txStatus
|
tx TxStatus
|
||||||
)
|
)
|
||||||
|
|
||||||
rows, err := s.db.Query(
|
rows, err := s.db.Query(
|
||||||
|
@ -22,7 +22,7 @@ type (
|
|||||||
// Otx related actions.
|
// Otx related actions.
|
||||||
CreateOtx(context.Context, Otx) (uint, error)
|
CreateOtx(context.Context, Otx) (uint, error)
|
||||||
GetNextNonce(context.Context, string) (uint64, error)
|
GetNextNonce(context.Context, string) (uint64, error)
|
||||||
GetTxStatus(context.Context, string) (txStatus, error)
|
GetTxStatus(context.Context, string) (TxStatus, error)
|
||||||
CreateDispatchStatus(context.Context, uint, enum.OtxStatus) error
|
CreateDispatchStatus(context.Context, uint, enum.OtxStatus) error
|
||||||
UpdateDispatchStatus(context.Context, bool, string, uint64) error
|
UpdateDispatchStatus(context.Context, bool, string, uint64) error
|
||||||
// Account related actions.
|
// Account related actions.
|
||||||
|
Loading…
Reference in New Issue
Block a user