Skip to content

Commit

Permalink
Merge branch 'prod' into bug/max-withdraw
Browse files Browse the repository at this point in the history
  • Loading branch information
akiraonstarknet committed Sep 30, 2024
2 parents 09fe91a + 844b062 commit 94413ea
Show file tree
Hide file tree
Showing 24 changed files with 6,091 additions and 211 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@
"contributions": [
"code"
]
},
{
"login": "Gift-Naomi",
"name": "Mystic",
"avatar_url": "https://avatars.githubusercontent.com/u/149405096?v=4",
"profile": "https://github.com/Gift-Naomi",
"contributions": [
"code"
]
}
]
}
8 changes: 8 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
NEXT_PUBLIC_RPC_URL=
RPC_URL=
HOSTNAME=http://localhost:3000

# Referral and Signing storage DB, not required unless u r testing this feature
DATABASE_URL=

# OG NFT Signer. Not required unless u r testing this feature
# Note: Below sample addresses are for Sepolia testnet
ACCOUNT_PK=0x0574ba4998dd9aedf1c4d6e56b747b29256a795bc3846437d121cd64b972bdd8
NEXT_PUBLIC_OG_NFT_CONTRACT=0x3cb654f2f557a7f71a0c16d97c05a2dec62a0b744979d11afc95b804e1d7307

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ Thanks goes to these wonderful people.
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Jemiiah"><img src="https://avatars.githubusercontent.com/u/160767568?v=4?s=100" width="100px;" alt="Jemiiah"/><br /><sub><b>Jemiiah</b></sub></a><br /><a href="#code-Jemiiah" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Dprof-in-tech"><img src="https://avatars.githubusercontent.com/u/116242877?v=4?s=100" width="100px;" alt="Isaac Onyemaechi Ugwu"/><br /><sub><b>Isaac Onyemaechi Ugwu</b></sub></a><br /><a href="#code-Dprof-in-tech" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Ayoazeez26"><img src="https://avatars.githubusercontent.com/u/44169294?v=4?s=100" width="100px;" alt="Abdulhakeem Abdulazeez Ayodeji"/><br /><sub><b>Abdulhakeem Abdulazeez Ayodeji</b></sub></a><br /><a href="#code-Ayoazeez26" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/Gift-Naomi"><img src="https://avatars.githubusercontent.com/u/149405096?v=4?s=100" width="100px;" alt="Mystic"/><br /><sub><b>Mystic</b></sub></a><br /><a href="#code-Gift-Naomi" title="Code">💻</a></td>
</tr>
</tbody>
</table>
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,29 @@
],
"dependencies": {
"@ajna/pagination": "1.4.19",
"@apollo/client": "3.11.8",
"@chakra-ui/icons": "2.1.1",
"@chakra-ui/react": "2.8.2",
"@emotion/react": "11.11.3",
"@emotion/styled": "11.11.0",
"@next/third-parties": "14.1.3",
"@nikolovlazar/chakra-ui-prose": "1.2.1",
"@prisma/client": "^5.18.0",
"@prisma/client": "5.18.0",
"@starknet-react/chains": "0.1.7",
"@starknet-react/core": "2.8.0",
"@tanstack/query-core": "5.28.0",
"@types/mixpanel-browser": "2.49.0",
"@types/mustache": "4.2.5",
"@vercel/analytics": "1.2.2",
"@vercel/speed-insights": "^1.0.12",
"@vercel/speed-insights": "1.0.12",
"axios": "1.6.7",
"bignumber.js": "4.0.4",
"chroma.ts": "1.0.10",
"ethers": "6.11.1",
"framer-motion": "11.0.5",
"get-starknet": "3.0.1",
"get-starknet-core": "3.2.0",
"graphql": "16.9.0",
"jotai": "2.6.4",
"jotai-tanstack-query": "0.8.5",
"mixpanel-browser": "2.49.0",
Expand All @@ -51,12 +53,12 @@
"react-device-detect": "2.2.3",
"react-dom": "18",
"react-hot-toast": "2.4.1",
"react-icons": "^5.3.0",
"react-icons": "5.3.0",
"react-mixpanel": "1.0.5",
"react-pro-sidebar": "1.1.0",
"react-responsive-carousel": "3.2.23",
"react-select": "5.8.0",
"react-share": "^5.1.0",
"react-share": "5.1.0",
"sharp": "0.33.4",
"starknet": "6.4.1",
"starknetkit": "1.1.9",
Expand All @@ -78,10 +80,10 @@
"eslint": "8",
"eslint-config-next": "14.1.0",
"eslint-plugin-unused-imports": "3.1.0",
"husky": "^9.1.1",
"husky": "9.1.1",
"postcss": "8",
"prettier": "3.3.3",
"prisma": "^5.18.0",
"prisma": "5.18.0",
"tailwindcss": "3.3.0",
"typescript": "5"
},
Expand Down
74 changes: 42 additions & 32 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,32 +1,42 @@
datasource db {
url = env("DATABASE_URL")
provider = "postgresql"
}

generator client {
provider = "prisma-client-js"
}

model User {
id Int @id @default(autoincrement())
address String @unique
isTncSigned Boolean? @default(false)
message String?
tncDocVersion String? @default("1.0")
referralCode String @unique
referrals Referral[]
referralCount Int? @default(0)
createdAt DateTime @default(now())
}

model Referral {
referralId Int @id @default(autoincrement())
refreeAddress String @unique
createdAt DateTime @default(now())
User User @relation(fields: [userId], references: [id])
userId Int
@@unique([userId, refreeAddress], name: "unique_referral")
}
datasource db {
url = env("DATABASE_URL")
provider = "postgresql"
}

generator client {
provider = "prisma-client-js"
}

model User {
id Int @id @default(autoincrement())
address String @unique
isTncSigned Boolean? @default(false)
message String?
tncDocVersion String? @default("1.0")
referralCode String @unique
referrals Referral[]
referralCount Int? @default(0)
createdAt DateTime @default(now())
og_nft_users og_nft_users?
}

model Referral {
referralId Int @id @default(autoincrement())
refreeAddress String @unique
createdAt DateTime @default(now())
User User @relation(fields: [userId], references: [id])
userId Int
@@unique([userId, refreeAddress], name: "unique_referral")
}

model og_nft_users {
id Int @id @default(autoincrement())
userId Int @unique
User User @relation(fields: [userId], references: [id])
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
54 changes: 54 additions & 0 deletions public/og_nft_eligible_users.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
[
"0x52a2dffcfa271420af69ae50b13345ccaa38fc04b09f350f33c8d0e3850a232",
"0x5b55db55f5884856860e63f3595b2ec6b2c9555f3f507b4ca728d8e427b7864",
"0x5095078578a59f8a9c17df97188db1b59574c6d4836dd3e705fe8537624228a",
"0x18489438975ee3c6bc18add415d7889a9630547398f26bb5dee27481216a67d",
"0x4cced5156ab726bf0e0ca2afeb1f521de0362e748b8bdf07857b088dbc7b457",
"0x43fbdfdd75f2726f999ad87833ca6372261b200e956cd8df7986e4fc518d0eb",
"0x4d1740c01d87e64d7b5149616724bfe24537e200b3f13f6b8b8e760d0ec742",
"0x29dbf109d0f4c8fa807c14e867df953ab3bc9b39d9f66e9a13f1922d10243bb",
"0x708a705b8ee042cde294269c20f65790a9bb535e6e76b9df600821e322e03cf",
"0x36aa3388e7da64d6adf08653abc5699f681ffedacd7938d2e115f73919be294",
"0x47ab88662a0173b6014bfc41f7479cf8f973a7212fe5bc9abf8f40138c0c979",
"0x46d703df4dd4e1b8196b294ec295c8c66097836cd4085372299ac53dff5d478",
"0x11dfbced0c610ae46447105b97477b93e9bbc2f346980c7de51d3622f310201",
"0x3950ce99fa8c34188f591d55ccbeafb109c6215cb33f37f5b22d14d1462ae9c",
"0x55741fd3ec832f7b9500e24a885b8729f213357be4a8e209c4bca1f3b909ae",
"0x22202a0ee56bfc70ab7ab767f14b980357e482bc280ba10ec375172fe1b0bf8",
"0x578ecc0659983818087560740a0842e846a516962231cbef4658735adb9063c",
"0x5caa422de56ffa4d6bbcf8cea2d8c7a3d0c490edf2155d3b29a68d9ddc55479",
"0x7a900c5b496d15bbb1c3c69d090e890a4b19dbceabee72232d4f2bec67ff4c",
"0x7f5d5b58f2a1c504f6a8d0e47269c903485582308b6f3415c27a561e0d1a6fa",
"0x17603b7963b1e2357a57e3c16f83abacef6bd8cf59e5394c34ae72ce566da2",
"0x27391b415a803a1aa7fffbed7db19336cf4b7f9bb1d3468986eef9a26341356",
"0x4bbdde9359d8bc7e513f510f9080306dbf267acb41228a4706d1b55f2fd065d",
"0x4015548595f22ccf56f6f42ada31a5d8eb7cb307c4e9e550b578d44fa25bcc",
"0x50393e851e40de930abcd9569d9df55883b9f2836d4bae724f126d2258cd292",
"0x2915ca6c218df8b394237b278cc920668fd504268494e1ebcf108a660cd7136",
"0x552760d9b7d629e2daf636129fb519ac17a739e1a1fa05ee928ccb1f62c26cf",
"0x14f59c23735b4aaaf6b6c0df567cacff9adc27f50dcb8b5270cf1237605c263",
"0x6733e297fe300f78f48c7106ad550626377aa732cef360867218c08a536ea5e",
"0x1ca34f742a91a588a3e770c8c8c8618a0713d7f64fda7935d42dcfcf4adffa0",
"0x571d4b6f5a34d7a43517d2eca4166804f753a643ec28bec0f51143bef50a9a6",
"0x6a98eef8b1ce965ec9f6daf4c896f5c21217f2365652c30d462b13a1858ed7c",
"0x5105649f42252f79109356e1c8765b7dcdb9bf4a6a68534e7fc962421c7efd2",
"0x36177b6741a43c219602ce857c18e445920d5a6ea5f4ee3a0240e8ae319bbf5",
"0x47ccae4b7dccabd0689624812f7deeb3ed283dc3349b826974ff88107d71f4c",
"0x9fb60ac230ceeda227d28f138e327d2509d01531d20d9c8b2c4a7bf65afd8c",
"0x1f13873d0e2ff24321ca91d0530f093c25dc7b52d9316df8c2ec1a17fbfb5c1",
"0x7342070d73d4ceef7e7c84420acb3026720e88fef10302fc11fd25a7ee0b715",
"0x2b27457428b94b38ccad5339ebc17a211b7c482c008ac8ad22e01b30e923628",
"0x67b72d3df972e5816b07ad4794af8e85c968409554281880149e96f09df1d56",
"0x1eb945a1b881a2d8f8d8ea5eada7ec42c999ab5e5ed225af7b62f00865bafbd",
"0x73298a2ca8b06596d7bc85311c1c9d06458664a02a341655dee4e663600ac53",
"0x297268ffc3c342f9c7fa3df6a5a6ef63ef5a5232ceaaf67168df686283effca",
"0x16d730875c5dd15f3c1086523683bf5463fc11572405c8bee6e1ec65bead84e",
"0x4d1b676e430b55175ce9ecbe073486a15411a8605c99aff8a14804fd4088da5",
"0x147b941bec50a2b497eb1bd966cf36e33ad3da7e508ebd5ea994978fa5be5a6",
"0x5a39462a82784de9f0f30c356f3fd5dfe71c7fa510bf22e8893cec254f59fc2",
"0x7364ce0a8aab411beddf7780f222b3508af4daf5c542bb258e9fe55ae5846ba",
"0x3d87ee70baf292cdc23c654153cfd711ff580a076d1dccc0dfd9d3eb62df311",
"0x63d87659aeb300ce268e872fd16d3d2ad5821444c438fae86f2b1fc39d26c17",
"0x6afcff37fe09b4d92f834475c70452c91ede180ddd387ec09191333f1f908a",
"0x6857c54d51eb6410f3a4974fc7f89b7735f4b135c587d62ca8bb725b7848bb9"
]
Loading

0 comments on commit 94413ea

Please sign in to comment.