Skip to main content

TypeAlias.TreasuryMovements

type TreasuryMovements = {
failedNetworks: (
| "EthereumAnvil"
| "BaseSepolia"
| "BaseMainnet"
| "XdcApothem"
| "XdcMainnet")[];
movements: (
| {
amount: string;
approvers: string[];
date: string;
destinations: {
address: string;
kind: "unknown" | "agent" | "contact";
label: string | null;
}[];
direction: "out";
id: string;
network: | "EthereumAnvil"
| "BaseSepolia"
| "BaseMainnet"
| "XdcApothem"
| "XdcMainnet";
status: | "unknown"
| "failed"
| "pending"
| "expired"
| "broadcasting"
| "executed"
| "cancelled";
txHash: string | null;
walletId: string;
}
| {
amount: string;
date: string;
direction: "in";
fromAddress: string;
fromLabel: string | null;
id: string;
network: | "EthereumAnvil"
| "BaseSepolia"
| "BaseMainnet"
| "XdcApothem"
| "XdcMainnet";
source: "agent" | "card" | "external";
txHash: string;
walletId: string;
})[];
truncated: boolean;
};

Type Declaration​

NameType
failedNetworks(
movements(
truncatedboolean