Versions in this module Expand all Collapse all v0 v0.1.1 Dec 22, 2022 v0.1.0 Dec 21, 2022 Changes in this version + type Account struct + DerivationPath string + FkWalletID string + Index int32 + Name string + NextExternalIndex int32 + NextInternalIndex int32 + Xpubs []string + type AccountScriptInfo struct + DerivationPath string + FkAccountName string + Script string + type DBTX interface + CopyFrom func(ctx context.Context, tableName pgx.Identifier, columnNames []string, ...) (int64, error) + Exec func(context.Context, string, ...interface{}) (pgconn.CommandTag, error) + Query func(context.Context, string, ...interface{}) (pgx.Rows, error) + QueryRow func(context.Context, string, ...interface{}) pgx.Row + type GetAllUtxosRow struct + AccountName string + Asset string + AssetBlinder []byte + AssetCommitment []byte + BlockHash sql.NullString + BlockHeight sql.NullInt32 + BlockTime sql.NullInt64 + FkUtxoID sql.NullInt32 + ID int32 + ID_2 sql.NullInt32 + LockExpiryTimestamp int64 + LockTimestamp int64 + Nonce []byte + RangeProof []byte + RedeemScript []byte + Script []byte + Status sql.NullInt32 + SurjectionProof []byte + TxID string + Value int64 + ValueBlinder []byte + ValueCommitment []byte + Vout int32 + type GetTransactionRow struct + AccountName sql.NullString + BlockHash string + BlockHeight int32 + FkTxID sql.NullString + ID sql.NullInt32 + TxHex string + TxID string + type GetUtxoForKeyParams struct + TxID string + Vout int32 + type GetUtxoForKeyRow struct + AccountName string + Asset string + AssetBlinder []byte + AssetCommitment []byte + BlockHash sql.NullString + BlockHeight sql.NullInt32 + BlockTime sql.NullInt64 + FkUtxoID sql.NullInt32 + ID int32 + ID_2 sql.NullInt32 + LockExpiryTimestamp int64 + LockTimestamp int64 + Nonce []byte + RangeProof []byte + RedeemScript []byte + Script []byte + Status sql.NullInt32 + SurjectionProof []byte + TxID string + Value int64 + ValueBlinder []byte + ValueCommitment []byte + Vout int32 + type GetUtxosForAccountRow struct + AccountName string + Asset string + AssetBlinder []byte + AssetCommitment []byte + BlockHash sql.NullString + BlockHeight sql.NullInt32 + BlockTime sql.NullInt64 + FkUtxoID sql.NullInt32 + ID int32 + ID_2 sql.NullInt32 + LockExpiryTimestamp int64 + LockTimestamp int64 + Nonce []byte + RangeProof []byte + RedeemScript []byte + Script []byte + Status sql.NullInt32 + SurjectionProof []byte + TxID string + Value int64 + ValueBlinder []byte + ValueCommitment []byte + Vout int32 + type GetWalletAccountsAndScriptsRow struct + AccountDerivationPath sql.NullString + BirthdayBlockHeight int32 + EncryptedMnemonic []byte + FkAccountName sql.NullString + FkWalletID sql.NullString + Index sql.NullInt32 + MsRootPath string + Name sql.NullString + NetworkName string + NextAccountIndex int32 + NextExternalIndex sql.NullInt32 + NextInternalIndex sql.NullInt32 + NextMsAccountIndex int32 + PasswordHash []byte + RootPath string + Script sql.NullString + ScriptDerivationPath sql.NullString + Walletid string + Xpubs []string + type InsertAccountParams struct + DerivationPath string + FkWalletID string + Index int32 + Name string + NextExternalIndex int32 + NextInternalIndex int32 + Xpubs []string + type InsertAccountScriptsParams struct + DerivationPath string + FkAccountName string + Script string + type InsertTransactionInputAccountParams struct + AccountName string + FkTxID string + type InsertTransactionParams struct + BlockHash string + BlockHeight int32 + TxHex string + TxID string + type InsertUtxoParams struct + AccountName string + Asset string + AssetBlinder []byte + AssetCommitment []byte + LockExpiryTimestamp int64 + LockTimestamp int64 + Nonce []byte + RangeProof []byte + RedeemScript []byte + Script []byte + SurjectionProof []byte + TxID string + Value int64 + ValueBlinder []byte + ValueCommitment []byte + Vout int32 + type InsertUtxoStatusParams struct + BlockHash string + BlockHeight int32 + BlockTime int64 + FkUtxoID int32 + Status int32 + type InsertWalletParams struct + BirthdayBlockHeight int32 + EncryptedMnemonic []byte + ID string + MsRootPath string + NetworkName string + NextAccountIndex int32 + NextMsAccountIndex int32 + PasswordHash []byte + RootPath string + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) DeleteAccount(ctx context.Context, name string) error + func (q *Queries) DeleteAccountScripts(ctx context.Context, fkAccountName string) error + func (q *Queries) DeleteTransactionInputAccounts(ctx context.Context, fkTxID string) error + func (q *Queries) DeleteUtxoStatuses(ctx context.Context, fkUtxoID int32) error + func (q *Queries) DeleteUtxosForAccountName(ctx context.Context, accountName string) error + func (q *Queries) GetAccount(ctx context.Context, name string) (Account, error) + func (q *Queries) GetAllUtxos(ctx context.Context) ([]GetAllUtxosRow, error) + func (q *Queries) GetTransaction(ctx context.Context, txID string) ([]GetTransactionRow, error) + func (q *Queries) GetUtxoForKey(ctx context.Context, arg GetUtxoForKeyParams) ([]GetUtxoForKeyRow, error) + func (q *Queries) GetUtxosForAccount(ctx context.Context, accountName string) ([]GetUtxosForAccountRow, error) + func (q *Queries) GetUtxosForAccountName(ctx context.Context, accountName string) ([]Utxo, error) + func (q *Queries) GetWalletAccountsAndScripts(ctx context.Context, id string) ([]GetWalletAccountsAndScriptsRow, error) + func (q *Queries) InsertAccount(ctx context.Context, arg InsertAccountParams) (Account, error) + func (q *Queries) InsertAccountScripts(ctx context.Context, arg []InsertAccountScriptsParams) (int64, error) + func (q *Queries) InsertTransaction(ctx context.Context, arg InsertTransactionParams) (Transaction, error) + func (q *Queries) InsertTransactionInputAccount(ctx context.Context, arg InsertTransactionInputAccountParams) (TxInputAccount, error) + func (q *Queries) InsertUtxo(ctx context.Context, arg InsertUtxoParams) (Utxo, error) + func (q *Queries) InsertUtxoStatus(ctx context.Context, arg InsertUtxoStatusParams) (UtxoStatus, error) + func (q *Queries) InsertWallet(ctx context.Context, arg InsertWalletParams) (Wallet, error) + func (q *Queries) UpdateAccountIndexes(ctx context.Context, arg UpdateAccountIndexesParams) (Account, error) + func (q *Queries) UpdateTransaction(ctx context.Context, arg UpdateTransactionParams) (Transaction, error) + func (q *Queries) UpdateUtxo(ctx context.Context, arg UpdateUtxoParams) (Utxo, error) + func (q *Queries) UpdateWallet(ctx context.Context, arg UpdateWalletParams) (Wallet, error) + func (q *Queries) WithTx(tx pgx.Tx) *Queries + type Transaction struct + BlockHash string + BlockHeight int32 + TxHex string + TxID string + type TxInputAccount struct + AccountName string + FkTxID string + ID int32 + type UpdateAccountIndexesParams struct + Name string + NextExternalIndex int32 + NextInternalIndex int32 + type UpdateTransactionParams struct + BlockHash string + BlockHeight int32 + TxHex string + TxID string + type UpdateUtxoParams struct + AccountName string + Asset string + AssetBlinder []byte + AssetCommitment []byte + LockExpiryTimestamp int64 + LockTimestamp int64 + Nonce []byte + RangeProof []byte + RedeemScript []byte + Script []byte + SurjectionProof []byte + TxID string + Value int64 + ValueBlinder []byte + ValueCommitment []byte + Vout int32 + type UpdateWalletParams struct + BirthdayBlockHeight int32 + EncryptedMnemonic []byte + ID string + MsRootPath string + NetworkName string + NextAccountIndex int32 + NextMsAccountIndex int32 + PasswordHash []byte + RootPath string + type Utxo struct + AccountName string + Asset string + AssetBlinder []byte + AssetCommitment []byte + ID int32 + LockExpiryTimestamp int64 + LockTimestamp int64 + Nonce []byte + RangeProof []byte + RedeemScript []byte + Script []byte + SurjectionProof []byte + TxID string + Value int64 + ValueBlinder []byte + ValueCommitment []byte + Vout int32 + type UtxoStatus struct + BlockHash string + BlockHeight int32 + BlockTime int64 + FkUtxoID int32 + ID int32 + Status int32 + type Wallet struct + BirthdayBlockHeight int32 + EncryptedMnemonic []byte + ID string + MsRootPath string + NetworkName string + NextAccountIndex int32 + NextMsAccountIndex int32 + PasswordHash []byte + RootPath string