Skip to content

Commit

Permalink
feat: adding rulsets to sample env as comment, for anyone who needs t…
Browse files Browse the repository at this point in the history
…o test the scroll developer badges
  • Loading branch information
nutrina committed Oct 11, 2024
1 parent 32ad80d commit 2d67a00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/.env-example.env
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,10 @@ NEXT_PUBLIC_ONBOARD_RESET_INDEX=1
NEXT_PUBLIC_GA_ID=id

# Env vars for the scroll campaign
# The sample below applies for the following rulesets (defined in adjango admin):
# - {"name": "ContributorPassport10", "condition": {"OR": [{"repository_commit_count": {"threshold": 10, "repository": "https://github.com/passportxyz/passport-scorer"}}, {"repository_commit_count": {"threshold": 10, "repository": "https://github.com/passportxyz/passport"}}]}}
# - {"name": "ContributorPassport30", "condition": {"OR": [{"repository_commit_count": {"threshold": 30, "repository": "https://github.com/passportxyz/passport-scorer"}}, {"repository_commit_count": {"threshold": 30, "repository": "https://github.com/passportxyz/passport"}}]}}
# - {"name": "ContributorPassport20", "condition": {"OR": [{"repository_commit_count": {"threshold": 20, "repository": "https://github.com/passportxyz/passport-scorer"}}, {"repository_commit_count": {"threshold": 20, "repository": "https://github.com/passportxyz/passport"}}]}}

NEXT_PUBLIC_SCROLL_BADGE_PROVIDER_INFO='[{"badgeContractAddress":"0x...","title":"Passport Developer","providers":[{"level":1,"name":"DeveloperList#PassportCommiterLevel1#7f421a19","image":"/assets/img1.svg"}]}]'
NEXT_PUBLIC_SCROLL_CAMPAIGN_CHAIN_ID=
1 change: 1 addition & 0 deletions iam/.env-example.env
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ REDIS_URL=redis://localhost:6379
# Used by the 'src/scripts/checkOnChainProvidersAreInSync.ts' script
ALCHEMY_API_KEY=...

# See the equivalent value configured in app sample
SCROLL_BADGE_PROVIDER_INFO='{"badge_provider":{"contractAddress":"0x...","level":1}}'
SCROLL_BADGE_ATTESTATION_SCHEMA_UID=0xd57de4f41c3d3cc855eadef68f98c0d4edd22d57161d96b7c06d2f4336cc3b49

0 comments on commit 2d67a00

Please sign in to comment.