Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 38 additions & 10 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface Web3PagedResponse<T> {
paging?: Paging;
}

export type APIResponseHeaders = AxiosResponseHeaders & {"x-request-id"?: string};
export type APIResponseHeaders = AxiosResponseHeaders & { "x-request-id"?: string };

export interface VaultAccountResponse {
id: string;
Expand Down Expand Up @@ -133,16 +133,21 @@ export interface EstimatedTransactionFee {
}

export interface TransferPeerPath {
type?: PeerType;
type: PeerType;
id?: string;
walletId?: string;
name?: string;
subType?: string;
virtualId?: string;
virtualType?: VirtualType;
address?: string;
}

export interface DestinationTransferPeerPath {
type: PeerType;
id?: string;
walletId?: string;
name?: string;
subType?: string;
virtualId?: string;
virtualType?: VirtualType;
oneTimeAddress?: IOneTimeAddress;
Expand Down Expand Up @@ -593,6 +598,7 @@ export interface TransactionResponse {
index?: number;
rewardInfo?: RewardInfo;
feePayerInfo?: FeePayerInfo;
networkRecords: INetworkRecord[];
}

export interface AmountInfo {
Expand Down Expand Up @@ -631,6 +637,7 @@ export interface TransferPeerPathResponse {
subType?: string;
virtualType?: VirtualType;
virtualId?: string;
address?: string;
}

export interface AuthorizationInfo {
Expand Down Expand Up @@ -1204,11 +1211,11 @@ export interface GetWeb3ConnectionsPayload {
export interface CreateWeb3ConnectionResponse {
id: string;
sessionMetadata: {
appIcon?: string,
appId?: string,
appName?: string,
appUrl?: string,
appDescription?: string
appIcon?: string,
appId?: string,
appName?: string,
appUrl?: string,
appDescription?: string
};
}

Expand All @@ -1218,7 +1225,7 @@ export interface SessionMetadata {
appName?: string;
appUrl?: string;
appDescription?: string;
}
}

export interface Session {
id: string;
Expand All @@ -1229,7 +1236,7 @@ export interface Session {
connectionType: Web3ConnectionType;
connectionMethod?: Web3ConnectionMethod;
sessionMetadata?: SessionMetadata;
}
}
export enum TimePeriod {
DAY = "DAY",
WEEK = "WEEK"
Expand Down Expand Up @@ -1369,3 +1376,24 @@ export interface IssueTokenRequest {
issuerAddress?: string;
decimals: number;
}

export interface ContractCallDecodedData {
contractName: string;
functionCalls: object[];
}

export interface INetworkRecord {
source?: TransferPeerPath;
destiantion?: TransferPeerPath;
txHash?: string;
networkFee?: string;
assetId?: string;
netAmount?: string;
isDropped?: boolean;
type?: string;
destinationAddress?: string;
sourceAddress?: string;
amountUSD?: string;
index?: number;
rewardInfo: RewardInfo;
}