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

Add weekly claims model #385

Merged
merged 36 commits into from
Nov 10, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a7e9c9c
Add weekly claims model
motechFR Oct 31, 2024
0a447fe
ci: version bump to 0.93.1-rc-weekly-claims.0
gh-action-bump-version Oct 31, 2024
da0bb56
Add onchain claims
motechFR Nov 5, 2024
646f36b
Merge branch 'weekly-claims' of github.com:charmverse/core into weekl…
motechFR Nov 5, 2024
75a4022
gio
motechFR Nov 5, 2024
9b42ef0
ci: version bump to 0.93.2-rc-weekly-claims.0
gh-action-bump-version Nov 5, 2024
2e017e2
Relocate protocol eas and merkle proofs to core
motechFR Nov 7, 2024
9ecb5dc
Merge branch 'main' of github.com:charmverse/core into weekly-claims
motechFR Nov 7, 2024
5f7ec1c
ci: version bump to 0.94.1-rc-weekly-claims.0
gh-action-bump-version Nov 7, 2024
dc7ac33
Fix encoder
motechFR Nov 7, 2024
b9dd2bc
Fix userRefUID typing
motechFR Nov 7, 2024
1a2fde7
ci: version bump to 0.94.1-rc-weekly-claims.1
gh-action-bump-version Nov 7, 2024
d0e8371
Bump version
motechFR Nov 7, 2024
9e843c5
ci: version bump to 0.94.1-rc-weekly-claims.3
gh-action-bump-version Nov 7, 2024
066730e
Fix type for merkle tree proofs return type
motechFR Nov 7, 2024
6a004b3
Merge branch 'weekly-claims' of github.com:charmverse/core into weekl…
motechFR Nov 7, 2024
5571d1f
ci: version bump to 0.94.1-rc-weekly-claims.4
gh-action-bump-version Nov 7, 2024
86eeba4
Cleanup schema definitions
motechFR Nov 7, 2024
b4afedc
Merge branch 'weekly-claims' of github.com:charmverse/core into weekl…
motechFR Nov 7, 2024
00f58bd
ci: version bump to 0.94.1-rc-weekly-claims.5
gh-action-bump-version Nov 7, 2024
07e2bd2
Add encoding for name schema args
motechFR Nov 7, 2024
3ca8269
Merge branch 'weekly-claims' of github.com:charmverse/core into weekl…
motechFR Nov 7, 2024
d0e711f
ci: version bump to 0.94.1-rc-weekly-claims.6
gh-action-bump-version Nov 7, 2024
3df2426
Fix encoder for name schema
motechFR Nov 7, 2024
e13bb1b
ci: version bump to 0.94.1-rc-weekly-claims.7
gh-action-bump-version Nov 7, 2024
6341ab4
Add onchain scout profile
motechFR Nov 7, 2024
7bc1ac9
ci: version bump to 0.94.1-rc-weekly-claims.8
gh-action-bump-version Nov 7, 2024
a241240
Rename the schema
motechFR Nov 7, 2024
d4b6a44
Fix build
motechFR Nov 7, 2024
7ae2e8b
Fix schema name
motechFR Nov 7, 2024
4c062a4
ci: version bump to 0.94.1-rc-weekly-claims.9
gh-action-bump-version Nov 7, 2024
ba0f060
Merge branch 'weekly-claims' of github.com:charmverse/core into weekl…
motechFR Nov 7, 2024
c21b3e6
ci: version bump to 0.94.1-rc-weekly-claims.10
gh-action-bump-version Nov 7, 2024
09cf721
Merge branch 'main' of github.com:charmverse/core into weekly-claims
motechFR Nov 8, 2024
64e1a61
Resync prisma with main branch
motechFR Nov 8, 2024
6e76cef
ci: version bump to 0.95.1-rc-weekly-claims.0
gh-action-bump-version Nov 8, 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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@charmverse/core",
"version": "0.93.0",
"version": "0.93.1-rc-weekly-claims.0",
"description": "Core API for Charmverse",
"type": "commonjs",
"types": "./dist/cjs/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-- CreateTable
CREATE TABLE "WeeklyClaims" (
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"season" TEXT NOT NULL,
"week" TEXT NOT NULL,
"merkleTreeRoot" TEXT NOT NULL,
"totalClaimable" INTEGER NOT NULL,
"claims" JSONB NOT NULL
);

-- CreateIndex
CREATE UNIQUE INDEX "WeeklyClaims_week_key" ON "WeeklyClaims"("week");
9 changes: 9 additions & 0 deletions src/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -3175,3 +3175,12 @@ model ScoutWallet {
@@index([address])
@@index([scoutId])
}

model WeeklyClaims {
createdAt DateTime @default(now())
season String
week String @unique
merkleTreeRoot String
totalClaimable Int
claims Json
}