-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALL-7216 - Add electrs & iota, rename rostrum
- Loading branch information
Showing
17 changed files
with
284 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Network, BitcoinElectrs, TatumSDK } from '../../../service' | ||
import { e2eUtil } from '../../e2e.util' | ||
|
||
const getElectrsRpc = async () => await TatumSDK.init<BitcoinElectrs>(e2eUtil.initConfig(Network.BITCOIN_ELECTRS)) | ||
|
||
describe('Electrs', () => { | ||
|
||
it('blockchain.headers.subscribe', async () => { | ||
const electrs = await getElectrsRpc() | ||
const result = await electrs.rpc.blockchainHeadersSubscribe() | ||
await electrs.destroy() | ||
expect(result.result?.hex).toBeDefined() | ||
expect(result.result?.height).toBeDefined() | ||
}) | ||
|
||
it('server.banner', async () => { | ||
const electrs = await getElectrsRpc() | ||
const result = await electrs.rpc.serverBanner() | ||
await electrs.destroy() | ||
expect(result.result).toBeDefined() | ||
}) | ||
}) |
12 changes: 6 additions & 6 deletions
12
src/e2e/rpc/evm/tatum.rpc.iota.spec.ts β src/e2e/rpc/other/tatum.rpc.iota.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.