fix(entropy): Update fortuna domain

This commit is contained in:
Amin Moghaddam 2024-02-21 09:02:57 +01:00 committed by Amin Moghaddam
parent 698b894ca6
commit cfe8d0f777
5 changed files with 8 additions and 8 deletions

View File

@ -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,
}

View File

@ -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}`
);
```

View File

@ -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

View File

@ -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:

View File

@ -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)