Skip to content

Commit

Permalink
update polygon and optimism
Browse files Browse the repository at this point in the history
  • Loading branch information
scoronelhamilton committed Oct 9, 2022
1 parent aff7e1c commit 4057863
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 508 deletions.
2 changes: 1 addition & 1 deletion src/components/AppConfig.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getDefaultWallets, lightTheme, RainbowKitProvider, Theme } from '@rainbow-me/rainbowkit'
import { getDefaultWallets, lightTheme, RainbowKitProvider } from '@rainbow-me/rainbowkit'
import '@rainbow-me/rainbowkit/styles.css'
import { INFURA_ID } from 'config'
import { ReactElement } from 'react'
Expand Down
2 changes: 1 addition & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const INFURA_ID = '2717afb6bf164045b5d5468031b93f87'
export const INFURA_ID = '7624b6b795d248809eabd3dd3eaaf9f7'
export const ETHERSCAN_URL = 'https://goerli.etherscan.io'
222 changes: 1 addition & 221 deletions src/eth-sdk/abis/goerli/allyu.json
Original file line number Diff line number Diff line change
@@ -1,221 +1 @@
[
{
"inputs": [
{ "internalType": "uint256", "name": "feePerBill", "type": "uint256" },
{ "internalType": "address", "name": "daiContractAddress", "type": "address" }
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{ "inputs": [], "name": "CryptoMoney__FeeNotMet", "type": "error" },
{ "inputs": [], "name": "CryptoMoney__InvalidCode", "type": "error" },
{ "inputs": [], "name": "CryptoMoney__InvalidWord", "type": "error" },
{ "inputs": [], "name": "CryptoMoney__NoFeesToWithdraw", "type": "error" },
{ "inputs": [], "name": "CryptoMoney__NotApproved", "type": "error" },
{ "inputs": [], "name": "CryptoMoney__TransferFailed", "type": "error" },
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "uint256", "name": "billId", "type": "uint256" },
{ "indexed": true, "internalType": "address", "name": "funder", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }
],
"name": "BillFunded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "uint256", "name": "billId", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }
],
"name": "BillIssued",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "uint256", "name": "billId", "type": "uint256" },
{ "indexed": true, "internalType": "address", "name": "redeemer", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" }
],
"name": "BillRedeemed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "uint256", "name": "requestId", "type": "uint256" },
{ "indexed": true, "internalType": "address", "name": "requester", "type": "address" },
{ "indexed": false, "internalType": "uint256", "name": "amountPerBill", "type": "uint256" },
{ "indexed": false, "internalType": "uint256", "name": "billCount", "type": "uint256" }
],
"name": "NewRequest",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "claimFees",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "billId", "type": "uint256" },
{ "internalType": "uint256", "name": "amount", "type": "uint256" },
{ "internalType": "bytes", "name": "wordHash", "type": "bytes" }
],
"name": "fund",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getDaiContract",
"outputs": [{ "internalType": "contract IERC20", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getFeePerBill",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNextBillId",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getNextRequestId",
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "billId", "type": "uint256" }],
"name": "getOneBillFromBillId",
"outputs": [
{
"components": [
{ "internalType": "uint256", "name": "id", "type": "uint256" },
{ "internalType": "uint256", "name": "value", "type": "uint256" },
{ "internalType": "bytes32", "name": "wordHash", "type": "bytes32" },
{ "internalType": "bytes32", "name": "codeHash", "type": "bytes32" },
{ "internalType": "bool", "name": "isFunded", "type": "bool" },
{ "internalType": "bool", "name": "isRedeemed", "type": "bool" }
],
"internalType": "struct CryptoMoney.Bill",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "requestId", "type": "uint256" }],
"name": "getOneRequest",
"outputs": [
{
"components": [
{ "internalType": "uint256", "name": "amountPerBill", "type": "uint256" },
{ "internalType": "uint256", "name": "billCount", "type": "uint256" },
{ "internalType": "bool", "name": "isIssued", "type": "bool" },
{ "internalType": "address", "name": "requester", "type": "address" }
],
"internalType": "struct CryptoMoney.Request",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "requestId", "type": "uint256" },
{ "internalType": "bytes[]", "name": "codeHash", "type": "bytes[]" }
],
"name": "issueBills",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "billId", "type": "uint256" },
{ "internalType": "string", "name": "code", "type": "string" },
{ "internalType": "string", "name": "word", "type": "string" },
{ "internalType": "address", "name": "redeemAddress", "type": "address" }
],
"name": "redeem",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "amountPerBill", "type": "uint256" },
{ "internalType": "uint256", "name": "billCount", "type": "uint256" }
],
"name": "requestBills",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [{ "internalType": "uint256", "name": "updatedFee", "type": "uint256" }],
"name": "updateFee",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{ "internalType": "uint256", "name": "billId", "type": "uint256" },
{ "internalType": "string", "name": "word", "type": "string" }
],
"name": "verifyWord",
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
"stateMutability": "view",
"type": "function"
}
]
[{"inputs":[{"internalType":"uint256","name":"feePerBill","type":"uint256"},{"internalType":"address","name":"daiContractAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"CryptoMoney__FeeNotMet","type":"error"},{"inputs":[],"name":"CryptoMoney__InvalidCode","type":"error"},{"inputs":[],"name":"CryptoMoney__InvalidWord","type":"error"},{"inputs":[],"name":"CryptoMoney__NoFeesToWithdraw","type":"error"},{"inputs":[],"name":"CryptoMoney__NotApproved","type":"error"},{"inputs":[],"name":"CryptoMoney__TransferFailed","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"billId","type":"uint256"},{"indexed":true,"internalType":"address","name":"funder","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"BillFunded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"billId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"BillIssued","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"billId","type":"uint256"},{"indexed":true,"internalType":"address","name":"redeemer","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"BillRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"requestId","type":"uint256"},{"indexed":true,"internalType":"address","name":"requester","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountPerBill","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"billCount","type":"uint256"}],"name":"NewRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"claimFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"billId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"wordHash","type":"bytes"}],"name":"fund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getDaiContract","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getFeePerBill","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextBillId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextRequestId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"billId","type":"uint256"}],"name":"getOneBillFromBillId","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes32","name":"wordHash","type":"bytes32"},{"internalType":"bytes32","name":"codeHash","type":"bytes32"},{"internalType":"bool","name":"isFunded","type":"bool"},{"internalType":"bool","name":"isRedeemed","type":"bool"}],"internalType":"struct CryptoMoney.Bill","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"}],"name":"getOneRequest","outputs":[{"components":[{"internalType":"uint256","name":"amountPerBill","type":"uint256"},{"internalType":"uint256","name":"billCount","type":"uint256"},{"internalType":"bool","name":"isIssued","type":"bool"},{"internalType":"address","name":"requester","type":"address"}],"internalType":"struct CryptoMoney.Request","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"bytes[]","name":"codeHash","type":"bytes[]"}],"name":"issueBills","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"billId","type":"uint256"},{"internalType":"string","name":"code","type":"string"},{"internalType":"string","name":"word","type":"string"},{"internalType":"address","name":"redeemAddress","type":"address"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountPerBill","type":"uint256"},{"internalType":"uint256","name":"billCount","type":"uint256"}],"name":"requestBills","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"updatedFee","type":"uint256"}],"name":"updateFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"billId","type":"uint256"},{"internalType":"string","name":"word","type":"string"}],"name":"verifyWord","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Loading

2 comments on commit 4057863

@vercel
Copy link

@vercel vercel bot commented on 4057863 Oct 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

allyu-frontend – ./

allyu-frontend-git-main-allyu.vercel.app
allyu-frontend-allyu.vercel.app
allyu-frontend.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 4057863 Oct 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.