Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ec5dabd
docs: add docs on e2e RFQ arch
Roasbeef Sep 10, 2025
b7172c9
docs: fix up section titles in rfq arch doc
jtobin Sep 22, 2025
157a037
Merge pull request #1 from jtobin/rfq-multi-repo-docs
Roasbeef Sep 30, 2025
c7656dd
supplyverifier: add check for minimum pre-commit count in verifier
ffranr Sep 30, 2025
3e1a9a8
supplyverifier: refactor fetchDelegationKey into standalone function
ffranr Sep 24, 2025
d1eb253
multi: rename ExtractPreCommitFromProof to NewPreCommitFromProof
ffranr Sep 24, 2025
0997ca3
supplyverifier: extract pre-commits from issuance leaves
ffranr Sep 25, 2025
8b4756f
supplycommit: export mock functionality for use in supplyverifier
ffranr Sep 29, 2025
d81d3a9
supplyverifer: test FetchPreCommits and FetchDelegationKey
ffranr Sep 29, 2025
215fc5f
tapdb: extract upsertSupplyPreCommit from maybeUpsertSupplyPreCommit
ffranr Sep 25, 2025
cb15607
tapdb: upsert pre-commit when inserting supply commit
ffranr Sep 25, 2025
473ea54
tapdb: add tests for shouldInsertPreCommit and upsertSupplyPreCommit
ffranr Sep 29, 2025
46b8773
itest: extend supply commit peer verification with mint event
ffranr Sep 25, 2025
0ff013d
docs: add release notes
ffranr Sep 25, 2025
df6ae3f
Merge pull request #1820 from lightninglabs/wip/supplyverify/late-min…
Roasbeef Sep 30, 2025
26ec664
docs: remove old accidentally committed asset funding doc
Roasbeef Sep 30, 2025
956c4df
docs: add docs that detail the asset chan funding process
Roasbeef Sep 9, 2025
88de56a
Merge pull request #1783 from Roasbeef/asset-funding-docs
Roasbeef Sep 30, 2025
614acdc
Merge pull request #1787 from Roasbeef/rfq-multi-repo-docs
Roasbeef Sep 30, 2025
fe28a72
tapdb: add pagination and ordering to QueryAddrEvents
darioAnongba Sep 30, 2025
fe5da33
taprpc: add pagination and sorting to AddrReceivesRequest
darioAnongba Sep 30, 2025
a627b49
rpc: add pagination and sorting to AddrReceives endpoint
darioAnongba Sep 30, 2025
d34c648
cmd: add pagination and sorting to tapcli addr receives
darioAnongba Sep 30, 2025
d6a601c
docs: release notes for addrs receives pagination
darioAnongba Sep 30, 2025
b4bba57
itest: add test for address receives pagination
darioAnongba Sep 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions address/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,33 @@ const (
StatusCompleted Status = 3
)

// SortDirection is an enum used to specify the order of returned events.
type SortDirection uint8

const (
// UndefinedSortDirection indicates that the sort direction
// is not specified.
UndefinedSortDirection SortDirection = iota

// DescSortDirection indicates that the sort should be in
// descending order.
DescSortDirection

// AscSortDirection indicates that the sort should be in
// ascending order.
AscSortDirection
)

const (
// DefaultEventQueryLimit is the number of events returned
// when no limit is provided.
DefaultEventQueryLimit = 512

// MaxEventQueryLimit is the maximum number of events that can be
// returned in a single query.
MaxEventQueryLimit = 16384
)

// EventQueryParams holds the set of query params for address events.
type EventQueryParams struct {
// AddrTaprootOutputKey is the optional 32-byte x-only serialized
Expand All @@ -65,6 +92,17 @@ type EventQueryParams struct {
// (inclusive). Can be set to nil to return events of all creation
// times.
CreationTimeTo *time.Time

// Offset is the offset into the result set to start returning events.
Offset int32

// Limit is the max number of events that should be returned. If zero,
// then DefaultEventQueryLimit will be used.
Limit int32

// SortDirection is the sort direction to use when returning the
// events. The default zero value sorts the events in ascending order.
SortDirection SortDirection
}

// AssetOutput holds the information about a single asset output that was sent
Expand Down
24 changes: 24 additions & 0 deletions cmd/commands/addrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ const (
limitName = "limit"

offsetName = "offset"

directionName = "direction"
)

var queryAddrsCommand = cli.Command{
Expand Down Expand Up @@ -293,6 +295,20 @@ var receivesAddrCommand = cli.Command{
Usage: "filter transfers created before this + " +
"unix timestamp (seconds)",
},
cli.Int64Flag{
Name: limitName,
Usage: "the max number of events returned",
},
cli.Int64Flag{
Name: offsetName,
Usage: "the number of events to skip",
},
cli.StringFlag{
Name: directionName,
Usage: "the sort direction for events (asc or desc). " +
"Defaults to desc.",
Value: "desc",
},
},
Action: addrReceives,
}
Expand All @@ -311,10 +327,18 @@ func addrReceives(ctx *cli.Context) error {
addr = ctx.Args().First()
}

direction := taprpc.SortDirection_SORT_DIRECTION_DESC
if ctx.String(directionName) == "asc" {
direction = taprpc.SortDirection_SORT_DIRECTION_ASC
}

resp, err := client.AddrReceives(ctxc, &taprpc.AddrReceivesRequest{
FilterAddr: addr,
StartTimestamp: ctx.Uint64("start_timestamp"),
EndTimestamp: ctx.Uint64("end_timestamp"),
Limit: int32(ctx.Int64(limitName)),
Offset: int32(ctx.Int64(offsetName)),
Direction: direction,
})
if err != nil {
return fmt.Errorf("unable to query addr receives: %w", err)
Expand Down
344 changes: 261 additions & 83 deletions docs/asset-channel-funding.md

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions docs/release-notes/release-notes-0.7.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
- https://github.com/lightninglabs/taproot-assets/pull/1797
- https://github.com/lightninglabs/taproot-assets/pull/1823
- https://github.com/lightninglabs/taproot-assets/pull/1822
- https://github.com/lightninglabs/taproot-assets/pull/1820

- A new [address version 2 was introduced that supports grouped assets and
custom (sender-defined)
Expand Down Expand Up @@ -173,6 +174,9 @@
- The `AddrReceives` RPC now supports timestamp filtering with
[new `StartTimestamp` and `EndTimestamp` fields](https://github.com/lightninglabs/taproot-assets/pull/1794).

- The `AddrReceives` RPC has new fields `limit`, `offset` and `direction` that
allows pagination and sorting. [See PR](https://github.com/lightninglabs/taproot-assets/pull/1813).

## tapcli Additions

- [Rename](https://github.com/lightninglabs/taproot-assets/pull/1682) the mint
Expand All @@ -194,6 +198,9 @@
- The `tapcli addrs receives` command now supports
[new `--start_timestamp` and `--end_timestamp` flags](https://github.com/lightninglabs/taproot-assets/pull/1794).

- The `tapcli addrs receives` command now has new flags `--limit`, `--offset` and
`--direction` that allows pagination and sorting. [See PR](https://github.com/lightninglabs/taproot-assets/pull/1813).

- The `fetchsupplycommit` command [now supports](https://github.com/lightninglabs/taproot-assets/pull/1823)
a `--first` flag to fetch the very first supply commitment; if no flag is
provided, it defaults to fetching the latest. Only one of `--first`,
Expand Down
Loading
Loading