starknet 8.9.1 → 8.9.2
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 +5 -3
- package/dist/index.global.js +9 -15
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +9 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [8.9.2](https://github.com/starknet-io/starknet.js/compare/v8.9.1...v8.9.2) (2025-12-08)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- replace alchemy with zan for public node ([264d86b](https://github.com/starknet-io/starknet.js/commit/264d86b7831ced1967c3a8824ecb58bda70e19c2))
|
|
6
|
+
|
|
1
7
|
## [8.9.1](https://github.com/starknet-io/starknet.js/compare/v8.9.0...v8.9.1) (2025-11-26)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -3919,8 +3919,8 @@ declare const DEFAULT_GLOBAL_CONFIG: {
|
|
|
3919
3919
|
blake: ((uint8Array: Uint8Array) => Uint8Array) | undefined;
|
|
3920
3920
|
};
|
|
3921
3921
|
declare const RPC_DEFAULT_NODES: {
|
|
3922
|
-
readonly SN_MAIN: readonly ["https://
|
|
3923
|
-
readonly SN_SEPOLIA: readonly ["https://
|
|
3922
|
+
readonly SN_MAIN: readonly ["https://api.zan.top/public/starknet-mainnet/rpc/"];
|
|
3923
|
+
readonly SN_SEPOLIA: readonly ["https://api.zan.top/public/starknet-sepolia/rpc/"];
|
|
3924
3924
|
};
|
|
3925
3925
|
declare const PAYMASTER_RPC_NODES: {
|
|
3926
3926
|
readonly SN_MAIN: readonly ["https://starknet.paymaster.avnu.fi"];
|
|
@@ -7775,7 +7775,9 @@ declare const getDefaultNodeUrl: (networkName?: _NetworkName, mute?: boolean, rp
|
|
|
7775
7775
|
/**
|
|
7776
7776
|
* return Defaults RPC Nodes endpoints
|
|
7777
7777
|
*/
|
|
7778
|
-
declare function getDefaultNodes(rpcVersion: _SupportedRpcVersion):
|
|
7778
|
+
declare function getDefaultNodes(rpcVersion: _SupportedRpcVersion): {
|
|
7779
|
+
[k: string]: string[];
|
|
7780
|
+
};
|
|
7779
7781
|
/**
|
|
7780
7782
|
* Return supported RPC versions
|
|
7781
7783
|
* @returns {SupportedRpcVersion[]} available RPC versions
|
package/dist/index.global.js
CHANGED
|
@@ -1180,8 +1180,8 @@ var starknet = (() => {
|
|
|
1180
1180
|
blake: void 0
|
|
1181
1181
|
};
|
|
1182
1182
|
var RPC_DEFAULT_NODES = {
|
|
1183
|
-
SN_MAIN: [`https://
|
|
1184
|
-
SN_SEPOLIA: [`https://
|
|
1183
|
+
SN_MAIN: [`https://api.zan.top/public/starknet-mainnet/rpc/`],
|
|
1184
|
+
SN_SEPOLIA: [`https://api.zan.top/public/starknet-sepolia/rpc/`]
|
|
1185
1185
|
};
|
|
1186
1186
|
var PAYMASTER_RPC_NODES = {
|
|
1187
1187
|
SN_MAIN: [`https://starknet.paymaster.avnu.fi`],
|
|
@@ -14756,19 +14756,13 @@ ${indent}}` : "}";
|
|
|
14756
14756
|
return nodes[randIdx];
|
|
14757
14757
|
};
|
|
14758
14758
|
function getDefaultNodes(rpcVersion) {
|
|
14759
|
-
const
|
|
14760
|
-
Object.
|
|
14761
|
-
|
|
14762
|
-
|
|
14763
|
-
|
|
14764
|
-
|
|
14765
|
-
|
|
14766
|
-
return `${it}${toApiVersion(rpcVersion)}/uYLxCteYbHTFJpKSoKdVm`;
|
|
14767
|
-
}
|
|
14768
|
-
return `${it}${toApiVersion(rpcVersion)}`;
|
|
14769
|
-
});
|
|
14770
|
-
});
|
|
14771
|
-
return nodes;
|
|
14759
|
+
const apiVersion = toApiVersion(rpcVersion);
|
|
14760
|
+
return Object.fromEntries(
|
|
14761
|
+
Object.entries(RPC_DEFAULT_NODES).map(([key, urls]) => [
|
|
14762
|
+
key,
|
|
14763
|
+
urls.map((url) => `${url}${apiVersion}`)
|
|
14764
|
+
])
|
|
14765
|
+
);
|
|
14772
14766
|
}
|
|
14773
14767
|
function getSupportedRpcVersions() {
|
|
14774
14768
|
return [...new Set(Object.values(_SupportedRpcVersion))];
|