You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-17Lines changed: 10 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -382,7 +382,7 @@ yarn simulate:whitelist
382
382
383
383
* βοΈ Reverts if no valid prices are available
384
384
385
-
**### π€ Key Insights:**
385
+
### π€ Key Insights:
386
386
387
387
-**Economic Incentives**: Nodes stake ETH and can be slashed for bad behavior, where in contrast, good behavior rewards the nodes with ORA token
388
388
-**Decentralized**: Anyone can participate by staking, no central authority needed
@@ -402,7 +402,7 @@ yarn simulate:staking
402
402
403
403
π€ This will start automated bots that simulate honest and malicious node behavior, frequent and stale reports, and demonstrate how slashing and median aggregation impact the reported price. You can update the price variance and skip probability from the front-end as well.
404
404
405
-
**### π₯ Goals:**
405
+
### π₯ Goals:
406
406
407
407
- Understand how economic incentives drive honest behavior
408
408
- See how slashing mechanisms enforce data freshness
@@ -471,7 +471,7 @@ sequenceDiagram
471
471
472
472
π Open the `packages/hardhat/contracts/02_Optimistic/OptimisticOracle.sol` file to implement the optimistic oracle functionality.
@@ -502,7 +502,7 @@ Here are more granular instructions on setting up the EventAssertion struct:
502
502
- reward should be `msg.value`
503
503
- bond should be `FIXED_BOND`
504
504
- startTime = `startTime`
505
-
- endTime = `endTIme`
505
+
- endTime = `endTime`
506
506
- description = `description`
507
507
- any remaining properties can be initialized with the default values (`false`, `address(0)`, etc.)
508
508
@@ -815,7 +815,7 @@ This function enables the asserter to get a refund of their posted reward when n
815
815
816
816
This is the method that the decider will call to settle whether the proposer or disputer are correct.
817
817
818
-
It should be;
818
+
It should be:
819
819
820
820
* π§ββοΈ Only callable by the `decider` contract
821
821
@@ -973,7 +973,7 @@ yarn simulate:optimistic
973
973
974
974
π€ This will start automated bots that create assertions, propose outcomes, dispute proposals, and settle via the decider, so you can observe rewards, bonds, fees, and timing windows in a realistic flow.
975
975
976
-
**### π₯ Goals:**
976
+
### π₯ Goals:
977
977
978
978
- Users can assert events with descriptions and time windows
979
979
- Users can propose outcomes for asserted events
@@ -987,23 +987,16 @@ yarn simulate:optimistic
987
987
988
988
π§ Now let's analyze the strengths and weaknesses of each oracle design.
|**Security**| Low (trusted authority) | Medium (economic incentives) | High (dispute resolution) |
999
-
1000
995
|**Decentralization**| Low | High | Medium |
1001
-
1002
996
|**Cost**| Low | Medium | High |
1003
-
1004
997
|**Complexity**| Simple | Medium | Complex |
1005
998
1006
-
**### π€ Key Trade-offs:**
999
+
### π€ Key Trade-offs:
1007
1000
1008
1001
1.**Whitelist Oracle:**
1009
1002
@@ -1037,7 +1030,7 @@ yarn simulate:optimistic
1037
1030
1038
1031
- β More complex
1039
1032
1040
-
**### π― Understanding the "Why":**
1033
+
### π― Understanding the "Why":
1041
1034
1042
1035
Each oracle design solves different problems:
1043
1036
@@ -1083,7 +1076,7 @@ Each oracle design solves different problems:
1083
1076
1084
1077
> π¦ Since we have deployed to a public testnet, you will now need to connect using a wallet you own or use a burner wallet. By default π₯ `burner wallets` are only available on `hardhat` . You can enable them on every chain by setting `onlyLocalBurnerWallet: false` in your frontend config (`scaffold.config.ts` in `packages/nextjs/`)
1085
1078
1086
-
**#### Configuration of Third-Party Services for Production-Grade Apps.**
1079
+
#### Configuration of Third-Party Services for Production-Grade Apps.
1087
1080
1088
1081
By default, π Scaffold-ETH 2 provides predefined API keys for popular services such as Alchemy and Etherscan. This allows you to begin developing and testing your applications more easily, avoiding the need to register for these services.
0 commit comments