starknet 5.9.2 → 5.10.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 +20 -0
- package/dist/index.d.ts +92 -71
- package/dist/index.global.js +1872 -1839
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +679 -641
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +671 -633
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [5.10.1](https://github.com/0xs34n/starknet.js/compare/v5.10.0...v5.10.1) (2023-05-16)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- c1 acc execute props order, c1 test flag, local testing fix ([d86057c](https://github.com/0xs34n/starknet.js/commit/d86057cefe9e4053dac6d45d043401605246d3ed))
|
|
6
|
+
|
|
7
|
+
# [5.10.0](https://github.com/0xs34n/starknet.js/compare/v5.9.2...v5.10.0) (2023-05-10)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- merge next and cleanup ([067673f](https://github.com/0xs34n/starknet.js/commit/067673ffbc9f414c33018d5cd83c29a001c5e9ab))
|
|
12
|
+
- nested 2d arrays request and response ([cccf518](https://github.com/0xs34n/starknet.js/commit/cccf518acc950bfed7579513c812df33cebb774d))
|
|
13
|
+
- ts getClassHashAt oprional blockid ([f54bfd0](https://github.com/0xs34n/starknet.js/commit/f54bfd0e9591d1ec1dccf20668de68272834fa46))
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
- declareIfNot, update declareAndDeploy with it, cleanup cairo1 test ([494dbb8](https://github.com/0xs34n/starknet.js/commit/494dbb8a84608415a279b2bfa84103667321a84e))
|
|
18
|
+
- improve usage by extending RawCalldata to RawArgs in all major flows ([0ef1ec8](https://github.com/0xs34n/starknet.js/commit/0ef1ec8624e294a526f8e97d856e70b6426a9ae3))
|
|
19
|
+
- make cairoVersion a property of Account ([b6a7d38](https://github.com/0xs34n/starknet.js/commit/b6a7d38e98c65e24cffac5485819797560b5571c))
|
|
20
|
+
|
|
1
21
|
## [5.9.2](https://github.com/0xs34n/starknet.js/compare/v5.9.1...v5.9.2) (2023-05-03)
|
|
2
22
|
|
|
3
23
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -363,6 +363,9 @@ declare type UniversalDeployerContractPayload = {
|
|
|
363
363
|
unique?: boolean;
|
|
364
364
|
constructorCalldata?: RawArgs;
|
|
365
365
|
};
|
|
366
|
+
/**
|
|
367
|
+
* @deprecated deprecated due to no direct deploy, unused - can be removed
|
|
368
|
+
*/
|
|
366
369
|
declare type DeployContractPayload = {
|
|
367
370
|
contract: CompiledContract | string;
|
|
368
371
|
constructorCalldata?: RawCalldata;
|
|
@@ -370,7 +373,7 @@ declare type DeployContractPayload = {
|
|
|
370
373
|
};
|
|
371
374
|
declare type DeployAccountContractPayload = {
|
|
372
375
|
classHash: string;
|
|
373
|
-
constructorCalldata?:
|
|
376
|
+
constructorCalldata?: RawArgs;
|
|
374
377
|
addressSalt?: BigNumberish;
|
|
375
378
|
contractAddress?: string;
|
|
376
379
|
};
|
|
@@ -398,7 +401,7 @@ declare type DeclareContractTransaction = {
|
|
|
398
401
|
};
|
|
399
402
|
declare type CallDetails = {
|
|
400
403
|
contractAddress: string;
|
|
401
|
-
calldata?:
|
|
404
|
+
calldata?: RawArgs;
|
|
402
405
|
};
|
|
403
406
|
declare type Invocation = CallDetails & {
|
|
404
407
|
signature?: Signature;
|
|
@@ -411,7 +414,6 @@ declare type InvocationsDetails = {
|
|
|
411
414
|
nonce?: BigNumberish;
|
|
412
415
|
maxFee?: BigNumberish;
|
|
413
416
|
version?: BigNumberish;
|
|
414
|
-
cairoVersion?: CairoVersion;
|
|
415
417
|
};
|
|
416
418
|
/**
|
|
417
419
|
* Contain all additional details params
|
|
@@ -495,6 +497,7 @@ interface CallStruct {
|
|
|
495
497
|
interface InvocationsSignerDetails extends Required<InvocationsDetails> {
|
|
496
498
|
walletAddress: string;
|
|
497
499
|
chainId: StarknetChainId;
|
|
500
|
+
cairoVersion: CairoVersion;
|
|
498
501
|
}
|
|
499
502
|
interface DeclareSignerDetails {
|
|
500
503
|
classHash: string;
|
|
@@ -505,7 +508,7 @@ interface DeclareSignerDetails {
|
|
|
505
508
|
nonce: BigNumberish;
|
|
506
509
|
compiledClassHash?: string;
|
|
507
510
|
}
|
|
508
|
-
declare type DeployAccountSignerDetails = Required<DeployAccountContractPayload> &
|
|
511
|
+
declare type DeployAccountSignerDetails = Required<DeployAccountContractPayload> & Required<InvocationsDetails> & {
|
|
509
512
|
contractAddress: BigNumberish;
|
|
510
513
|
chainId: StarknetChainId;
|
|
511
514
|
};
|
|
@@ -1714,7 +1717,6 @@ interface EstimateFeeDetails {
|
|
|
1714
1717
|
nonce?: BigNumberish;
|
|
1715
1718
|
blockIdentifier?: BlockIdentifier;
|
|
1716
1719
|
skipValidate?: boolean;
|
|
1717
|
-
cairoVersion?: CairoVersion;
|
|
1718
1720
|
}
|
|
1719
1721
|
interface DeployContractResponse {
|
|
1720
1722
|
contract_address: string;
|
|
@@ -1738,7 +1740,7 @@ declare type DeployContractUDCResponse = {
|
|
|
1738
1740
|
declare type DeclareDeployUDCResponse = {
|
|
1739
1741
|
declare: {
|
|
1740
1742
|
class_hash: BigNumberish;
|
|
1741
|
-
} & DeclareTransactionReceiptResponse
|
|
1743
|
+
} & Partial<DeclareTransactionReceiptResponse>;
|
|
1742
1744
|
deploy: DeployContractUDCResponse;
|
|
1743
1745
|
};
|
|
1744
1746
|
interface TransactionSimulation extends TransactionSimulationResponse {
|
|
@@ -2154,7 +2156,7 @@ declare class Provider implements ProviderInterface {
|
|
|
2154
2156
|
getChainId(): Promise<StarknetChainId>;
|
|
2155
2157
|
getBlock(blockIdentifier: BlockIdentifier): Promise<GetBlockResponse>;
|
|
2156
2158
|
getClassAt(contractAddress: string, blockIdentifier?: BlockIdentifier): Promise<ContractClass | RPC.ContractClass>;
|
|
2157
|
-
getClassHashAt(contractAddress: string, blockIdentifier
|
|
2159
|
+
getClassHashAt(contractAddress: string, blockIdentifier?: BlockIdentifier): Promise<string>;
|
|
2158
2160
|
getClassByHash(classHash: string): Promise<ContractClass | RPC.ContractClass>;
|
|
2159
2161
|
getEstimateFee(invocationWithTxType: Invocation, invocationDetails: InvocationsDetailsWithNonce, blockIdentifier: BlockIdentifier): Promise<EstimateFeeResponse>;
|
|
2160
2162
|
getInvokeEstimateFee(invocationWithTxType: Invocation, invocationDetails: InvocationsDetailsWithNonce, blockIdentifier?: BlockIdentifier, skipValidate?: boolean): Promise<EstimateFeeResponse>;
|
|
@@ -2401,6 +2403,7 @@ declare class Signer implements SignerInterface {
|
|
|
2401
2403
|
declare abstract class AccountInterface extends ProviderInterface {
|
|
2402
2404
|
abstract address: string;
|
|
2403
2405
|
abstract signer: SignerInterface;
|
|
2406
|
+
abstract cairoVersion: CairoVersion;
|
|
2404
2407
|
/**
|
|
2405
2408
|
* Estimate Fee for executing an INVOKE transaction on starknet
|
|
2406
2409
|
*
|
|
@@ -2535,6 +2538,7 @@ declare abstract class AccountInterface extends ProviderInterface {
|
|
|
2535
2538
|
/**
|
|
2536
2539
|
* Declares and Deploy a given compiled contract (json) to starknet using UDC
|
|
2537
2540
|
* Internal wait for L2 transaction, do not support multicall
|
|
2541
|
+
* Method will pass even if contract is already declared (internal using DeclareIfNot)
|
|
2538
2542
|
*
|
|
2539
2543
|
* @param containing
|
|
2540
2544
|
* - contract: compiled contract code
|
|
@@ -2644,20 +2648,31 @@ declare abstract class AccountInterface extends ProviderInterface {
|
|
|
2644
2648
|
declare class Account extends Provider implements AccountInterface {
|
|
2645
2649
|
signer: SignerInterface;
|
|
2646
2650
|
address: string;
|
|
2647
|
-
|
|
2651
|
+
cairoVersion: CairoVersion;
|
|
2652
|
+
constructor(providerOrOptions: ProviderOptions | ProviderInterface, address: string, pkOrSigner: Uint8Array | string | SignerInterface, cairoVersion?: CairoVersion);
|
|
2648
2653
|
getNonce(blockIdentifier?: BlockIdentifier): Promise<Nonce>;
|
|
2649
2654
|
estimateFee(calls: AllowArray<Call>, estimateFeeDetails?: EstimateFeeDetails | undefined): Promise<EstimateFee>;
|
|
2650
|
-
estimateInvokeFee(calls: AllowArray<Call>, { nonce: providedNonce, blockIdentifier, skipValidate
|
|
2651
|
-
estimateDeclareFee({ contract, classHash: providedClassHash, casm, compiledClassHash }: DeclareContractPayload, { blockIdentifier, nonce: providedNonce, skipValidate
|
|
2652
|
-
estimateAccountDeployFee({ classHash, addressSalt, constructorCalldata, contractAddress: providedContractAddress, }: DeployAccountContractPayload, { blockIdentifier, skipValidate
|
|
2655
|
+
estimateInvokeFee(calls: AllowArray<Call>, { nonce: providedNonce, blockIdentifier, skipValidate }?: EstimateFeeDetails): Promise<EstimateFee>;
|
|
2656
|
+
estimateDeclareFee({ contract, classHash: providedClassHash, casm, compiledClassHash }: DeclareContractPayload, { blockIdentifier, nonce: providedNonce, skipValidate }?: EstimateFeeDetails): Promise<EstimateFee>;
|
|
2657
|
+
estimateAccountDeployFee({ classHash, addressSalt, constructorCalldata, contractAddress: providedContractAddress, }: DeployAccountContractPayload, { blockIdentifier, skipValidate }?: EstimateFeeDetails): Promise<EstimateFee>;
|
|
2653
2658
|
estimateDeployFee(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], transactionsDetail?: InvocationsDetails | undefined): Promise<EstimateFee>;
|
|
2654
|
-
estimateFeeBulk(transactions: TransactionBulk, { nonce: providedNonce, blockIdentifier
|
|
2659
|
+
estimateFeeBulk(transactions: TransactionBulk, { nonce: providedNonce, blockIdentifier }?: EstimateFeeDetails): Promise<EstimateFeeBulk>;
|
|
2655
2660
|
buildInvocation(call: Array<Call>, signerDetails: InvocationsSignerDetails): Promise<Invocation>;
|
|
2656
2661
|
execute(calls: AllowArray<Call>, abis?: Abi[] | undefined, transactionsDetail?: InvocationsDetails): Promise<InvokeFunctionResponse>;
|
|
2662
|
+
/**
|
|
2663
|
+
* First check if contract is already declared, if not declare it
|
|
2664
|
+
* If contract already declared returned transaction_hash is ''.
|
|
2665
|
+
* Method will pass even if contract is already declared
|
|
2666
|
+
* @param payload DeclareContractPayload
|
|
2667
|
+
* @param transactionsDetail (optional) InvocationsDetails = \{\}
|
|
2668
|
+
* @returns DeclareContractResponse
|
|
2669
|
+
*/
|
|
2670
|
+
declareIfNot(payload: DeclareContractPayload, transactionsDetail?: InvocationsDetails): Promise<DeclareContractResponse>;
|
|
2657
2671
|
declare(payload: DeclareContractPayload, transactionsDetail?: InvocationsDetails): Promise<DeclareContractResponse>;
|
|
2658
2672
|
deploy(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], details?: InvocationsDetails | undefined): Promise<MultiDeployContractResponse>;
|
|
2659
2673
|
deployContract(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[], details?: InvocationsDetails | undefined): Promise<DeployContractUDCResponse>;
|
|
2660
2674
|
declareAndDeploy(payload: DeclareAndDeployContractPayload, details?: InvocationsDetails | undefined): Promise<DeclareDeployUDCResponse>;
|
|
2675
|
+
deploySelf: ({ classHash, constructorCalldata, addressSalt, contractAddress: providedContractAddress, }: DeployAccountContractPayload, transactionsDetail?: InvocationsDetails) => Promise<DeployContractResponse>;
|
|
2661
2676
|
deployAccount({ classHash, constructorCalldata, addressSalt, contractAddress: providedContractAddress, }: DeployAccountContractPayload, transactionsDetail?: InvocationsDetails): Promise<DeployContractResponse>;
|
|
2662
2677
|
signMessage(typedData: TypedData): Promise<Signature>;
|
|
2663
2678
|
hashMessage(typedData: TypedData): Promise<string>;
|
|
@@ -2665,12 +2680,12 @@ declare class Account extends Provider implements AccountInterface {
|
|
|
2665
2680
|
verifyMessage(typedData: TypedData, signature: Signature): Promise<boolean>;
|
|
2666
2681
|
getSuggestedMaxFee({ type, payload }: EstimateFeeAction, details: EstimateFeeDetails): Promise<bigint>;
|
|
2667
2682
|
/**
|
|
2668
|
-
*
|
|
2683
|
+
* will be renamed to buildDeclareContractTransaction
|
|
2669
2684
|
*/
|
|
2670
2685
|
buildDeclarePayload(payload: DeclareContractPayload, { nonce, chainId, version, walletAddress, maxFee }: InvocationsSignerDetails): Promise<DeclareContractTransaction>;
|
|
2671
2686
|
buildAccountDeployPayload({ classHash, addressSalt, constructorCalldata, contractAddress: providedContractAddress, }: DeployAccountContractPayload, { nonce, chainId, version, maxFee }: InvocationsSignerDetails): Promise<DeployAccountContractTransaction>;
|
|
2672
2687
|
buildUDCContractPayload(payload: UniversalDeployerContractPayload | UniversalDeployerContractPayload[]): Call[];
|
|
2673
|
-
simulateTransaction(calls: AllowArray<Call>, { nonce: providedNonce, blockIdentifier, skipValidate
|
|
2688
|
+
simulateTransaction(calls: AllowArray<Call>, { nonce: providedNonce, blockIdentifier, skipValidate }?: EstimateFeeDetails): Promise<TransactionSimulation>;
|
|
2674
2689
|
getStarkName(address?: BigNumberish, // default to the wallet address
|
|
2675
2690
|
StarknetIdContract?: string): Promise<string>;
|
|
2676
2691
|
}
|
|
@@ -2831,9 +2846,11 @@ declare class ContractFactory {
|
|
|
2831
2846
|
attach(address: string): Contract;
|
|
2832
2847
|
}
|
|
2833
2848
|
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2849
|
+
/**
|
|
2850
|
+
* Keccak hash BigNumberish value
|
|
2851
|
+
* @param value BigNumberish
|
|
2852
|
+
* @returns string - hexadecimal string
|
|
2853
|
+
*/
|
|
2837
2854
|
declare function keccakBn(value: BigNumberish): string;
|
|
2838
2855
|
/**
|
|
2839
2856
|
* Function to get the starknet keccak hash from a string
|
|
@@ -2857,13 +2874,17 @@ declare function getSelectorFromName(funcName: string): string;
|
|
|
2857
2874
|
* @returns Hex selector
|
|
2858
2875
|
*/
|
|
2859
2876
|
declare function getSelector(value: string): string;
|
|
2877
|
+
|
|
2878
|
+
declare const transactionVersion = 1n;
|
|
2879
|
+
declare const transactionVersion_2 = 2n;
|
|
2880
|
+
declare const feeTransactionVersion: bigint;
|
|
2860
2881
|
declare function computeHashOnElements(data: BigNumberish[]): string;
|
|
2861
2882
|
declare function calculateTransactionHashCommon(txHashPrefix: TransactionHashPrefix, version: BigNumberish, contractAddress: BigNumberish, entryPointSelector: BigNumberish, calldata: RawCalldata, maxFee: BigNumberish, chainId: StarknetChainId, additionalData?: BigNumberish[]): string;
|
|
2862
2883
|
declare function calculateDeployTransactionHash(contractAddress: BigNumberish, constructorCalldata: RawCalldata, version: BigNumberish, chainId: StarknetChainId): string;
|
|
2863
2884
|
declare function calculateDeclareTransactionHash(classHash: string, senderAddress: BigNumberish, version: BigNumberish, maxFee: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish, compiledClassHash?: string): string;
|
|
2864
2885
|
declare function calculateDeployAccountTransactionHash(contractAddress: BigNumberish, classHash: BigNumberish, constructorCalldata: RawCalldata, salt: BigNumberish, version: BigNumberish, maxFee: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish): string;
|
|
2865
2886
|
declare function calculateTransactionHash(contractAddress: BigNumberish, version: BigNumberish, calldata: RawCalldata, maxFee: BigNumberish, chainId: StarknetChainId, nonce: BigNumberish): string;
|
|
2866
|
-
declare function calculateContractAddressFromHash(salt: BigNumberish, classHash: BigNumberish, constructorCalldata:
|
|
2887
|
+
declare function calculateContractAddressFromHash(salt: BigNumberish, classHash: BigNumberish, constructorCalldata: RawArgs, deployerAddress: BigNumberish): string;
|
|
2867
2888
|
declare function formatSpaces(json: string): string;
|
|
2868
2889
|
declare function computeHintedClassHash(compiledContract: LegacyCompiledContract): string;
|
|
2869
2890
|
declare function computeLegacyContractClassHash(contract: LegacyCompiledContract | string): string;
|
|
@@ -2879,10 +2900,6 @@ declare function computeContractClassHash(contract: CompiledContract | string):
|
|
|
2879
2900
|
declare const hash_transactionVersion: typeof transactionVersion;
|
|
2880
2901
|
declare const hash_transactionVersion_2: typeof transactionVersion_2;
|
|
2881
2902
|
declare const hash_feeTransactionVersion: typeof feeTransactionVersion;
|
|
2882
|
-
declare const hash_keccakBn: typeof keccakBn;
|
|
2883
|
-
declare const hash_starknetKeccak: typeof starknetKeccak;
|
|
2884
|
-
declare const hash_getSelectorFromName: typeof getSelectorFromName;
|
|
2885
|
-
declare const hash_getSelector: typeof getSelector;
|
|
2886
2903
|
declare const hash_computeHashOnElements: typeof computeHashOnElements;
|
|
2887
2904
|
declare const hash_calculateTransactionHashCommon: typeof calculateTransactionHashCommon;
|
|
2888
2905
|
declare const hash_calculateDeployTransactionHash: typeof calculateDeployTransactionHash;
|
|
@@ -2896,16 +2913,16 @@ declare const hash_computeCompiledClassHash: typeof computeCompiledClassHash;
|
|
|
2896
2913
|
declare const hash_computeSierraContractClassHash: typeof computeSierraContractClassHash;
|
|
2897
2914
|
declare const hash_computeContractClassHash: typeof computeContractClassHash;
|
|
2898
2915
|
declare const hash_poseidon: typeof poseidon;
|
|
2916
|
+
declare const hash_keccakBn: typeof keccakBn;
|
|
2917
|
+
declare const hash_starknetKeccak: typeof starknetKeccak;
|
|
2918
|
+
declare const hash_getSelectorFromName: typeof getSelectorFromName;
|
|
2919
|
+
declare const hash_getSelector: typeof getSelector;
|
|
2899
2920
|
declare namespace hash {
|
|
2900
2921
|
export {
|
|
2901
2922
|
computeHintedClassHash as default,
|
|
2902
2923
|
hash_transactionVersion as transactionVersion,
|
|
2903
2924
|
hash_transactionVersion_2 as transactionVersion_2,
|
|
2904
2925
|
hash_feeTransactionVersion as feeTransactionVersion,
|
|
2905
|
-
hash_keccakBn as keccakBn,
|
|
2906
|
-
hash_starknetKeccak as starknetKeccak,
|
|
2907
|
-
hash_getSelectorFromName as getSelectorFromName,
|
|
2908
|
-
hash_getSelector as getSelector,
|
|
2909
2926
|
hash_computeHashOnElements as computeHashOnElements,
|
|
2910
2927
|
hash_calculateTransactionHashCommon as calculateTransactionHashCommon,
|
|
2911
2928
|
hash_calculateDeployTransactionHash as calculateDeployTransactionHash,
|
|
@@ -2919,6 +2936,10 @@ declare namespace hash {
|
|
|
2919
2936
|
hash_computeSierraContractClassHash as computeSierraContractClassHash,
|
|
2920
2937
|
hash_computeContractClassHash as computeContractClassHash,
|
|
2921
2938
|
hash_poseidon as poseidon,
|
|
2939
|
+
hash_keccakBn as keccakBn,
|
|
2940
|
+
hash_starknetKeccak as starknetKeccak,
|
|
2941
|
+
hash_getSelectorFromName as getSelectorFromName,
|
|
2942
|
+
hash_getSelector as getSelector,
|
|
2922
2943
|
};
|
|
2923
2944
|
}
|
|
2924
2945
|
|
|
@@ -3180,50 +3201,50 @@ declare const uint256: (it: BigNumberish) => Uint256;
|
|
|
3180
3201
|
/**
|
|
3181
3202
|
* unnamed tuple cairo type (helper same as common struct type)
|
|
3182
3203
|
*/
|
|
3183
|
-
declare const tuple: (...args: (BigNumberish | object)[]) => {
|
|
3184
|
-
[x: number]: object | BigNumberish;
|
|
3204
|
+
declare const tuple: (...args: (BigNumberish | object | boolean)[]) => {
|
|
3205
|
+
[x: number]: boolean | object | BigNumberish;
|
|
3185
3206
|
length: number;
|
|
3186
3207
|
toString(): string;
|
|
3187
3208
|
toLocaleString(): string;
|
|
3188
|
-
pop(): object | BigNumberish | undefined;
|
|
3189
|
-
push(...items: (object | BigNumberish)[]): number;
|
|
3190
|
-
concat(...items: ConcatArray<object | BigNumberish>[]): (object | BigNumberish)[];
|
|
3191
|
-
concat(...items: (object | BigNumberish | ConcatArray<object | BigNumberish>)[]): (object | BigNumberish)[];
|
|
3209
|
+
pop(): boolean | object | BigNumberish | undefined;
|
|
3210
|
+
push(...items: (boolean | object | BigNumberish)[]): number;
|
|
3211
|
+
concat(...items: ConcatArray<boolean | object | BigNumberish>[]): (boolean | object | BigNumberish)[];
|
|
3212
|
+
concat(...items: (boolean | object | BigNumberish | ConcatArray<boolean | object | BigNumberish>)[]): (boolean | object | BigNumberish)[];
|
|
3192
3213
|
join(separator?: string | undefined): string;
|
|
3193
|
-
reverse(): (object | BigNumberish)[];
|
|
3194
|
-
shift(): object | BigNumberish | undefined;
|
|
3195
|
-
slice(start?: number | undefined, end?: number | undefined): (object | BigNumberish)[];
|
|
3196
|
-
sort(compareFn?: ((a: object | BigNumberish, b: object | BigNumberish) => number) | undefined): (object | BigNumberish)[];
|
|
3197
|
-
splice(start: number, deleteCount?: number | undefined): (object | BigNumberish)[];
|
|
3198
|
-
splice(start: number, deleteCount: number, ...items: (object | BigNumberish)[]): (object | BigNumberish)[];
|
|
3199
|
-
unshift(...items: (object | BigNumberish)[]): number;
|
|
3200
|
-
indexOf(searchElement: object | BigNumberish, fromIndex?: number | undefined): number;
|
|
3201
|
-
lastIndexOf(searchElement: object | BigNumberish, fromIndex?: number | undefined): number;
|
|
3202
|
-
every<S extends object | BigNumberish>(predicate: (value: object | BigNumberish, index: number, array: (object | BigNumberish)[]) => value is S, thisArg?: any): this is S[];
|
|
3203
|
-
every(predicate: (value: object | BigNumberish, index: number, array: (object | BigNumberish)[]) => unknown, thisArg?: any): boolean;
|
|
3204
|
-
some(predicate: (value: object | BigNumberish, index: number, array: (object | BigNumberish)[]) => unknown, thisArg?: any): boolean;
|
|
3205
|
-
forEach(callbackfn: (value: object | BigNumberish, index: number, array: (object | BigNumberish)[]) => void, thisArg?: any): void;
|
|
3206
|
-
map<U>(callbackfn: (value: object | BigNumberish, index: number, array: (object | BigNumberish)[]) => U, thisArg?: any): U[];
|
|
3207
|
-
filter<S_1 extends object | BigNumberish>(predicate: (value: object | BigNumberish, index: number, array: (object | BigNumberish)[]) => value is S_1, thisArg?: any): S_1[];
|
|
3208
|
-
filter(predicate: (value: object | BigNumberish, index: number, array: (object | BigNumberish)[]) => unknown, thisArg?: any): (object | BigNumberish)[];
|
|
3209
|
-
reduce(callbackfn: (previousValue: object | BigNumberish, currentValue: object | BigNumberish, currentIndex: number, array: (object | BigNumberish)[]) => object | BigNumberish): object | BigNumberish;
|
|
3210
|
-
reduce(callbackfn: (previousValue: object | BigNumberish, currentValue: object | BigNumberish, currentIndex: number, array: (object | BigNumberish)[]) => object | BigNumberish, initialValue: object | BigNumberish): object | BigNumberish;
|
|
3211
|
-
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: object | BigNumberish, currentIndex: number, array: (object | BigNumberish)[]) => U_1, initialValue: U_1): U_1;
|
|
3212
|
-
reduceRight(callbackfn: (previousValue: object | BigNumberish, currentValue: object | BigNumberish, currentIndex: number, array: (object | BigNumberish)[]) => object | BigNumberish): object | BigNumberish;
|
|
3213
|
-
reduceRight(callbackfn: (previousValue: object | BigNumberish, currentValue: object | BigNumberish, currentIndex: number, array: (object | BigNumberish)[]) => object | BigNumberish, initialValue: object | BigNumberish): object | BigNumberish;
|
|
3214
|
-
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: object | BigNumberish, currentIndex: number, array: (object | BigNumberish)[]) => U_2, initialValue: U_2): U_2;
|
|
3215
|
-
find<S_2 extends object | BigNumberish>(predicate: (this: void, value: object | BigNumberish, index: number, obj: (object | BigNumberish)[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
3216
|
-
find(predicate: (value: object | BigNumberish, index: number, obj: (object | BigNumberish)[]) => unknown, thisArg?: any): object | BigNumberish | undefined;
|
|
3217
|
-
findIndex(predicate: (value: object | BigNumberish, index: number, obj: (object | BigNumberish)[]) => unknown, thisArg?: any): number;
|
|
3218
|
-
fill(value: object | BigNumberish, start?: number | undefined, end?: number | undefined): (object | BigNumberish)[];
|
|
3219
|
-
copyWithin(target: number, start: number, end?: number | undefined): (object | BigNumberish)[];
|
|
3220
|
-
entries(): IterableIterator<[number, object | BigNumberish]>;
|
|
3214
|
+
reverse(): (boolean | object | BigNumberish)[];
|
|
3215
|
+
shift(): boolean | object | BigNumberish | undefined;
|
|
3216
|
+
slice(start?: number | undefined, end?: number | undefined): (boolean | object | BigNumberish)[];
|
|
3217
|
+
sort(compareFn?: ((a: boolean | object | BigNumberish, b: boolean | object | BigNumberish) => number) | undefined): (boolean | object | BigNumberish)[];
|
|
3218
|
+
splice(start: number, deleteCount?: number | undefined): (boolean | object | BigNumberish)[];
|
|
3219
|
+
splice(start: number, deleteCount: number, ...items: (boolean | object | BigNumberish)[]): (boolean | object | BigNumberish)[];
|
|
3220
|
+
unshift(...items: (boolean | object | BigNumberish)[]): number;
|
|
3221
|
+
indexOf(searchElement: boolean | object | BigNumberish, fromIndex?: number | undefined): number;
|
|
3222
|
+
lastIndexOf(searchElement: boolean | object | BigNumberish, fromIndex?: number | undefined): number;
|
|
3223
|
+
every<S extends boolean | object | BigNumberish>(predicate: (value: boolean | object | BigNumberish, index: number, array: (boolean | object | BigNumberish)[]) => value is S, thisArg?: any): this is S[];
|
|
3224
|
+
every(predicate: (value: boolean | object | BigNumberish, index: number, array: (boolean | object | BigNumberish)[]) => unknown, thisArg?: any): boolean;
|
|
3225
|
+
some(predicate: (value: boolean | object | BigNumberish, index: number, array: (boolean | object | BigNumberish)[]) => unknown, thisArg?: any): boolean;
|
|
3226
|
+
forEach(callbackfn: (value: boolean | object | BigNumberish, index: number, array: (boolean | object | BigNumberish)[]) => void, thisArg?: any): void;
|
|
3227
|
+
map<U>(callbackfn: (value: boolean | object | BigNumberish, index: number, array: (boolean | object | BigNumberish)[]) => U, thisArg?: any): U[];
|
|
3228
|
+
filter<S_1 extends boolean | object | BigNumberish>(predicate: (value: boolean | object | BigNumberish, index: number, array: (boolean | object | BigNumberish)[]) => value is S_1, thisArg?: any): S_1[];
|
|
3229
|
+
filter(predicate: (value: boolean | object | BigNumberish, index: number, array: (boolean | object | BigNumberish)[]) => unknown, thisArg?: any): (boolean | object | BigNumberish)[];
|
|
3230
|
+
reduce(callbackfn: (previousValue: boolean | object | BigNumberish, currentValue: boolean | object | BigNumberish, currentIndex: number, array: (boolean | object | BigNumberish)[]) => boolean | object | BigNumberish): boolean | object | BigNumberish;
|
|
3231
|
+
reduce(callbackfn: (previousValue: boolean | object | BigNumberish, currentValue: boolean | object | BigNumberish, currentIndex: number, array: (boolean | object | BigNumberish)[]) => boolean | object | BigNumberish, initialValue: boolean | object | BigNumberish): boolean | object | BigNumberish;
|
|
3232
|
+
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: boolean | object | BigNumberish, currentIndex: number, array: (boolean | object | BigNumberish)[]) => U_1, initialValue: U_1): U_1;
|
|
3233
|
+
reduceRight(callbackfn: (previousValue: boolean | object | BigNumberish, currentValue: boolean | object | BigNumberish, currentIndex: number, array: (boolean | object | BigNumberish)[]) => boolean | object | BigNumberish): boolean | object | BigNumberish;
|
|
3234
|
+
reduceRight(callbackfn: (previousValue: boolean | object | BigNumberish, currentValue: boolean | object | BigNumberish, currentIndex: number, array: (boolean | object | BigNumberish)[]) => boolean | object | BigNumberish, initialValue: boolean | object | BigNumberish): boolean | object | BigNumberish;
|
|
3235
|
+
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: boolean | object | BigNumberish, currentIndex: number, array: (boolean | object | BigNumberish)[]) => U_2, initialValue: U_2): U_2;
|
|
3236
|
+
find<S_2 extends boolean | object | BigNumberish>(predicate: (this: void, value: boolean | object | BigNumberish, index: number, obj: (boolean | object | BigNumberish)[]) => value is S_2, thisArg?: any): S_2 | undefined;
|
|
3237
|
+
find(predicate: (value: boolean | object | BigNumberish, index: number, obj: (boolean | object | BigNumberish)[]) => unknown, thisArg?: any): boolean | object | BigNumberish | undefined;
|
|
3238
|
+
findIndex(predicate: (value: boolean | object | BigNumberish, index: number, obj: (boolean | object | BigNumberish)[]) => unknown, thisArg?: any): number;
|
|
3239
|
+
fill(value: boolean | object | BigNumberish, start?: number | undefined, end?: number | undefined): (boolean | object | BigNumberish)[];
|
|
3240
|
+
copyWithin(target: number, start: number, end?: number | undefined): (boolean | object | BigNumberish)[];
|
|
3241
|
+
entries(): IterableIterator<[number, boolean | object | BigNumberish]>;
|
|
3221
3242
|
keys(): IterableIterator<number>;
|
|
3222
|
-
values(): IterableIterator<object | BigNumberish>;
|
|
3223
|
-
includes(searchElement: object | BigNumberish, fromIndex?: number | undefined): boolean;
|
|
3224
|
-
flatMap<U_3, This = undefined>(callback: (this: This, value: object | BigNumberish, index: number, array: (object | BigNumberish)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
|
|
3243
|
+
values(): IterableIterator<boolean | object | BigNumberish>;
|
|
3244
|
+
includes(searchElement: boolean | object | BigNumberish, fromIndex?: number | undefined): boolean;
|
|
3245
|
+
flatMap<U_3, This = undefined>(callback: (this: This, value: boolean | object | BigNumberish, index: number, array: (boolean | object | BigNumberish)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
|
|
3225
3246
|
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
3226
|
-
[Symbol.iterator](): IterableIterator<object | BigNumberish>;
|
|
3247
|
+
[Symbol.iterator](): IterableIterator<boolean | object | BigNumberish>;
|
|
3227
3248
|
[Symbol.unscopables](): {
|
|
3228
3249
|
copyWithin: boolean;
|
|
3229
3250
|
entries: boolean;
|
|
@@ -3233,7 +3254,7 @@ declare const tuple: (...args: (BigNumberish | object)[]) => {
|
|
|
3233
3254
|
keys: boolean;
|
|
3234
3255
|
values: boolean;
|
|
3235
3256
|
};
|
|
3236
|
-
at(index: number): object | BigNumberish | undefined;
|
|
3257
|
+
at(index: number): boolean | object | BigNumberish | undefined;
|
|
3237
3258
|
};
|
|
3238
3259
|
/**
|
|
3239
3260
|
* felt cairo type
|
|
@@ -3331,17 +3352,17 @@ declare class CallData {
|
|
|
3331
3352
|
*/
|
|
3332
3353
|
static getAbiStruct(abi: Abi): AbiStructs;
|
|
3333
3354
|
/**
|
|
3334
|
-
* Helper: Compile RawCalldata
|
|
3335
|
-
* @param rawCalldata
|
|
3355
|
+
* Helper: Compile HexCalldata | RawCalldata | RawArgs
|
|
3356
|
+
* @param rawCalldata HexCalldata | RawCalldata | RawArgs
|
|
3336
3357
|
* @returns Calldata
|
|
3337
3358
|
*/
|
|
3338
|
-
static toCalldata(rawCalldata?:
|
|
3359
|
+
static toCalldata(rawCalldata?: RawArgs): Calldata;
|
|
3339
3360
|
/**
|
|
3340
|
-
* Helper: Convert
|
|
3341
|
-
* @param
|
|
3361
|
+
* Helper: Convert raw to HexCalldata
|
|
3362
|
+
* @param raw HexCalldata | RawCalldata | RawArgs
|
|
3342
3363
|
* @returns HexCalldata
|
|
3343
3364
|
*/
|
|
3344
|
-
static toHex(
|
|
3365
|
+
static toHex(raw?: RawArgs): HexCalldata;
|
|
3345
3366
|
}
|
|
3346
3367
|
|
|
3347
3368
|
/**
|