Commit 0e4c7419 authored by POA's avatar POA

Partially fix lint:tsc errors

parent 23091fa0
......@@ -64,6 +64,7 @@ export const base: Transaction = {
],
type: 2,
value: '42000000000000000000',
actions: [],
};
export const withContractCreation: Transaction = {
......
......@@ -3,6 +3,7 @@ import type { BlockTransactionsResponse } from './block';
import type { DecodedInput } from './decodedInput';
import type { Fee } from './fee';
import type { TokenTransfer } from './tokenTransfer';
import type { TxAction } from './txAction';
export type TransactionRevertReason = {
raw: string;
......@@ -48,7 +49,7 @@ export type Transaction = (
method: string | null;
tx_types: Array<TransactionType>;
tx_tag: string | null;
actions?: Array<object>;
actions: Array<TxAction>;
}
export type TransactionsResponse = TransactionsResponseValidated | TransactionsResponsePending;
......
export type TxAction = {
protocol: string;
type: string;
data: object;
data: {
name: string;
symbol: string;
address: string;
to: string;
ids: Array<string>;
amount0: string;
symbol0: string;
address0: string;
amount1: string;
symbol1: string;
address1: string;
};
isLast: boolean;
}
......@@ -2,12 +2,14 @@ import { Box, Flex } from '@chakra-ui/react';
import Script from 'next/script';
import React from 'react';
import type { TxAction as TTxAction } from 'types/api/txAction';
import DetailsInfoItem from 'ui/shared/DetailsInfoItem';
import TxDetailsAction from './TxDetailsAction';
interface Props {
actions: array;
actions: Array<TTxAction>;
}
declare global {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment