Skip to content

Releases: software-mansion/starknet.swift

v0.10.1

24 May 11:58
f3ed7cd
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • Removed Goerli chain ID support

Full Changelog: v0.10.0...v0.10.1

v0.10.0

12 Apr 12:01
5aed9f9
Compare
Choose a tag to compare

What's Changed

  • Bump swift version to 5.10
  • Update StaknetTypedData in line with SNIP-12
  • Add StarknetMerkleTree
  • Add Felt(fromSigned) initializer
  • Add StarknetByteArray

Breaking changes

  • XCode 15.3+ (macOS 14+) is now required to build the package
  • StaknetTypedData.domain is now of type StarknetTypedData.Domain instead of [String: Element]
    • StarknetTypedData initializers now take domain as StarknetTypedData.Domain instead of [String: Element]
  • StarknetTypedData.types is now of type [String: [TypeDeclarationWrapper]] instead of [String: [TypeDeclaration]]
    • StarknetTypedData initializers now take types as [String: [any TypeDeclaration]] instead of [String: [TypeDeclaration]]
  • StarknetTypedData.TypeDeclaration is now a protocol; Use StarknetTypedData.StandardType instead
  • StarknetTypedData initializers are now throwing, not failable
  • Type verification is now enforced when instantiating StarknetTypedData

Merged PRs

  • Run Checks on non-main PRs by @DelevoXDG in #168
  • Bump swift version to 5.10 by @DelevoXDG in #172
  • Allow StarknetTypedData revision 1 by @DelevoXDG in #166
  • Add StarknetMerkleTree and merkletree support in StarknetTypedData by @DelevoXDG in #167
  • Verify types in StarknetTypedData in line with SNIP-12 by @DelevoXDG in #170
  • Support bool, ClassHash, ContractAddress basic types in StarknetTypedData by @DelevoXDG in #173
  • Add Felt(fromSigned) initializer; Support u128, i128, timestamp types in StarknetTypedData by @DelevoXDG in #174
  • Add StarknetByteArray; Support revision 1 string in StarknetTypedData by @DelevoXDG in #175
  • Support enum basic type in StartknetTypedData by @DelevoXDG in #178
  • Support preset types in StarknetTypedData by @DelevoXDG in #182
  • Use enums for basic and preset types in StarknetTypedData by @DelevoXDG in #180
  • Update StarknetTypedData docs (SNIP-12) by @DelevoXDG in #181
  • Update demo app to support latest version by @franciszekjob in #177

New Contributors

Full Changelog: v0.9.0...v0.10.0

v0.9.0

27 Mar 10:44
6da127e
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • StarknetFeeEstimate extension fee calculation utils
    • toResourceBounds() now takes amountMultiplier, unitPriceMultiplier instead of amountOverhead, unitPriceOverhead
    • toMaxFee() now takes multiplier instead of overhead
  • version of StarknetTransaction is now of type StarknetTransactionVersion instead of Felt; This applies to all derived transaction structs
  • Removed StarknetPendingTransactionReceipt, StarknetProcessedTransactionReceipt protocols
  • Renamed all Starknet[..]TransactionReceipt protocols to Starknet[..]TransactionReceiptProtocol
  • Removed all StarknetPending[..]TransactionReceipt and StarknetProcessed[..]TransactionReceipt classes; Use Starknet[..]TransactionReceipt classes with optional blockHash and blockNumber instead

Full Changelog: v0.8.3...v0.9.0

v0.8.3

28 Feb 13:46
a8e2794
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.8.2...v0.8.3

v0.8.2

19 Feb 14:33
4bf3c72
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • Re-intruduce StarknetChainId as a struct
    • StarknetChainId is used instead of Felt; Use StarknetChainId.init(fromHex:), StarknetChainId.init(fromNetworkName:) for custom chain IDs
    • StarknetProviderProtocol.getChainId() now returns StarknetChainId instead of Felt
    • StarknetTransactionHashCalculator methods now take chain ID as StarknetChainId instead of Felt
  • StarknetAccount constructor now has a mandatory chainId argument
  • StarknetAccountProtocol now has chainId: StarknetChainId property

Full Changelog: v0.8.1...v0.8.2

v0.8.1

07 Feb 11:40
34c7260
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • Removed StarknetChainId enum;
    • StarknetProviderProtocol.getChainId() returns Felt; Use Felt.toShortString() to convert to readable name
    • StarknetTransactionHashCalculator methods now take chain id as Felt instead of StarknetChainId
    • Removed starknetChainId from StarknetProviderProtocol; Use StarknetProviderProtocol.getChainId() instead
    • Removed starknetChainId parameter from all StarknetProvider constructors
  • All StarknetAccountProtocol signing methods are now async

Full Changelog: v0.8.0...v0.8.1

v0.7.4

01 Feb 10:06
940063d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.3...v0.7.4

v0.8.0

24 Jan 13:35
8a1040f
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • StarknetAccountProtocol, StarknetAccount. sign, estimateFee, execute, signDeployAccount, estimateDeployFee are now split into two versions, with V1 and V3 postfix for transactions version 1 and 3 respectfully
  • Removed StarknetExecutionParams and StarknetOptionalExecutionParams; Use StarknetInvokeParamsV1, StarknetOptionalInvokeParamsV1 and StarknetDeployAccountV1 instead
  • StarknetProviderProtocol, StarknetProvider: estimateFee and simulateTransactions now only support transactions that conform to StarknetExecutableTransaction
  • StarknetTransactionReceipt: actualFee is now of type StarknetFeePayment instead of `Felt
  • StarknetExecutionResources fields are now of type Int instead of NumAsHex

Full Changelog: v0.7.3...v0.8.0

v0.7.3

18 Jan 09:21
5cc4122
Compare
Choose a tag to compare

What's Changed

Breaking changes

  • Removed StarknetSequencerTransaction
  • Removed StarknetSequencerInvokeTransaction; Uses of StarknetSequencerInvokeTransaction are now of type StarknetInvokeTransactionV1
  • Removed StarknetSequencerDeployAccountTransaction; Uses of StarknetSequencerDeployAccountTransaction are now of type StarknetDeployAccountTransactionV1
  • Removed constructor w/ sequencer tx as a parameter in StarknetInvokeTransactionV1; Updated default one
  • Removed constructor w/ sequencer tx as a parameter in StarknetDeployAccountTransactionV1; Updated default one

Full Changelog: v0.7.2...v0.7.3

v0.7.2

11 Dec 17:07
40e72e2
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.1...v0.7.2