Type alias WalletTemplateScriptTested

WalletTemplateScriptTested: WalletTemplateScript & {
    pushed?: boolean;
    tests: {
        [testId: string]: WalletTemplateScriptTest;
    };
}

Type declaration

  • Optional pushed?: boolean

    If set to true, indicates that this script should be wrapped in a push statement for testing.

    This is useful for scripts that serve as "bytecode templates" – e.g. formatted messages or signature preimages. These scripts are typically not evaluated as bytecode but appear within push statements elsewhere in the template.

    Defaults to false.

  • tests: {
        [testId: string]: WalletTemplateScriptTest;
    }

    One or more tests that can be used during development and during template validation to confirm the correctness of this tested script.

Generated using TypeDoc