1.0.12 • Published 11 months ago

@hailstonelabs/configx-wombat v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@hailstonelabs/configx-wombat

This package is used to pre-build some configs (e.g. asset) in Wombat dapp.

Publish to NPM

Please use it locally before publish to NPM.

Login NPM: npm adduser
Publish latest version : npm publish

Testing

Uncomment main() in src/index.ts

Example config will generated at src/example/generatedConfig

// uncomment it for testing purpose
//main()
$ yarn start:dev

Use it to frontend repo locally

To install and set up the library locally

Full path example: etc. ...blockchain/wombat/configx-wombat/hailstonelabs-configx-wombat-v1.0.7.tgz

Pump verison in package.json before pack.

$ yarn build
$ yarn pack
$ yarn add <FULL_PATH>

Installation

To install and set up the library, run:

$ yarn add @hailstonelabs/configx-wombat

Use

  1. Create a configx.json
{
  "abis": {
    "masterWombat": {
      "path": "",
      "address": {
        "56": "0x489833311676B566f888119c29bd997Dc6C95830",
        "42161": "0x62A83C6791A3d7950D823BB71a38e47252b6b6F4",
        "97": "0x8C0e9334DBFAC1b9184bC01Ef638BA705cc13EaF"
      }
    }
  }
}
  1. Add a script below to package.json
"postinstall": "configx-wombat"
  1. run:
$ yarn postinstall or yarn install
1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

1 year ago

1.0.11

12 months ago

1.0.10

12 months ago

1.0.12

11 months ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago