Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split the interface version into the protocol and pre-release versions #179

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Stellar-contract-env-meta.x
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,24 @@ namespace stellar

enum SCEnvMetaKind
{
SC_ENV_META_KIND_INTERFACE_VERSION = 0
// Env interface version (protocol version << 32 | prerelease version).
// Deprecated.
SC_ENV_META_KIND_INTERFACE_VERSION = 0,
// Env minimum protocol version that the contract will run on.
SC_ENV_META_KIND_MINIMUM_PROTOCOL_VERSION = 1,
// Env pre-release version that the contract is built against. Present for
// contracts built against pre-release builds of the env only.
SC_ENV_META_KIND_PRE_RELEASE_VERSION = 2
};

union SCEnvMetaEntry switch (SCEnvMetaKind kind)
{
case SC_ENV_META_KIND_INTERFACE_VERSION:
uint64 interfaceVersion;
case SC_ENV_META_KIND_MINIMUM_PROTOCOL_VERSION:
uint32 minProtocolVersion;
case SC_ENV_META_KIND_PRE_RELEASE_VERSION:
uint32 preReleaseVersion;
};

}
Loading