Skip to content

Releases: software-mansion/starknet-jvm

0.13.1

18 Oct 10:14
6cd1da0
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.13.0...0.13.1

0.13.0

24 Sep 10:22
e6ae316
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • Use transaction classes instead of payloads
  • Provider, JsonRpcProvider:
    • getEstimateFee and simulateTransactions now accepts payload as list of ExecutableTransaction instead of TransactionPayload
  • Change param version to feeForEstimate in: InvokeTransactionV1, InvokeTransactionV3, DeployAccountTransactionV3, DeclareTransactionV2, DeclareTransactionV3, InvokeTransactionV1, InvokeTransactionV3
  • Remove TransactionFactory
  • Remove type param from DeclareTransactionTrace, L1HandlerTransaction, L1HandlerTransactionTrace, InvokeTransactionReceipt, DeclareTransactionReceipt, DeployAccountTransactionReceipt, L1HandlerTransactionReceipt constructors
  • Remove version param from InvokeTransactionV0,InvokeTransactionV1, InvokeTransactionV3, DeclareTransactionV0, DeclareTransactionV1, DeclareTransactionV2, DeclareTransactionV3, DeployAccountTransactionV1, DeployAccountTransactionV3 constructors
    Full Changelog: 0.12.2...0.13.0

0.12.2

11 Jul 12:21
59e11b6
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.12.1...0.12.2

0.12.1

13 Jun 19:23
4cc8316
Compare
Choose a tag to compare

What's Changed

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

23 May 13:12
e6d16ac
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • v1 DECLARE is no longer supported
  • FeltArray: toCalldata() method now returns list with prepended array length instead of just list
  • TypedData.Domain.Revision is now of type JsonPrimitive? instead of TypedData.Revision?
  • Use TypedData.Domain.resolvedRevision to access revision as TypedData.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

20 Mar 13:55
d28b008
Compare
Choose a tag to compare

What's Changed

Breaking changes

MerkleTree

  • MerkleTree constructor now requires a hashFunction argument to be passed
  • MerkleTree.hash() static method now requires a hashFunction argument to be passed

TypedData

  • TypedData.domain is now of type TypedData.Domain instead of JsonObject
  • Renamed TypedData.Type->TypedData.StandardType, TypedData.TypeBase->TypedData.Type
  • Removed raw basic type

Full Changelog: 0.11.0...0.11.1

0.11.0

05 Mar 20:46
819434c
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • Not compatible with JSON-RPC 0.6.0
  • Removed executionResources from FunctionInvocation; Use computationResources instead
  • Removed status from PendingBlockWith[..] 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

16 Feb 09:34
a2a849b
Compare
Choose a tag to compare

What's Changed

Breaking

Full Changelog: 0.10.0...0.10.1

  • StarknetChainId is used instead of Felt
    • Use StarknetChainId.fromHex(), StarknetChainId.fromNetworkName() for custom chain IDs
    • Provider.getChainId() now returns StarknetChainId instead of Felt
    • TransactionHashCalculator methods now accept chainId as StarknetChainId, not Felt
    • TransactionFactory methods now accept chainId as StarknetChainId, not Felt
  • StandardAccount constructor now has a mandatory chainId argument
  • Account interface now has chainId: StarknetChainId field
  • version argument in TransactionFactory functions is now of type TransactionVersion instead of Felt
  • version argument in TransactionHashCalculator functions is now of type TransactionVersion instead of Felt
  • TransactionPayload.version is now of type TransactionVersion instead of `Felt

0.10.0

13 Feb 11:08
41b074c
Compare
Choose a tag to compare

What's Changed

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 accepts Set<SimulationFlagForEstimateFee>, instead takes skipValidate: Bool
  • Deployer, StandardDeployer: deployContract renamed to deployContractV1; Added deployContractV3
  • Removed transaction v3 parameters (tip, paymasterData, accountDeploymentData, nonceDataAvailabilityMode, feeDataAvailabilityMode) from TransactionPayload constructors
  • Removed transaction v3 parameters (tip, paymasterData, accountDeploymentData, nonceDataAvailabilityMode, feeDataAvailabilityMode) from TransactionFactory methods
  • Renamed ExecutionParamsV3 -> InvokeParamsV3
  • Removed StarknetChainId enum; Use Felt.toShortString and Felt.fromShortString to convert to and from readable name
    • Provider.getChainId() now returns Felt instead of StarknetChainId
    • TransactionHashCalculator methods now accept chainId as Felt, not StarknetChainId
    • TransactionFactory methods now accept chainId as Felt, not StarknetChainId

Full Changelog: 0.9.2...0.10.0

0.9.2

25 Jan 11:51
db947fb
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.9.1...0.9.2