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]>
104 lines
2.6 KiB
TypeScript
104 lines
2.6 KiB
TypeScript
import type { NovesResponseData } from 'types/api/noves';
|
|
|
|
import type { TokensData } from 'ui/tx/assetFlows/utils/getTokensData';
|
|
|
|
export const hash = '0x380400d04ebb4179a35b1d7fdef260776915f015e978f8587ef2704b843d4e53';
|
|
|
|
export const transaction: NovesResponseData = {
|
|
accountAddress: '0xef6595A423c99f3f2821190A4d96fcE4DcD89a80',
|
|
chain: 'eth-goerli',
|
|
classificationData: {
|
|
description: 'Called function \'stake\' on contract 0xef326CdAdA59D3A740A76bB5f4F88Fb2.',
|
|
protocol: {
|
|
name: null,
|
|
},
|
|
received: [],
|
|
sent: [
|
|
{
|
|
action: 'sent',
|
|
actionFormatted: 'Sent',
|
|
amount: '3000',
|
|
from: {
|
|
address: '0xef6595A423c99f3f2821190A4d96fcE4DcD89a80',
|
|
name: 'This wallet',
|
|
},
|
|
to: {
|
|
address: '0xdD15D2650387Fb6FEDE27ae7392C402a393F8A37',
|
|
name: null,
|
|
},
|
|
token: {
|
|
address: '0x1bfe4298796198f8664b18a98640cec7c89b5baa',
|
|
decimals: 18,
|
|
name: 'PQR-Test',
|
|
symbol: 'PQR',
|
|
},
|
|
},
|
|
{
|
|
action: 'paidGas',
|
|
actionFormatted: 'Paid Gas',
|
|
amount: '0.000395521502109448',
|
|
from: {
|
|
address: '0xef6595A423c99f3f2821190A4d96fcE4DcD89a80',
|
|
name: 'This wallet',
|
|
},
|
|
to: {
|
|
address: null,
|
|
name: 'Validators',
|
|
},
|
|
token: {
|
|
address: 'ETH',
|
|
decimals: 18,
|
|
name: 'ETH',
|
|
symbol: 'ETH',
|
|
},
|
|
},
|
|
],
|
|
source: {
|
|
type: null,
|
|
},
|
|
type: 'unclassified',
|
|
typeFormatted: 'Unclassified',
|
|
},
|
|
rawTransactionData: {
|
|
blockNumber: 10388918,
|
|
fromAddress: '0xef6595A423c99f3f2821190A4d96fcE4DcD89a80',
|
|
gas: 275079,
|
|
gasPrice: 1500000008,
|
|
timestamp: 1705488588,
|
|
toAddress: '0xef326CdAdA59D3A740A76bB5f4F88Fb2f1076164',
|
|
transactionFee: {
|
|
amount: '395521502109448',
|
|
token: {
|
|
decimals: 18,
|
|
symbol: 'ETH',
|
|
},
|
|
},
|
|
transactionHash: '0x380400d04ebb4179a35b1d7fdef260776915f015e978f8587ef2704b843d4e53',
|
|
},
|
|
txTypeVersion: 2,
|
|
};
|
|
|
|
export const tokenData: TokensData = {
|
|
nameList: [ 'PQR-Test', 'ETH' ],
|
|
symbolList: [ 'PQR' ],
|
|
idList: [],
|
|
byName: {
|
|
'PQR-Test': {
|
|
name: 'PQR-Test',
|
|
symbol: 'PQR',
|
|
address: '0x1bfe4298796198f8664b18a98640cec7c89b5baa',
|
|
id: undefined,
|
|
},
|
|
ETH: { name: 'ETH', symbol: null, address: '', id: undefined },
|
|
},
|
|
bySymbol: {
|
|
PQR: {
|
|
name: 'PQR-Test',
|
|
symbol: 'PQR',
|
|
address: '0x1bfe4298796198f8664b18a98640cec7c89b5baa',
|
|
id: undefined,
|
|
},
|
|
'null': { name: 'ETH', symbol: null, address: '', id: undefined },
|
|
},
|
|
};
|