starknet 11.10.1 → 11.10.3
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 +12 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.global.js +15 -29
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +15 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [11.10.3](https://github.com/starknet-io/starknet.js/compare/v11.10.2...v11.10.3) (2026-12-01)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **num:** keep 4 bytes in stringToSha256ToArrayBuff4 when the top byte is zero ([#1770](https://github.com/starknet-io/starknet.js/issues/1770)) ([f1327cd](https://github.com/starknet-io/starknet.js/commit/f1327cdc470c5f585dad1ad075089fca9cf78a40))
|
|
6
|
+
|
|
7
|
+
## [11.10.2](https://github.com/starknet-io/starknet.js/compare/v11.10.1...v11.10.2) (2026-11-30)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **calldata:** keep a Span or fixed array of tuples whole inside a tuple ([#1771](https://github.com/starknet-io/starknet.js/issues/1771)) ([106a701](https://github.com/starknet-io/starknet.js/commit/106a70156047e6e9130c8cc6eaee2db62457989a))
|
|
12
|
+
|
|
1
13
|
## [11.10.1](https://github.com/starknet-io/starknet.js/compare/v11.10.0...v11.10.1) (2026-11-30)
|
|
2
14
|
|
|
3
15
|
### 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.BlockHashAndNumber>;
|
|
9495
|
+
getBlockLatestAccepted(): Promise<RPC$1.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.TXN_STATUS_RESULT>;
|
|
9643
|
+
getTransactionStatus(transactionHash: BigNumberish): Promise<RPC$1.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.Syncing>;
|
|
9773
|
+
getSyncingStats(): Promise<RPC$1.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
|
@@ -3170,7 +3170,7 @@ ${indent}}` : "}";
|
|
|
3170
3170
|
function stringToSha256ToArrayBuff4(str) {
|
|
3171
3171
|
const int312 = (n) => Number(n & MASK_31);
|
|
3172
3172
|
const result = int312(BigInt(addHexPrefix(buf2hex(sha256(utf8ToBytes(str))))));
|
|
3173
|
-
return hexToBytes3(toHex(result));
|
|
3173
|
+
return hexToBytes3(addHexPrefix(removeHexPrefix(toHex(result)).padStart(8, "0")));
|
|
3174
3174
|
}
|
|
3175
3175
|
function isEmptyHex(value) {
|
|
3176
3176
|
return isString(value) && /^0x$/i.test(value);
|
|
@@ -12587,39 +12587,25 @@ ${indent}}` : "}";
|
|
|
12587
12587
|
}
|
|
12588
12588
|
return recomposed;
|
|
12589
12589
|
}
|
|
12590
|
-
function getClosureOffset(input, open, close) {
|
|
12591
|
-
for (let i = 0, counter = 0; i < input.length; i++) {
|
|
12592
|
-
if (input[i] === open) {
|
|
12593
|
-
counter++;
|
|
12594
|
-
} else if (input[i] === close && --counter === 0) {
|
|
12595
|
-
return i;
|
|
12596
|
-
}
|
|
12597
|
-
}
|
|
12598
|
-
return Number.POSITIVE_INFINITY;
|
|
12599
|
-
}
|
|
12600
12590
|
function extractCairo1Tuple(type) {
|
|
12601
12591
|
const input = type.slice(1, -1);
|
|
12602
12592
|
const result = [];
|
|
12593
|
+
let depth = 0;
|
|
12603
12594
|
let currentIndex = 0;
|
|
12604
|
-
let
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
break;
|
|
12615
|
-
}
|
|
12616
|
-
default: {
|
|
12617
|
-
const commaIndex = input.indexOf(",", currentIndex);
|
|
12618
|
-
limitIndex = commaIndex !== -1 ? commaIndex : Number.POSITIVE_INFINITY;
|
|
12619
|
-
}
|
|
12595
|
+
for (let i = 0; i < input.length; i++) {
|
|
12596
|
+
const char = input[i];
|
|
12597
|
+
if (char === "(" || char === "<" || char === "[") {
|
|
12598
|
+
depth++;
|
|
12599
|
+
} else if (char === ")" || char === ">" || char === "]") {
|
|
12600
|
+
depth--;
|
|
12601
|
+
} else if (char === "," && depth === 0) {
|
|
12602
|
+
result.push(input.slice(currentIndex, i));
|
|
12603
|
+
currentIndex = i + 2;
|
|
12604
|
+
i++;
|
|
12620
12605
|
}
|
|
12621
|
-
|
|
12622
|
-
|
|
12606
|
+
}
|
|
12607
|
+
if (currentIndex < input.length) {
|
|
12608
|
+
result.push(input.slice(currentIndex));
|
|
12623
12609
|
}
|
|
12624
12610
|
return result;
|
|
12625
12611
|
}
|