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

Canvas profile perks #1367

Draft
wants to merge 791 commits into
base: sepolia
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
791 commits
Select commit Hold shift + click to select a range
85a9505
Add Wombat (#1194)
zzq0826 Jul 16, 2024
0d75894
fix: add Wombat
Holybasil Jul 16, 2024
938e6a8
Merge pull request #1195 from scroll-tech/sepolia
zzq0826 Jul 16, 2024
803cab1
remove duplicate project
zzq0826 Jul 16, 2024
8018ff1
Merge pull request #1196 from scroll-tech/sepolia
zzq0826 Jul 16, 2024
fe4b966
monitor: check badge contract
Holybasil Jul 16, 2024
14eaee2
fix: replace eas index url
Holybasil Jul 16, 2024
7df1f74
fix: async name validation
Holybasil Jul 18, 2024
0129011
fix: scroll to protocols
Holybasil Jul 18, 2024
a1d2806
fix: tip for airdrop-only badge
Holybasil Jul 18, 2024
eaccca8
chore: minimum change
Holybasil Jul 18, 2024
b759141
Remove story page
zzq0826 Jul 18, 2024
4c2bff6
Merge pull request #1198 from scroll-tech/sepolia
zzq0826 Jul 18, 2024
85e0379
Merge pull request #1197 from scroll-tech/fix-name-validation
Holybasil Jul 18, 2024
0475b96
Merge pull request #1199 from scroll-tech/sepolia
Holybasil Jul 18, 2024
d0e3e48
fix: conflict with Proxy and useMemo
Holybasil Jul 19, 2024
de97c40
fix: got badgeList
Holybasil Jul 19, 2024
958ef0a
fix: use signer to upgrade badge
Holybasil Jul 19, 2024
81ec028
monitor: use scroll sentry
Holybasil Jul 22, 2024
de6bd3a
monitor: use netlify env
Holybasil Jul 22, 2024
8bb1539
fix: support isEligible for permissionless badge
Holybasil Jul 22, 2024
e1d8d26
fix: airdrop badge tip
Holybasil Jul 22, 2024
ac305ad
fix: set 10s timeout for the badge check API
Holybasil Jul 23, 2024
30c3f1e
Merge pull request #1200 from scroll-tech/check-permissionless-eligib…
Holybasil Jul 23, 2024
72486ca
Merge pull request #1201 from scroll-tech/sepolia
Holybasil Jul 23, 2024
2096c4f
fix: switch back to eas service
Holybasil Jul 24, 2024
ee405e7
fix: detailed tx error message
Holybasil Jul 25, 2024
bf05096
Merge pull request #1202 from scroll-tech/detailed-error-message
Holybasil Jul 26, 2024
2152f19
Merge pull request #1203 from scroll-tech/sepolia
Holybasil Jul 26, 2024
28f211b
Add binance wallet (#1175)
zzq0826 Jul 26, 2024
f5236d4
Merge pull request #1204 from scroll-tech/sepolia
zzq0826 Jul 26, 2024
a826e1e
Use local token list (#1205)
zzq0826 Jul 27, 2024
a222f62
Merge pull request #1206 from scroll-tech/sepolia
zzq0826 Jul 27, 2024
554d0c0
Use own price service (#1207)
zzq0826 Jul 27, 2024
8bc89a1
Merge pull request #1208 from scroll-tech/sepolia
zzq0826 Jul 27, 2024
bb3a981
Fix estimate time
zzq0826 Jul 27, 2024
76d535b
Merge pull request #1209 from scroll-tech/fix-estimate-time
zzq0826 Jul 27, 2024
8efae4a
Merge pull request #1210 from scroll-tech/sepolia
zzq0826 Jul 27, 2024
ff42a3b
fix: display Pencils Protocol
Holybasil Jul 29, 2024
329f195
Merge pull request #1211 from scroll-tech/sessions-copy
Holybasil Jul 29, 2024
0e9c260
Merge pull request #1212 from scroll-tech/sepolia
Holybasil Jul 29, 2024
e8b7934
fix: add "Issue Badges" menu
Holybasil Jul 29, 2024
97e4a7b
fix: update error message
Holybasil Jul 29, 2024
0d188ba
fix: update tip
Holybasil Jul 29, 2024
dd7d1c1
Merge pull request #1213 from scroll-tech/canvas-issue-blog
Holybasil Jul 30, 2024
4fc58b7
Merge pull request #1214 from scroll-tech/sepolia
Holybasil Jul 30, 2024
71962a8
monitor: EAS data loss
Holybasil Jul 30, 2024
4b72b07
monitor: view others' canvas
Holybasil Jul 30, 2024
a142341
Merge pull request #1215 from scroll-tech/find-missing-data
Holybasil Jul 30, 2024
313dfbd
Merge pull request #1216 from scroll-tech/sepolia
Holybasil Jul 30, 2024
eb60b3e
fix: remove batch badge eligibility check
Holybasil Jul 31, 2024
964e8f0
Merge pull request #1217 from scroll-tech/remove-mintable-badge-batch…
Holybasil Jul 31, 2024
eea4aa1
Merge pull request #1218 from scroll-tech/sepolia
Holybasil Jul 31, 2024
4948338
fix: add origins nft badge
Holybasil Aug 2, 2024
16a000b
fix: limit the number of canvas badges
Holybasil Aug 2, 2024
3a4003e
Merge pull request #1220 from scroll-tech/add-origins-nft-badge
Holybasil Aug 2, 2024
244ad7e
monitor: log raw error message
Holybasil Aug 2, 2024
bf5f25e
Merge pull request #1221 from scroll-tech/sepolia
Holybasil Aug 2, 2024
ec5213d
Redesign nav style (#1219)
zzq0826 Aug 3, 2024
3e96c84
Merge pull request #1224 from scroll-tech/sepolia
zzq0826 Aug 3, 2024
2d299ed
Add bridge category for ecosystem (#1222)
zzq0826 Aug 5, 2024
2fbd1e1
Merge pull request #1225 from scroll-tech/sepolia
zzq0826 Aug 5, 2024
b4b9426
Add level up banner (#1223)
zzq0826 Aug 6, 2024
7d2d88e
Merge pull request #1226 from scroll-tech/sepolia
zzq0826 Aug 6, 2024
f55b41a
Improve banner style
zzq0826 Aug 6, 2024
3a574fc
Improve banner style (#1227)
zzq0826 Aug 6, 2024
7baa8d4
Fix env
zzq0826 Aug 6, 2024
3400155
Merge pull request #1228 from scroll-tech/sepolia
zzq0826 Aug 6, 2024
7c2e1fd
Update common.ts
zzq0826 Aug 6, 2024
f026e55
Merge pull request #1229 from scroll-tech/zzq0826-patch-2
zzq0826 Aug 6, 2024
ecd8c59
Update the ddl. (#1233)
zzq0826 Aug 7, 2024
c1b23d7
Merge pull request #1234 from scroll-tech/sepolia
zzq0826 Aug 7, 2024
1ad47f7
Nav improvement (#1235)
zzq0826 Aug 7, 2024
eca987b
Merge pull request #1236 from scroll-tech/sepolia
zzq0826 Aug 7, 2024
dabb2c7
Add canvas listing (#1237)
zzq0826 Aug 8, 2024
aea8349
Merge pull request #1238 from scroll-tech/sepolia
zzq0826 Aug 8, 2024
5f17a8d
Add disclaimer (#1239)
zzq0826 Aug 13, 2024
cafc4a5
support communityURL (#1240)
zzq0826 Aug 13, 2024
34a348e
feat: Canvas and Badge
Holybasil Aug 2, 2024
7a3e8b5
fix: desktop
Holybasil Aug 12, 2024
4dba75e
fix: dark theme
Holybasil Aug 12, 2024
e5d083a
fix: mobile
Holybasil Aug 12, 2024
d54e528
fix: adapt notion badge
Holybasil Aug 13, 2024
88aa915
fix: env
Holybasil Aug 13, 2024
0a65960
fix: include scroll badges
Holybasil Aug 14, 2024
333b12a
fix: header nav
Holybasil Aug 14, 2024
7ad35ab
fix: recomputeCellPositions
Holybasil Aug 14, 2024
0e65c4d
fix: search width
Holybasil Aug 14, 2024
a0929ce
fix: remove badges in ecosystem page
Holybasil Aug 14, 2024
e3bcc6d
fix: feedback
Holybasil Aug 14, 2024
705c965
Merge pull request #1243 from scroll-tech/sepolia
zzq0826 Aug 15, 2024
3dc2a5c
fix: sticky whole badge fliter
Holybasil Aug 15, 2024
d684124
fix: minor updates
Holybasil Aug 15, 2024
75646cb
fix: badge&star flicker
Holybasil Aug 15, 2024
a82db56
fix: mobile badge card
Holybasil Aug 15, 2024
3f04e4f
fix: mobile emoji
Holybasil Aug 15, 2024
bc65836
Merge pull request #1242 from scroll-tech/canvas-badge
Holybasil Aug 15, 2024
2f034fb
Merge pull request #1244 from scroll-tech/sepolia
Holybasil Aug 15, 2024
e4022a4
fix: explore badges link
Holybasil Aug 15, 2024
74aa4a2
fix: overflow badge name
Holybasil Aug 16, 2024
f7a117a
Merge pull request #1245 from scroll-tech/fix-canvas-and-badges
Holybasil Aug 16, 2024
e56b9f6
Merge pull request #1246 from scroll-tech/sepolia
Holybasil Aug 16, 2024
4145efe
fix: adjustments
Holybasil Aug 16, 2024
3b9a307
version: 5.2.0
Holybasil Aug 16, 2024
c859e87
Merge pull request #1247 from scroll-tech/fix-badge-flicker
Holybasil Aug 16, 2024
14325b8
fix: use subdomain gateway
Holybasil Aug 20, 2024
c338d26
Merge pull request #1249 from scroll-tech/ipfs-subdomain
Holybasil Aug 20, 2024
97a7dce
Update headline
zzq0826 Aug 21, 2024
bd6690f
fix: support issuerName
Holybasil Aug 22, 2024
b992e8e
Merge pull request #1253 from scroll-tech/support-issuerName
Holybasil Aug 23, 2024
7628ca2
chore: clean code
Holybasil Aug 22, 2024
f87c594
Merge pull request #1252 from scroll-tech/clean-code
Holybasil Aug 23, 2024
336e29c
fix: only support link
Holybasil Aug 23, 2024
8eb0b6d
Update withdraw copy (#1257)
zzq0826 Aug 24, 2024
c0b8517
Merge pull request #1255 from scroll-tech/markdown-link
Holybasil Aug 26, 2024
1309cd1
ecosystem highlights (#1241)
zzq0826 Aug 26, 2024
2997534
Remove banner
zzq0826 Aug 26, 2024
19171fd
Merge pull request #1260 from scroll-tech/remove-banner
zzq0826 Aug 26, 2024
6a0ec6e
Update cover image
zzq0826 Aug 26, 2024
f2497bf
chore(blog): fetch blog/data.json with origin (#1263)
yqrashawn Aug 27, 2024
8dabb11
Add community page (#1169)
zzq0826 Aug 27, 2024
4552ac6
Update netlify (#1266)
zzq0826 Aug 27, 2024
7bb0803
fix: allow new tab
Holybasil Aug 29, 2024
705a086
fix: no back on new tab
Holybasil Aug 29, 2024
4380769
Merge pull request #1270 from scroll-tech/badge-link
Holybasil Aug 29, 2024
46c4c91
fix: fetch token price only at /bridge.* (#1272)
yqrashawn Aug 31, 2024
5a2cda0
Fix: Use BigInt for handling large numbers to avoid scientific notation.
zzq0826 Sep 9, 2024
3e2e0b3
Merge pull request #1274 from scroll-tech/fix-bridge-history
zzq0826 Sep 9, 2024
17bfbd6
doc: add canvas doc
Holybasil Sep 11, 2024
6ab2c45
fix: update canvas doc
Holybasil Sep 11, 2024
3b3581b
fix: update content
Holybasil Sep 11, 2024
7bb92a3
Merge pull request #1276 from scroll-tech/add-canvas-doc
Holybasil Sep 11, 2024
ce7c593
fix: ecosystem metrics
Holybasil Sep 12, 2024
bd78541
Merge pull request #1278 from scroll-tech/ecosystem-metrics
Holybasil Sep 12, 2024
7e4d9b4
Fix Economy Deposit (#1281)
zzq0826 Sep 19, 2024
7ed3d6a
Update copy (#1283)
zzq0826 Sep 21, 2024
6f33cd2
fix: issuer of upgradable badge
Holybasil Sep 23, 2024
a789d83
fix: remove item click
Holybasil Sep 23, 2024
11d6404
Merge pull request #1285 from scroll-tech/upgradable-badge-issuer
Holybasil Sep 24, 2024
0e5fa27
Adjust globe json path (#1287)
zzq0826 Sep 24, 2024
807671a
fix: display total tx count
Holybasil Sep 24, 2024
aa4caea
Merge pull request #1289 from scroll-tech/ecosystem-tx-count
Holybasil Sep 24, 2024
39b7456
Add more assets (#1293)
zzq0826 Oct 1, 2024
565ca2b
Add whitepaper (#1302)
zzq0826 Oct 8, 2024
92881aa
Add circulating supply page
zzq0826 Oct 9, 2024
2b891d3
Merge pull request #1304 from scroll-tech/add-circulating-supply-page
zzq0826 Oct 9, 2024
ffe5343
Add airdrop T&Cs (#1307)
zzq0826 Oct 15, 2024
b93744d
change to pdf (#1309)
zzq0826 Oct 16, 2024
ac5a4f8
Update file name
zzq0826 Oct 16, 2024
d9cc4d3
remove file
zzq0826 Oct 16, 2024
e0e371c
fix: update landing blogs
Holybasil Oct 16, 2024
e0a96eb
fix: content style
Holybasil Oct 16, 2024
4bafd1b
Merge pull request #1314 from scroll-tech/landing-blogs
Holybasil Oct 16, 2024
d8189ba
Update canvas doc's link
zzq0826 Oct 16, 2024
45a9f6a
fix: new assets
Holybasil Oct 17, 2024
ecc8a1c
Merge pull request #1317 from scroll-tech/sessions-new-assets
Holybasil Oct 18, 2024
b618ce7
Update copy and adjust menu (#1320)
zzq0826 Oct 19, 2024
8336df9
Adjust style (#1322)
zzq0826 Oct 19, 2024
ada4661
temporarily stop fetching badge data from ambient website (#1324)
zzq0826 Oct 20, 2024
aa72e4a
chore: disable sentry (#1326)
Holybasil Oct 20, 2024
8fd8553
Update terms-and-conditions
zzq0826 Oct 21, 2024
5278908
fix: sessions separate marks
Holybasil Oct 17, 2024
5dc41d4
fix: update style
Holybasil Oct 21, 2024
67d5aff
fix: marks to token
Holybasil Oct 21, 2024
8e84d7c
fix: update style
Holybasil Oct 22, 2024
13a7432
fix: copy
Holybasil Oct 22, 2024
c11c264
Add redirects (#1330)
zzq0826 Oct 22, 2024
eb69c70
update config
zzq0826 Oct 22, 2024
87775a4
Merge pull request #1329 from scroll-tech/sessions-separate-marks
Holybasil Oct 22, 2024
ba94804
Update docs link & track click event (#1334)
zzq0826 Oct 23, 2024
57c5c0b
Add new redirects rule
zzq0826 Oct 23, 2024
e208889
fix: add governance menu
Holybasil Oct 24, 2024
241d31d
fix: community form link
Holybasil Oct 21, 2024
50eca3a
Merge pull request #1337 from scroll-tech/governance-menu
Holybasil Oct 24, 2024
d424519
feat: read user default language from browser (#1339)
yqrashawn Oct 26, 2024
400ea74
feat: add governance && update landing page
Holybasil Sep 10, 2024
acaaf63
fix: copy
Holybasil Sep 11, 2024
00861e1
fix: landing bg
Holybasil Sep 11, 2024
0ee9643
fix: update desktop bg
Holybasil Sep 12, 2024
d7f1225
fix: ecosystem/career header bg
Holybasil Oct 8, 2024
caf12c0
fix: copy
Holybasil Oct 8, 2024
2f29bd5
fix: home header bg
Holybasil Oct 9, 2024
ebc9dca
fix: update for SDK
Holybasil Oct 25, 2024
34e2082
fix: update style
Holybasil Oct 25, 2024
2b2d89c
fix: near full screen
Holybasil Oct 25, 2024
7ed4dd9
fix: bg style
Holybasil Oct 28, 2024
568edea
fix: links
Holybasil Oct 28, 2024
9e44543
fix: remove video on ecosystem
Holybasil Oct 29, 2024
11ca24a
fix: copy
Holybasil Oct 31, 2024
26ab304
Merge pull request #1343 from scroll-tech/governance
Holybasil Oct 31, 2024
d0a0a4b
Add blockscout to block explorer list (#1345)
zzq0826 Oct 31, 2024
e27be37
chore: upgrade zustand to v5 (#1342)
yqrashawn Nov 1, 2024
a732855
feat(blog): add español support (#1347)
yqrashawn Nov 4, 2024
5e2804d
feat(bridge): ens support in custom recipient input (#1341)
yqrashawn Nov 5, 2024
dbd25f3
add total supply (#1349)
zzq0826 Nov 6, 2024
f797d7b
fix: fetch content type
Holybasil Nov 9, 2024
097b242
Merge pull request #1351 from scroll-tech/fix-fetch
Holybasil Nov 9, 2024
2c3439a
feat: canvas talent badges
Holybasil Nov 10, 2024
fe1a73f
fix: mobile bg
Holybasil Nov 10, 2024
55d72b2
Merge pull request #1354 from scroll-tech/canvas-talent-badges
Holybasil Nov 10, 2024
265ab95
fix: ecosystem get in touch
Holybasil Nov 9, 2024
0aa3a38
fix: style
Holybasil Nov 10, 2024
05ad54b
fix: mobile bg
Holybasil Nov 10, 2024
1f5178b
Merge pull request #1353 from scroll-tech/ecosystem-update
Holybasil Nov 10, 2024
30da194
Disable batch deposit (#1357)
zzq0826 Nov 14, 2024
c6d26d2
feat: support online region
yqrashawn Nov 20, 2024
11d08d4
fix: scroll.io/events -> community.scroll.cat/events
yqrashawn Nov 20, 2024
4f7f076
feat: support end date
yqrashawn Nov 21, 2024
91cf1ac
Merge pull request #1359 from scroll-tech/community-event-improvements
zzq0826 Nov 21, 2024
6490d07
Merge pull request #1361 from scroll-tech/badge-registry-redirect
yqrashawn Nov 25, 2024
7f37256
feat: badge-registry-redirect -> badge-registry.canvas.scroll.cat (#1…
yqrashawn Nov 25, 2024
45dc0a6
fix: badge registry url (#1365)
yqrashawn Nov 25, 2024
92dbe1a
feat: upload picture
Holybasil Sep 27, 2024
e11a818
feat: pick NFT
Holybasil Sep 27, 2024
e2e902e
fix: display NFT avatar
Holybasil Sep 30, 2024
95a67e4
fix: fetch NFTs infinitely
Holybasil Oct 9, 2024
4143b00
fix: set/get avatar
Holybasil Oct 10, 2024
3b69bee
fix: loading button disabled/loading
Holybasil Oct 11, 2024
bf97f39
refactor: expose action
Holybasil Oct 11, 2024
597661c
fix: restrict avatar size
Holybasil Oct 11, 2024
9b4fb18
fix: signature with timestamp
Holybasil Oct 14, 2024
db97875
Add ens subdomain perk
hyperchris123 Sep 27, 2024
1c346a3
feat: ens subdomain
Holybasil Nov 22, 2024
f61985d
fix: perks on mobile
Holybasil Nov 25, 2024
6c59910
fix: sepolia badge contract
Holybasil Nov 25, 2024
2dd626e
fix: avatar loading
Holybasil Nov 26, 2024
46bfcfe
fix: readonly name
Holybasil Nov 26, 2024
6ead180
fix: fetch picture avatar
Holybasil Nov 26, 2024
384336e
fix: display avatar after setting
Holybasil Nov 27, 2024
c3b6dc5
fix: required badge address
Holybasil Nov 27, 2024
2fa0001
fix: remove invalidateQueries
Holybasil Nov 27, 2024
22da18d
fix: emoji
Holybasil Nov 27, 2024
ce5f46e
fix: subdomain name validation
Holybasil Nov 27, 2024
31f297c
fix: add BadgeImage
Holybasil Nov 28, 2024
a710b4c
fix: filter valid badges
Holybasil Nov 28, 2024
2df19e8
fix: detail
Holybasil Nov 28, 2024
e2c9af1
fix: restrict the last blob
Holybasil Nov 28, 2024
31b0f75
fix: display ens returns
Holybasil Nov 28, 2024
114f395
fix: support Self-attestation badge
Holybasil Nov 29, 2024
17ae13b
fix: perks detail
Holybasil Dec 3, 2024
7b976ce
test: badges in sepolia
Holybasil Dec 3, 2024
720640f
fix: style adjustment
Holybasil Dec 3, 2024
52338cd
fix: claimed NFT perk
Holybasil Dec 5, 2024
0c2dcb0
fix: not owned badge style
Holybasil Dec 5, 2024
cd22cde
fix: skip CLAIM when re-editing NFT avatar
Holybasil Dec 9, 2024
aed947a
feat: promote Perks
Holybasil Dec 10, 2024
f0688f7
feat: notify new badges
Holybasil Dec 11, 2024
7037bd8
feat: support GracePeriod
Holybasil Dec 13, 2024
56bda1e
fix: scrolly alert
Holybasil Dec 17, 2024
b62383e
fix: intergrate whitelist api
Holybasil Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
68 changes: 53 additions & 15 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,35 +1,73 @@
REACT_APP_VERSION="1.0.0"
REACT_APP_MAIN_ENVIRONMENT = "Sepolia" # used to determine which SCROLL_ENVIRONMENT is to be treated as the main/production one
REACT_APP_SCROLL_ENVIRONMENT = "Sepolia"

REACT_APP_MAIN_ENVIRONMENT = "Mainnet" # used to determine which SCROLL_ENVIRONMENT is to be treated as the main/production one
REACT_APP_ETH_SYMBOL = "ETH"
REACT_APP_PREFIX_CLS = "scroll"
REACT_APP_SENTRY_DSN = "https://791d7df9132d46a9868de0863bd6583c@o4504371258785792.ingest.sentry.io/4504371261079552"
REACT_APP_GOOGLE_ANALYTICS_ID = "G-XR3MGVSHFC"
REACT_APP_CONNECT_WALLET_PROJECT_ID = "14efbaafcf5232a47d93a68229b71028"
REACT_APP_UNIFRA_API_KEY = "9d431c1c-d717-4931-9595-ad0b3a246d13"
REACT_APP_NFT_VIEWER_URL="https://nft.scroll.io"
REACT_APP_NFT_API_URI="https://nft.scroll.io"
REACT_APP_ENS_API_URL="https://ens.scroll.cat"

REACT_APP_SCROLL_ENVIRONMENT = "Staging"
REACT_APP_API_BASE_URI = "https://sepolia-api.scroll.io"
REACT_APP_BRIDGE_API_URI = "https://sepolia-api-bridge.scroll.io/api"
REACT_APP_BRIDGE_API_URI = "https://sepolia-api-bridge-v2.scroll.io/api"
REACT_APP_ROLLUPSCAN_API_URI = "https://sepolia-api-re.scroll.io/api"
REACT_APP_CHAIN_ID_L1 = "11155111"
REACT_APP_CHAIN_ID_L2 = "534351"
REACT_APP_EXTERNAL_RPC_URI_L1 = "https://ethereum-sepolia.blockpi.network/v1/rpc/public"
REACT_APP_EXTERNAL_RPC_URI_L2 = "https://sepolia-rpc.scroll.io"
REACT_APP_EXTERNAL_EXPLORER_URI_L1 = "https://sepolia.etherscan.io"
REACT_APP_EXTERNAL_EXPLORER_URI_L2 = "https://sepolia-blockscout.scroll.io"
REACT_APP_L2_SCAN_URI = "https://scroll.unifra.xyz/"
REACT_APP_EXTERNAL_EXPLORER_URI_DORA = "https://www.ondora.xyz/zh/network/scroll-sepolia/interactions"
REACT_APP_ETHERSCAN_L2 = "https://sepolia.scrollscan.dev"
REACT_APP_EXTERNAL_EXPLORER_URI_L2 = "https://sepolia.scrollscan.com"
REACT_APP_L2_SCAN_URI = "https://scroll-sepolia.l2scan.co"
REACT_APP_EXTERNAL_EXPLORER_URI_DORA = "https://www.ondora.xyz/network/scroll-sepolia"
REACT_APP_ETHERSCAN_L2 = "https://sepolia.scrollscan.com"
REACT_APP_SCROLL_VENUS_URI = "https://sepolia-venus.scroll.io"
REACT_APP_L2_SWAP_URI = "https://uniswap-showcase.sepolia.scroll.xyz/"
REACT_APP_L1_ETH_GATEWAY_PROXY_ADDR="0x8A54A2347Da2562917304141ab67324615e9866d"
REACT_APP_L2_ETH_GATEWAY_PROXY_ADDR="0x91e8ADDFe1358aCa5314c644312d38237fC1101C"
REACT_APP_L1_WETH_GATEWAY_PROXY_ADDR="0x3dA0BF44814cfC678376b3311838272158211695"
REACT_APP_L2_WETH_GATEWAY_PROXY_ADDR="0x481B20A927206aF7A754dB8b904B052e2781ea27"
REACT_APP_L1_ETH_GATEWAY_PROXY_ADDR = "0x8A54A2347Da2562917304141ab67324615e9866d"
REACT_APP_L2_ETH_GATEWAY_PROXY_ADDR = "0x91e8ADDFe1358aCa5314c644312d38237fC1101C"
REACT_APP_L1_WETH_GATEWAY_PROXY_ADDR = "0x3dA0BF44814cfC678376b3311838272158211695"
REACT_APP_L2_WETH_GATEWAY_PROXY_ADDR = "0x481B20A927206aF7A754dB8b904B052e2781ea27"
REACT_APP_L1_CUSTOM_ERC20_GATEWAY_PROXY_ADDR = "0x31C994F2017E71b82fd4D8118F140c81215bbb37"
REACT_APP_L2_CUSTOM_ERC20_GATEWAY_PROXY_ADDR = "0x058dec71E53079F9ED053F3a0bBca877F6f3eAcf"
REACT_APP_L1_USDC_GATEWAY_PROXY_ADDR = ""
REACT_APP_L2_USDC_GATEWAY_PROXY_ADDR= ""
REACT_APP_L1_DAI_GATEWAY_PROXY_ADDR = "0x8b0B9c4e9f41b9bbDEfFee24F9f11C328093d248"
REACT_APP_L2_DAI_GATEWAY_PROXY_ADDR = "0xbF28c28490988026Dca2396148DE50136A54534e"
REACT_APP_L1_LIDO_GATEWAY_PROXY_ADDR = "0xF22B24fa7c3168f30b17fd97b71bdd3162DDe029"
REACT_APP_L2_LIDO_GATEWAY_PROXY_ADDR = "0x635B054A092F6aE61Ce0Fddc397A704F6626510D"
REACT_APP_L1_PUFFER_GATEWAY_PROXY_ADDR = "0xA033Ff09f2da45f0e9ae495f525363722Df42b2a"
REACT_APP_L2_PUFFER_GATEWAY_PROXY_ADDR = "0x9eBf2f33526CD571f8b2ad312492cb650870CFd6"
REACT_APP_L1_STANDARD_ERC20_GATEWAY_PROXY_ADDR = "0x65D123d6389b900d954677c26327bfc1C3e88A13"
REACT_APP_L2_STANDARD_ERC20_GATEWAY_PROXY_ADDR = "0xaDcA915971A336EA2f5b567e662F5bd74AEf9582"
REACT_APP_L1_SCROLL_MESSENGER="0x50c7d3e7f7c656493D1D76aaa1a836CedfCBB16A"
REACT_APP_L2_SCROLL_MESSENGER="0xBa50f5340FB9F3Bd074bD638c9BE13eCB36E603d"
REACT_APP_L1_SCROLL_MESSENGER = "0x50c7d3e7f7c656493D1D76aaa1a836CedfCBB16A"
REACT_APP_L2_SCROLL_MESSENGER = "0xBa50f5340FB9F3Bd074bD638c9BE13eCB36E603d"
REACT_APP_L1_GATEWAY_ROUTER_PROXY_ADDR = "0x13FBE0D0e5552b8c9c4AE9e2435F38f37355998a"
REACT_APP_L2_GATEWAY_ROUTER_PROXY_ADDR = "0x9aD3c5617eCAa556d6E166787A97081907171230"
REACT_APP_L1_GAS_PRICE_ORACLE = "0x5300000000000000000000000000000000000002"
REACT_APP_SCROLL_CHAIN = "0x2D567EcE699Eabe5afCd141eDB7A4f2D0D6ce8a0"
REACT_APP_L1_MESSAGE_QUEUE = "0xF0B2293F5D834eAe920c6974D50957A1732de763"
REACT_APP_L1_BATCH_BRIDGE_GATEWAY_PROXY_ADDR = "0xE86ad3312FA693aDeD34dEc3899176d97ac883B2"
REACT_APP_SCROLL_ORIGINS_NFT="0x90a274D591d5AB1a25f0DD0F06F28533C34D7d9f"
REACT_APP_SCROLL_ORIGINS_NFT_V2="0xDd7d857F570B0C211abfe05cd914A85BefEC2464"
REACT_APP_L1_MESSAGE_QUEUE_WITH_GAS_PRICE_ORACLE="0xF0B2293F5D834eAe920c6974D50957A1732de763"
REACT_APP_OPEN_BLOCK_URI="https://kx58j6x5me.execute-api.us-east-1.amazonaws.com"
REACT_APP_OKX_URI="https://www.okx.com/web3/explorer/scroll?channelId=scroll"
REACT_APP_BLOCKSCOUT_URI="https://scroll.blockscout.com/"
REACT_APP_L2_GAS_PRICE_ORACLE = "0x247969F4fad93a33d4826046bc3eAE0D36BdE548"
REACT_APP_SCROLL_CHAIN="0x2D567EcE699Eabe5afCd141eDB7A4f2D0D6ce8a0"
REACT_APP_L1_MESSAGE_QUEUE="0xF0B2293F5D834eAe920c6974D50957A1732de763"

REACT_APP_EAS_ADDRESS="0xaEF4103A04090071165F78D45D83A0C0782c2B2a"
REACT_APP_BADGE_SCHEMA="0xa35b5470ebb301aa5d309a8ee6ea258cad680ea112c86e456d5f2254448afc74"
REACT_APP_PROFILE_REGISTRY_ADDRESS="0x26aa585d5Da74A373E58c4fA723E1E1f6FD6474f"
REACT_APP_BADGE_RESOLVER_ADDRESS="0xd2270b3540FD2220Fa1025414e1625af8B0dd8f3"
REACT_APP_EAS_GRAPHQL_URL="https://scroll-sepolia.easscan.org/graphql"
REACT_APP_CANVAS_BACKEND_URI="https://skelly-backend-git-sepolia-scroll-tech.vercel.app"
REACT_APP_FFRONTENDS_URL = "https://scroll-skelly.env.scroll.io"
REACT_APP_EAS_EXPLORER_URL = "https://scroll-sepolia.easscan.org"
REACT_APP_ETHEREUM_YEAR_BADGE_API_URI = "https://genesis-nft-backend-git-sepolia-scroll-tech.vercel.app"
REACT_APP_BADGE_REGISTRY_URL="https://badge-registry.canvas.scroll.cat"
REACT_APP_BADGE_INDEXER_URL="https://canvas-indexer.scroll.cat"
REACT_APP_ETHEREUM_YEAR_BADGE_ADDRESS = "0xB59B6466B21a089c93B14030AF88b164905a58fd"
REACT_APP_SCR_HOLDING_BADGE_ADDRESS = "0xef071708e09becfeac1e3d8afa1602bb6eb57922"
3 changes: 3 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
layout node

dotenv_if_exists .env
2 changes: 1 addition & 1 deletion .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: "Bump Version on sepolia"
on:
push:
branches:
- sepolia
- disabled-sepolia

jobs:
bump-version:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge_prod_back_to_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: "Merge Prod Back to Dev"
on:
push:
branches:
- mainnet
- disabled-mainnet

jobs:
merge-back:
Expand Down
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,13 @@ yarn-error.log*

.vscode
.env
.tool-versions
.tool-versions


.next
next-env.d.ts

/src/pages/blog/data.json

# Local Netlify folder
.netlify
27 changes: 18 additions & 9 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const CracoLessPlugin = require("craco-less")
const webpack = require("webpack")
const path = require("path")
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
const SentryWebpackPlugin = require("@sentry/webpack-plugin")
// const SentryWebpackPlugin = require("@sentry/webpack-plugin")
require("./scripts/download-blog-posts.data.json.js")

module.exports = {
babel: {
Expand Down Expand Up @@ -73,14 +74,22 @@ module.exports = {
fullySpecified: false,
},
})
if (env === "production") {
const sentryPlugin = new SentryWebpackPlugin({
org: "scroll-zkp",
project: "scroll-io",
include: "./build",
release: process.env.REACT_APP_VERSION,
})
webpackConfig.plugins.push(sentryPlugin)

webpackConfig.module.rules.push({
test: /\.m?js$/,
include: /node_modules/,
type: "javascript/auto",
resolve: {
fullySpecified: false,
},
})

if (env === "production" && process.env.CI) {
// const sentryPlugin = new SentryWebpackPlugin({
// include: "./build",
// release: process.env.REACT_APP_VERSION,
// })
// webpackConfig.plugins.push(sentryPlugin)

const instanceOfMiniCssExtractPlugin = webpackConfig.plugins.find(plugin => plugin instanceof MiniCssExtractPlugin)
instanceOfMiniCssExtractPlugin.options.ignoreOrder = true
Expand Down
80 changes: 80 additions & 0 deletions docs/canvas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Scroll Canvas - Anthropomorphic "assistants" Integration Guide for Developers

## Introduction

This guide provides developers with the necessary steps to integrate the Canvas minting functionality on the Scroll network into third-party platforms. By following this guide, you will enable your users to mint badges directly from your platform.

## Prerequisites

Ensure that your platform is compatible with and connected to the Scroll network. Developers should have a basic understanding of blockchain interactions and contract operations within the Scroll ecosystem.

## Integration Steps

### Step 1: Network Connection

Before initiating any minting operations, verify that the platform is connected to the Scroll network.

### Step 2: Compliance with Minting Requirements

Check for compliance with predefined minting rules set by your platform. These rules are defined by partners and should be verified before proceeding.

### Step 3: Mint Prompt

A scrolly can be placed in the corner of the page to remind the user to mint a badge.
![Canvas on Bridge](https://github.com/user-attachments/assets/3b8445f5-8890-453f-b92c-4834dad5846c)
[Reference code](https://github.com/scroll-tech/frontends/blob/mainnet/src/pages/bridge/components/MintBadge/index.tsx)

After clicking the button, there are two ways to show the badge introduction:

- Redirect to badge introduction page 【officially used】
![CleanShot 2024-09-11 at 13 58 01@2x](https://github.com/user-attachments/assets/62a21eb5-3bbf-49a5-8599-8d1c2fc71805)
[Reference code](https://github.com/scroll-tech/frontends/blob/mainnet/src/pages/canvas/badgeContract/index.tsx)
- Show a mint pop-up displaying badge introduction
![BadgeDetailDialog](https://github.com/user-attachments/assets/8a664aa2-9d17-4f38-a170-11bb0f413e20)
[Reference code](https://github.com/scroll-tech/frontends/blob/mainnet/src/pages/canvas/Dashboard/BadgeDetailDialog/index.tsx)

##### Main actions:

1. Retrieve the badge description information according to [badgeTokenURI](https://github.com/scroll-tech/canvas-contracts/blob/master/src/badge/extensions/ScrollBadgeDefaultURI.sol) and display it to the user.
2. Check if the user already has this badge
3. Check user eligibility for minting
4. Display an ineligibility message according to the badge type
5. Disable the mint button for ineligible users
6. Enable the mint button for eligible users

### Step 4: Additional Conditions

Badges and Canvas are not inherently linked, meaning a user can mint a badge without minting a Canvas. However, if you want to require the user to mint the Canvas first before minting the badge (so that the minted badge can be automatically attached to the Scroll Canvas), you can add an extra check for this.

- On a badge introduction page
![BadgeDetailPage without Canvas](https://github.com/user-attachments/assets/6c6e1dfe-cac1-4e82-8e8d-02c3e88ae148)

- On a badge introduction modal
![BadgeDetailDialog without Canvas](https://github.com/user-attachments/assets/56d92a81-81c8-42fc-98e1-4f6df729bc67)

[Reference Code](https://github.com/scroll-tech/frontends/blob/mainnet/src/services/canvasService.ts#L128)

### Step 5: Execute Mint Operation

Scroll supports 3 different types of badges, each with its corresponding minting method except for gifted badge which would be minted by the issuer. You can refer to [the function](https://github.com/scroll-tech/frontends/blob/mainnet/src/services/canvasService.ts#L330) for details.

### Step 6: Post-Mint Process

After minting successfully,

- Redirect to the user’s badge detail page and display the badge details.
![BadgeDetailPage](https://github.com/user-attachments/assets/4a0d53ae-7a24-4c1c-abdf-d6c7716a2a4c)
[Reference code](https://github.com/scroll-tech/frontends/blob/mainnet/src/pages/canvas/badge/index.tsx)

- Only display a success notification.
[Reference code](https://github.com/scroll-tech/frontends/blob/mainnet/src/pages/canvas/Dashboard/BadgeDetailDialog/index.tsx#L121)

## Conclusion

[canvasService](https://github.com/scroll-tech/frontends/blob/mainnet/src/services/canvasService.ts) includes many useful methods for interacting with Canvas-related contracts, like: `getBadgeMetadata`, `checkIfHasBadgeByAddress`, `mintBadge`.

[badgeContract](https://github.com/scroll-tech/frontends/blob/mainnet/src/pages/canvas/badgeContract/index.tsx) and [badge](https://github.com/scroll-tech/frontends/blob/mainnet/src/pages/canvas/badge/index.tsx) are the two important parts currently used in the Scroll frontend's mint badge process.

Additionally, if you want a more lightweight way to integrate the mint badge process into your website, [BadgeDetailDialog](https://github.com/scroll-tech/frontends/blob/mainnet/src/pages/canvas/Dashboard/BadgeDetailDialog/index.tsx) is a solution worth trying.

This guide should assist you in integrating the Canvas mint functionality within your platform. If you need additional support or have some questions, please contact our developer support team.
Loading