-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
76 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
## [4.2.21] - 2024.4.4 | ||
|
||
### Added | ||
|
||
- Added support for Cosmos API calls | ||
|
||
## [4.2.20] - 2024.2.4 | ||
|
||
### Added | ||
|
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,41 @@ | ||
import { CosmosRosetta, Network, TatumSDK } from '../../../service' | ||
import { e2eUtil } from '../../e2e.util' | ||
|
||
const getCosmosRosettaRpc = async () => | ||
await TatumSDK.init<CosmosRosetta>(e2eUtil.initConfig(Network.COSMONS_ROSETTA)) | ||
|
||
const networks = [{ blockchain: 'cosmos', network: 'mainnet' }] | ||
|
||
describe.each(networks)('Cosmos Rosetta', ({ network, blockchain }) => { | ||
describe('Mainnet', () => { | ||
let tatum: CosmosRosetta | ||
|
||
beforeEach(async () => { | ||
tatum = await getCosmosRosettaRpc() | ||
}) | ||
|
||
afterEach(async () => { | ||
await tatum.destroy() | ||
}) | ||
|
||
it('should get network status', async () => { | ||
const response = await tatum.rpc.getNetworkStatus({ | ||
networkIdentifier: { blockchain, network }, | ||
}) | ||
expect(response).toBeDefined() | ||
}) | ||
|
||
it('should get network list', async () => { | ||
const response = await tatum.rpc.getNetworkList({}) | ||
expect(response).toBeDefined() | ||
}) | ||
|
||
it('should get block', async () => { | ||
const response = await tatum.rpc.getBlock({ | ||
networkIdentifier: { blockchain, network }, | ||
blockIdentifier: { index: 19853111 }, | ||
}) | ||
expect(response).toBeDefined() | ||
}) | ||
}) | ||
}) |
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