搜索

PythonReactSEOPDF
OpenClaw

omp-memory

OpenClaw Memory Protocol (OMP) — store and retrieve encrypted files on BSC blockchain with PoW mining rewards. Use when user wants to store files on-chain, retrieve stored files, check MMP token balance, manage storage rent, or interact with the OMP protocol on BSC mainnet.

brettinhere0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install brettinhere/omp-memory

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

OMP Memory Protocol

On-chain encrypted file storage on BSC. Files are split into 256KB chunks, Merkle-hashed, and stored with rent-based expiry. Miners earn MMP tokens for hosting data.

Setup (first time)

# 1. Install dependencies
cd ~/.omp-client && npm install

# 2. Create encrypted wallet
node bin/cli.js init
# → saves wallet to ~/.omp/wallet.json

# 3. Check MMP balance / get top-up info
node bin/cli.js topup

Key Commands

Store a file
node bin/cli.js save <file> [--rent <blocks>]
# --rent default: 201600 (~7 days). 0 = free tier (≤10KB, permanent)
# Returns: merkleRoot (save this — needed to retrieve the file)
Retrieve a file
node bin/cli.js load <merkleRoot> <outFile>
Check status
node bin/cli.js status              # network overview
node bin/cli.js status <merkleRoot> # specific tree info
Grant/revoke access
node bin/cli.js grant <merkleRoot> <address>
node bin/cli.js revoke <merkleRoot> <address>
Renew rent
node bin/cli.js renew <merkleRoot> [--blocks <n>]

Contract Addresses (BSC Mainnet)

Contract Address
MemoryProtocol Proxy 0x3BD7945d18FE6B68D273109902616BF17eb40F44
MMPToken 0x30b8Bf35679E024331C813Be4bDfDB784E8E9a1E

Environment Variables (.env)

PROTOCOL_ADDRESS=0x3BD7945d18FE6B68D273109902616BF17eb40F44
MMP_TOKEN_ADDRESS=0x30b8Bf35679E024331C813Be4bDfDB784E8E9a1E
BSC_RPC=https://bsc-dataseed.binance.org/
WALLET_PASSWORD=<your-password>

Install Script

Run scripts/install.sh to auto-install the CLI from the OMP repo.

Notes

  • Free tier: ≤10KB per address, one permanent slot (no MMP needed)
  • Paid tier: costs MMP tokens based on size × rent duration
  • EPOCH_BLOCKS = 1000 (~50 min): miners have a 50-minute window per mining epoch
  • renounceUpgradeability() — owner (0x571d447f4f24688eC35Ccf07f1D6993655F6aF15) can call once to permanently lock the contract

来源信息

Source
github
Repository
openclaw/skills
Path
skills/brettinhere/omp-memory
Version
—
Commit
78e7994440efa7f0f815bbd8672efef8e9814030
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# OMP Memory Protocol

On-chain encrypted file storage on BSC. Files are split into 256KB chunks, Merkle-hashed, and stored with rent-based expiry. Miners earn MMP tokens for hosting data.

## Setup (first time)

```bash
# 1. Install dependencies
cd ~/.omp-client && npm install

# 2. Create encrypted wallet
node bin/cli.js init
# → saves wallet to ~/.omp/wallet.json

# 3. Check MMP balance / get top-up info
node bin/cli.js topup
```

## Key Commands

### Store a file
```bash
node bin/cli.js save <file> [--rent <blocks>]
# --rent default: 201600 (~7 days). 0 = free tier (≤10KB, permanent)
# Returns: merkleRoot (save this — needed to retrieve the file)
```

### Retrieve a file
```bash
node bin/cli.js load <merkleRoot> <outFile>
```

### Check status
```bash
node bin/cli.js status              # network overview
node bin/cli.js status <merkleRoot> # specific tree info
```

### Grant/revoke access
```bash
node bin/cli.js grant <merkleRoot> <address>
node bin/cli.js revoke <merkleRoot> <address>
```

### Renew rent
```bash
node bin/cli.js renew <merkleRoot> [--blocks <n>]
```

## Contract Addresses (BSC Mainnet)

| Contract | Address |
|----------|---------|
| MemoryProtocol Proxy | `0x3BD7945d18FE6B68D273109902616BF17eb40F44` |
| MMPToken | `0x30b8Bf35679E024331C813Be4bDfDB784E8E9a1E` |

## Environment Variables (.env)

```
PROTOCOL_ADDRESS=0x3BD7945d18FE6B68D273109902616BF17eb40F44
MMP_TOKEN_ADDRESS=0x30b8Bf35679E024331C813Be4bDfDB784E8E9a1E
BSC_RPC=https://bsc-dataseed.binance.org/
WALLET_PASSWORD=<your-password>
```

## Install Script

Run `scripts/install.sh` to auto-install the CLI from the OMP repo.

## Notes

- Free tier: ≤10KB per address, one permanent slot (no MMP needed)
- Paid tier: costs MMP tokens based on size × rent duration
- EPOCH_BLOCKS = 1000 (~50 min): miners have a 50-minute window per mining epoch
- `renounceUpgradeability()` — owner (`0x571d447f4f24688eC35Ccf07f1D6993655F6aF15`) can call once to permanently lock the contract

相关技能

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.