diff --git a/bun.lockb b/bun.lockb index dbfca94..48cadf7 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 4011b81..d40d2d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@skalenetwork/metaport", - "version": "3.0.0", + "version": "3.0.1", "description": "SKALE Metaport Widget", "keywords": [ "skale", @@ -80,13 +80,13 @@ "@mui/icons-material": "^5.15.6", "@mui/lab": "^5.0.0-alpha.162", "@mui/material": "^5.15.6", - "@rainbow-me/rainbowkit": "^2.1.4", + "@rainbow-me/rainbowkit": "^2.1.5", "@skalenetwork/ima-js": "2.0.2-develop.0", - "@tanstack/react-query": "^5.51.23", + "@tanstack/react-query": "^5.54.1", "coingecko-api-v3": "^0.0.29", "react-jazzicon": "^1.0.4", - "viem": "2.x", - "wagmi": "^2.12.5", + "viem": "2.21.1", + "wagmi": "^2.12.8", "zustand": "^4.5.0" }, "peerDependencies": { diff --git a/skale-network b/skale-network index c380e3e..9a1ec68 160000 --- a/skale-network +++ b/skale-network @@ -1 +1 @@ -Subproject commit c380e3ed4b866723fe4e8a1d26065127d70067d4 +Subproject commit 9a1ec681673ec392389e09a1a6abbda9a1c0e9d7 diff --git a/src/core/sfuel.ts b/src/core/sfuel.ts index bec48f0..7ae4964 100644 --- a/src/core/sfuel.ts +++ b/src/core/sfuel.ts @@ -66,6 +66,10 @@ export class Station { } } + isFaucetAvailable(): boolean { + return isFaucetAvailable(this.chainName, this.mpc.config.skaleNetwork) + } + async doPoW(address: AddressType): Promise { // return { ok: true, message: 'PoW is not available for Ethereum Mainnet' }; if (!this.chainName || !isFaucetAvailable(this.chainName, this.mpc.config.skaleNetwork)) { diff --git a/src/index.ts b/src/index.ts index 2879426..cd9d135 100644 --- a/src/index.ts +++ b/src/index.ts @@ -43,6 +43,8 @@ import { BASE_EXPLORER_URLS, GRAY_BG } from './core/constants' import { toWei, fromWei } from './core/convertation' import { ERC_ABIS } from './core/contracts' import { sendTransaction } from './core/transactions' +import { Station, StationData } from './core/sfuel' + import { getWidgetTheme as getMetaportTheme } from './core/themes' @@ -113,5 +115,7 @@ export { RainbowConnectButton, useConnectModal, useAccountModal, - useChainModal + useChainModal, + Station, + type StationData }