# @worldsibu/convector-core-chaincode

> Convector base chaincode to use in conjunction with controllers and models

Latest version **1.3.8** (published 2019-09-03) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @worldsibu/convector-core-chaincode
pnpm add @worldsibu/convector-core-chaincode
yarn add @worldsibu/convector-core-chaincode
bun add @worldsibu/convector-core-chaincode
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.8 |
| Published | 2019-09-03 |
| First published | 2018-06-27 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 35.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 143 |
| Maintainers | diestrin |
| Keywords | typescript, chaincode, blockchain, hyperledger, solutions, environment, hyperledger fabric, smart contract, run, hurley, composer |

## Links

- npm: https://www.npmjs.com/package/@worldsibu/convector-core-chaincode
- Repository: https://github.com/hyperledger-labs/convector/tree/develop/%40worldsibu/convector-core-chaincode
- Homepage: https://worldsibu.tech/convector/convector-smart-contracts/
- npm.io page: https://npm.io/package/@worldsibu/convector-core-chaincode

## Dependencies (5)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.12
- [@worldsibu/convector-core](https://npm.io/package/@worldsibu/convector-core.md) ^1.3.8
- [@theledger/fabric-chaincode-utils](https://npm.io/package/@theledger/fabric-chaincode-utils.md) ^4.0.1
- [@worldsibu/convector-storage-stub](https://npm.io/package/@worldsibu/convector-storage-stub.md) ^1.3.8

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 1.3.8 (latest) — 2019-09-03
- 1.3.10-0-alpha.2486f88c (canary) — 2022-06-02
- 1.3.10-0-alpha.41e75dba — 2022-05-31
- 1.3.10-0-alpha.3f803885 — 2022-05-25
- 1.3.10-0-alpha.32accc48 — 2022-05-25
- 1.3.10-0-alpha.68696fd6 — 2022-05-24
- 1.3.10-0-alpha.b2b47722 — 2022-05-24
- 1.3.10-0-alpha.ab46703c — 2022-05-20
- 1.3.10-0-alpha.d9c98e51 — 2022-05-19
- 1.3.10-0-alpha.74462599 — 2022-05-19
- 1.3.9-0-alpha.013419ca — 2021-08-26
- 1.3.9-0-alpha.09192f1d — 2021-08-26
- 1.3.9-0-alpha.90c7d903 — 2021-02-17
- 1.3.9-0-alpha.b1b143ba — 2021-02-15
- 1.3.9-0-alpha.f9e11059 — 2021-02-12
- … 169 more at https://npm.io/package/@worldsibu/convector-core-chaincode/versions

## README

# 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](https://fabric-shim.github.io/ChaincodeStub.html) 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.

---
_Source: https://npm.io/package/@worldsibu/convector-core-chaincode · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
