You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tracking issue for StarkNet v0.11.0 support. Changes are documented here but we should still expect changes and more information over the coming days / weeks.
I'll start with a broad list of what is likely required and we can expand and refine it as more information becomes available. Once something is actionable, it would be nice to split it into a separate issue which is also tracked here.
Cairo 1.0 and Sierra
Cairo 1.0 classes may now be deployed using Declare V2 transactions. We will have to store its Sierra IR representation (to hand out to users via JSON-RPC) but will also need to compile it to Cairo assembly. The latter is required to execute calls and estimate fee's in the VM.
This new transaction type will permeate everywhere - RPC, gateway, sync, storage
State commitment
The state commitment definition is changing from v0.11.0 onwards. It now includes a class hash commitment tree. Since this change takes effect from literally v0.11.0 onwards, we will need to parse the semver version of a block to calculate the state commitment hash.
A question I have - are historical classes included in this tree or is it new classes only? I imagine only Cairo v1 classes to be backwards compatible? Indeed, only Cairo v1 classes are used.
Changes are already available for preview in the PRs since the last release. We will need to investigate how we can make v0.2 compatible with the upcoming v0.3 release.
A question I have - are historical classes included in this tree or is it new classes only? I imagine only Cairo v1 classes to be backwards compatible?
This was mentioned during the meeting -- only Cairo v1 classes are added to the classes tree.
Tracking issue for StarkNet
v0.11.0
support. Changes are documented here but we should still expect changes and more information over the coming days / weeks.I'll start with a broad list of what is likely required and we can expand and refine it as more information becomes available. Once something is actionable, it would be nice to split it into a separate issue which is also tracked here.
Cairo 1.0 and Sierra
Cairo 1.0 classes may now be deployed using Declare V2 transactions. We will have to store its Sierra IR representation (to hand out to users via JSON-RPC) but will also need to compile it to Cairo assembly. The latter is required to execute calls and estimate fee's in the VM.
Declare V2
This new transaction type will permeate everywhere - RPC, gateway, sync, storage
State commitment
The state commitment definition is changing from v0.11.0 onwards. It now includes a class hash commitment tree. Since this change takes effect from literally v0.11.0 onwards, we will need to parse the semver version of a block to calculate the state commitment hash.
A question I have - are historical classes included in this tree or is it new classes only? I imagine only Cairo v1 classes to be backwards compatible?Indeed, only Cairo v1 classes are used.JSON-RPC changes
Changes are already available for preview in the PRs since the last release. We will need to investigate how we can make v0.2 compatible with the upcoming v0.3 release.
On a positive note, at least we can remove v0.1.
starknet_getEvents
event filter semantics for keys #834starknet_call
#855starknet_chainId
#856starknet_getBlockWithTxHashes
#857starknet_getBlockWithTxs
#858starknet_getClass
#859starknet_getClassAt
#860starknet_getClassHashAt
#861starknet_estimateFee
#862starknet_getNonce
#863starknet_pendingTransactions
#864starknet_getStateUpdate
#865starknet_getStorageAt
#866starknet_getTransactionByHash
#867starknet_getTransactionByBlockIdAndIndex
#868starknet_getTransactionReceipt
#869starknet_syncing
#870starknet_getBlockTransactionCount
#871starknet_blockHashAndNumber
#872starknet_blockNumber
#873starknet_addInvokeTransaction
#874starknet_addDeclareTransaction
#875starknet_addDeployTransaction
#876starknet_addDeployAccountTransaction
#877Felt
representation #879starknet_simulateTransaction
#887Gateway API
add_transaction
#854Poseidon hash
Poseidon hash will be used in some places, but it is not yet clear where exactly.
Breaking Release
Since this is a breaking release, it would be a good time to remove the deprecated items:
Misc
new_root
property #919Release preparations
The text was updated successfully, but these errors were encountered: