starknet 10.6.3 → 10.6.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 -2
- package/dist/index.global.js +6 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [10.6.4](https://github.com/starknet-io/starknet.js/compare/v10.6.3...v10.6.4) (2026-08-04)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **channel:** reject SNIP-36 fields on RPC 0.9 ([a1a7f65](https://github.com/starknet-io/starknet.js/commit/a1a7f654391b44d9ce3ceea7492f5dfbccaa94f8))
|
|
6
|
+
|
|
1
7
|
## [10.6.3](https://github.com/starknet-io/starknet.js/compare/v10.6.2...v10.6.3) (2026-07-31)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -4467,6 +4467,7 @@ declare const SYSTEM_MESSAGES: {
|
|
|
4467
4467
|
txEvictedFromMempool: string;
|
|
4468
4468
|
consensusFailed: string;
|
|
4469
4469
|
txFailsBlockBuildingValidation: string;
|
|
4470
|
+
snip36RequiresRPC010: string;
|
|
4470
4471
|
};
|
|
4471
4472
|
declare const SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS: "0.14.1";
|
|
4472
4473
|
|
|
@@ -7844,7 +7845,7 @@ declare function randomAddress(): string;
|
|
|
7844
7845
|
* ```typescript
|
|
7845
7846
|
* const proofArray = [1, 2, 3, 4, 5];
|
|
7846
7847
|
* const result = stark.encodeProof(proofArray);
|
|
7847
|
-
* // result = "
|
|
7848
|
+
* // result = "AQAAAAIAAAADAAAABAAAAAUAAAA="
|
|
7848
7849
|
* ```
|
|
7849
7850
|
*/
|
|
7850
7851
|
declare function encodeProof(proof: number[]): string;
|
|
@@ -7854,7 +7855,7 @@ declare function encodeProof(proof: number[]): string;
|
|
|
7854
7855
|
* @returns {number[]} Array of proof integers
|
|
7855
7856
|
* @example
|
|
7856
7857
|
* ```typescript
|
|
7857
|
-
* const proofBase64 = "
|
|
7858
|
+
* const proofBase64 = "AQAAAAIAAAADAAAABAAAAAUAAAA=";
|
|
7858
7859
|
* const result = stark.decodeProof(proofBase64);
|
|
7859
7860
|
* // result = [1, 2, 3, 4, 5]
|
|
7860
7861
|
* ```
|
package/dist/index.global.js
CHANGED
|
@@ -1334,7 +1334,8 @@ var starknet = (() => {
|
|
|
1334
1334
|
unsupportedMethodForRpcVersion: "Unsupported method for RPC version",
|
|
1335
1335
|
txEvictedFromMempool: "Transaction TTL, evicted from the mempool, try to increase the tip",
|
|
1336
1336
|
consensusFailed: "Consensus failed to finalize the block proposal",
|
|
1337
|
-
txFailsBlockBuildingValidation: "Transaction fails block building validation"
|
|
1337
|
+
txFailsBlockBuildingValidation: "Transaction fails block building validation",
|
|
1338
|
+
snip36RequiresRPC010: "SNIP-36 `proof` and `proofFacts` are not supported by RPC 0.9, connect to a RPC 0.10.1+ node!"
|
|
1338
1339
|
};
|
|
1339
1340
|
var SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS = "0.14.1";
|
|
1340
1341
|
|
|
@@ -11684,6 +11685,10 @@ ${indent}}` : "}";
|
|
|
11684
11685
|
versionType !== "transaction" || isRPC08Plus_ResourceBoundsBN(invocation.resourceBounds),
|
|
11685
11686
|
SYSTEM_MESSAGES.SWOldV3
|
|
11686
11687
|
);
|
|
11688
|
+
assert(
|
|
11689
|
+
!invocation.proofFacts?.length && !invocation.proof,
|
|
11690
|
+
SYSTEM_MESSAGES.snip36RequiresRPC010
|
|
11691
|
+
);
|
|
11687
11692
|
const details = {
|
|
11688
11693
|
signature: signatureToHexArray(invocation.signature),
|
|
11689
11694
|
nonce: toHex(invocation.nonce),
|