| Crates.io | bvs-vault-factory |
| lib.rs | bvs-vault-factory |
| version | 0.0.0-main.167+2025.05.05 |
| created_at | 2025-05-05 06:26:15.842794+00 |
| updated_at | 2025-05-05 06:26:15.842794+00 |
| description | SatLayer Bitcoin Validated Service |
| homepage | https://satlayer.xyz/ |
| repository | https://github.com/satlayer/satlayer-bvs.git |
| max_upload_size | |
| id | 1660259 |
| size | 55,217 |
The BVS Vault Factory is a contract that enables operators to deploy new vault contracts on the SatLayer ecosystem. It serves as a centralized deployment mechanism, ensuring that only approved vault types can be created and that they are properly configured to work with the SatLayer infrastructure.
The Vault Factory maintains a registry of approved code IDs for different vault types, which can be updated by the contract owner. This ensures that only secure and compatible vault implementations can be deployed through the factory.
DeployCw20Vault: Deploy a new CW20 vault for a specific CW20 tokenDeployBankVault: Deploy a new bank vault for a specific native token denominationSetCodeId: Set the code ID for a specific vault type (only owner can call)CodeId: Get the code ID for a specific vault typeThe Vault Factory manages the deployment of new vaults through a controlled process:
SetCodeIdDeployCw20Vault or DeployBankVaultThe Vault Factory supports two main types of vaults:
Each vault type has its own code ID that must be set by the contract owner before deployment.