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

Support Arbitrary Shards & Realms #902

Open
RickyLB opened this issue Feb 18, 2025 · 0 comments
Open

Support Arbitrary Shards & Realms #902

RickyLB opened this issue Feb 18, 2025 · 0 comments
Milestone

Comments

@RickyLB
Copy link
Contributor

RickyLB commented Feb 18, 2025

Description

The SDKs must support non-zero realm numbers in entity IDs (such as 0.100.0) since Spheres will populate realm values.

We need to validate the SDKs support the following:

  • Specifying a realm number during entity ID construction
  • Using entity IDs with specified realm numbers in transactions
  • Eliminating code that assumes zero for shards and realms

Updated APIs

Several APIs currently offered by the SDKs do not offer support for setting the shard and realm of an entity even though the protobufs do. This will need to be updated to allow the protobuf values to be filled out.

ContractCreateTransaction

  • i64 shard: The shard in which to create the new contract.
    • ContractCreateTransaction .shard(i64)
    • i64 .shard
  • i64 realm: The realm in which to create the new contract.
    • ContractCreateTransaction .realm(i64)
    • i64 .realm

FileCreateTransaction

  • i64 shard: The shard in which to create the new file.

    • FileCreateTransaction .shard(i64)
    • i64 .shard
  • Int64 realm: The realm in which to create the new file.

    • FileCreateTransaction .realm(i64)
    • i64 .realm

AccountCreateTransaction

  • i64 shard: The shard in which to create the new account.

    • AccountCreateTransaction .shard(i64)
    • i64 .shard
  • i64 realm: The realm in which to create the new account.

    • AccountCreateTransaction .realm(i64)
    • i64 .realm
@rwalworth rwalworth added this to the v0.33.0 milestone Feb 18, 2025
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

No branches or pull requests

2 participants