mirror of
https://github.com/grassrootseconomics/cic-custodial.git
synced 2024-11-22 22:26:46 +01:00
33 lines
603 B
Go
33 lines
603 B
Go
package store
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grassrootseconomics/cic-custodial/pkg/status"
|
|
)
|
|
|
|
type (
|
|
OTX struct {
|
|
RawTx string
|
|
TxHash string
|
|
From string
|
|
Data string
|
|
GasPrice uint64
|
|
Nonce uint64
|
|
TrackingId string
|
|
}
|
|
|
|
DispatchStatus struct {
|
|
OtxId uint
|
|
Status status.Status
|
|
TrackingId string
|
|
}
|
|
|
|
Store interface {
|
|
// OTX (Custodial originating transactions).
|
|
CreateOTX(ctx context.Context, otx OTX) (id uint, err error)
|
|
// Dispatch status.
|
|
CreateDispatchStatus(ctx context.Context, dispatch DispatchStatus) (id uint, err error)
|
|
}
|
|
)
|