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

Development #186

Merged
merged 75 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
b034761
Login working
arhtudormorar Nov 2, 2023
67ac70c
Create sample transaction
arhtudormorar Nov 2, 2023
5beb113
Update sdk-dapp
arhtudormorar Nov 3, 2023
42e3aab
Undo localhost
arhtudormorar Nov 3, 2023
10d0a7a
Integration
arhtudormorar Nov 3, 2023
b543533
Fix integration
arhtudormorar Nov 3, 2023
86d2db0
Merge branch 'development' into tm/feature/post-message-provider
arhtudormorar Nov 8, 2023
e9f48a3
Update devnet
arhtudormorar Nov 8, 2023
b47480f
Comment https
arhtudormorar Nov 8, 2023
4f6aeed
update sdk-core
andreigiura Nov 9, 2023
eb086b4
Create self transaction
arhtudormorar Nov 9, 2023
66a11bd
Upgrade sdk-dapp
arhtudormorar Nov 10, 2023
3c17f9b
Merge pull request #160 from multiversx/tm/feature/post-message-provi…
arhtudormorar Nov 10, 2023
650a149
Update deploy script
arhtudormorar Nov 10, 2023
3c35a2f
Merge pull request #161 from multiversx/tm/feature/post-message-provi…
arhtudormorar Nov 10, 2023
5c8545f
Update wallet link
arhtudormorar Nov 10, 2023
c01484e
Upgrade sdk-dapp
arhtudormorar Nov 13, 2023
b314884
Reference next wallet
arhtudormorar Nov 29, 2023
609b195
Update yarn lock
arhtudormorar Dec 4, 2023
b34b0b3
Update package lock
arhtudormorar Dec 4, 2023
ce64ab1
sdk-dapp version bump
andreigiura Dec 4, 2023
836ec11
Merge branch 'tm/feature/post-message-provider' of github.com:multive…
andreigiura Dec 4, 2023
6b71e88
increment sdk-dapp version
andreigiura Dec 4, 2023
df21ba0
Update yarn lock
arhtudormorar Dec 5, 2023
f5d3e98
increment sdk-dapp version
andreigiura Dec 5, 2023
c6526d3
increment sdk-dapp version
andreigiura Dec 5, 2023
4763752
Update yarn lock
arhtudormorar Dec 5, 2023
dd1bd99
increment sdk-dapp version
andreigiura Dec 6, 2023
347eada
Update yarn lock
arhtudormorar Dec 7, 2023
8c1e59f
typo
andreigiura Dec 20, 2023
44f9e93
Merge branch 'tm/feature/post-message-provider' of github.com:multive…
andreigiura Dec 20, 2023
bb3f1e2
increment cross window provider version
andreigiura Dec 20, 2023
8d2b3a9
fix sdk-dapp version
CiprianDraghici Dec 20, 2023
27359bd
Upgrade sdk-dapp to alpha 2
arhtudormorar Dec 21, 2023
8fba11c
Merge remote-tracking branch 'origin/development' into cross-window-hub
CiprianDraghici Dec 22, 2023
f828c9a
upgrade sdk-dapp alpha version
CiprianDraghici Dec 22, 2023
f03810b
deploy-next script
CiprianDraghici Dec 22, 2023
cc38eaa
update deploy-next script
CiprianDraghici Dec 22, 2023
7181fcb
update deploy-next branch
CiprianDraghici Dec 22, 2023
45bec02
update deploy-next script
CiprianDraghici Dec 22, 2023
a0d0ad0
Stop deploy
arhtudormorar Dec 28, 2023
d7077db
update sdk-dapp
CiprianDraghici Jan 4, 2024
d88f1d2
Merge branch 'cross-window-hub' of github.com:multiversx/mx-template-…
CiprianDraghici Jan 4, 2024
86cde0d
cleanup deploy-next script
CiprianDraghici Jan 5, 2024
9ec009f
Update yarn lock
arhtudormorar Jan 5, 2024
78730b5
Merge remote-tracking branch 'origin/development' into cross-window-hub
CiprianDraghici Jan 9, 2024
80a18ff
update sdk-dapp
CiprianDraghici Jan 9, 2024
08f4cc1
merge
CiprianDraghici Jan 9, 2024
f03e589
upgrade sdk-dapp
CiprianDraghici Jan 10, 2024
f0b06e3
Update sdk-dapp
arhtudormorar Jan 11, 2024
69e5380
Fix tests
arhtudormorar Jan 11, 2024
a8e7304
Upgrade sdk-dapp
arhtudormorar Jan 12, 2024
7fa814e
Upgrade sdk-dapp
arhtudormorar Jan 29, 2024
0c3b538
Temp comment native auth in unlock
arhtudormorar Jan 29, 2024
064a300
Upgrade sdk-dapp
arhtudormorar Feb 5, 2024
2be16d2
Upgrade sdk-dapp
arhtudormorar Feb 9, 2024
cd0cd32
Force build devnet on next
arhtudormorar Feb 9, 2024
bdf7732
Revert push
arhtudormorar Feb 9, 2024
e56f576
Force deploy
arhtudormorar Feb 9, 2024
03b8f39
Rever deploy
arhtudormorar Feb 9, 2024
0c74c80
Temp enable all login methods
arhtudormorar Feb 12, 2024
a464a4d
Update sdk-dapp and gas limit
mgavrila Feb 16, 2024
624d3a4
Update sdk-dapp
mgavrila Feb 20, 2024
048cafc
Upgrade sdk-dapp
arhtudormorar Mar 13, 2024
2ed31bd
Bring back native auth login
arhtudormorar Mar 14, 2024
b77fb83
Update sdk-dapp
arhtudormorar Mar 14, 2024
39ab360
Merge branch 'development' into cross-window-hub
arhtudormorar Mar 14, 2024
cf11448
Update yarn lock
arhtudormorar Mar 14, 2024
a47017b
Update login buttons
arhtudormorar Mar 15, 2024
4e693e4
Fix receiver
arhtudormorar Mar 15, 2024
a508230
Undo changes
arhtudormorar Mar 15, 2024
342ceff
Update code
arhtudormorar Mar 15, 2024
2db3bd1
Refactor connect
arhtudormorar Mar 15, 2024
10938b0
Update to @multiversx/[email protected]
arhtudormorar Mar 15, 2024
7dc3f3f
Merge pull request #185 from multiversx/cross-window-hub
arhtudormorar Mar 15, 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
41 changes: 41 additions & 0 deletions .github/workflows/deploy-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: deploy-next

on:
repository_dispatch:
types: deploy-next
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: main
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Setup yarn
run: npm install -g yarn
- run: yarn install
- run: yarn build:devnet
env:
CI: false
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: 'us-east-1'
- name: Deploy to S3 bucket
run: aws s3 sync ./build/ s3://${{ secrets.AWS_S3_BUCKET_NEXT }} --delete
- name: Slack Notification
uses: rtCamp/action-slack-notify@master
env:
SLACK_ICON_EMOJI: ':nerd_face:'
SLACK_USERNAME: ${{ secrets.AWS_S3_BUCKET_NEXT }}
SLACK_MESSAGE: ${{ secrets.AWS_S3_BUCKET_NEXT }}
SLACK_FOOTER: ''
MSG_MINIMAL: true
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
'^.+\\.(ts|js|tsx|jsx)$': '@swc/jest'
},
transformIgnorePatterns: [
'node_modules/(?!@multiversx/sdk-guardians-provider|@multiversx/sdk-dapp-form|@multiversx/sdk-dapp-nft|@multiversx/sdk-dapp|@multiversx/sdk-wallet-connect-provider|@multiversx/sdk-guardians-provider|react-redux|swiper|ssr-window|dom7|axios|react-tooltip|uuid|uint8arrays|multiformats)'
'node_modules/(?!@multiversx/sdk-guardians-provider|@multiversx/sdk-dapp-form|@multiversx/sdk-dapp-nft|@multiversx/sdk-dapp|@multiversx/sdk-wallet-connect-provider|@multiversx/sdk-guardians-provider|react-redux|swiper|ssr-window|dom7|axios|react-tooltip|uuid|uint8arrays|multiformats|@lifeomic/axios-fetch)'
],
moduleNameMapper: {
'^react-native$': 'react-native-web',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"@fortawesome/free-solid-svg-icons": "6.5.1",
"@fortawesome/react-fontawesome": "0.2.0",
"@multiversx/sdk-core": "13.0.0-beta.4",
"@multiversx/sdk-dapp": "2.29.0-beta.3",
"@multiversx/sdk-dapp": "2.29.0-beta.6",
"@multiversx/sdk-network-providers": "2.2.1",
"axios": "1.6.5",
"classnames": "2.3.2",
Expand Down
8 changes: 7 additions & 1 deletion src/components/Layout/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ import { logout } from 'helpers';
import { useGetIsLoggedIn } from 'hooks';
import { RouteNamesEnum } from 'localConstants';
import MultiversXLogo from '../../../assets/img/multiversx-logo.svg?react';
import { useMatch } from 'react-router-dom';

export const Header = () => {
const isLoggedIn = useGetIsLoggedIn();
const isUnlockRoute = Boolean(useMatch(RouteNamesEnum.unlock));

const ConnectButton = isUnlockRoute ? null : (
<MxLink to={RouteNamesEnum.unlock}>Connect</MxLink>
);

const handleLogout = () => {
sessionStorage.clear();
Expand Down Expand Up @@ -38,7 +44,7 @@ export const Header = () => {
Close
</Button>
) : (
<MxLink to={RouteNamesEnum.unlock}>Connect</MxLink>
ConnectButton
)}
</div>
</nav>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const TransactionOutput = ({
page={`/${ACCOUNTS_ENDPOINT}/${transaction.receiver}`}
className='border-b border-dotted border-gray-500 hover:border-solid hover:border-gray-800'
>
{transaction.hash}
{transaction.receiver}
</ExplorerLink>
</p>

Expand Down
1 change: 1 addition & 0 deletions src/components/sdkDappComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export { TransactionsTable } from '@multiversx/sdk-dapp/UI/TransactionsTable/Tra
export { TransactionsToastList } from '@multiversx/sdk-dapp/UI/TransactionsToastList/TransactionsToastList';
export { WalletConnectLoginButton } from '@multiversx/sdk-dapp/UI/walletConnect/WalletConnectLoginButton/WalletConnectLoginButton';
export { WebWalletLoginButton } from '@multiversx/sdk-dapp/UI/webWallet/WebWalletLoginButton/WebWalletLoginButton';
export { CrossWindowLoginButton } from '@multiversx/sdk-dapp/UI/webWallet/CrossWindowLoginButton/CrossWindowLoginButton';
export { XaliasLoginButton } from '@multiversx/sdk-dapp/UI/webWallet/XaliasLoginButton/XaliasLoginButton';
export { AuthenticatedRoutesWrapper } from '@multiversx/sdk-dapp/wrappers/AuthenticatedRoutesWrapper/AuthenticatedRoutesWrapper';
export { AxiosInterceptorContext } from '@multiversx/sdk-dapp/wrappers/AxiosInterceptorContext/AxiosInterceptorContext';
Expand Down
25 changes: 19 additions & 6 deletions src/pages/Unlock/Unlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ import {
LedgerLoginButton,
OperaWalletLoginButton,
WalletConnectLoginButton,
WebWalletLoginButton,
XaliasLoginButton
WebWalletLoginButton as WebWalletUrlLoginButton,
XaliasLoginButton,
CrossWindowLoginButton
} from 'components/sdkDappComponents';
import { nativeAuth } from 'config';
import { RouteNamesEnum } from 'localConstants';
import { useNavigate } from 'react-router-dom';
import { AuthRedirectWrapper } from 'wrappers';

type CommonPropsType =
Expand All @@ -24,12 +26,23 @@ type CommonPropsType =
| LedgerLoginButtonPropsType
| WalletConnectLoginButtonPropsType;

const commonProps: CommonPropsType = {
callbackRoute: RouteNamesEnum.dashboard,
nativeAuth
};
// choose how you want to configure connecting to the web wallet
const USE_WEB_WALLET_CROSS_WINDOW = true;

const WebWalletLoginButton = USE_WEB_WALLET_CROSS_WINDOW
? CrossWindowLoginButton
: WebWalletUrlLoginButton;

export const Unlock = () => {
const navigate = useNavigate();
const commonProps: CommonPropsType = {
callbackRoute: RouteNamesEnum.dashboard,
nativeAuth,
onLoginRedirect: () => {
navigate(RouteNamesEnum.dashboard);
}
};

return (
<AuthRedirectWrapper requireAuth={false}>
<div className='flex justify-center items-center'>
Expand Down
Loading
Loading