LRC Standards
LP-9551
FinalLRC-6551 Token Bound Accounts
LRC-6551 Token Bound Accounts for Lux Network
Abstract
LRC-6551 (mirrors ERC-6551) enables NFTs to own assets as smart contract wallets.
Specification
Every NFT gets a deterministic smart contract account that can hold assets.
Motivation
This standard ensures compatibility with the broader EVM ecosystem while enabling Lux-specific optimizations.
Rationale
Mirrors the corresponding Ethereum standard for maximum compatibility.
Backwards Compatibility
Fully compatible with existing ERC implementations.
Reference Implementation
Repository: https://github.com/luxfi/standard
Local Path: /Users/z/work/lux/standard/
Contracts
| Contract | Description |
|---|---|
src/tokens/ERC6551Registry.sol | TBA registry (if exists) |
Interfaces
lib/openzeppelin-contracts/contracts/interfaces/IERC6551Registry.sollib/openzeppelin-contracts/contracts/interfaces/IERC6551Account.sol
Note: ERC-6551 enables NFTs to own assets. Each NFT gets a deterministic smart contract account.
Build and Test
cd /Users/z/work/lux/standard/
# Build all contracts
forge build
# Run tests
forge test -vvv
# Gas report
forge test --gas-report
Security Considerations
Implementations should follow established security best practices for the corresponding ERC.
Copyright
Copyright and related rights waived via CC0.