Build on Agoric
Additional Resources
If you're looking to dive deeper into Agoric's ecosystem after mastering the basics, here are some additional concepts and functions you'll encounter in your development journey.
Extra Smart Contract Concepts
While we covered basic digital assets earlier, Agoric provides sophisticated tools for asset handling:
Purses
- Stores digital assets
- Created by specific Mints
- Can receive deposits
- Can make withdrawals
Payments
- Transferable digital assets
- Created by Mints
- Can move between Purses
- Used in smart contract transactions
Issuers
- Validates Mints and Purses
- Acts as trusted authority
- Ensures asset authenticity
A code example:
Extra Orchestration Functions & Concepts
When building sophisticated cross-chain applications, you'll work with these powerful orchestration functions:
getChain
- Retrieves chain object for given chainName
- Provides access to chain-specific methods
getBrandInfo
- Gets denom information
- Returns local Brand details
- Provides chain and asset information
asAmount
- Converts denom amount to Amount with brand
- Handles value conversions
What’s ChainHub?
ChainHub acts as a central registry for managing multiple blockchain interactions. Think of it as a control center that keeps track of different chains, their connections, and asset types in one unified interface.
Creation and State
- Creates a new ChainHub in a zone
- Functions as an Exo singleton
- Maintains lightweight state (only caches queries)
- Easily refreshable for updates
Registration Capabilities
Information Access
Key Points:
- Centralized Management: One place to handle all chain interactions
- Dynamic Registration: Add chains and connections as need
- Flexible Updates: Easy to create new versions
- Unified Interface: Consistent way to access cross-chain information
Comments
You need to enroll in the course to be able to comment!