bdkgo

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrApplyBlockErrorCannotConnect = fmt.Errorf("ApplyBlockErrorCannotConnect")
View Source
var ErrApplyBlockErrorDatabase = fmt.Errorf("ApplyBlockErrorDatabase")
View Source
var ErrApplyBlockErrorDecodeBlock = fmt.Errorf("ApplyBlockErrorDecodeBlock")

Err* are used for checking error type with `errors.Is`

View Source
var ErrApplyMempoolErrorDatabase = fmt.Errorf("ApplyMempoolErrorDatabase")

Err* are used for checking error type with `errors.Is`

View Source
var ErrCreateNewErrorDatabase = fmt.Errorf("CreateNewErrorDatabase")
View Source
var ErrCreateNewErrorParseGenesisHash = fmt.Errorf("CreateNewErrorParseGenesisHash")
View Source
var ErrCreateNewErrorParseNetwork = fmt.Errorf("CreateNewErrorParseNetwork")

Err* are used for checking error type with `errors.Is`

View Source
var ErrCreateNewErrorWallet = fmt.Errorf("CreateNewErrorWallet")
View Source
var ErrCreateTxErrorCreateTx = fmt.Errorf("CreateTxErrorCreateTx")
View Source
var ErrCreateTxErrorInvalidAddress = fmt.Errorf("CreateTxErrorInvalidAddress")

Err* are used for checking error type with `errors.Is`

View Source
var ErrCreateTxErrorSignTx = fmt.Errorf("CreateTxErrorSignTx")
View Source
var ErrDatabaseErrorWrite = fmt.Errorf("DatabaseErrorWrite")

Err* are used for checking error type with `errors.Is`

View Source
var ErrLoadErrorDatabase = fmt.Errorf("LoadErrorDatabase")

Err* are used for checking error type with `errors.Is`

View Source
var ErrLoadErrorHeaderVersion = fmt.Errorf("LoadErrorHeaderVersion")
View Source
var ErrLoadErrorParseHeader = fmt.Errorf("LoadErrorParseHeader")
View Source
var ErrLoadErrorWallet = fmt.Errorf("LoadErrorWallet")
View Source
var FfiConverterBoolINSTANCE = FfiConverterBool{}
View Source
var FfiConverterBytesINSTANCE = FfiConverterBytes{}
View Source
var FfiConverterFloat32INSTANCE = FfiConverterFloat32{}
View Source
var FfiConverterSequenceBytesINSTANCE = FfiConverterSequenceBytes{}
View Source
var FfiConverterSequenceStringINSTANCE = FfiConverterSequenceString{}
View Source
var FfiConverterSequenceTypeBlockIdINSTANCE = FfiConverterSequenceTypeBlockId{}
View Source
var FfiConverterSequenceTypeMempoolTxINSTANCE = FfiConverterSequenceTypeMempoolTx{}
View Source
var FfiConverterSequenceTypeRecipientINSTANCE = FfiConverterSequenceTypeRecipient{}
View Source
var FfiConverterSequenceTypeTxInfoINSTANCE = FfiConverterSequenceTypeTxInfo{}
View Source
var FfiConverterSequenceTypeUtxoInfoINSTANCE = FfiConverterSequenceTypeUtxoInfo{}
View Source
var FfiConverterStringINSTANCE = FfiConverterString{}
View Source
var FfiConverterTypeAddressInfoINSTANCE = FfiConverterTypeAddressInfo{}
View Source
var FfiConverterTypeApplyBlockErrorINSTANCE = FfiConverterTypeApplyBlockError{}
View Source
var FfiConverterTypeApplyMempoolErrorINSTANCE = FfiConverterTypeApplyMempoolError{}
View Source
var FfiConverterTypeApplyResultINSTANCE = FfiConverterTypeApplyResult{}
View Source
var FfiConverterTypeBalanceINSTANCE = FfiConverterTypeBalance{}
View Source
var FfiConverterTypeBlockIdINSTANCE = FfiConverterTypeBlockId{}
View Source
var FfiConverterTypeCreateNewErrorINSTANCE = FfiConverterTypeCreateNewError{}
View Source
var FfiConverterTypeCreateTxErrorINSTANCE = FfiConverterTypeCreateTxError{}
View Source
var FfiConverterTypeDatabaseErrorINSTANCE = FfiConverterTypeDatabaseError{}
View Source
var FfiConverterTypeLoadErrorINSTANCE = FfiConverterTypeLoadError{}
View Source
var FfiConverterTypeMempoolTxINSTANCE = FfiConverterTypeMempoolTx{}
View Source
var FfiConverterTypeRecipientINSTANCE = FfiConverterTypeRecipient{}
View Source
var FfiConverterTypeTxInfoINSTANCE = FfiConverterTypeTxInfo{}
View Source
var FfiConverterTypeUtxoInfoINSTANCE = FfiConverterTypeUtxoInfo{}
View Source
var FfiConverterUint32INSTANCE = FfiConverterUint32{}
View Source
var FfiConverterUint64INSTANCE = FfiConverterUint64{}
View Source
var FfiConverterWalletINSTANCE = FfiConverterWallet{}

Functions

func LiftFromRustBuffer

func LiftFromRustBuffer[GoType any](bufReader BufReader[GoType], rbuf RustBufferI) GoType

Types

type AddressInfo

type AddressInfo struct {
	Index   uint32
	Address string
}

func (*AddressInfo) Destroy

func (r *AddressInfo) Destroy()

type ApplyBlockError

type ApplyBlockError struct {
	// contains filtered or unexported fields
}

func NewApplyBlockErrorCannotConnect

func NewApplyBlockErrorCannotConnect() *ApplyBlockError

func NewApplyBlockErrorDatabase

func NewApplyBlockErrorDatabase() *ApplyBlockError

func NewApplyBlockErrorDecodeBlock

func NewApplyBlockErrorDecodeBlock() *ApplyBlockError

func (ApplyBlockError) Error

func (err ApplyBlockError) Error() string

func (ApplyBlockError) Unwrap

func (err ApplyBlockError) Unwrap() error

type ApplyBlockErrorCannotConnect

type ApplyBlockErrorCannotConnect struct {
	// contains filtered or unexported fields
}

func (ApplyBlockErrorCannotConnect) Error

func (ApplyBlockErrorCannotConnect) Is

func (self ApplyBlockErrorCannotConnect) Is(target error) bool

type ApplyBlockErrorDatabase

type ApplyBlockErrorDatabase struct {
	// contains filtered or unexported fields
}

func (ApplyBlockErrorDatabase) Error

func (err ApplyBlockErrorDatabase) Error() string

func (ApplyBlockErrorDatabase) Is

func (self ApplyBlockErrorDatabase) Is(target error) bool

type ApplyBlockErrorDecodeBlock

type ApplyBlockErrorDecodeBlock struct {
	// contains filtered or unexported fields
}

Variant structs

func (ApplyBlockErrorDecodeBlock) Error

func (err ApplyBlockErrorDecodeBlock) Error() string

func (ApplyBlockErrorDecodeBlock) Is

func (self ApplyBlockErrorDecodeBlock) Is(target error) bool

type ApplyMempoolError

type ApplyMempoolError struct {
	// contains filtered or unexported fields
}

func NewApplyMempoolErrorDatabase

func NewApplyMempoolErrorDatabase() *ApplyMempoolError

func (ApplyMempoolError) Error

func (err ApplyMempoolError) Error() string

func (ApplyMempoolError) Unwrap

func (err ApplyMempoolError) Unwrap() error

type ApplyMempoolErrorDatabase

type ApplyMempoolErrorDatabase struct {
	// contains filtered or unexported fields
}

Variant structs

func (ApplyMempoolErrorDatabase) Error

func (err ApplyMempoolErrorDatabase) Error() string

func (ApplyMempoolErrorDatabase) Is

func (self ApplyMempoolErrorDatabase) Is(target error) bool

type ApplyResult

type ApplyResult struct {
	RelevantTxids [][]byte
}

func (*ApplyResult) Destroy

func (r *ApplyResult) Destroy()

type Balance

type Balance struct {
	Immature         uint64
	TrustedPending   uint64
	UntrustedPending uint64
	Confirmed        uint64
}

func (*Balance) Destroy

func (r *Balance) Destroy()

type BlockId

type BlockId struct {
	Height uint32
	Hash   []byte
}

func (*BlockId) Destroy

func (r *BlockId) Destroy()

type BufLifter

type BufLifter[GoType any] interface {
	Lift(value RustBufferI) GoType
}

type BufLowerer

type BufLowerer[GoType any] interface {
	Lower(value GoType) RustBuffer
}

type BufReader

type BufReader[GoType any] interface {
	Read(reader io.Reader) GoType
}

type BufWriter

type BufWriter[GoType any] interface {
	Write(writer io.Writer, value GoType)
}

type CreateNewError

type CreateNewError struct {
	// contains filtered or unexported fields
}

func NewCreateNewErrorDatabase

func NewCreateNewErrorDatabase() *CreateNewError

func NewCreateNewErrorParseGenesisHash

func NewCreateNewErrorParseGenesisHash() *CreateNewError

func NewCreateNewErrorParseNetwork

func NewCreateNewErrorParseNetwork() *CreateNewError

func NewCreateNewErrorWallet

func NewCreateNewErrorWallet() *CreateNewError

func (CreateNewError) Error

func (err CreateNewError) Error() string

func (CreateNewError) Unwrap

func (err CreateNewError) Unwrap() error

type CreateNewErrorDatabase

type CreateNewErrorDatabase struct {
	// contains filtered or unexported fields
}

func (CreateNewErrorDatabase) Error

func (err CreateNewErrorDatabase) Error() string

func (CreateNewErrorDatabase) Is

func (self CreateNewErrorDatabase) Is(target error) bool

type CreateNewErrorParseGenesisHash

type CreateNewErrorParseGenesisHash struct {
	// contains filtered or unexported fields
}

func (CreateNewErrorParseGenesisHash) Error

func (CreateNewErrorParseGenesisHash) Is

func (self CreateNewErrorParseGenesisHash) Is(target error) bool

type CreateNewErrorParseNetwork

type CreateNewErrorParseNetwork struct {
	// contains filtered or unexported fields
}

Variant structs

func (CreateNewErrorParseNetwork) Error

func (err CreateNewErrorParseNetwork) Error() string

func (CreateNewErrorParseNetwork) Is

func (self CreateNewErrorParseNetwork) Is(target error) bool

type CreateNewErrorWallet

type CreateNewErrorWallet struct {
	// contains filtered or unexported fields
}

func (CreateNewErrorWallet) Error

func (err CreateNewErrorWallet) Error() string

func (CreateNewErrorWallet) Is

func (self CreateNewErrorWallet) Is(target error) bool

type CreateTxError

type CreateTxError struct {
	// contains filtered or unexported fields
}

func NewCreateTxErrorCreateTx

func NewCreateTxErrorCreateTx() *CreateTxError

func NewCreateTxErrorInvalidAddress

func NewCreateTxErrorInvalidAddress() *CreateTxError

func NewCreateTxErrorSignTx

func NewCreateTxErrorSignTx() *CreateTxError

func (CreateTxError) Error

func (err CreateTxError) Error() string

func (CreateTxError) Unwrap

func (err CreateTxError) Unwrap() error

type CreateTxErrorCreateTx

type CreateTxErrorCreateTx struct {
	// contains filtered or unexported fields
}

func (CreateTxErrorCreateTx) Error

func (err CreateTxErrorCreateTx) Error() string

func (CreateTxErrorCreateTx) Is

func (self CreateTxErrorCreateTx) Is(target error) bool

type CreateTxErrorInvalidAddress

type CreateTxErrorInvalidAddress struct {
	// contains filtered or unexported fields
}

Variant structs

func (CreateTxErrorInvalidAddress) Error

func (err CreateTxErrorInvalidAddress) Error() string

func (CreateTxErrorInvalidAddress) Is

func (self CreateTxErrorInvalidAddress) Is(target error) bool

type CreateTxErrorSignTx

type CreateTxErrorSignTx struct {
	// contains filtered or unexported fields
}

func (CreateTxErrorSignTx) Error

func (err CreateTxErrorSignTx) Error() string

func (CreateTxErrorSignTx) Is

func (self CreateTxErrorSignTx) Is(target error) bool

type DatabaseError

type DatabaseError struct {
	// contains filtered or unexported fields
}

func NewDatabaseErrorWrite

func NewDatabaseErrorWrite() *DatabaseError

func (DatabaseError) Error

func (err DatabaseError) Error() string

func (DatabaseError) Unwrap

func (err DatabaseError) Unwrap() error

type DatabaseErrorWrite

type DatabaseErrorWrite struct {
	// contains filtered or unexported fields
}

Variant structs

func (DatabaseErrorWrite) Error

func (err DatabaseErrorWrite) Error() string

func (DatabaseErrorWrite) Is

func (self DatabaseErrorWrite) Is(target error) bool

type FfiConverter

type FfiConverter[GoType any, FfiType any] interface {
	Lift(value FfiType) GoType
	Lower(value GoType) FfiType
}

type FfiConverterBool

type FfiConverterBool struct{}

func (FfiConverterBool) Lift

func (FfiConverterBool) Lift(value C.int8_t) bool

func (FfiConverterBool) Lower

func (FfiConverterBool) Lower(value bool) C.int8_t

func (FfiConverterBool) Read

func (FfiConverterBool) Read(reader io.Reader) bool

func (FfiConverterBool) Write

func (FfiConverterBool) Write(writer io.Writer, value bool)

type FfiConverterBytes

type FfiConverterBytes struct{}

func (FfiConverterBytes) Lift

func (c FfiConverterBytes) Lift(rb RustBufferI) []byte

func (FfiConverterBytes) Lower

func (c FfiConverterBytes) Lower(value []byte) RustBuffer

func (FfiConverterBytes) Read

func (c FfiConverterBytes) Read(reader io.Reader) []byte

func (FfiConverterBytes) Write

func (c FfiConverterBytes) Write(writer io.Writer, value []byte)

type FfiConverterFloat32

type FfiConverterFloat32 struct{}

func (FfiConverterFloat32) Lift

func (FfiConverterFloat32) Lift(value C.float) float32

func (FfiConverterFloat32) Lower

func (FfiConverterFloat32) Lower(value float32) C.float

func (FfiConverterFloat32) Read

func (FfiConverterFloat32) Read(reader io.Reader) float32

func (FfiConverterFloat32) Write

func (FfiConverterFloat32) Write(writer io.Writer, value float32)

type FfiConverterSequenceBytes

type FfiConverterSequenceBytes struct{}

func (FfiConverterSequenceBytes) Lift

func (FfiConverterSequenceBytes) Lower

func (c FfiConverterSequenceBytes) Lower(value [][]byte) RustBuffer

func (FfiConverterSequenceBytes) Read

func (c FfiConverterSequenceBytes) Read(reader io.Reader) [][]byte

func (FfiConverterSequenceBytes) Write

func (c FfiConverterSequenceBytes) Write(writer io.Writer, value [][]byte)

type FfiConverterSequenceString

type FfiConverterSequenceString struct{}

func (FfiConverterSequenceString) Lift

func (FfiConverterSequenceString) Lower

func (c FfiConverterSequenceString) Lower(value []string) RustBuffer

func (FfiConverterSequenceString) Read

func (c FfiConverterSequenceString) Read(reader io.Reader) []string

func (FfiConverterSequenceString) Write

func (c FfiConverterSequenceString) Write(writer io.Writer, value []string)

type FfiConverterSequenceTypeBlockId

type FfiConverterSequenceTypeBlockId struct{}

func (FfiConverterSequenceTypeBlockId) Lift

func (FfiConverterSequenceTypeBlockId) Lower

func (FfiConverterSequenceTypeBlockId) Read

func (FfiConverterSequenceTypeBlockId) Write

func (c FfiConverterSequenceTypeBlockId) Write(writer io.Writer, value []BlockId)

type FfiConverterSequenceTypeMempoolTx

type FfiConverterSequenceTypeMempoolTx struct{}

func (FfiConverterSequenceTypeMempoolTx) Lift

func (FfiConverterSequenceTypeMempoolTx) Lower

func (FfiConverterSequenceTypeMempoolTx) Read

func (FfiConverterSequenceTypeMempoolTx) Write

func (c FfiConverterSequenceTypeMempoolTx) Write(writer io.Writer, value []MempoolTx)

type FfiConverterSequenceTypeRecipient

type FfiConverterSequenceTypeRecipient struct{}

func (FfiConverterSequenceTypeRecipient) Lift

func (FfiConverterSequenceTypeRecipient) Lower

func (FfiConverterSequenceTypeRecipient) Read

func (FfiConverterSequenceTypeRecipient) Write

func (c FfiConverterSequenceTypeRecipient) Write(writer io.Writer, value []Recipient)

type FfiConverterSequenceTypeTxInfo

type FfiConverterSequenceTypeTxInfo struct{}

func (FfiConverterSequenceTypeTxInfo) Lift

func (FfiConverterSequenceTypeTxInfo) Lower

func (FfiConverterSequenceTypeTxInfo) Read

func (FfiConverterSequenceTypeTxInfo) Write

func (c FfiConverterSequenceTypeTxInfo) Write(writer io.Writer, value []TxInfo)

type FfiConverterSequenceTypeUtxoInfo

type FfiConverterSequenceTypeUtxoInfo struct{}

func (FfiConverterSequenceTypeUtxoInfo) Lift

func (FfiConverterSequenceTypeUtxoInfo) Lower

func (FfiConverterSequenceTypeUtxoInfo) Read

func (FfiConverterSequenceTypeUtxoInfo) Write

func (c FfiConverterSequenceTypeUtxoInfo) Write(writer io.Writer, value []UtxoInfo)

type FfiConverterString

type FfiConverterString struct{}

func (FfiConverterString) Lift

func (FfiConverterString) Lower

func (FfiConverterString) Lower(value string) RustBuffer

func (FfiConverterString) Read

func (FfiConverterString) Read(reader io.Reader) string

func (FfiConverterString) Write

func (FfiConverterString) Write(writer io.Writer, value string)

type FfiConverterTypeAddressInfo

type FfiConverterTypeAddressInfo struct{}

func (FfiConverterTypeAddressInfo) Lift

func (FfiConverterTypeAddressInfo) Lower

func (FfiConverterTypeAddressInfo) Read

func (FfiConverterTypeAddressInfo) Write

func (c FfiConverterTypeAddressInfo) Write(writer io.Writer, value AddressInfo)

type FfiConverterTypeApplyBlockError

type FfiConverterTypeApplyBlockError struct{}

func (FfiConverterTypeApplyBlockError) Lift

func (FfiConverterTypeApplyBlockError) Lower

func (FfiConverterTypeApplyBlockError) Read

func (FfiConverterTypeApplyBlockError) Write

func (c FfiConverterTypeApplyBlockError) Write(writer io.Writer, value *ApplyBlockError)

type FfiConverterTypeApplyMempoolError

type FfiConverterTypeApplyMempoolError struct{}

func (FfiConverterTypeApplyMempoolError) Lift

func (FfiConverterTypeApplyMempoolError) Lower

func (FfiConverterTypeApplyMempoolError) Read

func (FfiConverterTypeApplyMempoolError) Write

type FfiConverterTypeApplyResult

type FfiConverterTypeApplyResult struct{}

func (FfiConverterTypeApplyResult) Lift

func (FfiConverterTypeApplyResult) Lower

func (FfiConverterTypeApplyResult) Read

func (FfiConverterTypeApplyResult) Write

func (c FfiConverterTypeApplyResult) Write(writer io.Writer, value ApplyResult)

type FfiConverterTypeBalance

type FfiConverterTypeBalance struct{}

func (FfiConverterTypeBalance) Lift

func (FfiConverterTypeBalance) Lower

func (FfiConverterTypeBalance) Read

func (c FfiConverterTypeBalance) Read(reader io.Reader) Balance

func (FfiConverterTypeBalance) Write

func (c FfiConverterTypeBalance) Write(writer io.Writer, value Balance)

type FfiConverterTypeBlockId

type FfiConverterTypeBlockId struct{}

func (FfiConverterTypeBlockId) Lift

func (FfiConverterTypeBlockId) Lower

func (FfiConverterTypeBlockId) Read

func (c FfiConverterTypeBlockId) Read(reader io.Reader) BlockId

func (FfiConverterTypeBlockId) Write

func (c FfiConverterTypeBlockId) Write(writer io.Writer, value BlockId)

type FfiConverterTypeCreateNewError

type FfiConverterTypeCreateNewError struct{}

func (FfiConverterTypeCreateNewError) Lift

func (FfiConverterTypeCreateNewError) Lower

func (FfiConverterTypeCreateNewError) Read

func (FfiConverterTypeCreateNewError) Write

func (c FfiConverterTypeCreateNewError) Write(writer io.Writer, value *CreateNewError)

type FfiConverterTypeCreateTxError

type FfiConverterTypeCreateTxError struct{}

func (FfiConverterTypeCreateTxError) Lift

func (FfiConverterTypeCreateTxError) Lower

func (FfiConverterTypeCreateTxError) Read

func (FfiConverterTypeCreateTxError) Write

func (c FfiConverterTypeCreateTxError) Write(writer io.Writer, value *CreateTxError)

type FfiConverterTypeDatabaseError

type FfiConverterTypeDatabaseError struct{}

func (FfiConverterTypeDatabaseError) Lift

func (FfiConverterTypeDatabaseError) Lower

func (FfiConverterTypeDatabaseError) Read

func (FfiConverterTypeDatabaseError) Write

func (c FfiConverterTypeDatabaseError) Write(writer io.Writer, value *DatabaseError)

type FfiConverterTypeLoadError

type FfiConverterTypeLoadError struct{}

func (FfiConverterTypeLoadError) Lift

func (FfiConverterTypeLoadError) Lower

func (FfiConverterTypeLoadError) Read

func (c FfiConverterTypeLoadError) Read(reader io.Reader) error

func (FfiConverterTypeLoadError) Write

func (c FfiConverterTypeLoadError) Write(writer io.Writer, value *LoadError)

type FfiConverterTypeMempoolTx

type FfiConverterTypeMempoolTx struct{}

func (FfiConverterTypeMempoolTx) Lift

func (FfiConverterTypeMempoolTx) Lower

func (FfiConverterTypeMempoolTx) Read

func (FfiConverterTypeMempoolTx) Write

func (c FfiConverterTypeMempoolTx) Write(writer io.Writer, value MempoolTx)

type FfiConverterTypeRecipient

type FfiConverterTypeRecipient struct{}

func (FfiConverterTypeRecipient) Lift

func (FfiConverterTypeRecipient) Lower

func (FfiConverterTypeRecipient) Read

func (FfiConverterTypeRecipient) Write

func (c FfiConverterTypeRecipient) Write(writer io.Writer, value Recipient)

type FfiConverterTypeTxInfo

type FfiConverterTypeTxInfo struct{}

func (FfiConverterTypeTxInfo) Lift

func (FfiConverterTypeTxInfo) Lower

func (c FfiConverterTypeTxInfo) Lower(value TxInfo) RustBuffer

func (FfiConverterTypeTxInfo) Read

func (c FfiConverterTypeTxInfo) Read(reader io.Reader) TxInfo

func (FfiConverterTypeTxInfo) Write

func (c FfiConverterTypeTxInfo) Write(writer io.Writer, value TxInfo)

type FfiConverterTypeUtxoInfo

type FfiConverterTypeUtxoInfo struct{}

func (FfiConverterTypeUtxoInfo) Lift

func (FfiConverterTypeUtxoInfo) Lower

func (FfiConverterTypeUtxoInfo) Read

func (c FfiConverterTypeUtxoInfo) Read(reader io.Reader) UtxoInfo

func (FfiConverterTypeUtxoInfo) Write

func (c FfiConverterTypeUtxoInfo) Write(writer io.Writer, value UtxoInfo)

type FfiConverterUint32

type FfiConverterUint32 struct{}

func (FfiConverterUint32) Lift

func (FfiConverterUint32) Lift(value C.uint32_t) uint32

func (FfiConverterUint32) Lower

func (FfiConverterUint32) Lower(value uint32) C.uint32_t

func (FfiConverterUint32) Read

func (FfiConverterUint32) Read(reader io.Reader) uint32

func (FfiConverterUint32) Write

func (FfiConverterUint32) Write(writer io.Writer, value uint32)

type FfiConverterUint64

type FfiConverterUint64 struct{}

func (FfiConverterUint64) Lift

func (FfiConverterUint64) Lift(value C.uint64_t) uint64

func (FfiConverterUint64) Lower

func (FfiConverterUint64) Lower(value uint64) C.uint64_t

func (FfiConverterUint64) Read

func (FfiConverterUint64) Read(reader io.Reader) uint64

func (FfiConverterUint64) Write

func (FfiConverterUint64) Write(writer io.Writer, value uint64)

type FfiConverterWallet

type FfiConverterWallet struct{}

func (FfiConverterWallet) Lift

func (c FfiConverterWallet) Lift(pointer unsafe.Pointer) *Wallet

func (FfiConverterWallet) Lower

func (c FfiConverterWallet) Lower(value *Wallet) unsafe.Pointer

func (FfiConverterWallet) Read

func (c FfiConverterWallet) Read(reader io.Reader) *Wallet

func (FfiConverterWallet) Write

func (c FfiConverterWallet) Write(writer io.Writer, value *Wallet)

type FfiDestroyerBool

type FfiDestroyerBool struct{}

func (FfiDestroyerBool) Destroy

func (FfiDestroyerBool) Destroy(_ bool)

type FfiDestroyerBytes

type FfiDestroyerBytes struct{}

func (FfiDestroyerBytes) Destroy

func (FfiDestroyerBytes) Destroy(_ []byte)

type FfiDestroyerFloat32

type FfiDestroyerFloat32 struct{}

func (FfiDestroyerFloat32) Destroy

func (FfiDestroyerFloat32) Destroy(_ float32)

type FfiDestroyerSequenceBytes

type FfiDestroyerSequenceBytes struct{}

func (FfiDestroyerSequenceBytes) Destroy

func (FfiDestroyerSequenceBytes) Destroy(sequence [][]byte)

type FfiDestroyerSequenceString

type FfiDestroyerSequenceString struct{}

func (FfiDestroyerSequenceString) Destroy

func (FfiDestroyerSequenceString) Destroy(sequence []string)

type FfiDestroyerSequenceTypeBlockId

type FfiDestroyerSequenceTypeBlockId struct{}

func (FfiDestroyerSequenceTypeBlockId) Destroy

func (FfiDestroyerSequenceTypeBlockId) Destroy(sequence []BlockId)

type FfiDestroyerSequenceTypeMempoolTx

type FfiDestroyerSequenceTypeMempoolTx struct{}

func (FfiDestroyerSequenceTypeMempoolTx) Destroy

func (FfiDestroyerSequenceTypeMempoolTx) Destroy(sequence []MempoolTx)

type FfiDestroyerSequenceTypeRecipient

type FfiDestroyerSequenceTypeRecipient struct{}

func (FfiDestroyerSequenceTypeRecipient) Destroy

func (FfiDestroyerSequenceTypeRecipient) Destroy(sequence []Recipient)

type FfiDestroyerSequenceTypeTxInfo

type FfiDestroyerSequenceTypeTxInfo struct{}

func (FfiDestroyerSequenceTypeTxInfo) Destroy

func (FfiDestroyerSequenceTypeTxInfo) Destroy(sequence []TxInfo)

type FfiDestroyerSequenceTypeUtxoInfo

type FfiDestroyerSequenceTypeUtxoInfo struct{}

func (FfiDestroyerSequenceTypeUtxoInfo) Destroy

func (FfiDestroyerSequenceTypeUtxoInfo) Destroy(sequence []UtxoInfo)

type FfiDestroyerString

type FfiDestroyerString struct{}

func (FfiDestroyerString) Destroy

func (FfiDestroyerString) Destroy(_ string)

type FfiDestroyerTypeAddressInfo

type FfiDestroyerTypeAddressInfo struct{}

func (FfiDestroyerTypeAddressInfo) Destroy

func (_ FfiDestroyerTypeAddressInfo) Destroy(value AddressInfo)

type FfiDestroyerTypeApplyResult

type FfiDestroyerTypeApplyResult struct{}

func (FfiDestroyerTypeApplyResult) Destroy

func (_ FfiDestroyerTypeApplyResult) Destroy(value ApplyResult)

type FfiDestroyerTypeBalance

type FfiDestroyerTypeBalance struct{}

func (FfiDestroyerTypeBalance) Destroy

func (_ FfiDestroyerTypeBalance) Destroy(value Balance)

type FfiDestroyerTypeBlockId

type FfiDestroyerTypeBlockId struct{}

func (FfiDestroyerTypeBlockId) Destroy

func (_ FfiDestroyerTypeBlockId) Destroy(value BlockId)

type FfiDestroyerTypeMempoolTx

type FfiDestroyerTypeMempoolTx struct{}

func (FfiDestroyerTypeMempoolTx) Destroy

func (_ FfiDestroyerTypeMempoolTx) Destroy(value MempoolTx)

type FfiDestroyerTypeRecipient

type FfiDestroyerTypeRecipient struct{}

func (FfiDestroyerTypeRecipient) Destroy

func (_ FfiDestroyerTypeRecipient) Destroy(value Recipient)

type FfiDestroyerTypeTxInfo

type FfiDestroyerTypeTxInfo struct{}

func (FfiDestroyerTypeTxInfo) Destroy

func (_ FfiDestroyerTypeTxInfo) Destroy(value TxInfo)

type FfiDestroyerTypeUtxoInfo

type FfiDestroyerTypeUtxoInfo struct{}

func (FfiDestroyerTypeUtxoInfo) Destroy

func (_ FfiDestroyerTypeUtxoInfo) Destroy(value UtxoInfo)

type FfiDestroyerUint32

type FfiDestroyerUint32 struct{}

func (FfiDestroyerUint32) Destroy

func (FfiDestroyerUint32) Destroy(_ uint32)

type FfiDestroyerUint64

type FfiDestroyerUint64 struct{}

func (FfiDestroyerUint64) Destroy

func (FfiDestroyerUint64) Destroy(_ uint64)

type FfiDestroyerWallet

type FfiDestroyerWallet struct{}

func (FfiDestroyerWallet) Destroy

func (_ FfiDestroyerWallet) Destroy(value *Wallet)

type FfiObject

type FfiObject struct {
	// contains filtered or unexported fields
}

type FfiRustBufConverter

type FfiRustBufConverter[GoType any, FfiType any] interface {
	FfiConverter[GoType, FfiType]
	BufReader[GoType]
}

type LoadError

type LoadError struct {
	// contains filtered or unexported fields
}

func NewLoadErrorDatabase

func NewLoadErrorDatabase() *LoadError

func NewLoadErrorHeaderVersion

func NewLoadErrorHeaderVersion() *LoadError

func NewLoadErrorParseHeader

func NewLoadErrorParseHeader() *LoadError

func NewLoadErrorWallet

func NewLoadErrorWallet() *LoadError

func (LoadError) Error

func (err LoadError) Error() string

func (LoadError) Unwrap

func (err LoadError) Unwrap() error

type LoadErrorDatabase

type LoadErrorDatabase struct {
	// contains filtered or unexported fields
}

Variant structs

func (LoadErrorDatabase) Error

func (err LoadErrorDatabase) Error() string

func (LoadErrorDatabase) Is

func (self LoadErrorDatabase) Is(target error) bool

type LoadErrorHeaderVersion

type LoadErrorHeaderVersion struct {
	// contains filtered or unexported fields
}

func (LoadErrorHeaderVersion) Error

func (err LoadErrorHeaderVersion) Error() string

func (LoadErrorHeaderVersion) Is

func (self LoadErrorHeaderVersion) Is(target error) bool

type LoadErrorParseHeader

type LoadErrorParseHeader struct {
	// contains filtered or unexported fields
}

func (LoadErrorParseHeader) Error

func (err LoadErrorParseHeader) Error() string

func (LoadErrorParseHeader) Is

func (self LoadErrorParseHeader) Is(target error) bool

type LoadErrorWallet

type LoadErrorWallet struct {
	// contains filtered or unexported fields
}

func (LoadErrorWallet) Error

func (err LoadErrorWallet) Error() string

func (LoadErrorWallet) Is

func (self LoadErrorWallet) Is(target error) bool

type MempoolTx

type MempoolTx struct {
	Tx        []byte
	AddedUnix uint64
}

func (*MempoolTx) Destroy

func (r *MempoolTx) Destroy()

type Recipient

type Recipient struct {
	Address string
	Amount  uint64
}

func (*Recipient) Destroy

func (r *Recipient) Destroy()

type RustBuffer

type RustBuffer = C.RustBuffer

func LowerIntoRustBuffer

func LowerIntoRustBuffer[GoType any](bufWriter BufWriter[GoType], value GoType) RustBuffer

func RustBufferFromExternal

func RustBufferFromExternal(b RustBufferI) RustBuffer

func (RustBuffer) AsReader

func (cb RustBuffer) AsReader() *bytes.Reader

func (RustBuffer) Capacity

func (cb RustBuffer) Capacity() int

func (RustBuffer) Data

func (cb RustBuffer) Data() unsafe.Pointer

func (RustBuffer) Free

func (cb RustBuffer) Free()

func (RustBuffer) Len

func (cb RustBuffer) Len() int

func (RustBuffer) ToGoBytes

func (cb RustBuffer) ToGoBytes() []byte

type RustBufferI

type RustBufferI interface {
	AsReader() *bytes.Reader
	Free()
	ToGoBytes() []byte
	Data() unsafe.Pointer
	Len() int
	Capacity() int
}

type TxInfo

type TxInfo struct {
	Txid          []byte
	Tx            []byte
	Spent         uint64
	Received      uint64
	Confirmations uint32
}

func (*TxInfo) Destroy

func (r *TxInfo) Destroy()

type UtxoInfo

type UtxoInfo struct {
	Txid            []byte
	Vout            uint32
	Amount          uint64
	ScriptPubkey    []byte
	IsChange        bool
	DerivationIndex uint32
	Confirmations   uint32
}

func (*UtxoInfo) Destroy

func (r *UtxoInfo) Destroy()

type Wallet

type Wallet struct {
	// contains filtered or unexported fields
}

func WalletCreateNew

func WalletCreateNew(dbPath string, network string, genesisHash []byte) (*Wallet, error)

func WalletLoad

func WalletLoad(dbPath string) (*Wallet, error)

func (*Wallet) ApplyBlock

func (_self *Wallet) ApplyBlock(height uint32, blockBytes []byte) (ApplyResult, error)

func (*Wallet) ApplyMempool

func (_self *Wallet) ApplyMempool(txs []MempoolTx) (ApplyResult, error)

func (*Wallet) Balance

func (_self *Wallet) Balance() Balance

func (*Wallet) CreateTx

func (_self *Wallet) CreateTx(feerate float32, recipients []Recipient) ([]byte, error)

func (*Wallet) Destroy

func (object *Wallet) Destroy()

func (*Wallet) FreshAddress

func (_self *Wallet) FreshAddress() (AddressInfo, error)

func (*Wallet) GenesisHash

func (_self *Wallet) GenesisHash() []byte

func (*Wallet) IncrementReferenceCounter

func (_self *Wallet) IncrementReferenceCounter()

func (*Wallet) LastUnusedAddress

func (_self *Wallet) LastUnusedAddress() (AddressInfo, error)

func (*Wallet) MnemonicWords

func (_self *Wallet) MnemonicWords() []string

func (*Wallet) PeekAddress

func (_self *Wallet) PeekAddress(index uint32) (AddressInfo, error)

func (*Wallet) RecentBlocks

func (_self *Wallet) RecentBlocks(count uint32) []BlockId

func (*Wallet) Transactions

func (_self *Wallet) Transactions() []TxInfo

func (*Wallet) Utxos

func (_self *Wallet) Utxos() []UtxoInfo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL