@veive/mod-validation-as v1.0.18
Veive SCA Validation Module
This package provides the interface and implementation for an operation validation module that adds functionality to the Veive smart account on the Koinos blockchain. Inspired by the ERC-7579 standard, it focuses on validating operations to ensure they meet specific criteria before execution. The ModValidation module is invoked through the is_valid_operation method of the smart account.
Installation
To install the package, use npm or yarn:
npm install @veive/mod-validation
Usage
Importing the Package
First, import the necessary components from the package:
import { modvalidation, Modvalidation, IModvalidation } from '@veive/mod-validation';
Example Implementation
Create a validation module by extending Modvalidation
:
import { Modvalidation } from '@veive/mod-validation';
class MyValidationModule extends Modvalidation {
// Your implementation here
}
Scripts
Build
To compile the package, run:
yarn build
Dist
To create a dist, run:
yarn dist
Contributing
Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.
License
This project is licensed under the MIT License. See the LICENSE file for details.