Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
297 commits
Select commit Hold shift + click to select a range
489258d
Update Arbitrum Sepolia Subgraph URL
midas-myth Apr 22, 2025
efec365
Merge remote-tracking branch 'origin/gassless' into multichain-layout
midas-myth Apr 24, 2025
b8ad333
Merge remote-tracking branch 'origin/master' into multichain-layout
midas-myth Apr 25, 2025
104b13a
multichain position closse
midas-myth Apr 25, 2025
7f4c303
init position editor
midas-myth Apr 25, 2025
d47ba48
Merge remote-tracking branch 'origin/gassless' into multichain-layout
midas-myth Apr 30, 2025
76ae5cc
multichain rebase to gassless
midas-myth Apr 30, 2025
8d339a6
multichain enhance deposit modal
midas-myth May 1, 2025
463837c
multichain enhance ux
midas-myth May 1, 2025
ed15ac1
Refactor multichain token handling and improve balance fetching logic
midas-myth May 1, 2025
c0bfba7
Refactor token sorting and filtering logic in available assets view
midas-myth May 1, 2025
e58774e
Enhance deposit view by integrating token address conversion and impr…
midas-myth May 2, 2025
a9ebc37
Refactor express transaction availability logic across components and…
midas-myth May 2, 2025
aca9fce
Update available token options to include source chain ID and refacto…
midas-myth May 2, 2025
0686a9d
Multichain tradebox swap state sanitizing
midas-myth May 2, 2025
7ac7689
Refactor funding history and transfer details to use sent and receive…
midas-myth May 5, 2025
853c846
Refactor Deposit and Withdraw views
midas-myth May 7, 2025
af23bd3
Multichain new contracts
midas-myth May 12, 2025
6919685
Multichain new contracts
midas-myth May 12, 2025
37f740c
Merge remote-tracking branch 'origin/gassless' into multichain-layout
midas-myth May 13, 2025
c2c8cae
Multichain enhance types
midas-myth May 14, 2025
6794277
Remove sourcemaps
midas-myth May 14, 2025
3bb9e95
Merge remote-tracking branch 'origin/gassless' into multichain-layout
midas-myth May 14, 2025
0386780
Mutlichain refactor
midas-myth May 19, 2025
c779cde
Enhance multichain
midas-myth May 20, 2025
606c620
Enhance multichain
midas-myth May 20, 2025
b7e5da3
Enhance multichain
midas-myth May 20, 2025
b375511
Merge remote-tracking branch 'origin/gassless' into multichain-layout
midas-myth May 20, 2025
77b6c27
Enhance multichain
midas-myth May 20, 2025
bfc2683
Enhance multichain
midas-myth May 20, 2025
8ed6e41
Enhance multichain
midas-myth May 21, 2025
cae641c
Merge remote-tracking branch 'origin/gassless' into multichain-layout
midas-myth May 21, 2025
3bb3b9c
Enhance multichain
midas-myth May 21, 2025
f03de42
Enhance multichain
midas-myth May 21, 2025
b5193ed
Enhance multichain
midas-myth May 21, 2025
44d680a
Enhance multichain
midas-myth May 21, 2025
c6d5590
Enhance multichain
midas-myth May 22, 2025
72e2b6f
Enhance multichain
midas-myth May 22, 2025
74b1e47
Enhance multichain
midas-myth May 22, 2025
b057b8c
Enhance multichain
midas-myth May 22, 2025
4062c2b
Enhance multichain
midas-myth May 23, 2025
f3989ac
Enhance multichain
midas-myth May 23, 2025
c7eced2
Merge remote-tracking branch 'origin/gassless' into multichain-layout
midas-myth May 23, 2025
af84580
Enhance multichain
midas-myth May 23, 2025
778e2db
Change multichain subsquid url
midas-myth May 26, 2025
3f86766
Enhance multichain
midas-myth May 26, 2025
60bb25b
Multichain withdrawala debounced input
midas-myth May 26, 2025
fa21d3f
Refactor DepositView to improve token selection logic for multichain …
midas-myth May 26, 2025
570463b
Multichain deposit notifications
midas-myth May 26, 2025
55bb1cb
Multichain pay modal design
midas-myth May 27, 2025
981fa6d
Multichain deposit modal state
midas-myth May 27, 2025
457289a
Multichain withdrawal state improvement
midas-myth May 27, 2025
6fe4e3c
Multichain subaccount disabling
midas-myth May 27, 2025
b6c3783
Multichain funding history texts
midas-myth May 27, 2025
812dfc7
Multichain migrate to divhead abstract estimation
midas-myth May 28, 2025
a542026
Multichain design fixes
midas-myth May 28, 2025
79ebe39
Multichain new contracts
midas-myth May 29, 2025
a1816f2
Multichain new squid
midas-myth May 29, 2025
a8458e1
Multichain enhancements
midas-myth May 30, 2025
4ad391a
Update MultichainTokenSelector
midas-myth May 30, 2025
d3a5d09
Implement multichain approvals
midas-myth May 30, 2025
d9ead50
Refactor AddressDropdown
midas-myth May 30, 2025
ae5e6a7
Refactor AddressDropdown
midas-myth Jun 2, 2025
d9bc67f
Update AddressDropdown button styling
midas-myth Jun 2, 2025
059ec1a
Multichain modals layout
midas-myth Jun 2, 2025
6b178be
DepositView with multichain metrics
midas-myth Jun 2, 2025
0879a9d
Multichain account change handling
midas-myth Jun 2, 2025
ced0d77
Multichain withdrawal modal styles
midas-myth Jun 2, 2025
6f34a02
Multichain withdrawal modal texts
midas-myth Jun 2, 2025
7b806d8
Multichain withdrawal metrics
midas-myth Jun 2, 2025
39e4ac5
multichain deposit handling
midas-myth Jun 2, 2025
77e3d78
multichain withdrawal statuses
midas-myth Jun 2, 2025
dc23646
multichain main view styling
midas-myth Jun 3, 2025
282d0cb
multichain funding modals mobile styles
midas-myth Jun 3, 2025
717203e
Merge remote-tracking branch 'origin/gassless' into multichain-layout
midas-myth Jun 3, 2025
ca7bfd0
Merge conflict fix
midas-myth Jun 3, 2025
b652fb9
Merge remote-tracking branch 'origin/master' into multichain-layout
midas-myth Jun 3, 2025
635703e
Multichain type fixes
midas-myth Jun 3, 2025
670ce2a
Multichain funding unlimited approval and balance check
midas-myth Jun 3, 2025
9666364
Multichain loading state fix
midas-myth Jun 3, 2025
be1e7cc
Multichain fix deposit and ws issues
midas-myth Jun 3, 2025
f51ee7d
Enhance multichain asset availability check by adding balance loading…
midas-myth Jun 3, 2025
415d064
Multichain refactor modals and enhance transaction handling
midas-myth Jun 3, 2025
2942ae9
Add preferred token selection in WithdrawView and update subgraph URL
midas-myth Jun 3, 2025
e1c52fe
Refactor WithdrawView to include gas payment token handling and impro…
midas-myth Jun 3, 2025
e11f2f0
Implement gas payment token validation in WithdrawView and add user n…
midas-myth Jun 3, 2025
f7809d1
Implement native token balance validation in DepositView to ensure mi…
midas-myth Jun 3, 2025
3d57b9a
Mutltichain Add error handling for gas estimation
midas-myth Jun 4, 2025
b9e7f0e
Refactor useGmxAccountFundingHistory
midas-myth Jun 4, 2025
8c464c0
Multichain metrics
midas-myth Jun 4, 2025
2843d8f
Mutlichain user analytics
midas-myth Jun 4, 2025
9058f85
Enhance multichain metrics
midas-myth Jun 4, 2025
9995c7a
Multichain cleanup
midas-myth Jun 5, 2025
c0c5ba6
Multichain linter fixes
midas-myth Jun 5, 2025
a4c06b5
Merge remote-tracking branch 'origin/master' into multichain-layout
midas-myth Jun 5, 2025
cc9c550
Merge remote-tracking branch 'origin/release-73' into multichain-layout
midas-myth Jun 5, 2025
7d0001a
Fix conflict
midas-myth Jun 5, 2025
d42b331
Multichain disable sponsored call when no api key
midas-myth Jun 5, 2025
1f84e5a
Sync translations
midas-myth Jun 5, 2025
157705c
Multichain fix tests
midas-myth Jun 5, 2025
2d6082c
Multichain withdrawal fix
midas-myth Jun 5, 2025
c08ae73
Multichain improvements
midas-myth Jun 6, 2025
8c4d7e5
Sync translations
midas-myth Jun 6, 2025
774b169
Multichain modals
midas-myth Jun 6, 2025
3855129
Multichain simulation error
midas-myth Jun 6, 2025
b685b49
Multichain new contracts
midas-myth Jun 10, 2025
e7cfc70
Refactor ExpressNoncesContextProvider to use dynamic request configur…
midas-myth Jun 10, 2025
9d10d44
Merge remote-tracking branch 'origin/release-74' into multichain-layout
midas-myth Jun 10, 2025
8b0c051
Enhance multichain support in modals
midas-myth Jun 10, 2025
50e0b3b
Multichain gas reference
midas-myth Jun 10, 2025
0452d84
Update gas limits for Arbitrum Sepolia in static configuration
midas-myth Jun 11, 2025
0e70ca0
Multichain referrals and buy page improvements
midas-myth Jun 11, 2025
122bb85
Fix input handling in DepositView to account for undefined values
midas-myth Jun 11, 2025
3d332ea
Multichain gas cost changes
midas-myth Jun 12, 2025
4bfbe92
Multichain deposit modal gaps
midas-myth Jun 12, 2025
72dfd77
Multichain deposit network switching
midas-myth Jun 12, 2025
759d6d3
Sync translations
midas-myth Jun 12, 2025
6e44fb0
Multichain modals state resets
midas-myth Jun 13, 2025
9374f52
Gmx multichain claims texts
midas-myth Jun 13, 2025
5e33c40
Merge remote-tracking branch 'origin/release-74' into multichain-layout
midas-myth Jun 13, 2025
55c64b4
Multichain settings modal fixes
midas-myth Jun 13, 2025
015e05e
Settings modal gas payment token formatting
midas-myth Jun 13, 2025
cab6643
Multuchain review fixes
midas-myth Jun 13, 2025
d614d1b
Mutlichain fix lockfile
midas-myth Jun 13, 2025
4b1deaf
Implement isGmxAccount flag across various components for multichain …
midas-myth Jun 13, 2025
3d9866c
Add SwitchToSettlementChain components for multichain support
midas-myth Jun 13, 2025
c7b4cfc
Refactor imports in GmxAccountModal components for consistency and cl…
midas-myth Jun 13, 2025
8bc1aa3
Refactor multicall handling to support contract ABI keys and improve …
midas-myth Jun 13, 2025
b9b1741
Update labels in GmxAccountModal for localization support
midas-myth Jun 13, 2025
623ea25
Sync translations
midas-myth Jun 13, 2025
4547b5f
Multichain add CRV token and fixes
midas-myth Jun 16, 2025
7ed0804
Enhance GLV deposit transaction handling for Arbitrum Sepolia and add…
midas-myth Jun 16, 2025
d3240a5
Add VerticalScrollFadeContainer component for improved scroll behavio…
midas-myth Jun 17, 2025
71502ad
Implement multichain support in ClaimModal with separate handling for…
midas-myth Jun 17, 2025
c72a776
Sync translations
midas-myth Jun 17, 2025
9757f55
Add removeMultichainFundingPendingIds function to manage pending IDs …
midas-myth Jun 17, 2025
9788683
Refactor SettleAccruedFundingFeeModal by removing unused imports and …
midas-myth Jun 17, 2025
f6a6903
Sync translations
midas-myth Jun 17, 2025
39947a1
Enhance nonce management in ExpressNoncesContextProvider and Syntheti…
midas-myth Jun 18, 2025
b8a8004
Refactor expressTransactionBuilder in ClaimModal
midas-myth Jun 18, 2025
cdf972c
Add priceDecimals property for CRV token in tokens configuration
midas-myth Jun 18, 2025
ac124d9
Implement multichain support in ClaimablePositionPriceImpactRebateMod…
midas-myth Jun 18, 2025
9659048
Enhance ClaimModal and ClaimablePositionPriceImpactRebateModal with i…
midas-myth Jun 18, 2025
4e69b6a
Add formatDateWithComma function to lib/dates and update FundingHisto…
midas-myth Jun 18, 2025
9e3d21e
Refactor date formatting in FundingHistorySection to use formatRelati…
midas-myth Jun 18, 2025
64cd9f5
Multichain fix immediate withdrawal being shown in WETH and allow for…
midas-myth Jun 18, 2025
5cbb944
Enhance DepositView and WithdrawView components to include auto-close…
midas-myth Jun 18, 2025
5457363
Refactor DepositView component by removing unused variables and optim…
midas-myth Jun 18, 2025
7cb907f
Sync translations
midas-myth Jun 18, 2025
463baf1
Introduce a new minimum balance warning in multichain withdrawal
midas-myth Jun 19, 2025
46a8a22
Multichain withdrawal dont change chain right untill sending tx
midas-myth Jun 19, 2025
d6ad51a
Refactor multichain event handling in WebsocketContextProvider
midas-myth Jun 20, 2025
24f3dfd
Review fixes
midas-myth Jun 20, 2025
81f7ace
Refactor token sorting and filtering logic in multichain asset list
midas-myth Jun 20, 2025
5d55e53
Hide deposit amount field, if the asset to deposit is not yet selected
midas-myth Jun 20, 2025
d5709c7
Asset Balance Change should display the change of asset in GMX balanc…
midas-myth Jun 20, 2025
de4315a
Merge remote-tracking branch 'origin/release-75' into multichain-layout
midas-myth Jun 20, 2025
7329edd
Stablecoin formatting in multichain
midas-myth Jun 20, 2025
3394233
Multichain fix deposit view texts
midas-myth Jun 20, 2025
2fffc2c
Multichain fix repeat transaction
midas-myth Jun 20, 2025
dba2607
Refactor header layout by removing redundant styles and updating clas…
midas-myth Jun 20, 2025
518597d
Enhance balance formatting in TransferDetailsView to include stableco…
midas-myth Jun 20, 2025
486d2fe
Refactor useMultichainEvents to utilize refs for pending deposit and …
midas-myth Jun 23, 2025
f71f6a7
Move gmx account token fetching into use tokens request
midas-myth Jun 23, 2025
a41f07f
Multichain review fixes
midas-myth Jun 24, 2025
17e0483
Multichain review fixes
midas-myth Jun 24, 2025
1b54876
Sync translations
midas-myth Jun 24, 2025
1edaa5c
Multichain review fixes
midas-myth Jun 24, 2025
f16b446
Add tokensDataResult to externalSwapSelectors test suite
midas-myth Jun 24, 2025
92cb897
Refactor PositionEditor and CollateralSelector to support GMX account…
midas-myth Jun 25, 2025
f843498
Refactor GmxAccountModal to unify withdrawal handling and rename comp…
midas-myth Jun 26, 2025
71b3208
Sync translations
midas-myth Jun 26, 2025
1293365
Multichain without nonces
midas-myth Jun 27, 2025
eea66b8
Update Arbitrum Sepolia subsquid URL to the latest version
midas-myth Jun 30, 2025
7cab245
Implement srcChainId support across various components and hooks for …
midas-myth Jun 30, 2025
367ece2
Multichain remove previous contracts abis
midas-myth Jul 1, 2025
4026fe7
Multichain temporarily disable some tests
midas-myth Jul 1, 2025
ad0ff48
Multichain fix gmx account balance display
midas-myth Jul 1, 2025
0f89fbe
Multichain texts
midas-myth Jul 1, 2025
60b5916
Add showDepositButton logic to AddressDropdown, TradeBox, and Express…
midas-myth Jul 3, 2025
b0bbfce
Sync translations
midas-myth Jul 3, 2025
6af4e91
Multichain refactor
midas-myth Jul 3, 2025
6814fcb
Sync translations
midas-myth Jul 3, 2025
ac02c5c
Refactor PositionEditorCollateralSelector to use variant prop for bal…
midas-myth Jul 3, 2025
669c876
Improve multichain withdrawal reliability
midas-myth Jul 4, 2025
3efeb51
Sync translations
midas-myth Jul 4, 2025
4e4c10c
Multichain new contracts
midas-myth Jul 7, 2025
3e44d71
Update Arbitrum Sepolia subsquid URL in subgraph configuration
midas-myth Jul 7, 2025
66098db
Update contract addresses for Arbitrum Sepolia in the configuration file
midas-myth Jul 7, 2025
3b4cfac
Update Arbitrum Sepolia subsquid URL in subgraph configuration
midas-myth Jul 7, 2025
2281c5d
Refactor DepositView and useTradeButtonState for improved token handl…
midas-myth Jul 8, 2025
cf8a461
Multichain simplify events
midas-myth Jul 8, 2025
e0977d5
Merge remote-tracking branch 'origin/release-78' into multichain-layout
midas-myth Jul 8, 2025
450b0ee
Multichain fix merge conflicts
midas-myth Jul 8, 2025
811561b
Multichain remove ws provider cache
midas-myth Jul 9, 2025
a986c16
Multichain remove notify on botanix
midas-myth Jul 9, 2025
92c5813
Multichain remove All assets and search elements if empty
midas-myth Jul 9, 2025
82cdc9c
Multichain remove force websocket destruction to avoid errors
midas-myth Jul 9, 2025
dba05e5
Multichain texts for switching user to Express when chosing multichai…
midas-myth Jul 9, 2025
9621d59
Refactor referral code handling
midas-myth Jul 14, 2025
3b933de
Add base chain config
midas-myth Jul 15, 2025
67a15a8
Merge remote-tracking branch 'origin/master' into multichain-layout
midas-myth Jul 15, 2025
2809c3d
Sync translations
midas-myth Jul 15, 2025
82a5b89
Multichain fix sponsored call for subaccounts
midas-myth Jul 15, 2025
43b8860
Enhance DepositView to include balance loading state and add translat…
midas-myth Jul 16, 2025
ddd086d
Refactor referral code handling to simplify relayer fee parameter ret…
midas-myth Jul 16, 2025
a3eade1
Add loading state and success messages for referral code submission
midas-myth Jul 17, 2025
2ea56b3
Refactor AppHeaderChainAndSettings to use wagmi's useChainId for wall…
midas-myth Jul 17, 2025
ef9c7bc
Type gm txns
midas-myth Jul 18, 2025
0aaa74a
Update RPC provider configurations
midas-myth Jul 18, 2025
3da7c94
Update RPC provider configurations
midas-myth Jul 18, 2025
8954e38
Force prod alchemy
midas-myth Jul 18, 2025
b3ee0a8
Update RPC provider configurations
midas-myth Jul 18, 2025
d4e7b44
Add multichain approval nonce handling and update subaccount router l…
midas-myth Jul 18, 2025
4e2ae99
Multichain support new abi shift
midas-myth Jul 18, 2025
f803083
Enhance ClaimModal to display loading state while processing transact…
midas-myth Jul 21, 2025
71a5a94
Sync translations
midas-myth Jul 21, 2025
e68abc5
Update GmxAccountModal to replace 'Gmx Balance' with 'Gmx Account'
midas-myth Jul 21, 2025
77b502b
Multichain refine types
midas-myth Jul 22, 2025
a78e97e
Implement subaccount handling for chain actions and enhance order pro…
midas-myth Jul 22, 2025
d854e17
Sync translations
midas-myth Jul 22, 2025
4ef7921
Refactor chain ID handling
midas-myth Jul 23, 2025
93f5530
Multichain new contracts
midas-myth Jul 24, 2025
3debb3a
Enhance subaccount nonce validation and refactor chain ID initialization
midas-myth Jul 24, 2025
28be158
Multichain new subaccounts
midas-myth Jul 24, 2025
0edd778
Multichain glv withdrawal
midas-myth Jul 24, 2025
ace43aa
Refactor subaccount removal
midas-myth Jul 25, 2025
b0e3d74
Refactor removeSubaccount transaction
midas-myth Jul 25, 2025
14fc105
Refactor subaccount approvals
midas-myth Jul 25, 2025
72c8a0e
Multichain subaccounts typos
midas-myth Jul 28, 2025
91e38cb
Add connect event handler for Ethereum chain ID updates
midas-myth Jul 28, 2025
6739a53
Refactor SyntheticsEventsProvider to remove unused subaccount approva…
midas-myth Jul 29, 2025
4c175e1
Debug multichain subaccounts
midas-myth Jul 29, 2025
c104351
Debug multichain subaccounts
midas-myth Jul 29, 2025
87152b1
Refactor subaccount handling
midas-myth Jul 29, 2025
80e36ae
Add checks for empty subaccount approvals and remove debug logs
midas-myth Jul 29, 2025
28aa816
Refactor AddAffiliateCode and GmxAccountModal components; update type…
midas-myth Jul 30, 2025
e52a53b
Sync translations
midas-myth Jul 30, 2025
1b7ed64
Enhance DepositView component to handle token selection state; displa…
midas-myth Jul 30, 2025
b81238f
Sync translations
midas-myth Jul 30, 2025
01ff5dc
Refactor gas payment handling in Synthetics components; rename variab…
midas-myth Jul 31, 2025
18f9196
update fuji v2.2 contracts
gmxer Aug 7, 2025
7b8b4c2
Refactor AddressDropdown
midas-myth Aug 8, 2025
acf9753
Sync translactions
midas-myth Aug 8, 2025
d97f760
conditional token selector in TradeBox
midas-myth Aug 8, 2025
1e09e43
Sync translactions
midas-myth Aug 8, 2025
9900bf6
GmxAccountModal no outline
midas-myth Aug 8, 2025
240089b
Merge branch 'release-80' of github.com:gmx-io/gmx-interface into mul…
midas-myth Aug 19, 2025
1d733d2
Refactor Header component layout
midas-myth Aug 19, 2025
2fc7989
Update import path for getMidPrice utility in performance.ts
midas-myth Aug 19, 2025
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
  •  
  •  
  •  
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@
"tscheck": "yarn ts:clean && tsc -p tsconfig.json --noEmit",
"prettier": "prettier --write src/**/*.{js,ts,jsx,tsx,css,scss}",
"typechain": "typechain --target ethers-v6 --out-dir ./src/typechain-types './sdk/src/abis/*.json'",
"typechain:stargate": "typechain --target ethers-v6 --out-dir ./src/typechain-types-stargate './node_modules/@stargatefinance/stg-evm-sdk-v2/artifacts/src/{interfaces/IStargate.sol/IStargate.json,messaging/TokenMessaging.sol/TokenMessaging.json}'",
"postinstall": "yarn typechain && cd ./sdk && echo \"Building SDK\" && yarn && yarn build",
"prebuild": "cd ./sdk && yarn tsx scripts/prebuild"
},
"dependencies": {
"@apollo/client": "3.5.6",
"@arbitrum/sdk": "4.0.4",
"@binance/w3w-utils": "1.1.4",
"@davatar/react": "1.8.1",
"@ensdomains/ens-avatar": "1.0.0-alpha.0.ethers.6",
Expand All @@ -40,10 +42,13 @@
"@gelatonetwork/relay-sdk": "5.6.0",
"@gemini-wallet/rainbow": "0.2.0",
"@headlessui/react": "1.7.19",
"@layerzerolabs/lz-v2-utilities": "3.0.85",
"@lingui/core": "4.10.0",
"@lingui/macro": "4.11.3",
"@lingui/react": "4.10.0",
"@rainbow-me/rainbowkit": "2.2.0",
"@stargatefinance/stg-definitions-v2": "2.0.1",
"@stargatefinance/stg-evm-sdk-v2": "1.1.12",
"@tanstack/react-query": "5.25.0",
"@taskworld.com/rereselect": "0.3.0",
"@testing-library/jest-dom": "5.16.1",
Expand Down Expand Up @@ -83,7 +88,7 @@
"react-dom": "18.2.0",
"react-helmet": "6.1.0",
"react-hot-toast": "2.2.0",
"react-icons": "4.3.1",
"react-icons": "5.5.0",
"react-jazzicon": "1.0.4",
"react-loading-skeleton": "3.3.1",
"react-remove-scroll": "2.5.5",
Expand All @@ -96,10 +101,10 @@
"reselect": "5.1.0",
"sass": "1.55.0",
"shallowequal": "1.1.0",
"swr": "2.2.1",
"swr": "2.3.3",
"typescript": "5.4.2",
"use-context-selector": "1.4.1",
"viem": "2.7.20",
"viem": "2.26.2",
"wagmi": "2.12.29",
"web-vitals": "1.1.2",
"worker-loader": "3.0.8"
Expand Down Expand Up @@ -144,6 +149,7 @@
"@typescript-eslint/parser": "8.26.1",
"@vitejs/plugin-react": "4.3.1",
"@vitest/web-worker": "2.0.5",
"@wagmi/cli": "2.2.1",
"autoprefixer": "10.4.20",
"babel-plugin-macros": "3.1.0",
"buffer": "6.0.3",
Expand Down
37 changes: 37 additions & 0 deletions scripts/abiComparator.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import fs from "fs";
import path from "path";
import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const mainAbisDir = path.join(__dirname, "..", "sdk/src/abis");
const arbitrumSepoliaDir = path.join(__dirname, "..", "sdk/src/abis/arbitrumSepolia");

// Get all JSON files from arbitrumSepolia directory
const arbitrumSepoliaFiles = fs.readdirSync(arbitrumSepoliaDir).filter((file) => file.endsWith(".json"));

arbitrumSepoliaFiles.forEach((file) => {
const arbitrumSepoliaPath = path.join(arbitrumSepoliaDir, file);
const mainPath = path.join(mainAbisDir, file);

if (!fs.existsSync(mainPath)) {
console.log(`${file} exists in arbitrumSepolia but not in main abis directory`);
// delete file
// fs.unlinkSync(arbitrumSepoliaPath);
return;
}

const arbitrumSepoliaContent = JSON.parse(fs.readFileSync(arbitrumSepoliaPath, "utf8"));
const mainContent = JSON.parse(fs.readFileSync(mainPath, "utf8"));

// Compare ABIs
const arbitrumSepoliaAbi = JSON.stringify(arbitrumSepoliaContent.abi);
const mainAbi = JSON.stringify(mainContent.abi);

if (arbitrumSepoliaAbi === mainAbi) {
console.log(`${file}: ABIs are equal`);
} else {
console.log(`${file}: ABIs are different`);
}
});
2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"query-string": "7.1.1",
"typescript": "5.4.2",
"universal-perf-hooks": "1.0.1",
"viem": "^2.7.20"
"viem": "^2.26.2"
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "7.21.11",
Expand Down
Loading