🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@xlera/convector-core-chaincode

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xlera/convector-core-chaincode

Convector base chaincode to use in conjunction with controllers and models

latest
Source
npmnpm
Version
1.3.10
Version published
Maintainers
1
Created
Source

Convector Base Chaincode

This module contains the code to build chaincodes using a model/controller system, where the models describe the different objects and controllers handle the business logic in a separate layer.

This is meant to be used with Hyperledger Fabric, and thus rely on the chaincode stub to access and persist data.

All the controllers' methods are registered using the convention controller_function, this way, if you want to invoke a function called create in a controller called person, you need to invoke the method person_create.

It's necessary to invoke the method initControllers after instantiate or upgrade the chaincode in order to initialize the controller mapping.

Keywords

typescript

FAQs

Package last updated on 20 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts