Closed franciszekjob closed 4 months ago
Suport batching multiple RPC requests
StarknetRequest
StarknetBatchRequest
StarknetProvider.batchRequests()
JsonRpcParams
Closes #186, #145
StarknetAccount
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() -> 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]>
All requested changes have been addressed, I've also added few remarks about newly applied changes.
Describe your changes
Suport batching multiple RPC requests
StarknetRequest
andStarknetBatchRequest
structsStarknetProvider.batchRequests()
accepting both list and variadic parametersJsonRpcParams
enum and extensionLinked issues
Closes #186, #145
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]>