diff --git a/src/api/index.ts b/src/api/index.ts index 1d132aa..74c0fbd 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -3,8 +3,8 @@ import { TESTNET_SEED_NODES } from '../constants' import { apiReady, apiUrl, apiUrlNote } from '../store' import type { EventObj, ViewObj } from './payloads/types' -// const DEBUG_URL: string = 'https://rpc.openlibra.space:8080/v1/' -const DEBUG_URL: string = 'http://138.197.32.103:8080/v1/' +const DEBUG_URL: string = 'https://rpc.openlibra.space:8080/v1/' +// const DEBUG_URL: string = 'http://138.197.32.103:8080/v1/' export let api diff --git a/src/api/payloads/system.ts b/src/api/payloads/system.ts index 20715ba..05a2b2a 100644 --- a/src/api/payloads/system.ts +++ b/src/api/payloads/system.ts @@ -12,11 +12,6 @@ export const epoch_length_payload: ViewObj = { arguments: [], } -export const vdf_difficulty: ViewObj = { - function: '0x1::tower_state::get_difficulty', - type_arguments: [], - arguments: [], -} export const infra_balance: ViewObj = { function: '0x1::infra_escrow::infra_escrow_balance', diff --git a/src/store/get_system_info.ts b/src/store/get_system_info.ts index 5660313..6211af3 100644 --- a/src/store/get_system_info.ts +++ b/src/store/get_system_info.ts @@ -84,13 +84,12 @@ export const getSystemInfo = async () => { const requests = [ postViewFunc(systemPayloads.fees_collected_payload), postViewFunc(systemPayloads.epoch_length_payload), - postViewFunc(systemPayloads.vdf_difficulty), postViewFunc(systemPayloads.infra_balance), getAccountResource('0x1', '0x1::musical_chairs::Chairs'), getAccountResource('0x1', '0x1::epoch_boundary::BoundaryStatus'), getAccountResource('0x1', '0x1::proof_of_fee::ConsensusReward'), ] - const [fees, epochResponse, vdfDifficulty, infraBalance, chairs, boundaryStatus, cr] = + const [fees, epochResponse, infraBalance, chairs, boundaryStatus, cr] = await Promise.all(requests) const duration = moment.duration(Number(epochResponse[0]), 'seconds') // Cast to Number @@ -102,7 +101,6 @@ export const getSystemInfo = async () => { consensus_reward: cr.nominal_reward, fees: fees[0], epoch_duration: epoch, - vdf: vdfDifficulty, infra_escrow: infraBalance[0], validator_seats: chairs.seats_offered, boundary_status: boundaryStatus, diff --git a/src/types/index.ts b/src/types/index.ts index 609dacb..6f78790 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -25,7 +25,6 @@ export interface SystemInfo { git_hash: string infra_escrow: number validator_seats: number - vdf: number[] boundary_status: object } diff --git a/src/ui/SystemInfo.svelte b/src/ui/SystemInfo.svelte index 16bf4bb..de10e0e 100644 --- a/src/ui/SystemInfo.svelte +++ b/src/ui/SystemInfo.svelte @@ -29,8 +29,6 @@