Documentation ¶
Index ¶
- type Account
- type AccountScriptInfo
- type DBTX
- type ExternalScript
- type GetAllUtxosRow
- type GetTransactionRow
- type GetUtxoForKeyParams
- type GetUtxoForKeyRow
- type GetUtxosForAccountRow
- type GetWalletAccountsAndScriptsRow
- type InsertAccountParams
- type InsertAccountScriptsParams
- type InsertScriptParams
- type InsertTransactionInputAccountParams
- type InsertTransactionParams
- type InsertUtxoParams
- type InsertUtxoStatusParams
- type InsertWalletParams
- type Queries
- func (q *Queries) DeleteAccount(ctx context.Context, namespace string) error
- func (q *Queries) DeleteAccountScripts(ctx context.Context, fkAccountName string) error
- func (q *Queries) DeleteScript(ctx context.Context, account 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, namespace string) (Account, error)
- func (q *Queries) GetAllScripts(ctx context.Context) ([]ExternalScript, error)
- func (q *Queries) GetAllUtxos(ctx context.Context) ([]GetAllUtxosRow, error)
- func (q *Queries) GetScript(ctx context.Context, account string) (ExternalScript, 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) InsertScript(ctx context.Context, arg InsertScriptParams) 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) ResetScripts(ctx context.Context) error
- func (q *Queries) ResetTransactions(ctx context.Context) error
- func (q *Queries) ResetUtxos(ctx context.Context) error
- func (q *Queries) ResetWallet(ctx context.Context) error
- func (q *Queries) UpdateAccount(ctx context.Context, arg UpdateAccountParams) (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 UpdateAccountParams
- 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 ExternalScript ¶ added in v0.2.0
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 TxID_2 sql.NullString }
type GetTransactionRow ¶
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 TxID_2 sql.NullString }
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 TxID_2 sql.NullString }
type GetWalletAccountsAndScriptsRow ¶
type GetWalletAccountsAndScriptsRow struct { Walletid string EncryptedMnemonic []byte PasswordHash []byte BirthdayBlockHeight int32 RootPath string NetworkName string NextAccountIndex int32 Namespace sql.NullString Label 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 InsertScriptParams ¶ added in v0.2.0
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) DeleteScript ¶ added in v0.2.0
func (*Queries) DeleteTransactionInputAccounts ¶
func (*Queries) DeleteUtxoStatuses ¶
func (*Queries) DeleteUtxosForAccountName ¶
func (*Queries) GetAccount ¶
func (*Queries) GetAllScripts ¶ added in v0.2.0
func (q *Queries) GetAllScripts(ctx context.Context) ([]ExternalScript, error)
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) InsertScript ¶ added in v0.2.0
func (q *Queries) InsertScript(ctx context.Context, arg InsertScriptParams) error
EXTERNAL SCRIPT
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) ResetScripts ¶ added in v0.2.0
func (*Queries) ResetTransactions ¶ added in v0.1.16
func (*Queries) ResetUtxos ¶ added in v0.1.16
func (*Queries) ResetWallet ¶ added in v0.1.16
func (*Queries) UpdateAccount ¶ added in v0.1.16
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 UpdateAccountParams ¶ added in v0.1.16
type UpdateAccountParams struct { NextExternalIndex int32 NextInternalIndex int32 Label sql.NullString Namespace string }
type UpdateTransactionParams ¶
type UpdateUtxoParams ¶
type UpdateWalletParams ¶
type UtxoStatus ¶
Click to show internal directories.
Click to hide internal directories.