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

SHARD-2019 - Prettier explorer #66

Merged
merged 3 commits into from
Mar 20, 2025
Merged

Conversation

mhanson-github
Copy link
Contributor

@mhanson-github mhanson-github commented Mar 19, 2025

PR Type

enhancement, formatting


Description

  • Apply Prettier formatting across all code files.

  • Update Prettier configuration and ignore files.

  • Refactor code for consistent style and readability.

  • Update test files to match new formatting standards.


Changes walkthrough 📝

Relevant files
Formatting
20 files
data_sync_checker.ts
Apply Prettier formatting to data sync checker script       
+45/-41 
getNodeAccountByAddress.ts
Apply Prettier formatting to node account retrieval script
+56/-69 
getStakeTxs.ts
Apply Prettier formatting to stake transactions script     
+23/-26 
getTotalRewardByAddress.ts
Apply Prettier formatting to total reward calculation script
+54/-67 
getUnstakeTxs.ts
Apply Prettier formatting to unstake transactions script 
+23/-26 
accountsDataToCsv.ts
Apply Prettier formatting to accounts data CSV script       
+3/-8     
cyclesDataToCsv.ts
Apply Prettier formatting to cycles data CSV script           
+3/-4     
transactionsDataToCsv.ts
Apply Prettier formatting to transactions data CSV script
+3/-6     
aggregator.ts
Apply Prettier formatting to aggregator script                     
+1/-4     
DataSync.ts
Apply Prettier formatting to DataSync class                           
+6/-18   
StatsFunctions.ts
Apply Prettier formatting to StatsFunctions class               
+13/-48 
TxDecoder.ts
Apply Prettier formatting to TxDecoder class                         
+7/-27   
cache_per_cycle.ts
Apply Prettier formatting to cache per cycle class             
+1/-3     
collector.ts
Apply Prettier formatting to collector script                       
+3/-6     
index.ts
Apply Prettier formatting to configuration index                 
+2/-5     
Account.tsx
Apply Prettier formatting to Account component                     
+2/-10   
AccountDetail.tsx
Apply Prettier formatting to AccountDetail component         
+4/-9     
useAccountDetailHook.ts
Apply Prettier formatting to useAccountDetailHook               
+1/-5     
DetailCard.tsx
Apply Prettier formatting to DetailCard component               
+1/-4     
TokenDropdown.tsx
Apply Prettier formatting to TokenDropdown component         
+1/-6     
Additional files
49 files
.prettierignore +6/-0     
launch.json +19/-19 
babel.config.js +1/-1     
jest.config.js +15/-23 
jest.setup.js +1/-1     
next.config.js +31/-31 
package.json +2/-2     
prettier.config.js +1/-1     
useStats.ts +3/-13   
useTransaction.ts +2/-6     
SortButton.tsx +1/-6     
LineChart.tsx +1/-3     
LineStockChart.tsx +1/-6     
StackedLineChart.tsx +1/-3     
StackedLineStockChart.tsx +1/-6     
Footer.tsx +2/-2     
Table.tsx +1/-5     
Contract.tsx +1/-7     
ChartDetail.tsx +2/-9     
LatestTransaction.tsx +3/-21   
NetworkMode.tsx +1/-2     
Log.tsx +4/-2     
Token.tsx +1/-3     
useTokenHook.ts +1/-8     
TransactionDetail.tsx +1/-5     
Logs.tsx +1/-5     
Item.tsx +1/-9     
Ovewview.tsx +9/-25   
TransactionTable.tsx +1/-3     
index.ts +1/-7     
ValidatorLineChart.tsx +1/-6     
consumer.ts +1/-3     
usage.ts +1/-5     
server.ts +5/-25   
index.ts +3/-9     
transactionStats.ts +10/-23 
validatorStats.ts +3/-10   
account.ts +4/-11   
cycle.ts +5/-10   
index.ts +4/-12   
log.ts +2/-9     
originalTxData.ts +1/-4     
receipt.ts +3/-10   
transaction.ts +6/-15   
transaction.ts +12/-12 
decodeEVMRawTx.ts +1/-2     
404.test.tsx +8/-8     
healthCheck.test.ts +22/-22 
tsconfig.json +2/-6     

Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.
  • @mhanson-github mhanson-github merged commit f248442 into mainnet-launch Mar 20, 2025
    5 checks passed
    @mhanson-github mhanson-github deleted the SHARD-2019-prettier branch March 20, 2025 04:00
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    2 participants