Skip to content

Commit e973ce7

Browse files
authored
oinef (#36)
1 parent a328df6 commit e973ce7

File tree

6 files changed

+25
-223
lines changed

6 files changed

+25
-223
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"@fontsource/roboto": "^5.2.6",
6969
"@goplus/sdk-node": "^1.1.1",
7070
"@mui/material": "^7.2.0",
71+
"@react-native-async-storage/async-storage": "^2.2.0",
7172
"@react-three/drei": "latest",
7273
"@react-three/fiber": "latest",
7374
"@tailwindcss/cli": "^4.1.11",

packages/nextjs/app/dashboard/[id]/page.tsx

Lines changed: 0 additions & 213 deletions
Original file line numberDiff line numberDiff line change
@@ -150,219 +150,6 @@ const DashboardPage: NextPage = () => {
150150
},
151151
}));
152152

153-
// const tableData: CoinDataProps[] = [
154-
// {
155-
// data: {
156-
// id: "1",
157-
// date: new Date("2025-08-01T10:00:00Z"),
158-
// coin: {
159-
// name: "USDC",
160-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
161-
// },
162-
// merchant: "Coinbase",
163-
// amount: 120.5,
164-
// type: "pay",
165-
// status: "completed",
166-
// },
167-
// },
168-
// {
169-
// data: {
170-
// id: "2",
171-
// date: new Date("2025-08-02T11:15:00Z"),
172-
// coin: {
173-
// name: "USDC",
174-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
175-
// },
176-
// merchant: "Binance",
177-
// amount: 45.0,
178-
// type: "pay",
179-
// status: "pending",
180-
// },
181-
// },
182-
// {
183-
// data: {
184-
// id: "3",
185-
// date: new Date("2025-08-03T08:30:00Z"),
186-
// coin: {
187-
// name: "USDC",
188-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
189-
// },
190-
// merchant: "Kraken",
191-
// amount: 300.75,
192-
// type: "pay",
193-
// status: "completed",
194-
// },
195-
// },
196-
// {
197-
// data: {
198-
// id: "4",
199-
// date: new Date("2025-08-04T09:00:00Z"),
200-
// coin: {
201-
// name: "USDC",
202-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
203-
// },
204-
// merchant: "OKX",
205-
// amount: 87.9,
206-
// type: "pay",
207-
// status: "failed",
208-
// },
209-
// },
210-
// {
211-
// data: {
212-
// id: "5",
213-
// date: new Date("2025-08-05T12:00:00Z"),
214-
// coin: {
215-
// name: "USDC",
216-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
217-
// },
218-
// merchant: "Gemini",
219-
// amount: 210.0,
220-
// type: "pay",
221-
// status: "completed",
222-
// },
223-
// },
224-
// {
225-
// data: {
226-
// id: "6",
227-
// date: new Date("2025-08-06T14:00:00Z"),
228-
// coin: {
229-
// name: "USDC",
230-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
231-
// },
232-
// merchant: "Bybit",
233-
// amount: 160.25,
234-
// type: "pay",
235-
// status: "pending",
236-
// },
237-
// },
238-
// {
239-
// data: {
240-
// id: "7",
241-
// date: new Date("2025-08-07T16:00:00Z"),
242-
// coin: {
243-
// name: "USDC",
244-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
245-
// },
246-
// merchant: "KuCoin",
247-
// amount: 74.4,
248-
// type: "pay",
249-
// status: "completed",
250-
// },
251-
// },
252-
// {
253-
// data: {
254-
// id: "8",
255-
// date: new Date("2025-08-08T13:30:00Z"),
256-
// coin: {
257-
// name: "USDC",
258-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
259-
// },
260-
// merchant: "Bitfinex",
261-
// amount: 95.0,
262-
// type: "pay",
263-
// status: "failed",
264-
// },
265-
// },
266-
// {
267-
// data: {
268-
// id: "9",
269-
// date: new Date("2025-08-09T15:20:00Z"),
270-
// coin: {
271-
// name: "USDC",
272-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
273-
// },
274-
// merchant: "Crypto.com",
275-
// amount: 180.33,
276-
// type: "pay",
277-
// status: "completed",
278-
// },
279-
// },
280-
// {
281-
// data: {
282-
// id: "10",
283-
// date: new Date("2025-08-10T09:45:00Z"),
284-
// coin: {
285-
// name: "USDC",
286-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
287-
// },
288-
// merchant: "MoonPay",
289-
// amount: 33.1,
290-
// type: "pay",
291-
// status: "completed",
292-
// },
293-
// },
294-
// {
295-
// data: {
296-
// id: "11",
297-
// date: new Date("2025-08-11T10:05:00Z"),
298-
// coin: {
299-
// name: "USDC",
300-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
301-
// },
302-
// merchant: "Simplex",
303-
// amount: 250.0,
304-
// type: "pay",
305-
// status: "pending",
306-
// },
307-
// },
308-
// {
309-
// data: {
310-
// id: "12",
311-
// date: new Date("2025-08-12T11:25:00Z"),
312-
// coin: {
313-
// name: "USDC",
314-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
315-
// },
316-
// merchant: "Ramp",
317-
// amount: 410.2,
318-
// type: "pay",
319-
// status: "completed",
320-
// },
321-
// },
322-
// {
323-
// data: {
324-
// id: "13",
325-
// date: new Date("2025-08-13T12:15:00Z"),
326-
// coin: {
327-
// name: "USDC",
328-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
329-
// },
330-
// merchant: "Transak",
331-
// amount: 12.99,
332-
// type: "pay",
333-
// status: "failed",
334-
// },
335-
// },
336-
// {
337-
// data: {
338-
// id: "14",
339-
// date: new Date("2025-08-14T14:50:00Z"),
340-
// coin: {
341-
// name: "USDC",
342-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
343-
// },
344-
// merchant: "Binance US",
345-
// amount: 99.99,
346-
// type: "pay",
347-
// status: "completed",
348-
// },
349-
// },
350-
// {
351-
// data: {
352-
// id: "15",
353-
// date: new Date("2025-08-15T17:30:00Z"),
354-
// coin: {
355-
// name: "USDC",
356-
// icon: { src: "", alt: "USDC icon", width: 24, height: 24 },
357-
// },
358-
// merchant: "Robinhood",
359-
// amount: 135.0,
360-
// type: "pay",
361-
// status: "completed",
362-
// },
363-
// },
364-
// ];
365-
366153
const userData: UserDataProps[] = loadUserData();
367154

368155
return (

packages/nextjs/app/payment/merchant/page.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ import { AnimatePresence, motion } from "framer-motion";
55
// import { useRouter } from "next/navigation";
66
import type { NextPage } from "next";
77
import { useAccount } from "wagmi";
8-
import PaymentStatus from "~~/components/payment/PaymentStatus";
8+
// import PaymentStatus from "~~/components/payment/PaymentStatus";
99
import { ProgressBar } from "~~/components/payment/ProgressBar";
1010
import { PromptPayment } from "~~/components/payment/PromptPayment";
1111
import ShowQRCode from "~~/components/payment/ShowQRCode";
1212
import { RainbowKitCustomConnectButton } from "~~/components/scaffold-eth/RainbowKitCustomConnectButton";
13-
import { useScaffoldReadContract } from "~~/hooks/scaffold-eth";
13+
// import { useScaffoldReadContract } from "~~/hooks/scaffold-eth";
1414

1515
const MerchantPaymentFlow: NextPage = () => {
1616
const [step, setStep] = useState(1);
1717
const [amount, setAmount] = useState<number>(0);
18-
const [paymentRef, setPaymentRef] = useState<string>("");
19-
const [status, setStatus] = useState("");
18+
const [, setPaymentRef] = useState<string>("");
19+
const [, setStatus] = useState("");
2020
const { address } = useAccount();
2121
const steps = ["Enter Amount", "Scan QR", "Payment Status"];
2222

23-
const { data: isMerchant } = useScaffoldReadContract({
24-
contractName: "LyraOtcSeller",
25-
functionName: "isMerchant",
26-
args: [address],
27-
});
23+
// const { data: isMerchant } = useScaffoldReadContract({
24+
// contractName: "LyraOtcSeller",
25+
// functionName: "isMerchant",
26+
// args: [address],
27+
// });
2828

2929
const handleNext = (value: number) => {
3030
setAmount(value);

packages/nextjs/app/payment/user/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useRouter, useSearchParams } from "next/navigation";
55
import { AnimatePresence, motion } from "framer-motion";
66
import type { NextPage } from "next";
77
import { parseUnits } from "viem";
8-
import { useAccount, useChainId, useSwitchChain } from "wagmi";
8+
import { useChainId, useSwitchChain } from "wagmi";
99
import { CameraScanner } from "~~/components/payment/CameraScanner";
1010
import PaymentStatus from "~~/components/payment/PaymentStatus";
1111
import { ProgressBar } from "~~/components/payment/ProgressBar";

packages/nextjs/components/ui/price-chart.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const useWalletChartData = (accountId: string | undefined) => {
1010
return [];
1111
}
1212

13+
console.log(data);
14+
1315
return data;
1416
};
1517

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3880,6 +3880,17 @@ __metadata:
38803880
languageName: node
38813881
linkType: hard
38823882

3883+
"@react-native-async-storage/async-storage@npm:^2.2.0":
3884+
version: 2.2.0
3885+
resolution: "@react-native-async-storage/async-storage@npm:2.2.0"
3886+
dependencies:
3887+
merge-options: ^3.0.4
3888+
peerDependencies:
3889+
react-native: ^0.0.0-0 || >=0.65 <1.0
3890+
checksum: efbb9c801fb7eecfad1568d6a5e9d247db420b8ba8f1789d5b783e679432567a53cf54c7e7b5e6f315276f33d1df297253549e0cefef2e683539df346d2a1f2d
3891+
languageName: node
3892+
linkType: hard
3893+
38833894
"@react-three/drei@npm:latest":
38843895
version: 10.6.1
38853896
resolution: "@react-three/drei@npm:10.6.1"
@@ -18189,6 +18200,7 @@ __metadata:
1818918200
"@fontsource/roboto": ^5.2.6
1819018201
"@goplus/sdk-node": ^1.1.1
1819118202
"@mui/material": ^7.2.0
18203+
"@react-native-async-storage/async-storage": ^2.2.0
1819218204
"@react-three/drei": latest
1819318205
"@react-three/fiber": latest
1819418206
"@tailwindcss/cli": ^4.1.11

0 commit comments

Comments
 (0)