0.1.5 • Published 3 years ago
@polyjuice-provider/web3 v0.1.5
@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
3 years ago
0.1.5
3 years ago
0.1.2
4 years ago
0.1.3
4 years ago
0.0.1-rc14
4 years ago
0.0.1-rc15
4 years ago
0.1.0
4 years ago
0.1.1
4 years ago
0.0.1-rc13
4 years ago
0.0.1-rc12
4 years ago
0.0.1-rc12-beta.0
4 years ago
0.0.1-rc12-beta.1
4 years ago
0.0.1-rc11
4 years ago
0.0.1-rc10
4 years ago
0.0.1-rc9
4 years ago
0.0.1-rc8
4 years ago
0.0.1-rc7
4 years ago
0.0.1-rc6
4 years ago
0.0.1-rc5
4 years ago
0.0.1-rc4
4 years ago
0.0.1-rc3
4 years ago
0.0.1-rc2-test
4 years ago
0.0.1-rc2
4 years ago
0.0.1-rc1
4 years ago