fix: mocks and translations
This commit is contained in:
parent
3ed6522bf4
commit
d41b1769d9
@ -18,8 +18,11 @@ import {
|
||||
ProductTypeShortName,
|
||||
} from '@vegaprotocol/types';
|
||||
import { ProposalActionsDropdown } from './proposal-actions-dropdown';
|
||||
import { type MarketFieldsFragment, getProductType } from '@vegaprotocol/markets';
|
||||
import { useT } from '../../..//lib/use-t';
|
||||
import {
|
||||
type MarketFieldsFragment,
|
||||
getProductType,
|
||||
} from '@vegaprotocol/markets';
|
||||
import { useT } from '../../../lib/use-t';
|
||||
|
||||
export const useColumnDefs = () => {
|
||||
const t = useT();
|
||||
|
@ -5,19 +5,14 @@
|
||||
"blocks": "blocks",
|
||||
"Changes have been proposed for this asset.": "Changes have been proposed for this asset.",
|
||||
"Changes have been proposed for this market.": "Changes have been proposed for this market.",
|
||||
"Closing date": "Closing date",
|
||||
"Confirm transaction in wallet": "Confirm transaction in wallet",
|
||||
"Enactment date": "Enactment date",
|
||||
"Enactment date: {{date}}": "Enactment date: {{date}}",
|
||||
"estimated time to protocol upgrade": "estimated time to protocol upgrade",
|
||||
"estimating...": "estimating...",
|
||||
"Market": "Market",
|
||||
"Network upgrade in {{countdown}}": "Network upgrade in {{countdown}}",
|
||||
"No proposed markets": "No proposed markets",
|
||||
"numberOfBlocks": "<0>{{count}}</0> blocks",
|
||||
"numberOfBlocks_one": "<0>{{count}}</0> block",
|
||||
"numberOfBlocks_other": "<0>{{count}}</0> blocks",
|
||||
"Parent market": "Parent market",
|
||||
"Please open your wallet application and confirm or reject the transaction": "Please open your wallet application and confirm or reject the transaction",
|
||||
"Please wait for your transaction to be confirmed": "Please wait for your transaction to be confirmed",
|
||||
"Proposal declined": "Proposal declined",
|
||||
@ -28,8 +23,6 @@
|
||||
"Proposal submitted": "Proposal submitted",
|
||||
"Proposal waiting for node vote": "Proposal waiting for node vote",
|
||||
"Rejection reason: {{reason}}": "Rejection reason: {{reason}}",
|
||||
"Settlement asset": "Settlement asset",
|
||||
"State": "State",
|
||||
"Submission failed": "Submission failed",
|
||||
"The network is being upgraded to {{vegaReleaseTag}}": "The network is being upgraded to {{vegaReleaseTag}}",
|
||||
"The network will upgrade to {{vegaReleaseTag}} in {{countdown}}": "The network will upgrade to {{vegaReleaseTag}} in {{countdown}}",
|
||||
@ -41,7 +34,6 @@
|
||||
"Update <0>{{key}}</0> to {{value}}": "Update <0>{{key}}</0> to {{value}}",
|
||||
"View details": "View details",
|
||||
"View in block explorer": "View in block explorer",
|
||||
"View proposal": "View proposal",
|
||||
"View proposal details": "View proposal details",
|
||||
"Voting": "Voting",
|
||||
"Your transaction has been confirmed": "Your transaction has been confirmed"
|
||||
|
@ -40,6 +40,7 @@
|
||||
"Close menu": "Close menu",
|
||||
"Closed": "Closed",
|
||||
"Closed markets": "Closed markets",
|
||||
"Closing date": "Closing date",
|
||||
"Code must be 64 characters in length": "Code must be 64 characters in length",
|
||||
"Code must be be valid hex": "Code must be be valid hex",
|
||||
"Collateral": "Collateral",
|
||||
@ -90,6 +91,7 @@
|
||||
"Earned by me": "Earned by me",
|
||||
"Eligible teams": "Eligible teams",
|
||||
"Enactment date reached and usual auction exit checks pass": "Enactment date reached and usual auction exit checks pass",
|
||||
"Enactment date": "Enactment date",
|
||||
"[empty]": "[empty]",
|
||||
"Ends in": "Ends in",
|
||||
"Entity scope": "Entity scope",
|
||||
@ -211,6 +213,7 @@
|
||||
"No orders": "No orders",
|
||||
"No party accepts any liability for any losses whatsoever.": "No party accepts any liability for any losses whatsoever.",
|
||||
"No perpetual markets.": "No perpetual markets.",
|
||||
"No proposed markets": "No proposed markets",
|
||||
"No referral program active": "No referral program active",
|
||||
"No rejected orders": "No rejected orders",
|
||||
"No rewards": "No rewards",
|
||||
@ -238,6 +241,7 @@
|
||||
"PRNT": "PRNT",
|
||||
"Page not found": "Page not found",
|
||||
"Parent of a market": "Parent of a market",
|
||||
"Parent market": "Parent market",
|
||||
"Pennant": "Pennant",
|
||||
"Perpetuals": "Perpetuals",
|
||||
"place_ordinal_one": "{{count}}st",
|
||||
@ -307,6 +311,7 @@
|
||||
"Staking multiplier": "Staking multiplier",
|
||||
"Start trading": "Start trading",
|
||||
"Start trading on the worlds most advanced decentralised exchange.": "Start trading on the worlds most advanced decentralised exchange.",
|
||||
"State": "State",
|
||||
"Status": "Status",
|
||||
"Stop": "Stop",
|
||||
"Stop orders": "Stop orders",
|
||||
@ -387,6 +392,7 @@
|
||||
"View oracle specification": "View oracle specification",
|
||||
"View parent market": "View parent market",
|
||||
"View proposals": "View proposals",
|
||||
"View proposal": "View proposal",
|
||||
"View settlement asset details": "View settlement asset details",
|
||||
"View successor market": "View successor market",
|
||||
"View team": "View team",
|
||||
|
@ -152,6 +152,8 @@ query MarketInfo($marketId: ID!) {
|
||||
}
|
||||
}
|
||||
marketTimestamps {
|
||||
proposed
|
||||
pending
|
||||
open
|
||||
close
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -26,6 +26,8 @@ export const marketInfoQuery = (
|
||||
linearSlippageFactor: '0.01',
|
||||
marketTimestamps: {
|
||||
__typename: 'MarketTimestamps',
|
||||
proposed: '2022-11-13T02:15:24.543614154Z',
|
||||
pending: '2022-11-14T02:15:24.543614154Z',
|
||||
open: '2022-11-15T02:15:24.543614154Z',
|
||||
close: null,
|
||||
},
|
||||
|
@ -39,8 +39,10 @@ export const createMarketFragment = (
|
||||
state: Schema.MarketState.STATE_ACTIVE,
|
||||
marketTimestamps: {
|
||||
__typename: 'MarketTimestamps',
|
||||
close: null,
|
||||
proposed: '2022-08-23T11:36:32.252490405Z',
|
||||
pending: '2022-08-24T11:36:32.252490405Z',
|
||||
open: null,
|
||||
close: null,
|
||||
},
|
||||
successorMarketID: null,
|
||||
parentMarketID: null,
|
||||
@ -189,6 +191,9 @@ const marketFieldsFragments: MarketFieldsFragment[] = [
|
||||
tradingMode: Schema.MarketTradingMode.TRADING_MODE_MONITORING_AUCTION,
|
||||
state: Schema.MarketState.STATE_SUSPENDED,
|
||||
marketTimestamps: {
|
||||
proposed: '2022-08-23T11:36:32.252490405Z',
|
||||
pending: '2022-08-24T11:36:32.252490405Z',
|
||||
open: '2022-08-25T11:36:32.252490405Z',
|
||||
close: '2022-08-26T11:36:32.252490405Z',
|
||||
},
|
||||
fees: {
|
||||
@ -219,6 +224,9 @@ const marketFieldsFragments: MarketFieldsFragment[] = [
|
||||
createMarketFragment({
|
||||
id: 'market-3',
|
||||
marketTimestamps: {
|
||||
proposed: '2022-08-23T11:36:32.252490405Z',
|
||||
pending: '2022-08-24T11:36:32.252490405Z',
|
||||
open: '2022-08-25T11:36:32.252490405Z',
|
||||
close: '2022-08-26T11:36:32.252490405Z',
|
||||
},
|
||||
fees: {
|
||||
|
@ -22,8 +22,10 @@ export const generateOrder = (partialOrder?: PartialDeep<Order>) => {
|
||||
},
|
||||
marketTimestamps: {
|
||||
__typename: 'MarketTimestamps',
|
||||
close: '',
|
||||
open: '',
|
||||
proposed: '2022-08-23T11:36:32.252490405Z',
|
||||
pending: '2022-08-24T11:36:32.252490405Z',
|
||||
open: null,
|
||||
close: null,
|
||||
},
|
||||
positionDecimalPlaces: 2,
|
||||
state: Schema.MarketState.STATE_ACTIVE,
|
||||
|
Loading…
Reference in New Issue
Block a user