Skip to content

[Feat] verifyTransactionSemantic #25

Description

@wireless90
    /**
     * Verifies the semantic of a transaction.
     *
     * @param inputs The inputs data.
     * @param transaction The transaction payload.
     * @param time The unix time for which to do the validation, should be roughly the one of the milestone that will reference the transaction.
     * @returns The conflict reason.
     */
    static verifyTransactionSemantic(
        inputs: InputSigningData[],
        transaction: TransactionPayload,
        time: number,
    ): string {
        const conflictReason = callUtilsMethod({
            name: 'verifyTransactionSemantic',
            data: {
                inputs,
                transaction,
                time,
            },
        });
        return conflictReason;
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

UtilsUtils methodsenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions