feat(gl): expose ledger application and grpc operations

This commit is contained in:
2026-08-14 19:11:29 +03:30
parent 0b3eaa0c3d
commit 76905ab451
17 changed files with 1724 additions and 16 deletions
+15
View File
@@ -80,6 +80,7 @@ type Journal struct {
Entries []Entry
ReversalOfJournalID string
OccurredAt time.Time
RecordedAt time.Time
CorrelationID string
ActorID string
Blockchain BlockchainReference
@@ -87,6 +88,20 @@ type Journal struct {
PayloadHash string
}
type AppendResult struct {
JournalID string
AlreadyExists bool
}
type JournalFilter struct {
Account *AccountReference
AssetID *int64
RecordedFrom *time.Time
RecordedTo *time.Time
Limit int
Offset int
}
func (j Journal) Validate() error {
if j.ID == "" || j.SourceService == "" || j.IdempotencyKey == "" || j.SourceTransactionID == "" || j.EffectKind == "" {
return fmt.Errorf("journal identity fields are required")