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: One to many & timeout popup #313

Merged
merged 72 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
3fd4ca7
refactor: Import local packages from npm
wenty22 Dec 23, 2024
bc1fdc7
Merge branch 'feat/tokenApi1216' into wenty/aggregator
wenty22 Dec 23, 2024
326309a
refactor: Adjust config structure
wenty22 Dec 24, 2024
7c02d98
Merge branch 'main' into wenty/aggregator
wenty22 Jan 2, 2025
ea1d1c4
feat: Support multiple to tokens
wenty22 Jan 2, 2025
d36a484
feat: Support multiple to tokens
wenty22 Jan 3, 2025
9cd2d03
Merge branch 'main' into wenty/aggregator
wenty22 Jan 3, 2025
ed8e2e6
feat: Support multiple to tokens
wenty22 Jan 6, 2025
e895128
feat: Support multiple to tokens
wenty22 Jan 6, 2025
54699e4
feat: Filter no price tokens
wenty22 Jan 6, 2025
82eac74
feat: Move config to api server
wenty22 Jan 6, 2025
92b12a9
feat: Update syncBridgeInfo task cronTime
wenty22 Jan 6, 2025
d6755da
Merge branch 'main' into wenty/aggregator
wenty22 Jan 8, 2025
46d80be
feat: Change deBridgeReferralCode to an environment variable
wenty22 Jan 8, 2025
f36573e
feat: Add cache to filtered data
wenty22 Jan 8, 2025
b9b05ce
Merge branch 'main' into wenty/aggregator
wenty22 Jan 8, 2025
6c5e1ab
style: Format code styles
wenty22 Jan 8, 2025
db7bf0b
feat: Add app version
wenty22 Jan 8, 2025
322b18c
feat: Update confirmation popup amount styling
Halibao-Lala Jan 9, 2025
d5065a6
chore: Release version
Halibao-Lala Jan 9, 2025
0043ef1
fix: Fix merge conflicts
Halibao-Lala Jan 9, 2025
93b0b2f
feat: Update eth & weth mapping rule
wenty22 Jan 9, 2025
24282ef
fix: Fix one-to-many logic of special tokens do not take effect
wenty22 Jan 9, 2025
faddfa8
feat: Input upper limit checking
Halibao-Lala Jan 9, 2025
7cf5547
fix: Fix stargate mapping issue
wenty22 Jan 10, 2025
9e284a1
fix: Hide receive info before select a toToken
wenty22 Jan 10, 2025
5e97e6c
Merge branch 'wenty/aggregator' into feat/upperLimit0107
Halibao-Lala Jan 10, 2025
5df66de
feat: Check token price before sending transaction
Halibao-Lala Jan 10, 2025
fbe1562
Merge pull request #281 from bnb-chain/feat/upperLimit0107
wenty22 Jan 10, 2025
e4a1d6a
feat: Use the token icon provided by the providers
wenty22 Jan 10, 2025
4c55426
fix: Update toToken explorer link
wenty22 Jan 13, 2025
660e448
feat: Fee loading timeout model
Halibao-Lala Jan 14, 2025
273db6f
feat: Stargate max decimals error message
Halibao-Lala Jan 14, 2025
71dfd8b
fix: Fix type issue
Halibao-Lala Jan 14, 2025
b817255
chore: Update stargate decimal error msg
Halibao-Lala Jan 14, 2025
207a9d6
Merge pull request #288 from bnb-chain/feat/upperLimit0107
wenty22 Jan 15, 2025
3a3a67f
feat: Add toToken info to element
wenty22 Jan 15, 2025
b308a45
feat: Use `chainId` + `tokenAddress` to get token price
wenty22 Jan 21, 2025
d46a077
feat: Use real-time api to fetch token price
wenty22 Jan 21, 2025
6afdf2d
feat: Remove refetch logic for token upper limit
wenty22 Jan 21, 2025
8242e53
fix: Update token select button styles
wenty22 Jan 21, 2025
4faf703
feat: Use logger to output log
wenty22 Jan 22, 2025
37ad3bc
fix: Avoid getting llama price exception
wenty22 Jan 22, 2025
5e4932e
refactor: Move chain's utils to UtilService
wenty22 Jan 22, 2025
831e4e2
feat: Open fetchCoingeckoTokens task
wenty22 Jan 22, 2025
d7cc821
feat: Always resolve price api to avoid error
wenty22 Jan 22, 2025
213ee2c
fix: Fix the issue of to token cannot be selected after exchange chain
wenty22 Jan 22, 2025
de7cfe2
docs: Add release docs
wenty22 Jan 22, 2025
433337e
fix: Fix distorted price info in token list
wenty22 Jan 22, 2025
17b9852
feat: Update cmc slug for chain config
wenty22 Jan 22, 2025
9bed824
feat: Open fetchCoingeckoTokens task
wenty22 Jan 22, 2025
c43dd43
test: Add data.json
wenty22 Jan 23, 2025
7c3a46e
feat: Use token price on ethereum if can not get the token price on s…
wenty22 Jan 23, 2025
407aeff
fix: Filter the token whose price is 0
wenty22 Jan 24, 2025
99f7693
feat: Update chains
wenty22 Jan 24, 2025
f937c5a
feat: Remove unconfirm chains
wenty22 Jan 24, 2025
1543971
feat: Filter the tokens whose price is 0
wenty22 Jan 24, 2025
a9738d2
fix: Fix token price issue
wenty22 Jan 24, 2025
06bd8b1
fix: Fix token price fallback issue
wenty22 Jan 24, 2025
d70611c
fix: Fix issues
wenty22 Feb 7, 2025
74fb8b4
docs: Add change logs
wenty22 Feb 7, 2025
273b819
feat: Add log for token price
wenty22 Feb 7, 2025
d43ab2b
fix: Fix token price issue
wenty22 Feb 7, 2025
3ffa9d5
feat: Clear input if timeout
wenty22 Feb 7, 2025
8d94386
docs: Add change log
wenty22 Feb 7, 2025
39051ef
feat: Add timeout to meson api
wenty22 Feb 7, 2025
3d74756
fix: Fix could not jump to the app & toToken requiring two clicks on …
wenty22 Feb 8, 2025
912d2b4
feat: No need to judge walletConnect is installed
wenty22 Feb 8, 2025
5abc2a3
fix: Fix verification error on cBridge
wenty22 Feb 8, 2025
9ca93e6
fix: Modify polygon nativeCurrency
wenty22 Feb 8, 2025
ed0ea1f
fix: Use common js for jest config
wenty22 Feb 10, 2025
e27a9ba
fix: Use deBridge's own token symbol to prevent validation failures
wenty22 Feb 10, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/workflows/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
NEXT_PUBLIC_ASSET_PREFIX=$ASSET_PREFIX
NEXT_PUBLIC_SERVER_ENDPOINT=$SERVER_ENDPOINT
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_PROJECT_ID
NEXT_PUBLIC_DEBRIDGE_REFERRAL_CODE=$DEBRIDGE_REFERRAL_CODE
EOF
env:
APP_NAME: canonical-bridge
Expand Down
5 changes: 5 additions & 0 deletions .release/.changeset/big-candles-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bnb-chain/canonical-bridge-widget": patch
---

Clear input if timeout
5 changes: 5 additions & 0 deletions .release/.changeset/blue-goats-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bnb-chain/canonical-bridge-widget": patch
---

chore: Update confirmation popup amount styling
6 changes: 6 additions & 0 deletions .release/.changeset/brown-suits-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bnb-chain/canonical-bridge-widget": patch
"@bnb-chain/canonical-bridge-sdk": patch
---

Fix the issue of to token cannot be selected after exchange chain
6 changes: 6 additions & 0 deletions .release/.changeset/clean-items-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bnb-chain/canonical-bridge-widget": patch
"@bnb-chain/canonical-bridge-sdk": patch
---

Fix verification error on cBridge
6 changes: 6 additions & 0 deletions .release/.changeset/curvy-dingos-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bnb-chain/canonical-bridge-widget": patch
"@bnb-chain/canonical-bridge-sdk": patch
---

Use `chainId` + `tokenAddress` to get token price
6 changes: 6 additions & 0 deletions .release/.changeset/eight-spoons-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bnb-chain/canonical-bridge-widget": patch
"@bnb-chain/canonical-bridge-sdk": patch
---

Modify polygon nativeCurrency
5 changes: 5 additions & 0 deletions .release/.changeset/large-years-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bnb-chain/canonical-bridge-widget": patch
---

Fix issues
6 changes: 6 additions & 0 deletions .release/.changeset/modern-toys-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bnb-chain/canonical-bridge-widget": patch
"@bnb-chain/canonical-bridge-sdk": patch
---

use token price on ethereum if can not get the token price on specified chain
24 changes: 24 additions & 0 deletions .release/.changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"mode": "pre",
"tag": "alpha",
"initialVersions": {
"@bnb-chain/canonical-bridge-sdk": "0.4.7",
"@bnb-chain/canonical-bridge-widget": "0.5.18"
},
"changesets": [
"big-candles-breathe",
"blue-goats-shave",
"brown-suits-matter",
"clean-items-search",
"curvy-dingos-end",
"eight-spoons-divide",
"large-years-cover",
"modern-toys-give",
"rich-carpets-marry",
"shaggy-boats-rest",
"short-ants-love",
"smooth-vans-work",
"thick-donkeys-kneel",
"tidy-days-add"
]
}
6 changes: 6 additions & 0 deletions .release/.changeset/rich-carpets-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bnb-chain/canonical-bridge-widget": patch
"@bnb-chain/canonical-bridge-sdk": patch
---

Use deBridge's own token symbol to prevent validation failures
6 changes: 6 additions & 0 deletions .release/.changeset/shaggy-boats-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bnb-chain/canonical-bridge-widget": patch
"@bnb-chain/canonical-bridge-sdk": patch
---

Fix could not jump to the app & toToken requiring two clicks on mobile
6 changes: 6 additions & 0 deletions .release/.changeset/short-ants-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bnb-chain/canonical-bridge-widget": patch
"@bnb-chain/canonical-bridge-sdk": patch
---

Filter the tokens whose price is 0
5 changes: 5 additions & 0 deletions .release/.changeset/smooth-vans-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bnb-chain/canonical-bridge-widget": patch
---

Fix distorted price info in token list
6 changes: 6 additions & 0 deletions .release/.changeset/thick-donkeys-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bnb-chain/canonical-bridge-widget": patch
"@bnb-chain/canonical-bridge-sdk": patch
---

Remove unused code
6 changes: 6 additions & 0 deletions .release/.changeset/tidy-days-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@bnb-chain/canonical-bridge-widget": patch
"@bnb-chain/canonical-bridge-sdk": patch
---

Add timeout to meson api
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"Blocto",
"bnbchain",
"cbridge",
"Chakra",
"debridge",
"LAMPORTS",
"multichain",
Expand Down
5 changes: 3 additions & 2 deletions apps/canonical-bridge-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"prisma:migrate:div": "npx dotenv -e .env -- npx prisma migrate dev"
},
"dependencies": {
"@bnb-chain/canonical-bridge-sdk": "workspace:*",
"@nestjs/axios": "~3.0.3",
"@nestjs/bullmq": "~10.2.1",
"@nestjs/cache-manager": "~2.2.2",
Expand All @@ -33,7 +34,7 @@
"bullmq": "~5.12.14",
"cache-manager": "~5.7.6",
"cache-manager-ioredis-yet": "~2.1.1",
"express-prom-bundle": "~7.0.0",
"express-prom-bundle": "~8.0.0",
"ioredis": "~5.4.1",
"lodash": "~4.17.21",
"prisma": "~5.19.1",
Expand All @@ -42,7 +43,7 @@
"rxjs": "^7.8.1"
},
"devDependencies": {
"@bnb-chain/prettier-config": "workspace:*",
"@bnb-chain/prettier-config": "^1",
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@types/express": "^4.17.17",
Expand Down
3 changes: 1 addition & 2 deletions apps/canonical-bridge-server/src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { AllExceptionFilter } from './common/filters/all-exception.filter';
import { HttpExceptionFilter } from './common/filters/http-exception.filter';
import { TransformInterceptor } from './common/interceptors/transform.interceptor';
import { TimeoutInterceptor } from './common/interceptors/timeout.interceptor';
import { REDIS_HOST, REDIS_PORT, TIME } from './common/constants';
import { REDIS_HOST, REDIS_PORT } from './common/constants';
import { TokenModule } from './module/token/token.module';
import { BullModule } from '@nestjs/bullmq';
import { Web3Module } from '@/shared/web3/web3.module';
Expand All @@ -32,7 +32,6 @@ import { BridgeModule } from '@/module/bridge/bridge.module';
HealthModule,
ScheduleModule.forRoot(),
CacheModule.register<RedisOptions>({
ttl: TIME.DAY,
isGlobal: true,
store: () => redisStore({ host: REDIS_HOST, port: REDIS_PORT }),
}),
Expand Down
Loading