Expand description
§delta’s Vaults
Vaults are delta’s fundamental state containers, uniquely identified by an Address. A vault contains balances, nonces, and optional specialized data like token mints.
§Example
Reading vault data:
let client = BaseRpcClient::new("http://localhost:50051").await?;
let address = Address::new(ed25519::PubKey::generate().owner(), 1);
// Get a vault from the network
let vault = client.get_vault(address).await?;
println!("Balance: {}", vault.balance());Modules§
- fungible
- Structures for defining non-native tokens, including supply and metadata.
- nft
- Structures for defining non-fungible tokens (NFTs) and NFT collections.
Structs§
- Address
- The unique address of a vault.
- Base
Vault - Vault structure for the base shard.
- Owned
Vault - A sharded::Vault paired with the OwnerId that corresponds to its owner.
- OwnerId
- The public identity of any actor on the network.
- Vault
- Vault structure for domains that can hold native tokens, custom data, and non-native tokens.
Enums§
- Token
Kind - Token kind (native or not)
- Vault
Data Type - Available vault data types.
Traits§
- Readable
Base Vault - Trait for read-only access to base vault data.
- Readable
Native Balance - Trait for read-only access to native balance.
- Readable
Sharded Vault - Trait for read-only access to sharded vault data.
- Vault
Formatter - A trait to prettyprint vault information, extending ReadableShardedVault
- Writable
Base Vault - Trait for modifying base vault data.
- Writable
Native Balance - Trait for modifying native balance.
- Writable
Sharded Vault - Trait for modifying sharded vault data.
Type Aliases§
- TokenId
- A unique identifier for non-native tokens in the system.