Skip to content

Commit

Permalink
v9.7.0: adds blockTime to each blockchain
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Oct 19, 2024
1 parent 84e4802 commit 224d49a
Show file tree
Hide file tree
Showing 15 changed files with 68 additions and 34 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ Blockchain data is provided in the following structure:
zero: String, // 0x0000000000000000000000000000000000000000
maxInt: String, // 115792089237316195423570985008687907853269984665640564039457584007913129639935
permit2: String, // 0x000000000022D473030F116dDEE9F6B43aC78BA3 (Permit2 contract address)
blockTime: Integer, // in ms e.g. ethereum 12000 (12s)
}
```

Expand Down
33 changes: 22 additions & 11 deletions dist/esm/index.js

Large diffs are not rendered by default.

33 changes: 22 additions & 11 deletions dist/umd/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-blockchains",
"moduleName": "Web3Blockchains",
"version": "9.6.9",
"version": "9.7.0",
"description": "JavaScript library containing aggregated information and abstractions for web3 blockchains.",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/blockchains/arbitrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ export default {
],
zero: '0x0000000000000000000000000000000000000000',
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935',
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3'
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3',
blockTime: 250, // 0.25s
}
3 changes: 2 additions & 1 deletion src/blockchains/avalanche.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ export default {
],
zero: '0x0000000000000000000000000000000000000000',
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935',
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3'
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3',
blockTime: 2000, // 2s
}
3 changes: 2 additions & 1 deletion src/blockchains/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ export default {
],
zero: '0x0000000000000000000000000000000000000000',
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935',
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3'
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3',
blockTime: 2000, // 2s
}
3 changes: 2 additions & 1 deletion src/blockchains/bsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ export default {
],
zero: '0x0000000000000000000000000000000000000000',
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935',
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3'
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3',
blockTime: 3000, // 3s
}
3 changes: 2 additions & 1 deletion src/blockchains/ethereum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/blockchains/fantom.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/blockchains/gnosis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/blockchains/optimism.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/blockchains/polygon.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@ export default {
],
zero: '0x0000000000000000000000000000000000000000',
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935',
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3'
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3',
blockTime: 2000, // 2s
}
3 changes: 2 additions & 1 deletion src/blockchains/solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ export default {
],
zero: '0',
maxInt: '340282366920938463463374607431768211455',
permit2: undefined
permit2: undefined,
blockTime: 500, // 0.5s
}
3 changes: 2 additions & 1 deletion src/blockchains/worldchain.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export default {
],
zero: '0x0000000000000000000000000000000000000000',
maxInt: '115792089237316195423570985008687907853269984665640564039457584007913129639935',
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3'
permit2: '0x000000000022D473030F116dDEE9F6B43aC78BA3',
blockTime: 2000, // 2s
}


0 comments on commit 224d49a

Please sign in to comment.