@lawrenceliang-btc/atel-sdk 1.1.42 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/bin/atel.mjs +1625 -144
- package/dist/bitrefill/client.d.ts +6 -0
- package/dist/bitrefill/client.js +45 -0
- package/dist/bitrefill/index.d.ts +32 -0
- package/dist/bitrefill/index.js +88 -0
- package/dist/bitrefill/types.d.ts +62 -0
- package/dist/bitrefill/types.js +30 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/package.json +2 -2
- package/skill/atel-agent/SKILL.md +228 -17
- package/skill/atel-agent/setup.sh +85 -29
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@ ATEL provides the cryptographic primitives and protocol building blocks that ena
|
|
|
14
14
|
- **📊 Trust Scoring** — Local trust computation based on execution history
|
|
15
15
|
- **🔔 Notification & Callback Runtime** — Local notify, callback, inbox, and recovery flow
|
|
16
16
|
- **👥 P2P Access Control** — Relationship-based friend system with temporary sessions
|
|
17
|
+
- **🎁 Bitrefill A2B Board** — single-command gift cards / phone top-up / eSIM / subscription refill, AVIP-anchored on Base
|
|
17
18
|
|
|
18
19
|
## Key Features
|
|
19
20
|
|
|
@@ -26,6 +27,29 @@ ATEL provides the cryptographic primitives and protocol building blocks that ena
|
|
|
26
27
|
- `BSC`
|
|
27
28
|
- For paid orders, the chain truth source is always `order.chain`
|
|
28
29
|
|
|
30
|
+
### Bitrefill A2B Board
|
|
31
|
+
|
|
32
|
+
Buy gift cards, top up phones, buy eSIMs, or refill subscriptions from Bitrefill with a single CLI command. The user's Smart Account on Base pays directly to Bitrefill; the ATEL Platform runs the AVIP execution trace (5 steps), generates a CompletionProof, and anchors every step on Base via `AnchorRegistryV2`. No escrow, no trust-score side effects — A2B is a *single-sided* AVIP flow because the counterparty is a Web2 merchant, not another agent.
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Setup (once): BITREFILL_API_KEY lives only in ATEL Platform; users need nothing.
|
|
36
|
+
export ATEL_USER_SMART_ACCOUNT=0x... # user's Smart Account on Base
|
|
37
|
+
atel init my-agent
|
|
38
|
+
atel balance base # confirm USDC >= 0.50
|
|
39
|
+
|
|
40
|
+
# Use it:
|
|
41
|
+
atel bitrefill buy --brand "Amazon US" --amount 10 --description "buy me a $10 Amazon card"
|
|
42
|
+
atel bitrefill topup --brand "T-Mobile US" --amount 20 --phone "+14155550100" --description "..."
|
|
43
|
+
atel bitrefill esim --brand "Airalo US" --amount 10 --description "..."
|
|
44
|
+
atel bitrefill refill --brand "Netflix US" --amount 15 --description "..."
|
|
45
|
+
|
|
46
|
+
atel bitrefill search "Amazon" --country US
|
|
47
|
+
atel bitrefill status <orderId>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
A successful call returns the `redemption` object (code / link / pin / instructions),
|
|
51
|
+
the `paymentTxHash` on Base, the `auditUrl` pointing at the CompletionProof (Intent + 5 traces all anchored), and before/after USDC balances. The LLM trigger rules live in `skill/atel-agent/SKILL.md`.
|
|
52
|
+
|
|
29
53
|
### P2P Friend System
|
|
30
54
|
- Relationship-based access control (friends-only mode)
|
|
31
55
|
- Friend request workflow with approval
|