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