Skip to content

Commit

Permalink
Factory: Config: Add Tezos, Eth etc to Testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
imsk17 committed Feb 6, 2024
1 parent e3975e1 commit 14a23a2
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions src/factory/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
import { ProxyNetworkProvider } from "@multiversx/sdk-network-providers/out";
import { TezosToolkit } from "@taquito/taquito";
import { TonClient } from "@ton/ton";
import { JsonRpcProvider, ethers } from "ethers";
import { SecretNetworkClient } from "secretjs";
import { EvmParams } from "../handlers/evm";
import { MultiversXParams } from "../handlers/multiversx";
import { SecretParams } from "../handlers/secret";
import { TezosParams } from "../handlers/tezos";
import { TonParams } from "../handlers/ton";

export interface ChainParams {
bscParams: EvmParams;
ethParams: EvmParams;
polygonParams: EvmParams;
hederaParams: EvmParams;
tezosParams: TezosParams;
secretParams: SecretParams;
multiversxParams: MultiversXParams;
tonParams: TonParams;
}

export namespace ChainFactoryConfigs {
Expand All @@ -14,6 +29,53 @@ export namespace ChainFactoryConfigs {
bridge: ethers.getAddress("0x3EC2839EcEAfa2Ce9e419718364B070563Db516e"),
royaltySalePrice: 0,
},
ethParams: {
identifier: "ETH",
provider: new JsonRpcProvider("https://rpc.notadegen.com/eth/sepolia"),
bridge: ethers.getAddress("0xA0C15702892491597D369A04d7366Af234cF5F73"),
royaltySalePrice: 0,
},
polygonParams: {
identifier: "MATIC",
provider: new JsonRpcProvider(
"https://polygon-mumbai-bor.publicnode.com",
),
bridge: ethers.getAddress("0x1f89dce7eBFb78D6CA0A4d16F9B6a9F61B186ebc"),
royaltySalePrice: 0,
},
hederaParams: {
bridge: ethers.getAddress("0x742f68F53583Be22a62338e916eB8DE90D07daB1"),
identifier: "HEDERA",
provider: new JsonRpcProvider("https://testnet.hashio.io/api"),
royaltySalePrice: 0,
},
tezosParams: {
bridge: "KT1NHxTSXAFKH2y94PpfqDsg4bZ5SiF2V8a4",
Tezos: new TezosToolkit("https://ghostnet.ecadinfra.com"),
},
secretParams: {
bridge: "secret1uxthnjt74cny9wnwx8czmgrc8taz0r8yfas565",
bridgeCodeHash: "",
chainId: "pulsar-3",
provider: new SecretNetworkClient({
chainId: "pulsar-3",
url: "https://lcd.pulsar-3.secretsaturn.net",
}),
},
multiversxParams: {
bridge:
"erd1qqqqqqqqqqqqqpgqtsw8s3evjjyqqa2j2tfn9yvufqskdv236n9s2a06h9",
gatewayURL: "https://devnet-gateway.multiversx.com",
provider: new ProxyNetworkProvider(
"https://devnet-gateway.multiversx.com",
),
},
tonParams: {
bridgeAddress: "EQDI6P9gheuWLh1euThjFE2muUpa9tp2y49TD6Zz5oOF5gWL",
client: new TonClient({
endpoint: "https://testnet.toncenter.com/api/v2/jsonRPC",
}),
},
} satisfies Partial<ChainParams>;
}
}

0 comments on commit 14a23a2

Please sign in to comment.