Skip to content

Commit 1a49864

Browse files
committed
feat: enable blockfrost enabled e2e tests
1 parent d394341 commit 1a49864

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/continuous-integration-e2e.yaml renamed to .github/workflows/continuous-integration-blockfrost-e2e.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Continuous Integration - E2E
1+
name: Continuous Integration (Blockfrost) - E2E
22

33
env:
44
TL_DEPTH: ${{ github.event.pull_request.head.repo.fork && '0' || fromJson(vars.TL_DEPTH) }}
@@ -28,6 +28,16 @@ env:
2828
TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}'
2929
WS_PROVIDER_URL: 'http://localhost:4100/ws'
3030

31+
# Blockfrost enablement
32+
BLOCKFROST_CUSTOM_BACKEND_URL: 'http://blockfrost-ryo:3000'
33+
ASSET_PROVIDER: 'blockfrost'
34+
UTXO_PROVIDER: 'blockfrost'
35+
CHAIN_HISTORY_PROVIDER: 'blockfrost'
36+
REWARDS_PROVIDER: 'blockfrost'
37+
NETWORK_INFO_PROVIDER: 'blockfrost'
38+
#blockfrost-ryo doesn't have submit API
39+
#TX_SUBMIT_PROVIDER: 'blockfrost'
40+
3141
on:
3242
pull_request:
3343
push:

packages/cardano-services/src/NetworkInfo/BlockfrostNetworkInfoProvider/BlockfrostNetworkInfoProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class BlockfrostNetworkInfoProvider extends BlockfrostProvider implements
8080
try {
8181
// Although Blockfrost have the endpoint, the blockfrost-js library don't have a call for it
8282
// https://github.com/blockfrost/blockfrost-js/issues/294
83-
const response = await this.blockfrost.instance<Schemas['network-eras']>('network-eras');
83+
const response = await this.blockfrost.instance<Schemas['network-eras']>('network/eras');
8484
return response.body;
8585
} catch (error) {
8686
throw handleError(error);

packages/cardano-services/src/util/BlockfrostProvider/BlockfrostToCore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export const BlockfrostToCore = {
113113
return {
114114
address: Cardano.PaymentAddress(blockfrost.address),
115115
value: {
116-
assets,
116+
assets: assets.size > 0 ? assets : undefined,
117117
coins: BigInt(blockfrost.amount.find(({ unit }) => unit === 'lovelace')!.quantity)
118118
}
119119
};

0 commit comments

Comments
 (0)