搜索

PythonReactSEOPDF
OpenClaw

credex-protocol

Access unsecured credit lines for AI agents on the Arc Network using the Credex Protocol. Use for borrowing USDC against reputation, repaying debt to grow credit limits, providing liquidity as an LP, or managing cross-chain USDC via Circle Bridge. Triggers on "borrow from credex", "repay debt", "deposit to pool", "check credit status", "provide liquidity", or any credit/lending task on Arc.

capgoblin0 来源安装数☆ 0 仓库 Stars

安装与使用

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

SkillHub CLI

skillhub install capgoblin/credex-protocol

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

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

查看来源 ↗使用指南

技能说明

Credex Protocol Skill

Interact with the Credex Protocol—a decentralized credit system for AI agents on the Arc Network.


Usage

Base Directory: {baseDir} (the directory containing this SKILL.md)

Run all commands from the project root:

cd {baseDir}
npx ts-node scripts/client.ts <command> [args]   # Borrower commands
npx ts-node scripts/lp.ts <command> [args]       # LP commands

Output Format: All scripts return JSON for machine readability. Parse the output to extract fields like creditLimit, txHash, debt, etc.


Environment Variables

Required (Must Be Set)
Variable Description
WALLET_PRIVATE_KEY Private key for signing transactions. Without this, all commands fail.
RPC_URL Arc Network RPC. Default: https://rpc.testnet.arc.network
Optional
Variable Description Default
CREDEX_POOL_ADDRESS Pool contract address 0x32239e52534c0b7e525fb37ed7b8d1912f263ad3
CREDEX_AGENT_URL Credex agent server URL http://localhost:10003

Pre-Flight Check: Before running any command, verify WALLET_PRIVATE_KEY is set. If missing, prompt the user.


Contract Addresses (Arc Testnet)

Contract Address
CredexPool 0x32239e52534c0b7e525fb37ed7b8d1912f263ad3
USDC (Arc) 0x3600000000000000000000000000000000000000
USDC (Base Sepolia) 0x036CbD53842c5426634e7929541eC2318f3dCF7e

Client Commands (Borro...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/capgoblin/credex-protocol
Version
—
Commit
968b6eb7c9029b0023740cb5d4d46007e23aa0d9
分类来源
rules
状态
active
可见性
public

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

README

Credex Protocol Skill

OpenClaw skill for interacting with the Credex Protocol—unsecured credit lines for AI agents on Arc Network.

Features

  • Borrower Commands: Check credit status, borrow USDC, repay debt
  • LP Commands: Deposit liquidity, withdraw with yield, check pool metrics
  • Cross-Chain: Bridge USDC between Arc and Base via Circle Bridge

Installation

The skill is automatically installed when placed in ~/.openclaw/workspace/skills/credex-protocol/.

Quick Start

Setup Environment
export WALLET_PRIVATE_KEY=0x...
export CREDEX_POOL_ADDRESS=0x60C04c09ee252C4e99C1B56580F7A0D3c65a3b36
export RPC_URL=https://rpc.testnet.arc.network
Borrower (Client)
# Check your credit status
npx ts-node scripts/client.ts status

# Borrow 5 USDC
npx ts-node scripts/client.ts borrow 5

# Repay all debt
npx ts-node scripts/client.ts repay all

# Bridge to Base
npx ts-node scripts/client.ts bridge 10 arc base
Liquidity Provider (LP)
# Check pool status
npx ts-node scripts/lp.ts pool-status

# Deposit 100 USDC
npx ts-node scripts/lp.ts deposit 100

# Withdraw all shares
npx ts-node scripts/lp.ts withdraw all

Files

credex-protocol/
├── SKILL.md              # Main skill documentation
├── README.md             # This file
├── scripts/
│   ├── client.ts         # Borrower CLI
│   └── lp.ts             # LP CLI
└── references/
    └── contracts.md      # ABIs and contract info

Dependencies

  • ethers (v6)
  • @circle-fin/bridge-kit
  • @circle-fin/adapter-viem-v2
  • tsx or ts-node

Networks

  • Arc Testnet: Chain ID 1328
  • Base Sepolia: Chain ID 84532

License

MIT

来源内容

SKILL.md
# Credex Protocol Skill

Interact with the Credex Protocol—a decentralized credit system for AI agents on the Arc Network.

---

## Usage

**Base Directory:** `{baseDir}` (the directory containing this SKILL.md)

**Run all commands from the project root:**

```bash
cd {baseDir}
npx ts-node scripts/client.ts <command> [args]   # Borrower commands
npx ts-node scripts/lp.ts <command> [args]       # LP commands
```

**Output Format:** All scripts return **JSON** for machine readability. Parse the output to extract fields like `creditLimit`, `txHash`, `debt`, etc.

---

## Environment Variables

### Required (Must Be Set)

| Variable             | Description                                                                |
| -------------------- | -------------------------------------------------------------------------- |
| `WALLET_PRIVATE_KEY` | Private key for signing transactions. **Without this, all commands fail.** |
| `RPC_URL`            | Arc Network RPC. Default: `https://rpc.testnet.arc.network`                |

### Optional

| Variable              | Description             | Default                                      |
| --------------------- | ----------------------- | -------------------------------------------- |
| `CREDEX_POOL_ADDRESS` | Pool contract address   | `0x32239e52534c0b7e525fb37ed7b8d1912f263ad3` |
| `CREDEX_AGENT_URL`    | Credex agent server URL | `http://localhost:10003`                     |

**Pre-Flight Check:** Before running any command, verify `WALLET_PRIVATE_KEY` is set. If missing, prompt the user.

---

## Contract Addresses (Arc Testnet)

| Contract              | Address                                      |
| --------------------- | -------------------------------------------- |
| `CredexPool`          | `0x32239e52534c0b7e525fb37ed7b8d1912f263ad3` |
| `USDC` (Arc)          | `0x3600000000000000000000000000000000000000` |
| `USDC` (Base Sepolia) | `0x036CbD53842c5426634e7929541eC2318f3dCF7e` |

---

## Client Commands (Borro...
README
# Credex Protocol Skill

OpenClaw skill for interacting with the Credex Protocol—unsecured credit lines for AI agents on Arc Network.

## Features

- **Borrower Commands**: Check credit status, borrow USDC, repay debt
- **LP Commands**: Deposit liquidity, withdraw with yield, check pool metrics
- **Cross-Chain**: Bridge USDC between Arc and Base via Circle Bridge

## Installation

The skill is automatically installed when placed in `~/.openclaw/workspace/skills/credex-protocol/`.

## Quick Start

### Setup Environment

```bash
export WALLET_PRIVATE_KEY=0x...
export CREDEX_POOL_ADDRESS=0x60C04c09ee252C4e99C1B56580F7A0D3c65a3b36
export RPC_URL=https://rpc.testnet.arc.network
```

### Borrower (Client)

```bash
# Check your credit status
npx ts-node scripts/client.ts status

# Borrow 5 USDC
npx ts-node scripts/client.ts borrow 5

# Repay all debt
npx ts-node scripts/client.ts repay all

# Bridge to Base
npx ts-node scripts/client.ts bridge 10 arc base
```

### Liquidity Provider (LP)

```bash
# Check pool status
npx ts-node scripts/lp.ts pool-status

# Deposit 100 USDC
npx ts-node scripts/lp.ts deposit 100

# Withdraw all shares
npx ts-node scripts/lp.ts withdraw all
```

## Files

```
credex-protocol/
├── SKILL.md              # Main skill documentation
├── README.md             # This file
├── scripts/
│   ├── client.ts         # Borrower CLI
│   └── lp.ts             # LP CLI
└── references/
    └── contracts.md      # ABIs and contract info
```

## Dependencies

- `ethers` (v6)
- `@circle-fin/bridge-kit`
- `@circle-fin/adapter-viem-v2`
- `tsx` or `ts-node`

## Networks

- **Arc Testnet**: Chain ID 1328
- **Base Sepolia**: Chain ID 84532

## License

MIT

相关技能

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

139mail

chang-tong

139邮箱邮件收发 Skill - 支持 IMAP/SMTP 协议,兼容139/QQ/163/Gmail等主流邮箱 功能: 1. 发送邮件(SMTP) 2. 接收邮件(IMAP) 3. 查看收件箱列表 4. 查看未读邮件 当用户提到 "发邮件"、"收邮件"、"查看邮件"、"邮箱"...