Documentation ¶
Index ¶
- Variables
- func LiftFromRustBuffer[GoType any](bufReader BufReader[GoType], rbuf RustBufferI) GoType
- type AddressInfo
- type ApplyBlockError
- type ApplyBlockErrorCannotConnect
- type ApplyBlockErrorDatabase
- type ApplyBlockErrorDecodeBlock
- type ApplyMempoolError
- type ApplyMempoolErrorDatabase
- type ApplyResult
- type Balance
- type BlockId
- type BufLifter
- type BufLowerer
- type BufReader
- type BufWriter
- type CreateNewError
- type CreateNewErrorDatabase
- type CreateNewErrorParseGenesisHash
- type CreateNewErrorParseNetwork
- type CreateNewErrorWallet
- type CreateTxError
- type CreateTxErrorCreateTx
- type CreateTxErrorInvalidAddress
- type CreateTxErrorSignTx
- type DatabaseError
- type DatabaseErrorWrite
- type FfiConverter
- type FfiConverterBool
- type FfiConverterBytes
- type FfiConverterFloat32
- type FfiConverterSequenceBytes
- type FfiConverterSequenceString
- type FfiConverterSequenceTypeBlockId
- func (c FfiConverterSequenceTypeBlockId) Lift(rb RustBufferI) []BlockId
- func (c FfiConverterSequenceTypeBlockId) Lower(value []BlockId) RustBuffer
- func (c FfiConverterSequenceTypeBlockId) Read(reader io.Reader) []BlockId
- func (c FfiConverterSequenceTypeBlockId) Write(writer io.Writer, value []BlockId)
- type FfiConverterSequenceTypeMempoolTx
- func (c FfiConverterSequenceTypeMempoolTx) Lift(rb RustBufferI) []MempoolTx
- func (c FfiConverterSequenceTypeMempoolTx) Lower(value []MempoolTx) RustBuffer
- func (c FfiConverterSequenceTypeMempoolTx) Read(reader io.Reader) []MempoolTx
- func (c FfiConverterSequenceTypeMempoolTx) Write(writer io.Writer, value []MempoolTx)
- type FfiConverterSequenceTypeRecipient
- func (c FfiConverterSequenceTypeRecipient) Lift(rb RustBufferI) []Recipient
- func (c FfiConverterSequenceTypeRecipient) Lower(value []Recipient) RustBuffer
- func (c FfiConverterSequenceTypeRecipient) Read(reader io.Reader) []Recipient
- func (c FfiConverterSequenceTypeRecipient) Write(writer io.Writer, value []Recipient)
- type FfiConverterSequenceTypeTxInfo
- type FfiConverterSequenceTypeUtxoInfo
- func (c FfiConverterSequenceTypeUtxoInfo) Lift(rb RustBufferI) []UtxoInfo
- func (c FfiConverterSequenceTypeUtxoInfo) Lower(value []UtxoInfo) RustBuffer
- func (c FfiConverterSequenceTypeUtxoInfo) Read(reader io.Reader) []UtxoInfo
- func (c FfiConverterSequenceTypeUtxoInfo) Write(writer io.Writer, value []UtxoInfo)
- type FfiConverterString
- type FfiConverterTypeAddressInfo
- type FfiConverterTypeApplyBlockError
- func (c FfiConverterTypeApplyBlockError) Lift(eb RustBufferI) error
- func (c FfiConverterTypeApplyBlockError) Lower(value *ApplyBlockError) RustBuffer
- func (c FfiConverterTypeApplyBlockError) Read(reader io.Reader) error
- func (c FfiConverterTypeApplyBlockError) Write(writer io.Writer, value *ApplyBlockError)
- type FfiConverterTypeApplyMempoolError
- func (c FfiConverterTypeApplyMempoolError) Lift(eb RustBufferI) error
- func (c FfiConverterTypeApplyMempoolError) Lower(value *ApplyMempoolError) RustBuffer
- func (c FfiConverterTypeApplyMempoolError) Read(reader io.Reader) error
- func (c FfiConverterTypeApplyMempoolError) Write(writer io.Writer, value *ApplyMempoolError)
- type FfiConverterTypeApplyResult
- type FfiConverterTypeBalance
- type FfiConverterTypeBlockId
- type FfiConverterTypeCreateNewError
- func (c FfiConverterTypeCreateNewError) Lift(eb RustBufferI) error
- func (c FfiConverterTypeCreateNewError) Lower(value *CreateNewError) RustBuffer
- func (c FfiConverterTypeCreateNewError) Read(reader io.Reader) error
- func (c FfiConverterTypeCreateNewError) Write(writer io.Writer, value *CreateNewError)
- type FfiConverterTypeCreateTxError
- type FfiConverterTypeDatabaseError
- type FfiConverterTypeLoadError
- type FfiConverterTypeMempoolTx
- type FfiConverterTypeRecipient
- type FfiConverterTypeTxInfo
- type FfiConverterTypeUtxoInfo
- type FfiConverterUint32
- type FfiConverterUint64
- type FfiConverterWallet
- type FfiDestroyerBool
- type FfiDestroyerBytes
- type FfiDestroyerFloat32
- type FfiDestroyerSequenceBytes
- type FfiDestroyerSequenceString
- type FfiDestroyerSequenceTypeBlockId
- type FfiDestroyerSequenceTypeMempoolTx
- type FfiDestroyerSequenceTypeRecipient
- type FfiDestroyerSequenceTypeTxInfo
- type FfiDestroyerSequenceTypeUtxoInfo
- type FfiDestroyerString
- type FfiDestroyerTypeAddressInfo
- type FfiDestroyerTypeApplyResult
- type FfiDestroyerTypeBalance
- type FfiDestroyerTypeBlockId
- type FfiDestroyerTypeMempoolTx
- type FfiDestroyerTypeRecipient
- type FfiDestroyerTypeTxInfo
- type FfiDestroyerTypeUtxoInfo
- type FfiDestroyerUint32
- type FfiDestroyerUint64
- type FfiDestroyerWallet
- type FfiObject
- type FfiRustBufConverter
- type LoadError
- type LoadErrorDatabase
- type LoadErrorHeaderVersion
- type LoadErrorParseHeader
- type LoadErrorWallet
- type MempoolTx
- type Recipient
- type RustBuffer
- type RustBufferI
- type TxInfo
- type UtxoInfo
- type Wallet
- func (_self *Wallet) ApplyBlock(height uint32, blockBytes []byte) (ApplyResult, error)
- func (_self *Wallet) ApplyMempool(txs []MempoolTx) (ApplyResult, error)
- func (_self *Wallet) Balance() Balance
- func (_self *Wallet) CreateTx(feerate float32, recipients []Recipient) ([]byte, error)
- func (object *Wallet) Destroy()
- func (_self *Wallet) FreshAddress() (AddressInfo, error)
- func (_self *Wallet) GenesisHash() []byte
- func (_self *Wallet) IncrementReferenceCounter()
- func (_self *Wallet) LastUnusedAddress() (AddressInfo, error)
- func (_self *Wallet) MnemonicWords() []string
- func (_self *Wallet) PeekAddress(index uint32) (AddressInfo, error)
- func (_self *Wallet) RecentBlocks(count uint32) []BlockId
- func (_self *Wallet) Transactions() []TxInfo
- func (_self *Wallet) Utxos() []UtxoInfo
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 ¶
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 (err ApplyBlockErrorCannotConnect) Error() string
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 BufLifter ¶
type BufLifter[GoType any] interface { Lift(value RustBufferI) GoType }
type BufLowerer ¶
type BufLowerer[GoType any] interface { Lower(value GoType) RustBuffer }
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 (err CreateNewErrorParseGenesisHash) Error() string
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 FfiConverterBool ¶
type FfiConverterBool struct{}
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
type FfiConverterFloat32 ¶
type FfiConverterFloat32 struct{}
type FfiConverterSequenceBytes ¶
type FfiConverterSequenceBytes struct{}
func (FfiConverterSequenceBytes) Lift ¶
func (c FfiConverterSequenceBytes) Lift(rb RustBufferI) [][]byte
func (FfiConverterSequenceBytes) Lower ¶
func (c FfiConverterSequenceBytes) Lower(value [][]byte) RustBuffer
type FfiConverterSequenceString ¶
type FfiConverterSequenceString struct{}
func (FfiConverterSequenceString) Lift ¶
func (c FfiConverterSequenceString) Lift(rb RustBufferI) []string
func (FfiConverterSequenceString) Lower ¶
func (c FfiConverterSequenceString) Lower(value []string) RustBuffer
type FfiConverterSequenceTypeBlockId ¶
type FfiConverterSequenceTypeBlockId struct{}
func (FfiConverterSequenceTypeBlockId) Lift ¶
func (c FfiConverterSequenceTypeBlockId) Lift(rb RustBufferI) []BlockId
func (FfiConverterSequenceTypeBlockId) Lower ¶
func (c FfiConverterSequenceTypeBlockId) Lower(value []BlockId) RustBuffer
type FfiConverterSequenceTypeMempoolTx ¶
type FfiConverterSequenceTypeMempoolTx struct{}
func (FfiConverterSequenceTypeMempoolTx) Lift ¶
func (c FfiConverterSequenceTypeMempoolTx) Lift(rb RustBufferI) []MempoolTx
func (FfiConverterSequenceTypeMempoolTx) Lower ¶
func (c FfiConverterSequenceTypeMempoolTx) Lower(value []MempoolTx) RustBuffer
type FfiConverterSequenceTypeRecipient ¶
type FfiConverterSequenceTypeRecipient struct{}
func (FfiConverterSequenceTypeRecipient) Lift ¶
func (c FfiConverterSequenceTypeRecipient) Lift(rb RustBufferI) []Recipient
func (FfiConverterSequenceTypeRecipient) Lower ¶
func (c FfiConverterSequenceTypeRecipient) Lower(value []Recipient) RustBuffer
type FfiConverterSequenceTypeTxInfo ¶
type FfiConverterSequenceTypeTxInfo struct{}
func (FfiConverterSequenceTypeTxInfo) Lift ¶
func (c FfiConverterSequenceTypeTxInfo) Lift(rb RustBufferI) []TxInfo
func (FfiConverterSequenceTypeTxInfo) Lower ¶
func (c FfiConverterSequenceTypeTxInfo) Lower(value []TxInfo) RustBuffer
type FfiConverterSequenceTypeUtxoInfo ¶
type FfiConverterSequenceTypeUtxoInfo struct{}
func (FfiConverterSequenceTypeUtxoInfo) Lift ¶
func (c FfiConverterSequenceTypeUtxoInfo) Lift(rb RustBufferI) []UtxoInfo
func (FfiConverterSequenceTypeUtxoInfo) Lower ¶
func (c FfiConverterSequenceTypeUtxoInfo) Lower(value []UtxoInfo) RustBuffer
type FfiConverterString ¶
type FfiConverterString struct{}
func (FfiConverterString) Lift ¶
func (FfiConverterString) Lift(rb RustBufferI) string
func (FfiConverterString) Lower ¶
func (FfiConverterString) Lower(value string) RustBuffer
type FfiConverterTypeAddressInfo ¶
type FfiConverterTypeAddressInfo struct{}
func (FfiConverterTypeAddressInfo) Lift ¶
func (c FfiConverterTypeAddressInfo) Lift(rb RustBufferI) AddressInfo
func (FfiConverterTypeAddressInfo) Lower ¶
func (c FfiConverterTypeAddressInfo) Lower(value AddressInfo) RustBuffer
func (FfiConverterTypeAddressInfo) Read ¶
func (c FfiConverterTypeAddressInfo) Read(reader io.Reader) AddressInfo
func (FfiConverterTypeAddressInfo) Write ¶
func (c FfiConverterTypeAddressInfo) Write(writer io.Writer, value AddressInfo)
type FfiConverterTypeApplyBlockError ¶
type FfiConverterTypeApplyBlockError struct{}
func (FfiConverterTypeApplyBlockError) Lift ¶
func (c FfiConverterTypeApplyBlockError) Lift(eb RustBufferI) error
func (FfiConverterTypeApplyBlockError) Lower ¶
func (c FfiConverterTypeApplyBlockError) Lower(value *ApplyBlockError) RustBuffer
func (FfiConverterTypeApplyBlockError) Read ¶
func (c FfiConverterTypeApplyBlockError) Read(reader io.Reader) error
func (FfiConverterTypeApplyBlockError) Write ¶
func (c FfiConverterTypeApplyBlockError) Write(writer io.Writer, value *ApplyBlockError)
type FfiConverterTypeApplyMempoolError ¶
type FfiConverterTypeApplyMempoolError struct{}
func (FfiConverterTypeApplyMempoolError) Lift ¶
func (c FfiConverterTypeApplyMempoolError) Lift(eb RustBufferI) error
func (FfiConverterTypeApplyMempoolError) Lower ¶
func (c FfiConverterTypeApplyMempoolError) Lower(value *ApplyMempoolError) RustBuffer
func (FfiConverterTypeApplyMempoolError) Read ¶
func (c FfiConverterTypeApplyMempoolError) Read(reader io.Reader) error
func (FfiConverterTypeApplyMempoolError) Write ¶
func (c FfiConverterTypeApplyMempoolError) Write(writer io.Writer, value *ApplyMempoolError)
type FfiConverterTypeApplyResult ¶
type FfiConverterTypeApplyResult struct{}
func (FfiConverterTypeApplyResult) Lift ¶
func (c FfiConverterTypeApplyResult) Lift(rb RustBufferI) ApplyResult
func (FfiConverterTypeApplyResult) Lower ¶
func (c FfiConverterTypeApplyResult) Lower(value ApplyResult) RustBuffer
func (FfiConverterTypeApplyResult) Read ¶
func (c FfiConverterTypeApplyResult) Read(reader io.Reader) ApplyResult
func (FfiConverterTypeApplyResult) Write ¶
func (c FfiConverterTypeApplyResult) Write(writer io.Writer, value ApplyResult)
type FfiConverterTypeBalance ¶
type FfiConverterTypeBalance struct{}
func (FfiConverterTypeBalance) Lift ¶
func (c FfiConverterTypeBalance) Lift(rb RustBufferI) Balance
func (FfiConverterTypeBalance) Lower ¶
func (c FfiConverterTypeBalance) Lower(value Balance) RustBuffer
type FfiConverterTypeBlockId ¶
type FfiConverterTypeBlockId struct{}
func (FfiConverterTypeBlockId) Lift ¶
func (c FfiConverterTypeBlockId) Lift(rb RustBufferI) BlockId
func (FfiConverterTypeBlockId) Lower ¶
func (c FfiConverterTypeBlockId) Lower(value BlockId) RustBuffer
type FfiConverterTypeCreateNewError ¶
type FfiConverterTypeCreateNewError struct{}
func (FfiConverterTypeCreateNewError) Lift ¶
func (c FfiConverterTypeCreateNewError) Lift(eb RustBufferI) error
func (FfiConverterTypeCreateNewError) Lower ¶
func (c FfiConverterTypeCreateNewError) Lower(value *CreateNewError) RustBuffer
func (FfiConverterTypeCreateNewError) Read ¶
func (c FfiConverterTypeCreateNewError) Read(reader io.Reader) error
func (FfiConverterTypeCreateNewError) Write ¶
func (c FfiConverterTypeCreateNewError) Write(writer io.Writer, value *CreateNewError)
type FfiConverterTypeCreateTxError ¶
type FfiConverterTypeCreateTxError struct{}
func (FfiConverterTypeCreateTxError) Lift ¶
func (c FfiConverterTypeCreateTxError) Lift(eb RustBufferI) error
func (FfiConverterTypeCreateTxError) Lower ¶
func (c FfiConverterTypeCreateTxError) Lower(value *CreateTxError) RustBuffer
func (FfiConverterTypeCreateTxError) Read ¶
func (c FfiConverterTypeCreateTxError) Read(reader io.Reader) error
func (FfiConverterTypeCreateTxError) Write ¶
func (c FfiConverterTypeCreateTxError) Write(writer io.Writer, value *CreateTxError)
type FfiConverterTypeDatabaseError ¶
type FfiConverterTypeDatabaseError struct{}
func (FfiConverterTypeDatabaseError) Lift ¶
func (c FfiConverterTypeDatabaseError) Lift(eb RustBufferI) error
func (FfiConverterTypeDatabaseError) Lower ¶
func (c FfiConverterTypeDatabaseError) Lower(value *DatabaseError) RustBuffer
func (FfiConverterTypeDatabaseError) Read ¶
func (c FfiConverterTypeDatabaseError) Read(reader io.Reader) error
func (FfiConverterTypeDatabaseError) Write ¶
func (c FfiConverterTypeDatabaseError) Write(writer io.Writer, value *DatabaseError)
type FfiConverterTypeLoadError ¶
type FfiConverterTypeLoadError struct{}
func (FfiConverterTypeLoadError) Lift ¶
func (c FfiConverterTypeLoadError) Lift(eb RustBufferI) error
func (FfiConverterTypeLoadError) Lower ¶
func (c FfiConverterTypeLoadError) Lower(value *LoadError) RustBuffer
type FfiConverterTypeMempoolTx ¶
type FfiConverterTypeMempoolTx struct{}
func (FfiConverterTypeMempoolTx) Lift ¶
func (c FfiConverterTypeMempoolTx) Lift(rb RustBufferI) MempoolTx
func (FfiConverterTypeMempoolTx) Lower ¶
func (c FfiConverterTypeMempoolTx) Lower(value MempoolTx) RustBuffer
type FfiConverterTypeRecipient ¶
type FfiConverterTypeRecipient struct{}
func (FfiConverterTypeRecipient) Lift ¶
func (c FfiConverterTypeRecipient) Lift(rb RustBufferI) Recipient
func (FfiConverterTypeRecipient) Lower ¶
func (c FfiConverterTypeRecipient) Lower(value Recipient) RustBuffer
type FfiConverterTypeTxInfo ¶
type FfiConverterTypeTxInfo struct{}
func (FfiConverterTypeTxInfo) Lift ¶
func (c FfiConverterTypeTxInfo) Lift(rb RustBufferI) TxInfo
func (FfiConverterTypeTxInfo) Lower ¶
func (c FfiConverterTypeTxInfo) Lower(value TxInfo) RustBuffer
type FfiConverterTypeUtxoInfo ¶
type FfiConverterTypeUtxoInfo struct{}
func (FfiConverterTypeUtxoInfo) Lift ¶
func (c FfiConverterTypeUtxoInfo) Lift(rb RustBufferI) UtxoInfo
func (FfiConverterTypeUtxoInfo) Lower ¶
func (c FfiConverterTypeUtxoInfo) Lower(value UtxoInfo) RustBuffer
type FfiConverterUint32 ¶
type FfiConverterUint32 struct{}
type FfiConverterUint64 ¶
type FfiConverterUint64 struct{}
type FfiConverterWallet ¶
type FfiConverterWallet struct{}
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 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
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 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 UtxoInfo ¶
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func WalletCreateNew ¶
func WalletLoad ¶
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) FreshAddress ¶
func (_self *Wallet) FreshAddress() (AddressInfo, error)
func (*Wallet) GenesisHash ¶
func (*Wallet) IncrementReferenceCounter ¶
func (_self *Wallet) IncrementReferenceCounter()
func (*Wallet) LastUnusedAddress ¶
func (_self *Wallet) LastUnusedAddress() (AddressInfo, error)
func (*Wallet) MnemonicWords ¶
func (*Wallet) PeekAddress ¶
func (_self *Wallet) PeekAddress(index uint32) (AddressInfo, error)
func (*Wallet) RecentBlocks ¶
func (*Wallet) Transactions ¶
Click to show internal directories.
Click to hide internal directories.