mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* noves integration * code refactored * PR changes added * Code set up for new proxy 'describeTxs' * minor fix * Rename Novestranslate.ts to NovesTranslate.ts * some quick stuff * partial fixes and commit for changing how useDescribeTxs and txsContent work (new GET endpoint) * Pending PR fixes * tx asset flows pageSize of 50 * PR comments fixes * rename expected api endpoint for the describe_txs endpoint, more accurate and descriptive * one final re-name for api endpoint (make it clear it's an object vs an action) * scrollRef fix * build error fix * design fixes * sub heading fix * Removed pagination in account history * remove duplicate route * updated table theme and icon gap * Removed wrong color in table * removed null validation in page params * updated margin * margin fix * add icons to contracts * Sub-heading interpretation simplified * token alignment fix * tests added for new functions * margin fix * remove divider on mobile asset flows --------- Co-authored-by: NahuelNoves <[email protected]> Co-authored-by: francisco-noves <[email protected]>
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import type { NovesResponseData, NovesClassificationData, NovesRawTransactionData } from 'types/api/noves';
|
|
|
|
const NOVES_TRANSLATE_CLASSIFIED: NovesClassificationData = {
|
|
description: 'Sent 0.04 ETH',
|
|
received: [ {
|
|
action: 'Sent Token',
|
|
actionFormatted: 'Sent Token',
|
|
amount: '45',
|
|
from: { name: '', address: '0xa0393A76b132526a70450273CafeceB45eea6dEE' },
|
|
to: { name: '', address: '0xa0393A76b132526a70450273CafeceB45eea6dEE' },
|
|
token: {
|
|
address: '',
|
|
name: 'ETH',
|
|
symbol: 'ETH',
|
|
decimals: 18,
|
|
},
|
|
} ],
|
|
sent: [],
|
|
source: {
|
|
type: '',
|
|
},
|
|
type: '0x2',
|
|
typeFormatted: 'Send NFT',
|
|
};
|
|
|
|
const NOVES_TRANSLATE_RAW: NovesRawTransactionData = {
|
|
blockNumber: 1,
|
|
fromAddress: '0xCFC123a23dfeD71bDAE054e487989d863C525C73',
|
|
gas: 2,
|
|
gasPrice: 3,
|
|
timestamp: 20000,
|
|
toAddress: '0xCFC123a23dfeD71bDAE054e487989d863C525C73',
|
|
transactionFee: 2,
|
|
transactionHash: '0x128b79937a0eDE33258992c9668455f997f1aF24',
|
|
};
|
|
|
|
export const NOVES_TRANSLATE: NovesResponseData = {
|
|
accountAddress: '0x2b824349b320cfa72f292ab26bf525adb00083ba9fa097141896c3c8c74567cc',
|
|
chain: 'base',
|
|
txTypeVersion: 2,
|
|
rawTransactionData: NOVES_TRANSLATE_RAW,
|
|
classificationData: NOVES_TRANSLATE_CLASSIFIED,
|
|
};
|