File tree Expand file tree Collapse file tree 12 files changed +421
-66
lines changed
Expand file tree Collapse file tree 12 files changed +421
-66
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @penumbra-zone/services ' : major
3+ ' @penumbra-zone/protobuf ' : minor
4+ ' @penumbra-zone/storage ' : minor
5+ ' @penumbra-zone/types ' : minor
6+ ' @penumbra-zone/wasm ' : minor
7+ ---
8+
9+ tct frontier support for freshly generated wallets
Original file line number Diff line number Diff line change 1616 "gen:ibc" : " buf generate buf.build/cosmos/ibc:7ab44ae956a0488ea04e04511efa5f70" ,
1717 "gen:ics23" : " buf generate buf.build/cosmos/ics23:55085f7c710a45f58fa09947208eb70b" ,
1818 "gen:noble" : " buf generate buf.build/noble-assets/forwarding:5a8609a6772d417584a9c60cd8b80881" ,
19- "gen:penumbra" : " buf generate buf.build/penumbra-zone/penumbra:02e7203c4f7343972a15bb92ab240de63af19795 " ,
19+ "gen:penumbra" : " buf generate buf.build/penumbra-zone/penumbra:c9cad1174337c69d8270816ae52f3dfa820df3f3 " ,
2020 "lint" : " eslint src" ,
2121 "lint:fix" : " eslint src --fix" ,
2222 "lint:strict" : " tsc --noEmit && eslint src --max-warnings 0" ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { timestampByHeight } from './timestamp-by-height.js';
55
66export type Impl = ServiceImpl < typeof SctService > ;
77
8- export const sctImpl : Omit < Impl , 'anchorByHeight' > = {
8+ export const sctImpl : Omit < Impl , 'anchorByHeight' | 'sctFrontier' > = {
99 epochByHeight,
1010 timestampByHeight,
1111} ;
Original file line number Diff line number Diff line change @@ -231,6 +231,14 @@ export class IndexedDb implements IndexedDbInterface {
231231 await this . u . updateAll ( txs ) ;
232232 }
233233
234+ async saveFullSyncHeight ( height : bigint ) {
235+ await this . u . update ( {
236+ table : 'FULL_SYNC_HEIGHT' ,
237+ value : height ,
238+ key : 'height' ,
239+ } ) ;
240+ }
241+
234242 async getFullSyncHeight ( ) {
235243 return this . db . get ( 'FULL_SYNC_HEIGHT' , 'height' ) ;
236244 }
@@ -1042,7 +1050,7 @@ export class IndexedDb implements IndexedDbInterface {
10421050 txs . add ( { table : 'TREE_HASHES' , value : h } ) ;
10431051 }
10441052
1045- // TODO: What about updates.delete_ranges?
1053+ // TODO: What about updates.delete_ranges (https://github.com/penumbra-zone/web/issues/818) ?
10461054 }
10471055
10481056 private addNewNotes ( txs : IbdUpdates , notes : SpendableNoteRecord [ ] ) : void {
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ export interface IndexedDbInterface {
6666 constants ( ) : IdbConstants ;
6767 clear ( ) : Promise < void > ;
6868 getFullSyncHeight ( ) : Promise < bigint | undefined > ;
69+ saveFullSyncHeight ( height : bigint ) : Promise < void > ;
6970 getSpendableNoteByNullifier ( nullifier : Nullifier ) : Promise < SpendableNoteRecord | undefined > ;
7071 getSpendableNoteByCommitment (
7172 commitment : StateCommitment ,
@@ -423,6 +424,7 @@ export const IDB_TABLES: Tables = {
423424 transactions : 'TRANSACTIONS' ,
424425 full_sync_height : 'FULL_SYNC_HEIGHT' ,
425426 tree_commitments : 'TREE_COMMITMENTS' ,
427+ tree_hashes : 'TREE_HASHES' ,
426428 tree_last_position : 'TREE_LAST_POSITION' ,
427429 tree_last_forgotten : 'TREE_LAST_FORGOTTEN' ,
428430 lqt_historical_votes : 'LQT_HISTORICAL_VOTES' ,
Original file line number Diff line number Diff line change @@ -9,9 +9,15 @@ import {
99 DutchAuction ,
1010} from '@penumbra-zone/protobuf/penumbra/core/component/auction/v1/auction_pb' ;
1111import { CompactBlock } from '@penumbra-zone/protobuf/penumbra/core/component/compact_block/v1/compact_block_pb' ;
12+ import {
13+ CurrentGasPricesRequest ,
14+ CurrentGasPricesResponse ,
15+ } from '@penumbra-zone/protobuf/penumbra/core/component/fee/v1/fee_pb' ;
1216import { LqtCheckNullifierResponse } from '@penumbra-zone/protobuf/penumbra/core/component/funding/v1/funding_pb' ;
1317import {
1418 Nullifier ,
19+ SctFrontierRequest ,
20+ SctFrontierResponse ,
1521 TimestampByHeightRequest ,
1622 TimestampByHeightResponse ,
1723} from '@penumbra-zone/protobuf/penumbra/core/component/sct/v1/sct_pb' ;
@@ -85,8 +91,13 @@ export interface AuctionQuerierInterface {
8591
8692export interface SctQuerierInterface {
8793 timestampByHeight ( req : TimestampByHeightRequest ) : Promise < TimestampByHeightResponse > ;
94+ sctFrontier ( req : SctFrontierRequest ) : Promise < SctFrontierResponse > ;
8895}
8996
9097export interface FundingQuerierInterface {
9198 lqtCheckNullifier ( epochIndex : bigint , nullifier : Nullifier ) : Promise < LqtCheckNullifierResponse > ;
9299}
100+
101+ export interface FeeQuerierInterface {
102+ currentGasPrices ( req : CurrentGasPricesRequest ) : Promise < CurrentGasPricesResponse > ;
103+ }
You can’t perform that action at this time.
0 commit comments