starknet 10.6.2 → 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 +12 -0
- package/dist/index.d.ts +18 -4
- package/dist/index.global.js +7 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -189,6 +189,7 @@ __export(index_exports, {
|
|
|
189
189
|
src5: () => src5_exports,
|
|
190
190
|
stark: () => stark_exports,
|
|
191
191
|
starknetId: () => starknetId_exports,
|
|
192
|
+
starknetIdPlugin: () => starknetId,
|
|
192
193
|
toAnyPatchVersion: () => toAnyPatchVersion,
|
|
193
194
|
toApiVersion: () => toApiVersion,
|
|
194
195
|
transaction: () => transaction_exports,
|
|
@@ -571,7 +572,8 @@ var SYSTEM_MESSAGES = {
|
|
|
571
572
|
unsupportedMethodForRpcVersion: "Unsupported method for RPC version",
|
|
572
573
|
txEvictedFromMempool: "Transaction TTL, evicted from the mempool, try to increase the tip",
|
|
573
574
|
consensusFailed: "Consensus failed to finalize the block proposal",
|
|
574
|
-
txFailsBlockBuildingValidation: "Transaction fails block building validation"
|
|
575
|
+
txFailsBlockBuildingValidation: "Transaction fails block building validation",
|
|
576
|
+
snip36RequiresRPC010: "SNIP-36 `proof` and `proofFacts` are not supported by RPC 0.9, connect to a RPC 0.10.1+ node!"
|
|
575
577
|
};
|
|
576
578
|
var SN_VERSION_IMPLEMENTING_BLAKE_FOR_COMPILED_CLASS = "0.14.1";
|
|
577
579
|
|
|
@@ -6727,6 +6729,10 @@ var RpcChannel = class {
|
|
|
6727
6729
|
versionType !== "transaction" || isRPC08Plus_ResourceBoundsBN(invocation.resourceBounds),
|
|
6728
6730
|
SYSTEM_MESSAGES.SWOldV3
|
|
6729
6731
|
);
|
|
6732
|
+
assert(
|
|
6733
|
+
!invocation.proofFacts?.length && !invocation.proof,
|
|
6734
|
+
SYSTEM_MESSAGES.snip36RequiresRPC010
|
|
6735
|
+
);
|
|
6730
6736
|
const details = {
|
|
6731
6737
|
signature: signatureToHexArray(invocation.signature),
|
|
6732
6738
|
nonce: toHex(invocation.nonce),
|
|
@@ -13999,6 +14005,7 @@ function units(amount, simbol = "fri") {
|
|
|
13999
14005
|
src5,
|
|
14000
14006
|
stark,
|
|
14001
14007
|
starknetId,
|
|
14008
|
+
starknetIdPlugin,
|
|
14002
14009
|
toAnyPatchVersion,
|
|
14003
14010
|
toApiVersion,
|
|
14004
14011
|
transaction,
|