Vault Deployment
Deploy a new vault using the Orion CLI.
Prerequisites
- SDK installed (see SDK Installation)
.env
configured with:RPC_URL
VAULT_DEPLOYER_PRIVATE_KEY
CURATOR_ADDRESS
What is an RPC URL?
An RPC URL is the endpoint the SDK uses to communicate with contracts on the blockchain network.
It’s provided by a node or node service provider (e.g., Alchemy) and allows the SDK to send transactions and query blockchain data.
Getting an RPC URL
You can get an RPC URL from multiple providers. Below are three popular options:
1. Alchemy
- Go to Alchemy and create a free account.
- Click "Create App" in your dashboard.
- Select:
- Chain – Ethereum;
- Network – Sepolia Testnet.
- Once created, click your app and copy the HTTP URL — this is your RPC URL.
- Paste it into your
.env
file:
RPC_URL=https://eth-sepolia.g.alchemy.com/v2/YOUR_API_KEY
2. Infura
- Go to Infura and sign up.
- Create a new project in your dashboard.
- Select the Sepolia network.
- Copy the HTTPS endpoint and paste it into your
.env
file:
RPC_URL=https://sepolia.infura.io/v3/YOUR_API_KEY
3. QuickNode
- Go to QuickNode and create a free account.
- Click "Create Endpoint" and choose the Sepolia network.
- Copy the HTTP Provider URL and paste it into your
.env
file:
RPC_URL=https://YOUR-UNIQUE-ENDPOINT.quiknode.pro/YOUR_API_KEY
Deploy a Transparent Vault
orion deploy-vault \
--vault-type transparent \
--name "Algorithmic Liquidity Provision & Hedging Agent" \
--symbol "ALPHA" \
--fee-type hard_hurdle \
--performance-fee 100 \
--management-fee 10
What this does:
- Deploys an ERC-7540 vault smart contract;
- Registers the curator address set in your
.env
; - Sets the fee type and fees amounts;
- Makes allocations visible onchain.
Deploy an Encrypted Vault
orion deploy-vault \
--vault-type encrypted \
--name "Quantitative Uncertainty Analysis of Network Topologies" \
--symbol "QUANT" \
--fee-type high_water_mark \
--performance-fee 0 \
--management-fee 20
What this does:
- Deploys an ERC-7540 vault smart contract;
- Registers the curator address set in your
.env
; - Sets the fee type and fees amounts;
- Makes allocations confidential.
Verify Deployment
- The CLI outputs the vault contract address;
- Add it to your curator records and share it with users.