Skip to content

Commit

Permalink
feat(soneium): integrate soneium
Browse files Browse the repository at this point in the history
Signed-off-by: james-a-morris <[email protected]>
  • Loading branch information
james-a-morris committed Jan 14, 2025
1 parent b42d17f commit ad9b08c
Show file tree
Hide file tree
Showing 14 changed files with 560 additions and 48 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"private": true,
"license": "AGPL-3.0-only",
"dependencies": {
"@across-protocol/constants": "^3.1.24",
"@across-protocol/contracts": "^3.0.19",
"@across-protocol/constants": "^3.1.28",
"@across-protocol/contracts": "^3.0.23",
"@across-protocol/contracts-v3.0.6": "npm:@across-protocol/[email protected]",
"@across-protocol/sdk": "^3.4.10",
"@across-protocol/sdk": "^3.4.11",
"@amplitude/analytics-browser": "^2.3.5",
"@balancer-labs/sdk": "1.1.6-beta.16",
"@emotion/react": "^11.13.0",
Expand Down
1 change: 1 addition & 0 deletions scripts/chain-configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export { default as POLYGON_AMOY } from "./polygon-amoy";
export { default as REDSTONE } from "./redstone";
export { default as SCROLL } from "./scroll";
export { default as SEPOLIA } from "./sepolia";
export { default as SONEIUM } from "./soneium";
export { default as WORLD_CHAIN } from "./world-chain";
export { default as ZK_SYNC } from "./zk-sync";
export { default as ZORA } from "./zora";
45 changes: 45 additions & 0 deletions scripts/chain-configs/soneium/assets/grayscale-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions scripts/chain-configs/soneium/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions scripts/chain-configs/soneium/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { CHAIN_IDs, PUBLIC_NETWORKS } from "@across-protocol/constants";
import { utils as sdkUtils } from "@across-protocol/sdk";
import { ChainConfig } from "../types";

const { getDeployedAddress, getDeployedBlockNumber } = sdkUtils;

const chainId = CHAIN_IDs.CHER;
const chainInfoBase = PUBLIC_NETWORKS[chainId];

export default {
...chainInfoBase,
logoPath: "./assets/logo.svg",
grayscaleLogoPath: "./assets/grayscale-logo.svg",
spokePool: {
address: getDeployedAddress("SpokePool", chainId),
blockNumber: getDeployedBlockNumber("SpokePool", chainId),
},
chainId,
publicRpcUrl: "https://rpc.soneium.org",
blockTimeSeconds: 15,
tokens: [],
enableCCTP: false,
} as ChainConfig;
1 change: 1 addition & 0 deletions scripts/generate-routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const enabledMainnetChainConfigs = [
chainConfigs.WORLD_CHAIN,
chainConfigs.ALEPH_ZERO,
chainConfigs.INK,
chainConfigs.SONEIUM,
];

const enabledSepoliaChainConfigs = [
Expand Down
45 changes: 45 additions & 0 deletions src/assets/chain-logos/soneium-grayscale.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions src/assets/chain-logos/soneium.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ad9b08c

Please sign in to comment.