Skip to content

Commit

Permalink
feature (new testnets): added token mapping for amoy and base sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Apr 22, 2024
1 parent f9f1a9a commit 054a8d2
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@layerzerolabs/lz-v2-utilities": "^2.3.1",
"@masa-finance/masa-contracts-identity": "^1.15.0",
"@masa-finance/masa-contracts-marketplace": "^2.1.25",
"@masa-finance/masa-token": "^2.7.1",
"@masa-finance/masa-token": "^2.8.0",
"arweave": "1.11.8",
"axios": "^1.6.8",
"ethers": "~5.7.2",
Expand Down
17 changes: 14 additions & 3 deletions src/networks/addresses.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,48 @@
import type { Addresses, NetworkName } from "../interface";
import { base, basegoerli } from "./base";
import { base, basegoerli, basesepolia } from "./base";
import { bsc, bsctest } from "./bsc";
import { alfajores, celo } from "./celo";
import { ethereum, goerli, sepolia } from "./eth";
import { masa, masatest } from "./masa";
import { opbnb, opbnbtest } from "./opbnb";
import { mumbai, polygon } from "./polygon";
import { amoy, mumbai, polygon } from "./polygon";
import { scroll, scrollsepolia } from "./scroll";

export const addresses: Partial<{ [key in NetworkName]: Addresses }> = {
// masa
masa,
masatest,

// eth
ethereum,
// @deprecated use sepolia
// @deprecated: use sepolia
goerli,
sepolia,

// bsc
bsc,
bsctest,

// opbnb
opbnb,
opbnbtest,

// celo
celo,
alfajores,

// polygon
mumbai,
amoy,
// @deprecated: use amoy
polygon,

// base
base,
basesepolia,
// @deprecated: use basesepolia
basegoerli,

// scroll
scroll,
scrollsepolia,
Expand Down
9 changes: 9 additions & 0 deletions src/networks/base/basesepolia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { basesepolia as BaseSepoliaAddressesMasaToken } from "@masa-finance/masa-token/addresses.json";

import type { Addresses } from "../../interface";

export const basesepolia: Addresses = {
tokens: {
MASA: BaseSepoliaAddressesMasaToken.MasaTokenOFT,
},
};
1 change: 1 addition & 0 deletions src/networks/base/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./base";
export * from "./basegoerli";
export * from "./basesepolia";
9 changes: 9 additions & 0 deletions src/networks/polygon/amoy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { polygonamoy as PolygonamoyAddressesMasaToken } from "@masa-finance/masa-token/addresses.json";

import type { Addresses } from "../../interface";

export const amoy: Addresses = {
tokens: {
MASA: PolygonamoyAddressesMasaToken.MasaTokenOFT,
},
};
1 change: 1 addition & 0 deletions src/networks/polygon/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./amoy";
export * from "./mumbai";
export * from "./polygon";
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,10 @@
dependencies:
ethers "~5.7.2"

"@masa-finance/masa-token@^2.7.1":
version "2.7.1"
resolved "https://registry.yarnpkg.com/@masa-finance/masa-token/-/masa-token-2.7.1.tgz#0ed1835bfbb551add0637baf7ec457b1c1d971fd"
integrity sha512-2/ElTvpNqFM+JYxcLx6wRljmWM3Y3wGpq6/BkV7BwT3GEMJlSmLHT6fgTDOyy1h0aBgcnz7ZDnRvGbqgjygLng==
"@masa-finance/masa-token@^2.8.0":
version "2.8.0"
resolved "https://registry.yarnpkg.com/@masa-finance/masa-token/-/masa-token-2.8.0.tgz#68963cf4da62e4123b444213f9f56908410f6cdc"
integrity sha512-Lsu2CHkv5t6AV63z8j+hG5JMBmTipr5jQ8sSuYDiVvoZx58ic+14K3jwhT3qPkHqpdTwJdKJROLvVhr6Fc839g==

"@noble/curves@^1.4.0":
version "1.4.0"
Expand Down

0 comments on commit 054a8d2

Please sign in to comment.