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

[FIX] incorrect query and network config for standalone #1077

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

aristidesstaffieri
Copy link
Contributor

This fixes https://stellarorg.atlassian.net/browse/WAL-1228 along with stellar/freighter-backend#17

Updates custom network identifier to be STANDALONE which matches the sdk value used in the backend.
Corrects or adds the missing query params to pass rpc urls for custom networks.

@aristidesstaffieri aristidesstaffieri merged commit 7e919de into feat/mercury-mvp Jan 5, 2024
3 checks passed
@aristidesstaffieri aristidesstaffieri deleted the fix-standalone-data branch January 5, 2024 21:22
piyalbasu pushed a commit that referenced this pull request Jan 25, 2024
* first pass at adding a mercury call for getBalances

* adds a formatter to existing data schema in order to support backwards compat with rpc data getters

* on login, check if user has account sub

* movesd indexer url to shared helper, namespaces by netowrk name

* refactors accoutn balance flow to include fallback to rpc in get account balances actions

* cleans up actions and removes the refreshBalances flows

* combines store state for all asset types

* fix references to old token balance schema in asset detail

* cleans up asset detail and updates test mocks

* refactors internal api calls for fallback strategy server side

* switches to single indexer URL, cleans up debug logs

* makes logIn an async thunk, triggers account sub from logIn action

* dont show soroban tokens for swaps

* corrects check for soroban asset in asset detail

* remove token status from history loading state

* tweaks decimals check to account for falsy values

* renames api back to getAccountBalances

* makes setPubKey async and adds subscription to action, fixes has account check to key from key id

* adds loading state to account services for switching accounts

* updates backend calls to include network param, adds token balance subscription

* makes isFunded non nullable, fixes import order and renames var for publicKey

* adds env var for INDEXER_URL, updates actions to use it

* adds check for missing token balances, to add to remove list

* refactor tx submit actions to use the new indexer route

* removes stray log

* removes internal functions to submit transactions, replaced by call to backend

* moves all uses of rpc servers to new backend routes, temp disables tx tests

* removes temp unused import in tests

* removes test for code that moved to backend

* cleans up test, stray logs, adds mocks for token payment test

* comment out unused import, temporary

* fixes bug in subscribeAccount and uses correct selector for pub key in add token flow

* Mercury account history (#1037)

* adds token sub internal calls

* splits operation flows between mercury data and rpc data for sorting and displaying operations by asset

* cleans up new api path

* adds token history sub when adding a token

* adds network details to history queries, fixes typo in token detail response

* adds fee and memo from indexer operation schema

* adjust response consumption for API update

* removes unused instances of soroban client

* removes last uses of soroban rpc, adds token transfer simulation through backend

* tweaks history entry for token mints

* fixes incorrect query params, and updates custom networks identifier to match standalone from the sdk (#1077)

* adds explicit checks for response types from backend calls (#1078)

* updates tests and tweaks asset detail from master merge

* tweaks history helper to accomodate Mercury response change (#1085)

* splits dotenv so prod can use systemvars from CI (#1088)

* Feature/hardware wallet interface (#1087)

* make adding hardware wallets configurable

* Added translations

* add a readme and simplify the use of images

* fix typos

* rm console log
piyalbasu added a commit that referenced this pull request Jan 26, 2024
* Feature/hardware wallet interface (#1087)

* make adding hardware wallets configurable

* Added translations

* add a readme and simplify the use of images

* fix typos

* rm console log

* Account Balance Mercury V1 (#1035)

* first pass at adding a mercury call for getBalances

* adds a formatter to existing data schema in order to support backwards compat with rpc data getters

* on login, check if user has account sub

* movesd indexer url to shared helper, namespaces by netowrk name

* refactors accoutn balance flow to include fallback to rpc in get account balances actions

* cleans up actions and removes the refreshBalances flows

* combines store state for all asset types

* fix references to old token balance schema in asset detail

* cleans up asset detail and updates test mocks

* refactors internal api calls for fallback strategy server side

* switches to single indexer URL, cleans up debug logs

* makes logIn an async thunk, triggers account sub from logIn action

* dont show soroban tokens for swaps

* corrects check for soroban asset in asset detail

* remove token status from history loading state

* tweaks decimals check to account for falsy values

* renames api back to getAccountBalances

* makes setPubKey async and adds subscription to action, fixes has account check to key from key id

* adds loading state to account services for switching accounts

* updates backend calls to include network param, adds token balance subscription

* makes isFunded non nullable, fixes import order and renames var for publicKey

* adds env var for INDEXER_URL, updates actions to use it

* adds check for missing token balances, to add to remove list

* refactor tx submit actions to use the new indexer route

* removes stray log

* removes internal functions to submit transactions, replaced by call to backend

* moves all uses of rpc servers to new backend routes, temp disables tx tests

* removes temp unused import in tests

* removes test for code that moved to backend

* cleans up test, stray logs, adds mocks for token payment test

* comment out unused import, temporary

* fixes bug in subscribeAccount and uses correct selector for pub key in add token flow

* Mercury account history (#1037)

* adds token sub internal calls

* splits operation flows between mercury data and rpc data for sorting and displaying operations by asset

* cleans up new api path

* adds token history sub when adding a token

* adds network details to history queries, fixes typo in token detail response

* adds fee and memo from indexer operation schema

* adjust response consumption for API update

* removes unused instances of soroban client

* removes last uses of soroban rpc, adds token transfer simulation through backend

* tweaks history entry for token mints

* fixes incorrect query params, and updates custom networks identifier to match standalone from the sdk (#1077)

* adds explicit checks for response types from backend calls (#1078)

* updates tests and tweaks asset detail from master merge

* tweaks history helper to accomodate Mercury response change (#1085)

* splits dotenv so prod can use systemvars from CI (#1088)

* Feature/hardware wallet interface (#1087)

* make adding hardware wallets configurable

* Added translations

* add a readme and simplify the use of images

* fix typos

* rm console log

* only goToReview on button click (#1090)

---------

Co-authored-by: aristides <aristides.staffieri@stellar.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants