Releases: software-mansion/starknet.swift
Releases · software-mansion/starknet.swift
v0.10.1
What's Changed
- Remove Goerli chain ID support by @franciszekjob in #192
- Fix types encoding in StarknetTypedData by @franciszekjob in #199
- Fix calculated overall fees in
FeeEstimateTests
by @franciszekjob in #200 - Add public
init
forStarknetFeeEstimate
by @franciszekjob in #198
Breaking changes
- Removed Goerli chain ID support
Full Changelog: v0.10.0...v0.10.1
v0.10.0
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 typeStarknetTypedData.Domain
instead of[String: Element]
StarknetTypedData
initializers now takedomain
asStarknetTypedData.Domain
instead of[String: Element]
StarknetTypedData.types
is now of type[String: [TypeDeclarationWrapper]]
instead of[String: [TypeDeclaration]]
StarknetTypedData
initializers now taketypes
as[String: [any TypeDeclaration]]
instead of[String: [TypeDeclaration]]
StarknetTypedData.TypeDeclaration
is now a protocol; UseStarknetTypedData.StandardType
insteadStarknetTypedData
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
andmerkletree
support inStarknetTypedData
by @DelevoXDG in #167 - Verify types in
StarknetTypedData
in line with SNIP-12 by @DelevoXDG in #170 - Support
bool
,ClassHash
,ContractAddress
basic types inStarknetTypedData
by @DelevoXDG in #173 - Add
Felt(fromSigned)
initializer; Supportu128
,i128
,timestamp
types inStarknetTypedData
by @DelevoXDG in #174 - Add
StarknetByteArray
; Support revision 1string
inStarknetTypedData
by @DelevoXDG in #175 - Support
enum
basic type inStartknetTypedData
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
- @franciszekjob made their first contribution in #177
Full Changelog: v0.9.0...v0.10.0
v0.9.0
What's Changed
- Support RPC 0.7.0 by @DelevoXDG in #162
Breaking changes
StarknetFeeEstimate
extension fee calculation utilstoResourceBounds()
now takesamountMultiplier
,unitPriceMultiplier
instead ofamountOverhead
,unitPriceOverhead
toMaxFee()
now takesmultiplier
instead ofoverhead
version
ofStarknetTransaction
is now of typeStarknetTransactionVersion
instead ofFelt
; This applies to all derived transaction structs- Removed
StarknetPendingTransactionReceipt
,StarknetProcessedTransactionReceipt
protocols - Renamed all
Starknet[..]TransactionReceipt
protocols toStarknet[..]TransactionReceiptProtocol
- Removed all
StarknetPending[..]TransactionReceipt
andStarknetProcessed[..]TransactionReceipt
classes; UseStarknet[..]TransactionReceipt
classes with optionalblockHash
andblockNumber
instead
Full Changelog: v0.8.3...v0.9.0
v0.8.3
What's Changed
- Change signing methods which are no longer
async
by @dmcrodrigues in #157 - Support
string
,selector
base types inStarknetTypedData
by @DelevoXDG in #158
Full Changelog: v0.8.2...v0.8.3
v0.8.2
What's Changed
- Revert "Remove StarknetChainId" by @DelevoXDG in #151
- Support custom chain IDs by @DelevoXDG in #155
- Set chain ID in
StarknetAccount
initializer by @DelevoXDG in #154
Breaking changes
- Re-intruduce
StarknetChainId
as a structStarknetChainId
is used instead ofFelt
; UseStarknetChainId.init(fromHex:)
,StarknetChainId.init(fromNetworkName:)
for custom chain IDsStarknetProviderProtocol.getChainId()
now returnsStarknetChainId
instead ofFelt
StarknetTransactionHashCalculator
methods now take chain ID asStarknetChainId
instead ofFelt
StarknetAccount
constructor now has a mandatorychainId
argumentStarknetAccountProtocol
now haschainId: StarknetChainId
property
Full Changelog: v0.8.1...v0.8.2
v0.8.1
What's Changed
- Support Sepolia networks; Support
starknet_chainId
endpoint by @DelevoXDG in #137 - Remove
StarknetChainId
by @DelevoXDG in #142
Breaking changes
- Removed
StarknetChainId
enum;StarknetProviderProtocol.getChainId()
returnsFelt
; UseFelt.toShortString()
to convert to readable nameStarknetTransactionHashCalculator
methods now take chain id asFelt
instead ofStarknetChainId
- Removed
starknetChainId
fromStarknetProviderProtocol
; UseStarknetProviderProtocol.getChainId()
instead - Removed
starknetChainId
parameter from allStarknetProvider
constructors
- All
StarknetAccountProtocol
signing methods are now async
Full Changelog: v0.8.0...v0.8.1
v0.7.4
What's Changed
- Support any
data
inJsonRpcError
by @DelevoXDG in #139
Full Changelog: v0.7.3...v0.7.4
v0.8.0
What's Changed
- Support Starknet 0.13 by @DelevoXDG in #129
Breaking changes
StarknetAccountProtocol
,StarknetAccount
.sign
,estimateFee
,execute
,signDeployAccount
,estimateDeployFee
are now split into two versions, withV1
andV3
postfix for transactions version 1 and 3 respectfully- Removed
StarknetExecutionParams
andStarknetOptionalExecutionParams
; UseStarknetInvokeParamsV1
,StarknetOptionalInvokeParamsV1
andStarknetDeployAccountV1
instead StarknetProviderProtocol
,StarknetProvider
:estimateFee
andsimulateTransactions
now only support transactions that conform toStarknetExecutableTransaction
StarknetTransactionReceipt
:actualFee
is now of typeStarknetFeePayment
instead of `FeltStarknetExecutionResources
fields are now of typeInt
instead ofNumAsHex
Full Changelog: v0.7.3...v0.8.0
v0.7.3
What's Changed
- Add Poseidon hash by @DelevoXDG in #126
- Remove Sequencer transaction in favor of Transaction with an optional hash by @DelevoXDG in #127
- Add
CFBundleShortVersionString
to frameworks by @DelevoXDG in #134
Breaking changes
- Removed
StarknetSequencerTransaction
- Removed
StarknetSequencerInvokeTransaction
; Uses ofStarknetSequencerInvokeTransaction
are now of typeStarknetInvokeTransactionV1
- Removed
StarknetSequencerDeployAccountTransaction
; Uses ofStarknetSequencerDeployAccountTransaction
are now of typeStarknetDeployAccountTransactionV1
- 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
What's Changed
- Fix typo by @GoodDaisy in #119
- Allow passing
URLSession
toStarknetProvider
by @DelevoXDG in #121
New Contributors
- @GoodDaisy made their first contribution in #119
Full Changelog: v0.7.1...v0.7.2