@okcontract/sdk
Version:
One-stop-shop permissionless SDK for building any blockchain frontend
14 lines (13 loc) • 922 B
TypeScript
import type { AnyTokenQuery } from "@okcontract/coredata";
import type { Address, Network } from "@okcontract/multichain";
export type TokenQueryType = `tok:${string}` | `nft:${string}` | `swap:${string}` | `stake:${string}`;
export type TokenQueryOrAddress = TokenQueryType | Address<Network>;
export type ContractQueryType = `con:${string}`;
export type ContractQueryOrAddress = ContractQueryType | Address<Network>;
export type AnyAddress = ContractQueryType | AnyTokenQuery | Address<Network>;
export type URLQueryType = `url:${string}`;
export type VirtualQueryType<Key extends string, Value extends string> = `χ${Key}:${Value}`;
export type ProxyQueryType = VirtualQueryType<"proxy", string>;
export type VirtualProxyQueryType = VirtualQueryType<"proxy.head", string>;
export declare const ProxyQuery: (url: string) => ProxyQueryType;
export declare const VirtualProxyQuery: (url: string) => VirtualProxyQueryType;