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

Fix/typos in bridge store #1298

Open
wants to merge 687 commits into
base: sepolia
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
687 commits
Select commit Hold shift + click to select a range
97633bf
fix: coupon -> invite
Holybasil Apr 2, 2024
2c1e907
fix: allow attestByDelegation
Holybasil Apr 11, 2024
cff4d6f
fix: define badges && env
Holybasil Apr 11, 2024
3e25c8c
fix: customise display badge
Holybasil Apr 11, 2024
abfeb8d
test: Ethereum Year Badge
Holybasil Apr 11, 2024
5740a6d
fix: check eligibility && get recipient by badgeId
Holybasil Apr 11, 2024
5813512
fix: adjust onboarding style
Holybasil Apr 12, 2024
c4dcf41
fix: first badge animation
Holybasil Apr 15, 2024
17fdb9f
fix: env
Holybasil Apr 15, 2024
505c60f
fix: mint to canvas
Holybasil Apr 15, 2024
cf8690b
fix: first mint && just view canvas
Holybasil Apr 15, 2024
0cdf783
fix: center badge detail
Holybasil Apr 15, 2024
a680287
fix: add Cog Finance badge
Holybasil Apr 16, 2024
04e8f7b
fix: log error
Holybasil Apr 18, 2024
196d3ca
fix: remove minted badge
Holybasil Apr 18, 2024
8d25139
fix: refresh badge eligibility
Holybasil Apr 18, 2024
8ffa71d
fix: typo
Holybasil Apr 18, 2024
d676ea4
use signer for queryFirstMintUsername
zzq0826 Apr 24, 2024
e77c6e2
Update copies
zzq0826 Apr 24, 2024
c2f4e49
add zebra canvas
zzq0826 Apr 24, 2024
1829e7d
Update zebra address
zzq0826 Apr 25, 2024
fba6e78
add log
zzq0826 Apr 25, 2024
f1a32eb
update ethers
zzq0826 May 6, 2024
c5efc0c
improve style
zzq0826 May 9, 2024
b682e25
improve style
zzq0826 May 9, 2024
f524dc2
improve style
zzq0826 May 9, 2024
e08c66b
improve canvas style
zzq0826 May 9, 2024
fe3e59a
fix: scroll button style
Holybasil May 13, 2024
e682c4e
fix: canvas mobile version
Holybasil May 20, 2024
b04a8a3
fix: mobile ecosystem badges
Holybasil May 20, 2024
ecb0821
fix: mobile adjustment
Holybasil May 20, 2024
a1d3ad3
fix: pop up a toast after minting a badge
Holybasil May 21, 2024
a55d7bc
fix: self test
Holybasil May 22, 2024
ba5affb
fix: 100vh on mobile
Holybasil May 22, 2024
d384a54
fix: grid bg
Holybasil May 23, 2024
504ad47
fix: measure height while loading
Holybasil May 23, 2024
d11b132
fix: sanity check
Holybasil May 27, 2024
f27b248
env: mainnet
Holybasil May 28, 2024
0a1c356
env: netlify.toml
Holybasil May 28, 2024
234f2ed
fix: no duplicated canvas profile request
Holybasil May 28, 2024
86074b1
chore: add sentry monitoring
Holybasil May 30, 2024
645324e
fix: check badge
Holybasil Jun 4, 2024
f632e82
feat: explore badges
Holybasil Jun 7, 2024
84423f6
fix: copy && style
Holybasil Jun 7, 2024
aef84cc
fix: recheck badges eligibility
Holybasil Jun 11, 2024
f244bd3
fix: fixed canvas name
Holybasil Jun 11, 2024
886594d
fix: rebase issue
Holybasil Jun 12, 2024
ed48571
fix: determine wallet status
Holybasil Jun 13, 2024
a80b7c7
env: some missing
Holybasil Jun 13, 2024
66e62b0
fix: style
Holybasil Jun 13, 2024
d8eadeb
fix: limit parallel requests
Holybasil Jun 13, 2024
f781316
data: add Ambient badges
Holybasil Jun 14, 2024
b03c7e2
fix: dialog bg
Holybasil Jun 14, 2024
ae5a51a
fix: request token list if necessary
Holybasil Jun 14, 2024
1e53ba7
fix: default token list
Holybasil Jun 14, 2024
6f19335
data: third party badges
Holybasil Jun 17, 2024
f5d4ee2
fix: feedback
Holybasil Jun 20, 2024
15d363c
fix: reduce requests
Holybasil Jun 20, 2024
d9ef89a
fix: badge preview
Holybasil Jun 20, 2024
c949825
fix: use badelist.json
Holybasil Jun 25, 2024
42dd88c
feat: support upgrading badge
Holybasil Jul 3, 2024
84080a8
fix: separate the check badge requests.
Holybasil Jul 3, 2024
605d96a
fix: upgrade current badge
Holybasil Jul 3, 2024
858af07
fix: style
Holybasil Jul 4, 2024
012c670
fix: reduce requests
Holybasil Jul 5, 2024
86e9b39
fix: unknown issuer
Holybasil Jul 8, 2024
047a3ea
fix: add canvas T&C
Holybasil Jul 11, 2024
faa3f19
fix: /scroll-canvas -> /canvas
Holybasil Jul 12, 2024
fd23d17
env: the final contract addresses
Holybasil Jul 12, 2024
895084d
env: remove scroll-canvas-mainne
Holybasil Jul 12, 2024
d9dc805
monitor: better sentry
Holybasil Jul 12, 2024
4c96ca3
fix: links in canvas T&C
Holybasil Jul 12, 2024
831d2c4
fix: remove redundant code
Holybasil Jul 12, 2024
99316e6
version: 5.1.0
Holybasil Jul 13, 2024
3c9f2d5
fix: metadata image
Holybasil Jul 14, 2024
84fea42
Merge pull request #1177 from scroll-tech/scroll-skelly
Holybasil Jul 14, 2024
7cd6594
Merge pull request #1178 from scroll-tech/sepolia
Holybasil Jul 14, 2024
3b637e5
fix: show walletConnector
Holybasil Jul 14, 2024
3929b8d
fix: desc in badge detail dialog
Holybasil Jul 14, 2024
f441d9a
Merge pull request #1179 from scroll-tech/canvas-adjustment
Holybasil Jul 14, 2024
06bf844
Merge pull request #1180 from scroll-tech/sepolia
Holybasil Jul 14, 2024
a28b569
fix: twitter share text
Holybasil Jul 14, 2024
548c611
fix: others badge
Holybasil Jul 14, 2024
47e39fe
Merge pull request #1181 from scroll-tech/canvas-twitter
Holybasil Jul 14, 2024
1a181ac
Merge pull request #1182 from scroll-tech/sepolia
Holybasil Jul 14, 2024
1c3f5b3
fix client.chain (#1183)
zzq0826 Jul 14, 2024
fd8d23b
Merge pull request #1184 from scroll-tech/sepolia
zzq0826 Jul 14, 2024
e4ddffe
fix: tx on wrong network
Holybasil Jul 14, 2024
753c632
Merge pull request #1185 from scroll-tech/sepolia
Holybasil Jul 14, 2024
9fcf5b2
Use contract provider (#1186)
zzq0826 Jul 14, 2024
b5b2958
Use contract provider
zzq0826 Jul 14, 2024
a4b1708
fix: badgeForMint name
Holybasil Jul 15, 2024
3b28064
Merge remote-tracking branch 'origin/mainnet' into sepolia
Holybasil Jul 15, 2024
40809ff
fix: feedback 7.15
Holybasil Jul 15, 2024
2eb7941
Merge pull request #1188 from scroll-tech/canvas-feedback
Holybasil Jul 15, 2024
561bbee
Merge pull request #1189 from scroll-tech/sepolia
Holybasil Jul 15, 2024
db4ae7d
chore: remove Origins NFT badge
Holybasil Jul 15, 2024
d6ecf06
fix: code font
Holybasil Jul 15, 2024
5b471f5
Only report manual submissions (#1190)
zzq0826 Jul 15, 2024
1ab1cc6
Only report manual submissions
zzq0826 Jul 15, 2024
7410c78
Merge remote-tracking branch 'origin/mainnet' into sepolia
Holybasil Jul 15, 2024
e5eb225
fix: make NFT badge mintable&&invisible
Holybasil Jul 15, 2024
21bda7e
Merge pull request #1192 from scroll-tech/origins-nft-badge
Holybasil Jul 15, 2024
cd58a39
Merge pull request #1193 from scroll-tech/sepolia
Holybasil Jul 15, 2024
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
9742110
fix: rename parameter in fetchCanvasDetail from privider to provider
betrayalove Oct 2, 2024
83ff1f3
fix: correct typos in depositType and depositAmountIsValid in BatchBr…
betrayalove Oct 2, 2024
d431644
fix: correct typos and add missing types in BridgeStore
betrayalove Oct 2, 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
  •  
  •  
  •  
63 changes: 48 additions & 15 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,35 +1,68 @@
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_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_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_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"
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
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ yarn-error.log*

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


.next
next-env.d.ts

/src/pages/blog/data.json
15 changes: 12 additions & 3 deletions craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const webpack = require("webpack")
const path = require("path")
const MiniCssExtractPlugin = require("mini-css-extract-plugin")
const SentryWebpackPlugin = require("@sentry/webpack-plugin")
require("./scripts/download-blog-posts.data.json.js")

module.exports = {
babel: {
Expand Down Expand Up @@ -73,10 +74,18 @@ module.exports = {
fullySpecified: false,
},
})
if (env === "production") {

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({
org: "scroll-zkp",
project: "scroll-io",
include: "./build",
release: process.env.REACT_APP_VERSION,
})
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