@arcana/ca-sdk
Version:
Arcana Network's chain abstraction SDK for unified balance in Web3 apps
27 lines (26 loc) • 699 B
TypeScript
import { Universe } from "@arcana/ca-common";
import { ChainList } from "../chains";
import { Intent } from "../typings";
type Destination = {
tokenAddress: `0x${string}`;
universe: Universe;
value: bigint;
};
type Source = {
chainID: bigint;
tokenAddress: `0x${string}`;
universe: Universe;
value: bigint;
};
declare const getSourcesAndDestinationsForRFF: (intent: Intent, chainList: ChainList, destinationUniverse: Universe) => {
destinations: Destination[];
sourceCounts: {
0: number;
1: number;
2: number;
[-1]: number;
};
sources: Source[];
universes: Set<Universe>;
};
export { getSourcesAndDestinationsForRFF };