starknet 6.1.0 → 6.1.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 CHANGED
@@ -1,3 +1,15 @@
1
+ ## [6.1.2](https://github.com/starknet-io/starknet.js/compare/v6.1.1...v6.1.2) (2024-02-20)
2
+
3
+ ### Bug Fixes
4
+
5
+ - drop abi-wan-kanabi-v1 support ([30a4681](https://github.com/starknet-io/starknet.js/commit/30a46815fa9fb88bbcb98df2f4a8dafc5a32b4ab))
6
+
7
+ ## [6.1.1](https://github.com/starknet-io/starknet.js/compare/v6.1.0...v6.1.1) (2024-02-19)
8
+
9
+ ### Bug Fixes
10
+
11
+ - rpc event ([ae3e265](https://github.com/starknet-io/starknet.js/commit/ae3e265f6617bd79c8435483916b0f24be036fa6))
12
+
1
13
  # [6.1.0](https://github.com/starknet-io/starknet.js/compare/v6.0.0...v6.1.0) (2024-02-13)
2
14
 
3
15
  ### Features
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as weierstrass from '@noble/curves/abstract/weierstrass';
2
2
  import * as ts_mixer_dist_types_types from 'ts-mixer/dist/types/types';
3
- import { Abi as Abi$1, TypedContract } from 'abi-wan-kanabi-v1';
4
- import { Abi as Abi$2, TypedContract as TypedContract$1 } from 'abi-wan-kanabi-v2';
3
+ import { Abi as Abi$1, TypedContract } from 'abi-wan-kanabi-v2';
5
4
  import * as poseidon from '@noble/curves/abstract/poseidon';
6
5
  import * as json$1 from 'lossless-json';
7
6
  import * as starknet from '@scure/starknet';
@@ -102,6 +101,8 @@ type RESULT_PAGE_REQUEST = {
102
101
  chunk_size: number;
103
102
  };
104
103
  type EMITTED_EVENT = EVENT$1 & {
104
+ block_hash: BLOCK_HASH;
105
+ block_number: BLOCK_NUMBER;
105
106
  transaction_hash: TXN_HASH;
106
107
  };
107
108
  type EVENT$1 = {
@@ -3741,8 +3742,7 @@ declare module 'abi-wan-kanabi-v2' {
3741
3742
  InvokeFunctionResponse: InvokeFunctionResponse;
3742
3743
  }
3743
3744
  }
3744
- type TypedContractV1<TAbi extends Abi$1> = TypedContract<TAbi> & ContractInterface;
3745
- type TypedContractV2$1<TAbi extends Abi$2> = TypedContract$1<TAbi> & ContractInterface;
3745
+ type TypedContractV2$1<TAbi extends Abi$1> = TypedContract<TAbi> & ContractInterface;
3746
3746
  declare abstract class ContractInterface {
3747
3747
  abstract abi: Abi;
3748
3748
  abstract address: string;
@@ -3837,11 +3837,10 @@ declare abstract class ContractInterface {
3837
3837
  * Retrieves the version of the contract (cairo version & compiler version)
3838
3838
  */
3839
3839
  abstract getVersion(): Promise<ContractVersion>;
3840
- abstract typedv1<TAbi extends Abi$1>(tAbi: TAbi): TypedContractV1<TAbi>;
3841
- abstract typedv2<TAbi extends Abi$2>(tAbi: TAbi): TypedContractV2$1<TAbi>;
3840
+ abstract typedv2<TAbi extends Abi$1>(tAbi: TAbi): TypedContractV2$1<TAbi>;
3842
3841
  }
3843
3842
 
3844
- type TypedContractV2<TAbi extends Abi$2> = TypedContract$1<TAbi> & Contract;
3843
+ type TypedContractV2<TAbi extends Abi$1> = TypedContract<TAbi> & Contract;
3845
3844
  declare const splitArgsAndOptions: (args: ArgsOrCalldataWithOptions) => {
3846
3845
  args: ArgsOrCalldata;
3847
3846
  options: ContractOptions;
@@ -3891,8 +3890,7 @@ declare class Contract implements ContractInterface {
3891
3890
  parseEvents(receipt: GetTransactionReceiptResponse): ParsedEvents;
3892
3891
  isCairo1(): boolean;
3893
3892
  getVersion(): Promise<ContractVersion>;
3894
- typedv1<TAbi extends Abi$1>(tAbi: TAbi): TypedContractV1<TAbi>;
3895
- typedv2<TAbi extends Abi$2>(tAbi: TAbi): TypedContractV2<TAbi>;
3893
+ typedv2<TAbi extends Abi$1>(tAbi: TAbi): TypedContractV2<TAbi>;
3896
3894
  }
3897
3895
 
3898
3896
  type ContractFactoryParams = {
@@ -5280,4 +5278,4 @@ declare function parseUDCEvent(txReceipt: InvokeTransactionReceiptResponse): {
5280
5278
  /** @deprecated prefer the 'num' naming */
5281
5279
  declare const number: typeof num;
5282
5280
 
5283
- export { Abi, AbiEntry, AbiEnums, AbiEvents, AbiStructs, Account, AccountInterface, AccountInvocationItem, AccountInvocations, AccountInvocationsFactoryDetails, AllowArray, Args, ArgsOrCalldata, ArgsOrCalldataWithOptions, ArraySignatureType, AsyncContractFunction, BigNumberish, Block$1 as Block, BlockIdentifier, BlockNumber, BlockStatus, BlockTag, Builtins, ByteArray, ByteCode, Cairo1Event, CairoAssembly, CairoContract, CairoCustomEnum, CairoEnum, CairoEnumRaw, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoVersion, Call, CallContractResponse, CallData, CallDetails, CallOptions, CallStruct, Calldata, CompiledContract, CompiledSierra, CompiledSierraCasm, CompilerVersion, CompleteDeclareContractPayload, CompressedProgram, Contract, ContractClass, ContractClassResponse, ContractEntryPointFields, ContractFactory, ContractFactoryParams, ContractFunction, ContractInterface, ContractOptions, ContractVersion, CustomError, DeclareAndDeployContractPayload, DeclareContractPayload, DeclareContractResponse, DeclareContractTransaction, DeclareDeployUDCResponse, DeclareSignerDetails, DeclareTransactionReceiptResponse, DeployAccountContractPayload, DeployAccountContractTransaction, DeployAccountSignerDetails, DeployAccountTransactionReceiptResponse, DeployContractResponse, DeployContractUDCResponse, DeployTransactionReceiptResponse, Details, EntryPointType, EntryPointsByType, EnumAbi, EstimateFee, EstimateFeeAction, EstimateFeeBulk, EstimateFeeDetails, EstimateFeeResponse, EstimateFeeResponseBulk, EthSigner, EventAbi, EventEntry, FunctionAbi, GatewayError, GetBlockResponse, GetTransactionReceiptResponse, GetTransactionResponse, HexCalldata, HttpError, Invocation, Invocations, InvocationsDetails, InvocationsDetailsWithNonce, InvocationsSignerDetails, InvokeFunctionResponse, InvokeOptions, InvokeTransactionReceiptResponse, L1HandlerTransactionReceiptResponse, LegacyCompiledContract, LegacyContractClass, LegacyEvent, LibraryError, Literal, MultiDeployContractResponse, MultiType, Nonce, OptionalPayload, ParsedEvent, ParsedEvents, ParsedStruct, PendingBlock, PendingStateUpdate, Program, RpcProvider as Provider, ProviderInterface, ProviderOptions, PythonicHints, index$3 as RPC, RawArgs, RawArgsArray, RawArgsObject, RawCalldata, Result, RpcChannel, RpcProvider, RpcProviderOptions, SIMULATION_FLAG, SierraContractClass, SierraContractEntryPointFields, SierraEntryPointsByType, SierraProgramDebugInfo, Signature, Signer, SignerInterface, SimulateTransactionDetails, SimulateTransactionResponse, SimulatedTransaction, SimulationFlags, StarkNetDomain, StarkNetEnumType, StarkNetMerkleType, StarkNetType, StateUpdate, StateUpdateResponse, Storage, StructAbi, TransactionExecutionStatus, TransactionFinalityStatus, TransactionStatus, TransactionType, Tupled, TypedContractV1, TypedContractV2, TypedData, TypedDataRevision, Uint, Uint256, UniversalDeployerContractPayload, UniversalDetails, V2DeclareSignerDetails, V2DeployAccountSignerDetails, V2InvocationsSignerDetails, V3DeclareSignerDetails, V3DeployAccountSignerDetails, V3InvocationsSignerDetails, V3TransactionDetails, ValidateType, WeierstrassSignatureType, addAddressPadding, buildUrl, byteArray, cairo, constants, contractClassResponseToLegacyCompiledContract, defaultProvider, ec, encode, eth, index as events, extractContractHashes, fixProto, fixStack, getCalldata, getChecksumAddress, getContractVersionOptions, getEstimateFeeBulkOptions, getSimulateTransactionOptions, index$1 as hash, isSierra, isUrl, json, merkle, num, number, parseUDCEvent, provider, selector, shortString, splitArgsAndOptions, stark, starknetId, transaction, typedData, index$2 as types, uint256$1 as uint256, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, waitForTransactionOptions };
5281
+ export { Abi, AbiEntry, AbiEnums, AbiEvents, AbiStructs, Account, AccountInterface, AccountInvocationItem, AccountInvocations, AccountInvocationsFactoryDetails, AllowArray, Args, ArgsOrCalldata, ArgsOrCalldataWithOptions, ArraySignatureType, AsyncContractFunction, BigNumberish, Block$1 as Block, BlockIdentifier, BlockNumber, BlockStatus, BlockTag, Builtins, ByteArray, ByteCode, Cairo1Event, CairoAssembly, CairoContract, CairoCustomEnum, CairoEnum, CairoEnumRaw, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoVersion, Call, CallContractResponse, CallData, CallDetails, CallOptions, CallStruct, Calldata, CompiledContract, CompiledSierra, CompiledSierraCasm, CompilerVersion, CompleteDeclareContractPayload, CompressedProgram, Contract, ContractClass, ContractClassResponse, ContractEntryPointFields, ContractFactory, ContractFactoryParams, ContractFunction, ContractInterface, ContractOptions, ContractVersion, CustomError, DeclareAndDeployContractPayload, DeclareContractPayload, DeclareContractResponse, DeclareContractTransaction, DeclareDeployUDCResponse, DeclareSignerDetails, DeclareTransactionReceiptResponse, DeployAccountContractPayload, DeployAccountContractTransaction, DeployAccountSignerDetails, DeployAccountTransactionReceiptResponse, DeployContractResponse, DeployContractUDCResponse, DeployTransactionReceiptResponse, Details, EntryPointType, EntryPointsByType, EnumAbi, EstimateFee, EstimateFeeAction, EstimateFeeBulk, EstimateFeeDetails, EstimateFeeResponse, EstimateFeeResponseBulk, EthSigner, EventAbi, EventEntry, FunctionAbi, GatewayError, GetBlockResponse, GetTransactionReceiptResponse, GetTransactionResponse, HexCalldata, HttpError, Invocation, Invocations, InvocationsDetails, InvocationsDetailsWithNonce, InvocationsSignerDetails, InvokeFunctionResponse, InvokeOptions, InvokeTransactionReceiptResponse, L1HandlerTransactionReceiptResponse, LegacyCompiledContract, LegacyContractClass, LegacyEvent, LibraryError, Literal, MultiDeployContractResponse, MultiType, Nonce, OptionalPayload, ParsedEvent, ParsedEvents, ParsedStruct, PendingBlock, PendingStateUpdate, Program, RpcProvider as Provider, ProviderInterface, ProviderOptions, PythonicHints, index$3 as RPC, RawArgs, RawArgsArray, RawArgsObject, RawCalldata, Result, RpcChannel, RpcProvider, RpcProviderOptions, SIMULATION_FLAG, SierraContractClass, SierraContractEntryPointFields, SierraEntryPointsByType, SierraProgramDebugInfo, Signature, Signer, SignerInterface, SimulateTransactionDetails, SimulateTransactionResponse, SimulatedTransaction, SimulationFlags, StarkNetDomain, StarkNetEnumType, StarkNetMerkleType, StarkNetType, StateUpdate, StateUpdateResponse, Storage, StructAbi, TransactionExecutionStatus, TransactionFinalityStatus, TransactionStatus, TransactionType, Tupled, TypedContractV2, TypedData, TypedDataRevision, Uint, Uint256, UniversalDeployerContractPayload, UniversalDetails, V2DeclareSignerDetails, V2DeployAccountSignerDetails, V2InvocationsSignerDetails, V3DeclareSignerDetails, V3DeployAccountSignerDetails, V3InvocationsSignerDetails, V3TransactionDetails, ValidateType, WeierstrassSignatureType, addAddressPadding, buildUrl, byteArray, cairo, constants, contractClassResponseToLegacyCompiledContract, defaultProvider, ec, encode, eth, index as events, extractContractHashes, fixProto, fixStack, getCalldata, getChecksumAddress, getContractVersionOptions, getEstimateFeeBulkOptions, getSimulateTransactionOptions, index$1 as hash, isSierra, isUrl, json, merkle, num, number, parseUDCEvent, provider, selector, shortString, splitArgsAndOptions, stark, starknetId, transaction, typedData, index$2 as types, uint256$1 as uint256, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, waitForTransactionOptions };
@@ -26202,9 +26202,6 @@ var starknet = (() => {
26202
26202
  async getVersion() {
26203
26203
  return this.providerOrAccount.getContractVersion(this.address);
26204
26204
  }
26205
- typedv1(tAbi) {
26206
- return this;
26207
- }
26208
26205
  typedv2(tAbi) {
26209
26206
  return this;
26210
26207
  }