125 lines
4.6 KiB
TypeScript
125 lines
4.6 KiB
TypeScript
export const INITIAL_ETH_PRICE = 4000;
|
|
|
|
export const SIMPLE_ORACLE_ABI = [
|
|
{
|
|
inputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "constructor",
|
|
},
|
|
{
|
|
anonymous: false,
|
|
inputs: [
|
|
{
|
|
indexed: false,
|
|
internalType: "uint256",
|
|
name: "newPrice",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "PriceUpdated",
|
|
type: "event",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "getPrice",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256",
|
|
},
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "price",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "_newPrice",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
name: "setPrice",
|
|
outputs: [],
|
|
stateMutability: "nonpayable",
|
|
type: "function",
|
|
},
|
|
{
|
|
inputs: [],
|
|
name: "timestamp",
|
|
outputs: [
|
|
{
|
|
internalType: "uint256",
|
|
name: "",
|
|
type: "uint256",
|
|
},
|
|
],
|
|
stateMutability: "view",
|
|
type: "function",
|
|
},
|
|
];
|
|
|
|
export const QUESTIONS_FOR_OO: string[] = [
|
|
"Did ETH/USD exceed $3,000 at 00:00 UTC on {MONTH} {DAY}, {YEAR}?",
|
|
"Did the BTC/ETH ratio fall below 14 on {MONTH} {DAY}, {YEAR}?",
|
|
"Did Uniswap's TVL exceed $10B on {MONTH} {DAY}, {YEAR}?",
|
|
"Did the Ethereum Cancun upgrade activate before {MONTH} {DAY}, {YEAR}?",
|
|
"Did the average gas price on Ethereum exceed 200 gwei on {MONTH} {DAY}, {YEAR}?",
|
|
"Did Ethereum's staking participation rate exceed 25% on {MONTH} {DAY}, {YEAR}?",
|
|
"Did Base chain have more than 1M daily transactions on {MONTH} {DAY}, {YEAR}?",
|
|
"Did the SEC approve a Bitcoin ETF before {MONTH} {DAY}, {YEAR}?",
|
|
"Did OpenSea's trading volume exceed $500M in {MONTH} {YEAR}?",
|
|
"Did Farcaster have more than 10K active users on {MONTH} {DAY}, {YEAR}?",
|
|
"Did ENS domains exceed 5M total registrations before {MONTH} {YEAR}?",
|
|
"Did the total bridged USDC on Arbitrum exceed $2B on {MONTH} {DAY}, {YEAR}?",
|
|
"Did Optimism's native token OP increase above $1.50 on {MONTH} {DAY}, {YEAR}?",
|
|
"Did Aave v3 have higher borrow volume than v2 on {MONTH} {DAY}, {YEAR}?",
|
|
"Did Compound see more than 1,000 liquidations on {MONTH} {DAY}, {YEAR}?",
|
|
"Did BTC's 24-hour volume exceed $50B on {MONTH} {DAY}, {YEAR}?",
|
|
"Did Real Madrid win the UEFA Champions League Final in {YEAR}?",
|
|
"Did G2 Esports win a major tournament in {MONTH} {YEAR}?",
|
|
"Did the temperature in New York exceed 35°C on {MONTH} {DAY}, {YEAR}?",
|
|
"Did it rain more than 50mm in London on {MONTH} {DAY}, {YEAR}?",
|
|
"Did Tokyo experience an earthquake of magnitude 5.0 or higher in {MONTH} {YEAR}?",
|
|
"Did the Nasdaq Composite fall more than 3% on {MONTH} {DAY}, {YEAR}?",
|
|
"Did the S&P 500 set a new all-time high on {MONTH} {DAY}, {YEAR}?",
|
|
"Did the US unemployment rate drop below 4% in {MONTH} {YEAR}?",
|
|
"Did the average global temperature for {MONTH} {YEAR} exceed that of the previous year?",
|
|
"Did gold price exceed $2,200/oz on {MONTH} {DAY}, {YEAR}?",
|
|
"Did YouTube's most viewed video gain more than 10M new views in {MONTH} {YEAR}?",
|
|
"Did the population of India officially surpass China according to the UN in {YEAR}?",
|
|
"Did the UEFA Euro 2024 Final have more than 80,000 attendees in the stadium?",
|
|
"Did a pigeon successfully complete a 500km race in under 10 hours in {MONTH} {YEAR}?",
|
|
"Did a goat attend a university graduation ceremony wearing a cap and gown on {MONTH} {DAY}, {YEAR}?",
|
|
"Did someone eat 100 chicken nuggets in under 10 minutes on {MONTH} {DAY}, {YEAR}?",
|
|
"Did a cat walk across a live TV weather report in {MONTH} {YEAR}?",
|
|
"Did a cow escape from a farm and get caught on camera riding a water slide in {YEAR}?",
|
|
"Did a man legally change his name to 'Bitcoin McMoneyface' on {MONTH} {DAY}, {YEAR}?",
|
|
"Did a squirrel steal a GoPro and film itself on {MONTH} {DAY}, {YEAR}?",
|
|
"Did someone cosplay as Shrek and complete a full marathon on {MONTH} {DAY}, {YEAR}?",
|
|
"Did a group of people attempt to cook the world's largest pancake using a flamethrower?",
|
|
"Did a man propose using a pizza drone delivery on {MONTH} {DAY}, {YEAR}?",
|
|
"Did a woman knit a sweater large enough to cover a school bus in {MONTH} {YEAR}?",
|
|
"Did someone attempt to break the world record for most dad jokes told in 1 hour?",
|
|
"Did an alpaca accidentally join a Zoom meeting for a tech startup on {MONTH} {DAY}, {YEAR}?",
|
|
];
|