starknet 6.23.0 → 6.23.1
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/README.md +3 -0
- package/dist/index.d.ts +14 -7
- package/dist/index.global.js +5 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [6.23.1](https://github.com/starknet-io/starknet.js/compare/v6.23.0...v6.23.1) (2025-02-05)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- conf. TxV in Account, conf. string auto. all methods, fix unbdef… ([#1311](https://github.com/starknet-io/starknet.js/issues/1311)) ([1d91ec0](https://github.com/starknet-io/starknet.js/commit/1d91ec00c9b3f5c47dfc77946c7250b7022728a6))
|
|
6
|
+
|
|
1
7
|
# [6.23.0](https://github.com/starknet-io/starknet.js/compare/v6.22.0...v6.23.0) (2025-01-29)
|
|
2
8
|
|
|
3
9
|
### Features
|
package/README.md
CHANGED
|
@@ -32,6 +32,9 @@
|
|
|
32
32
|
<a href="https://twitter.com/starknetjs">
|
|
33
33
|
<img src="https://img.shields.io/badge/follow_us-Twitter-blue">
|
|
34
34
|
</a>
|
|
35
|
+
<a href="https://www.drips.network/app/projects/github/starknet-io/starknet.js" target="_blank">
|
|
36
|
+
<img src="https://www.drips.network/api/embed/project/https%3A%2F%2Fgithub.com%2Fstarknet-io%2Fstarknet.js/support.png?background=light&style=github&text=project&stat=none" alt="Support starknet.js on drips.network" height="20">
|
|
37
|
+
</a>
|
|
35
38
|
</p>
|
|
36
39
|
|
|
37
40
|
## Installation
|
package/dist/index.d.ts
CHANGED
|
@@ -1668,6 +1668,7 @@ declare const HARDENING_4BYTES = 2147483648n;
|
|
|
1668
1668
|
declare const DEFAULT_GLOBAL_CONFIG: {
|
|
1669
1669
|
legacyMode: boolean;
|
|
1670
1670
|
logLevel: LogLevel;
|
|
1671
|
+
accountTxVersion: typeof ETransactionVersion$1.V2 | typeof ETransactionVersion$1.V3;
|
|
1671
1672
|
};
|
|
1672
1673
|
declare const SYSTEM_MESSAGES: {
|
|
1673
1674
|
legacyTxWarningMessage: string;
|
|
@@ -8073,22 +8074,28 @@ declare namespace connect {
|
|
|
8073
8074
|
export { connect_addDeclareTransaction as addDeclareTransaction, connect_addInvokeTransaction as addInvokeTransaction, connect_addStarknetChain as addStarknetChain, connect_deploymentData as deploymentData, connect_getPermissions as getPermissions, connect_onAccountChange as onAccountChange, connect_onNetworkChanged as onNetworkChanged, connect_requestAccounts as requestAccounts, connect_requestChainId as requestChainId, connect_signMessage as signMessage, connect_supportedSpecs as supportedSpecs, connect_switchStarknetChain as switchStarknetChain, connect_watchAsset as watchAsset };
|
|
8074
8075
|
}
|
|
8075
8076
|
|
|
8076
|
-
type
|
|
8077
|
+
type DefaultConfig = typeof DEFAULT_GLOBAL_CONFIG;
|
|
8078
|
+
type CustomConfig = {
|
|
8077
8079
|
[key: string]: any;
|
|
8078
|
-
}
|
|
8080
|
+
};
|
|
8081
|
+
type ConfigData = DefaultConfig & CustomConfig;
|
|
8079
8082
|
declare class Configuration {
|
|
8080
8083
|
private static instance;
|
|
8081
8084
|
private config;
|
|
8082
8085
|
private constructor();
|
|
8083
8086
|
private initialize;
|
|
8084
8087
|
static getInstance(): Configuration;
|
|
8085
|
-
get<K extends keyof
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
+
get<K extends keyof DefaultConfig>(key: K): DefaultConfig[K];
|
|
8089
|
+
get(key: string, defaultValue?: any): any;
|
|
8090
|
+
set<K extends keyof DefaultConfig>(key: K, value: DefaultConfig[K]): void;
|
|
8091
|
+
set(key: string, value: any): void;
|
|
8092
|
+
update(configData: Partial<DefaultConfig> & CustomConfig): void;
|
|
8088
8093
|
getAll(): ConfigData;
|
|
8089
8094
|
reset(): void;
|
|
8090
|
-
delete(key:
|
|
8091
|
-
|
|
8095
|
+
delete<K extends keyof DefaultConfig>(key: K): void;
|
|
8096
|
+
delete(key: string): void;
|
|
8097
|
+
hasKey<K extends keyof DefaultConfig>(key: K): boolean;
|
|
8098
|
+
hasKey(key: string): boolean;
|
|
8092
8099
|
}
|
|
8093
8100
|
declare const config: Configuration;
|
|
8094
8101
|
|
package/dist/index.global.js
CHANGED
|
@@ -3911,7 +3911,8 @@ var starknet = (() => {
|
|
|
3911
3911
|
var HARDENING_4BYTES = 2147483648n;
|
|
3912
3912
|
var DEFAULT_GLOBAL_CONFIG = {
|
|
3913
3913
|
legacyMode: false,
|
|
3914
|
-
logLevel: "INFO"
|
|
3914
|
+
logLevel: "INFO",
|
|
3915
|
+
accountTxVersion: ETransactionVersion4.V2
|
|
3915
3916
|
};
|
|
3916
3917
|
var SYSTEM_MESSAGES = {
|
|
3917
3918
|
legacyTxWarningMessage: "You are using a deprecated transaction version (V0,V1,V2)!\nUpdate to the latest V3 transactions!"
|
|
@@ -19294,7 +19295,9 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
19294
19295
|
address;
|
|
19295
19296
|
cairoVersion;
|
|
19296
19297
|
transactionVersion;
|
|
19297
|
-
constructor(providerOrOptions, address, pkOrSigner, cairoVersion, transactionVersion =
|
|
19298
|
+
constructor(providerOrOptions, address, pkOrSigner, cairoVersion, transactionVersion = config2.get(
|
|
19299
|
+
"accountTxVersion"
|
|
19300
|
+
)) {
|
|
19298
19301
|
super(providerOrOptions);
|
|
19299
19302
|
this.address = address.toLowerCase();
|
|
19300
19303
|
this.signer = isString(pkOrSigner) || pkOrSigner instanceof Uint8Array ? new Signer(pkOrSigner) : pkOrSigner;
|