Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

U3 #519

Merged
merged 57 commits into from
Feb 2, 2024
Merged

U3 #519

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
aaa0344
Merge pull request #13 from us3r-network/u3-dev
sin-bufan Jul 27, 2023
5099614
Merge pull request #52 from us3r-network/u3-dev
sin-bufan Sep 5, 2023
f59abf7
Merge pull request #73 from us3r-network/u3-dev
sin-bufan Sep 8, 2023
23de39a
Merge pull request #81 from us3r-network/u3-dev
sin-bufan Sep 12, 2023
42523af
Merge pull request #87 from us3r-network/u3-dev
sin-bufan Sep 13, 2023
2a7f637
Merge pull request #92 from us3r-network/u3-dev
sin-bufan Sep 14, 2023
8168bc2
Merge pull request #98 from us3r-network/u3-dev
sin-bufan Sep 15, 2023
f4770cd
Merge pull request #108 from us3r-network/u3-dev
sin-bufan Sep 18, 2023
f5d229f
Merge pull request #116 from us3r-network/u3-dev
sin-bufan Sep 21, 2023
b9a22ba
Merge pull request #125 from us3r-network/u3-dev
sin-bufan Sep 26, 2023
79468a2
Merge pull request #136 from us3r-network/u3-dev
sin-bufan Sep 27, 2023
5c61634
Merge pull request #145 from us3r-network/u3-dev
sin-bufan Oct 8, 2023
5e6d9d5
Merge pull request #160 from us3r-network/u3-dev
sin-bufan Oct 17, 2023
e98a177
Merge pull request #171 from us3r-network/u3-dev
sin-bufan Oct 20, 2023
42cb8c8
Merge pull request #194 from us3r-network/u3-dev
sin-bufan Oct 26, 2023
3c50e70
Merge pull request #210 from us3r-network/u3-dev
sin-bufan Oct 30, 2023
4b2e4da
Merge pull request #212 from us3r-network/u3-dev
sin-bufan Oct 30, 2023
5923e24
Merge pull request #230 from us3r-network/u3-dev
sin-bufan Nov 6, 2023
fad4c27
Merge pull request #238 from us3r-network/u3-dev
sin-bufan Nov 9, 2023
6616715
Merge pull request #249 from us3r-network/u3-dev
sin-bufan Nov 13, 2023
526d67c
Merge pull request #255 from us3r-network/u3-dev
sin-bufan Nov 16, 2023
2af2210
Merge pull request #263 from us3r-network/u3-dev
sin-bufan Nov 17, 2023
edfb06d
Merge pull request #268 from us3r-network/u3-dev
sin-bufan Nov 20, 2023
ba7aa17
Merge pull request #271 from us3r-network/u3-dev
sin-bufan Nov 20, 2023
79ace98
Merge pull request #293 from us3r-network/u3-dev
sin-bufan Nov 24, 2023
cd372b9
Merge pull request #308 from us3r-network/u3-dev
sin-bufan Nov 29, 2023
d5da68b
Merge pull request #323 from us3r-network/u3-dev
sin-bufan Dec 1, 2023
289764b
Merge pull request #330 from us3r-network/u3-dev
sin-bufan Dec 1, 2023
4defdfe
Merge pull request #350 from us3r-network/u3-dev
sin-bufan Dec 7, 2023
d244f3f
Merge pull request #356 from us3r-network/u3-dev
sin-bufan Dec 11, 2023
6a2aebc
Merge pull request #357 from us3r-network/u3-dev
sin-bufan Dec 11, 2023
a5a62fa
Merge pull request #365 from us3r-network/u3-dev
sin-bufan Dec 12, 2023
519b0a0
Merge pull request #371 from us3r-network/u3-dev
sin-bufan Dec 13, 2023
99644e4
Merge pull request #377 from us3r-network/u3-dev
sin-bufan Dec 14, 2023
6e5ef81
Merge pull request #381 from us3r-network/u3-dev
sin-bufan Dec 15, 2023
e810617
Merge pull request #399 from us3r-network/u3-dev
sin-bufan Dec 20, 2023
a4b5525
Merge pull request #416 from us3r-network/u3-dev
sin-bufan Dec 27, 2023
76e09b2
Merge pull request #421 from us3r-network/u3-dev
sin-bufan Dec 28, 2023
660e327
Merge pull request #423 from us3r-network/u3-dev
Tonyce Dec 28, 2023
792d52c
Merge pull request #425 from us3r-network/u3-dev
Tonyce Dec 28, 2023
d90150c
Merge pull request #432 from us3r-network/u3-dev
sin-bufan Dec 29, 2023
c154591
Merge pull request #436 from us3r-network/u3-dev
sin-bufan Jan 3, 2024
b06d6cc
Merge pull request #440 from us3r-network/u3-dev
Tonyce Jan 5, 2024
d4db6e7
Merge pull request #448 from us3r-network/u3-dev
Tonyce Jan 9, 2024
56cb894
Merge pull request #450 from us3r-network/u3-dev
sin-bufan Jan 10, 2024
fa0c156
Merge pull request #469 from us3r-network/u3-dev
Tonyce Jan 20, 2024
ca8cb69
Merge pull request #476 from us3r-network/u3-dev
sin-bufan Jan 23, 2024
3371b79
Merge pull request #479 from us3r-network/u3-dev
Tonyce Jan 23, 2024
f62b2bb
Merge pull request #484 from us3r-network/u3-dev
sin-bufan Jan 24, 2024
b40dae7
Merge pull request #490 from us3r-network/u3-dev
sin-bufan Jan 25, 2024
3742d02
Merge pull request #499 from us3r-network/u3-dev
sin-bufan Jan 26, 2024
573c8fe
Merge pull request #502 from us3r-network/u3-dev
Tonyce Jan 28, 2024
c582b99
Merge pull request #515 from us3r-network/u3-dev
Tonyce Feb 1, 2024
32283cd
fix: switch network
Feb 2, 2024
eb4797d
Merge pull request #517 from us3r-network/B-signerChain-ttang
Tonyce Feb 2, 2024
91c21eb
fix: action param
Feb 2, 2024
ffdf95c
Merge pull request #518 from us3r-network/B-signerChain-ttang
Tonyce Feb 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/u3/src/components/social/Embed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ function EmbedCastFrame({
url: Buffer.from(data.url),
buttonIndex: index,
castId,
inputText: Buffer.from(''),
},
{
fid: currFid,
Expand Down
14 changes: 12 additions & 2 deletions apps/u3/src/components/social/farcaster/signupv2/AddAccountKey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@ import { optimism } from 'viem/chains';
import { toast } from 'react-toastify';
import { NobleEd25519Signer, ViemWalletEip712Signer } from '@farcaster/hub-web';
import { useConnectModal } from '@rainbow-me/rainbowkit';
import { useAccount, usePublicClient, useWalletClient } from 'wagmi';
import {
useAccount,
useNetwork,
usePublicClient,
useWalletClient,
} from 'wagmi';
import {
waitForTransaction,
writeContract,
prepareWriteContract,
switchNetwork,
} from '@wagmi/core';
import * as ed25519 from '@noble/ed25519';

Expand Down Expand Up @@ -37,6 +43,7 @@ export default function AddAccountKey({
const { address } = useAccount();
const account = useAccount();
const wallet = useWalletClient();
const network = useNetwork();

const publicClient = usePublicClient({
chainId: optimism.id,
Expand All @@ -59,6 +66,9 @@ export default function AddAccountKey({
setSigner(ed25519Signer);
return;
}
if (network.chain?.id !== optimism.id) {
await switchNetwork({ chainId: optimism.id });
}
// const privateKey = ed25519.utils.randomPrivateKey();
// const publicKey = toHex(ed25519.getPublicKey(privateKey));
const privateKey = ed25519.utils.randomPrivateKey();
Expand Down Expand Up @@ -118,7 +128,7 @@ export default function AddAccountKey({
console.error(error);
toast.error(error.message);
}
}, [fid, account, publicClient]);
}, [fid, account, publicClient, network]);

return (
<div
Expand Down
Loading