Compare commits

...

3 Commits

Author SHA1 Message Date
770f96603b Resolve warnings in react app build (#10)
All checks were successful
Publish wallet docker image on release / Run docker build and publish (release) Successful in 7m15s
Part of https://plan.wireit.in/deepstack/browse/VUL-251/

Co-authored-by: Pranav <jadhavpranav89@gmail.com>
Reviewed-on: #10
2025-10-07 13:42:26 +00:00
cc47ba4636 Remove testnet reference (#8)
Co-authored-by: Pranav <jadhavpranav89@gmail.com>
Reviewed-on: #8
Co-authored-by: shreerang <shreerang@noreply.git.vdb.to>
Co-committed-by: shreerang <shreerang@noreply.git.vdb.to>
2025-09-26 05:34:12 +00:00
eabdf8ee6f Remove WalletConnect ID usage from stack (#9)
All checks were successful
Publish wallet docker image on release / Run docker build and publish (release) Successful in 3m47s
Co-authored-by: Pranav <jadhavpranav89@gmail.com>
Reviewed-on: #9
Co-authored-by: shreerang <shreerang@noreply.git.vdb.to>
Co-committed-by: shreerang <shreerang@noreply.git.vdb.to>
2025-09-22 12:18:38 +00:00
7 changed files with 21 additions and 7 deletions

View File

@ -1,5 +1,3 @@
REACT_APP_WALLET_CONNECT_PROJECT_ID=
REACT_APP_DEFAULT_GAS_PRICE=0.025
# Reference: https://github.com/cosmos/cosmos-sdk/issues/16020
REACT_APP_GAS_ADJUSTMENT=2

View File

@ -54,5 +54,20 @@ module.exports = function override(config, env) {
config.resolve.alias['react-native$'] = require.resolve('react-native-web');
// Ignore source map warnings from third-party packages. Ref: https://github.com/facebook/create-react-app/discussions/11767#discussioncomment-3416044
const ignoreSourceMapPackages = [
'@cosmjs',
'@confio/ics23',
'@json-rpc-tools',
'@pedrouid/environment',
'@walletconnect',
'cosmjs-types',
];
config.ignoreWarnings = ignoreSourceMapPackages.map(pkg => ({
module: new RegExp(`node_modules/${pkg.replace('/', '\\/')}`),
message: /Failed to parse source map/,
}));
return config;
};

View File

@ -1,6 +1,6 @@
{
"name": "web-wallet",
"version": "0.1.7-zenith-0.2.1",
"version": "0.1.7-zenith-0.2.3",
"private": true,
"dependencies": {
"@laconic-network/cosmjs-util": "^0.1.0",

View File

@ -20,6 +20,10 @@ export default function useInitialization(
}, [setWeb3wallet]);
useEffect(() => {
if (!import.meta.env.REACT_APP_WALLET_CONNECT_PROJECT_ID) {
return;
}
if (!initialized) {
onInitialize();
}

View File

@ -38,5 +38,5 @@ export const COSMOS_SIGNING_METHODS = {
export const COSMOS_METHODS = {
...COSMOS_SIGNING_METHODS,
COSMOS_SEND_TOKENS: 'cosmos_sendTokens', // Added for pay.laconic.com
COSMOS_SEND_TRANSACTION: 'cosmos_sendTransaction', // Added for testnet onboarding app
COSMOS_SEND_TRANSACTION: 'cosmos_sendTransaction', // Added for onboarding app
};

View File

@ -5,7 +5,6 @@ services:
image: cerc/zenith-wallet-web:local
environment:
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
WALLET_CONNECT_ID: ${WALLET_CONNECT_ID}
WALLET_CONNECT_VERIFY_CODE: ${WALLET_CONNECT_VERIFY_CODE}
CERC_DEFAULT_GAS_PRICE: ${CERC_DEFAULT_GAS_PRICE:-0.025}
CERC_GAS_ADJUSTMENT: ${CERC_GAS_ADJUSTMENT:-2}

View File

@ -6,13 +6,11 @@ if [ -n "$CERC_SCRIPT_DEBUG" ]; then
fi
echo "Using the following env variables:"
echo "WALLET_CONNECT_ID: ${WALLET_CONNECT_ID}"
echo "CERC_DEFAULT_GAS_PRICE: ${CERC_DEFAULT_GAS_PRICE}"
echo "CERC_GAS_ADJUSTMENT: ${CERC_GAS_ADJUSTMENT}"
echo "CERC_ALLOWED_URLS: ${CERC_ALLOWED_URLS}"
# Build with required env
export REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_ID
export REACT_APP_DEFAULT_GAS_PRICE=$CERC_DEFAULT_GAS_PRICE
export REACT_APP_GAS_ADJUSTMENT=$CERC_GAS_ADJUSTMENT
export REACT_APP_ALLOWED_URLS=$CERC_ALLOWED_URLS