type Status =
| {
destinationAmount: bigint;
destinationChainId: number;
destinationTokenAddress: ox__Address.Address;
originAmount: bigint;
originChainId: number;
originTokenAddress: ox__Address.Address;
status: "COMPLETED";
transactions: Array<{
chainId: number;
transactionHash: ox__Hex.Hex;
}>;
}
| {
destinationChainId: number;
destinationTokenAddress: ox__Address.Address;
originAmount: bigint;
originChainId: number;
originTokenAddress: ox__Address.Address;
status: "PENDING";
transactions: Array<{
chainId: number;
transactionHash: ox__Hex.Hex;
}>;
}
| {
status: "FAILED";
transactions: Array<{
chainId: number;
transactionHash: ox__Hex.Hex;
}>;
}
| { status: "NOT_FOUND"; transactions: [] };