starknet 6.20.2 → 6.21.0
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 +18 -0
- package/README.md +1 -1
- package/dist/index.d.ts +11 -7
- package/dist/index.global.js +1203 -10292
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +42 -33
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +42 -33
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
# [6.21.0](https://github.com/starknet-io/starknet.js/compare/v6.20.3...v6.21.0) (2025-01-08)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- correct enum typed data hashing ([#1281](https://github.com/starknet-io/starknet.js/issues/1281)) ([6e353d3](https://github.com/starknet-io/starknet.js/commit/6e353d3d50226907ce6b5ad53309d55ed51c6874))
|
|
6
|
+
- rectify snip-12 violation by removing extra `:` in enum encoding ([#1288](https://github.com/starknet-io/starknet.js/issues/1288)) ([b903116](https://github.com/starknet-io/starknet.js/commit/b903116e629af5bc375151deb3635cdbe23cc317))
|
|
7
|
+
- repair fetch utility for browser environments ([#1293](https://github.com/starknet-io/starknet.js/issues/1293)) ([2cb1332](https://github.com/starknet-io/starknet.js/commit/2cb13327ffe669000e8152b509d14e060b3ea73b))
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- enable base fetch override ([#1279](https://github.com/starknet-io/starknet.js/issues/1279)) ([0fce61e](https://github.com/starknet-io/starknet.js/commit/0fce61e40535a4f1b3b05fdd9da60f9218250c99))
|
|
12
|
+
|
|
13
|
+
## [6.20.3](https://github.com/starknet-io/starknet.js/compare/v6.20.2...v6.20.3) (2024-11-28)
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
- remove shadowed WalletAccount address property ([3251ffc](https://github.com/starknet-io/starknet.js/commit/3251ffca5551714e24ea6c1fb5488db06919c24e))
|
|
18
|
+
|
|
1
19
|
## [6.20.2](https://github.com/starknet-io/starknet.js/compare/v6.20.1...v6.20.2) (2024-11-28)
|
|
2
20
|
|
|
3
21
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ Play with [Code Examples](https://github.com/PhilippeR26/starknet.js-workshop-ty
|
|
|
59
59
|
|
|
60
60
|
If you consider to contribute to this project please read [CONTRIBUTING.md](https://github.com/starknet-io/starknet.js/blob/main/CONTRIBUTING.md) first.
|
|
61
61
|
|
|
62
|
-
You can also join our dedicated channel for [Starknet.js](https://discord.com/channels/793094838509764618/1270119831559078061) on the [Starknet Discord](https://discord.com/invite/
|
|
62
|
+
You can also join our dedicated channel for [Starknet.js](https://discord.com/channels/793094838509764618/1270119831559078061) on the [Starknet Discord](https://discord.com/invite/starknet-community)
|
|
63
63
|
|
|
64
64
|
## ❤️ Special Thanks
|
|
65
65
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { ETransactionVersion as ETransactionVersion$1, STRUCT_EVENT as STRUCT_EV
|
|
|
3
3
|
export { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from 'starknet-types-07';
|
|
4
4
|
import * as weierstrass from '@noble/curves/abstract/weierstrass';
|
|
5
5
|
import { RecoveredSignatureType } from '@noble/curves/abstract/weierstrass';
|
|
6
|
-
import * as ts_mixer_dist_types_types from 'ts-mixer/dist/types/types';
|
|
7
6
|
import { Abi as Abi$1, TypedContract } from 'abi-wan-kanabi';
|
|
7
|
+
import * as ts_mixer_dist_types_types from 'ts-mixer/dist/types/types';
|
|
8
8
|
import * as poseidon from '@noble/curves/abstract/poseidon';
|
|
9
9
|
import * as json$1 from 'lossless-json';
|
|
10
10
|
import * as starknet from '@scure/starknet';
|
|
@@ -2252,6 +2252,7 @@ type RpcProviderOptions = {
|
|
|
2252
2252
|
specVersion?: string;
|
|
2253
2253
|
default?: boolean;
|
|
2254
2254
|
waitMode?: boolean;
|
|
2255
|
+
baseFetch?: WindowOrWorkerGlobalScope['fetch'];
|
|
2255
2256
|
feeMarginPercentage?: {
|
|
2256
2257
|
l1BoundMaxAmount: number;
|
|
2257
2258
|
l1BoundMaxPricePerUnit: number;
|
|
@@ -2891,14 +2892,15 @@ declare namespace index$2 {
|
|
|
2891
2892
|
declare class RpcChannel$1 {
|
|
2892
2893
|
nodeUrl: string;
|
|
2893
2894
|
headers: object;
|
|
2894
|
-
readonly retries: number;
|
|
2895
2895
|
requestId: number;
|
|
2896
2896
|
readonly blockIdentifier: BlockIdentifier;
|
|
2897
|
+
readonly retries: number;
|
|
2898
|
+
readonly waitMode: boolean;
|
|
2897
2899
|
private chainId?;
|
|
2898
2900
|
private specVersion?;
|
|
2899
2901
|
private transactionRetryIntervalFallback?;
|
|
2900
|
-
readonly waitMode: Boolean;
|
|
2901
2902
|
private batchClient?;
|
|
2903
|
+
private baseFetch;
|
|
2902
2904
|
constructor(optionsOrProvider?: RpcProviderOptions);
|
|
2903
2905
|
private get transactionRetryIntervalDefault();
|
|
2904
2906
|
setChainId(chainId: StarknetChainId): void;
|
|
@@ -2974,14 +2976,15 @@ declare namespace rpc_0_6 {
|
|
|
2974
2976
|
declare class RpcChannel {
|
|
2975
2977
|
nodeUrl: string;
|
|
2976
2978
|
headers: object;
|
|
2977
|
-
readonly retries: number;
|
|
2978
2979
|
requestId: number;
|
|
2979
2980
|
readonly blockIdentifier: BlockIdentifier;
|
|
2981
|
+
readonly retries: number;
|
|
2982
|
+
readonly waitMode: boolean;
|
|
2980
2983
|
private chainId?;
|
|
2981
2984
|
private specVersion?;
|
|
2982
2985
|
private transactionRetryIntervalFallback?;
|
|
2983
|
-
readonly waitMode: Boolean;
|
|
2984
2986
|
private batchClient?;
|
|
2987
|
+
private baseFetch;
|
|
2985
2988
|
constructor(optionsOrProvider?: RpcProviderOptions);
|
|
2986
2989
|
private get transactionRetryIntervalDefault();
|
|
2987
2990
|
setChainId(chainId: StarknetChainId): void;
|
|
@@ -4556,7 +4559,6 @@ interface StarknetWalletProvider extends StarknetWindowObject {
|
|
|
4556
4559
|
}
|
|
4557
4560
|
|
|
4558
4561
|
declare class WalletAccount extends Account implements AccountInterface {
|
|
4559
|
-
address: string;
|
|
4560
4562
|
walletProvider: StarknetWalletProvider;
|
|
4561
4563
|
/**
|
|
4562
4564
|
* @deprecated Use static method WalletAccount.connect or WalletAccount.connectSilent instead. Constructor {@link WalletAccount.(format:2)}.
|
|
@@ -4713,7 +4715,7 @@ declare const splitArgsAndOptions: (args: ArgsOrCalldataWithOptions) => {
|
|
|
4713
4715
|
options: ContractOptions;
|
|
4714
4716
|
} | {
|
|
4715
4717
|
args: ArgsOrCalldata;
|
|
4716
|
-
options?:
|
|
4718
|
+
options?: ContractOptions;
|
|
4717
4719
|
};
|
|
4718
4720
|
declare function getCalldata(args: RawArgs, callback: Function): Calldata;
|
|
4719
4721
|
declare class Contract implements ContractInterface {
|
|
@@ -7297,6 +7299,7 @@ type BatchClientOptions = {
|
|
|
7297
7299
|
nodeUrl: string;
|
|
7298
7300
|
headers: object;
|
|
7299
7301
|
interval: number;
|
|
7302
|
+
baseFetch: NonNullable<RpcProviderOptions['baseFetch']>;
|
|
7300
7303
|
};
|
|
7301
7304
|
declare class BatchClient {
|
|
7302
7305
|
nodeUrl: string;
|
|
@@ -7308,6 +7311,7 @@ declare class BatchClient {
|
|
|
7308
7311
|
private delayTimer?;
|
|
7309
7312
|
private delayPromise?;
|
|
7310
7313
|
private delayPromiseResolve?;
|
|
7314
|
+
private baseFetch;
|
|
7311
7315
|
constructor(options: BatchClientOptions);
|
|
7312
7316
|
private wait;
|
|
7313
7317
|
private addPendingRequest;
|