File tree Expand file tree Collapse file tree 8 files changed +26
-27
lines changed
providers/walletProviders/ethereum Expand file tree Collapse file tree 8 files changed +26
-27
lines changed Original file line number Diff line number Diff line change 1919 "dependencies" : {
2020 "@coral-xyz/anchor" : " ^0.31.1" ,
2121 "@metamask/sdk" : " ^0.32.0" ,
22- "@pushchain/core" : " 2.0.19 " ,
22+ "@pushchain/core" : " 2.1.0 " ,
2323 "@solana/web3.js" : " ^1.98.2" ,
2424 "@walletconnect/ethereum-provider" : " ^2.21.5" ,
2525 "buffer" : " ^6.0.3" ,
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ const LoginModal: FC<LoginModalProps> = ({
196196 < MainFrameContainer >
197197 < iframe
198198 src = { `
199- ${ WALLET_CONFIG_URL [ config . network ] } /auth?app=${ window . location . origin } &version=2
199+ ${ WALLET_CONFIG_URL [ config . network ] } /auth?app=${ window . location . origin } &version=3
200200 ` }
201201 allow = "clipboard-write; clipboard-read; publickey-credentials-create; publickey-credentials-get; display-capture; *"
202202 ref = { iframeRef }
@@ -429,6 +429,7 @@ const TextContainer = styled.div<{
429429 font-size: 16px;
430430 font-weight: 400;
431431 line-height: 22px;
432+ text-align: left;
432433 color: ${ ( { $themeMode, $textColor } ) =>
433434 $themeMode === PushUI . CONSTANTS . THEME . LIGHT
434435 ? $textColor
Original file line number Diff line number Diff line change @@ -9,26 +9,14 @@ const BnbMonotone = () => {
99 fill = "none"
1010 xmlns = "http://www.w3.org/2000/svg"
1111 >
12- < g clipPath = "url(#clip0_8547_11030)" >
13- < path
14- d = "M0 8C0 3.58172 3.58172 0 8 0H12C16.4183 0 20 3.58172 20 8V12C20 16.4183 16.4183 20 12 20H8C3.58172 20 0 16.4183 0 12V8Z"
15- fill = "#EAEBF2"
16- />
17- < path
18- d = "M7.56919 9.00324L9.99996 6.57247L12.4319 9.00427L13.8462 7.58992L9.99996 3.74377L6.15498 7.5888L7.56919 9.00324ZM3.74182 10.0019L5.15621 8.58734L6.57052 10.0016L5.15611 11.416L3.74182 10.0019ZM7.56919 11.0008L9.99996 13.4314L12.4319 10.9996L13.8469 12.4132L13.8462 12.414L9.99996 16.2601L6.15498 12.4151L6.15297 12.4131L7.56919 11.0008ZM13.4294 10.0025L14.8438 8.58814L16.2581 10.0024L14.8438 11.4168L13.4294 10.0025Z"
19- fill = "#202124"
20- />
21- < path
22- d = "M11.6051 10.0017H11.6058L10.0006 8.39648L8.81418 9.58258L8.67788 9.71894L8.39673 10.0001L8.39453 10.0023L8.39673 10.0046L10.0006 11.6087L11.6059 10.0034L11.6067 10.0025L11.6051 10.0017Z"
23- fill = "#202124"
24- />
12+ < g clip-path = "url(#clip0_8547_11030)" >
13+ < path d = "M0 8C0 3.58172 3.58172 0 8 0H12C16.4183 0 20 3.58172 20 8V12C20 16.4183 16.4183 20 12 20H8C3.58172 20 0 16.4183 0 12V8Z" fill = "#313338" />
14+ < path d = "M7.56919 9.00324L9.99996 6.57247L12.4319 9.00427L13.8462 7.58992L9.99996 3.74377L6.15498 7.5888L7.56919 9.00324ZM3.74182 10.0019L5.15621 8.58734L6.57052 10.0016L5.15611 11.416L3.74182 10.0019ZM7.56919 11.0008L9.99996 13.4314L12.4319 10.9996L13.8469 12.4132L13.8462 12.414L9.99996 16.2601L6.15498 12.4151L6.15297 12.4131L7.56919 11.0008ZM13.4294 10.0025L14.8438 8.58814L16.2581 10.0024L14.8438 11.4168L13.4294 10.0025Z" fill = "#B0B3B9" />
15+ < path d = "M11.6051 10.0017H11.6058L10.0006 8.39648L8.81418 9.58258L8.67788 9.71894L8.39673 10.0001L8.39453 10.0023L8.39673 10.0046L10.0006 11.6087L11.6059 10.0034L11.6067 10.0025L11.6051 10.0017Z" fill = "#B0B3B9" />
2516 </ g >
2617 < defs >
2718 < clipPath id = "clip0_8547_11030" >
28- < path
29- d = "M0 8C0 3.58172 3.58172 0 8 0H12C16.4183 0 20 3.58172 20 8V12C20 16.4183 16.4183 20 12 20H8C3.58172 20 0 16.4183 0 12V8Z"
30- fill = "white"
31- />
19+ < path d = "M0 8C0 3.58172 3.58172 0 8 0H12C16.4183 0 20 3.58172 20 8V12C20 16.4183 16.4183 20 12 20H8C3.58172 20 0 16.4183 0 12V8Z" fill = "white" />
3220 </ clipPath >
3321 </ defs >
3422 </ svg >
Original file line number Diff line number Diff line change @@ -15,7 +15,15 @@ import BaseMonotone from '../components/common/icons/BaseMonotone';
1515export const PushUI = {
1616 CONSTANTS : {
1717 PUSH_NETWORK : PushChain . CONSTANTS . PUSH_NETWORK ,
18- CHAIN : { ETHEREUM : 'ethereum' , SOLANA : 'solana' } ,
18+ CHAIN : {
19+ PUSH : 'pushWallet' ,
20+ ETHEREUM : 'ethereum' ,
21+ SOLANA : 'solana' ,
22+ BASE : 'base' ,
23+ ARBITRUM : 'arbitrum' ,
24+ BINANCE : 'binance' ,
25+ WALLET_CONNECT : 'walletConnect'
26+ } ,
1927 THEME : { LIGHT : 'light' , DARK : 'dark' } ,
2028 LOGIN : { LAYOUT : { SPLIT : 'split' , SIMPLE : 'simple' } } ,
2129 CONNECTED : {
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export class MetamaskProvider extends BaseWalletProvider {
1515 ChainType . ETHEREUM ,
1616 ChainType . ARBITRUM ,
1717 ChainType . BASE ,
18+ ChainType . BINANCE ,
1819 ChainType . PUSH_WALLET ,
1920 ] ) ;
2021 this . sdk = new MetaMaskSDK ( {
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export type LoginMethodConfig = {
88 wallet ?: {
99 enabled ?: boolean ;
1010 chains ?: ( typeof PushUI . CONSTANTS . CHAIN ) [ keyof typeof PushUI . CONSTANTS . CHAIN ] [ ] ;
11+ excludedChains ?: ( typeof PushUI . CONSTANTS . CHAIN ) [ keyof typeof PushUI . CONSTANTS . CHAIN ] [ ] ;
1112 } ;
1213 appPreview ?: boolean ;
1314} ;
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import { TypedData, TypedDataDomain } from 'viem';
44export enum ChainType {
55 ETHEREUM = 'sepolia' ,
66 SOLANA = 'solana' ,
7- BINANCE = 'bsc ' ,
8- ARBITRUM = 'arbitrum ' ,
7+ BINANCE = 'bscTestnet ' ,
8+ ARBITRUM = 'arbitrumSepolia ' ,
99 BASE = "baseSepolia" ,
1010 AVALANCHE = 'avalanche' ,
1111 WALLET_CONNECT = 'walletConnect' ,
Original file line number Diff line number Diff line change @@ -794,9 +794,9 @@ __metadata:
794794 languageName : node
795795 linkType : hard
796796
797- " @pushchain/core@npm:2.0.19 " :
798- version : 2.0.19
799- resolution : " @pushchain/core@npm:2.0.19 "
797+ " @pushchain/core@npm:2.1.0 " :
798+ version : 2.1.0
799+ resolution : " @pushchain/core@npm:2.1.0 "
800800 dependencies :
801801 " @bufbuild/protobuf " : " npm:^2.0.0"
802802 " @coral-xyz/anchor " : " npm:^0.31.0"
@@ -813,7 +813,7 @@ __metadata:
813813 tslib : " npm:^2.3.0"
814814 tweetnacl : " npm:^1.0.3"
815815 viem : " npm:2.27.2"
816- checksum : 10/c2019bd78cc7fd7adbcd42a299cbc63882f04a37fcb924169356a2efdd519085be33b1c48d6a154f478263aca82214c560bf2641e026330e11bbd1d1324752dd
816+ checksum : 10/dea3ab4b660966c2e5e6b5ddf62886cd2463269a31e230d6300527051be924c25518e79de23f89c3326943cd6d0bc64f1bf46f0a834b80f23f02bc3ca4a9f4d3
817817 languageName : node
818818 linkType : hard
819819
@@ -823,7 +823,7 @@ __metadata:
823823 dependencies :
824824 " @coral-xyz/anchor " : " npm:^0.31.1"
825825 " @metamask/sdk " : " npm:^0.32.0"
826- " @pushchain/core " : " npm:2.0.19 "
826+ " @pushchain/core " : " npm:2.1.0 "
827827 " @solana/web3.js " : " npm:^1.98.2"
828828 " @types/react " : " npm:^18.3.13"
829829 " @types/react-is " : " npm:^19"
You can’t perform that action at this time.
0 commit comments