Skip to content

Commit

Permalink
rename Athens version
Browse files Browse the repository at this point in the history
  • Loading branch information
andresaiello committed Jul 10, 2023
1 parent 98617bb commit deceb69
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/addresses-tools/src/system-addresses.helpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NetworkName } from "@zetachain/addresses";
import { getAddress, getZRC20Address as getZRC20AddressFromProtocol } from "@zetachain/protocol-contracts/dist/lib";

export type AthensVersion = "A2" | "A3";
export type AthensVersion = "Athens2" | "Athens3";

export type ZRC20 = "gETH" | "tBNB" | "tBTC" | "tMATIC";

Expand All @@ -14,15 +14,15 @@ const ATHENS2_ZRC20Addresses: Record<ZRC20, string> = {
tMATIC: "0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891"
};

export const getSystemContractAddress = (version: AthensVersion = "A3") => {
if (version === "A2") {
export const getSystemContractAddress = (version: AthensVersion = "Athens3") => {
if (version === "Athens2") {
return ATHENS2_SYSTEM_CONTRACT;
}
return getAddress("systemContract", "zeta_testnet");
};

export const getZRC20Address = (version: AthensVersion = "A3") => {
if (version === "A2") {
export const getZRC20Address = (version: AthensVersion = "Athens3") => {
if (version === "Athens2") {
return ATHENS2_ZRC20Addresses;
}
const ZRC20Addresses: Record<ZRC20, string> = {
Expand Down

0 comments on commit deceb69

Please sign in to comment.