Kadena support (#650)

* kadena support

* add kadena mempool endpoits

* createQuorumFor fix
This commit is contained in:
Andrey Bronin
2025-04-09 14:54:40 +03:00
committed by GitHub
parent 9ca2c921b5
commit 8b999d5439
12 changed files with 304 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
package io.emeraldpay.dshackle.upstream.kadena
import io.emeraldpay.dshackle.Chain
import io.emeraldpay.dshackle.upstream.lowerbound.LowerBoundData
import io.emeraldpay.dshackle.upstream.lowerbound.LowerBoundType
import org.junit.jupiter.api.Test
import reactor.test.StepVerifier
import java.time.Duration
class KadenaLowerBoundStateDetectorTest {
@Test
fun `kadena lower block is 1`() {
val detector = KadenaLowerBoundStateDetector(Chain.KADENA__MAINNET)
StepVerifier.withVirtualTime { detector.detectLowerBound() }
.expectSubscription()
.expectNoEvent(Duration.ofSeconds(15))
.expectNext(LowerBoundData(1, LowerBoundType.STATE))
.thenCancel()
.verify(Duration.ofSeconds(3))
}
}