mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 04:04:21 +01:00
* ark credits * rename "ecash" --> "ark credit" * rework note_test.go * NewFromString * create several notes * note repo: rename "push" to "add" * RegisterInputsForNextRoundRequest: move "notes" to field #3 * use uint64 as note ID * rename to voucher * add nostr notification * nostr notification test and fixes * bump badger to 4.3 * allow npub to be registered * rename poolTxID * add default relays * Update server/internal/config/config.go Co-authored-by: Marco Argentieri <3596602+tiero@users.noreply.github.com> * fix RedeemVouchers test * notification = voucher * WASM wrappers * fix arkd voucher cmd * test_utils.go ignore gosec rule G101 * fix permissions * rename ALL to notes * add URI prefix * note.go : fix signature encoding * fix decode note.Data * Update server/internal/infrastructure/notifier/nostr/nostr.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> * Update pkg/client-sdk/wasm/browser/wrappers.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> * Update server/internal/infrastructure/notifier/nostr/nostr.go Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com> * rework note and entity db + sqlite implementations * NOTIFICATION_PREFIX -> NOTE_URI_PREFIX * validate NOTE_URI_PREFIX * Update defaults to convenant-less mainnet (#2) * config: defaults to convenant-less tx builder * Drop env var for blockchain scanner --------- Co-authored-by: altafan <18440657+altafan@users.noreply.github.com> * add // before URI prefix * add URI prefix in admin CreateNote * Fixes * rework nonces encoding (#4) * rework nonces encoding * add a check in Musig2Nonce decode function * musig2_test: increase number of signers to 20 * musig2.json: add a test case with a 35 leaves tree * GetEventStream REST rework * fix round phases time intervals * [SDK] Use server-side streams in rest client * Fix history * make the URI optional * Updates * Fix settled txs in history * fix e2e test * go work sync in sdk unit test * fix signMessage in btc and liquid sdk wallets --------- Co-authored-by: Marco Argentieri <3596602+tiero@users.noreply.github.com> Co-authored-by: Pietralberto Mazza <18440657+altafan@users.noreply.github.com>
127 lines
2.2 KiB
Go
127 lines
2.2 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.27.0
|
|
|
|
package queries
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
type Entity struct {
|
|
ID int64
|
|
NostrRecipient string
|
|
}
|
|
|
|
type EntityVtxo struct {
|
|
EntityID int64
|
|
VtxoTxid string
|
|
VtxoVout int64
|
|
}
|
|
|
|
type EntityVw struct {
|
|
ID int64
|
|
NostrRecipient string
|
|
VtxoTxid sql.NullString
|
|
VtxoVout sql.NullInt64
|
|
}
|
|
|
|
type Note struct {
|
|
ID int64
|
|
}
|
|
|
|
type Payment struct {
|
|
ID string
|
|
RoundID string
|
|
}
|
|
|
|
type PaymentReceiverVw struct {
|
|
PaymentID sql.NullString
|
|
Pubkey sql.NullString
|
|
OnchainAddress sql.NullString
|
|
Amount sql.NullInt64
|
|
}
|
|
|
|
type PaymentVtxoVw struct {
|
|
Txid sql.NullString
|
|
Vout sql.NullInt64
|
|
Pubkey sql.NullString
|
|
Amount sql.NullInt64
|
|
PoolTx sql.NullString
|
|
SpentBy sql.NullString
|
|
Spent sql.NullBool
|
|
Redeemed sql.NullBool
|
|
Swept sql.NullBool
|
|
ExpireAt sql.NullInt64
|
|
CreatedAt sql.NullInt64
|
|
PaymentID sql.NullString
|
|
RedeemTx sql.NullString
|
|
}
|
|
|
|
type Receiver struct {
|
|
PaymentID string
|
|
Pubkey sql.NullString
|
|
OnchainAddress sql.NullString
|
|
Amount int64
|
|
}
|
|
|
|
type Round struct {
|
|
ID string
|
|
StartingTimestamp int64
|
|
EndingTimestamp int64
|
|
Ended bool
|
|
Failed bool
|
|
StageCode int64
|
|
Txid string
|
|
UnsignedTx string
|
|
ConnectorAddress string
|
|
DustAmount int64
|
|
Version int64
|
|
Swept bool
|
|
}
|
|
|
|
type RoundPaymentVw struct {
|
|
ID sql.NullString
|
|
RoundID sql.NullString
|
|
}
|
|
|
|
type RoundTxVw struct {
|
|
ID sql.NullInt64
|
|
Tx sql.NullString
|
|
RoundID sql.NullString
|
|
Type sql.NullString
|
|
Position sql.NullInt64
|
|
Txid sql.NullString
|
|
TreeLevel sql.NullInt64
|
|
ParentTxid sql.NullString
|
|
IsLeaf sql.NullBool
|
|
}
|
|
|
|
type Tx struct {
|
|
ID int64
|
|
Tx string
|
|
RoundID string
|
|
Type string
|
|
Position int64
|
|
Txid sql.NullString
|
|
TreeLevel sql.NullInt64
|
|
ParentTxid sql.NullString
|
|
IsLeaf sql.NullBool
|
|
}
|
|
|
|
type Vtxo struct {
|
|
Txid string
|
|
Vout int64
|
|
Pubkey string
|
|
Amount int64
|
|
PoolTx string
|
|
SpentBy string
|
|
Spent bool
|
|
Redeemed bool
|
|
Swept bool
|
|
ExpireAt int64
|
|
CreatedAt int64
|
|
PaymentID sql.NullString
|
|
RedeemTx sql.NullString
|
|
}
|