0.1.5 • Published 2 years ago

@polyjuice-provider/web3 v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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
0.1.4

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.3

2 years ago

0.0.1-rc14

2 years ago

0.0.1-rc15

2 years ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.1-rc13

3 years ago

0.0.1-rc12

3 years ago

0.0.1-rc11

3 years ago

0.0.1-rc10

3 years ago

0.0.1-rc9

3 years ago

0.0.1-rc8

3 years ago

0.0.1-rc7

3 years ago

0.0.1-rc6

3 years ago

0.0.1-rc5

3 years ago

0.0.1-rc4

3 years ago

0.0.1-rc3

3 years ago

0.0.1-rc2-test

3 years ago

0.0.1-rc2

3 years ago

0.0.1-rc1

3 years ago