UNPKG

@oraichain/customauth

Version:

CustomAuth login with torus to get user private key

31 lines (30 loc) 837 B
import { CustomOptions } from "@toruslabs/http-helpers"; export interface INetworkConfig { rpc: string; lcd: string; chainId: string; contract: string; loadBalancerEndpoint?: string; } export declare enum Network { DEV = "development", TESTNET = "testnet", MAINNET = "mainnet", STAGING = "staging", PRODUCTION = "production" } export declare const NetworkConfig: Record<Network, INetworkConfig>; export declare const metadataUrl: { development: string; staging: string; testnet: string; mainnet: string; production: string; }; export interface Member { address: string; pub_key: string; end_point: string; index?: number; } export declare const query: (config: INetworkConfig, input: any, requestInit?: RequestInit, customOpts?: CustomOptions) => Promise<any>;