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

Staging #226

Merged
merged 334 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
334 commits
Select commit Hold shift + click to select a range
b2071ae
checkpoint on caching transfer data
elclandestin0 Oct 31, 2024
7733add
return txRecord
elclandestin0 Oct 31, 2024
73799dd
feat: add index file for streamlined logo exports
Anton-Mushnin Nov 1, 2024
e8e13c9
refactor: landing - extract Navbar, MainSection, BenefitsSection, and…
Anton-Mushnin Nov 1, 2024
e7714ee
API data ingest
elclandestin0 Nov 1, 2024
f555768
Get symbol
elclandestin0 Nov 1, 2024
3ebb6b2
caching successful
elclandestin0 Nov 1, 2024
e2ed51a
refactored claim
elclandestin0 Nov 1, 2024
034e55a
feat: segmented progress bar for custom scrolling
Anton-Mushnin Nov 2, 2024
0c05523
feat: container with custom scrolling
Anton-Mushnin Nov 2, 2024
c593586
cp
elclandestin0 Nov 4, 2024
69344db
decimal places fixed.
elclandestin0 Nov 4, 2024
e60697d
updated ETA format
elclandestin0 Nov 4, 2024
381a0f6
remove useTransferData
elclandestin0 Nov 4, 2024
63f0aa5
Withdrawal ETA looking good
elclandestin0 Nov 4, 2024
1526899
change delay in seconds
elclandestin0 Nov 4, 2024
549ea2a
feat: slides transition animation
Anton-Mushnin Nov 4, 2024
57ab569
change delay in seconds
elclandestin0 Nov 4, 2024
63ae487
Merge branch 'feat/bridge-updates' of github.com:G7DAO/protocol into …
elclandestin0 Nov 4, 2024
3ceb704
change node and re-do symbol
elclandestin0 Nov 4, 2024
11f5526
parse symbol correctly
elclandestin0 Nov 4, 2024
d3d74a5
return ETA
elclandestin0 Nov 4, 2024
f0888da
ready for testing
elclandestin0 Nov 4, 2024
9a96d37
build fix
elclandestin0 Nov 4, 2024
f42bddf
Merge pull request #168 from G7DAO/feat/bridge-updates
elclandestin0 Nov 4, 2024
bf6ec10
feat: custom scrolling for large view
Anton-Mushnin Nov 5, 2024
4345a86
fix: TS errors and warnings
Anton-Mushnin Nov 5, 2024
e8bd0d8
chore: remove commented lines
Anton-Mushnin Nov 5, 2024
12a70ac
Merge pull request #169 from G7DAO/landing-custom-scroll
Anton-Mushnin Nov 5, 2024
b62b59a
collapsible
elclandestin0 Nov 5, 2024
ccdcd81
Merge pull request #170 from G7DAO/feat/bridge-updates
elclandestin0 Nov 5, 2024
56c9120
sort by l8st transactions
elclandestin0 Nov 5, 2024
ad371d3
style: scroll bar width
Anton-Mushnin Nov 5, 2024
faa5ad3
Merge pull request #171 from G7DAO/landing-custom-scroll
Anton-Mushnin Nov 5, 2024
39a5242
returning all values
elclandestin0 Nov 5, 2024
25df5b5
hover collapsible highlight color
elclandestin0 Nov 5, 2024
c72795f
fix build
elclandestin0 Nov 5, 2024
7b579cc
Merge pull request #172 from G7DAO/feat/bridge-updates
elclandestin0 Nov 5, 2024
70f1821
checking if ETA match
elclandestin0 Nov 6, 2024
b60a8ee
nb rpc
elclandestin0 Nov 6, 2024
102a018
Merge pull request #173 from G7DAO/feat/bridge-updates
elclandestin0 Nov 6, 2024
e30a99d
added usdc
elclandestin0 Nov 6, 2024
b7f6cfb
added sepolia node
elclandestin0 Nov 6, 2024
15dc25a
Merge pull request #174 from G7DAO/feat/bridge-updates
elclandestin0 Nov 6, 2024
0eff025
change token address
elclandestin0 Nov 6, 2024
70f3a24
usdc
elclandestin0 Nov 6, 2024
f575ddc
updates
elclandestin0 Nov 7, 2024
cc1e679
correct ETA
elclandestin0 Nov 7, 2024
8834d15
testing for demo
elclandestin0 Nov 7, 2024
ebe0f4c
Merge pull request #175 from G7DAO/feat/bridge-updates
elclandestin0 Nov 7, 2024
fda7a4d
deposit caching looking .. ok?
elclandestin0 Nov 7, 2024
e93ac5a
localStorageCaching for withdrawal if api data doesn't contain
elclandestin0 Nov 8, 2024
2d1a775
withdrawal caching looking greeeeaat! RPC nodes left. testing on staging
elclandestin0 Nov 8, 2024
163e78d
checking staging with node
elclandestin0 Nov 8, 2024
079173c
Merge pull request #176 from G7DAO/feat/bridge-updates
elclandestin0 Nov 8, 2024
f0edbbf
fix build error
elclandestin0 Nov 8, 2024
d0aeb49
Merge pull request #177 from G7DAO/feat/bridge-updates
elclandestin0 Nov 8, 2024
6a33a92
old rpc nodes
elclandestin0 Nov 8, 2024
33aea89
coingeckoapi checkpoint
elclandestin0 Nov 8, 2024
073d828
Merge pull request #178 from G7DAO/feat/bridge-updates
elclandestin0 Nov 8, 2024
9d312f1
looking good
elclandestin0 Nov 8, 2024
0dce01c
price return
elclandestin0 Nov 9, 2024
298b831
fix caching
elclandestin0 Nov 11, 2024
b117955
Robots workflow for staging
kompotkot Nov 11, 2024
5fc687a
amazing stuff
elclandestin0 Nov 11, 2024
96af7c0
caching happens right after getting end point data
elclandestin0 Nov 11, 2024
a6c5c6b
fix build
elclandestin0 Nov 11, 2024
fdeff4c
Merge pull request #181 from G7DAO/feat/bridge-updates
elclandestin0 Nov 11, 2024
03ed5a2
Merge pull request #180 from G7DAO/staging-robots-txt
kompotkot Nov 11, 2024
58c7f1b
try catch block for 429 error
elclandestin0 Nov 11, 2024
970d46e
staging
elclandestin0 Nov 11, 2024
53cf427
throw error
elclandestin0 Nov 11, 2024
77e0711
Merge pull request #182 from G7DAO/feat/bridge-updates
elclandestin0 Nov 11, 2024
1390c7c
make sticky
elclandestin0 Nov 11, 2024
30d57d0
disable bridge on mainnet
elclandestin0 Nov 11, 2024
50810a7
disable buttons and sidebar if mainnet
elclandestin0 Nov 11, 2024
4adf7af
added estimation approval
elclandestin0 Nov 12, 2024
6d85d32
approval fix
elclandestin0 Nov 12, 2024
c66b10d
mobile view
elclandestin0 Nov 12, 2024
4672f42
caching improvements
elclandestin0 Nov 12, 2024
3718ef6
changed local storage keys and added networks
elclandestin0 Nov 13, 2024
a1d110b
Merge branch 'feat/bridge-updates' into feat/network-toggle
elclandestin0 Nov 13, 2024
8391453
storageKey upd8s
elclandestin0 Nov 13, 2024
75b2421
caching looking SICK
elclandestin0 Nov 13, 2024
8e28256
yarn build
elclandestin0 Nov 13, 2024
14a34a4
storageKey updates
elclandestin0 Nov 13, 2024
95d97ee
toggling between transactions let's fkn goo
elclandestin0 Nov 13, 2024
7caa00b
tokens showing in network selector
elclandestin0 Nov 13, 2024
eb8f566
networks now showing.. nice
elclandestin0 Nov 13, 2024
2461478
navigate to `/bridge` when on settings page and on mainnet
elclandestin0 Nov 14, 2024
41124ef
change symbol
elclandestin0 Nov 14, 2024
edf25f8
change L1 name
elclandestin0 Nov 14, 2024
b6dc20d
current caching
elclandestin0 Nov 14, 2024
27aea42
show and hide badge
elclandestin0 Nov 14, 2024
908077c
network toggle new styles added to navbar
elclandestin0 Nov 14, 2024
074b120
fix build and add blockchain explorer link
elclandestin0 Nov 14, 2024
826175f
clip navbar items to the right no matter the screen size
elclandestin0 Nov 15, 2024
e35d1e9
Merge pull request #183 from G7DAO/landing-custom-scroll
elclandestin0 Nov 15, 2024
5011977
Merge branch 'feat/bridge-updates' into feat/network-toggle
elclandestin0 Nov 15, 2024
330014a
caching update
elclandestin0 Nov 18, 2024
1d69f8d
fix decimal places in action button
elclandestin0 Nov 18, 2024
1bd53d4
withdraw successful
elclandestin0 Nov 18, 2024
ebe7cd4
hide token from list if `to` chain doesn't contain it
elclandestin0 Nov 18, 2024
c39fe15
added rate
elclandestin0 Nov 18, 2024
52ec25b
keep token selection
elclandestin0 Nov 18, 2024
018d3ad
fix hook update
elclandestin0 Nov 18, 2024
b681ac9
fix arbiscan url
elclandestin0 Nov 18, 2024
b17a040
claim working from mobile
elclandestin0 Nov 18, 2024
918d492
mergeTx function fix..
elclandestin0 Nov 18, 2024
6b37b9e
increased stale time and went back to old status for withdrawal..
elclandestin0 Nov 18, 2024
1777b56
back to using old method of status
elclandestin0 Nov 19, 2024
08bde58
withdrawal clean up
elclandestin0 Nov 19, 2024
41a799c
tokeninformation from API and merge transactions
elclandestin0 Nov 19, 2024
ef001cc
Merge pull request #184 from G7DAO/feat/bridge-updates
elclandestin0 Nov 19, 2024
b27f1bb
Merge remote-tracking branch 'origin/staging' into feat/network-toggle
elclandestin0 Nov 19, 2024
0afc079
fix hook issue
elclandestin0 Nov 19, 2024
443a2d7
fix build
elclandestin0 Nov 19, 2024
a133120
Merge pull request #185 from G7DAO/feat/network-toggle
elclandestin0 Nov 19, 2024
82d80c6
attempt removing scroll bar from safari
elclandestin0 Nov 19, 2024
f480e76
fix .usd error null check
elclandestin0 Nov 19, 2024
e27ca24
Merge pull request #186 from G7DAO/feat/network-toggle
elclandestin0 Nov 19, 2024
ec9a444
fix token selection
elclandestin0 Nov 19, 2024
454c598
Merge pull request #187 from G7DAO/feat/network-toggle
elclandestin0 Nov 19, 2024
f37b4cc
save selectedNetworkType to local storage
elclandestin0 Nov 20, 2024
79fe91a
allow network selection but maintain token selection
elclandestin0 Nov 20, 2024
190294e
Merge pull request #191 from G7DAO/feat/network-toggle
elclandestin0 Nov 20, 2024
f9d95b4
fix build and log errors
elclandestin0 Nov 20, 2024
a4475e9
Merge pull request #192 from G7DAO/feat/network-toggle
elclandestin0 Nov 20, 2024
d0699a8
log
elclandestin0 Nov 20, 2024
d8154ab
Merge pull request #193 from G7DAO/feat/network-toggle
elclandestin0 Nov 20, 2024
a08518d
updated sdk
elclandestin0 Nov 20, 2024
a9365b7
Merge pull request #194 from G7DAO/feat/network-toggle
elclandestin0 Nov 20, 2024
3c9e5aa
added lock file
elclandestin0 Nov 20, 2024
66e9e90
remove useless logs
elclandestin0 Nov 20, 2024
5bfa0f1
Revert "added lock file"
elclandestin0 Nov 20, 2024
18f36d1
Reapply "added lock file"
elclandestin0 Nov 21, 2024
f73d218
faucet tooltip
elclandestin0 Nov 21, 2024
704e767
clean up
elclandestin0 Nov 21, 2024
4abc748
Attempt to fix DEV-11
elclandestin0 Nov 21, 2024
41ebfaf
fix build
elclandestin0 Nov 21, 2024
ba374a1
Merge pull request #195 from G7DAO/feat/network-toggle
elclandestin0 Nov 21, 2024
bde8781
padding on options
elclandestin0 Nov 21, 2024
40a04b2
Merge pull request #197 from G7DAO/feat/network-toggle
elclandestin0 Nov 21, 2024
7a6ce22
navigate to bridge if on faucet and switch to mainnet
elclandestin0 Nov 21, 2024
85b41c5
Merge pull request #198 from G7DAO/feat/network-toggle
elclandestin0 Nov 21, 2024
9bde71e
removing local tx cache to test raw status retrieval
elclandestin0 Nov 22, 2024
8e3026a
Revert "removing local tx cache to test raw status retrieval"
elclandestin0 Nov 22, 2024
aec9c83
caching looking better
elclandestin0 Nov 22, 2024
7782502
change network name
elclandestin0 Nov 22, 2024
57ca174
return of the transfer
elclandestin0 Nov 22, 2024
747f213
added getTransactionInputs
elclandestin0 Nov 22, 2024
be51280
tokenInformation?.symbol
elclandestin0 Nov 22, 2024
f11d184
fix tx hash return
elclandestin0 Nov 22, 2024
b33ff34
caching update
elclandestin0 Nov 22, 2024
77b18e4
split last 2 columns in deposit
elclandestin0 Nov 22, 2024
4a078d9
update split columns
elclandestin0 Nov 22, 2024
0b5cb38
major progress with Withdrawal caching
elclandestin0 Nov 23, 2024
d99a668
Revert "major progress with Withdrawal caching"
elclandestin0 Nov 25, 2024
18518a0
getTransactionInputs update
elclandestin0 Nov 25, 2024
5c45271
Merge pull request #202 from G7DAO/feat/network-toggle
elclandestin0 Nov 25, 2024
446717d
caching tx inputs
elclandestin0 Nov 25, 2024
6ea7440
Merge pull request #203 from G7DAO/feat/network-toggle
elclandestin0 Nov 25, 2024
5b1806e
caching and token decimals looking grreat
elclandestin0 Nov 25, 2024
44d2f86
reemove logs
elclandestin0 Nov 25, 2024
8ada142
Merge pull request #204 from G7DAO/feat/network-toggle
elclandestin0 Nov 25, 2024
0866ed3
clear errors
elclandestin0 Nov 25, 2024
700146b
clear build erro
elclandestin0 Nov 25, 2024
6ef6ba4
Merge pull request #205 from G7DAO/feat/network-toggle
elclandestin0 Nov 25, 2024
b5e0ab0
getInfo() for both withdraw and deposit
elclandestin0 Nov 25, 2024
dd9f3e9
clear build error
elclandestin0 Nov 25, 2024
6a10317
Merge pull request #206 from G7DAO/feat/network-toggle
elclandestin0 Nov 25, 2024
f7166d1
DEV-22, 23, 26
elclandestin0 Nov 25, 2024
07d0829
notifications correction
elclandestin0 Nov 25, 2024
def8ab1
switch between testnet/mainnet tx's
elclandestin0 Nov 25, 2024
27d1102
Merge pull request #208 from G7DAO/feat/network-toggle
elclandestin0 Nov 25, 2024
8600f09
faucet links to testnet faucet
elclandestin0 Nov 25, 2024
5a7f75b
setselectednetwork type specifies notifications
elclandestin0 Nov 25, 2024
e4f835f
Merge pull request #209 from G7DAO/feat/network-toggle
elclandestin0 Nov 25, 2024
50c5c13
rename networks
elclandestin0 Nov 26, 2024
a65a3cc
Merge pull request #210 from G7DAO/feat/network-toggle
elclandestin0 Nov 26, 2024
4b7864c
mouse click away from network toggle closes dropdown
elclandestin0 Nov 26, 2024
4ef85db
change g7 network logos
elclandestin0 Nov 26, 2024
6676b16
update icon for G7Token
elclandestin0 Nov 26, 2024
0592058
query params
elclandestin0 Nov 26, 2024
131953a
navigating to bridge selects mainnet
elclandestin0 Nov 26, 2024
cd1d68f
Merge pull request #211 from G7DAO/feat/network-toggle
elclandestin0 Nov 26, 2024
9be0bb5
update SDK version
elclandestin0 Nov 27, 2024
6afef02
fix noStatusFound
elclandestin0 Nov 27, 2024
d8c8b49
Merge pull request #215 from G7DAO/feat/network-toggle
elclandestin0 Nov 27, 2024
1a2dca7
links
elclandestin0 Nov 27, 2024
972f7ac
Merge pull request #216 from G7DAO/feat/network-toggle
elclandestin0 Nov 27, 2024
9d5d53e
caching highNetworkTimestamp
elclandestin0 Nov 27, 2024
7af0bce
claim working
elclandestin0 Nov 27, 2024
648694e
DEV-27 hover animation
elclandestin0 Nov 27, 2024
bc42309
mobile changes
elclandestin0 Nov 27, 2024
cc04319
build error
elclandestin0 Nov 27, 2024
b23d256
Merge pull request #217 from G7DAO/feat/network-toggle
elclandestin0 Nov 27, 2024
2907b7a
token symbol caching well
elclandestin0 Nov 28, 2024
2687c3f
caching well
elclandestin0 Nov 28, 2024
98b4a72
separate storage keys
elclandestin0 Nov 28, 2024
96388c0
updated pkg
elclandestin0 Nov 29, 2024
bc654cb
Merge pull request #220 from G7DAO/feat/network-toggle
elclandestin0 Nov 29, 2024
ae8b3ff
fix transactionInputs caching
elclandestin0 Nov 29, 2024
b286b79
Merge pull request #221 from G7DAO/feat/network-toggle
elclandestin0 Nov 29, 2024
eae0b5d
fix clicking notification errro
elclandestin0 Dec 2, 2024
7e345fb
some ui changes
elclandestin0 Dec 2, 2024
611eb43
other ui stuff
elclandestin0 Dec 2, 2024
2767413
click notification close
elclandestin0 Dec 2, 2024
95d40e8
Merge pull request #223 from G7DAO/feat/bugs-and-ui-ux
elclandestin0 Dec 2, 2024
da8322c
remove settings
elclandestin0 Dec 2, 2024
276678b
gasFee = 0.0025
elclandestin0 Dec 2, 2024
f47d054
fix build
elclandestin0 Dec 2, 2024
0c24f25
Merge pull request #224 from G7DAO/feat/bugs-and-ui-ux
elclandestin0 Dec 2, 2024
d722499
addressed all comments
elclandestin0 Dec 4, 2024
e6d4702
more random retryWithExp.BackOff
elclandestin0 Dec 4, 2024
cc6b5e5
clear errors
elclandestin0 Dec 4, 2024
012d90f
change gasBalance -> nativeBalance
elclandestin0 Dec 4, 2024
d5bdf9c
transactionSummary updated w/o errors
elclandestin0 Dec 4, 2024
7a03950
Merge remote-tracking branch 'origin/staging' into feat/network-toggle
elclandestin0 Dec 4, 2024
ef888e5
Merge pull request #222 from G7DAO/feat/network-toggle
elclandestin0 Dec 4, 2024
8da1c79
keys
elclandestin0 Dec 4, 2024
0e5e1c4
destinationTokenAddress check
elclandestin0 Dec 4, 2024
ad7eed5
Merge pull request #227 from G7DAO/feat/network-toggle
elclandestin0 Dec 4, 2024
56d6c11
dotenv
elclandestin0 Dec 5, 2024
47ff539
Merge pull request #229 from G7DAO/feat/network-toggle
elclandestin0 Dec 5, 2024
1af6e3c
Revert "keys"
elclandestin0 Dec 5, 2024
0babb8f
constants push
elclandestin0 Dec 5, 2024
a157fea
Merge pull request #230 from G7DAO/feat/network-toggle
elclandestin0 Dec 5, 2024
46a2edd
Build of WB dashboard with env vars
kompotkot Dec 6, 2024
22e0c8e
Reduced number of env vars
kompotkot Dec 6, 2024
248bb3d
added env variables
elclandestin0 Dec 6, 2024
2f6be7f
updated variables
elclandestin0 Dec 6, 2024
f9b5773
Vite env var
kompotkot Dec 6, 2024
3ada1d2
Merge remote-tracking branch 'origin/nb-rpc-uri-dashboard-build' into…
elclandestin0 Dec 6, 2024
fa2d037
Merge pull request #234 from G7DAO/feat/network-toggle
elclandestin0 Dec 6, 2024
a714278
style: scrolling speed
Anton-Mushnin Dec 6, 2024
4829544
style: networkEssentialCards align
Anton-Mushnin Dec 6, 2024
372f6fa
Merge remote-tracking branch 'origin/nb-rpc-uri-dashboard-build' into…
elclandestin0 Dec 6, 2024
a3cd2b1
clean constants
elclandestin0 Dec 6, 2024
89d5a32
Merge branch 'staging' into feat/network-toggle
elclandestin0 Dec 6, 2024
c1d54ee
fix errors
elclandestin0 Dec 6, 2024
75ef860
Merge pull request #235 from G7DAO/feat/network-toggle
elclandestin0 Dec 6, 2024
218983b
fix: landing placeholder for background image while loading
Anton-Mushnin Dec 7, 2024
46c3516
Merge pull request #236 from G7DAO/fixes-landing
Anton-Mushnin Dec 7, 2024
534e2b1
update cache stale time
elclandestin0 Dec 7, 2024
931a9af
Massively improve error
elclandestin0 Dec 7, 2024
c323ffe
update retryWithExp. backoff
elclandestin0 Dec 7, 2024
621535a
update cache
elclandestin0 Dec 7, 2024
c48adef
added loading to tokenSymbol
elclandestin0 Dec 7, 2024
d77ac63
Merge pull request #237 from G7DAO/feat/network-toggle
elclandestin0 Dec 7, 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
19 changes: 11 additions & 8 deletions .github/workflows/build_prod_wb-dashboard.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Build prod WB dashboard

on:
pull_request:
branches:
- "main"
- "staging"
paths:
- '.github/workflows/build_prod_wb-dashboard.yml'
- 'webapps/world-builder-dashboard/**'
pull_request:
branches:
- "main"
- "staging"
paths:
- ".github/workflows/build_prod_wb-dashboard.yml"
- "webapps/world-builder-dashboard/**"

jobs:
build_prod_wb-dashboard:
Expand All @@ -24,6 +24,9 @@ jobs:

- name: Build frontend
working-directory: ./webapps/world-builder-dashboard
env:
VITE_NB_JSON_RPC_URI: ${{ secrets.VITE_NB_JSON_RPC_URI }}
VITE_NB_WB_DASHBOARD_ACCESS_ID: ${{ secrets.VITE_NB_WB_DASHBOARD_ACCESS_ID }}
run: |
npm install
npm run build
npm run build
22 changes: 13 additions & 9 deletions .github/workflows/deploy_manual_branch_wb-dashboard.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Manual Deploy branch WB dashboard

on:
workflow_dispatch: # Allow manual trigger
inputs:
branch:
description: "Branch to deploy"
required: true
default: "staging"
workflow_dispatch: # Allow manual trigger
inputs:
branch:
description: "Branch to deploy"
required: true
default: "staging"

jobs:
deploy_manual_branch_wb-dashboard:
Expand All @@ -15,7 +15,7 @@ jobs:
steps:
- name: Show branch name
run: |
echo "Running manual deployment for ${{ github.event.inputs.branch || github.event.pull_request.head.ref }} branch"
echo "Running manual deployment for ${{ github.event.inputs.branch || github.event.pull_request.head.ref }} branch"

- name: Checkout repository and main branch
uses: actions/checkout@v2
Expand All @@ -29,14 +29,18 @@ jobs:

- name: Install and build staging app
working-directory: ./webapps/world-builder-dashboard
env:
VITE_NB_JSON_RPC_URI: ${{ secrets.VITE_NB_JSON_RPC_URI }}
VITE_NB_WB_DASHBOARD_ACCESS_ID: ${{ secrets.VITE_NB_WB_DASHBOARD_ACCESS_ID }}
VITE_BUILD_TARGET: ${{ github.event.inputs.branch || github.event.pull_request.head.ref }}
run: |
npm install
npm run build

- name: Update robots.txt, block alpha for crawlers
working-directory: ./webapps/world-builder-dashboard/dist
run: |
sed -i "s/Disallow:.*/Disallow: \//" robots.txt
sed -i "s/Disallow:.*/Disallow: \//" robots.txt

- name: Upload static site to S3 bucket and invalidate CloudFront cache
working-directory: ./webapps/world-builder-dashboard
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/deploy_prod_wb-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Deploy prod WB dashboard

on:
push:
branches:
- main
paths:
- '.github/workflows/deploy_prod_wb-dashboard.yml'
- 'webapps/world-builder-dashboard/**'
branches:
- main
paths:
- ".github/workflows/deploy_prod_wb-dashboard.yml"
- "webapps/world-builder-dashboard/**"

jobs:
deploy_prod_wb-dashboard:
Expand All @@ -25,15 +25,18 @@ jobs:

- name: Install and build production app
working-directory: ./webapps/world-builder-dashboard
env:
VITE_NB_JSON_RPC_URI: ${{ secrets.VITE_NB_JSON_RPC_URI }}
VITE_NB_WB_DASHBOARD_ACCESS_ID: ${{ secrets.VITE_NB_WB_DASHBOARD_ACCESS_ID }}
run: |
npm install
npm run build

- name: Publish to CloudFlare Page
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN_PROD }}
accountId: ${{ secrets.CF_ACCOUNT_ID_PROD }}
projectName: ${{ secrets.CF_PROJECT_NAME_WB_DASHBOARD_PROD }}
directory: ./webapps/world-builder-dashboard/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
apiToken: ${{ secrets.CF_API_TOKEN_PROD }}
accountId: ${{ secrets.CF_ACCOUNT_ID_PROD }}
projectName: ${{ secrets.CF_PROJECT_NAME_WB_DASHBOARD_PROD }}
directory: ./webapps/world-builder-dashboard/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
28 changes: 16 additions & 12 deletions .github/workflows/deploy_staging_wb-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Deploy staging WB dashboard

on:
push:
branches:
- staging
paths:
- '.github/workflows/deploy_staging_wb-dashboard.yml'
- 'webapps/world-builder-dashboard/**'
branches:
- staging
paths:
- ".github/workflows/deploy_staging_wb-dashboard.yml"
- "webapps/world-builder-dashboard/**"

jobs:
deploy_staging_wb-dashboard:
Expand All @@ -25,20 +25,24 @@ jobs:

- name: Install and build staging app
working-directory: ./webapps/world-builder-dashboard
env:
VITE_NB_JSON_RPC_URI: ${{ secrets.VITE_NB_JSON_RPC_URI }}
VITE_NB_WB_DASHBOARD_ACCESS_ID: ${{ secrets.VITE_NB_WB_DASHBOARD_ACCESS_ID }}
VITE_BUILD_TARGET: staging
run: |
npm install
npm run build

- name: Update robots.txt, block alpha for crawlers
working-directory: ./webapps/world-builder-dashboard/dist
run: |
sed -i "s/Disallow:.*/Disallow: \//" robots.txt
sed -i "s/Disallow:.*/Disallow: \//" robots.txt

- name: Publish to CloudFlare Page
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN_STAGE }}
accountId: ${{ secrets.CF_ACCOUNT_ID_STAGE }}
projectName: ${{ secrets.CF_PROJECT_NAME_WB_DASHBOARD_STAGE }}
directory: ./webapps/world-builder-dashboard/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
apiToken: ${{ secrets.CF_API_TOKEN_STAGE }}
accountId: ${{ secrets.CF_ACCOUNT_ID_STAGE }}
projectName: ${{ secrets.CF_PROJECT_NAME_WB_DASHBOARD_STAGE }}
directory: ./webapps/world-builder-dashboard/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions webapps/world-builder-dashboard/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_NB_JSON_RPC_URI="ADD_URI_HERE"
VITE_NB_WB_DASHBOARD_ACCESS_ID="ADD_ACCESS_ID_HERE"
128 changes: 121 additions & 7 deletions webapps/world-builder-dashboard/constants.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { NetworkInterface, HighNetworkInterface } from '@/contexts/BlockchainContext'
import { TokenAddressMap } from 'game7-bridge-sdk'
import { NetworkInterface, HighNetworkInterface, NetworkType } from '@/contexts/BlockchainContext'

export const L1_NETWORK: NetworkInterface = {
chainId: 11155111,
name: 'sepolia',
displayName: 'Sepolia',
rpcs: ['https://ethereum-sepolia-rpc.publicnode.com'],
rpcs: [`${import.meta.env.VITE_NB_JSON_RPC_URI}/sepolia/jsonrpc/${import.meta.env.VITE_NB_WB_DASHBOARD_ACCESS_ID}`],
blockExplorerUrls: ['https://sepolia.etherscan.io'],
nativeCurrency: {
decimals: 18,
Expand All @@ -20,7 +21,7 @@ export const L2_NETWORK: HighNetworkInterface = {
chainId: 421614,
name: 'arbitrumSepolia',
displayName: 'Arbitrum Sepolia',
rpcs: ['https://sepolia-rollup.arbitrum.io/rpc'],
rpcs: [`${import.meta.env.VITE_NB_JSON_RPC_URI}/arbitrum-sepolia/jsonrpc/${import.meta.env.VITE_NB_WB_DASHBOARD_ACCESS_ID}`],
blockExplorerUrls: ['https://sepolia.arbiscan.io'],
nativeCurrency: {
decimals: 18,
Expand All @@ -37,8 +38,8 @@ export const L2_NETWORK: HighNetworkInterface = {

export const L3_NETWORK: HighNetworkInterface = {
chainId: 13746,
name: 'conduit-orbit-deployer',
displayName: 'Game7 Testnet',
name: 'game7Testnet',
displayName: 'G7 Sepolia',
rpcs: ['https://testnet-rpc.game7.io'],
blockExplorerUrls: ['https://testnet.game7.io'],
nativeCurrency: {
Expand All @@ -52,11 +53,65 @@ export const L3_NETWORK: HighNetworkInterface = {
staker: '0xa6B0461b7E54Fa342Be6320D4938295A81f82Cd3'
}

export const ALL_NETWORKS = [L1_NETWORK, L2_NETWORK, L3_NETWORK]
export const L1_MAIN_NETWORK: NetworkInterface = {
chainId: 1,
name: 'ethereum',
displayName: 'Ethereum',
rpcs: [`${import.meta.env.VITE_NB_JSON_RPC_URI}/ethereum/jsonrpc/${import.meta.env.VITE_NB_WB_DASHBOARD_ACCESS_ID}`],
blockExplorerUrls: ['https://etherscan.io'],
nativeCurrency: {
decimals: 18,
name: 'ETH',
symbol: 'ETH'
},
g7TokenAddress: '0x12c88a3C30A7AaBC1dd7f2c08a97145F5DCcD830',
routerSpender: '0x902b3e5f8f19571859f4ab1003b960a5df693aff',
retryableCreationTimeout: 15 * 60
}

export const L2_MAIN_NETWORK: NetworkInterface = {
chainId: 42161,
name: 'arbitrumOne',
displayName: 'Arbitrum One',
rpcs: [`${import.meta.env.VITE_NB_JSON_RPC_URI}/arbitrum-one/jsonrpc/${import.meta.env.VITE_NB_WB_DASHBOARD_ACCESS_ID}`],
blockExplorerUrls: ['https://arbiscan.io'],
nativeCurrency: {
decimals: 18,
name: 'ETH',
symbol: 'ETH'
},
g7TokenAddress: '0xF18e4466F26B4cA55bbAb890b314a54976E45B17',
retryableCreationTimeout: 15 * 60
}

export const L3_MAIN_NETWORK: NetworkInterface = {
chainId: 2187,
name: 'game7',
displayName: 'G7 Network',
rpcs: ['https://mainnet-rpc.game7.io'],
blockExplorerUrls: ['https://mainnet.game7.io'],
nativeCurrency: {
decimals: 18,
name: 'Game7 Token',
symbol: 'G7T'
},
g7TokenAddress: '0x0000000000000000000000000000000000000000',
retryableCreationTimeout: 15 * 60,
wrappedG7TokenAddress: '0xfa3ed70386b9255fC04aA008A8ad1B0CDa816Fac'
}

export const ALL_TESTNET_NETWORKS = [L1_NETWORK, L2_NETWORK, L3_NETWORK]
export const ALL_MAINNET_NETWORKS = [L1_MAIN_NETWORK, L2_MAIN_NETWORK, L3_MAIN_NETWORK]
export const ALL_HIGH_TESTNET_NETWORKS = [L2_NETWORK, L3_NETWORK]
export const ALL_LOW_TESTNET_NETWORKS = [L1_NETWORK, L2_NETWORK]
export const ALL_HIGH_MAINNET_NETWORKS = [L2_MAIN_NETWORK, L3_MAIN_NETWORK]
export const ALL_LOW_MAINNET_NETWORKS = [L1_MAIN_NETWORK, L2_MAIN_NETWORK]

export const L3_NATIVE_TOKEN_SYMBOL = 'TG7T'
export const DEFAULT_LOW_NETWORK = L1_NETWORK
export const DEFAULT_HIGH_NETWORK = L2_NETWORK
export const DEFAULT_LOW_MAINNET_NETWORK = L1_MAIN_NETWORK
export const DEFAULT_HIGH_MAINNET_NETWORK = L2_MAIN_NETWORK

export const LOW_NETWORKS = [L1_NETWORK, L2_NETWORK]
export const HIGH_NETWORKS = [L2_NETWORK, L3_NETWORK]
Expand All @@ -70,4 +125,63 @@ export const FIVE_MINUTES = 1000 * 60 * 5

export const DEFAULT_STAKE_NATIVE_POOL_ID = '1'

export const MAX_ALLOWANCE_ACCOUNT = '0x9ed191DB1829371F116Deb9748c26B49467a592A'
export const TG7T: TokenAddressMap = {
13746: '0x0000000000000000000000000000000000000000',
421614: '0x10adbf84548f923577be12146eac104c899d1e75',
11155111: '0xe2ef69e4af84dbefb0a75f8491f27a52bf047b01'
}

export const ETH: TokenAddressMap = {
421614: '0x0000000000000000000000000000000000000000',
11155111: '0x0000000000000000000000000000000000000000'
}

export const USDC: TokenAddressMap = {
13746: '0xf2B58E3519C5b977a254993A4A6EaD581A8989A0',
421614: '0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d',
11155111: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238'
}

export const G7T_MAINNET: TokenAddressMap = {
2187: '0x0000000000000000000000000000000000000000',
42161: '0xF18e4466F26B4cA55bbAb890b314a54976E45B17',
1: '0x12c88a3C30A7AaBC1dd7f2c08a97145F5DCcD830'
}

export const ETH_MAINNET: TokenAddressMap = {
42161: '0x0000000000000000000000000000000000000000',
1: '0x0000000000000000000000000000000000000000'
}

export const USDC_MAINNET: TokenAddressMap = {
2187: '0x401eCb1D350407f13ba348573E5630B83638E30D',
42161: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
1: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48'
}

export const getNetworks = (selectedNetworkType: NetworkType) => {
switch (selectedNetworkType) {
case 'Mainnet':
return ALL_MAINNET_NETWORKS
case 'Testnet':
return ALL_TESTNET_NETWORKS
}
}

export const getHighNetworks = (selectedNetworkType: NetworkType) => {
switch (selectedNetworkType) {
case 'Mainnet':
return ALL_HIGH_MAINNET_NETWORKS
case 'Testnet':
return ALL_HIGH_TESTNET_NETWORKS
}
}

export const getLowNetworks = (selectedNetworkType: NetworkType) => {
switch (selectedNetworkType) {
case 'Mainnet':
return ALL_LOW_MAINNET_NETWORKS
case 'Testnet':
return ALL_LOW_TESTNET_NETWORKS
}
}
Loading
Loading