-
Notifications
You must be signed in to change notification settings - Fork 16
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 RPC 0.4.0 #281
Support RPC 0.4.0 #281
Conversation
We should review current changes, but block this until devnet update arrives or at least there's some clarity regarding what changes will be included in the release so it is reasonable to write mock tests. |
...in/com/swmansion/starknet/data/serializers/JsonRpcTransactionReceiptPolymorphicSerializer.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/serializers/TransactionPolymorphicSerializer.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/serializers/TransactionPolymorphicSerializer.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/Messages.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/transactions/Transaction.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/transactions/Transaction.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/transactions/Transaction.kt
Outdated
Show resolved
Hide resolved
...in/com/swmansion/starknet/data/serializers/JsonRpcTransactionReceiptPolymorphicSerializer.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/transactions/Transaction.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/transactions/Transaction.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/transactions/Transaction.kt
Outdated
Show resolved
Hide resolved
@JsonNames("calldata") | ||
val constructorCalldata: Calldata, | ||
|
||
// TODO: check whether this should actually be contract_class in case of gateway |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears that class_hash is used in gateway as well
...in/com/swmansion/starknet/data/serializers/JsonRpcTransactionReceiptPolymorphicSerializer.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/serializers/TransactionPolymorphicSerializer.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/serializers/TransactionPolymorphicSerializer.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/transactions/Transaction.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/transactions/Transaction.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/transactions/Transaction.kt
Outdated
Show resolved
Hide resolved
lib/src/main/kotlin/com/swmansion/starknet/data/types/transactions/Transaction.kt
Outdated
Show resolved
Hide resolved
...in/com/swmansion/starknet/data/serializers/JsonRpcTransactionReceiptPolymorphicSerializer.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job mate 🔥 only a few smaller comments
@SerialName("parent_hash") | ||
override val parentHash: Felt, | ||
// Not in RPC schema | ||
// TODO: remove this when Pathfinder is updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's improve the comment, so it is clear what is to be removed then. Ideally, there should be an issue number stated here, under which more extensive description shall be written.
lib/src/main/kotlin/com/swmansion/starknet/signer/StarkCurveSigner.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job 🔥 Let's wait with merging until @THenry14 approves too
Describe your changes
Message
dataclasses,get_estimate_message_fee
execution_status
,finality_status
,revert_reason
toTransactionReceipt
Transaction
dataclasses, addedDeclareTransactionV0
dataclassUpdatedBlockWithTx
devnet
to0.6.0
Linked issues
Closes #280
Closes #270
Closes #262
Breaking changes
TransactionReceipt
dataclassesMessage
dataclasses,get_estimate_message_fee