UNPKG

@spheron/protocol-sdk

Version:
19 lines 772 B
import { ethers } from 'ethers'; import { IToken, NetworkType } from '@config/index'; export declare const isValidEthereumAddress: (address: string) => boolean; export declare const getTokenDetails: (tokenAddress: string, networkType: NetworkType) => IToken | undefined; export declare const mapTokenToId: (token: string) => number | undefined; export type RequestMethods = 'GET' | 'PUT' | 'PATCH' | 'POST' | 'DELETE'; export declare const requestPipeline: ({ url, method, body, }: { url: string; method: RequestMethods; body?: string; }) => Promise<any>; export declare const initializeSigner: ({ wallet }: { wallet?: ethers.Wallet; }) => Promise<{ signer: ethers.Wallet; } | { signer: ethers.JsonRpcSigner; }>; //# sourceMappingURL=index.d.ts.map