Skip to content

Commit

Permalink
[Issue-1780] Update pagejs for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
dominhquang committed Sep 7, 2024
1 parent 781663e commit 12a5ad2
Show file tree
Hide file tree
Showing 8 changed files with 6,897 additions and 54 deletions.
6,891 changes: 6,890 additions & 1 deletion html/PageJs.bundle/page.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
"@subwallet/extension-chains": "1.2.28-0",
"@subwallet/extension-dapp": "1.2.28-0",
"@subwallet/extension-inject": "1.2.28-0",
"@subwallet/keyring": "0.1.5",
"@subwallet/keyring": "0.1.6",
"@subwallet/react-ui": "^5.1.2-b77",
"@subwallet/ui-keyring": "^0.1.5",
"@subwallet/ui-keyring": "0.1.6",
"@walletconnect/utils": "2.8.4",
"deprecated-react-native-prop-types": "^4.0.0",
"eventemitter3": "^5.0.0",
Expand Down
1 change: 0 additions & 1 deletion src/hooks/useConfirmations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { toggleConfirmationDisplayState } from 'stores/updater';
const ConfirmationsQueueItems = [
'addNetworkRequest',
'addTokenRequest',
'switchNetworkRequest',
'evmSignatureRequest',
'evmSignatureRequestExternal',
'evmSendTransactionRequest',
Expand Down
1 change: 0 additions & 1 deletion src/screens/Confirmations/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export const Confirmations = () => {
evmSignatureRequest: i18n.header.signatureRequest,
metadataRequest: i18n.header.updateMetadata,
signingRequest: i18n.header.signatureRequest,
switchNetworkRequest: i18n.header.addNetworkRequest,
connectWCRequest: i18n.header.walletConnect,
errorConnectNetwork: i18n.header.transactionRequest,
}),
Expand Down
4 changes: 2 additions & 2 deletions src/screens/Confirmations/parts/Sign/Evm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ export const EvmSignArea = (props: Props) => {
block={true}
disabled={loading}
icon={isErrorTransaction && getButtonIcon(XCircle)}
type={isErrorTransaction ? 'primary' : 'secondary'}
type={'secondary'}
onPress={onCancel}>
{isErrorTransaction ? i18n.common.backToHome : i18n.common.cancel}
{isErrorTransaction ? i18n.buttonTitles.iUnderstand : i18n.common.cancel}
</Button>
{!isErrorTransaction && (
<Button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const NetworkConnectionErrorConfirmation = ({ request, type }: Props) =>
)}

<Button disabled={loading} onPress={onCancel} type={'primary'}>
{i18n.buttonTitles.backToHome}
{i18n.buttonTitles.iUnderstand}
</Button>
</View>
</ConfirmationFooter>
Expand Down
2 changes: 0 additions & 2 deletions src/stores/base/RequestState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const initialState: RequestState = {
// Type of confirmation requets
addNetworkRequest: {},
addTokenRequest: {},
switchNetworkRequest: {},
evmSignatureRequest: {},
evmSendTransactionRequest: {},
evmWatchTransactionRequest: {},
Expand All @@ -41,7 +40,6 @@ export const CONFIRMATIONS_FIELDS: Array<keyof RequestState> = [
'signingRequest',
'addNetworkRequest',
'addTokenRequest',
'switchNetworkRequest',
'evmSignatureRequest',
'evmSendTransactionRequest',
'errorConnectNetwork',
Expand Down
46 changes: 2 additions & 44 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5155,35 +5155,7 @@
"@polkadot/x-global" "^12.2.1"
web3-core "^1.10.0"

"@subwallet/[email protected]":
version "0.1.5"
resolved "https://registry.yarnpkg.com/@subwallet/keyring/-/keyring-0.1.5.tgz#64d6187829e924fdcbf6e3f811b12a9e485fc626"
integrity sha512-Rhka28m57kncyvSgwQZRYiSjcppqKb4v8vHEwIaHjdo1lu87yw3O9hvMeTv0GLFIU2xHMQaJ85Hkp8NLr/q7jw==
dependencies:
"@ethereumjs/tx" "^5.0.0"
"@polkadot/util" "^12.2.1"
"@polkadot/util-crypto" "^12.2.1"
bcryptjs "^2.4.3"
eth-simple-keyring "^4.2.0"
eventemitter3 "^4.0.7"
rxjs "^7.5.6"
tslib "^2.6.2"

"@subwallet/keyring@^0.1.2":
version "0.1.3"
resolved "https://registry.yarnpkg.com/@subwallet/keyring/-/keyring-0.1.3.tgz#c1340160a64800d5c02329cbd1ef6e0e69480214"
integrity sha512-ZhSpzdMz3SQ6nlK3NY7axcpx9RDXzHrhvFoVBGnzZQilR90OW/046UMZ78vyaF88S4HMY2kCb+/qLY6NOalUqg==
dependencies:
"@ethereumjs/tx" "^5.0.0"
"@polkadot/util" "^12.2.1"
"@polkadot/util-crypto" "^12.2.1"
bcryptjs "^2.4.3"
eth-simple-keyring "^4.2.0"
eventemitter3 "^4.0.7"
rxjs "^7.5.6"
tslib "^2.6.2"

"@subwallet/keyring@^0.1.6":
"@subwallet/[email protected]", "@subwallet/keyring@^0.1.6":
version "0.1.6"
resolved "https://registry.yarnpkg.com/@subwallet/keyring/-/keyring-0.1.6.tgz#effaf6a584b9a500802c341e150568378c3565a0"
integrity sha512-NcjPvsRSTmfIoSw3+MYXAPTIDj0SKeox5oiPojz90ESAfRyVzhxsA2Veiewwo6K/kd/ltj4xN8ayITQds3De0A==
Expand Down Expand Up @@ -5272,21 +5244,7 @@
three "^0.151.2"
throttle-debounce "^5.0.0"

"@subwallet/ui-keyring@^0.1.5":
version "0.1.5"
resolved "https://registry.yarnpkg.com/@subwallet/ui-keyring/-/ui-keyring-0.1.5.tgz#daece9391a5bc32494a4ff21449d1e7038766451"
integrity sha512-eFhd+dVCnU1oPzBKmDx20KswWB8ojwz3tl+auiDOdRcKKaTlQQ/nK/RC+5WQbWX/KyB8rbdPbvD7MLlxUnT08w==
dependencies:
"@babel/runtime" "^7.20.1"
"@polkadot/ui-settings" "2.9.14"
"@polkadot/util" "^12.2.1"
"@polkadot/util-crypto" "^12.2.1"
"@subwallet/keyring" "^0.1.2"
mkdirp "^1.0.4"
rxjs "^7.5.7"
store "^2.0.12"

"@subwallet/ui-keyring@^0.1.6":
"@subwallet/[email protected]", "@subwallet/ui-keyring@^0.1.6":
version "0.1.6"
resolved "https://registry.yarnpkg.com/@subwallet/ui-keyring/-/ui-keyring-0.1.6.tgz#35967fdba3242e2559e00b5e9c93472105c0229d"
integrity sha512-XjNP5eqQ6YyWzlfA+0NXfyi9ykLIXzddk4IjsjuLro4Jys3hHMCd2e99aBKJMQ2Rk8Hsi/gLnE8SOc9Mr7jVTQ==
Expand Down

0 comments on commit 12a5ad2

Please sign in to comment.