Skip to main content

Direction

class Direction
constructor(from: { vault: Vault; token: Token }, to: { vault: Vault; token: Token })

The Direction entity represents a helper entity used in cross-layer transfers.

Example#

import { Vault, Token } from '@composable-finance/v1-sdk-typescript'
const sourceVault = new Vault(...)const sourceToken = new Token(...)const destinationVault = new Vault(...)const destinationToken = new Token(...)
const direction = new Direction({sourceVault, sourceToken},{destinationVault, destinationToken});

Properties#

from

readonly from: { vault: Vault; token: Token }

to

readonly to: { vault: Vault; token: Token }