-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #252 from dappradar/feature/support-more-evm-chains
Support more EVM chains
- Loading branch information
Showing
7 changed files
with
90 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as dotenv from "dotenv"; | ||
|
||
dotenv.config(); | ||
|
||
import { AVAILABLE_PROTOCOLS } from "./constants"; | ||
import EVMC_HTTP from "./EVMC-HTTP"; | ||
|
||
class Base extends EVMC_HTTP { | ||
constructor(props: any) { | ||
super(props); | ||
|
||
this.protocol = AVAILABLE_PROTOCOLS.BASE; | ||
this.chainId = 94; | ||
this.node = process.env.BASE_NODE_HTTP; | ||
} | ||
} | ||
|
||
export default Base; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as dotenv from "dotenv"; | ||
|
||
dotenv.config(); | ||
|
||
import { AVAILABLE_PROTOCOLS } from "./constants"; | ||
import EVMC_HTTP from "./EVMC-HTTP"; | ||
|
||
class Cronos extends EVMC_HTTP { | ||
constructor(props: any) { | ||
super(props); | ||
|
||
this.protocol = AVAILABLE_PROTOCOLS.CRONOS; | ||
this.chainId = 37; | ||
this.node = process.env.CRONOS_NODE_HTTP; | ||
} | ||
} | ||
|
||
export default Cronos; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as dotenv from "dotenv"; | ||
|
||
dotenv.config(); | ||
|
||
import {AVAILABLE_PROTOCOLS} from "./constants"; | ||
import EVMC_HTTP from "./EVMC-HTTP"; | ||
|
||
class Elysium extends EVMC_HTTP { | ||
constructor(props: any) { | ||
super(props); | ||
|
||
this.protocol = AVAILABLE_PROTOCOLS.ELYSIUM; | ||
this.chainId = 58; | ||
this.node = process.env.ELYSIUM_NODE_HTTP; | ||
} | ||
} | ||
|
||
export default Elysium; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import * as dotenv from "dotenv"; | ||
|
||
dotenv.config(); | ||
|
||
import {AVAILABLE_PROTOCOLS} from "./constants"; | ||
import EVMC_HTTP from "./EVMC-HTTP"; | ||
|
||
class ZksyncEra extends EVMC_HTTP { | ||
constructor(props: any) { | ||
super(props); | ||
|
||
this.protocol = AVAILABLE_PROTOCOLS.ZKSYNC_ERA; | ||
this.chainId = 93; | ||
this.node = process.env.ZKSYNC_ERA_NODE_HTTP; | ||
} | ||
} | ||
|
||
export default ZksyncEra; |