Skip to main content

MockVault

Functions

constructor

function constructor(
contract IERC20[] tokens,
address owner
) public

Parameters

NameTypeDescription
tokenscontract IERC20[]
owneraddress

setMockDoTransfers

function setMockDoTransfers(
bool flag
) external

Parameters

NameTypeDescription
flagbool

getPool

function getPool(
bytes32 poolId
) external returns (address poolAddress, enum MockVault.PoolSpecialization poolSpec)

Parameters

NameTypeDescription
poolIdbytes32

getPoolTokens

function getPoolTokens(
bytes32 poolId
) external returns (contract IERC20[] tokens, uint256[] balances, uint256 lastChangeBlock)

Parameters

NameTypeDescription
poolIdbytes32

setBalances

function setBalances(
uint256[] balances
) external

Parameters

NameTypeDescription
balancesuint256[]

joinPool

function joinPool(
bytes32 poolId,
address sender,
address recipient,
struct MockVault.JoinPoolRequest request
) external

Parameters

NameTypeDescription
poolIdbytes32
senderaddress
recipientaddress
requeststruct MockVault.JoinPoolRequest

exitPool

function exitPool(
bytes32 poolId,
address sender,
address payable recipient,
struct MockVault.ExitPoolRequest request
) external

Parameters

NameTypeDescription
poolIdbytes32
senderaddress
recipientaddress payable
requeststruct MockVault.ExitPoolRequest