Native Features
TOS Network provides powerful features at the protocol level rather than as smart contracts. This means:
- Lower gas costs - No contract overhead
- Better performance - Optimized native code
- Higher security - Audited core implementation
- Simpler integration - Standard syscall interface
Feature Status
| Feature | Status | Priority | Description |
|---|---|---|---|
| Referral System | Implemented | P0 | Multi-level relationship tracking |
| Batch Transfer | Implemented | P0 | Up to 500 recipients per transaction |
| VRF Randomness | Implemented | P0 | Verifiable random numbers |
| A2A Protocol | Implemented | P0 | Agent-to-Agent communication |
| TOS Name Service | Implemented | P0 | Human-readable account names |
| Compliance & KYC | Implemented | P0 | Protocol-level identity verification |
| Privacy Transfer | Implemented | P1 | Encrypted balances and transfers |
| Scheduled Tasks | Implemented | P1 | Time-triggered contract execution |
| MEV Protection | Partial | P1 | Front-running prevention |
| Native NFT | Implemented | P2 | Protocol-level NFT support |
| Token Economics | Implemented | P0 | TOS tokenomics and distribution |
| DeFi Ecosystem | Partial | P1 | Complete DeFi infrastructure |
| Arbitration System | Planned | P2 | Dispute resolution for escrows |
| Atomic Swap | Planned | P2 | Cross-chain atomic exchanges |
| Cross-Chain Bridge | Planned | P3 | Bridge to other blockchains |
Implemented Features
Referral System
Track multi-level relationships with 7+ syscalls
Batch TransferSend to 500 recipients in one transaction
VRF RandomnessProvably fair random numbers at $0.01
A2A ProtocolAgent-to-Agent communication with on-chain settlement
TOS Name Service (TNS)Human-readable names like [email protected]
Compliance & KYCProtocol-level identity verification system
Privacy Transfer (UNO)Optional encrypted transfers with ZK proofs
Scheduled TasksTime-triggered contract execution
MEV ProtectionDefense against front-running attacks
Native NFTProtocol-level NFT with 30+ syscalls
DeFi EcosystemComplete DeFi infrastructure with AI Oracle
Token EconomicsTOS tokenomics and distribution model
How Native Features Work
Native features are accessed through syscalls - special functions that smart contracts can call to interact with protocol-level capabilities.
Example: Using Referral Syscalls
use tako_sdk::*;
#[no_mangle]
pub extern "C" fn distribute_rewards() {
let buyer = get_tx_sender();
let amount = get_call_value();
// Native syscall: get 3 levels of uplines
let (uplines, count) = get_uplines(&buyer, 3).unwrap();
// Distribute rewards
let rates = [1000u64, 500, 300]; // 10%, 5%, 3%
for i in 0..(count as usize).min(3) {
let reward = amount * rates[i] / 10000;
if reward > 0 {
transfer(&uplines[i], reward).ok();
}
}
}Example: Using VRF Randomness
use tako_sdk::*;
fn roll_dice() -> u8 {
let seed = get_block_hash();
// Native syscall: generate VRF random
let output = vrf_random(&seed).expect("VRF failed");
// Map to dice value 1-6
(output.random[0] % 6) + 1
}Cost Comparison
Native features are significantly cheaper than smart contract implementations:
| Operation | Native (TOS) | Smart Contract (TRON) | Savings |
|---|---|---|---|
| Bind referrer | $0.01 | $0.50 | 98% |
| Query 10 uplines | $0.001 | $0.10 | 99% |
| VRF random | $0.01 | $0.25 (Chainlink) | 96% |
| 100-recipient batch | $0.05 | $10.00 | 99.5% |
| Private transfer | $0.02 | N/A | - |
Architecture
┌─────────────────────────────────────────────────────┐
│ Smart Contracts │
│ (TAKO Runtime) │
└───────────────────────┬─────────────────────────────┘
│ syscalls
┌───────────────────────┴─────────────────────────────┐
│ Native Features │
│ ┌─────────┬─────────┬─────────┬─────────────────┐ │
│ │Referral │ VRF │ Privacy │ Scheduled Tasks │ │
│ │ System │ Random │ (UNO) │ │ │
│ └─────────┴─────────┴─────────┴─────────────────┘ │
└───────────────────────┬─────────────────────────────┘
│
┌───────────────────────┴─────────────────────────────┐
│ TOS Blockchain Core │
│ (Consensus, State, Storage) │
└─────────────────────────────────────────────────────┘Getting Started
- Choose a feature from the list above
- Read the documentation for syscall interfaces
- Use the TAKO SDK in your smart contracts
- Test on devnet before deploying to mainnet
All native features are available on testnet for development and testing.
Last updated on