Contract Kit
Greymass TypeScript library template, intended for libraries that work in any JavaScript context (node.js, Browser, React native), @types/node
are installed only for tests, don't rely on any node.js types or imports inside src/
(no buffer
, crypto
imports etc, they can be filled for browser but will bloat the bundle 100x)
Installation
The contract
package is distributed as a module on npm.
yarn add contract
# or
npm install --save contract
Usage
To generate the Contract helper for a specific Antelope contract, use the generate
make target:
make generate contract=<CONTRACT_NAME_HERE>
and your contract helper will be added to contracts/CONTRACT_NAME.ts
.
## Developing
You need [Make](https:
Clone the repository and run `make` to checkout all dependencies and build the project. See the [Makefile](./Makefile) for other useful targets. Before submitting a pull request make sure to run `make lint`.
---
Made with ☕️ & ❤️ by [Greymass](https: