{"repo":"xian-network/xian-contracting","free":true,"listed":false,"github":"https://github.com/xian-network/xian-contracting","clone":"git clone https://github.com/xian-network/xian-contracting.git","description":"A subset of Python for developing smart contracts on the Xian Network","language":"Python","stars":198,"topics":["blockchain","python","smart-contracts","xian"],"license":null,"category":"blockchain-web3","readme_excerpt":"Xian Contracting Xian Contracting is a Python-based smart contract development and execution framework. Unlike traditional blockchain platforms like Ethereum, Xian Contracting leverages Python's VM to create a more accessible and familiar environment for developers to write smart contracts. Features - Python-Native : Write smart contracts in standard Python with some additional decorators and constructs - Storage System : Built-in ORM-like system with Variable and Hash data structures - Runtime Security : Secure execution environment with memory and computation limitations - Metering System : Built-in computation metering to prevent infinite loops and resource abuse - Event System : Built-in logging and event system for contract state changes - Import Controls : Secure import system that prevents access to dangerous system modules Installation Quick Start Here's a complete token contract example with approval system: Core Concepts Storage Types - Variable : Single-value storage - Hash : Key-value storage with support for complex and multi-level keys Contract Decorators - @construct : Initializes contract state (can only be called once) - @export : Makes function callable from outside the contract Contract Context The ctx object provides important runtime information: - ctx.caller : Address of the account calling the contract - ctx.this : Current contract's address - ctx.signer : Original transaction signer - ctx.owner : Contract owner's address Using the ContractingClient The","default_branch":null,"files":null,"tree":[],"storefront":"/r/xian-network","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xian-network/xian-contracting/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}