Skip to content

Commit

Permalink
Merge pull request #1232 from XLabs/feat/portal-ntt-config
Browse files Browse the repository at this point in the history
Add Portal NTT and Connect 1.2.0
  • Loading branch information
giulianoconti authored Jan 16, 2025
2 parents 5216e4d + 405e50d commit d55bf95
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 1,058 deletions.
1,083 changes: 34 additions & 1,049 deletions apps/connect/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@mui/material": "^5.12.1",
"@tanstack/react-query": "^5.14.2",
"@wormhole-foundation/sdk": "^1.4.0",
"@wormhole-foundation/wormhole-connect": "^1.3.0-beta.0-development",
"@wormhole-foundation/wormhole-connect": "^1.2.0",
"bech32": "^2.0.0",
"dompurify": "^3.0.6",
"ethers": "^5.6.8",
Expand Down
28 changes: 23 additions & 5 deletions apps/connect/public/data/banners.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
[
{
"id": "string",
"background": "yellow",
"background": "linear-gradient(90deg, rgba(6,132,249,1) 30%, rgba(0,64,124,1) 71%, rgba(8,8,44,1) 100%)",
"content": {
"color": "black",
"text": "Solana is currently experiencing congestion. Transactions to Solana may experience delays."
"text": "Claim Your Rewards! The W staking rewards are now available for claiming."
},
"since": "2024-01-30T01:00:00-05:00",
"until": "2024-04-25T17:00:00-05:00"
"button": {
"href": "https://w.wormhole.com/",
"background": "black",
"label": "Access the W dashboard here"
},
"since": "2025-01-16T14:30:00-05:00",
"until": "2026-04-25T17:00:00-05:00"
},
{
"id": "string1",
"background": "linear-gradient(90deg, rgba(6,132,249,1) 30%, rgba(0,64,124,1) 71%, rgba(8,8,44,1) 100%)",
"content": {
"text": "Get Ready for the Next Phase of W Staking. Stay tuned for updates on the start of the next staking period."
},
"button": {
"href": "https://w.wormhole.com/",
"background": "black",
"label": "Check the W dashboard here "
},
"since": "2023-01-30T01:00:00-05:00",
"until": "2023-04-25T17:00:00-05:00"
}
]
49 changes: 49 additions & 0 deletions apps/connect/src/env/token-bridge.mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,31 @@ export const ENV: Env = {
quoter: "Nqd6XqA8LbsCuG8MLWWuP865NV6jR1MbXeKxD4HLKDJ",
},
],
Portal: [
{
chain: "Ethereum",
manager: "0xf4929F54a07193868A774DD0a89A8FA37313A7F0",
token: "0x1Bbe973BeF3a977Fc51CbED703E8ffDEfE001Fed",
transceiver: [
{
address: "0x23d774AB64Be226Aff32CC0c1A31a5af35cEA4D6",
type: "wormhole",
},
],
},
{
chain: "Solana",
manager: "nTTMrDU5CfFATK4ixizF8EK1GJaFwi35PjmNpK4Qp3e",
token: "BCC71Yn1f9Tn4p2QVKqhDWQaoHvQj6Qr8QK2m6desRHe",
transceiver: [
{
address: "8Gq5vYnqNK2BwPPJvEGjvBhkXugKLjKAkdBBN3QwjTcE",
type: "wormhole",
},
],
quoter: "Nqd6XqA8LbsCuG8MLWWuP865NV6jR1MbXeKxD4HLKDJ",
},
],
},
}),
],
Expand Down Expand Up @@ -1652,6 +1677,30 @@ export const ENV: Env = {
coinGeckoId: "harrypotterobamasonic10in",
decimals: 8,
},
PortalEthereum: {
key: "PortalEthereum",
symbol: "PORTAL",
nativeChain: "Ethereum",
tokenId: {
chain: "Ethereum",
address: "0x1Bbe973BeF3a977Fc51CbED703E8ffDEfE001Fed",
},
icon: "https://assets.coingecko.com/coins/images/35436/large/portal.jpeg",
coinGeckoId: "portal-2",
decimals: 18,
},
PortalSolana: {
key: "PortalSolana",
symbol: "PORTAL",
nativeChain: "Solana",
tokenId: {
chain: "Solana",
address: "BCC71Yn1f9Tn4p2QVKqhDWQaoHvQj6Qr8QK2m6desRHe",
},
icon: "https://assets.coingecko.com/coins/images/35436/large/portal.jpeg",
coinGeckoId: "portal-2",
decimals: 9,
},
},
}
),
Expand Down
1 change: 0 additions & 1 deletion apps/connect/src/env/usdc-bridge.mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const ENV: Env = {
"Polygon",
"Solana",
"Sui",
"Aptos",
],
}
),
Expand Down
1 change: 0 additions & 1 deletion apps/connect/src/env/usdc-bridge.testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const ENV: Env = {
"PolygonSepolia",
"Solana",
"Sui",
"Aptos",
],
}
),
Expand Down
1 change: 0 additions & 1 deletion apps/connect/src/env/usdc-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const ENV: Env = {
"USDCpolygon",
"USDCsol",
"USDCsui",
"USDCapt",
],
}
),
Expand Down

0 comments on commit d55bf95

Please sign in to comment.