@@ -59,42 +59,6 @@ describe('Chainhook observer', () => {
5959 await expect ( db . getChainTipBlockHeight ( ) ) . resolves . toBe ( 101 ) ;
6060 } ) ;
6161
62- test ( 'keeps only the highest chain tip value' , async ( ) => {
63- await db . chainhook . processPayload (
64- new TestChainhookPayloadBuilder ( )
65- . apply ( )
66- . block ( { height : 100 } )
67- . transaction ( { hash : '0x01' , sender : 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60' } )
68- . contractDeploy ( 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60.friedger-pool-nft' , {
69- maps : [ ] ,
70- functions : [ ] ,
71- variables : [ ] ,
72- fungible_tokens : [ ] ,
73- non_fungible_tokens : [ ] ,
74- } )
75- . build ( )
76- ) ;
77- await expect ( db . getChainTipBlockHeight ( ) ) . resolves . toBe ( 100 ) ;
78-
79- await db . chainhook . processPayload (
80- new TestChainhookPayloadBuilder ( )
81- . apply ( )
82- . block ( { height : 65 } )
83- . transaction ( { hash : '0x01' , sender : 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60' } )
84- . event ( {
85- type : 'SmartContractEvent' ,
86- position : { index : 0 } ,
87- data : {
88- contract_identifier : 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60.friedger-pool-nft' ,
89- topic : 'print' ,
90- raw_value : cvToHex ( stringUtf8CV ( 'test' ) ) ,
91- } ,
92- } )
93- . build ( )
94- ) ;
95- await expect ( db . getChainTipBlockHeight ( ) ) . resolves . toBe ( 100 ) ;
96- } ) ;
97-
9862 test ( 'enqueues dynamic tokens for refresh with standard interval' , async ( ) => {
9963 const address = 'SP1K1A1PMGW2ZJCNF46NWZWHG8TS1D23EGH1KNK60' ;
10064 const contractId = `${ address } .friedger-pool-nft` ;
0 commit comments