diff --git a/nym-wallet/src/pages/bond/validationSchema.ts b/nym-wallet/src/pages/bond/validationSchema.ts index c8b932340e..1e71149914 100644 --- a/nym-wallet/src/pages/bond/validationSchema.ts +++ b/nym-wallet/src/pages/bond/validationSchema.ts @@ -22,7 +22,7 @@ export const validationSchema = Yup.object().shape({ profitMarginPercent: Yup.number().required('Profit Percentage is required').min(0).max(100), amount: Yup.string() .required('An amount is required') - .test('valid-amount', 'Pledge error', async (value) => { + .test('valid-amount', 'Pledge error', async function (value) { const isValid = await validateAmount(value || '', '100000000'); if (!isValid) { diff --git a/nym-wallet/src/types/rust/account.ts b/nym-wallet/src/types/rust/account.ts index c621c7b339..9d10a5505b 100644 --- a/nym-wallet/src/types/rust/account.ts +++ b/nym-wallet/src/types/rust/account.ts @@ -1,3 +1,7 @@ -import type { Denom } from "./denom"; +import type { Denom } from './denom'; -export interface Account { contract_address: string, client_address: string, denom: Denom, } \ No newline at end of file +export interface Account { + contract_address: string; + client_address: string; + denom: Denom; +} diff --git a/nym-wallet/src/types/rust/balance.ts b/nym-wallet/src/types/rust/balance.ts index ea260995cf..8e00f8b92e 100644 --- a/nym-wallet/src/types/rust/balance.ts +++ b/nym-wallet/src/types/rust/balance.ts @@ -1,3 +1,6 @@ -import type { Coin } from "./coin"; +import type { Coin } from './coin'; -export interface Balance { coin: Coin, printable_balance: string, } \ No newline at end of file +export interface Balance { + coin: Coin; + printable_balance: string; +} diff --git a/nym-wallet/src/types/rust/coin.ts b/nym-wallet/src/types/rust/coin.ts index fd5b6ef4e8..7036ab5889 100644 --- a/nym-wallet/src/types/rust/coin.ts +++ b/nym-wallet/src/types/rust/coin.ts @@ -1,3 +1,6 @@ -import type { Denom } from "./denom"; +import type { Denom } from './denom'; -export interface Coin { amount: string, denom: Denom, } \ No newline at end of file +export interface Coin { + amount: string; + denom: Denom; +} diff --git a/nym-wallet/src/types/rust/createdaccount.ts b/nym-wallet/src/types/rust/createdaccount.ts index c2cb9ec483..e75585c4a2 100644 --- a/nym-wallet/src/types/rust/createdaccount.ts +++ b/nym-wallet/src/types/rust/createdaccount.ts @@ -1,3 +1,6 @@ -import type { Account } from "./account"; +import type { Account } from './account'; -export interface CreatedAccount { account: Account, mnemonic: string, } \ No newline at end of file +export interface CreatedAccount { + account: Account; + mnemonic: string; +} diff --git a/nym-wallet/src/types/rust/delegationresult.ts b/nym-wallet/src/types/rust/delegationresult.ts index 778fdd2dca..5f09b66e82 100644 --- a/nym-wallet/src/types/rust/delegationresult.ts +++ b/nym-wallet/src/types/rust/delegationresult.ts @@ -1,3 +1,7 @@ -import type { Coin } from "./coin"; +import type { Coin } from './coin'; -export interface DelegationResult { source_address: string, target_address: string, amount: Coin | null, } \ No newline at end of file +export interface DelegationResult { + source_address: string; + target_address: string; + amount: Coin | null; +} diff --git a/nym-wallet/src/types/rust/denom.ts b/nym-wallet/src/types/rust/denom.ts index 8120eafdd0..5c7fca48c1 100644 --- a/nym-wallet/src/types/rust/denom.ts +++ b/nym-wallet/src/types/rust/denom.ts @@ -1,2 +1 @@ - -export type Denom = "Major" | "Minor"; \ No newline at end of file +export type Denom = 'Major' | 'Minor'; diff --git a/nym-wallet/src/types/rust/network.ts b/nym-wallet/src/types/rust/network.ts index fd31bccafa..f8615cd992 100644 --- a/nym-wallet/src/types/rust/network.ts +++ b/nym-wallet/src/types/rust/network.ts @@ -1,2 +1 @@ - -export type Network = "QA" | "SANDBOX" | "MAINNET"; \ No newline at end of file +export type Network = 'QA' | 'SANDBOX' | 'MAINNET'; diff --git a/nym-wallet/src/types/rust/originalvestingresponse.ts b/nym-wallet/src/types/rust/originalvestingresponse.ts index d8c581443c..cb57d5b456 100644 --- a/nym-wallet/src/types/rust/originalvestingresponse.ts +++ b/nym-wallet/src/types/rust/originalvestingresponse.ts @@ -1,3 +1,7 @@ -import type { Coin } from "./coin"; +import type { Coin } from './coin'; -export interface OriginalVestingResponse { amount: Coin, number_of_periods: number, period_duration: bigint, } \ No newline at end of file +export interface OriginalVestingResponse { + amount: Coin; + number_of_periods: number; + period_duration: bigint; +} diff --git a/nym-wallet/src/types/rust/pledgedata.ts b/nym-wallet/src/types/rust/pledgedata.ts index c1312bdc91..996a999329 100644 --- a/nym-wallet/src/types/rust/pledgedata.ts +++ b/nym-wallet/src/types/rust/pledgedata.ts @@ -1,3 +1,6 @@ -import type { Coin } from "./coin"; +import type { Coin } from './coin'; -export interface PledgeData { amount: Coin, block_time: bigint, } \ No newline at end of file +export interface PledgeData { + amount: Coin; + block_time: bigint; +} diff --git a/nym-wallet/src/types/rust/stateparams.ts b/nym-wallet/src/types/rust/stateparams.ts index 22f6653c0e..68c3e018e9 100644 --- a/nym-wallet/src/types/rust/stateparams.ts +++ b/nym-wallet/src/types/rust/stateparams.ts @@ -1,2 +1,6 @@ - -export interface TauriContractStateParams { minimum_mixnode_pledge: string, minimum_gateway_pledge: string, mixnode_rewarded_set_size: number, mixnode_active_set_size: number, } \ No newline at end of file +export interface TauriContractStateParams { + minimum_mixnode_pledge: string; + minimum_gateway_pledge: string; + mixnode_rewarded_set_size: number; + mixnode_active_set_size: number; +} diff --git a/nym-wallet/src/types/rust/tauritxresult.ts b/nym-wallet/src/types/rust/tauritxresult.ts index 013cc66412..6a9ae8ad60 100644 --- a/nym-wallet/src/types/rust/tauritxresult.ts +++ b/nym-wallet/src/types/rust/tauritxresult.ts @@ -1,3 +1,10 @@ -import type { TransactionDetails } from "./transactiondetails"; +import type { TransactionDetails } from './transactiondetails'; -export interface TauriTxResult { block_height: bigint, code: number, details: TransactionDetails, gas_used: bigint, gas_wanted: bigint, tx_hash: string, } \ No newline at end of file +export interface TauriTxResult { + block_height: bigint; + code: number; + details: TransactionDetails; + gas_used: bigint; + gas_wanted: bigint; + tx_hash: string; +} diff --git a/nym-wallet/src/types/rust/transactiondetails.ts b/nym-wallet/src/types/rust/transactiondetails.ts index b24d2f8944..d375b437f1 100644 --- a/nym-wallet/src/types/rust/transactiondetails.ts +++ b/nym-wallet/src/types/rust/transactiondetails.ts @@ -1,3 +1,7 @@ -import type { Coin } from "./coin"; +import type { Coin } from './coin'; -export interface TransactionDetails { amount: Coin, from_address: string, to_address: string, } \ No newline at end of file +export interface TransactionDetails { + amount: Coin; + from_address: string; + to_address: string; +} diff --git a/nym-wallet/src/types/rust/vestingaccountinfo.ts b/nym-wallet/src/types/rust/vestingaccountinfo.ts index addfc1ef87..17d44a5983 100644 --- a/nym-wallet/src/types/rust/vestingaccountinfo.ts +++ b/nym-wallet/src/types/rust/vestingaccountinfo.ts @@ -1,4 +1,10 @@ -import type { Coin } from "./coin"; -import type { VestingPeriod } from "./vestingperiod"; +import type { Coin } from './coin'; +import type { VestingPeriod } from './vestingperiod'; -export interface VestingAccountInfo { owner_address: string, staking_address: string | null, start_time: bigint, periods: Array, coin: Coin, } \ No newline at end of file +export interface VestingAccountInfo { + owner_address: string; + staking_address: string | null; + start_time: bigint; + periods: Array; + coin: Coin; +} diff --git a/nym-wallet/src/types/rust/vestingperiod.ts b/nym-wallet/src/types/rust/vestingperiod.ts index fb3cf1c7b2..de1089005f 100644 --- a/nym-wallet/src/types/rust/vestingperiod.ts +++ b/nym-wallet/src/types/rust/vestingperiod.ts @@ -1,2 +1,4 @@ - -export interface VestingPeriod { start_time: bigint, period_seconds: bigint, } \ No newline at end of file +export interface VestingPeriod { + start_time: bigint; + period_seconds: bigint; +}