Skip to content

Releases: software-mansion/starknet-jvm

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

0.9.1

15 Jan 14:45
f4c0216
Compare
Choose a tag to compare

What's Changed

Breaking changes

There are few minor breaking changes:

  • Renamed StarknetChainId.TESTNET -> StarknetChainId.GOERLI
  • StandardProvider constructor no longer takes chainId as an argument
  • Provider: removed chainId property; Use getChainId method

Full Changelog: 0.9.0...0.9.1

0.9.0

13 Dec 16:18
ec4ccb2
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.8.2...0.9.0

0.8.2

05 Dec 13:49
448f547
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • Removal of all gateway classes
  • Removal of Rpc, JsonRpc prefixes from classes that had gateway counterpart
  • Removal of HttpService constructors
  • revertError field has been renamed to data in RequestFailedException and RpcRequestFailedException

Full Changelog: 0.8.1...0.8.2

0.8.1

22 Nov 14:47
a4be022
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.8.0...0.8.1