-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'prod' into bug/max-withdraw
- Loading branch information
Showing
24 changed files
with
6,091 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] |
Oops, something went wrong.