diff --git a/package.json b/package.json index 26e1be05..6f5c2334 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/networks/addresses.ts b/src/networks/addresses.ts index e62038d2..37000f7c 100644 --- a/src/networks/addresses.ts +++ b/src/networks/addresses.ts @@ -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, diff --git a/src/networks/base/basesepolia.ts b/src/networks/base/basesepolia.ts new file mode 100644 index 00000000..c44caf5e --- /dev/null +++ b/src/networks/base/basesepolia.ts @@ -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, + }, +}; diff --git a/src/networks/base/index.ts b/src/networks/base/index.ts index f8dde374..405e0e39 100644 --- a/src/networks/base/index.ts +++ b/src/networks/base/index.ts @@ -1,2 +1,3 @@ export * from "./base"; export * from "./basegoerli"; +export * from "./basesepolia"; diff --git a/src/networks/polygon/amoy.ts b/src/networks/polygon/amoy.ts new file mode 100644 index 00000000..f456d502 --- /dev/null +++ b/src/networks/polygon/amoy.ts @@ -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, + }, +}; diff --git a/src/networks/polygon/index.ts b/src/networks/polygon/index.ts index 900051a9..9ec3bc63 100644 --- a/src/networks/polygon/index.ts +++ b/src/networks/polygon/index.ts @@ -1,2 +1,3 @@ +export * from "./amoy"; export * from "./mumbai"; export * from "./polygon"; diff --git a/yarn.lock b/yarn.lock index 4cccb313..02ea6d63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"