OpenClaw Skill: NEAR Smart Contract Deployer
Description
## Overview
Create an OpenClaw skill that lets agents deploy and interact with NEAR smart contracts directly.
## Skill Commands
### Contract Deployment
```python
@skill.command("near_contract_deploy")
async def deploy_contract(wasm_path: str, account: str) -> dict:
"""Deploy WASM contract to NEAR"""
@skill.command("near_contract_init")
async def initialize_contract(account: str, method: str, args: dict) -> dict:
"""Initialize deployed contract"""
```
### Contract Interaction
```python
@skill.command("near_contract_call")
async def call_contract(contract: str, method: str, args: dict, deposit: str = "0") -> dict:
"""Call a contract method (state-changing)"""
@skill.command("near_contract_view")
async def view_contract(contract: str, method: str, args: dict = {}) -> dict:
"""Call a view method (read-only)"""
```
### Contract Management
```python
@skill.command("near_contract_upgrade")
async def upgrade_contract(account: str, new_wasm: str) -> dict:
"""Upgrade contract to new code"""
@skill.command("near_contract_state")
async def get_state(contract: str) -> dict:
"""Read raw contract state"""
```
## Deliverables
1. **Contract deployment skill**
2. **WASM handling**
3. **State management**
4. **Published to MoltHub**
## Budget: 10 NEAR