sui-knowledge

TotalClaw 作者 EasonClawdbot1 v1.0.0

回答有关 Sui 区块链生态系统、概念、代币经济学、验证器、质押和常识的问题。当用户询问“什么是 Sui”、“Sui 是如何工作的”、“Sui 与其他链”或任何与 Sui 相关但不是专门针对 Move 编程的问题时使用。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~easonc13-sui
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~easonc13-sui/file -o easonc13-sui.md
# Sui Knowledge Base

Expert knowledge about Sui blockchain ecosystem. Use this skill to answer questions about Sui concepts, architecture, tokenomics, and ecosystem.

## When to Use This Skill

Activate when users ask about:
- What is Sui? How does it work?
- Sui vs Ethereum/Solana/other chains
- SUI token, tokenomics, staking
- Validators, consensus, transactions
- Sui ecosystem, projects, wallets
- Object model, ownership concepts
- Performance, TPS, finality

**For Move programming questions → use `sui-move` skill instead**

## Setup References

```bash
cd {baseDir}
chmod +x setup.sh && ./setup.sh
```

This clones:
- Sui official documentation
- Sui whitepaper and technical docs

## Quick Search

```bash
# Search Sui docs
rg -i "keyword" {baseDir}/references/sui-docs/ --type md -C 2

# Search for specific concepts
rg -i "object|ownership|transfer" {baseDir}/references/ --type md
```

## Core Concepts

### What is Sui?

Sui is a Layer 1 blockchain designed for high throughput and low latency. Key innovations:

1. **Object-Centric Model**: Unlike account-based chains, Sui treats everything as objects with unique IDs
2. **Parallel Execution**: Independent transactions execute in parallel without global ordering
3. **Move Language**: Safe, resource-oriented smart contract language
4. **Mysticeti Consensus**: Fast finality (~390ms) for shared objects

### Object Model

```
┌─────────────────────────────────────────┐
│              Object Types               │
├─────────────────────────────────────────┤
│ Owned Objects    → Single owner address │
│ Shared Objects   → Multiple can access  │
│ Immutable Objects→ Frozen, read-only    │
│ Wrapped Objects  → Nested in another    │
└─────────────────────────────────────────┘
```

- Every object has a unique `ObjectID` (32 bytes)
- Objects have `version` that increments on mutation
- Owned object transactions don't need consensus (fast path)

### Transaction Types

| Type | Consensus | Speed | Use Case |
|------|-----------|-------|----------|
| Owned Object | No (fast path) | ~200ms | Transfers, simple ops |
| Shared Object | Yes (Mysticeti) | ~390ms | DEX, auctions, games |

### SUI Token

- **Ticker**: SUI
- **Total Supply**: 10 billion SUI
- **Uses**: Gas fees, staking, governance
- **Smallest Unit**: MIST (1 SUI = 10^9 MIST)

### Gas Model

- Gas price in MIST per computation unit
- Storage rebates: Get gas back when deleting objects
- Sponsored transactions: Third party pays gas

### Validators & Staking

- Delegated Proof of Stake (DPoS)
- ~100+ active validators
- Stake SUI to validators to earn rewards
- Epoch: ~24 hours

### Consensus: Mysticeti

- DAG-based consensus protocol
- Sub-second finality for shared objects
- Replaces Narwhal/Bullshark (used previously)

## Sui vs Other Chains

| Feature | Sui | Ethereum | Solana |
|---------|-----|----------|--------|
| Model | Object-centric | Account-based | Account-based |
| Language | Move | Solidity | Rust |
| TPS | 100k+ | ~15 | ~65k |
| Finality | <1s | ~12min | ~400ms |
| Parallel Exec | Yes (objects) | Limited | Yes |

## Ecosystem

### Wallets
- Sui Wallet (official)
- Suiet
- Ethos
- Martian

### DEXs
- Cetus
- Turbos
- DeepBook (order book)

### NFT Marketplaces
- BlueMove
- Clutchy
- Hyperspace

### Developer Tools
- Sui CLI
- Sui Explorer
- Move Analyzer (VSCode)

## Common Questions

### "Is Sui EVM compatible?"
No. Sui uses Move, not EVM. However, bridges exist to transfer assets from EVM chains.

### "How fast is Sui?"
- Owned object txs: ~200ms
- Shared object txs: ~390ms
- Theoretical TPS: 100,000+

### "How do I stake SUI?"
1. Open Sui Wallet
2. Go to Staking tab
3. Choose a validator
4. Enter amount and confirm

### "What's the difference between Sui Move and Aptos Move?"
- Sui uses object-centric storage
- Different standard library
- Sui has native object primitives
- Some syntax differences in Move 2024

## Answering Workflow

1. **Identify the question type**:
   - General knowledge → Answer from this skill
   - Move programming → Refer to sui-move skill
   - Specific API/code → Search references

2. **Search if needed**:
   ```bash
   rg -i "question keywords" {baseDir}/references/
   ```

3. **Provide clear answer** with:
   - Direct answer first
   - Supporting details
   - Links to official docs if relevant

## Official Resources

- Website: https://sui.io
- Docs: https://docs.sui.io
- GitHub: https://github.com/MystenLabs/sui
- Discord: https://discord.gg/sui
- Twitter: @SuiNetwork

---

## 中文说明

# Sui Knowledge Base

关于 Sui 区块链生态系统的专家知识。使用此技能回答有关 Sui 概念、架构、代币经济学和生态系统的问题。

## When to Use This Skill

当用户询问以下内容时激活:
- 什么是 Sui?它是如何工作的?
- Sui 与 Ethereum/Solana/其他链的对比
- SUI 代币、代币经济学、质押
- 验证器、共识、交易
- Sui 生态系统、项目、钱包
- 对象模型、所有权概念
- 性能、TPS、最终性

**对于 Move 编程问题 → 改用 `sui-move` 技能**

## Setup References

```bash
cd {baseDir}
chmod +x setup.sh && ./setup.sh
```

这会克隆:
- Sui 官方文档
- Sui 白皮书和技术文档

## Quick Search

```bash
# Search Sui docs
rg -i "keyword" {baseDir}/references/sui-docs/ --type md -C 2

# Search for specific concepts
rg -i "object|ownership|transfer" {baseDir}/references/ --type md
```

## Core Concepts

### What is Sui?

Sui 是一个为高吞吐量和低延迟而设计的 Layer 1 区块链。关键创新:

1. **Object-Centric Model**:与基于账户的链不同,Sui 将一切都视为带有唯一 ID 的对象
2. **Parallel Execution**:独立交易可并行执行,无需全局排序
3. **Move Language**:安全的、面向资源的智能合约语言
4. **Mysticeti Consensus**:对共享对象的快速最终性(约 390ms)

### Object Model

```
┌─────────────────────────────────────────┐
│              Object Types               │
├─────────────────────────────────────────┤
│ Owned Objects    → Single owner address │
│ Shared Objects   → Multiple can access  │
│ Immutable Objects→ Frozen, read-only    │
│ Wrapped Objects  → Nested in another    │
└─────────────────────────────────────────┘
```

- 每个对象都有唯一的 `ObjectID`(32 字节)
- 对象具有 `version`,在变更时递增
- 拥有对象(owned object)的交易不需要共识(快速路径)

### Transaction Types

| Type | Consensus | Speed | Use Case |
|------|-----------|-------|----------|
| Owned Object | No (fast path) | ~200ms | Transfers, simple ops |
| Shared Object | Yes (Mysticeti) | ~390ms | DEX, auctions, games |

### SUI Token

- **Ticker**:SUI
- **Total Supply**:100 亿 SUI
- **Uses**:Gas 费、质押、治理
- **Smallest Unit**:MIST(1 SUI = 10^9 MIST)

### Gas Model

- Gas 价格以每计算单元的 MIST 计
- 存储退款:删除对象时返还 gas
- 赞助交易:由第三方支付 gas

### Validators & Staking

- 委托权益证明(DPoS)
- 约 100+ 个活跃验证器
- 向验证器质押 SUI 以赚取奖励
- 纪元(Epoch):约 24 小时

### Consensus: Mysticeti

- 基于 DAG 的共识协议
- 对共享对象实现亚秒级最终性
- 取代了 Narwhal/Bullshark(先前使用)

## Sui vs Other Chains

| Feature | Sui | Ethereum | Solana |
|---------|-----|----------|--------|
| Model | Object-centric | Account-based | Account-based |
| Language | Move | Solidity | Rust |
| TPS | 100k+ | ~15 | ~65k |
| Finality | <1s | ~12min | ~400ms |
| Parallel Exec | Yes (objects) | Limited | Yes |

## Ecosystem

### Wallets
- Sui Wallet(官方)
- Suiet
- Ethos
- Martian

### DEXs
- Cetus
- Turbos
- DeepBook(订单簿)

### NFT Marketplaces
- BlueMove
- Clutchy
- Hyperspace

### Developer Tools
- Sui CLI
- Sui Explorer
- Move Analyzer (VSCode)

## Common Questions

### "Is Sui EVM compatible?"
不兼容。Sui 使用 Move,而非 EVM。不过存在桥接,可从 EVM 链转移资产。

### "How fast is Sui?"
- 拥有对象交易:约 200ms
- 共享对象交易:约 390ms
- 理论 TPS:100,000+

### "How do I stake SUI?"
1. 打开 Sui Wallet
2. 进入 Staking 标签页
3. 选择一个验证器
4. 输入金额并确认

### "What's the difference between Sui Move and Aptos Move?"
- Sui 使用以对象为中心的存储
- 不同的标准库
- Sui 拥有原生的对象原语
- Move 2024 中存在一些语法差异

## Answering Workflow

1. **Identify the question type**:
   - 通用知识 → 从此技能作答
   - Move 编程 → 参考 sui-move 技能
   - 特定 API/代码 → 搜索 references

2. **Search if needed**:
   ```bash
   rg -i "question keywords" {baseDir}/references/
   ```

3. **Provide clear answer**,包含:
   - 先给出直接答案
   - 补充细节
   - 如相关则附上官方文档链接

## Official Resources

- Website: https://sui.io
- Docs: https://docs.sui.io
- GitHub: https://github.com/MystenLabs/sui
- Discord: https://discord.gg/sui
- Twitter: @SuiNetwork