- cd hardhat
- npx hardhat run sapphire-script/01_deploy.ts --network oasisSapphireTestnet
- config contract address to all deploy scripts.
- npx hardhat run sapphire-script/02_setup.ts --network oasisSapphireTestnet
- npx hardhat run sapphire-script/03_quest.ts --network oasisSapphireTestnet
- npx hardhat run sapphire-script/04_recipe.ts --network oasisSapphireTestnet
- npx hardhat run sapphire-script/05_item.ts --network oasisSapphireTestnet
Demo: https://vv-base-app-oasis.vercel.app
- cd ai-agent
- Python >= 3.11
-
Create a new file called .env
-
Copy the contents of .env.example into your new .env file
-
API keys for third party tools are not provided.
OPENAI_API_KEY
from OpenAI
You can use other LLMs, in which case you can add a corresponding API key
ANTHROPIC_API_KEY
from AnthropicMISTRAL_API_KEY
from Mistral- All models supplied by Ollama
-
Create a virtual Python environment
$ python -m venv ./venv
- Activate the Python virtual env.
- Windows:
- In cmd.exe:
venv\Scripts\activate.bat
- In PowerShell:
venv\Scripts\Activate.ps1
- In cmd.exe:
- Unix:
source venv/bin/activate
- Windows:
- Install dependencies.
$ pip install -r requirements.txt
- Run it
(venv) $ python vv-npc-agent.py
- Test your agent by calling it Chat API endpoint,
/api/chat
, to see the result:
curl --location 'localhost:8000/api/v1/chat' \
--header 'Content-Type: application/json' \
--data '{
"user_id": "user123",
"session_id": "session123",
"chat_data": {
"messages": [
{ "role": "user", "content": "what is the base selling item on game?" }
]
}
}'
- Smart Contract(Autonomous World)
1.1 On-chain in-game Items, Tokens, NFTs, and Game Logic
1.2 World Contract with Hooks feature
1.3 Built-in in-game DeFi - AI-generated content & LLM
- Chainlink
- AppKit
- On-chain Game Logic eg. Quest(Daily Check-in, Raffle, Mini game), Craft, Item, Token, Profile, and World.
- Multiplayer
- Supported Multi-Platform on browser
- In-game DeFi
- AI NPC