@moveflow/widget
Version:
> ⚠️ **This is a testnet version** of the MoveFlow Checkout Widget. It is intended for development and testing purposes only. Do not use for mainnet payments.
88 lines (87 loc) • 3.11 kB
JavaScript
export var NetworkType;
(function (NetworkType) {
// Mainnet
// Ethereum = "Ethereum",
// Polygon = "Polygon",
// Testnet
NetworkType["Goerli"] = "Goerli";
NetworkType["Aptos"] = "Aptos";
NetworkType["Viction"] = "Viction";
NetworkType["LightLink"] = "LightLink";
NetworkType["Pharos"] = "Pharos";
})(NetworkType || (NetworkType = {}));
export const coinConfig = {
[NetworkType.Goerli]: [
{
imagePath: "https://move-flow.github.io/assets/usd-coin-usdc-logo.svg",
coinName: "USDC",
address: "0x07865c6e87b9f70255377e024ace6630c1eaa37f",
},
{
imagePath: "https://move-flow.github.io/assets/tether-usdt-logo.svg",
coinName: "USDT",
address: "0x56705db9f87c8a930ec87da0d458e00a657fccb0",
},
{
imagePath: "https://move-flow.github.io/assets/tether-usdt-logo.svg",
coinName: "MockCoin",
address: "0xEAB439707cA5F8e4e47c697629E77aE26842cbba",
},
],
[NetworkType.Aptos]: [
{
imagePath: "https://raw.githubusercontent.com/Move-Flow/assets/fe624a086e67aee6f86ec510661192e7c331c2a9/apt.svg",
coinName: "APT",
address: "0xa02f6adc7926efebbd59fd43a84f4e0c0c91e832",
},
],
[NetworkType.Viction]: [
{
imagePath: "https://arthuremma2.github.io/img-hosting/VIC.png",
coinName: "VIC",
address: "0xa02f6adc7926efebbd59fd43a84f4e0c0c91e832",
},
],
[NetworkType.LightLink]: [
{
imagePath: "https://move-flow.github.io/assets/usd-coin-usdc-logo.svg",
coinName: "USDC",
address: "0x35A7B4067b2A652E19202264Cd9977451ab3a7dC",
},
],
[NetworkType.Pharos]: [
{
imagePath: "https://move-flow.github.io/assets/usd-coin-usdc-logo.svg",
coinName: "USDC",
address: "0x35A7B4067b2A652E19202264Cd9977451ab3a7dC",
},
],
};
const testnetContractConfig = new Map([
[NetworkType.Goerli, process.env.ETHEREUM_CONTRACT],
// [NetworkType.Mumbai, process.env.MUMBAI_TESTNET_CONTRACT!],
]);
const mainnetContractConfig = new Map([
// [NetworkType.Goerli, process.env.ETHEREUM_CONTRACT!],
// [NetworkType.Mumbai, process.env.MUMBAI_TESTNET_CONTRACT!]
]);
export const contractConfig = {
Testnet: testnetContractConfig,
Mainnet: mainnetContractConfig,
};
export const networkIconConfig = new Map([
[
NetworkType.Goerli,
"https://raw.githubusercontent.com/Move-Flow/assets/34f95fcc68ae07c934c603826dac4d4170953908/eth.svg",
],
[NetworkType.Pharos, "https://move-flow.github.io/assets/pharos-1.svg"],
[
NetworkType.Aptos,
"https://raw.githubusercontent.com/Move-Flow/assets/fe624a086e67aee6f86ec510661192e7c331c2a9/apt.svg",
],
[NetworkType.Viction, "https://arthuremma2.github.io/img-hosting/VIC.png"],
[
NetworkType.LightLink,
"https://raw.githubusercontent.com/Move-Flow/assets/main/Yg2XgSeH_400x400.jpeg",
],
]);