Skip to content

Commit

Permalink
feat: updated chain information
Browse files Browse the repository at this point in the history
  • Loading branch information
impelcrypto committed Jan 13, 2025
1 parent c7aa1dd commit 0432e99
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 38 deletions.
12 changes: 4 additions & 8 deletions quasar.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,10 @@ module.exports = configure(function (ctx) {
// Full list of options: https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-build
build: {
vueRouterMode: 'history', // available values: 'hash', 'history'
env: {
SONEIUM_RPC_URL: process.env.SONEIUM_RPC_URL,
SONEIUM_EXPLORER_URL: process.env.SONEIUM_EXPLORER_URL,
SONEIUM_CHAIN_ID:process.env.SONEIUM_CHAIN_ID,
SONEIUM_CCIP_CHAIN_SELECTOR:process.env.SONEIUM_CCIP_CHAIN_SELECTOR,
SONEIUM_CCIP_ROUTER:process.env.SONEIUM_CCIP_ROUTER,
SONEIUM_ASTR_CONTRACT:process.env.SONEIUM_ASTR_CONTRACT,
},
// Memo: Create .env file in root directory to set environment variables
// env: {
// SONEIUM_CCIP_ROUTER:process.env.SONEIUM_CCIP_ROUTER,
// },
// transpile: false,

// Add dependencies for transpiling with Babel (Array of string/regex)
Expand Down
7 changes: 0 additions & 7 deletions src/config/env.ts

This file was deleted.

10 changes: 3 additions & 7 deletions src/config/web3/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { providerEndpoints, endpointKey } from 'src/config/chainEndpoints';
import { SONEIUM_CHAIN_ID, SONEIUM_EXPLORER_URL, SONEIUM_RPC_URL } from '../env';
export {
getChainData,
setupNetwork,
Expand Down Expand Up @@ -50,8 +49,7 @@ export enum EVM {
MOONRIVER = 1285,
MOONBEAM = 1284,
SONEIUM_MINATO_TESTNET = 1946,
// Todo: update
SONEIUM = SONEIUM_CHAIN_ID,
SONEIUM = 1868,
}

export const chainName = {
Expand Down Expand Up @@ -167,8 +165,7 @@ export const rpcUrls = {
[EVM.MOONRIVER]: ['https://rpc.api.moonriver.moonbeam.network'],
[EVM.MOONBEAM]: ['https://rpc.api.moonbeam.network'],
[EVM.SONEIUM_MINATO_TESTNET]: ['https://rpc.minato.soneium.org'],
// Todo: update
[EVM.SONEIUM]: [SONEIUM_RPC_URL],
[EVM.SONEIUM]: ['https://rpc.soneium.org/'],
};

export const blockExplorerUrls = {
Expand All @@ -185,8 +182,7 @@ export const blockExplorerUrls = {
[EVM.MOONRIVER]: ['https://moonriver.moonscan.io'],
[EVM.MOONBEAM]: ['https://moonbeam.moonscan.io'],
[EVM.SONEIUM_MINATO_TESTNET]: ['https://soneium-minato.blockscout.com'],
// Todo: update
[EVM.SONEIUM]: [SONEIUM_EXPLORER_URL],
[EVM.SONEIUM]: ['https://soneium.blockscout.com'],
};

export const CHAIN_INFORMATION = {
Expand Down
20 changes: 5 additions & 15 deletions src/modules/ccip-bridge/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import {
SONEIUM_ASTR_CONTRACT,
SONEIUM_CCIP_CHAIN_SELECTOR,
SONEIUM_CCIP_ROUTER,
SONEIUM_CHAIN_ID,
} from 'src/config/env';
import { astarNativeTokenErcAddr } from '../xcm';

export enum CcipNetworkName {
Expand All @@ -17,8 +11,7 @@ export enum CcipChainId {
'ShibuyaEvm' = 81,
'AstarEvm' = 592,
'SoneiumMinato' = 1946,
// Todo: update
'Soneium' = SONEIUM_CHAIN_ID,
'Soneium' = 1868,
}

export const ccipChainId = {
Expand All @@ -30,15 +23,13 @@ export const ccipChainId = {

export const ccipChainSelector = {
[CcipChainId.ShibuyaEvm]: '6955638871347136141',
// Todo: update
[CcipChainId.AstarEvm]: '6422105447186081193',
[CcipChainId.SoneiumMinato]: '686603546605904534',
// Todo: update
[CcipChainId.Soneium]: SONEIUM_CCIP_CHAIN_SELECTOR,
[CcipChainId.Soneium]: '12505351618335765396',
};

const routerSoneiumMinato = '0x443a1bce545d56E2c3f20ED32eA588395FFce0f4';
const routerSoneium = SONEIUM_CCIP_ROUTER;
const routerSoneium = '0x8C8B88d827Fe14Df2bc6392947d513C86afD6977';

const etherSenderReceiverShibuya = '0x89cB78A4A3cAD4cA86D3e3fF565f63B4620CB6ea';
const etherSenderReceiverAstar = '0x4036a6Ff8C1a29677108Aef299B560f6E4fA5e71';
Expand Down Expand Up @@ -81,7 +72,7 @@ export const CCIP_ASTR: CCIP_TOKEN = {
name: 'Astar Token',
tokenAddress: {
[CcipChainId.AstarEvm]: astarNativeTokenErcAddr,
[CcipChainId.Soneium]: SONEIUM_ASTR_CONTRACT,
[CcipChainId.Soneium]: '0x2CAE934a1e84F693fbb78CA5ED3B0A6893259441',
},
decimals: 18,
image: require('/src/assets/img/token/astr.png'),
Expand All @@ -91,6 +82,5 @@ export const ccipBridgeTime = {
[CcipNetworkName.ShibuyaEvm]: 3,
[CcipNetworkName.AstarEvm]: 3,
[CcipNetworkName.SoneiumMinato]: 30,
// Todo: update to 60
[CcipNetworkName.Soneium]: 90,
[CcipNetworkName.Soneium]: 120,
};
2 changes: 1 addition & 1 deletion src/modules/information/hot-topics/transfer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { Faq } from 'src/modules/information';
export const hotTopics: Faq[] = [
{
title: 'Find latest news here',
url: 'https://medium.com/astar-network',
url: 'https://astar.network/blog',
},
];

0 comments on commit 0432e99

Please sign in to comment.