@pulsartronic/entropy 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ contract ABCEntropyExample is IEntropyConsumer {
|
|
|
47
47
|
|
|
48
48
|
constructor() {
|
|
49
49
|
// Arbitrum Sepolia example address.
|
|
50
|
-
abc_entropy = IABCEntropy(
|
|
50
|
+
abc_entropy = IABCEntropy(0x295A56c7ed8083c33c23C125187A0E840dc7E379);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
function get_entropy(bytes32 user_entropy) external payable {
|
|
@@ -95,13 +95,13 @@ contract ABCEntropyExample is IEntropyConsumer {
|
|
|
95
95
|
- Switch your Web3 wallet (MetaMask) to **Arbitrum Sepolia**.
|
|
96
96
|
- Go to the **Deploy & Run Transactions** tab.
|
|
97
97
|
- Set *Environment* to **Injected Provider - MetaMask**.
|
|
98
|
-
- The contract is pre-configured with the testnet oracle address (`
|
|
98
|
+
- The contract is pre-configured with the testnet oracle address (`0x295A56c7ed8083c33c23C125187A0E840dc7E379`).
|
|
99
99
|
- Call `get_entropy` passing some test bytes32 data (e.g., `0x1234...`) and attach the required ETH fee (check `get_fee` first if needed)!
|
|
100
100
|
|
|
101
101
|
## Features
|
|
102
102
|
|
|
103
103
|
- **Verifiable:** every number ships with a proof that anyone can check on-chain.
|
|
104
|
-
- **Fast:** results arrive in your callback within
|
|
104
|
+
- **Fast:** results arrive in your callback within a few seconds on supported chains.
|
|
105
105
|
- **Predictable cost:** the fee for a request is readable from the contract with `get_fee(callback_gas_limit)`.
|
|
106
106
|
- **Simple to integrate:** one request function, one callback. No off-chain infrastructure to run.
|
|
107
107
|
|
|
@@ -110,14 +110,12 @@ contract ABCEntropyExample is IEntropyConsumer {
|
|
|
110
110
|
### Mainnets
|
|
111
111
|
| Network | Contract |
|
|
112
112
|
|---|---|
|
|
113
|
-
| Ethereum | `0x0000000000000000000000000000000000000000` |
|
|
114
113
|
| Arbitrum | `0x0000000000000000000000000000000000000000` |
|
|
115
114
|
|
|
116
115
|
### Testnets
|
|
117
116
|
| Network | Contract |
|
|
118
117
|
|---|---|
|
|
119
|
-
|
|
|
120
|
-
| Arbitrum | `0xBfBfcbc03E3A3c40656b23fcfdb96A48232B8C3f` |
|
|
118
|
+
| Arbitrum | `0x295A56c7ed8083c33c23C125187A0E840dc7E379` |
|
|
121
119
|
|
|
122
120
|
|
|
123
121
|
## Security model
|