Skip to content
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

feat: update to P2P indexer #560

Merged
merged 20 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
eb1dad9
fix: apply non-mutating accumulator only in React hooks accumulators
dib542 May 26, 2024
d07aac8
feat: add fetch-event-source dependency: for EventSource with headers
dib542 May 15, 2024
435ab3e
feat: improve data set entry removal with custom data match function
dib542 May 25, 2024
6eb8c1b
refactor: make indexer hooks more flexible for multiple datasets:
dib542 May 26, 2024
f12716a
refactor: abstract out IndexerStreamAccumulateMultipleDataSets class
dib542 May 26, 2024
29f5962
feat: switch to P2P indexer subscription endpoints
dib542 May 28, 2024
13f4029
feat: improve indexer class retry visibility
dib542 May 29, 2024
cbb111d
feat: add fetching of data from REST endpoints to indexer classes
dib542 May 30, 2024
0895d5c
feat: make Swap page data requirements lighter
dib542 May 30, 2024
9f014f1
fix: stat and realtime prices should be display prices
dib542 May 30, 2024
aafcea2
fix: make prices explicit: price was being confused for displayPrice
dib542 May 20, 2024
2924a41
fix: fix overlapping updates by asking chart to create own empty bars
dib542 May 30, 2024
5bbdbec
fix: add liquidity pair data processing
dib542 May 30, 2024
4aebc71
fix: liquidity prices and showing of initial liquidity data
dib542 May 30, 2024
57d7664
feat: add indexer API details to builds
dib542 May 30, 2024
ca45114
fix: subscribe to price data using seconds resolution only
dib542 May 31, 2024
1a84d74
feat: allow subscriptions to continue in inactive pages:
dib542 May 31, 2024
e721e9e
feat: allow PoolOverview charts to load quickly when full of data
dib542 May 31, 2024
afebc02
feat: remove subscriptions from PoolCharts due to API limitation
dib542 May 31, 2024
59ee1b8
refactor: abstract out dataUpdate getter helper functions
dib542 Jun 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ REACT_APP__MAX_TICK_INDEXES=-352437,352437
REACT_APP__CHAIN_REGISTRY_PATH_ENDPOINTS=["https://api.github.com/repos/cosmos/chain-registry/contents"]
REACT_APP__CHAIN_REGISTRY_FILE_ENDPOINTS=["https://raw.githubusercontent.com/cosmos/chain-registry/master"]

REACT_APP__INDEXER_API=https://indexer.testnet-1.duality.xyz
REACT_APP__INDEXER_API=https://neutron-testnet-api.lambda.p2p.org/api/v1
REACT_APP__REST_API=https://rest-lb-pion.ntrn.tech
REACT_APP__RPC_API=https://rpc-lb-pion.ntrn.tech
REACT_APP__WEBSOCKET_URL=wss://rpc-lb-pion.ntrn.tech/websocket
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ jobs:
run: npm run build -- --mode testnet && cp netlify.toml build/netlify.toml
env:
REACT_APP__BUILD_NUMBER: ${{ github.run_id }}
REACT_APP__INDEXER_API_KEY: ${{ secrets.REACT_APP__INDEXER_API_KEY }}

- name: Deploy testnet preview to Netlify
id: netlify_deploy_testnet_preview
Expand All @@ -92,10 +93,10 @@ jobs:
name: Create GitHub Preview deployment
id: deployment
with:
token: '${{ secrets.GIT_PAT }}'
environment-url: ${{ steps.netlify_deploy_testnet_preview.outputs.NETLIFY_PREVIEW_URL }}
environment: Preview
initial-status: success
token: '${{ secrets.GIT_PAT }}'
environment-url: ${{ steps.netlify_deploy_testnet_preview.outputs.NETLIFY_PREVIEW_URL }}
environment: Preview
initial-status: success
- name: Clear build folder
run: rm -rf build

Expand All @@ -105,6 +106,7 @@ jobs:
run: npm run build -- --mode beta && cp netlify.toml build/netlify.toml
env:
REACT_APP__BUILD_NUMBER: ${{ github.run_id }}
REACT_APP__INDEXER_API_KEY: ${{ secrets.REACT_APP__INDEXER_API_KEY }}

- name: Deploy beta preview to Netlify
id: netlify_deploy_beta_preview
Expand Down Expand Up @@ -141,4 +143,3 @@ jobs:
echo "Preview URL: ${{ steps.netlify_deploy_beta_preview.outputs.NETLIFY_PREVIEW_URL }}" >> netlify.txt
echo "Logs: ${{ steps.netlify_deploy_beta_preview.outputs.NETLIFY_LOGS_URL }}" >> netlify.txt
gh pr comment ${{ github.event.pull_request.number }} --body-file netlify.txt || true

2 changes: 2 additions & 0 deletions .github/workflows/deploy_semantic_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:
run: npm run build -- --mode testnet && cp netlify.toml build/netlify.toml
env:
REACT_APP__BUILD_NUMBER: ${{ github.run_id }}
REACT_APP__INDEXER_API_KEY: ${{ secrets.REACT_APP__INDEXER_API_KEY }}

- name: Deploy testnet to Netlify
id: netlify_deploy_testnet
Expand Down Expand Up @@ -140,6 +141,7 @@ jobs:
run: npm run build -- --mode beta && cp netlify.toml build/netlify.toml
env:
REACT_APP__BUILD_NUMBER: ${{ github.run_id }}
REACT_APP__INDEXER_API_KEY: ${{ secrets.REACT_APP__INDEXER_API_KEY }}

- name: Deploy beta to Netlify
id: netlify_deploy_beta
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@fortawesome/react-fontawesome": "^0.2.0",
"@keplr-wallet/router": "^0.12.20",
"@keplr-wallet/stores": "^0.12.20",
"@microsoft/fetch-event-source": "^2.0.1",
"@radix-ui/react-dialog": "^1.0.5",
"@react-hook/resize-observer": "^1.2.6",
"@tanstack/react-query": "^5.18.1",
Expand Down
Loading
Loading