Skip to content

Commit 989abf4

Browse files
chore: refactor naming references to Utility-Protocol and Utility-contracts
1 parent a2f1dfd commit 989abf4

28 files changed

Lines changed: 73 additions & 73 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: IoT-Billing-Service CI
1+
name: Utility-Protocol CI
22

33
on:
44
push:

AUDIT_READY_RUNBOOK.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Audit-Ready Runbook — IoT-Billing-Service Contracts
1+
# Audit-Ready Runbook — Utility-Protocol Contracts
22

33
**Contract ID (Testnet):** `CB7PSJZALNWNX7NLOAM6LOEL4OJZMFPQZJMIYO522ZSACYWXTZIDEDSS`
44
**Network:** Stellar Testnet — replace `--network testnet` with `--network mainnet` for production
@@ -36,7 +36,7 @@
3636

3737
## 1. Executive Summary
3838

39-
The IoT-Billing-Service Contracts platform provides a decentralized utility streaming protocol with comprehensive security measures including:
39+
The Utility-Protocol Contracts platform provides a decentralized utility streaming protocol with comprehensive security measures including:
4040

4141
- **Tamper-proof nonce synchronization** for IoT device liveness verification
4242
- **Time-of-Use tariff pricing** with 24-hour schedules
@@ -535,9 +535,9 @@ Level 4 (1 hour): Community, Public Relations
535535
```
536536

537537
**Emergency Channels:**
538-
- Signal Group: `iot-billing-emergency`
538+
- Signal Group: `utility-protocol-emergency`
539539
- Telegram: `@iotbilling_emergency`
540-
- PagerDuty: `iot-billing-security`
540+
- PagerDuty: `utility-protocol-security`
541541

542542
---
543543

@@ -582,7 +582,7 @@ Level 4 (1 hour): Community, Public Relations
582582

583583
## Conclusion
584584

585-
This runbook provides comprehensive procedures for managing the IoT-Billing-Service Contracts platform with the new security improvements implemented in Issues #260-263. The platform is now audit-ready with enterprise-grade documentation, comprehensive security measures, and operational procedures that meet the highest standards for decentralized utility management.
585+
This runbook provides comprehensive procedures for managing the Utility-Protocol Contracts platform with the new security improvements implemented in Issues #260-263. The platform is now audit-ready with enterprise-grade documentation, comprehensive security measures, and operational procedures that meet the highest standards for decentralized utility management.
586586

587587
**Next Steps:**
588588
1. Schedule external security audit with Zealynx

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Contributing to Billing-contracts
1+
# Contributing to Utility-contracts
22

3-
Welcome to the Billing-contracts project! This guide will help you contribute effectively, whether you're working on hardware (C++/Arduino) or smart contracts (Soroban/Rust).
3+
Welcome to the Utility-contracts project! This guide will help you contribute effectively, whether you're working on hardware (C++/Arduino) or smart contracts (Soroban/Rust).
44

55
## Project Overview
66

7-
Billing-contracts is a utility billing system built on Stellar that allows:
7+
Utility-contracts is a utility billing system built on Stellar that allows:
88
- Individual meter billing and management
99
- Group billing for property managers
1010
- Real-time balance monitoring
@@ -156,8 +156,8 @@ make test
156156

157157
### 1. Fork and Clone
158158
```bash
159-
git clone https://github.com/your-username/Billing-contracts.git
160-
cd Billing-contracts
159+
git clone https://github.com/your-username/Utility-contracts.git
160+
cd Utility-contracts
161161
```
162162

163163
### 2. Create Feature Branch
@@ -263,7 +263,7 @@ Include:
263263

264264
## 📞 Get Help
265265

266-
- **Discord**: [IoT-Billing-Service Community](https://discord.gg/iotbilling)
266+
- **Discord**: [Utility-Protocol Community](https://discord.gg/iotbilling)
267267
- **GitHub Issues**: For bug reports and feature requests
268268
- **Documentation**: Check the `/docs` directory
269269
- **Examples**: See `/examples` directory
@@ -274,4 +274,4 @@ By contributing, you agree that your contributions will be licensed under the sa
274274

275275
---
276276

277-
Thank you for contributing to Billing-contracts! 🎉
277+
Thank you for contributing to Utility-contracts! 🎉

EMERGENCY_RUNBOOK.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Emergency Runbook — IoT-Billing-Service Contracts
1+
# Emergency Runbook — Utility-Protocol Contracts
22

33
**Contract ID (Testnet):** `CB7PSJZALNWNX7NLOAM6LOEL4OJZMFPQZJMIYO522ZSACYWXTZIDEDSS`
44
**Network:** Stellar Testnet — replace `--network testnet` with `--network mainnet` for production

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# IoT-Billing-Service Contracts
1+
# Utility-Protocol Contracts
22

33
Soroban smart contracts for a decentralized utility metering and streaming protocol on Stellar. Supports prepaid/postpaid billing, continuous streaming, variable-rate tariffs, gas buffers, ZK-SNARK sensor privacy, multi-sig governance, and emergency response.
44

@@ -19,7 +19,7 @@ Soroban smart contracts for a decentralized utility metering and streaming proto
1919
## Project Structure
2020

2121
```
22-
Billing-contracts/
22+
Utility-contracts/
2323
├── contracts/
2424
│ ├── Cargo.toml # Workspace root
2525
│ ├── utility_contracts/ # Main contract

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Reporting a Vulnerability
44

55
Please report security vulnerabilities by opening a **private** GitHub Security Advisory at:
6-
`https://github.com/IoT-Billing-Service/Billing-contracts/security/advisories/new`
6+
`https://github.com/Utility-Protocol/Utility-contracts/security/advisories/new`
77

88
Do **not** open a public issue for security-sensitive findings.
99

contracts/utility_contracts/src/ERRORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# IoT-Billing-Service Contract - Error Codes
1+
# Utility-Protocol Contract - Error Codes
22

33
This document provides a mapping of on-chain error codes to user-friendly explanations and suggested actions. When a transaction fails, the frontend can use this guide to display a helpful message instead of a raw error.
44

contracts/utility_contracts/src/Multi_Sig.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub fn validate_invariants(env: &Env, account: Address) {
8080

8181

8282
// --- Grant Stream Listener Contract ---
83-
// This contract listens for GoalReached events from IoT-Billing-Service and processes grant matches
83+
// This contract listens for GoalReached events from Utility-Protocol and processes grant matches
8484

8585
#[contracttype]
8686
#[derive(Clone)]
@@ -128,8 +128,8 @@ pub enum GrantError {
128128
Unauthorized = 7,
129129
}
130130

131-
#[contractclient(name = "IoTBillingServiceClient")]
132-
pub trait IoTBillingService {
131+
#[contractclient(name = "UtilityProtocolClient")]
132+
pub trait UtilityProtocol {
133133
fn get_conservation_goal(env: Env, goal_id: u64) -> super::ConservationGoal;
134134
}
135135

@@ -161,7 +161,7 @@ impl GrantStreamListener {
161161
);
162162
}
163163

164-
/// Called by IoT-Billing-Service when a conservation goal is reached
164+
/// Called by Utility-Protocol when a conservation goal is reached
165165
pub fn on_goal_reached(env: Env, goal_event: super::GoalReachedEvent) {
166166
let config: GrantConfig = env.storage()
167167
.instance()

contracts/utility_contracts/src/grant_stream_listener.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use soroban_sdk::{
66
};
77

88
// --- Grant Stream Listener Contract ---
9-
// This contract listens for GoalReached events from IoT-Billing-Service and processes grant matches
9+
// This contract listens for GoalReached events from Utility-Protocol and processes grant matches
1010

1111
#[contracttype]
1212
#[derive(Clone)]
@@ -89,7 +89,7 @@ impl GrantStreamListener {
8989
.publish((symbol_short!("GrantInit"),), (admin, treasury));
9090
}
9191

92-
/// Called by IoT-Billing-Service when a conservation goal is reached
92+
/// Called by Utility-Protocol when a conservation goal is reached
9393
pub fn on_goal_reached(
9494
env: Env,
9595
billing_contract: Address,

docs/BLOCK_EXPLORER_GUIDE.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This guide shows users how to verify their utility consumption data ("Usage Drip
44

55
## Overview
66

7-
The IoT-Billing-Service smart contract records all usage data on the Stellar blockchain, providing:
7+
The Utility-Protocol smart contract records all usage data on the Stellar blockchain, providing:
88
-**Transparency** - All consumption data is publicly verifiable
99
-**Immutability** - Data cannot be altered once recorded
1010
-**Audit Trail** - Complete history of all transactions
@@ -120,13 +120,13 @@ You'll see all transactions involving your account:
120120

121121
#### Step 3: Filter by Contract
122122

123-
Filter transactions to show only those interacting with the IoT-Billing-Service contract.
123+
Filter transactions to show only those interacting with the Utility-Protocol contract.
124124

125125
---
126126

127127
## Understanding Contract Events
128128

129-
The IoT-Billing-Service contract emits several event types that you can track:
129+
The Utility-Protocol contract emits several event types that you can track:
130130

131131
### 1. UsageReported Event
132132

@@ -291,7 +291,7 @@ Peak hour example:
291291

292292
**Steps:**
293293
1. Search your provider address
294-
2. Filter transactions to IoT-Billing-Service contract
294+
2. Filter transactions to Utility-Protocol contract
295295
3. Look for `withdraw_earnings` operations
296296
4. Check amounts and timestamps
297297
5. Verify against your records
@@ -528,7 +528,7 @@ Example tools:
528528
- [Stellar Expert Documentation](https://stellar.expert/help)
529529
- [Stellar Developer Documentation](https://developers.stellar.org/)
530530
- [Soroban Documentation](https://soroban.stellar.org/)
531-
- [IoT-Billing-Service Contract Documentation](../README.md)
531+
- [Utility-Protocol Contract Documentation](../README.md)
532532

533533
---
534534

0 commit comments

Comments
 (0)