@taqueria/protocol 0.16.0 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Alias.d.ts +42 -0
- package/Alias.d.ts.map +1 -0
- package/Alias.js +70 -0
- package/Alias.js.map +1 -0
- package/Alias.mjs +34 -0
- package/Alias.mjs.map +1 -0
- package/Base.d.ts +48 -0
- package/Base.d.ts.map +1 -0
- package/Base.js +83 -0
- package/Base.js.map +1 -0
- package/Base.mjs +57 -0
- package/Base.mjs.map +1 -0
- package/Command.d.ts +24 -0
- package/Command.d.ts.map +1 -0
- package/Command.js +61 -0
- package/Command.js.map +1 -0
- package/Command.mjs +25 -0
- package/Command.mjs.map +1 -0
- package/Config.d.ts +2055 -0
- package/Config.d.ts.map +1 -0
- package/Config.js +175 -0
- package/Config.js.map +1 -0
- package/Config.mjs +135 -0
- package/Config.mjs.map +1 -0
- package/Contract.d.ts +82 -0
- package/Contract.d.ts.map +1 -0
- package/Contract.js +68 -0
- package/Contract.js.map +1 -0
- package/Contract.mjs +32 -0
- package/Contract.mjs.map +1 -0
- package/Crypto.d.ts +4 -0
- package/Crypto.d.ts.map +1 -0
- package/Crypto.js +35 -0
- package/Crypto.js.map +1 -0
- package/Crypto.mjs +10 -0
- package/Crypto.mjs.map +1 -0
- package/EconomicalProtocolHash.d.ts +41 -0
- package/EconomicalProtocolHash.d.ts.map +1 -0
- package/EconomicalProtocolHash.js +64 -0
- package/EconomicalProtocolHash.js.map +1 -0
- package/EconomicalProtocolHash.mjs +27 -0
- package/EconomicalProtocolHash.mjs.map +1 -0
- package/Environment.d.ts +134 -0
- package/Environment.d.ts.map +1 -0
- package/Environment.js +78 -0
- package/Environment.js.map +1 -0
- package/Environment.mjs +40 -0
- package/Environment.mjs.map +1 -0
- package/EphemeralState.d.ts +4556 -0
- package/EphemeralState.d.ts.map +1 -0
- package/EphemeralState.js +268 -0
- package/EphemeralState.js.map +1 -0
- package/EphemeralState.mjs +228 -0
- package/EphemeralState.mjs.map +1 -0
- package/Faucet.d.ts +203 -0
- package/Faucet.d.ts.map +1 -0
- package/Faucet.js +84 -0
- package/Faucet.js.map +1 -0
- package/Faucet.mjs +47 -0
- package/Faucet.mjs.map +1 -0
- package/HumanReadableIdentifier.d.ts +24 -0
- package/HumanReadableIdentifier.d.ts.map +1 -0
- package/HumanReadableIdentifier.js +61 -0
- package/HumanReadableIdentifier.js.map +1 -0
- package/HumanReadableIdentifier.mjs +25 -0
- package/HumanReadableIdentifier.mjs.map +1 -0
- package/InstalledPlugin.d.ts +92 -0
- package/InstalledPlugin.d.ts.map +1 -0
- package/InstalledPlugin.js +67 -0
- package/InstalledPlugin.js.map +1 -0
- package/InstalledPlugin.mjs +30 -0
- package/InstalledPlugin.mjs.map +1 -0
- package/LoadedConfig.d.ts +2318 -0
- package/LoadedConfig.d.ts.map +1 -0
- package/LoadedConfig.js +80 -0
- package/LoadedConfig.js.map +1 -0
- package/LoadedConfig.mjs +41 -0
- package/LoadedConfig.mjs.map +1 -0
- package/MetadataConfig.d.ts +155 -0
- package/MetadataConfig.d.ts.map +1 -0
- package/MetadataConfig.js +75 -0
- package/MetadataConfig.js.map +1 -0
- package/MetadataConfig.mjs +38 -0
- package/MetadataConfig.mjs.map +1 -0
- package/NetworkConfig.d.ts +424 -0
- package/NetworkConfig.d.ts.map +1 -0
- package/NetworkConfig.js +77 -0
- package/NetworkConfig.js.map +1 -0
- package/NetworkConfig.mjs +40 -0
- package/NetworkConfig.mjs.map +1 -0
- package/Operation.d.ts +1470 -0
- package/Operation.d.ts.map +1 -0
- package/Operation.js +98 -0
- package/Operation.js.map +1 -0
- package/Operation.mjs +60 -0
- package/Operation.mjs.map +1 -0
- package/Option.d.ts +309 -0
- package/Option.d.ts.map +1 -0
- package/Option.js +103 -0
- package/Option.js.map +1 -0
- package/Option.mjs +65 -0
- package/Option.mjs.map +1 -0
- package/ParsedOperation.d.ts +880 -0
- package/ParsedOperation.d.ts.map +1 -0
- package/ParsedOperation.js +63 -0
- package/ParsedOperation.js.map +1 -0
- package/ParsedOperation.mjs +26 -0
- package/ParsedOperation.mjs.map +1 -0
- package/ParsedTemplate.d.ts +1024 -0
- package/ParsedTemplate.d.ts.map +1 -0
- package/ParsedTemplate.js +71 -0
- package/ParsedTemplate.js.map +1 -0
- package/ParsedTemplate.mjs +34 -0
- package/ParsedTemplate.mjs.map +1 -0
- package/PersistentState.d.ts +575 -0
- package/PersistentState.d.ts.map +1 -0
- package/PersistentState.js +98 -0
- package/PersistentState.js.map +1 -0
- package/PersistentState.mjs +60 -0
- package/PersistentState.mjs.map +1 -0
- package/PluginActionName.d.ts +22 -0
- package/PluginActionName.d.ts.map +1 -0
- package/PluginActionName.js +48 -0
- package/PluginActionName.js.map +1 -0
- package/PluginActionName.mjs +23 -0
- package/PluginActionName.mjs.map +1 -0
- package/PluginDependenciesResponse.d.ts +152 -0
- package/PluginDependenciesResponse.d.ts.map +1 -0
- package/PluginDependenciesResponse.js +63 -0
- package/PluginDependenciesResponse.js.map +1 -0
- package/PluginDependenciesResponse.mjs +28 -0
- package/PluginDependenciesResponse.mjs.map +1 -0
- package/PluginInfo.d.ts +3418 -0
- package/PluginInfo.d.ts.map +1 -0
- package/PluginInfo.js +113 -0
- package/PluginInfo.js.map +1 -0
- package/PluginInfo.mjs +76 -0
- package/PluginInfo.mjs.map +1 -0
- package/PluginJsonResponse.d.ts +99 -0
- package/PluginJsonResponse.d.ts.map +1 -0
- package/PluginJsonResponse.js +59 -0
- package/PluginJsonResponse.js.map +1 -0
- package/PluginJsonResponse.mjs +25 -0
- package/PluginJsonResponse.mjs.map +1 -0
- package/PluginProxyResponse.d.ts +16 -0
- package/PluginProxyResponse.d.ts.map +1 -0
- package/PluginProxyResponse.js +61 -0
- package/PluginProxyResponse.js.map +1 -0
- package/PluginProxyResponse.mjs +25 -0
- package/PluginProxyResponse.mjs.map +1 -0
- package/PluginResponseEncoding.d.ts +32 -0
- package/PluginResponseEncoding.d.ts.map +1 -0
- package/PluginResponseEncoding.js +63 -0
- package/PluginResponseEncoding.js.map +1 -0
- package/PluginResponseEncoding.mjs +27 -0
- package/PluginResponseEncoding.mjs.map +1 -0
- package/PluginSchema.d.ts +7324 -0
- package/PluginSchema.d.ts.map +1 -0
- package/PluginSchema.js +107 -0
- package/PluginSchema.js.map +1 -0
- package/PluginSchema.mjs +70 -0
- package/PluginSchema.mjs.map +1 -0
- package/PositionalArg.d.ts +183 -0
- package/PositionalArg.d.ts.map +1 -0
- package/PositionalArg.js +78 -0
- package/PositionalArg.js.map +1 -0
- package/PositionalArg.mjs +41 -0
- package/PositionalArg.mjs.map +1 -0
- package/Provisioner.d.ts +269 -0
- package/Provisioner.d.ts.map +1 -0
- package/Provisioner.js +86 -0
- package/Provisioner.js.map +1 -0
- package/Provisioner.mjs +48 -0
- package/Provisioner.mjs.map +1 -0
- package/ProvisionerID.d.ts +41 -0
- package/ProvisionerID.d.ts.map +1 -0
- package/ProvisionerID.js +61 -0
- package/ProvisionerID.js.map +1 -0
- package/ProvisionerID.mjs +24 -0
- package/ProvisionerID.mjs.map +1 -0
- package/Provisions.d.ts +237 -0
- package/Provisions.d.ts.map +1 -0
- package/Provisions.js +93 -0
- package/Provisions.js.map +1 -0
- package/Provisions.mjs +57 -0
- package/Provisions.mjs.map +1 -0
- package/PublicKeyHash.d.ts +42 -0
- package/PublicKeyHash.d.ts.map +1 -0
- package/PublicKeyHash.js +65 -0
- package/PublicKeyHash.js.map +1 -0
- package/PublicKeyHash.mjs +28 -0
- package/PublicKeyHash.mjs.map +1 -0
- package/RequestArgs.d.ts +5548 -0
- package/RequestArgs.d.ts.map +1 -0
- package/RequestArgs.js +136 -0
- package/RequestArgs.js.map +1 -0
- package/RequestArgs.mjs +89 -0
- package/RequestArgs.mjs.map +1 -0
- package/SHA256.d.ts +29 -0
- package/SHA256.d.ts.map +1 -0
- package/SHA256.js +79 -0
- package/SHA256.js.map +1 -0
- package/SHA256.mjs +42 -0
- package/SHA256.mjs.map +1 -0
- package/SandboxAccountConfig.d.ts +145 -0
- package/SandboxAccountConfig.d.ts.map +1 -0
- package/SandboxAccountConfig.js +72 -0
- package/SandboxAccountConfig.js.map +1 -0
- package/SandboxAccountConfig.mjs +35 -0
- package/SandboxAccountConfig.mjs.map +1 -0
- package/SandboxConfig.d.ts +543 -0
- package/SandboxConfig.d.ts.map +1 -0
- package/SandboxConfig.js +103 -0
- package/SandboxConfig.js.map +1 -0
- package/SandboxConfig.mjs +66 -0
- package/SandboxConfig.mjs.map +1 -0
- package/SanitizedAbsPath.d.ts +41 -0
- package/SanitizedAbsPath.d.ts.map +1 -0
- package/SanitizedAbsPath.js +64 -0
- package/SanitizedAbsPath.js.map +1 -0
- package/SanitizedAbsPath.mjs +27 -0
- package/SanitizedAbsPath.mjs.map +1 -0
- package/SanitizedArgs.d.ts +2900 -0
- package/SanitizedArgs.d.ts.map +1 -0
- package/SanitizedArgs.js +269 -0
- package/SanitizedArgs.js.map +1 -0
- package/SanitizedArgs.mjs +197 -0
- package/SanitizedArgs.mjs.map +1 -0
- package/SanitizedPath.d.ts +24 -0
- package/SanitizedPath.d.ts.map +1 -0
- package/SanitizedPath.js +64 -0
- package/SanitizedPath.js.map +1 -0
- package/SanitizedPath.mjs +28 -0
- package/SanitizedPath.mjs.map +1 -0
- package/ScaffoldConfig.d.ts +5 -0
- package/ScaffoldConfig.d.ts.map +1 -0
- package/ScaffoldConfig.js +19 -0
- package/ScaffoldConfig.js.map +1 -0
- package/ScaffoldConfig.mjs +1 -0
- package/ScaffoldConfig.mjs.map +1 -0
- package/Settings.d.ts +75 -0
- package/Settings.d.ts.map +1 -0
- package/Settings.js +66 -0
- package/Settings.js.map +1 -0
- package/Settings.mjs +29 -0
- package/Settings.mjs.map +1 -0
- package/SingleChar.d.ts +41 -0
- package/SingleChar.d.ts.map +1 -0
- package/SingleChar.js +62 -0
- package/SingleChar.js.map +1 -0
- package/SingleChar.mjs +25 -0
- package/SingleChar.mjs.map +1 -0
- package/TaqError.d.ts +21 -0
- package/TaqError.d.ts.map +1 -0
- package/TaqError.js +65 -0
- package/TaqError.js.map +1 -0
- package/TaqError.mjs +35 -0
- package/TaqError.mjs.map +1 -0
- package/Task.d.ts +818 -0
- package/Task.d.ts.map +1 -0
- package/Task.js +95 -0
- package/Task.js.map +1 -0
- package/Task.mjs +58 -0
- package/Task.mjs.map +1 -0
- package/Template.d.ts +1738 -0
- package/Template.d.ts.map +1 -0
- package/Template.js +117 -0
- package/Template.js.map +1 -0
- package/Template.mjs +79 -0
- package/Template.mjs.map +1 -0
- package/Timestamp.d.ts +44 -0
- package/Timestamp.d.ts.map +1 -0
- package/Timestamp.js +65 -0
- package/Timestamp.js.map +1 -0
- package/Timestamp.mjs +27 -0
- package/Timestamp.mjs.map +1 -0
- package/Tz.d.ts +40 -0
- package/Tz.d.ts.map +1 -0
- package/Tz.js +62 -0
- package/Tz.js.map +1 -0
- package/Tz.mjs +25 -0
- package/Tz.mjs.map +1 -0
- package/Url.d.ts +42 -0
- package/Url.d.ts.map +1 -0
- package/Url.js +68 -0
- package/Url.js.map +1 -0
- package/Url.mjs +30 -0
- package/Url.mjs.map +1 -0
- package/Verb.d.ts +41 -0
- package/Verb.d.ts.map +1 -0
- package/Verb.js +62 -0
- package/Verb.js.map +1 -0
- package/Verb.mjs +25 -0
- package/Verb.mjs.map +1 -0
- package/VersionNumber.d.ts +24 -0
- package/VersionNumber.d.ts.map +1 -0
- package/VersionNumber.js +61 -0
- package/VersionNumber.js.map +1 -0
- package/VersionNumber.mjs +25 -0
- package/VersionNumber.mjs.map +1 -0
- package/i18n.d.ts +7 -0
- package/i18n.d.ts.map +1 -0
- package/i18n.js +96 -0
- package/i18n.js.map +1 -0
- package/i18n.mjs +67 -0
- package/i18n.mjs.map +1 -0
- package/package.json +31 -3
- package/{taqueria-protocol-types.ts → taqueria-protocol-types.d.ts} +1 -0
- package/taqueria-protocol-types.d.ts.map +1 -0
- package/taqueria-protocol-types.js +142 -0
- package/taqueria-protocol-types.js.map +1 -0
- package/taqueria-protocol-types.mjs +76 -0
- package/taqueria-protocol-types.mjs.map +1 -0
- package/tzkt-config.d.ts +109 -0
- package/tzkt-config.d.ts.map +1 -0
- package/tzkt-config.js +65 -0
- package/tzkt-config.js.map +1 -0
- package/tzkt-config.mjs +28 -0
- package/tzkt-config.mjs.map +1 -0
- package/Alias.ts +0 -38
- package/Base.ts +0 -105
- package/Command.ts +0 -26
- package/Config.ts +0 -163
- package/Contract.ts +0 -35
- package/Crypto.ts +0 -3
- package/EconomicalProtocolHash.ts +0 -26
- package/Environment.ts +0 -40
- package/EphemeralState.ts +0 -282
- package/Faucet.ts +0 -46
- package/HumanReadableIdentifier.ts +0 -26
- package/InstalledPlugin.ts +0 -28
- package/LoadedConfig.ts +0 -45
- package/MetadataConfig.ts +0 -37
- package/NetworkConfig.ts +0 -39
- package/Operation.ts +0 -70
- package/Option.ts +0 -64
- package/ParsedOperation.ts +0 -33
- package/ParsedTemplate.ts +0 -40
- package/PersistentState.ts +0 -69
- package/PluginActionName.ts +0 -28
- package/PluginDependenciesResponse.ts +0 -33
- package/PluginInfo.ts +0 -76
- package/PluginJsonResponse.ts +0 -26
- package/PluginProxyResponse.ts +0 -24
- package/PluginResponseEncoding.ts +0 -27
- package/PluginSchema.ts +0 -81
- package/PositionalArg.ts +0 -41
- package/Provisioner.ts +0 -61
- package/ProvisionerID.ts +0 -25
- package/Provisions.ts +0 -70
- package/PublicKeyHash.ts +0 -28
- package/RequestArgs.ts +0 -97
- package/SHA256.ts +0 -42
- package/SandboxAccountConfig.ts +0 -35
- package/SandboxConfig.ts +0 -66
- package/SanitizedAbsPath.ts +0 -23
- package/SanitizedArgs.ts +0 -213
- package/SanitizedPath.ts +0 -28
- package/ScaffoldConfig.ts +0 -6
- package/Settings.ts +0 -27
- package/SingleChar.ts +0 -23
- package/TaqError.ts +0 -78
- package/Task.ts +0 -57
- package/Template.ts +0 -77
- package/Timestamp.ts +0 -25
- package/Tz.ts +0 -22
- package/Url.ts +0 -28
- package/Verb.ts +0 -23
- package/VersionNumber.ts +0 -25
- package/i18n.ts +0 -74
- package/tzkt-config.ts +0 -27
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["SandboxAccountConfig.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as PublicKeyHash from '@taqueria/protocol/PublicKeyHash';\nimport { z } from 'zod';\n\nconst internalSchema = z.object({\n\tencryptedKey: z.string({ description: 'Sandbox Account Encrypted Key' }).min(1),\n\tpublicKeyHash: PublicKeyHash.schemas.schema.describe('Sandbox Account Public Key Hash'),\n\tsecretKey: z.string({ description: 'Sandbox Account Secret Key' }).min(1),\n}, { description: 'Sandbox Account Configuration' });\n\nexport const rawSchema = z.object({\n\tencryptedKey: z.string({ description: 'Sandbox Account Encrypted Key' }).min(1),\n\tpublicKeyHash: z.string({ description: 'Sandbox Account Public Key Hash' }).min(1),\n\tsecretKey: z.string({ description: 'Sandbox Account Secret Key' }).min(1),\n}, { description: 'Sandbox Account Configuration' });\n\ntype Input = z.infer<typeof internalSchema>;\n\ntype RawInput = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'The sandbox account configuration is invalid',\n\tunknownErrMsg: 'Something went wrong trying to parse the sandbox account configuration',\n});\n\nexport type SandboxAccountConfig = z.infer<typeof generatedSchemas.schema>;\nexport type t = SandboxAccountConfig;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as SandboxAccountConfig),\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAAA;AAAA;AAAA;AAAA,kBAAuB;AACvB,oBAA+B;AAC/B,iBAAkB;AAElB,IAAM,iBAAiB,aAAE,OAAO;AAAA,EAC/B,cAAc,aAAE,OAAO,EAAE,aAAa,gCAAgC,CAAC,EAAE,IAAI,CAAC;AAAA,EAC9E,eAA6B,sBAAQ,OAAO,SAAS,iCAAiC;AAAA,EACtF,WAAW,aAAE,OAAO,EAAE,aAAa,6BAA6B,CAAC,EAAE,IAAI,CAAC;AACzE,GAAG,EAAE,aAAa,gCAAgC,CAAC;AAE5C,IAAM,YAAY,aAAE,OAAO;AAAA,EACjC,cAAc,aAAE,OAAO,EAAE,aAAa,gCAAgC,CAAC,EAAE,IAAI,CAAC;AAAA,EAC9E,eAAe,aAAE,OAAO,EAAE,aAAa,kCAAkC,CAAC,EAAE,IAAI,CAAC;AAAA,EACjF,WAAW,aAAE,OAAO,EAAE,aAAa,6BAA6B,CAAC,EAAE,IAAI,CAAC;AACzE,GAAG,EAAE,aAAa,gCAAgC,CAAC;AAM5C,IAAM,EAAE,SAAS,kBAAkB,QAAQ,QAAI,YAAAC,SAA4B;AAAA,EACjF;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMD,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAA2B;AAC7E;","names":["schemas","createType"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// SandboxAccountConfig.ts
|
|
2
|
+
import createType from "@taqueria/protocol/Base";
|
|
3
|
+
import * as PublicKeyHash from "@taqueria/protocol/PublicKeyHash";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
var internalSchema = z.object({
|
|
6
|
+
encryptedKey: z.string({ description: "Sandbox Account Encrypted Key" }).min(1),
|
|
7
|
+
publicKeyHash: PublicKeyHash.schemas.schema.describe("Sandbox Account Public Key Hash"),
|
|
8
|
+
secretKey: z.string({ description: "Sandbox Account Secret Key" }).min(1)
|
|
9
|
+
}, { description: "Sandbox Account Configuration" });
|
|
10
|
+
var rawSchema = z.object({
|
|
11
|
+
encryptedKey: z.string({ description: "Sandbox Account Encrypted Key" }).min(1),
|
|
12
|
+
publicKeyHash: z.string({ description: "Sandbox Account Public Key Hash" }).min(1),
|
|
13
|
+
secretKey: z.string({ description: "Sandbox Account Secret Key" }).min(1)
|
|
14
|
+
}, { description: "Sandbox Account Configuration" });
|
|
15
|
+
var { schemas: generatedSchemas, factory } = createType({
|
|
16
|
+
rawSchema,
|
|
17
|
+
internalSchema,
|
|
18
|
+
parseErrMsg: "The sandbox account configuration is invalid",
|
|
19
|
+
unknownErrMsg: "Something went wrong trying to parse the sandbox account configuration"
|
|
20
|
+
});
|
|
21
|
+
var { create, of, make } = factory;
|
|
22
|
+
var schemas2 = {
|
|
23
|
+
...generatedSchemas,
|
|
24
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
create,
|
|
28
|
+
factory,
|
|
29
|
+
generatedSchemas,
|
|
30
|
+
make,
|
|
31
|
+
of,
|
|
32
|
+
rawSchema,
|
|
33
|
+
schemas2 as schemas
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=SandboxAccountConfig.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["SandboxAccountConfig.ts"],"sourcesContent":["import createType from '@taqueria/protocol/Base';\nimport * as PublicKeyHash from '@taqueria/protocol/PublicKeyHash';\nimport { z } from 'zod';\n\nconst internalSchema = z.object({\n\tencryptedKey: z.string({ description: 'Sandbox Account Encrypted Key' }).min(1),\n\tpublicKeyHash: PublicKeyHash.schemas.schema.describe('Sandbox Account Public Key Hash'),\n\tsecretKey: z.string({ description: 'Sandbox Account Secret Key' }).min(1),\n}, { description: 'Sandbox Account Configuration' });\n\nexport const rawSchema = z.object({\n\tencryptedKey: z.string({ description: 'Sandbox Account Encrypted Key' }).min(1),\n\tpublicKeyHash: z.string({ description: 'Sandbox Account Public Key Hash' }).min(1),\n\tsecretKey: z.string({ description: 'Sandbox Account Secret Key' }).min(1),\n}, { description: 'Sandbox Account Configuration' });\n\ntype Input = z.infer<typeof internalSchema>;\n\ntype RawInput = z.infer<typeof rawSchema>;\n\nexport const { schemas: generatedSchemas, factory } = createType<RawInput, Input>({\n\trawSchema,\n\tinternalSchema,\n\tparseErrMsg: 'The sandbox account configuration is invalid',\n\tunknownErrMsg: 'Something went wrong trying to parse the sandbox account configuration',\n});\n\nexport type SandboxAccountConfig = z.infer<typeof generatedSchemas.schema>;\nexport type t = SandboxAccountConfig;\nexport const { create, of, make } = factory;\n\nexport const schemas = {\n\t...generatedSchemas,\n\tschema: generatedSchemas.schema.transform(val => val as SandboxAccountConfig),\n};\n"],"mappings":";AAAA,OAAO,gBAAgB;AACvB,YAAY,mBAAmB;AAC/B,SAAS,SAAS;AAElB,IAAM,iBAAiB,EAAE,OAAO;AAAA,EAC/B,cAAc,EAAE,OAAO,EAAE,aAAa,gCAAgC,CAAC,EAAE,IAAI,CAAC;AAAA,EAC9E,eAA6B,sBAAQ,OAAO,SAAS,iCAAiC;AAAA,EACtF,WAAW,EAAE,OAAO,EAAE,aAAa,6BAA6B,CAAC,EAAE,IAAI,CAAC;AACzE,GAAG,EAAE,aAAa,gCAAgC,CAAC;AAE5C,IAAM,YAAY,EAAE,OAAO;AAAA,EACjC,cAAc,EAAE,OAAO,EAAE,aAAa,gCAAgC,CAAC,EAAE,IAAI,CAAC;AAAA,EAC9E,eAAe,EAAE,OAAO,EAAE,aAAa,kCAAkC,CAAC,EAAE,IAAI,CAAC;AAAA,EACjF,WAAW,EAAE,OAAO,EAAE,aAAa,6BAA6B,CAAC,EAAE,IAAI,CAAC;AACzE,GAAG,EAAE,aAAa,gCAAgC,CAAC;AAM5C,IAAM,EAAE,SAAS,kBAAkB,QAAQ,IAAI,WAA4B;AAAA,EACjF;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,eAAe;AAChB,CAAC;AAIM,IAAM,EAAE,QAAQ,IAAI,KAAK,IAAI;AAE7B,IAAMA,WAAU;AAAA,EACtB,GAAG;AAAA,EACH,QAAQ,iBAAiB,OAAO,UAAU,SAAO,GAA2B;AAC7E;","names":["schemas"]}
|
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const rawSchema: z.ZodObject<{
|
|
3
|
+
label: z.ZodString;
|
|
4
|
+
rpcUrl: z.ZodString;
|
|
5
|
+
protocol: z.ZodString;
|
|
6
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
7
|
+
plugin: z.ZodOptional<z.ZodString>;
|
|
8
|
+
accounts: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
9
|
+
default: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
default: string;
|
|
12
|
+
}, {
|
|
13
|
+
default: string;
|
|
14
|
+
}>, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
15
|
+
encryptedKey: z.ZodString;
|
|
16
|
+
publicKeyHash: z.ZodString;
|
|
17
|
+
secretKey: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
encryptedKey: string;
|
|
20
|
+
publicKeyHash: string;
|
|
21
|
+
secretKey: string;
|
|
22
|
+
}, {
|
|
23
|
+
encryptedKey: string;
|
|
24
|
+
publicKeyHash: string;
|
|
25
|
+
secretKey: string;
|
|
26
|
+
}>>]>>;
|
|
27
|
+
tzkt: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
disableAutostartWithSandbox: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
postgresqlPort: z.ZodDefault<z.ZodNumber>;
|
|
30
|
+
apiPort: z.ZodDefault<z.ZodNumber>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
disableAutostartWithSandbox: boolean;
|
|
33
|
+
postgresqlPort: number;
|
|
34
|
+
apiPort: number;
|
|
35
|
+
}, {
|
|
36
|
+
disableAutostartWithSandbox?: boolean | undefined;
|
|
37
|
+
postgresqlPort?: number | undefined;
|
|
38
|
+
apiPort?: number | undefined;
|
|
39
|
+
}>>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
42
|
+
plugin?: string | undefined;
|
|
43
|
+
accounts?: {
|
|
44
|
+
default: string;
|
|
45
|
+
} | Record<string, {
|
|
46
|
+
encryptedKey: string;
|
|
47
|
+
publicKeyHash: string;
|
|
48
|
+
secretKey: string;
|
|
49
|
+
}> | undefined;
|
|
50
|
+
tzkt?: {
|
|
51
|
+
disableAutostartWithSandbox: boolean;
|
|
52
|
+
postgresqlPort: number;
|
|
53
|
+
apiPort: number;
|
|
54
|
+
} | undefined;
|
|
55
|
+
label: string;
|
|
56
|
+
rpcUrl: string;
|
|
57
|
+
protocol: string;
|
|
58
|
+
}, {
|
|
59
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
60
|
+
plugin?: string | undefined;
|
|
61
|
+
accounts?: {
|
|
62
|
+
default: string;
|
|
63
|
+
} | Record<string, {
|
|
64
|
+
encryptedKey: string;
|
|
65
|
+
publicKeyHash: string;
|
|
66
|
+
secretKey: string;
|
|
67
|
+
}> | undefined;
|
|
68
|
+
tzkt?: {
|
|
69
|
+
disableAutostartWithSandbox?: boolean | undefined;
|
|
70
|
+
postgresqlPort?: number | undefined;
|
|
71
|
+
apiPort?: number | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
label: string;
|
|
74
|
+
rpcUrl: string;
|
|
75
|
+
protocol: string;
|
|
76
|
+
}>;
|
|
77
|
+
export declare const generatedSchemas: {
|
|
78
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
79
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
80
|
+
schema: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
81
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
82
|
+
plugin?: (string & {
|
|
83
|
+
readonly __kind: any;
|
|
84
|
+
}) | undefined;
|
|
85
|
+
accounts?: Record<string, string | ({
|
|
86
|
+
encryptedKey: string;
|
|
87
|
+
publicKeyHash: string & {
|
|
88
|
+
readonly __kind: any;
|
|
89
|
+
};
|
|
90
|
+
secretKey: string;
|
|
91
|
+
} & {
|
|
92
|
+
readonly __kind: any;
|
|
93
|
+
})> | undefined;
|
|
94
|
+
tzkt?: {
|
|
95
|
+
disableAutostartWithSandbox: boolean;
|
|
96
|
+
postgresqlPort: number;
|
|
97
|
+
apiPort: number;
|
|
98
|
+
} | undefined;
|
|
99
|
+
label: string & {
|
|
100
|
+
readonly __kind: any;
|
|
101
|
+
};
|
|
102
|
+
rpcUrl: string & {
|
|
103
|
+
readonly __kind: any;
|
|
104
|
+
};
|
|
105
|
+
protocol: string & {
|
|
106
|
+
readonly __kind: any;
|
|
107
|
+
};
|
|
108
|
+
} & {
|
|
109
|
+
readonly __kind: any;
|
|
110
|
+
}, any>;
|
|
111
|
+
}, factory: {
|
|
112
|
+
make: (input: {
|
|
113
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
114
|
+
plugin?: (string & {
|
|
115
|
+
readonly __kind: any;
|
|
116
|
+
}) | undefined;
|
|
117
|
+
accounts?: Record<string, string | ({
|
|
118
|
+
encryptedKey: string;
|
|
119
|
+
publicKeyHash: string & {
|
|
120
|
+
readonly __kind: any;
|
|
121
|
+
};
|
|
122
|
+
secretKey: string;
|
|
123
|
+
} & {
|
|
124
|
+
readonly __kind: any;
|
|
125
|
+
})> | undefined;
|
|
126
|
+
tzkt?: {
|
|
127
|
+
disableAutostartWithSandbox: boolean;
|
|
128
|
+
postgresqlPort: number;
|
|
129
|
+
apiPort: number;
|
|
130
|
+
} | undefined;
|
|
131
|
+
label: string & {
|
|
132
|
+
readonly __kind: any;
|
|
133
|
+
};
|
|
134
|
+
rpcUrl: string & {
|
|
135
|
+
readonly __kind: any;
|
|
136
|
+
};
|
|
137
|
+
protocol: string & {
|
|
138
|
+
readonly __kind: any;
|
|
139
|
+
};
|
|
140
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
141
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
142
|
+
plugin?: (string & {
|
|
143
|
+
readonly __kind: any;
|
|
144
|
+
}) | undefined;
|
|
145
|
+
accounts?: Record<string, string | ({
|
|
146
|
+
encryptedKey: string;
|
|
147
|
+
publicKeyHash: string & {
|
|
148
|
+
readonly __kind: any;
|
|
149
|
+
};
|
|
150
|
+
secretKey: string;
|
|
151
|
+
} & {
|
|
152
|
+
readonly __kind: any;
|
|
153
|
+
})> | undefined;
|
|
154
|
+
tzkt?: {
|
|
155
|
+
disableAutostartWithSandbox: boolean;
|
|
156
|
+
postgresqlPort: number;
|
|
157
|
+
apiPort: number;
|
|
158
|
+
} | undefined;
|
|
159
|
+
label: string & {
|
|
160
|
+
readonly __kind: any;
|
|
161
|
+
};
|
|
162
|
+
rpcUrl: string & {
|
|
163
|
+
readonly __kind: any;
|
|
164
|
+
};
|
|
165
|
+
protocol: string & {
|
|
166
|
+
readonly __kind: any;
|
|
167
|
+
};
|
|
168
|
+
} & {
|
|
169
|
+
readonly __kind: any;
|
|
170
|
+
}>;
|
|
171
|
+
of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
172
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
173
|
+
plugin?: (string & {
|
|
174
|
+
readonly __kind: any;
|
|
175
|
+
}) | undefined;
|
|
176
|
+
accounts?: Record<string, string | ({
|
|
177
|
+
encryptedKey: string;
|
|
178
|
+
publicKeyHash: string & {
|
|
179
|
+
readonly __kind: any;
|
|
180
|
+
};
|
|
181
|
+
secretKey: string;
|
|
182
|
+
} & {
|
|
183
|
+
readonly __kind: any;
|
|
184
|
+
})> | undefined;
|
|
185
|
+
tzkt?: {
|
|
186
|
+
disableAutostartWithSandbox: boolean;
|
|
187
|
+
postgresqlPort: number;
|
|
188
|
+
apiPort: number;
|
|
189
|
+
} | undefined;
|
|
190
|
+
label: string & {
|
|
191
|
+
readonly __kind: any;
|
|
192
|
+
};
|
|
193
|
+
rpcUrl: string & {
|
|
194
|
+
readonly __kind: any;
|
|
195
|
+
};
|
|
196
|
+
protocol: string & {
|
|
197
|
+
readonly __kind: any;
|
|
198
|
+
};
|
|
199
|
+
} & {
|
|
200
|
+
readonly __kind: any;
|
|
201
|
+
}>;
|
|
202
|
+
create: (input: {
|
|
203
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
204
|
+
plugin?: string | undefined;
|
|
205
|
+
accounts?: {
|
|
206
|
+
default: string;
|
|
207
|
+
} | Record<string, {
|
|
208
|
+
encryptedKey: string;
|
|
209
|
+
publicKeyHash: string;
|
|
210
|
+
secretKey: string;
|
|
211
|
+
}> | undefined;
|
|
212
|
+
tzkt?: {
|
|
213
|
+
disableAutostartWithSandbox: boolean;
|
|
214
|
+
postgresqlPort: number;
|
|
215
|
+
apiPort: number;
|
|
216
|
+
} | undefined;
|
|
217
|
+
label: string;
|
|
218
|
+
rpcUrl: string;
|
|
219
|
+
protocol: string;
|
|
220
|
+
} | {
|
|
221
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
222
|
+
plugin?: (string & {
|
|
223
|
+
readonly __kind: any;
|
|
224
|
+
}) | undefined;
|
|
225
|
+
accounts?: Record<string, string | ({
|
|
226
|
+
encryptedKey: string;
|
|
227
|
+
publicKeyHash: string & {
|
|
228
|
+
readonly __kind: any;
|
|
229
|
+
};
|
|
230
|
+
secretKey: string;
|
|
231
|
+
} & {
|
|
232
|
+
readonly __kind: any;
|
|
233
|
+
})> | undefined;
|
|
234
|
+
tzkt?: {
|
|
235
|
+
disableAutostartWithSandbox: boolean;
|
|
236
|
+
postgresqlPort: number;
|
|
237
|
+
apiPort: number;
|
|
238
|
+
} | undefined;
|
|
239
|
+
label: string & {
|
|
240
|
+
readonly __kind: any;
|
|
241
|
+
};
|
|
242
|
+
rpcUrl: string & {
|
|
243
|
+
readonly __kind: any;
|
|
244
|
+
};
|
|
245
|
+
protocol: string & {
|
|
246
|
+
readonly __kind: any;
|
|
247
|
+
};
|
|
248
|
+
}) => {
|
|
249
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
250
|
+
plugin?: (string & {
|
|
251
|
+
readonly __kind: any;
|
|
252
|
+
}) | undefined;
|
|
253
|
+
accounts?: Record<string, string | ({
|
|
254
|
+
encryptedKey: string;
|
|
255
|
+
publicKeyHash: string & {
|
|
256
|
+
readonly __kind: any;
|
|
257
|
+
};
|
|
258
|
+
secretKey: string;
|
|
259
|
+
} & {
|
|
260
|
+
readonly __kind: any;
|
|
261
|
+
})> | undefined;
|
|
262
|
+
tzkt?: {
|
|
263
|
+
disableAutostartWithSandbox: boolean;
|
|
264
|
+
postgresqlPort: number;
|
|
265
|
+
apiPort: number;
|
|
266
|
+
} | undefined;
|
|
267
|
+
label: string & {
|
|
268
|
+
readonly __kind: any;
|
|
269
|
+
};
|
|
270
|
+
rpcUrl: string & {
|
|
271
|
+
readonly __kind: any;
|
|
272
|
+
};
|
|
273
|
+
protocol: string & {
|
|
274
|
+
readonly __kind: any;
|
|
275
|
+
};
|
|
276
|
+
} & {
|
|
277
|
+
readonly __kind: any;
|
|
278
|
+
};
|
|
279
|
+
from: (input: unknown) => {
|
|
280
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
281
|
+
plugin?: (string & {
|
|
282
|
+
readonly __kind: any;
|
|
283
|
+
}) | undefined;
|
|
284
|
+
accounts?: Record<string, string | ({
|
|
285
|
+
encryptedKey: string;
|
|
286
|
+
publicKeyHash: string & {
|
|
287
|
+
readonly __kind: any;
|
|
288
|
+
};
|
|
289
|
+
secretKey: string;
|
|
290
|
+
} & {
|
|
291
|
+
readonly __kind: any;
|
|
292
|
+
})> | undefined;
|
|
293
|
+
tzkt?: {
|
|
294
|
+
disableAutostartWithSandbox: boolean;
|
|
295
|
+
postgresqlPort: number;
|
|
296
|
+
apiPort: number;
|
|
297
|
+
} | undefined;
|
|
298
|
+
label: string & {
|
|
299
|
+
readonly __kind: any;
|
|
300
|
+
};
|
|
301
|
+
rpcUrl: string & {
|
|
302
|
+
readonly __kind: any;
|
|
303
|
+
};
|
|
304
|
+
protocol: string & {
|
|
305
|
+
readonly __kind: any;
|
|
306
|
+
};
|
|
307
|
+
} & {
|
|
308
|
+
readonly __kind: any;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
export declare type SandboxConfig = z.infer<typeof generatedSchemas.schema>;
|
|
312
|
+
export declare type t = SandboxConfig;
|
|
313
|
+
export declare const create: (input: {
|
|
314
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
315
|
+
plugin?: string | undefined;
|
|
316
|
+
accounts?: {
|
|
317
|
+
default: string;
|
|
318
|
+
} | Record<string, {
|
|
319
|
+
encryptedKey: string;
|
|
320
|
+
publicKeyHash: string;
|
|
321
|
+
secretKey: string;
|
|
322
|
+
}> | undefined;
|
|
323
|
+
tzkt?: {
|
|
324
|
+
disableAutostartWithSandbox: boolean;
|
|
325
|
+
postgresqlPort: number;
|
|
326
|
+
apiPort: number;
|
|
327
|
+
} | undefined;
|
|
328
|
+
label: string;
|
|
329
|
+
rpcUrl: string;
|
|
330
|
+
protocol: string;
|
|
331
|
+
} | {
|
|
332
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
333
|
+
plugin?: (string & {
|
|
334
|
+
readonly __kind: any;
|
|
335
|
+
}) | undefined;
|
|
336
|
+
accounts?: Record<string, string | ({
|
|
337
|
+
encryptedKey: string;
|
|
338
|
+
publicKeyHash: string & {
|
|
339
|
+
readonly __kind: any;
|
|
340
|
+
};
|
|
341
|
+
secretKey: string;
|
|
342
|
+
} & {
|
|
343
|
+
readonly __kind: any;
|
|
344
|
+
})> | undefined;
|
|
345
|
+
tzkt?: {
|
|
346
|
+
disableAutostartWithSandbox: boolean;
|
|
347
|
+
postgresqlPort: number;
|
|
348
|
+
apiPort: number;
|
|
349
|
+
} | undefined;
|
|
350
|
+
label: string & {
|
|
351
|
+
readonly __kind: any;
|
|
352
|
+
};
|
|
353
|
+
rpcUrl: string & {
|
|
354
|
+
readonly __kind: any;
|
|
355
|
+
};
|
|
356
|
+
protocol: string & {
|
|
357
|
+
readonly __kind: any;
|
|
358
|
+
};
|
|
359
|
+
}) => {
|
|
360
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
361
|
+
plugin?: (string & {
|
|
362
|
+
readonly __kind: any;
|
|
363
|
+
}) | undefined;
|
|
364
|
+
accounts?: Record<string, string | ({
|
|
365
|
+
encryptedKey: string;
|
|
366
|
+
publicKeyHash: string & {
|
|
367
|
+
readonly __kind: any;
|
|
368
|
+
};
|
|
369
|
+
secretKey: string;
|
|
370
|
+
} & {
|
|
371
|
+
readonly __kind: any;
|
|
372
|
+
})> | undefined;
|
|
373
|
+
tzkt?: {
|
|
374
|
+
disableAutostartWithSandbox: boolean;
|
|
375
|
+
postgresqlPort: number;
|
|
376
|
+
apiPort: number;
|
|
377
|
+
} | undefined;
|
|
378
|
+
label: string & {
|
|
379
|
+
readonly __kind: any;
|
|
380
|
+
};
|
|
381
|
+
rpcUrl: string & {
|
|
382
|
+
readonly __kind: any;
|
|
383
|
+
};
|
|
384
|
+
protocol: string & {
|
|
385
|
+
readonly __kind: any;
|
|
386
|
+
};
|
|
387
|
+
} & {
|
|
388
|
+
readonly __kind: any;
|
|
389
|
+
}, of: (input: unknown) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
390
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
391
|
+
plugin?: (string & {
|
|
392
|
+
readonly __kind: any;
|
|
393
|
+
}) | undefined;
|
|
394
|
+
accounts?: Record<string, string | ({
|
|
395
|
+
encryptedKey: string;
|
|
396
|
+
publicKeyHash: string & {
|
|
397
|
+
readonly __kind: any;
|
|
398
|
+
};
|
|
399
|
+
secretKey: string;
|
|
400
|
+
} & {
|
|
401
|
+
readonly __kind: any;
|
|
402
|
+
})> | undefined;
|
|
403
|
+
tzkt?: {
|
|
404
|
+
disableAutostartWithSandbox: boolean;
|
|
405
|
+
postgresqlPort: number;
|
|
406
|
+
apiPort: number;
|
|
407
|
+
} | undefined;
|
|
408
|
+
label: string & {
|
|
409
|
+
readonly __kind: any;
|
|
410
|
+
};
|
|
411
|
+
rpcUrl: string & {
|
|
412
|
+
readonly __kind: any;
|
|
413
|
+
};
|
|
414
|
+
protocol: string & {
|
|
415
|
+
readonly __kind: any;
|
|
416
|
+
};
|
|
417
|
+
} & {
|
|
418
|
+
readonly __kind: any;
|
|
419
|
+
}>, make: (input: {
|
|
420
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
421
|
+
plugin?: (string & {
|
|
422
|
+
readonly __kind: any;
|
|
423
|
+
}) | undefined;
|
|
424
|
+
accounts?: Record<string, string | ({
|
|
425
|
+
encryptedKey: string;
|
|
426
|
+
publicKeyHash: string & {
|
|
427
|
+
readonly __kind: any;
|
|
428
|
+
};
|
|
429
|
+
secretKey: string;
|
|
430
|
+
} & {
|
|
431
|
+
readonly __kind: any;
|
|
432
|
+
})> | undefined;
|
|
433
|
+
tzkt?: {
|
|
434
|
+
disableAutostartWithSandbox: boolean;
|
|
435
|
+
postgresqlPort: number;
|
|
436
|
+
apiPort: number;
|
|
437
|
+
} | undefined;
|
|
438
|
+
label: string & {
|
|
439
|
+
readonly __kind: any;
|
|
440
|
+
};
|
|
441
|
+
rpcUrl: string & {
|
|
442
|
+
readonly __kind: any;
|
|
443
|
+
};
|
|
444
|
+
protocol: string & {
|
|
445
|
+
readonly __kind: any;
|
|
446
|
+
};
|
|
447
|
+
}) => import("fluture").FutureInstance<import("./TaqError").TaqError, {
|
|
448
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
449
|
+
plugin?: (string & {
|
|
450
|
+
readonly __kind: any;
|
|
451
|
+
}) | undefined;
|
|
452
|
+
accounts?: Record<string, string | ({
|
|
453
|
+
encryptedKey: string;
|
|
454
|
+
publicKeyHash: string & {
|
|
455
|
+
readonly __kind: any;
|
|
456
|
+
};
|
|
457
|
+
secretKey: string;
|
|
458
|
+
} & {
|
|
459
|
+
readonly __kind: any;
|
|
460
|
+
})> | undefined;
|
|
461
|
+
tzkt?: {
|
|
462
|
+
disableAutostartWithSandbox: boolean;
|
|
463
|
+
postgresqlPort: number;
|
|
464
|
+
apiPort: number;
|
|
465
|
+
} | undefined;
|
|
466
|
+
label: string & {
|
|
467
|
+
readonly __kind: any;
|
|
468
|
+
};
|
|
469
|
+
rpcUrl: string & {
|
|
470
|
+
readonly __kind: any;
|
|
471
|
+
};
|
|
472
|
+
protocol: string & {
|
|
473
|
+
readonly __kind: any;
|
|
474
|
+
};
|
|
475
|
+
} & {
|
|
476
|
+
readonly __kind: any;
|
|
477
|
+
}>;
|
|
478
|
+
export declare const schemas: {
|
|
479
|
+
schema: z.ZodEffects<z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, {
|
|
480
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
481
|
+
plugin?: (string & {
|
|
482
|
+
readonly __kind: any;
|
|
483
|
+
}) | undefined;
|
|
484
|
+
accounts?: Record<string, string | ({
|
|
485
|
+
encryptedKey: string;
|
|
486
|
+
publicKeyHash: string & {
|
|
487
|
+
readonly __kind: any;
|
|
488
|
+
};
|
|
489
|
+
secretKey: string;
|
|
490
|
+
} & {
|
|
491
|
+
readonly __kind: any;
|
|
492
|
+
})> | undefined;
|
|
493
|
+
tzkt?: {
|
|
494
|
+
disableAutostartWithSandbox: boolean;
|
|
495
|
+
postgresqlPort: number;
|
|
496
|
+
apiPort: number;
|
|
497
|
+
} | undefined;
|
|
498
|
+
label: string & {
|
|
499
|
+
readonly __kind: any;
|
|
500
|
+
};
|
|
501
|
+
rpcUrl: string & {
|
|
502
|
+
readonly __kind: any;
|
|
503
|
+
};
|
|
504
|
+
protocol: string & {
|
|
505
|
+
readonly __kind: any;
|
|
506
|
+
};
|
|
507
|
+
} & {
|
|
508
|
+
readonly __kind: any;
|
|
509
|
+
}, any>, {
|
|
510
|
+
attributes?: Record<string, string | number | boolean> | undefined;
|
|
511
|
+
plugin?: (string & {
|
|
512
|
+
readonly __kind: any;
|
|
513
|
+
}) | undefined;
|
|
514
|
+
accounts?: Record<string, string | ({
|
|
515
|
+
encryptedKey: string;
|
|
516
|
+
publicKeyHash: string & {
|
|
517
|
+
readonly __kind: any;
|
|
518
|
+
};
|
|
519
|
+
secretKey: string;
|
|
520
|
+
} & {
|
|
521
|
+
readonly __kind: any;
|
|
522
|
+
})> | undefined;
|
|
523
|
+
tzkt?: {
|
|
524
|
+
disableAutostartWithSandbox: boolean;
|
|
525
|
+
postgresqlPort: number;
|
|
526
|
+
apiPort: number;
|
|
527
|
+
} | undefined;
|
|
528
|
+
label: string & {
|
|
529
|
+
readonly __kind: any;
|
|
530
|
+
};
|
|
531
|
+
rpcUrl: string & {
|
|
532
|
+
readonly __kind: any;
|
|
533
|
+
};
|
|
534
|
+
protocol: string & {
|
|
535
|
+
readonly __kind: any;
|
|
536
|
+
};
|
|
537
|
+
} & {
|
|
538
|
+
readonly __kind: any;
|
|
539
|
+
}, any>;
|
|
540
|
+
rawSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
541
|
+
internalSchema: z.ZodType<any, z.ZodTypeDef, any>;
|
|
542
|
+
};
|
|
543
|
+
//# sourceMappingURL=SandboxConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxConfig.d.ts","sourceRoot":"","sources":["SandboxConfig.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBpB,CAAC;AAkBH,eAAO,MAAiB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/C,CAAC;AAEH,oBAAY,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AACpE,oBAAY,CAAC,GAAG,aAAa,CAAC;AAC9B,eAAO,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAE,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAY,CAAC;AAE5C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAC"}
|
package/SandboxConfig.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
+
|
|
26
|
+
// SandboxConfig.ts
|
|
27
|
+
var SandboxConfig_exports = {};
|
|
28
|
+
__export(SandboxConfig_exports, {
|
|
29
|
+
create: () => create,
|
|
30
|
+
factory: () => factory,
|
|
31
|
+
generatedSchemas: () => generatedSchemas,
|
|
32
|
+
make: () => make,
|
|
33
|
+
of: () => of,
|
|
34
|
+
rawSchema: () => rawSchema4,
|
|
35
|
+
schemas: () => schemas6
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(SandboxConfig_exports);
|
|
38
|
+
var import_Base = __toESM(require("@taqueria/protocol/Base"));
|
|
39
|
+
var EconomicalProtocolHash = __toESM(require("@taqueria/protocol/EconomicalProtocolHash"));
|
|
40
|
+
var HumanReadableIdentifier = __toESM(require("@taqueria/protocol/HumanReadableIdentifier"));
|
|
41
|
+
var SandboxAccountConfig = __toESM(require("@taqueria/protocol/SandboxAccountConfig"));
|
|
42
|
+
var TzKt = __toESM(require("@taqueria/protocol/tzkt-config"));
|
|
43
|
+
var Url = __toESM(require("@taqueria/protocol/Url"));
|
|
44
|
+
var Verb = __toESM(require("@taqueria/protocol/Verb"));
|
|
45
|
+
var import_zod = require("zod");
|
|
46
|
+
var accountMapSchema = import_zod.z.record(
|
|
47
|
+
import_zod.z.union([
|
|
48
|
+
import_zod.z.string().nonempty(),
|
|
49
|
+
SandboxAccountConfig.schemas.schema
|
|
50
|
+
])
|
|
51
|
+
);
|
|
52
|
+
var rawSchema4 = import_zod.z.object({
|
|
53
|
+
label: import_zod.z.string({ description: "Sandbox Label" }).min(1),
|
|
54
|
+
rpcUrl: import_zod.z.string({ description: "Sandbox RPC Url" }).min(5).url(),
|
|
55
|
+
protocol: import_zod.z.string({ description: "Sandbox Protocol Hash" }).min(8),
|
|
56
|
+
attributes: import_zod.z.record(
|
|
57
|
+
import_zod.z.union(
|
|
58
|
+
[import_zod.z.string(), import_zod.z.number(), import_zod.z.boolean()],
|
|
59
|
+
{ description: "Sandbox Attribute" }
|
|
60
|
+
),
|
|
61
|
+
{ description: "Sandbox Attributes" }
|
|
62
|
+
).optional(),
|
|
63
|
+
plugin: Verb.rawSchema.describe("Sandbox Plugin").optional(),
|
|
64
|
+
accounts: import_zod.z.union([
|
|
65
|
+
import_zod.z.object({ default: import_zod.z.string().min(1) }),
|
|
66
|
+
import_zod.z.record(SandboxAccountConfig.rawSchema)
|
|
67
|
+
], { description: "Sandbox Accounts" }).optional(),
|
|
68
|
+
tzkt: TzKt.rawSchema.describe("TzKt config").optional()
|
|
69
|
+
});
|
|
70
|
+
var internalSchema = import_zod.z.object({
|
|
71
|
+
label: HumanReadableIdentifier.schemas.schema.describe("Sandbox Label"),
|
|
72
|
+
rpcUrl: Url.schemas.schema.describe("Sandbox RPC Url"),
|
|
73
|
+
protocol: EconomicalProtocolHash.schemas.schema.describe("Sandbox Protocol Hash"),
|
|
74
|
+
attributes: import_zod.z.record(
|
|
75
|
+
import_zod.z.union([import_zod.z.string(), import_zod.z.number(), import_zod.z.boolean()]),
|
|
76
|
+
{ description: "Sandbox Attributes" }
|
|
77
|
+
).optional(),
|
|
78
|
+
plugin: Verb.schemas.schema.describe("Sandbox Plugin").optional(),
|
|
79
|
+
accounts: accountMapSchema.optional(),
|
|
80
|
+
tzkt: TzKt.rawSchema.describe("TzKt config").optional()
|
|
81
|
+
}, { description: "Sandbox Configuration" });
|
|
82
|
+
var { schemas: generatedSchemas, factory } = (0, import_Base.default)({
|
|
83
|
+
rawSchema: rawSchema4,
|
|
84
|
+
internalSchema,
|
|
85
|
+
parseErrMsg: (value) => `${value} is not a valid sandbox configuration `,
|
|
86
|
+
unknownErrMsg: "Something went wrong trying to parse the sandbox configuration"
|
|
87
|
+
});
|
|
88
|
+
var { create, of, make } = factory;
|
|
89
|
+
var schemas6 = {
|
|
90
|
+
...generatedSchemas,
|
|
91
|
+
schema: generatedSchemas.schema.transform((val) => val)
|
|
92
|
+
};
|
|
93
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
94
|
+
0 && (module.exports = {
|
|
95
|
+
create,
|
|
96
|
+
factory,
|
|
97
|
+
generatedSchemas,
|
|
98
|
+
make,
|
|
99
|
+
of,
|
|
100
|
+
rawSchema,
|
|
101
|
+
schemas
|
|
102
|
+
});
|
|
103
|
+
//# sourceMappingURL=SandboxConfig.js.map
|