Skip to content

Clarify smart contract Pirc2#355

Open
Tsukimarf wants to merge 6 commits intoPiNetwork:mainfrom
Tsukimarf:main
Open

Clarify smart contract Pirc2#355
Tsukimarf wants to merge 6 commits intoPiNetwork:mainfrom
Tsukimarf:main

Conversation

@Tsukimarf
Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant