UNPKG

@dfinity/pic

Version:

An Internet Computer Protocol canister testing library for TypeScript and JavaScript.

90 lines 2.61 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CanisterHttpMethod = exports.SubnetType = exports.IcpFeaturesConfig = exports.IcpConfigFlag = exports.SubnetStateType = void 0; /** * The type of state to initialize a subnet with. */ var SubnetStateType; (function (SubnetStateType) { /** * Create a new subnet with an empty state. */ SubnetStateType["New"] = "new"; /** * Load existing subnet state from the given path. * The path must be on a filesystem accessible by the PocketIC server. */ SubnetStateType["FromPath"] = "fromPath"; })(SubnetStateType || (exports.SubnetStateType = SubnetStateType = {})); /** * Flag for configuration options in `IcpConfig`. */ var IcpConfigFlag; (function (IcpConfigFlag) { IcpConfigFlag["Disabled"] = "Disabled"; IcpConfigFlag["Enabled"] = "Enabled"; })(IcpConfigFlag || (exports.IcpConfigFlag = IcpConfigFlag = {})); /** * Configuration options in `IcpFeatures`. */ var IcpFeaturesConfig; (function (IcpFeaturesConfig) { /** * Default configuration of an ICP feature resembling mainnet configuration as closely as possible. */ IcpFeaturesConfig["DefaultConfig"] = "DefaultConfig"; })(IcpFeaturesConfig || (exports.IcpFeaturesConfig = IcpFeaturesConfig = {})); /** * The type of a subnet. */ var SubnetType; (function (SubnetType) { /** * The subnet is an application subnet. */ SubnetType["Application"] = "Application"; /** * The subnet is a Bitcoin subnet. */ SubnetType["Bitcoin"] = "Bitcoin"; /** * The subnet is a Fiduciary subnet. */ SubnetType["Fiduciary"] = "Fiduciary"; /** * The subnet is an Internet Identity subnet. */ SubnetType["InternetIdentity"] = "II"; /** * The subnet is a NNS subnet. */ SubnetType["NNS"] = "NNS"; /** * The subnet is an SNS subnet. */ SubnetType["SNS"] = "SNS"; /** * The subnet is a system subnet. */ SubnetType["System"] = "System"; })(SubnetType || (exports.SubnetType = SubnetType = {})); /** * The HTTP method used for an HTTPS outcall. */ var CanisterHttpMethod; (function (CanisterHttpMethod) { /** * A GET request. */ CanisterHttpMethod["GET"] = "GET"; /** * A POST request. */ CanisterHttpMethod["POST"] = "POST"; /** * A HEAD request. */ CanisterHttpMethod["HEAD"] = "HEAD"; })(CanisterHttpMethod || (exports.CanisterHttpMethod = CanisterHttpMethod = {})); //#endregion HTTPS Outcalls //# sourceMappingURL=pocket-ic-types.js.map