Skip to content

Commit d94bb8e

Browse files
authored
Merge pull request #1 from RequestNetwork/csb-drzn33/draft/youthful-microservice
fix: Changed goerli to sepolia, page state, gnosis logo
2 parents 2c04cc6 + 83c514b commit d94bb8e

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

app/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ enum APP_STATUS {
2525
}
2626

2727
export default function Home() {
28-
const [storageChain, setStorageChain] = useState("5");
29-
const [expectedAmount, setExpectedAmount] = useState("");
30-
const [currency, setCurrency] = useState(
31-
"5_0xBA62BCfcAaFc6622853cca2BE6Ac7d845BC0f2Dc"
28+
const [storageChain, setStorageChain] = useState(
29+
storageChains.keys().next().value,
3230
);
31+
const [currency, setCurrency] = useState(currencies.keys().next().value);
32+
const [expectedAmount, setExpectedAmount] = useState("");
3333
const [paymentRecipient, setPaymentRecipient] = useState("");
3434
const [payerIdentity, setPayerIdentity] = useState("");
3535
const [dueDate, setDueDate] = useState("");
@@ -60,7 +60,7 @@ export default function Home() {
6060
},
6161
expectedAmount: parseUnits(
6262
expectedAmount as `${number}`,
63-
currencies.get(currency)!.decimals
63+
currencies.get(currency)!.decimals,
6464
).toString(),
6565
payee: {
6666
type: Types.Identity.TYPE.ETHEREUM_ADDRESS,
@@ -100,7 +100,7 @@ export default function Home() {
100100
try {
101101
setStatus(APP_STATUS.PERSISTING_TO_IPFS);
102102
const request = await requestClient.createRequest(
103-
requestCreateParameters
103+
requestCreateParameters,
104104
);
105105

106106
setStatus(APP_STATUS.PERSISTING_ON_CHAIN);

config/currency.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ interface ICurrency extends Types.RequestLogic.ICurrency {
1212
// key: {chainId}_{checksummedAddress}
1313
export const currencies = new Map<string, ICurrency>([
1414
[
15-
"5_0xBA62BCfcAaFc6622853cca2BE6Ac7d845BC0f2Dc",
15+
"11155111_0x370DE27fdb7D1Ff1e1BaA7D11c5820a324Cf623C",
1616
{
1717
name: "FaucetToken",
1818
symbol: "FAU",
19-
value: "0xBA62BCfcAaFc6622853cca2BE6Ac7d845BC0f2Dc",
20-
chainId: 5,
21-
network: "goerli",
19+
value: "0x370DE27fdb7D1Ff1e1BaA7D11c5820a324Cf623C",
20+
chainId: 11155111,
21+
network: "sepolia",
2222
decimals: 18,
2323
type: Types.RequestLogic.CURRENCY.ERC20,
2424
},
2525
],
2626
[
27-
"5_0x07865c6E87B9F70255377e024ace6630C1Eaa37F",
27+
"11155111_0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
2828
{
2929
name: "USD Coin",
3030
symbol: "USDC",
31-
value: "0x07865c6E87B9F70255377e024ace6630C1Eaa37F",
32-
chainId: 5,
33-
network: "goerli",
34-
decimals: 18,
31+
value: "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
32+
chainId: 11155111,
33+
network: "sepolia",
34+
decimals: 6,
3535
type: Types.RequestLogic.CURRENCY.ERC20,
3636
},
3737
],

config/rainbow-kit.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import { configureChains, createConfig } from "wagmi";
1111
import {
1212
mainnet,
13-
goerli,
13+
sepolia,
1414
gnosis,
1515
polygon,
1616
celo,
@@ -26,10 +26,11 @@ import { publicProvider } from "wagmi/providers/public";
2626
export const { chains, publicClient, webSocketPublicClient } = configureChains(
2727
[
2828
mainnet,
29+
sepolia,
2930
{
3031
...gnosis,
3132
iconUrl:
32-
"https://raw.githubusercontent.com/gnosischain/media-kit/main/Logos/01%20Chain/Background/SVG/LogomarkChain-Vertical-Cream_onMoss.svg",
33+
"https://raw.githubusercontent.com/gnosischain/media-kit/main/Logos/Owl_Logo%20-%20Mark.svg",
3334
},
3435
polygon,
3536
optimism,
@@ -39,7 +40,6 @@ export const { chains, publicClient, webSocketPublicClient } = configureChains(
3940
celo,
4041
fantom,
4142
moonbeam,
42-
goerli,
4343
],
4444
[publicProvider()],
4545
);

config/storage-chain.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ interface StorageChain {
77
// key: {chainId}
88
export const storageChains = new Map<string, StorageChain>([
99
[
10-
"5",
10+
"11155111",
1111
{
12-
name: "Goerli",
12+
name: "Sepolia",
1313
type: "testnet",
14-
gateway: "https://goerli.gateway.request.network/",
14+
gateway: "https://sepolia.gateway.request.network/",
1515
},
1616
],
1717
[
1818
"100",
1919
{
2020
name: "Gnosis",
2121
type: "mainnet",
22-
gateway: "https://xdai.gateway.request.network/",
22+
gateway: "https://gnosis.gateway.request.network/",
2323
},
2424
],
2525
]);

0 commit comments

Comments
 (0)