@spheron/protocol-sdk
Version:
Spheron Protocol SDK
21 lines • 922 B
TypeScript
import { ethers } from 'ethers';
import { IToken, NetworkType } from '@config/index';
export declare const isValidEthereumAddress: (address: string) => boolean;
export declare const getTokenDetails: (tokenInfo: 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, options, }: {
url: string;
method: RequestMethods;
body?: string;
options?: Omit<RequestInit, "body" | "method" | "headers">;
}) => Promise<any>;
export declare const initializeSigner: ({ wallet }: {
wallet?: ethers.Wallet;
}) => Promise<{
signer: ethers.Wallet;
} | {
signer: ethers.JsonRpcSigner;
}>;
export declare const replaceDomain: (url: string, newDomain: string) => string;
//# sourceMappingURL=index.d.ts.map