Repository navigation
Conversation
Logo blockchain PI to exchange crypto this new browser
|
|
f3234598e881509fb8e0a6cebdac51e9cc593f86db835bdb4d0c81c778bb6500 |
|
Martinnjosh55 |
Logo blockchain PI to exchange crypto this new browser
|
|
f3234598e881509fb8e0a6cebdac51e9cc593f86db835bdb4d0c81c778bb6500 |
|
Martinnjosh55 |
Summary
This PR proposes revisions to the PiRC2 Subscription Contract API specification to improve clarity, consistency, and completeness of the smart contract definitions.
Changes
Updated and clarified smart contract spec sections for accuracy and readability
Improved descriptions of contract behaviors, parameters, and expected outputs
Ensured alignment between spec sections (data types, error codes, lifecycle methods)
Motivation
The existing PiRC2 spec contains areas where the contract behavior is ambiguous or underspecified, which could lead to inconsistent implementations by developers building on Pi Network. These changes aim to reduce ambiguity and make the spec easier to follow.
Related Sections
3-data-types
4-error-codes
5-constructor-and-service-management
6-subscription-lifecycle
Testing / Verification
Reviewed against the Soroban smart contract model and cross-referenced with existing PiRC2 sections for internal consistency.