Skip to content

Commit d507f4c

Browse files
committed
Support creation timestamp for GetMints RPC
1 parent e5f9829 commit d507f4c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
filippo.io/edwards25519 v1.1.0
77
github.com/aws/aws-sdk-go-v2 v0.17.0
88
github.com/bits-and-blooms/bloom/v3 v3.1.0
9-
github.com/code-payments/code-protobuf-api v1.19.1-0.20251006190631-c7955e3a049a
9+
github.com/code-payments/code-protobuf-api v1.19.1-0.20251112150441-9cefdedce1ef
1010
github.com/code-payments/code-vm-indexer v0.1.11-0.20241028132209-23031e814fba
1111
github.com/emirpasic/gods v1.12.0
1212
github.com/envoyproxy/protoc-gen-validate v1.2.1

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnht
8080
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
8181
github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I=
8282
github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=
83-
github.com/code-payments/code-protobuf-api v1.19.1-0.20251006190631-c7955e3a049a h1:es8YUC/il/9wYpNIh/BkckPIaNDonGiiiehUE0q+mA0=
84-
github.com/code-payments/code-protobuf-api v1.19.1-0.20251006190631-c7955e3a049a/go.mod h1:fl4xu32MeNpGZR3wFhwEeKO0qVDuxYBNkqnvuADt6cA=
83+
github.com/code-payments/code-protobuf-api v1.19.1-0.20251112150441-9cefdedce1ef h1:hl86qXa6P5HQNyJj3FXOqg5tN951W/vZ5qIrD0sg7gU=
84+
github.com/code-payments/code-protobuf-api v1.19.1-0.20251112150441-9cefdedce1ef/go.mod h1:fl4xu32MeNpGZR3wFhwEeKO0qVDuxYBNkqnvuADt6cA=
8585
github.com/code-payments/code-vm-indexer v0.1.11-0.20241028132209-23031e814fba h1:Bkp+gmeb6Y2PWXfkSCTMBGWkb2P1BujRDSjWeI+0j5I=
8686
github.com/code-payments/code-vm-indexer v0.1.11-0.20241028132209-23031e814fba/go.mod h1:jSiifpiBpyBQ8q2R0MGEbkSgWC6sbdRTyDBntmW+j1E=
8787
github.com/containerd/continuity v0.0.0-20190827140505-75bee3e2ccb6 h1:NmTXa/uVnDyp0TY5MKi197+3HWcnYWfnHGyaFthlnGw=

pkg/code/server/currency/currency.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ func (s *currencyServer) GetMints(ctx context.Context, req *currencypb.GetMintsR
9595
Authority: common.GetSubsidizer().ToProto(),
9696
LockDurationInDays: uint32(timelock_token.DefaultNumDaysLocked),
9797
},
98+
CreatedAt: timestamppb.New(time.Time{}),
9899
}
99100
default:
100101
metadataRecord, err := s.data.GetCurrencyMetadata(ctx, mintAccount.PublicKey().ToBase58())
@@ -177,6 +178,7 @@ func (s *currencyServer) GetMints(ctx context.Context, req *currencypb.GetMintsR
177178
CoreMintLocked: reserveRecord.CoreMintLocked,
178179
SellFeeBps: uint32(metadataRecord.SellFeeBps),
179180
},
181+
CreatedAt: timestamppb.New(metadataRecord.CreatedAt),
180182
}
181183
}
182184

0 commit comments

Comments
 (0)