Function walletTemplateToCompilerConfiguration
- walletTemplateToCompilerConfiguration(template): Pick<CompilerConfiguration, "entityOwnership" | "lockingScriptTypes" | "scenarios" | "scripts" | "unlockingScripts" | "unlockingScriptTimeLockTypes" | "variables">
Returns Pick<CompilerConfiguration, "entityOwnership" | "lockingScriptTypes" | "scenarios" | "scripts" | "unlockingScripts" | "unlockingScriptTimeLockTypes" | "variables">
Create a partial CompilerConfiguration from an WalletTemplate by extracting and formatting the
scripts
andvariables
properties.Note, if this WalletTemplate might be malformed, first validate it with importWalletTemplate.