devnet oracles

This commit is contained in:
De Facto 2021-02-20 21:57:39 +08:00
parent d22a7a02cd
commit 3b86476d94
4 changed files with 118 additions and 10 deletions

View File

@ -67,3 +67,14 @@ info: update {"description":"eth:usd","decimals":2,"roundID":"9","median":"2
info: update {"description":"btc:usd","decimals":2,"roundID":"22","median":"5743803","updatedAt":"37820552","createdAt":"37820552"}
info: update {"description":"btc:usd","decimals":2,"roundID":"23","median":"5740350","updatedAt":"37820565","createdAt":"37820565"}
```
# Devnet Oracles
The sandbox environment could be modified by anyone, and is not suitable for
development purposes. For a reliable devnet price feed, use [./deploy.dev.json](./deploy.dev.json).
Observe the devnet prices by running:
```
NETWORK=dev DEPLOY_FILE=deploy.dev.json yarn solink observe
```

31
config/setup.dev.json Normal file
View File

@ -0,0 +1,31 @@
{
"aggregators": {
"btc:usd": {
"decimals": 2,
"minSubmissions": 1,
"maxSubmissions": 13,
"restartDelay": 0,
"rewardAmount": 10000,
"rewardTokenAccount": "3oLHHTaRqNsuTMjsTtkVy8bock6Bx8gCmDxku4TurVj1",
"oracles": [
"solink"
]
},
"eth:usd": {
"decimals": 2,
"minSubmissions": 1,
"maxSubmissions": 13,
"restartDelay": 0,
"rewardAmount": 10000,
"rewardTokenAccount": "3oLHHTaRqNsuTMjsTtkVy8bock6Bx8gCmDxku4TurVj1",
"oracles": [
"solink"
]
}
},
"oracles": {
"solink": {
"owner": "Draee2EHoVoPkRrMXnh17EcJMxuyirFSBsfMHuNBy2bq"
}
}
}

76
deploy.dev.json Normal file
View File

@ -0,0 +1,76 @@
{
"aggregators": {
"btc:usd": {
"pubkey": {
"type": "PublicKey",
"base58": "8tawJxhUbVJV7Aiss8DBkYoN4ZA1vpNVwjNmUdgpMw7J"
},
"owner": {
"type": "PublicKey",
"base58": "Draee2EHoVoPkRrMXnh17EcJMxuyirFSBsfMHuNBy2bq"
},
"config": {
"description": "btc:usd",
"decimals": 2,
"minSubmissions": 1,
"maxSubmissions": 13,
"restartDelay": 0,
"rewardTokenAccount": {
"type": "PublicKey",
"base58": "3oLHHTaRqNsuTMjsTtkVy8bock6Bx8gCmDxku4TurVj1"
},
"rewardAmount": 10000
},
"oracles": {
"solink": {
"pubkey": {
"type": "PublicKey",
"base58": "Aqmq1RVMwYZoPaTZPAsCDjxsYcmyyNtfjx5HhwuEejvT"
},
"owner": {
"type": "PublicKey",
"base58": "Draee2EHoVoPkRrMXnh17EcJMxuyirFSBsfMHuNBy2bq"
}
}
}
},
"eth:usd": {
"pubkey": {
"type": "PublicKey",
"base58": "4X5QRNHs3saF35fhL7FJtPR58PeqoFmzgq82EiHqa9a9"
},
"owner": {
"type": "PublicKey",
"base58": "Draee2EHoVoPkRrMXnh17EcJMxuyirFSBsfMHuNBy2bq"
},
"config": {
"description": "eth:usd",
"decimals": 2,
"minSubmissions": 1,
"maxSubmissions": 13,
"restartDelay": 0,
"rewardTokenAccount": {
"type": "PublicKey",
"base58": "3oLHHTaRqNsuTMjsTtkVy8bock6Bx8gCmDxku4TurVj1"
},
"rewardAmount": 10000
},
"oracles": {
"solink": {
"pubkey": {
"type": "PublicKey",
"base58": "faD2Nb35rKQurydFEEgJVWjpAdqAWK5z34bpEEn1spr"
},
"owner": {
"type": "PublicKey",
"base58": "Draee2EHoVoPkRrMXnh17EcJMxuyirFSBsfMHuNBy2bq"
}
}
}
}
},
"programID": {
"type": "PublicKey",
"base58": "xazycZNMfCeDKNnjDmhBCk57nnjPWS22pa91za2W2dC"
}
}

View File

@ -1,10 +0,0 @@
{
"aggregatorProgram": {
"pubkey": "DErMSHHbyVisohfM6miHaxstZEAxD5GBq2RrkdcXEasy",
"secret": "7c6b942c8925723a53c2290a754b90ed173b49a0f2a4dbf1c6e593621dde535bb5d898b49db565cfb30d57e6b69af285ea49d33b2c30c50ca540f60384a57778"
},
"btc:usd": {
"pubkey": "3aTBom2uodyWkuVPiUkwCZ2HiFywdUx9tp7su7U2H4Nx",
"secret": "1e9d64a5459b70310f1d47ab5b0cc38dc515b5c628d08e2e291429f5da4768792649264661c8993855340c5b0665c1d702acbf7cd12fbaa3960cfcc05313ad55"
}
}