Skip to content

Commit

Permalink
fix(entropy): Update fortuna domain
Browse files Browse the repository at this point in the history
  • Loading branch information
m30m committed Feb 21, 2024
1 parent 698b894 commit 6bf6d3e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion fortuna/src/config/setup_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub struct SetupProviderOptions {
pub fee: u128,

/// The base URI for fortuna.
/// e.g., https://fortuna-staging.pyth.network
/// e.g., https://fortuna-staging.dourolabs.app
#[arg(long = "uri")]
pub base_uri: String,
}
Expand Down
4 changes: 2 additions & 2 deletions target_chains/ethereum/entropy_sdk/solidity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ If you are invoking this off-chain, the method also emits a `PythRandomEvents.Re
### 3. Fetch the provider's number

Fetch the provider's random number from them.
For the provider `0x6CC14824Ea2918f5De5C2f75A9Da968ad4BD6344` you can query the webservice at https://fortuna-staging.pyth.network :
For the provider `0x6CC14824Ea2918f5De5C2f75A9Da968ad4BD6344` you can query the webservice at https://fortuna-staging.dourolabs.app :

```typescript
await axios.get(
`https://fortuna-staging.pyth.network/v1/chains/${chainName}/revelations/${sequenceNumber}`
`https://fortuna-staging.dourolabs.app/v1/chains/${chainName}/revelations/${sequenceNumber}`
);
```

Expand Down
2 changes: 1 addition & 1 deletion target_chains/ethereum/examples/coin_flip/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Running coin flip prototcol.
tx : 0x3a59bb8c1aaa8c6ff97147bb3197e9b89c0d87174b0b6c32374fc62de6d8db94
sequence : 50
3. Retrieving provider's random number...
fetch url : https://fortuna-staging.pyth.network/v1/chains/optimism-goerli/revelations/50
fetch url : https://fortuna-staging.dourolabs.app/v1/chains/optimism-goerli/revelations/50
number : 0x760e53a19a4677ef671fde63db59462dfb3e09e94418e9962e2fa764026b8400
4. Revealing the result of the coin flip...
tx : 0x0549b93b12684187f73ddcaf8351ca4049867882c1b138989e15363a4d103220
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const argv = yargs(hideBin(process.argv))
.option("fortuna-url", {
description: "URL of the fortuna server for your chosen provider",
type: "string",
default: "https://fortuna-staging.pyth.network",
default: "https://fortuna-staging.dourolabs.app",
})
.option("chain-name", {
description:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ contract CoinFlip {
// from them in a provider-dependent manner.
//
// For the moment, the provider 0x6CC14824Ea2918f5De5C2f75A9Da968ad4BD6344 hosts a webservice at
// https://fortuna-staging.pyth.network/ that allows anyone to retrieve their random values.
// https://fortuna-staging.dourolabs.app/ that allows anyone to retrieve their random values.
// Fetch the following url:
// https://fortuna-staging.pyth.network/v1/chains/<chain id>/revelations/<sequence number>
// https://fortuna-staging.dourolabs.app/v1/chains/<chain id>/revelations/<sequence number>
//
// The list of supported chain ids is available here https://fortuna-staging.pyth.network/v1/chains
// The list of supported chain ids is available here https://fortuna-staging.dourolabs.app/v1/chains
//
// **Warning** users of this protocol can stall the protocol by choosing not to reveal their generated random number.
// Developers using Pyth Entropy should ensure that users are always incentivized (or at least, not disincentivized)
Expand Down

0 comments on commit 6bf6d3e

Please sign in to comment.