Skip to content

Typescript wrapper for smart contract interaction (Adapted for post-quantum version of HyperLedger Besu, for CyberChain).

License

Notifications You must be signed in to change notification settings

bisite/cyberchain-smart-contract-wrapper

Repository files navigation

Smart Contract Wrapper (CyberChain)

Test CI npm version

Typescript wrapper for smart contract interaction (Adapted for post-quantum version of HyperLedger Besu, for the CyberChain project).

This is a library to interact with Ethereum EVM using the JSON-RPC API. It allows both calling pure and view methods and also sending transactions.

Installation

If you are using a npm managed project use:

npm install --save @cyberchain/smart-contract-wrapper

Usage

This library exports various utilities, along with the class SmartContractInterface, that allows the interaction with smart contracts using the ABI definition.

Using this class you can create a class for a smart contract, implementing the methods you want to use, here is an example: ERC20 Contract Wrapper

Documentation

Contract wrapper generator

For automatic generation of a smart contract wrappers, use the following utility:

Remember to replace @asanrom/smart-contract-wrapper with @cyberchain/smart-contract-wrapper when generating the wrappers.

About

Typescript wrapper for smart contract interaction (Adapted for post-quantum version of HyperLedger Besu, for CyberChain).

Resources

License

Stars

Watchers

Forks

Packages

No packages published