Skip to content

v0.11.0

Compare
Choose a tag to compare
@franciszekjob franciszekjob released this 12 Jun 17:58
· 3 commits to main since this release
a5c820a

What's Changed

  • add StarknetProvider.batchRequests() accepting both list and variadic parameters
  • add StarknetRequest and StarknetBatchRequest structs

Breaking changes

  • StarknetAccount
    • executeV1(...) async throws -> StarknetInvokeTransactionResponse -> executeV1(...) -> StarknetRequest<StarknetInvokeTransactionResponse>
    • executeV3(...) async throws -> StarknetInvokeTransactionResponse -> executeV3(...) -> StarknetRequest<StarknetInvokeTransactionResponse>
    • executeV1(...) async throws -> StarknetInvokeTransactionResponse -> executeV1(...) -> StarknetRequest<StarknetInvokeTransactionResponse>
    • executeV3(...) async throws -> StarknetInvokeTransactionResponse -> executeV3(...) -> StarknetRequest<StarknetInvokeTransactionResponse>
    • estimateFeeV1(...) async throws -> StarknetFeeEstimate -> estimateFeeV1(...) -> StarknetRequest<[StarknetFeeEstimate]>
    • estimateFeeV3(...) async throws -> StarknetFeeEstimate -> estimateFeeV3(...) -> StarknetRequest<[StarknetFeeEstimate]>
    • estimateDeployAccountFeeV1(...) async throws -> StarknetFeeEstimate -> estimateDeployAccountFeeV1(...) -> StarknetRequest<[StarknetFeeEstimate]>
    • estimateDeployAccountFeeV3(...) async throws -> StarknetFeeEstimate -> estimateDeployAccountFeeV3(...) -> StarknetRequest<[StarknetFeeEstimate]>
    • getNonce() async throws -> Felt -> getNonce()-> StarknetRequest<Felt>
  • StarknetProvider
    • specVersion() async throws -> String -> specVersion() -> StarknetRequest<String>
    • callContract(...) async throws -> [Felt] -> callContract(...) -> StarknetRequest<[Felt]>
    • estimateMessageFee(...) async throws -> StarknetFeeEstimate -> estimateMessageFee(...) -> StarknetRequest<StarknetFeeEstimate>
    • getNonce() async throws -> Felt -> getNonce() -> StarknetRequest<Felt>
    • addInvokeTransaction(...) async throws -> StarknetInvokeTransactionResponse -> addInvokeTransaction(...) -> StarknetRequest<StarknetInvokeTransactionResponse>
    • addDeployAccountTransaction(...) async throws -> StarknetDeployAccountResponse -> addDeployAccountTransaction(...) -> StarknetRequest<StarknetDeployAccountResponse>
    • getClassHashAt(...) async throws -> Felt -> getClassHashAt(...) -> StarknetRequest<Felt>
    • getBlockNumber() async throws -> UInt64 -> getBlockNumber() -> StarknetRequest<UInt64>
    • getBlockHashAndNumber() async throws -> StarknetBlockHashAndNumber -> getBlockHashAndNumber() -> StarknetRequest<StarknetBlockHashAndNumber>
    • getEvents(...) async throws -> StarknetGetEventsResponse -> getEvents(...) -> StarknetRequest<StarknetGetEventsResponse>
    • getTransactionBy(...) async throws -> any StarknetTransaction -> getTransactionBy(...) -> StarknetRequest<StarknetTransaction>
    • getTransactionReceiptBy(...) async throws -> any StarknetTransactionReceipt -> getTransactionReceiptBy(...) -> StarknetRequest<StarknetTransactionReceipt>
    • getTransactionStatusBy(...) async throws -> StarknetGetTransactionStatusResponse -> getTransactionStatusBy(...) async throws -> StarknetRequest<StarknetGetTransactionStatusResponse>
    • getChainId() async throws -> StarknetChainId -> getChainId() -> StarknetRequest<StarknetChainId>
    • simulateTransactions(...) async throws -> [StarknetSimulatedTransaction] -> simulateTransactions(...) -> StarknetRequest<[StarknetSimulatedTransaction]>

Merged PRs

Full Changelog: v0.10.1...v0.11.0