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: Token transfer parameter validation #185

Merged
merged 58 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
54ed513
feat: Bridge and token address validation
Halibao-Lala Dec 2, 2024
b90ffa0
chore: Update error message
Halibao-Lala Dec 2, 2024
50a7cad
chore: Check meson native token
Halibao-Lala Dec 3, 2024
7b07cf5
fix: Check lower case address
Halibao-Lala Dec 3, 2024
501b559
test: Test fake token address
Halibao-Lala Dec 4, 2024
353f0d2
test: Remove token address validation
Halibao-Lala Dec 4, 2024
627257f
test: Test wrong from chain id
Halibao-Lala Dec 4, 2024
0daab5a
test: Test deBridge wrong bridge address
Halibao-Lala Dec 4, 2024
7dff6af
test: Test meson token
Halibao-Lala Dec 4, 2024
4caeac0
test: Test meson okse
Halibao-Lala Dec 4, 2024
40a187d
test: Test debridge wrong token address
Halibao-Lala Dec 5, 2024
5cdf7db
test: Send debridge tx data to cbridge address
Halibao-Lala Dec 5, 2024
84fe8e9
test: Revert debridge token address
Halibao-Lala Dec 5, 2024
198e93e
test: Revert debridge contract address
Halibao-Lala Dec 5, 2024
b594f39
chore: Enable debridge validation check
Halibao-Lala Dec 5, 2024
8e50a13
chore: Add jest
Halibao-Lala Dec 6, 2024
f8b4aa4
chore: Transfer validation WIP
Halibao-Lala Dec 6, 2024
5f4d9f4
chore: Update cbridge token validation error message
Halibao-Lala Dec 9, 2024
cf0aa23
chore: Migrate deBridge token info checking logic into SDK
Halibao-Lala Dec 9, 2024
3637702
chore: Migrate Stargate and LayerZero token validation logic into SDK
Halibao-Lala Dec 9, 2024
57b6b45
chore: Migrate Meson token validation to SDK
Halibao-Lala Dec 9, 2024
174cc68
chore: Init cbridge and debridge token list
Halibao-Lala Dec 9, 2024
6ed4a97
test: Wrong from token address
Halibao-Lala Dec 9, 2024
ec8c99f
fix: Fix config path
Halibao-Lala Dec 9, 2024
e2d1828
test: Revert from token info
Halibao-Lala Dec 9, 2024
a12a260
test: Test wrong from token
Halibao-Lala Dec 9, 2024
c310aba
chore: Check stargate token decimal and optimise validation logic
Halibao-Lala Dec 10, 2024
4a0f18c
test: Test cbridge and deBridge token list
Halibao-Lala Dec 10, 2024
2ac9332
chore: Check meson and stargate token decimals
Halibao-Lala Dec 10, 2024
e04e33d
chore: Check cbridge to token decimals
Halibao-Lala Dec 10, 2024
d227c1f
fix: Fix type issue
Halibao-Lala Dec 10, 2024
4627631
test: Update from token address
Halibao-Lala Dec 10, 2024
1aa3cc7
fix: Fix meson validation logic
Halibao-Lala Dec 10, 2024
3c6a30f
test: Test from tron address
Halibao-Lala Dec 10, 2024
7f693d6
chore: Log debridge error message
Halibao-Lala Dec 10, 2024
e13a9ca
test: Test from bridge contract address
Halibao-Lala Dec 10, 2024
04faaae
fix: Fix stargate token config
Halibao-Lala Dec 10, 2024
499be17
chore: Stargate token symobol validation
Halibao-Lala Dec 10, 2024
c4bd85c
chore: Add from tokne symbol into layerzero token validation
Halibao-Lala Dec 11, 2024
cdf58ed
chore: Setup API call timeout
Halibao-Lala Dec 11, 2024
c33934f
fix: Fix debridge to token chain type validation
Halibao-Lala Dec 11, 2024
5114acc
fix: Fix meson chain type issue
Halibao-Lala Dec 11, 2024
4a035d5
chore: Update timeout
Halibao-Lala Dec 11, 2024
c9faae5
fix: Fix route selection issue
Halibao-Lala Dec 11, 2024
9b05ed6
chore: Display layerzero invalid evm error msg
Halibao-Lala Dec 11, 2024
577afce
chore: Check stargate send amount
Halibao-Lala Dec 11, 2024
9ec591c
chore: Unit test init
Halibao-Lala Dec 11, 2024
5044d59
chore: Cbridge pool based test
Halibao-Lala Dec 11, 2024
131ac30
chore: Update check amount logic
Halibao-Lala Dec 11, 2024
9e316e7
fix: Fix test case
Halibao-Lala Dec 11, 2024
b5d243e
chore: Check layerzero decimals
Halibao-Lala Dec 12, 2024
b80cc67
chore: Update layerzero test cases
Halibao-Lala Dec 12, 2024
f49cfb5
fix: Fix debridge to token address
Halibao-Lala Dec 12, 2024
9ac1934
chore: CBridge transfer parameter test case
Halibao-Lala Dec 12, 2024
0498abf
test: Revert fetching cbridge and debridge token list
Halibao-Lala Dec 12, 2024
4717c85
test: Test deploy
Halibao-Lala Dec 12, 2024
3aa946f
test: Test deploy
Halibao-Lala Dec 12, 2024
00da095
fix: Fix type
Halibao-Lala Dec 12, 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
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
"address": "0x19e26B0638bf63aa9fa4d14c6baF8D52eBE86C5C",
"bridgeAddress": "0x77C71633C34C3784ede189d74223122422492a0f",
"decimals": 6,
"symbol": "USDC",
"symbol": "USDC.e",
"type": "hydra",
"endpointID": 30290,
"name": "USD Coin"
Expand Down Expand Up @@ -407,7 +407,7 @@
"address": "0x06efdbff2a14a7c8e15944d1f4a48f9f95f663a4",
"bridgeAddress": "0x3Fc69CC4A842838bCDC9499178740226062b14E4",
"decimals": 6,
"symbol": "USDC.e",
"symbol": "USDC",
"endpointID": 30214,
"name": "USD Coin"
},
Expand Down
1,290 changes: 1,274 additions & 16 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

Loading
Loading