Skip to content

Commit 0d7f4b6

Browse files
authored
Publish to npm with prepare script (#24)
* allow lib user set buffer for request price to pay * update tests * add prepare script to package.json * update version * update readme * update npm version
1 parent 9268b40 commit 0d7f4b6

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ This project provides a client-side SDK to request on-chain randomness from the
1111

1212
### 🌐 Supported Networks
1313

14-
| Network | Chain ID | Supported | Randomness Contract |
15-
|----------------------|-----------|-----------|-----------|
16-
| Filecoin Calibration | 314159 ||[0x91c7774C7476F3832919adE7690467DF91bfd919](https://calibration.filfox.info/en/address/0x91c7774C7476F3832919adE7690467DF91bfd919) |
17-
| Base Sepolia | 84532 || [0x455bfe4B1B4393b458d413E2B0778A95F9B84B82](https://sepolia.basescan.org/address/0x455bfe4B1B4393b458d413E2B0778A95F9B84B82) |
18-
| Polygon PoS | 137 || [0x455bfe4B1B4393b458d413E2B0778A95F9B84B82](https://polygonscan.com/address/0x455bfe4B1B4393b458d413E2B0778A95F9B84B82) |
14+
Please see the [list of supported networks](https://docs.dcipher.network/networks/randomness) in the dcipher documentation.
1915

2016
## 📦 Getting started
2117

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "randomness-js",
3-
"version": "1.0.4",
3+
"version": "1.0.6",
44
"description": "A library for consuming, verifying and using randomness from the dcipher network",
55
"source": "src/index.ts",
66
"main": "./dist/cjs/index.cjs",
@@ -31,6 +31,7 @@
3131
"build:esm": "esbuild src/index.ts --bundle --platform=browser --format=esm --outdir=dist/esm --sourcemap --target=es2020 --out-extension:.js=.mjs",
3232
"build:cjs": "esbuild src/index.ts --bundle --platform=node --format=cjs --outdir=dist/cjs --sourcemap --target=es2020 --out-extension:.js=.cjs",
3333
"build:types": "tsc",
34+
"prepare": "npm run build",
3435
"clean": "rm -rf dist",
3536
"lint": "eslint src",
3637
"lint:fix": "eslint --fix",

0 commit comments

Comments
 (0)