Skip to content

armsves/sozuHausWeek1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vercel AI with viem Example

This example demonstrates the new plugin for ERC4626 vaults, to deposit/withdraw get totalSuppy and more functions. You can also check your balance of the SHR token (Sozu Haus Resident)

Setup

  1. Install dependencies:
pnpm install
  1. Copy the .env.template and populate with your values:
cp .env.template .env

Required Environment Variables:

  • OPENAI_API_KEY: Your OpenAI API key for the AI model
  • WALLET_PRIVATE_KEY: Your wallet's private key (with 0x prefix)
  • RPC_PROVIDER_URL: EVM network RPC URL (with sepolia mantle)

Usage

  1. Run the interactive CLI:
npx ts-node index.ts
  1. Example interactions:
what's the symbol of the token in 0x28c52E6c053AD4F2727E2F8de2AD5B81139ca9D4
what's the symbol of the token in the SozuHausResidentVault
whats the total supply of SozuHausResidentVault
whats the total assets of SozuHausResidentVault
who is the owner of the vault 0x28c52E6c053AD4F2727E2F8de2AD5B81139ca9D4
what's the name of the vault 0x28c52E6c053AD4F2727E2F8de2AD5B81139ca9D4
what's the underlying token of the vault 0x28c52E6c053AD4F2727E2F8de2AD5B81139ca9D4
deposit 111 into the vault 0x28c52E6c053AD4F2727E2F8de2AD5B81139ca9D4 as my wallet address as receiver
what's my wallet address's max witdrawal amount of the vault SozuHausResidentVault
withdraw the max amount to my wallet address from the vault SozuHausResidentVault

About

Sozu AI Virtual Hack Week 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors