SDK - Breaking changes coming soon for Secret NFT and Capsule NFT. (Not yet available) #175
Replies: 3 comments
-
Dear builders, As explained before, the TEE/SGX pallet and environment are improving! Both the secret NFT and Capsule NFT pallets are impacted. If you intend to create either some Secret NFT or Capsule NFT on Alphanet, the release candidate package version 1.6.0-rc0 must be installed: You can find the changelog here. The new TEE/SGX pallet and environment base code are not yet available on the Mainnet. If you do not use any of the Secret NFT or Caspule NFT privacy features, you can still go with the latest stable package version (1.5.3) or start using this one to avoid any changes later. While the new code is being tested on Alphanet, we will soon provide you with the Mainnet release schedule! Again, feel free to ask any question either here or on our discord. Have fun building ⚡️ |
Beta Was this translation helpful? Give feedback.
-
Dear builders, The expected release of the new TEE/SGX pallet and environment code is expected between today, the 11th, and the 15th of September. As a reminder, if you are interacting or intend to interact with our Secret NFT or Capsule NFT, you will need to install this last version to handle the breaking changes. Feel free to ask any question either here or on our discord. Have fun building ⚡️ |
Beta Was this translation helpful? Give feedback.
-
Dear builders, Due to external requirements, the release of the new TEE/SGX pallet and environment code is expected from the 3rd of October. The extra time will be profitable to test the coming breaking change release on alphanet before moving to the mainnet. Feel free to let us know if you have any questions. Thanks for your understanding, |
Beta Was this translation helpful? Give feedback.
-
Dear builders,
A new version of the SDK is about to be released in the coming days to handle the new TEE/SGX changes for both Secrets and Capsules NFT. ✋ Those changes will require you to upgrade the ternoa-js package to the soon-to-be-released @1.6.0-rc0 version. ✋
In case you already want to look at the changes, an alpha version of the package is in developement:
Extract of the next changelog & the breaking changes (4):
TEE Pallet Helpers in src/helpers/tee.ts
teeUpload()
renamed to =>teePost()
getClusterData()
now returns both the enclave operator address and enclave slot, alongside with clusterType ("Disabled" | "Admin" | "Public" | "Private")(ClusterDataType updated according to new response format).
From:
{
enclaves: string[ ]
}
==> To:
{
enclaves: [string, number][ ]
clusterType: "Disabled" | "Admin" | "Public" | "Private"
}
JSON Response example:
{
enclaves: [
[ 5CcqaTBwW...pPVT3Xf8v7tC, 0]
[ 5G1AGcU2...KGmhyV9DrzFs, 1]
...
]
clusterType: Public
}
teeKeySharesStore()
now also return enclaveAddress, enclaveSlot, and operatorAddress(TeeSharesStoreType updated according to new response format).
getEnclaveHealthStatus()
now also return block_number, sync_state, version. Date is not anymore returned. The status returned is now HTTP status. sync_state when the status is 200, which can be either a block "number", an empty string, or a "setup".(EnclaveHealthType updated according to the corresponding response retrurned by enclave health check).
The breaking changes are nothing to worry about, however, feel free to ask any question below.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions