Skip to content

Commit

Permalink
rpc updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
SrikanthSoparla committed Dec 3, 2024
2 parents e9d86a7 + b27fd66 commit 596bc3b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ on:
workflow_dispatch:

env:
DEPLOY_DIR: /var/www/insync-namada

DEPLOY_DIR: /var/www/html/namada.omniflix.co


# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand Down
15 changes: 12 additions & 3 deletions src/actions/accounts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,19 @@ const fetchDelegationsError = (message) => {
export const getDelegations = (address) => (dispatch) => {
dispatch(fetchDelegationsInProgress());
(async () => {
const query = new Query(config.RPC_URL);
// const query = rpc.query;
const { cryptoMemory } = await init();
const sdk = getSdk(
cryptoMemory,
config.RPC_URL,
config.MAPS_REST_URL,
"",
config.TOKEN_ADDRESS
);

const { rpc } = sdk;
const query = rpc.query;
const array = [address];
query && query.query_my_validators(array)
query.query_my_validators(array)
.then((res) => {
dispatch(fetchDelegationsSuccess(res));
})
Expand Down
6 changes: 3 additions & 3 deletions src/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const config = {
RPC_URL: 'https://namada-rpc.mandragora.io',
REST_URL: 'https://indexer.namada.tududes.com',
MAPS_REST_URL: 'https://masp.namada.tududes.com',
RPC_URL: 'https://namada-mainnet-rpc.mellifera.network',
REST_URL: 'https://namada-mainnet-indexer.mellifera.network',
MAPS_REST_URL: 'https://namada-mainnet-masp.mellifera.network',
EXPLORER_URL: 'https://explorer75.org/namada',
STAKING_URL: 'https://namada.omniflix.co/stake',
NETWORK_NAME: 'Namada',
Expand Down
6 changes: 6 additions & 0 deletions src/containers/Home/TokenDetails/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ flex-shrink: 0;
}
}

@media (max-width: 1300px) {
.token_details {
justify-content: space-around;
}
}

@media (max-width: 426px) {
.token_details {
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Home/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ margin-bottom: 0;
}
}

@media (max-width: 1441px) {
@media (max-width: 1300px) {
.home .card {
flex-direction: column;
text-align: center;
Expand Down

0 comments on commit 596bc3b

Please sign in to comment.