Skip to content

Commit

Permalink
Removed whitelist codebase (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
shev-titan authored Jan 22, 2025
2 parents c149bd1 + 193bcfe commit 1780d2e
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 87 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/auto-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ jobs:
PORT_CHECK_ERROR_LINK: ${{ vars.PORT_CHECK_ERROR_LINK }}
PORT_CHECKER_URL: ${{ vars.PORT_CHECKER_URL }}
RECAPTCHA_SITE_KEY: ${{ secrets.RECAPTCHA_SITE_KEY }}
SELLER_WHITELIST_URL: ${{ vars.SELLER_WHITELIST_URL }}
SHOW_FAUCET: ${{ vars.SHOW_FAUCET }}
SYMBOL_ETH: ${{ vars.SYMBOL_ETH }}
SYMBOL_LMR: ${{ vars.SYMBOL_LMR }}
Expand Down Expand Up @@ -86,7 +85,6 @@ jobs:
echo "PROXY_ROUTER_URL=$PROXY_ROUTER_URL" >> .env
echo "RECAPTCHA_SITE_KEY=$RECAPTCHA_SITE_KEY" >> .env
echo "REQUIRED_PASSWORD_ENTROPY=$REQUIRED_PASSWORD_ENTROPY" >> .env
echo "SELLER_WHITELIST_URL=$SELLER_WHITELIST_URL" >> .env
echo "SHOW_FAUCET=$SHOW_FAUCET" >> .env
echo "SYMBOL_ETH=$SYMBOL_ETH" >> .env
echo "SYMBOL_LMR=$SYMBOL_LMR" >> .env
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/auto-release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
PORT_CHECK_ERROR_LINK: ${{ vars.PORT_CHECK_ERROR_LINK }}
PORT_CHECKER_URL: ${{ vars.PORT_CHECKER_URL }}
RECAPTCHA_SITE_KEY: ${{ secrets.RECAPTCHA_SITE_KEY }}
SELLER_WHITELIST_URL: ${{ vars.SELLER_WHITELIST_URL }}
SHOW_FAUCET: ${{ vars.SHOW_FAUCET }}
SYMBOL_ETH: ${{ vars.SYMBOL_ETH }}
SYMBOL_LMR: ${{ vars.SYMBOL_LMR }}
Expand Down Expand Up @@ -92,7 +91,6 @@ jobs:
echo "PROXY_ROUTER_URL=$PROXY_ROUTER_URL" >> .env
echo "RECAPTCHA_SITE_KEY=$RECAPTCHA_SITE_KEY" >> .env
echo "REQUIRED_PASSWORD_ENTROPY=$REQUIRED_PASSWORD_ENTROPY" >> .env
echo "SELLER_WHITELIST_URL=$SELLER_WHITELIST_URL" >> .env
echo "SHOW_FAUCET=$SHOW_FAUCET" >> .env
echo "SYMBOL_ETH=$SYMBOL_ETH" >> .env
echo "SYMBOL_LMR=$SYMBOL_LMR" >> .env
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/auto-release-stg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
PORT_CHECK_ERROR_LINK: ${{ vars.PORT_CHECK_ERROR_LINK }}
PORT_CHECKER_URL: ${{ vars.PORT_CHECKER_URL }}
RECAPTCHA_SITE_KEY: ${{ secrets.RECAPTCHA_SITE_KEY }}
SELLER_WHITELIST_URL: ${{ vars.SELLER_WHITELIST_URL }}
SHOW_FAUCET: ${{ vars.SHOW_FAUCET }}
SYMBOL_ETH: ${{ vars.SYMBOL_ETH }}
SYMBOL_LMR: ${{ vars.SYMBOL_LMR }}
Expand Down Expand Up @@ -92,7 +91,6 @@ jobs:
echo "PROXY_ROUTER_URL=$PROXY_ROUTER_URL" >> .env
echo "RECAPTCHA_SITE_KEY=$RECAPTCHA_SITE_KEY" >> .env
echo "REQUIRED_PASSWORD_ENTROPY=$REQUIRED_PASSWORD_ENTROPY" >> .env
echo "SELLER_WHITELIST_URL=$SELLER_WHITELIST_URL" >> .env
echo "SHOW_FAUCET=$SHOW_FAUCET" >> .env
echo "SYMBOL_ETH=$SYMBOL_ETH" >> .env
echo "SYMBOL_LMR=$SYMBOL_LMR" >> .env
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lumerin-wallet-desktop",
"version": "1.3.4",
"version": "1.3.5",
"engines": {
"node": ">=14"
},
Expand Down Expand Up @@ -45,7 +45,7 @@
},
"dependencies": {
"@electron/remote": "2.0.9",
"@lumerin/wallet-core": "github:Lumerin-protocol/WalletCore#1.1.1",
"@lumerin/wallet-core": "github:Lumerin-protocol/WalletCore#1.1.2",
"@reach/menu-button": "0.17.0",
"@tabler/icons": "1.119.0",
"axios": "0.27.2",
Expand Down
3 changes: 1 addition & 2 deletions public/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ const chain = {
titanLightningDashboard: process.env.TITAN_LIGHTNING_DASHBOARD || "https://lightning.titan.io",
defaultSellerCurrency: process.env.DEFAULT_SELLER_CURRENCY || 'BTC',

bypassAuth: process.env.BYPASS_AUTH === "true",
sellerWhitelistUrl: process.env.SELLER_WHITELIST_URL || 'https://forms.gle/wEcAgppfK2p9YZ3g7'
bypassAuth: process.env.BYPASS_AUTH === "true"
};

module.exports = {
Expand Down
14 changes: 0 additions & 14 deletions src/components/contracts/SellerHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { lmrDecimals } from '../../utils/coinValue';
import { formatBtcPerTh, calculateSuggestedPrice } from './utils';
import ArchiveModal from './modals/ArchiveModal/ArchiveModal';
import { IconArchive } from '@tabler/icons';
import SellerWhitelistModal from './modals/SellerWhitelistModal/SellerWhitelistModal';
import AdjustProfitModal from './modals/AdjustProfitModal/AdjustProfitModal';

const Container = styled.div`
Expand Down Expand Up @@ -88,7 +87,6 @@ function SellerHub({
}) {
const [isModalActive, setIsModalActive] = useState(false);
const [isArchiveModalActive, setIsArchiveModalActive] = useState(false);
const [showSellerWhitelistForm, setShowSellerWhitelistForm] = useState(false);
const [showAdjustForm, setShowAdjustForm] = useState(false);
const [isEditModalActive, setIsEditModalActive] = useState(false);
const [editContractData, setEditContractData] = useState({});
Expand Down Expand Up @@ -430,10 +428,6 @@ function SellerHub({
})
.catch(error => {
setIsModalActive(false);
if (error.message == 'seller is not whitelisted') {
setShowSellerWhitelistForm(true);
return;
}
context.toast('error', error.message || error);
})
.finally(() => {
Expand Down Expand Up @@ -579,14 +573,6 @@ function SellerHub({
showSuccess={false}
/>

<SellerWhitelistModal
isActive={showSellerWhitelistForm}
formUrl={formUrl}
close={() => {
setShowSellerWhitelistForm(false);
}}
/>

<AdjustProfitModal
isActive={showAdjustForm}
contracts={[...underProfitContracts]}
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion src/store/hocs/withContractsState.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ const withContractsState = WrappedComponent => {
ethCoinPrice: selectors.getRateEth(state),
btcCoinPrice: selectors.getRateBtc(state),
selectedCurrency: selectors.getSellerSelectedCurrency(state),
formUrl: selectors.getSellerWhitelistForm(state),
autoAdjustPriceInterval: selectors.getAutoAdjustPriceInterval(state),
autoAdjustContractPriceTimeout: selectors.getAutoAdjustContractPriceTimeout(
state
Expand Down
3 changes: 0 additions & 3 deletions src/store/selectors/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,3 @@ export const getSellerSelectedCurrency = state => state.config.sellerCurrency;

export const getSellerDefaultCurrency = state =>
state.config.chain.defaultSellerCurrency;

export const getSellerWhitelistForm = state =>
state.config.chain.sellerWhitelistUrl;

0 comments on commit 1780d2e

Please sign in to comment.