Skip to content

Commit

Permalink
Update relay metadata in useUserStore.ts and DataTableMyRelays.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
EarlOld committed Jun 7, 2024
1 parent 1cfdb1f commit 29704a1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions components/DataTableMyRelays.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import type { RelayRow } from '@/stores/useUserStore';
import type { FunctionName } from '@/utils/warp.write';
import { useRelayRegistry } from '@/composables/relay-registry';
import { config } from '@/config/wagmi.config';
import { type RelayMetric, type RelayMeta } from '@/types/relay';
import { RELAY_COLUMS, TABS, VERBS } from '@/constants/relay';
import { useMetricsStore } from '@/stores/useMetricsStore';
import Tabs from './ui-kit/Tabs.vue';
import Tooltip from './ui-kit/Tooltip.vue';
import Popover from './ui-kit/Popover.vue';
import BigNumber from 'bignumber.js';
import type { ValidatedRelay } from '@/stores/useMetricsStore';
const toast = useToast();
const userStore = useUserStore();
Expand Down
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Button from '@/components/ui-kit/Button.vue';
import { useFacilitator } from '@/composables/facilitator';
import { getRedeemProcessSessionStorage } from '@/utils/redeemSessionStorage';
import { initDistribution, useDistribution } from '@/composables/distribution';
import { useMetricsStore } from '@/stores/useMetricsStore';
// import { useMetricsStore } from '@/stores/useMetricsStore';
const userStore = useUserStore();
const facilitatorStore = useFacilitatorStore();
Expand Down
2 changes: 1 addition & 1 deletion stores/useUserStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { RelayMeta } from '@/types/relay';
import { warpRead } from '@/utils/warp.read';
import { config } from '@/config/wagmi.config';
import { getAtorAddress } from '@/config/web3modal.config';
import { getRelaysInfo } from '~/utils/relays';
import { getRelaysInfo } from '@/utils/relays';

export type RelayRow = {
fingerprint: string;
Expand Down
2 changes: 1 addition & 1 deletion utils/relays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export const getRelaysInfo = async (fingerPrints: string[]) => {
ator_address: data.ator_address,
consensus_weight_fraction: data.consensus_weight_fraction,
};
await wait(1000);
}
} catch (e) {
console.error(e);
}
await wait(500);
}

return relays;
Expand Down

0 comments on commit 29704a1

Please sign in to comment.