Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
14a6011
initial migration
dlbnco Mar 28, 2025
aedb73f
add more bch definitions
dlbnco Mar 28, 2025
207a8c3
chore: create __generated__ folder if it doesn't exists
dlbnco Mar 28, 2025
56a90ed
chore: remove unused chains
dlbnco Mar 28, 2025
8b1aca3
chore: use single rpc
dlbnco Mar 28, 2025
2937ca6
chore: remove unused chains
dlbnco Mar 28, 2025
29c23b1
chore: clean up tests
dlbnco Mar 29, 2025
d41ca86
chore: whitelist new RPC urls; add wc projectId
dlbnco Mar 29, 2025
e174cfd
chore: tweak types
dlbnco Mar 29, 2025
005e317
feat: add SBCH to token list
dlbnco Mar 31, 2025
84f8baf
chore: remove unused chains
dlbnco Mar 31, 2025
eeaab78
chore: remove console statements
dlbnco Mar 31, 2025
a4714af
fix(tokens): fix sbch token logo map key
dlbnco Mar 31, 2025
8adf6af
feat(theme): tweak colors
dlbnco Apr 3, 2025
ceea47b
feat: remove uniswap brand elements; and others
dlbnco Apr 3, 2025
d0d8205
feat: replace logo
dlbnco Apr 3, 2025
3aa76cd
feat: remove unwanted menus; rename logo
dlbnco Apr 4, 2025
2923be6
feat: replace home route to /swap
dlbnco Apr 4, 2025
e575630
feat(TokenSelector): remove network switcher
dlbnco Apr 4, 2025
4fc8c4f
feat(Swap): tweak options
dlbnco Apr 4, 2025
ed05acf
feat(TokenLogo): hide chain logo
dlbnco Apr 4, 2025
6ac7878
feat(tokens): hoist TANGO
dlbnco Apr 4, 2025
73a596f
feat(NavBar): add trade v2
dlbnco Apr 4, 2025
fa48e9b
chore: disable pre-commit hook
dlbnco Apr 4, 2025
810c91c
chore: remove husky scripts
dlbnco Apr 4, 2025
0a29008
feat(pools): remove unwanted elements; send v2 to tangoswap
dlbnco Apr 4, 2025
1769142
feat(tokens): reorder bc tokens
dlbnco Apr 4, 2025
a235f73
feat(swap): remove Trade Options
dlbnco Apr 4, 2025
034b56c
feat: tweak dark colors
dlbnco Apr 4, 2025
670a8f6
fix(Pool/SelectToken): restore button
dlbnco Apr 8, 2025
60d251e
chore: restore original colors
dlbnco Apr 8, 2025
b7248fc
fix: hardcode tango colors
dlbnco Apr 8, 2025
fbba0cb
chore(sdk): clone @uniswap/sdk-code to the workspace; add smartBCH ad…
dlbnco May 1, 2025
cdf878c
chore(sdk): update config
dlbnco May 1, 2025
a70e708
fix(CompanyBar): rename TANGOswap -> TangoSwap
dlbnco May 1, 2025
851ac2b
feat: update socials
dlbnco May 1, 2025
0dbe441
chore(sdk): hardcode values that fails to import
dlbnco May 1, 2025
6067e9c
REVERT ME: hardcode pool params for debugging
dlbnco May 1, 2025
83d34e5
fix: prevent bch logo from being replace with ETH
dlbnco May 1, 2025
76820d8
feat: replicate trading api to enable pool and positions creation
dlbnco Jun 9, 2025
1c73f21
chore(chainInfo): add second node rpc url
dlbnco Jun 11, 2025
9461ffd
feat(tradingApiReplica): improve methods; remove hardcoded gas limits…
dlbnco Jun 11, 2025
6c56676
chore(ContextProviders): comment out gas estimation (depends on apis)
dlbnco Jun 11, 2025
c4c079e
fix(chainInfo): fix decimals
dlbnco Jun 11, 2025
e44b3a1
feat(tradingApiReplica): reset state when params change
dlbnco Jun 11, 2025
c07c34b
feat(SelectTokenStep): add all tokens
dlbnco Jun 11, 2025
ae15e3a
feat(tradingApi): forward enabled param as skip
dlbnco Jun 11, 2025
df073b3
feat: set WBCH as default pool token
dlbnco Jun 11, 2025
465c920
chore: add v3-subgraph as package
dlbnco Jun 23, 2025
569f0ee
rename subgraph package temporarily
dlbnco Jun 23, 2025
2ccc246
rename back subgraph package
dlbnco Jun 23, 2025
b9afeb4
chore: update gitignore
dlbnco Jun 23, 2025
f80eb40
chore: remove yarn from workspace package
dlbnco Jun 23, 2025
bf43068
chore(v3-subraph): set up graphql codegen
dlbnco Jun 23, 2025
21fc378
chore(yarn): reference v3-subgraph module
dlbnco Jun 24, 2025
1ce60b2
chore(csp): whitelist quartzo.studio
dlbnco Jun 24, 2025
cf7eed0
chore(web/tsconfig): reference v3-subgraph
dlbnco Jun 24, 2025
2983a77
chore(v3-subraph): rename package
dlbnco Jun 24, 2025
35b2464
chore(Pool): write positions queries
dlbnco Jun 24, 2025
3fa410f
chore: generate graphql
dlbnco Jun 24, 2025
61a4ebc
chore(apollo): set up subgraph client
dlbnco Jun 24, 2025
0b863ed
chore(web/subgraph): add position convertion function
dlbnco Jun 24, 2025
66f4c32
chore(web): add subgraph apollo provider
dlbnco Jun 24, 2025
63a2209
feat(web/Pool): apply subgraph queries + transformations
dlbnco Jun 24, 2025
56b2549
chore(env): add subgraph endpoint
dlbnco Jun 27, 2025
11efe36
feat(v3-subgraph): support tokenId
dlbnco Jun 28, 2025
5900d73
fix: correct typoe on subgraph template
dlbnco Jun 28, 2025
053ef6f
chore: update schema
dlbnco Jun 28, 2025
a50a6de
Revert "chore: update schema"
dlbnco Jun 28, 2025
614256f
Revert "fix: correct typoe on subgraph template"
dlbnco Jun 28, 2025
d014471
Revert "feat(v3-subgraph): support tokenId"
dlbnco Jun 28, 2025
71ceae5
feat(v3-subgraph): support tokenId
dlbnco Jun 28, 2025
a104406
fix(position): apply tokenId to positionSnapshot
dlbnco Jun 28, 2025
0b32a9a
feat: implement increaseLiquidity
dlbnco Jun 28, 2025
40207da
chore: upgrade lockfile
dlbnco Jun 28, 2025
4346c55
chore(useTradingApiReplica): use position manager abi from already de…
dlbnco Jun 30, 2025
344dfbe
feat: implement decreaseLiquidity and draft claimLpFees
dlbnco Jul 1, 2025
2d0477d
feat(tradingApiReplica): decouple modules
dlbnco Jul 1, 2025
18153d5
chore(packages/uniswap): restore api url
dlbnco Jul 1, 2025
b8cedc6
chore(packages/uniswap): restore graphql schema
dlbnco Jul 1, 2025
bab3887
chore(packages/uniswap): restore graphql schema
dlbnco Jul 1, 2025
aaede13
feat(tradingApiReplica): create quote handler
dlbnco Jul 2, 2025
73bd7ad
feat(tradingApiReplica): update quote handler; handle missing values
dlbnco Jul 2, 2025
af5a6dc
chore(pool/create): revert hardcoded values
dlbnco Jul 2, 2025
0c025d5
fix(quote): add swapper params
dlbnco Jul 2, 2025
a7a491d
feat(swap/saga): convert unsupported key/values
dlbnco Jul 8, 2025
a5f31b4
fix(sdk): correct address key
dlbnco Jul 8, 2025
a1f066a
feat(tradingApiReplica): create swap and checkApproval methods
dlbnco Jul 8, 2025
003618f
feat: tweak methods to support custom swaps/approval checks
dlbnco Jul 8, 2025
9cb38e9
chore: comment out csp policies
dlbnco Jul 11, 2025
1bfe4a9
feat: swap improvements
dlbnco Jul 11, 2025
057c667
feat(Pool): do not show migrate button
dlbnco Jul 11, 2025
58ea679
feat: pool/position improvements
dlbnco Jul 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 35 additions & 0 deletions .env.defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
ALCHEMY_API_KEY='key'
AMPLITUDE_EXPERIMENTS_DEPLOYMENT_KEY='key'
AMPLITUDE_PROXY_URL_OVERRIDE=''
API_BASE_URL_OVERRIDE=''
API_BASE_URL_V2_OVERRIDE=''
APPSFLYER_API_KEY='key'
APPSFLYER_APP_ID=123
DATADOG_CLIENT_TOKEN='key'
DATADOG_PROJECT_ID=123
FIREBASE_APP_CHECK_DEBUG_TOKEN='token'
FOR_API_URL_OVERRIDE=''
GRAPHQL_URL_OVERRIDE=''
INFURA_KEY='key'
ONESIGNAL_APP_ID=123
OPENAI_API_KEY='key'
QUICKNODE_ENDPOINT_NAME='name'
QUICKNODE_ENDPOINT_TOKEN='token'
REACT_APP_WALLET_CONNECT_PROJECT_ID=f6b70677d6a36a04b32a25dd638c5396
SCANTASTIC_API_URL_OVERRIDE=''
SENTRY_DSN='http://sentry.com'
SHAKE_CLIENT_ID=123
SHAKE_CLIENT_SECRET=123
SIMPLEHASH_API_KEY='key'
SIMPLEHASH_API_URL='https://api.simplehash.com'
STATSIG_API_KEY='client-000000000000000000000000000000000000000000'
STATSIG_PROXY_URL='https://api.statsig.com'
STATSIG_PROXY_URL_OVERRIDE=''
TRADING_API_KEY='key'
TRADING_API_URL_OVERRIDE=''
UNISWAP_API_KEY='key'
UNITAGS_API_URL_OVERRIDE=''
WALLETCONNECT_PROJECT_ID=123
WALLETCONNECT_PROJECT_ID_BETA=123
WALLETCONNECT_PROJECT_ID_DEV=123
INCLUDE_PROTOTYPE_FEATURES=true
19 changes: 0 additions & 19 deletions .husky/pre-commit

This file was deleted.

6 changes: 1 addition & 5 deletions apps/mobile/src/app/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -689,11 +689,7 @@ export const migrations = {

newState.chains.byChainId = {
'1': { isActive: true },
'10': { isActive: true },
'56': { isActive: true },
'137': { isActive: true },
'8453': { isActive: true },
'42161': { isActive: true },
'10000': { isActive: true },
}

return newState
Expand Down
4 changes: 1 addition & 3 deletions apps/mobile/src/app/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export const initialSchema = {
chains: {
byChainId: {
'1': { isActive: true },
'10': { isActive: true },
'137': { isActive: true },
'42161': { isActive: true },
'10000': { isActive: true },
},
},
favorites: {
Expand Down
141 changes: 0 additions & 141 deletions apps/mobile/src/features/deepLinking/handleSwapLinkSaga.test.ts

This file was deleted.

1 change: 1 addition & 0 deletions apps/web/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
ESLINT_NO_DEV_ERRORS=true
REACT_APP_AMPLITUDE_PROXY_URL="https://interface.gateway.uniswap.org/v1/amplitude-proxy"
REACT_APP_AWS_API_ENDPOINT="https://beta.gateway.uniswap.org/v1/graphql"
REACT_APP_SUBGRAPH_ENDPOINT="http://localhost:3000/subgraphs/name/smartbch"
REACT_APP_INFURA_KEY="4bf032f2d38a4ed6bb975b80d6340847"
REACT_APP_QUICKNODE_ENDPOINT_NAME=""
REACT_APP_QUICKNODE_ENDPOINT_TOKEN=""
Expand Down
96 changes: 0 additions & 96 deletions apps/web/cypress/fixtures/fiatOnRamp/supported-tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,102 +7,6 @@
"cryptoCurrencyChain": "Ethereum",
"chainId": "1",
"symbol": "https://images-currency.meld.io/crypto/ETH/symbol.png"
},
{
"cryptoCurrencyCode": "USDC",
"displayName": "USD Coin",
"address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"cryptoCurrencyChain": "Ethereum",
"chainId": "1",
"symbol": "https://images-currency.meld.io/crypto/USDC/symbol.png"
},
{
"cryptoCurrencyCode": "USDT",
"displayName": "Tether",
"address": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"cryptoCurrencyChain": "Ethereum",
"chainId": "1",
"symbol": "https://images-currency.meld.io/crypto/USDT/symbol.png"
},
{
"cryptoCurrencyCode": "DAI",
"displayName": "Dai",
"address": "0x6b175474e89094c44da98b954eedeac495271d0f",
"cryptoCurrencyChain": "Ethereum",
"chainId": "1",
"symbol": "https://images-currency.meld.io/crypto/DAI/symbol.png"
},
{
"cryptoCurrencyCode": "WBTC",
"displayName": "Wrapped Bitcoin",
"address": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",
"cryptoCurrencyChain": "Ethereum",
"chainId": "1",
"symbol": "https://images-currency.meld.io/crypto/WBTC/symbol.png"
},
{
"cryptoCurrencyCode": "WETH",
"displayName": "Wrapped Ether (ERC-20)",
"address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"cryptoCurrencyChain": "ethereum",
"chainId": "1",
"symbol": ""
},
{
"cryptoCurrencyCode": "ETH_BASE",
"displayName": "Ethereum",
"address": null,
"cryptoCurrencyChain": "Base",
"chainId": "8453",
"symbol": "https://images-currency.meld.io/crypto/ETH_BASE/symbol.png"
},
{
"cryptoCurrencyCode": "USDC_BASE",
"displayName": "USD Coin",
"address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"cryptoCurrencyChain": "Base",
"chainId": "8453",
"symbol": "https://images-currency.meld.io/crypto/USDC_BASE/symbol.png"
},
{
"cryptoCurrencyCode": "ETH_OPTIMISM",
"displayName": "Ethereum",
"address": null,
"cryptoCurrencyChain": "Optimism",
"chainId": "10",
"symbol": "https://images-currency.meld.io/crypto/ETH_OPTIMISM/symbol.png"
},
{
"cryptoCurrencyCode": "USDC_OPTIMISM",
"displayName": "USD Coin",
"address": "0x7f5c764cbc14f9669b88837ca1490cca17c31607",
"cryptoCurrencyChain": "Optimism",
"chainId": "10",
"symbol": "https://images-currency.meld.io/crypto/USDC_OPTIMISM/symbol.png"
},
{
"cryptoCurrencyCode": "ETH_ARBITRUM",
"displayName": "Ethereum",
"address": null,
"cryptoCurrencyChain": "Arbitrum",
"chainId": "42161",
"symbol": "https://images-currency.meld.io/crypto/ETH_ARBITRUM/symbol.png"
},
{
"cryptoCurrencyCode": "USDC_ARBITRUM",
"displayName": "USD Coin",
"address": "0xaf88d065e77c8cc2239327c5edb3a432268e5831",
"cryptoCurrencyChain": "Arbitrum",
"chainId": "42161",
"symbol": "https://images-currency.meld.io/crypto/USDC_ARBITRUM/symbol.png"
},
{
"cryptoCurrencyCode": "MATIC",
"displayName": "Matic",
"address": null,
"cryptoCurrencyChain": "Polygon",
"chainId": "137",
"symbol": "https://images-currency.meld.io/crypto/MATIC/symbol.png"
}
]
}
6 changes: 1 addition & 5 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@
"storybook:test": "test-storybook --excludeTags=\"no-tests\" --testTimeout 60000",
"storybook:test:standalone": "concurrently -k -s first -n \"SB BUILD,SB TEST\" -c \"magenta,blue\" \"yarn storybook:build && http-server storybook-static --port 6006 --silent\" \"wait-on --timeout 600000 tcp:127.0.0.1:6006 && yarn storybook:test --maxWorkers=2\""
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"yarn.lock": [
"yarn deduplicate"
Expand Down Expand Up @@ -302,6 +297,7 @@
"use-resize-observer": "9.1.0",
"utilities": "workspace:^",
"uuid": "9.0.0",
"v3-subgraph": "workspace:^",
"video-extensions": "1.2.0",
"viem": "2.x",
"wagmi": "2.9.3",
Expand Down
5 changes: 5 additions & 0 deletions apps/web/public/csp.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
"'self'",
"blob:",
"data:",
"localhost",
"https://*.quartzo.studio",
"https://*.greyh.at",
"https://*.fountainhead.cash",
"https://*.alchemy.com",
"https://*.arbitrum.io",
"https://*.base.org/",
Expand All @@ -41,6 +45,7 @@
"https://*.quiknode.pro",
"https://*.twnodes.com",
"https://*.uniswap.org",
"https://*.walletconnect.org",
"https://*.walletconnect.com",
"https://*.zerion.io",
"https://alfajores-forno.celo-testnet.org",
Expand Down
1 change: 1 addition & 0 deletions apps/web/public/dev-csp.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"connectSrc": [
"http://127.0.0.1:3000",
"http://127.0.0.1:8545",
"http://127.0.0.1:8546"
]
Expand Down
Loading