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
|
||||
Nonce uint64
|
||||
}
|
||||
txStatus struct {
|
||||
TxStatus struct {
|
||||
CreatedAt time.Time `db:"created_at" json:"createdAt"`
|
||||
Status string `db:"status" json:"status"`
|
||||
TransferValue uint64 `db:"transfer_value" json:"transferValue"`
|
||||
@ -85,9 +85,9 @@ func (s *PgStore) GetNextNonce(
|
||||
func (s *PgStore) GetTxStatus(
|
||||
ctx context.Context,
|
||||
trackingId string,
|
||||
) (txStatus, error) {
|
||||
) (TxStatus, error) {
|
||||
var (
|
||||
tx txStatus
|
||||
tx TxStatus
|
||||
)
|
||||
|
||||
rows, err := s.db.Query(
|
||||
|
@ -22,7 +22,7 @@ type (
|
||||
// Otx related actions.
|
||||
CreateOtx(context.Context, Otx) (uint, 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
|
||||
UpdateDispatchStatus(context.Context, bool, string, uint64) error
|
||||
// Account related actions.
|
||||
|
Loading…
Reference in New Issue
Block a user