UNPKG

@dfinity/pic

Version:

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

72 lines 1.93 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CanisterHttpMethod = exports.SubnetType = 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 = {})); /** * 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