Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectOPIDatabase ¶
func ConnectOPIDatabase(config *DatabaseConfig) (*gorm.DB, error)
Types ¶
type DatabaseConfig ¶
type OPIOrdGetter ¶
type OPIOrdGetter struct {
// contains filtered or unexported fields
}
func NewOPIOrdGetter ¶
func NewOPIOrdGetter(config *DatabaseConfig) (*OPIOrdGetter, error)
func (*OPIOrdGetter) GetBlockHash ¶
func (opi *OPIOrdGetter) GetBlockHash(blockHeight uint) (string, error)
func (*OPIOrdGetter) GetLatestBlockHeight ¶
func (opi *OPIOrdGetter) GetLatestBlockHeight() (uint, error)
func (*OPIOrdGetter) GetOrdTransfers ¶
func (opi *OPIOrdGetter) GetOrdTransfers(blockHeight uint) ([]OrdTransfer, error)
type OPIOrdGetterTest ¶
type OPIOrdGetterTest struct { BlockHash map[uint]string OrdTransfers []OrdTransfer // contains filtered or unexported fields }
func NewOPIOrdGetterTest ¶
func NewOPIOrdGetterTest(config *DatabaseConfig, latestBlockHeight uint, hashedHeight uint) (*OPIOrdGetterTest, error)
func (*OPIOrdGetterTest) GetBlockHash ¶
func (opi *OPIOrdGetterTest) GetBlockHash(blockHeight uint) (string, error)
func (*OPIOrdGetterTest) GetLatestBlockHeight ¶
func (opi *OPIOrdGetterTest) GetLatestBlockHeight() (uint, error)
func (*OPIOrdGetterTest) GetOrdTransfers ¶
func (opi *OPIOrdGetterTest) GetOrdTransfers(blockHeight uint) ([]OrdTransfer, error)
func (*OPIOrdGetterTest) SetLatestBlockHeight ¶
func (opi *OPIOrdGetterTest) SetLatestBlockHeight(height uint)
type OrdTransfer ¶
type OrdTransfer struct { ID uint InscriptionID string BlockHeight uint OldSatpoint string NewSatpoint string NewPkscript ord.Pkscript NewWallet ord.Wallet SentAsFee bool Content []byte ContentType string ParentID string }
TODO: High. Record Old satpoint- Current satpoint to get OrdTransfer from the Bitcoin block directly.
Click to show internal directories.
Click to hide internal directories.