Xian blockchain Python smart contract Cursor rules
This rule file teaches Cursor how to write smart contracts for the Xian blockchain, whose currency is XIAN. It is for developers on Xian who want contracts in native Python that pass the chain's naming and structure rules the first time.
What it does
Contracts are plain Python without transpilation. Names must match con_ followed by lowercase letters, digits or underscores, up to 64 characters, except system contracts like currency. Variables and functions cannot start with an underscore, and one contract cannot deploy another. @export marks public functions and @construct an optional one-time initializer.
How to use it
The rule applies to all files in the contracts project.
Requirements and limits
It tells Cursor never to mention TAU or Lamden, and it covers Xian only.
More in Rules and the Cursor library.
What it covers
- Contract Structure
- Basic Structure
- Naming Conventions
- Function Types
- Constructor Arguments
- State Management
- Variable
- Hash
- Foreign State Access
- Context Variables
The full text is in the members library
Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.
Source and license
Author: PatrickJS, Awesome cursorrules. License: CC0-1.0.