UNPKG

@skalenetwork/ima-js

Version:

Simple TS/JS library to interact with SKALE IMA

43 lines (42 loc) 1.73 kB
/** * @license * SKALE ima-js * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /** * @file MainnetChain.ts * @copyright SKALE Labs 2021-Present */ import { type Provider } from 'ethers'; import { BaseChain } from './BaseChain'; import { DepositBoxEth } from './contracts/mainnet/DepositBoxEth'; import { DepositBoxERC20 } from './contracts/mainnet/DepositBoxERC20'; import { DepositBoxERC721 } from './contracts/mainnet/DepositBoxERC721'; import { DepositBoxERC1155 } from './contracts/mainnet/DepositBoxERC1155'; import { CommunityPool } from './contracts/mainnet/CommunityPool'; import { Linker } from './contracts/mainnet/Linker'; import { MessageProxy } from './contracts/MessageProxy'; export default class MainnetChain extends BaseChain { eth: DepositBoxEth; erc20: DepositBoxERC20; erc721: DepositBoxERC721; erc721meta: DepositBoxERC721; erc1155: DepositBoxERC1155; communityPool: CommunityPool; linker: Linker; messageProxy: MessageProxy; constructor(provider: Provider, abi: any, chainId?: number); ethBalance(address: string): Promise<bigint>; }