Skip to main content
Deploying a vault by calling the factory contract yourself, for a deployment script or stellar-cli. To deploy through the API instead, see Create a Vault. Factory addresses are on Contract Deployments.

Vault Role IDs

When calling the factory contract directly, roles are passed as a Map<u32, Address>. The role IDs are: All four roles must be assigned. The same address can be used for multiple roles.

Function: create_defindex_vault

Parameter Reference

AssetStrategySet Structure

Example: stellar-cli (Testnet, USDC vault)

Replace GCKFBEIY... with your actual Stellar addresses for each role.

Function: create_defindex_vault_deposit

Creates a vault and makes the initial deposit in one transaction.
Additional parameter over create_defindex_vault: