Documentation ¶
Index ¶
- type Account
- type AccountScriptInfo
- type DBTX
- type GetAllUtxosRow
- type GetTransactionRow
- type GetUtxoForKeyParams
- type GetUtxoForKeyRow
- type GetUtxosForAccountRow
- type GetWalletAccountsAndScriptsRow
- type InsertAccountParams
- type InsertAccountScriptsParams
- type InsertTransactionInputAccountParams
- type InsertTransactionParams
- type InsertUtxoParams
- type InsertUtxoStatusParams
- type InsertWalletParams
- type 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
- type TxInputAccount
- type UpdateAccountIndexesParams
- type UpdateTransactionParams
- type UpdateUtxoParams
- type UpdateWalletParams
- type Utxo
- type UtxoStatus
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountScriptInfo ¶
type DBTX ¶
type DBTX interface { Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) Query(context.Context, string, ...interface{}) (pgx.Rows, error) QueryRow(context.Context, string, ...interface{}) pgx.Row CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) }
type GetAllUtxosRow ¶
type GetAllUtxosRow struct { ID int32 TxID string Vout int32 Value int64 Asset string ValueCommitment []byte AssetCommitment []byte ValueBlinder []byte AssetBlinder []byte Script []byte Nonce []byte RangeProof []byte SurjectionProof []byte AccountName string LockTimestamp int64 LockExpiryTimestamp int64 ID_2 sql.NullInt32 BlockHeight sql.NullInt32 BlockTime sql.NullInt64 BlockHash sql.NullString Status sql.NullInt32 FkUtxoID sql.NullInt32 }
type GetTransactionRow ¶
type GetTransactionRow struct { TxID string TxHex string BlockHash string BlockHeight int32 ID sql.NullInt32 AccountName sql.NullString FkTxID sql.NullString }
type GetUtxoForKeyParams ¶
type GetUtxoForKeyRow ¶
type GetUtxoForKeyRow struct { ID int32 TxID string Vout int32 Value int64 Asset string ValueCommitment []byte AssetCommitment []byte ValueBlinder []byte AssetBlinder []byte Script []byte Nonce []byte RangeProof []byte SurjectionProof []byte AccountName string LockTimestamp int64 LockExpiryTimestamp int64 ID_2 sql.NullInt32 BlockHeight sql.NullInt32 BlockTime sql.NullInt64 BlockHash sql.NullString Status sql.NullInt32 FkUtxoID sql.NullInt32 }
type GetUtxosForAccountRow ¶
type GetUtxosForAccountRow struct { ID int32 TxID string Vout int32 Value int64 Asset string ValueCommitment []byte AssetCommitment []byte ValueBlinder []byte AssetBlinder []byte Script []byte Nonce []byte RangeProof []byte SurjectionProof []byte AccountName string LockTimestamp int64 LockExpiryTimestamp int64 ID_2 sql.NullInt32 BlockHeight sql.NullInt32 BlockTime sql.NullInt64 BlockHash sql.NullString Status sql.NullInt32 FkUtxoID sql.NullInt32 }
type GetWalletAccountsAndScriptsRow ¶
type GetWalletAccountsAndScriptsRow struct { Walletid string EncryptedMnemonic []byte PasswordHash []byte BirthdayBlockHeight int32 RootPath string NetworkName string NextAccountIndex int32 Name sql.NullString Index sql.NullInt32 Xpub sql.NullString AccountDerivationPath sql.NullString NextExternalIndex sql.NullInt32 NextInternalIndex sql.NullInt32 FkWalletID sql.NullString Script sql.NullString ScriptDerivationPath sql.NullString FkAccountName sql.NullString }
type InsertAccountParams ¶
type InsertTransactionParams ¶
type InsertUtxoParams ¶
type InsertUtxoStatusParams ¶
type InsertWalletParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteAccount ¶
func (*Queries) DeleteAccountScripts ¶
func (*Queries) DeleteTransactionInputAccounts ¶
func (*Queries) DeleteUtxoStatuses ¶
func (*Queries) DeleteUtxosForAccountName ¶
func (*Queries) GetAccount ¶
func (*Queries) GetAllUtxos ¶
func (q *Queries) GetAllUtxos(ctx context.Context) ([]GetAllUtxosRow, error)
func (*Queries) GetTransaction ¶
func (*Queries) GetUtxoForKey ¶
func (q *Queries) GetUtxoForKey(ctx context.Context, arg GetUtxoForKeyParams) ([]GetUtxoForKeyRow, error)
func (*Queries) GetUtxosForAccount ¶
func (*Queries) GetUtxosForAccountName ¶
func (*Queries) GetWalletAccountsAndScripts ¶
func (*Queries) InsertAccount ¶
func (*Queries) InsertAccountScripts ¶
func (*Queries) InsertTransaction ¶
func (q *Queries) InsertTransaction(ctx context.Context, arg InsertTransactionParams) (Transaction, error)
TRANSACTION
func (*Queries) InsertTransactionInputAccount ¶
func (q *Queries) InsertTransactionInputAccount(ctx context.Context, arg InsertTransactionInputAccountParams) (TxInputAccount, error)
func (*Queries) InsertUtxo ¶
UTXO
func (*Queries) InsertUtxoStatus ¶
func (q *Queries) InsertUtxoStatus(ctx context.Context, arg InsertUtxoStatusParams) (UtxoStatus, error)
func (*Queries) InsertWallet ¶
WALLET & ACCOUNT
func (*Queries) UpdateAccountIndexes ¶
func (*Queries) UpdateTransaction ¶
func (q *Queries) UpdateTransaction(ctx context.Context, arg UpdateTransactionParams) (Transaction, error)
func (*Queries) UpdateUtxo ¶
func (*Queries) UpdateWallet ¶
type Transaction ¶
type TxInputAccount ¶
type UpdateTransactionParams ¶
type UpdateUtxoParams ¶
type UpdateWalletParams ¶
type UtxoStatus ¶
Click to show internal directories.
Click to hide internal directories.