Releases: software-mansion/starknet-jvm
Releases · software-mansion/starknet-jvm
0.13.1
What's Changed
- Allow nullable fields
GetEventsPayload
by @franciszekjob in #526
Full Changelog: 0.13.0...0.13.1
0.13.0
What's Changed
- Update codebase to ensure idiomatic Java code by @franciszekjob in #463
- Add
CairoVersion
enum by @franciszekjob in #489 - Add
StandardAccount.create()
by @franciszekjob in #501 - Add
StandardAccount.generatePrivateKey()
by @franciszekjob in #507 - Merge transaction and transaction payload classes by @franciszekjob in #509
- Add
StarknetByteArray.toString
by @franciszekjob in #517
Breaking changes
- Use transaction classes instead of payloads
Provider
,JsonRpcProvider
:getEstimateFee
andsimulateTransactions
now acceptspayload
as list ofExecutableTransaction
instead ofTransactionPayload
- Change param
version
tofeeForEstimate
in:InvokeTransactionV1
,InvokeTransactionV3
,DeployAccountTransactionV3
,DeclareTransactionV2
,DeclareTransactionV3
,InvokeTransactionV1
,InvokeTransactionV3
- Remove
TransactionFactory
- Remove
type
param fromDeclareTransactionTrace
,L1HandlerTransaction
,L1HandlerTransactionTrace
,InvokeTransactionReceipt
,DeclareTransactionReceipt
,DeployAccountTransactionReceipt
,L1HandlerTransactionReceipt
constructors - Remove
version
param fromInvokeTransactionV0
,InvokeTransactionV1
,InvokeTransactionV3
,DeclareTransactionV0
,DeclareTransactionV1
,DeclareTransactionV2
,DeclareTransactionV3
,DeployAccountTransactionV1
,DeployAccountTransactionV3
constructors
Full Changelog: 0.12.2...0.13.0
0.12.2
What's Changed
- Fix
TypedData.toJsonString()
by @franciszekjob in #499
Full Changelog: 0.12.1...0.12.2
0.12.1
What's Changed
- Return only hash in
TypeData.encodeValue()
by @franciszekjob in #483 - Accept key as string in
Provider.getStorageAt()
by @franciszekjob in #484 - Add
TypedData.toJsonString()
by @franciszekjob in #482 - Add padded hex string by @franciszekjob in #487
- Add
RequestResult
type by @franciszekjob in #478
Breaking changes
HttpBatchRequest
send(): List<Result<T>>
->send(): List<RequestResult<T>>
sendAsync(): CompletableFuture<List<Result<T>>>
->sendAsync(): CompletableFuture<List<RequestResult<T>>>
Full Changelog: 0.12.0...0.12.1
0.12.0
What's Changed
- Remove support for sending v1
DECLARE
transactions by @franciszekjob in #453 and #475 - Prepend array length in
FeltArray
serialization by @franciszekjob in #458 - Allow integer
revision
inTypedData.Domain
by @DelevoXDG in #449 - Support batching RPC requests by @franciszekjob in #455 and #471
- Remove Goerli chain ID support by @franciszekjob in #454
Breaking changes
- v1
DECLARE
is no longer supported FeltArray
:toCalldata()
method now returns list with prepended array length instead of just listTypedData.Domain.Revision
is now of typeJsonPrimitive?
instead ofTypedData.Revision?
- Use
TypedData.Domain.resolvedRevision
to access revision asTypedData.Revision
- Removed Goerli support
- Change returned type in
JsonRpcProvider
methods:getSpecVersion(): HttpRequest<String>
->getSpecVersion(): HttpRequest<StringResponse>
callContract(...): HttpRequest<List<Felt>>
->callContract(...): HttpRequest<FeltArray>
getBlockNumber(): HttpRequest<Int>
->getBlockNumber(): HttpRequest<StarknetInt>
getBlockTransactionCount(...): HttpRequest<Int>
->getBlockTransactionCount(...): HttpRequest<IntResponse>
getEstimateFee(...): HttpRequest<List<EstimateFeeResponse>>
->getEstimateFee(...): HttpRequest<EstimateFeeResponseList>
simulateTransactions(...): HttpRequest<List<SimulatedTransaction>>
->simulateTransactions(...): HttpRequest<SimulatedTransactionList>
Full Changelog: 0.11.1...0.12.0
0.11.1
What's Changed
- Add
Felt.fromSigned()
factory method by @DelevoXDG in #435 - Update
MerkleTree
to allow Poseidon hashing by @DelevoXDG in #437 - Add
StarknetByteArray
by @DelevoXDG in #436 - Support Cairo 2.6.0 contracts by @DelevoXDG in #439
- Update
TypedData
in line with SNIP-12 by @DelevoXDG in #428 - Bump android deps by @DelevoXDG in #445
Breaking changes
MerkleTree
MerkleTree
constructor now requires ahashFunction
argument to be passedMerkleTree.hash()
static method now requires ahashFunction
argument to be passed
TypedData
TypedData.domain
is now of typeTypedData.Domain
instead ofJsonObject
- Renamed
TypedData.Type
->TypedData.StandardType
,TypedData.TypeBase
->TypedData.Type
- Removed
raw
basic type
Full Changelog: 0.11.0...0.11.1
0.11.0
What's Changed
- Make
Payloads.kt
classes internal by @DelevoXDG in #430 - Support RPC 0.7.0 by @DelevoXDG in #409
Breaking changes
- Not compatible with JSON-RPC 0.6.0
- Removed
executionResources
fromFunctionInvocation
; UsecomputationResources
instead - Removed
status
fromPendingBlockWith[..]
data classes - Payload classes from
com.swmansion.starknet.data.types.Payloads
are no longer accessible
Full Changelog: 0.10.1...0.11.0
0.10.1
What's Changed
- Revert "Use Felt instead of StarknetChainId (#406)" by @DelevoXDG in #416
- Set chain ID in
StandardAccount
constructor by @DelevoXDG in #419 - Support custom chain IDs by @DelevoXDG in #417
- Add
TransactionVersion
enum by @DelevoXDG in #413
Breaking
Full Changelog: 0.10.0...0.10.1
StarknetChainId
is used instead ofFelt
- Use
StarknetChainId.fromHex()
,StarknetChainId.fromNetworkName()
for custom chain IDs Provider.getChainId()
now returnsStarknetChainId
instead ofFelt
TransactionHashCalculator
methods now acceptchainId
asStarknetChainId
, notFelt
TransactionFactory
methods now acceptchainId
asStarknetChainId
, notFelt
- Use
StandardAccount
constructor now has a mandatorychainId
argumentAccount
interface now haschainId: StarknetChainId
fieldversion
argument inTransactionFactory
functions is now of typeTransactionVersion
instead ofFelt
version
argument inTransactionHashCalculator
functions is now of typeTransactionVersion
instead ofFelt
TransactionPayload.version
is now of typeTransactionVersion
instead of `Felt
0.10.0
What's Changed
- Support ignoring unknown json keys in responses and contract codes by @DelevoXDG in #405
- RPC 0.6.0 cleanup by @DelevoXDG in #381
- Use
Felt
instead ofStarknetChainId
by @DelevoXDG in #406
Breaking changes
Account
,StandardAccount
- all methods that have v1, v2 and v3 variants now have
V1
,V2
,V3
postfixes respectively estimateFeeV(1|3)
no longer acceptsSet<SimulationFlagForEstimateFee>
, instead takesskipValidate: Bool
- all methods that have v1, v2 and v3 variants now have
Deployer
,StandardDeployer
:deployContract
renamed todeployContractV1
; AddeddeployContractV3
- Removed transaction v3 parameters (
tip
,paymasterData
,accountDeploymentData
,nonceDataAvailabilityMode
,feeDataAvailabilityMode
) fromTransactionPayload
constructors - Removed transaction v3 parameters (
tip
,paymasterData
,accountDeploymentData
,nonceDataAvailabilityMode
,feeDataAvailabilityMode
) fromTransactionFactory
methods - Renamed
ExecutionParamsV3
->InvokeParamsV3
- Removed
StarknetChainId
enum; UseFelt.toShortString
andFelt.fromShortString
to convert to and from readable nameProvider.getChainId()
now returnsFelt
instead ofStarknetChainId
TransactionHashCalculator
methods now acceptchainId
asFelt
, notStarknetChainId
TransactionFactory
methods now acceptchainId
asFelt
, notStarknetChainId
Full Changelog: 0.9.2...0.10.0
0.9.2
What's Changed
- Bump deps by @DelevoXDG in #392
- Add missing order field to OrderedMessageL2ToL1 by @DelevoXDG in #398
Full Changelog: 0.9.1...0.9.2