Skip to content
New issue

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

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

Already on GitHub? # to your account

Feat/lens aa #23

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
35 changes: 10 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,24 @@
# Clink Safe
Clink, the easiest way to send and receive crypto tokens.
# Micropay
Micropay, the easiest way to send and receive crypto tokens.

Using Clink, anyone can deposit and send tokens to another person whether or not they already have a crypto wallet with just a link. The kicker is… the link is a smart contract wallet!
Using Micropay, anyone can deposit and send tokens to another person whether or not they already have a crypto wallet with just a link. The kicker is… the link is a smart contract wallet!

Clink is a lightweight non custodial wallet designed to make transferring digital assets as easy as sending a link. Someone with crypto can create a Clink and send that link to anyone over any platform (text, discord, email, etc). The amazing thing is, the link is the smart contract wallet!
Micropay is a lightweight non custodial wallet designed to make transferring digital assets as easy as sending a link. Someone with crypto can create a Micropay and send that link to anyone over any platform (text, discord, email, etc). The amazing thing is, the link is the smart contract wallet!

### How it Works
1. Create a Clink Link
2. Share your Clink Link
1. Create a Micropay Link
2. Share your Micropay Link
3. Claim Reward

e.g.,

Consider Bob wants to send money to Alice But he doesn’t know Alice Address or any other details.

![Clink Safe Infra](https://github.com/punithbm/eth-micropay-superhack/assets/13044958/3fb0dfaf-827b-4bc8-a7b3-2f7a56cf1e42)


Clink trying to represent the idea of 'Digital Cash' better than any other cryptocurrency, asset or tool on the market today
Micropay trying to represent the idea of 'Digital Cash' better than any other cryptocurrency, asset or tool on the market today

### Inspiration
*There's still a tremendous amount of friction in crypto that holds back mainstream adoption. It's unreasonable to ask the general population to set up a 12- or 24-word seed phrase wallet, much less a hardware wallet, just to send a dollar or receive a commemorative NFT.*

### Why Does it Matter?

- Social and Email
- Send clinks at scale via email, twitter, discord etc.,
- Send Micropays at scale via email, twitter, discord etc.,
- In Real Life
- Distribute Clinks vai QR Code or NFC Tags at in person events
- Distribute Micropays vai QR Code or NFC Tags at in person events
- Web Apps
- Place a button to distribute Clinks on your Dapp

### Working Demo
![clink_demo](https://github.com/punithbm/eth-micropay-superhack/assets/13044958/032e630e-8dd7-4146-a1b9-6bbacc81f482)

### Complete Guide
Find the below step by step guid on how to do it
![Clink Safe Infra2](https://github.com/punithbm/eth-micropay-superhack/assets/13044958/760038db-765b-4a56-a45b-427184bd1447)
- Place a button to distribute Micropays on your Dapp
Binary file modified app/favicon.ico
Binary file not shown.
11 changes: 4 additions & 7 deletions constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
export const projectId =
"BI5-250tyqwU_79yFve_chx6hiE-f8iCxPHe0oqDpv-xU9dvGJ1p3JLo1y0AqzlMKDoZ_w0NLjxIFyNhxXJ6L6Y";
export const oauthClientId =
"97006979879-hpprsfnk927avhc0368fvbqjra6h5c4t.apps.googleusercontent.com";
export const projectId = "BI5-250tyqwU_79yFve_chx6hiE-f8iCxPHe0oqDpv-xU9dvGJ1p3JLo1y0AqzlMKDoZ_w0NLjxIFyNhxXJ6L6Y";
export const oauthClientId = "97006979879-hpprsfnk927avhc0368fvbqjra6h5c4t.apps.googleusercontent.com";
export const web3AuthVerifier = "micropay";
export const web3AuthLoginType = "google";
export const web3AuthClientId =
"BFWg2RH35EKxZJtntj1l-G2XU8AY0l-yFgFIs9iDbgKAW45ZxE9_qfj6COAWwI-RhOs2pN6OHwgZHgtoHjOlMFM";
export const productName = "Clink Safe";
export const web3AuthClientId = "BFWg2RH35EKxZJtntj1l-G2XU8AY0l-yFgFIs9iDbgKAW45ZxE9_qfj6COAWwI-RhOs2pN6OHwgZHgtoHjOlMFM";
export const productName = "Micropay Safe";
export const rainbowKitProjectId = "fb3037b60ba3165d90a7f1bb1a727cc5";
export const RE_DIGIT = new RegExp(/^\d+$/);
68 changes: 30 additions & 38 deletions pages/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,47 +12,39 @@ import ShareLink from "../ui_components/ShareLinkPage";
import MetaHead from "../ui_components/siteMeta";
import { BaseGoerli } from "../utils/chain/baseGoerli";

const { chains, publicClient, webSocketPublicClient } = configureChains(
[baseGoerli],
[publicProvider()],
);
const { chains, publicClient, webSocketPublicClient } = configureChains([baseGoerli], [publicProvider()]);

const config = createConfig({
autoConnect: true,
connectors: [
new MetaMaskConnector({ chains }),
new CoinbaseWalletConnector({
chains,
options: {
appName: productName,
jsonRpcUrl: BaseGoerli.info.url,
chainId: BaseGoerli.coinId,
},
}),
new InjectedConnector({
chains,
options: {
name: "Injected",
shimDisconnect: true,
},
}),
],
publicClient,
webSocketPublicClient,
autoConnect: true,
connectors: [
new MetaMaskConnector({ chains }),
new CoinbaseWalletConnector({
chains,
options: {
appName: productName,
jsonRpcUrl: BaseGoerli.info.url,
chainId: BaseGoerli.coinId,
},
}),
new InjectedConnector({
chains,
options: {
name: "Injected",
shimDisconnect: true,
},
}),
],
publicClient,
webSocketPublicClient,
});

export default function claim() {
const router = useRouter();
const uuid = router.asPath;
return (
<WagmiConfig config={config}>
<MetaHead
title="Clink | Unlock Your Crypto Rewards with Every Link"
description="Experience seamless crypto rewards and transactions through smart contract links with Clink."
imageUrl="https://designstring.s3.ap-south-1.amazonaws.com/personal/meta.png"
urlEndpoint=""
/>
<ShareLink uuid={uuid} />
</WagmiConfig>
);
const router = useRouter();
const uuid = router.asPath;
return (
<WagmiConfig config={config}>
<MetaHead title="Micropay | Unlock Your Crypto Rewards with Every Link" description="Experience seamless crypto rewards and transactions through smart contract links with Micropay." imageUrl="https://designstring.s3.ap-south-1.amazonaws.com/personal/meta.png" urlEndpoint="" />
<ShareLink uuid={uuid} />
</WagmiConfig>
);
}
Loading