diff --git a/.gitmodules b/.gitmodules index 982565e..4cb3b8d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,7 +1,7 @@ [submodule "skale-network"] path = skale-network url = https://github.com/skalenetwork/skale-network.git - branch = add-additional-metadata + branch = master [submodule "helper-scripts"] path = helper-scripts url = https://github.com/skalenetwork/helper-scripts.git diff --git a/bun.lockb b/bun.lockb index 1b49de2..7f592e7 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/config/testnet.ts b/config/testnet.ts new file mode 100644 index 0000000..c9f4886 --- /dev/null +++ b/config/testnet.ts @@ -0,0 +1,325 @@ +import { type interfaces } from '@skalenetwork/metaport' + +export const METAPORT_CONFIG: interfaces.MetaportConfig = { + skaleNetwork: 'testnet', + openOnLoad: true, + openButton: true, + debug: false, + chains: [ + 'mainnet', + // 'juicy-low-small-testnet', // Europa + // 'giant-half-dual-testnet', // Calypso + // 'lanky-ill-funny-testnet', // Nebula + ], + tokens: { + eth: { + symbol: 'ETH' + }, + skl: { + decimals: '18', + name: 'SKALE', + symbol: 'SKL' + }, + usdc: { + decimals: '6', + symbol: 'USDC', + name: 'USD Coin' + }, + usdt: { + decimals: '6', + symbol: 'USDT', + name: 'Tether USD' + }, + wbtc: { + decimals: '8', + symbol: 'WBTC', + name: 'WBTC' + }, + ruby: { + name: 'Ruby Token', + iconUrl: 'https://ruby.exchange/images/tokens/ruby-square.png', + symbol: 'RUBY' + }, + dai: { + name: 'DAI Stablecoin', + symbol: 'DAI' + }, + usdp: { + name: 'Pax Dollar', + symbol: 'USDP', + iconUrl: 'https://ruby.exchange/images/tokens/usdp-square.png' + }, + hmt: { + name: 'Human Token', + symbol: 'HMT', + iconUrl: 'https://s2.coinmarketcap.com/static/img/coins/64x64/10347.png' + }, + ubxs: { + name: 'UBXS Token', + symbol: 'UBXS', + decimals: '6', + iconUrl: 'https://s2.coinmarketcap.com/static/img/coins/64x64/17242.png' + } + }, + connections: { + mainnet: { + eth: { + eth: { + chains: { + 'juicy-low-small-testnet': {}, + 'giant-half-dual-testnet': { + hub: 'juicy-low-small-testnet' + } + } + } + }, + erc20: { + skl: { + address: '0x', + chains: { + 'juicy-low-small-testnet': {}, + 'giant-half-dual-testnet': { + hub: 'juicy-low-small-testnet' + }, + 'lanky-ill-funny-testnet': { + hub: 'juicy-low-small-testnet' + } + } + }, + ruby: { + address: '0x', + chains: { + 'juicy-low-small-testnet': {} + } + }, + dai: { + address: '0x', + chains: { + 'juicy-low-small-testnet': {} + } + }, + usdp: { + address: '0x', + chains: { + 'juicy-low-small-testnet': {} + } + }, + usdt: { + address: '0x', + chains: { + 'juicy-low-small-testnet': {} + } + }, + usdc: { + address: '0x', + chains: { + 'juicy-low-small-testnet': {}, + 'giant-half-dual-testnet': { + hub: 'juicy-low-small-testnet' + }, + 'lanky-ill-funny-testnet': { + hub: 'juicy-low-small-testnet' + } + } + }, + wbtc: { + address: '0x', + chains: { + 'juicy-low-small-testnet': {} + } + }, + hmt: { + address: '0x', + chains: {} + }, + ubxs: { + address: '0x', + chains: { + 'juicy-low-small-testnet': {} + } + } + }, + erc721meta: { + }, + erc1155: { + } + }, + 'giant-half-dual-testnet': { + // Calypso connections + eth: { + eth: { + address: '0x', + chains: { + 'juicy-low-small-testnet': { + clone: true + }, + mainnet: { + clone: true, + hub: 'juicy-low-small-testnet' + } + } + } + }, + erc20: { + skl: { + address: '0x', + chains: { + 'juicy-low-small-testnet': { + clone: true + }, + 'lanky-ill-funny-testnet': { + hub: 'juicy-low-small-testnet', + clone: true + }, + mainnet: { + hub: 'juicy-low-small-testnet', + clone: true + } + } + }, + usdc: { + address: '0x', + chains: { + 'juicy-low-small-testnet': { + clone: true + }, + mainnet: { + hub: 'juicy-low-small-testnet', + clone: true + } + } + } + } + }, + 'lanky-ill-funny-testnet': { // nebula connections + erc20: { + skl: { + address: '0x', + chains: { + 'juicy-low-small-testnet': { + clone: true + }, + mainnet: { + hub: 'juicy-low-small-testnet', + clone: true + }, + 'giant-half-dual-testnet': { + hub: 'juicy-low-small-testnet', + clone: true + } + } + }, + usdc: { + address: '0x', + chains: { + 'juicy-low-small-testnet': { + clone: true + }, + mainnet: { + hub: 'juicy-low-small-testnet', + clone: true + } + } + } + } + }, + 'juicy-low-small-testnet': { + // Europa connections + eth: { + eth: { + address: '0xD2Aaa00700000000000000000000000000000000', + chains: { + mainnet: { + clone: true + }, + 'giant-half-dual-testnet': { + wrapper: '0x' + } + } + } + }, + erc20: { + skl: { + address: '0x', + chains: { + mainnet: { + clone: true + }, + 'giant-half-dual-testnet': { + wrapper: '0x' + }, + 'lanky-ill-funny-testnet': { + wrapper: '0x' + } + } + }, + ruby: { + address: '0x', + chains: { + mainnet: { + clone: true + } + } + }, + dai: { + address: '0x', + chains: { + mainnet: { + clone: true + } + } + }, + usdp: { + address: '0x', + chains: { + mainnet: { + clone: true + } + } + }, + usdt: { + address: '0x', + chains: { + mainnet: { + clone: true + } + } + }, + usdc: { + address: '0x', + chains: { + mainnet: { + clone: true + }, + 'giant-half-dual-testnet': { + wrapper: '0x' + }, + 'lanky-ill-funny-testnet': { + wrapper: '0x' + } + } + }, + wbtc: { + address: '0x', + chains: { + mainnet: { + clone: true + } + } + }, + ubxs: { + address: '0x', + chains: { + mainnet: { + clone: true + } + } + } + } + } + }, + theme: { + mode: 'dark', + vibrant: true + } +} diff --git a/helper-scripts b/helper-scripts index c253fa6..2541831 160000 --- a/helper-scripts +++ b/helper-scripts @@ -1 +1 @@ -Subproject commit c253fa60f1862753e0546dd9ade72b41e425cf99 +Subproject commit 2541831d3a8bf6691d994f37f379ac36d760c0a4 diff --git a/package.json b/package.json index 09186ce..3b3dee0 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "@mdx-js/rollup": "^2.3.0", "@mui/icons-material": "^5.14.8", "@mui/material": "^5.14.5", - "@skalenetwork/metaport": "2.0.3-develop.3", + "@skalenetwork/metaport": "2.0.3-beta.2", "@types/react-copy-to-clipboard": "^5.0.4", "@vercel/analytics": "^1.0.2", "eslint-config-prettier": "^9.0.0", diff --git a/skale-network b/skale-network index 5f4b66f..c7d1848 160000 --- a/skale-network +++ b/skale-network @@ -1 +1 @@ -Subproject commit 5f4b66f97533a9cdf2c9222c62fabe21c5f30c44 +Subproject commit c7d184841f2bde3469c6b102156181bd003a52d8 diff --git a/src/data/paymaster.ts b/src/data/paymaster.ts index 9dd3dab..32e71f2 100644 --- a/src/data/paymaster.ts +++ b/src/data/paymaster.ts @@ -19,6 +19,11 @@ export default { chain: '', address: '0x', launchTs: '0' + }, + testnet: { + chain: '', + address: '0x', + launchTs: '0' } }, abi: [