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/add testnet chains #327

Merged
merged 3 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.16.1] - 2024-MAY-31

- Add Linea and Polygon Sepolia chains to testnet

## [0.16.0] - 2024-MAY-1

- Upgraded axelar-cgp-solidity to `6.3.0` to enable support for Node.js version >= 20
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@axelar-network/axelarjs-sdk",
"version": "0.16.0",
"version": "0.16.1",
"description": "The JavaScript SDK for Axelar Network",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions src/chains/supported-chains-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const CHAINS = {
OSMOSIS: "osmosis-7",
PERSISTENCE: "persistence",
POLYGON: "Polygon",
POLYGON_SEPOLIA: "polygon-sepolia",
POLYGONZKEVM: "polygon-zkevm",
PROVENANCE: "provenance",
SEPOLIA: "ethereum-sepolia",
Expand All @@ -46,6 +47,7 @@ export const CHAINS = {
OPTIMISM_SEPOLIA: "optimism-sepolia",
MANTLE_SEPOLIA: "mantle-sepolia",
BASE_SEPOLIA: "base-sepolia",
LINEA_SEPOLIA: "linea-sepolia",
},
MAINNET: {
ACRE: "acre",
Expand Down
2 changes: 2 additions & 0 deletions src/constants/EvmChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ export enum EvmChain {
MANTLE_SEPOLIA = "mantle-sepolia",
BASE_SEPOLIA = "base-sepolia",
BLAST = "blast",
POLYGON_SEPOLIA = "polygon-sepolia",
LINEA_SEPOLIA = "linea-sepolia",
}
1 change: 1 addition & 0 deletions src/constants/GasToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export enum GasToken {
MANTLE_SEPOLIA = "ETH",
BASE_SEPOLIA = "ETH",
BLAST = "ETH",
LINEA_SEPOLIA = "ETH",
}

export const nativeGasTokenSymbol: Record<string, Record<EvmChain | string, GasToken>> = {
Expand Down
2 changes: 2 additions & 0 deletions src/libs/AxelarGateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export const AXELAR_GATEWAY: Record<Environment, Partial<Record<EvmChain, string
[EvmChain.MANTLE_SEPOLIA]: "0xC8D18F85cB0Cee5C95eC29c69DeaF6cea972349c",
[EvmChain.BASE_SEPOLIA]: "0xe432150cce91c13a887f7D836923d5597adD8E31",
[EvmChain.OPTIMISM_SEPOLIA]: "0xe432150cce91c13a887f7D836923d5597adD8E31",
[EvmChain.POLYGON_SEPOLIA]: "0xe432150cce91c13a887f7D836923d5597adD8E31",
[EvmChain.LINEA_SEPOLIA]: "0xe432150cce91c13a887f7D836923d5597adD8E31",
},
[Environment.DEVNET]: {
[EvmChain.ETHEREUM]: "0x7358799e0c8250f0B7D1164824F6Dd5bA31C9Cd6",
Expand Down
10 changes: 10 additions & 0 deletions src/libs/TransactionRecoveryApi/constants/chain/testnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export const rpcMap: Record<EvmChain | string, string> = {
[EvmChain.BASE_SEPOLIA]: "https://sepolia.base.org",
[EvmChain.OPTIMISM_SEPOLIA]: "https://sepolia.optimism.io",
[EvmChain.MANTLE_SEPOLIA]: "https://rpc.sepolia.mantle.xyz",
[EvmChain.POLYGON_SEPOLIA]: "https://rpc-amoy.polygon.technology",
[EvmChain.LINEA_SEPOLIA]: "https://rpc.sepolia.linea.build",
};

export const networkInfo: Record<EvmChain | string, Network> = {
Expand Down Expand Up @@ -115,4 +117,12 @@ export const networkInfo: Record<EvmChain | string, Network> = {
chainId: 11155420,
name: EvmChain.OPTIMISM_SEPOLIA,
},
[EvmChain.POLYGON_SEPOLIA]: {
chainId: 80002,
name: EvmChain.POLYGON_SEPOLIA,
},
[EvmChain.LINEA_SEPOLIA]: {
chainId: 59141,
name: EvmChain.LINEA_SEPOLIA,
},
};
Loading