-
Notifications
You must be signed in to change notification settings - Fork 62
LW-11470 Blockfrost based backend #1516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
801e901
fix(core): do not convert empty strings in natural zero
iccicci fcd8c2b
refactor(core): do not add some undefined keys in deserialization
iccicci 52271f5
test(ogmios): align tests with new deserialization
iccicci 103f408
feat(cardano-services): improve transaction from blockfrost using cbo…
iccicci 8d9f847
feat: add blockfrost based provider server
iccicci b4ce30b
test(e2e): add comparison test skeleton for blockfrost network info p…
iccicci File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
93 changes: 93 additions & 0 deletions
93
.github/workflows/continuous-integration-blockfrost-e2e.yaml
This file contains hidden or 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,93 @@ | ||
| name: Continuous Integration - E2E BF | ||
|
|
||
| env: | ||
| TL_DEPTH: ${{ github.event.pull_request.head.repo.fork && '0' || fromJson(vars.TL_DEPTH) }} | ||
| TL_LEVEL: ${{ github.event.pull_request.head.repo.fork && 'info' || vars.TL_LEVEL }} | ||
| # ----------------------------------------------------------------------------------------- | ||
| DB_SYNC_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/cexplorer' | ||
| KEY_MANAGEMENT_PROVIDER: 'inMemory' | ||
| KEY_MANAGEMENT_PARAMS: '{"bip32Ed25519": "Sodium", "accountIndex": 0, "chainId":{"networkId": 0, "networkMagic": 888}, "passphrase":"some_passphrase","mnemonic":"vacant violin soft weird deliver render brief always monitor general maid smart jelly core drastic erode echo there clump dizzy card filter option defense"}' | ||
| OGMIOS_URL: 'ws://localhost:1340/' | ||
| STAKE_POOL_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/stake_pool' | ||
| STAKE_POOL_TEST_CONNECTION_STRING: 'postgresql://postgres:doNoUseThisSecret!@localhost:5435/stake_pool_test' | ||
| TEST_CLIENT_ASSET_PROVIDER: 'http' | ||
| TEST_CLIENT_ASSET_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4014/"}' | ||
| TEST_CLIENT_CHAIN_HISTORY_PROVIDER: 'http' | ||
| TEST_CLIENT_CHAIN_HISTORY_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4001/"}' | ||
| TEST_CLIENT_HANDLE_PROVIDER: 'http' | ||
| TEST_CLIENT_HANDLE_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4011/"}' | ||
| TEST_CLIENT_NETWORK_INFO_PROVIDER: 'ws' | ||
| TEST_CLIENT_NETWORK_INFO_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}' | ||
| TEST_CLIENT_REWARDS_PROVIDER: 'http' | ||
| TEST_CLIENT_REWARDS_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4001/"}' | ||
| TEST_CLIENT_TX_SUBMIT_PROVIDER: 'http' | ||
| TEST_CLIENT_TX_SUBMIT_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}' | ||
| TEST_CLIENT_UTXO_PROVIDER: 'http' | ||
| TEST_CLIENT_UTXO_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4001/"}' | ||
| TEST_CLIENT_STAKE_POOL_PROVIDER: 'http' | ||
| TEST_CLIENT_STAKE_POOL_PROVIDER_PARAMS: '{"baseUrl":"http://localhost:4000/"}' | ||
| WS_PROVIDER_URL: 'http://localhost:4100/ws' | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: ['master'] | ||
| tags: ['*.*.*'] | ||
|
|
||
| jobs: | ||
| build_and_test: | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-20.04] | ||
| runs-on: ${{ matrix.os }} | ||
| steps: | ||
| - name: 📥 Checkout repository | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: 🧰 Setup Node.js | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: 18.12.0 | ||
|
|
||
| - name: 🔨 Build | ||
| run: | | ||
| yarn install --immutable --inline-builds --mode=skip-build | ||
| yarn workspace @cardano-sdk/cardano-services-client build:cjs | ||
| yarn workspace @cardano-sdk/cardano-services build:cjs | ||
| yarn workspace @cardano-sdk/e2e build:cjs | ||
| yarn workspace @cardano-sdk/util-dev build:cjs | ||
| docker build --no-cache . | ||
| env: | ||
| NODE_OPTIONS: '--max_old_space_size=8192' | ||
|
|
||
| - name: 🌐 Setup local test network | ||
| working-directory: packages/e2e | ||
| run: | | ||
| yarn local-network:up -d | ||
| env: | ||
| CARDANO_NODE_CHAINDB_LOG_LEVEL: 'Warning' | ||
| CARDANO_NODE_LOG_LEVEL: 'Warning' | ||
| OGMIOS_PORT: '1340' | ||
| OGMIOS_URL: 'ws://ogmios:1340' | ||
| POSTGRES_PORT: '5435' | ||
|
|
||
| - name: Wait for network init | ||
| run: | | ||
| yarn workspace @cardano-sdk/e2e wait-for-network-init | ||
|
|
||
| - name: 🔬 Test - e2e - wallet at epoch 0 | ||
| run: | | ||
| yarn workspace @cardano-sdk/e2e test:wallet:epoch0 | ||
|
|
||
| - name: Wait for epoch 3 | ||
| run: | | ||
| yarn workspace @cardano-sdk/e2e wait-for-network-epoch-3 | ||
|
|
||
| - name: 🔬 Test - e2e - wallet at epoch 3 | ||
| run: | | ||
| yarn workspace @cardano-sdk/e2e test:wallet:epoch3 | ||
| yarn workspace @cardano-sdk/e2e test:blockfrost:providers | ||
|
|
||
| - name: Dump docker logs | ||
| if: ${{ cancelled() || failure() }} | ||
| uses: jwalton/gh-docker-logs@v2 |
This file contains hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.