Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Legacy Node (Frontend) *DO NOT MERGE* #4908

Draft
wants to merge 21 commits into
base: feature/directory-v3-purge-base
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix various type errors
  • Loading branch information
fmtabbara committed Sep 22, 2024
commit 1980154862654d18973721d2560814bf6562e902
2 changes: 1 addition & 1 deletion nym-wallet/src/components/Balance/VestingTimeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const VestingTimeline: FCWithChildren<{ percentageComplete: number }> = (

const nextPeriod =
typeof currentVestingPeriod === 'object' && !!vestingAccountInfo?.periods
? Number(vestingAccountInfo?.periods[currentVestingPeriod.in + 1]?.start_time)
? Number(vestingAccountInfo?.periods[currentVestingPeriod.In + 1]?.start_time)
: undefined;

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const columnsHeaders: Array<{ title: string; align: TableCellProps['align'] }> =
const vestingPeriod = (current?: Period, original?: number) => {
if (current === 'After') return 'Complete';

if (typeof current === 'object' && typeof original === 'number') return `${current.in + 1}/${original}`;
if (typeof current === 'object' && typeof original === 'number') return `${current.In + 1}/${original}`;

return 'N/A';
};
Expand Down
2 changes: 1 addition & 1 deletion nym-wallet/src/context/mocks/bonding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const bondedGatewayMock: TBondedGateway = {

const TxResultMock: TransactionExecuteResult = {
logs_json: '',
data_json: '',
msg_responses_json: '',
transaction_hash: '55303CD4B91FAC4C2715E40EBB52BB3B92829D9431B3A279D37B5CC58432E354',
gas_info: {
gas_wanted: { gas_units: BigInt(1) },
Expand Down
8 changes: 5 additions & 3 deletions nym-wallet/src/context/mocks/delegations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { DelegationContext, TDelegationTransaction } from '../delegations';

import { mockSleep } from './utils';
import { TPoolOption } from '../../components';
import { ms } from 'date-fns/locale';

const SLEEP_MS = 1000;

Expand Down Expand Up @@ -108,7 +109,7 @@ export const MockDelegationContextProvider: FCWithChildren = ({ children }) => {

return {
logs_json: '',
data_json: '',
msg_responses_json: '',
gas_info: {
gas_wanted: { gas_units: BigInt(1) },
gas_used: { gas_units: BigInt(1) },
Expand Down Expand Up @@ -183,7 +184,7 @@ export const MockDelegationContextProvider: FCWithChildren = ({ children }) => {

return {
logs_json: '',
data_json: '',
msg_responses_json: '',
transaction_hash: '',
gas_info: {
gas_wanted: { gas_units: BigInt(1) },
Expand All @@ -195,8 +196,9 @@ export const MockDelegationContextProvider: FCWithChildren = ({ children }) => {

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const undelegateVesting = async (mix_id: number, _fee?: FeeDetails) => ({
logs_json: '',
msg_responses_json: '',
data_json: '',
logs_json: '',
transaction_hash: '',
gas_info: {
gas_wanted: { gas_units: BigInt(1) },
Expand Down
4 changes: 2 additions & 2 deletions nym-wallet/src/context/mocks/rewards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export const MockRewardsContextProvider: FCWithChildren = ({ children }) => {
amount: '1',
denom: 'nym',
},
data_json: '[]',
logs_json: '[]',
msg_responses_json: '[]',
gas_info: {
gas_wanted: { gas_units: BigInt(1) },
gas_used: { gas_units: BigInt(1) },
Expand All @@ -78,7 +78,7 @@ export const MockRewardsContextProvider: FCWithChildren = ({ children }) => {
amount: '1',
denom: 'nym',
},
data_json: '[]',
msg_responses_json: '[]',
logs_json: '[]',
gas_info: {
gas_wanted: { gas_units: BigInt(1) },
Expand Down