starknet 11.10.3 → 11.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.global.js +3 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [11.10.4](https://github.com/starknet-io/starknet.js/compare/v11.10.3...v11.10.4) (2026-12-01)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **address:** hash the parsed address in getChecksumAddress() ([#1773](https://github.com/starknet-io/starknet.js/issues/1773)) ([90bf72c](https://github.com/starknet-io/starknet.js/commit/90bf72c391b5bdeb4b004493103b6a24b231daf7))
|
|
6
|
+
|
|
1
7
|
## [11.10.3](https://github.com/starknet-io/starknet.js/compare/v11.10.2...v11.10.3) (2026-12-01)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -9492,7 +9492,7 @@ declare class RpcProvider implements ProviderInterface {
|
|
|
9492
9492
|
getBlock(blockIdentifier: 'pre_confirmed'): Promise<PreConfirmedBlock>;
|
|
9493
9493
|
getBlock(blockIdentifier: 'latest'): Promise<Block$1>;
|
|
9494
9494
|
getBlock(blockIdentifier: BlockIdentifier): Promise<GetBlockResponse>;
|
|
9495
|
-
getBlockLatestAccepted(): Promise<RPC
|
|
9495
|
+
getBlockLatestAccepted(): Promise<RPC.BlockHashAndNumber>;
|
|
9496
9496
|
getBlockNumber(): Promise<number>;
|
|
9497
9497
|
getBlockWithTxHashes(blockIdentifier?: BlockIdentifier): Promise<({
|
|
9498
9498
|
status: RPC.BLOCK_STATUS;
|
|
@@ -9640,7 +9640,7 @@ declare class RpcProvider implements ProviderInterface {
|
|
|
9640
9640
|
getTransactionReceipt(txHash: BigNumberish): Promise<GetTransactionReceiptResponse>;
|
|
9641
9641
|
getTransactionTrace<V extends _SupportedRpcVersion = _SupportedRpcVersion>(txHash: BigNumberish): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0105.TRANSACTION_TRACE : RPC.TRANSACTION_TRACE>;
|
|
9642
9642
|
getTransactionTrace(txHash: BigNumberish): Promise<RPCSPEC0105.TRANSACTION_TRACE | RPC.TRANSACTION_TRACE>;
|
|
9643
|
-
getTransactionStatus(transactionHash: BigNumberish): Promise<RPC
|
|
9643
|
+
getTransactionStatus(transactionHash: BigNumberish): Promise<RPC.TXN_STATUS_RESULT>;
|
|
9644
9644
|
getSimulateTransaction(invocations: AccountInvocations, options?: getSimulateTransactionOptions): Promise<SimulateTransactionOverheadResponse>;
|
|
9645
9645
|
waitForTransaction(txHash: BigNumberish, options?: waitForTransactionOptions): Promise<GetTransactionReceiptResponse>;
|
|
9646
9646
|
getStorageAt(contractAddress: BigNumberish, key: BigNumberish, blockIdentifier?: BlockIdentifier, responseFlags?: RPCSPEC0105.STORAGE_RESPONSE_FLAG[]): Promise<STORAGE_RESULT>;
|
|
@@ -9770,7 +9770,7 @@ declare class RpcProvider implements ProviderInterface {
|
|
|
9770
9770
|
callContract(call: Call, blockIdentifier?: BlockIdentifier): Promise<string[]>;
|
|
9771
9771
|
estimateMessageFee<V extends _SupportedRpcVersion = _SupportedRpcVersion>(message: RPC.L1Message, blockIdentifier?: BlockIdentifier): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0105.FEE_ESTIMATE : RPC.MESSAGE_FEE_ESTIMATE>;
|
|
9772
9772
|
estimateMessageFee(message: RPC.L1Message, blockIdentifier?: BlockIdentifier): Promise<RPCSPEC0105.FEE_ESTIMATE | RPC.MESSAGE_FEE_ESTIMATE>;
|
|
9773
|
-
getSyncingStats(): Promise<RPC
|
|
9773
|
+
getSyncingStats(): Promise<RPC.Syncing>;
|
|
9774
9774
|
getEvents<V extends _SupportedRpcVersion = _SupportedRpcVersion>(eventFilter: V extends SupportedRpcVersion0_10 ? RPCSPEC0105.EventFilter : RPC.EventFilter): Promise<V extends SupportedRpcVersion0_10 ? RPCSPEC0105.EVENTS_CHUNK : RPC.EVENTS_CHUNK>;
|
|
9775
9775
|
getEvents(eventFilter: RPCSPEC0105.EventFilter | RPC.EventFilter): Promise<RPCSPEC0105.EVENTS_CHUNK | RPC.EVENTS_CHUNK>;
|
|
9776
9776
|
verifyMessageInStarknet(message: BigNumberish | TypedData, signature: Signature, accountAddress: BigNumberish, signatureVerificationFunctionName?: string, signatureVerificationResponse?: {
|
package/dist/index.global.js
CHANGED
|
@@ -24611,8 +24611,9 @@ ${indent}}` : "}";
|
|
|
24611
24611
|
return result;
|
|
24612
24612
|
}
|
|
24613
24613
|
function getChecksumAddress(address) {
|
|
24614
|
-
const
|
|
24615
|
-
const
|
|
24614
|
+
const parsedAddress = validateAndParseAddress(address);
|
|
24615
|
+
const chars = removeHexPrefix(parsedAddress).toLowerCase().split("");
|
|
24616
|
+
const hex = removeHexPrefix(keccakBn(parsedAddress));
|
|
24616
24617
|
const hashed = hexToBytes2(hex.padStart(64, "0"));
|
|
24617
24618
|
for (let i = 0; i < chars.length; i += 2) {
|
|
24618
24619
|
if (hashed[i >> 1] >> 4 >= 8) {
|