@gamechanger-finance/gc
Version:
Official GameChanger Wallet library and CLI for integrating with Cardano dapps and solve other tasks (https://gamechanger.finance/)
26 lines (25 loc) • 758 B
TypeScript
import { APIEncoding, APIVersion, NetworkType } from '../types';
export declare const validateBuildMsgArgs: (args: {
apiVersion: APIVersion;
network: NetworkType;
encoding: APIEncoding;
input: string;
}) => {
apiVersion: APIVersion;
network: NetworkType;
encoding: APIEncoding;
input: string;
};
export declare const getBaseUrl: (value?: string) => string | undefined;
/**
* Validates a GameChanger wallet URL pattern.
*
* Requirements:
* - Must be a valid absolute URL.
* - Must contain the `{gcscript}` placeholder token.
*
* The `{gcscript}` placeholder is embedded by the URL encoding transport.
*
* @throws Error when the pattern is invalid.
*/
export declare const validateUrlPattern: (url: string) => string;