Skip to content
A code generation tool for purescript-web3
Branch: master
Clone or download
Latest commit 294c307 Dec 14, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
abi-data added ability to handle multi-arity functions (#53) Jun 5, 2018
.gitignore remove package-lock.json (#42) Apr 16, 2018
.travis.yml removed psc-package (#22) Feb 14, 2018
LICENSE Create LICENSE Oct 23, 2017
bower.json 0.12 Updates (#57) Dec 14, 2018
package.json 0.12 Updates (#57) Dec 14, 2018


Latest release purescript-web3-generator on Pursuit Build status

Generats purescript modules from Solidity ABIs


  • npm
  • psc-package

Getting Started

> git clone
> cd purescript-web3-generator
> npm install
> pulp build
> pulp test

How to use it

For a complete example that follows the steps below, see purescript-web3-example.

We use purescript-web3-generator in the absence of template-purescript. Suggested usage is as follows:

  1. Create a directory generator/ in your project with a file that looks like this
module Generator where

import Data.GeneratorMain (generatorMain)

main = generatorMain
  1. From there, add a build step
pulp run -m Generator --src-path generator -- --abis <abis> --dest src --module Contracts

(note that we specify both a different source directory than src and a different module Generator that purs is looking for main in)

Until this issue is fixed, we have to temporarily replace the step above with something like this

pulp build -m Generator --src-path generator --to generator.js
node generator.js --abis <abis> --dest src --module Contracts
rm generator.js
  1. Now you should have created contract modules for each contract into your src/Contracts directory that your code can depend on. you could use --module MyApp.Contracts for example too and it will result in modules created in src/MyApp/Contracts


Module documentation is published on Pursuit.


You can’t perform that action at this time.