@polyjuice-provider/web3
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

@polyjuice-provider/web3

this is a sub-module of @polyjuice-provider.

Install

yarn add @polyjuice-provider/web3 

or

npm install --save @polyjuice-provider/web3 

Usage

read docs here

How to develop this module

build:

yarn build

before you can run test and an minimal example, you should run godwoken-kicker and create an .test.env file with some godwoken-polyjuice config.

cat > ./.test.env <<EOF
WEB3_JSON_RPC=<godwoken-web3 rpc>
WEB3_WS_JSON_RPC=<godwoken-web3 websocket rpc>
ROLLUP_TYPE_HASH=<godwoken rollup type hash>
ETH_ACCOUNT_LOCK_CODE_HASH=<eth account lock code hash>
EXAMPLE_CONTRACT_ADDRESS=<an example test contract deployed address>
PRIVATE_KEY=<your eth test private key, do not use in production>
ETH_ADDRESS=<your eth test address, match with private_key above>
EOF

in order to get EXAMPLE_CONTRACT_ADDRESS, you should deploy this test contract in godwoken-kicker.

test

    yarn test

start a minimal dapp example

    yarn example

Readme

Keywords

none

Package Sidebar

Install

npm i @polyjuice-provider/web3

Weekly Downloads

20

Version

0.1.5

License

MIT

Unpacked Size

64.9 kB

Total Files

19

Last publish

Collaborators

  • retric