UNPKG

@test-org122/hypernet-core

Version:

Hypernet Core. Represents the SDK for running the Hypernet Protocol.

16 lines 1.13 kB
import { IBlockchainProvider, IBlockchainUtils } from "@interfaces/utilities"; import { TypedDataDomain, TypedDataField } from "@ethersproject/abstract-signer"; import { BigNumber } from "ethers"; import { TransactionResponse } from "@ethersproject/abstract-provider"; import { BlockchainUnavailableError } from "@interfaces/objects/errors"; import { ResultAsync } from "neverthrow"; import { EthereumAddress } from "@interfaces/objects"; export declare class EthersBlockchainUtils implements IBlockchainUtils { protected blockchainProvider: IBlockchainProvider; protected erc20Abi: string[]; constructor(blockchainProvider: IBlockchainProvider); verifyTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>, signature: string): string; erc20Transfer(assetAddress: EthereumAddress, channelAddress: string, amount: BigNumber): ResultAsync<TransactionResponse, BlockchainUnavailableError>; mintToken(amount: BigNumber, to: EthereumAddress): ResultAsync<TransactionResponse, BlockchainUnavailableError>; } //# sourceMappingURL=EthersBlockchainUtils.d.ts.map