starknet 10.3.2 → 10.4.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 +12 -0
- package/dist/index.d.ts +160 -54
- package/dist/index.global.js +199 -18
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +202 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +199 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# [10.4.0](https://github.com/starknet-io/starknet.js/compare/v10.3.3...v10.4.0) (2026-07-01)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
- add WalletAccountV6 with STRK20 privacy protocol support ([#1642](https://github.com/starknet-io/starknet.js/issues/1642)) ([5d2e672](https://github.com/starknet-io/starknet.js/commit/5d2e672be39d69b69c197568bda1c6cd3b53cfde))
|
|
6
|
+
|
|
7
|
+
## [10.3.3](https://github.com/starknet-io/starknet.js/compare/v10.3.2...v10.3.3) (2026-06-30)
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
- restore consistency of .toApiRequest() output type ([71c5d90](https://github.com/starknet-io/starknet.js/commit/71c5d90b740648bfa57b388938414dc1f50a9a08))
|
|
12
|
+
|
|
1
13
|
## [10.3.2](https://github.com/starknet-io/starknet.js/compare/v10.3.1...v10.3.2) (2026-06-16)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import * as RPCSPEC0103 from '@starknet-io/starknet-types-0103';
|
|
2
|
-
import { PAYMASTER_API, CONTRACT, EDataAvailabilityMode as EDataAvailabilityMode$1, ETransactionType, SUBSCRIPTION_BLOCK_ID, TypedData, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, OutsideExecutionTypedData, ETransactionVersion3 as ETransactionVersion3$1, IsType, TransactionReceipt as TransactionReceipt$1, IsSucceeded, IsReverted, PRE_CONFIRMED_BLOCK_WITH_TX_HASHES, BLOCK_WITH_TX_HASHES, TransactionHash, BlockHash, FAILED_TO_RECEIVE_TXN, NO_TRACE_AVAILABLE, CONTRACT_NOT_FOUND, ENTRYPOINT_NOT_FOUND, BLOCK_NOT_FOUND, INVALID_TXN_INDEX, CLASS_HASH_NOT_FOUND, TXN_HASH_NOT_FOUND, PAGE_SIZE_TOO_BIG, NO_BLOCKS, INVALID_CONTINUATION_TOKEN, TOO_MANY_KEYS_IN_FILTER, CONTRACT_ERROR, TRANSACTION_EXECUTION_ERROR, STORAGE_PROOF_NOT_SUPPORTED, CLASS_ALREADY_DECLARED, INVALID_TRANSACTION_NONCE, INSUFFICIENT_RESOURCES_FOR_VALIDATE, INSUFFICIENT_ACCOUNT_BALANCE, VALIDATION_FAILURE, COMPILATION_FAILED, CONTRACT_CLASS_SIZE_IS_TOO_LARGE, NON_ACCOUNT, DUPLICATE_TX, COMPILED_CLASS_HASH_MISMATCH, UNSUPPORTED_TX_VERSION, UNSUPPORTED_CONTRACT_CLASS_VERSION, UNEXPECTED_ERROR, REPLACEMENT_TRANSACTION_UNDERPRICED, FEE_BELOW_MINIMUM, INVALID_SUBSCRIPTION_ID, TOO_MANY_ADDRESSES_IN_FILTER, TOO_MANY_BLOCKS_BACK, COMPILATION_ERROR, ETransactionVersion as ETransactionVersion$1, SUBSCRIPTION_ID, TXN_FINALITY_STATUS, STATUS_ACCEPTED_ON_L1, TXN_STATUS_WITHOUT_L1, StarknetEventsEvent, TransactionsStatusEvent, NewTransactionReceiptsEvent, NewTransactionEvent, NewHeadsEvent, STORAGE_RESULT, INVOKE_TXN_V3, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, EDAMode as EDAMode$1, StarknetType, StarknetMerkleType, TypedDataRevision, OutsideCallV1, OutsideCallV2, EmittedEvent as EmittedEvent$1, Event as Event$2,
|
|
3
|
-
export { StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from '@starknet-io/starknet-types-0103';
|
|
2
|
+
import { PAYMASTER_API, CONTRACT, EDataAvailabilityMode as EDataAvailabilityMode$1, ETransactionType, SUBSCRIPTION_BLOCK_ID, TypedData, CONTRACT_STORAGE_KEYS, StorageProof, CASM_COMPILED_CONTRACT_CLASS, OutsideExecutionTypedData, ETransactionVersion3 as ETransactionVersion3$1, IsType, TransactionReceipt as TransactionReceipt$1, IsSucceeded, IsReverted, PRE_CONFIRMED_BLOCK_WITH_TX_HASHES, BLOCK_WITH_TX_HASHES, TransactionHash, BlockHash, FAILED_TO_RECEIVE_TXN, NO_TRACE_AVAILABLE, CONTRACT_NOT_FOUND, ENTRYPOINT_NOT_FOUND, BLOCK_NOT_FOUND, INVALID_TXN_INDEX, CLASS_HASH_NOT_FOUND, TXN_HASH_NOT_FOUND, PAGE_SIZE_TOO_BIG, NO_BLOCKS, INVALID_CONTINUATION_TOKEN, TOO_MANY_KEYS_IN_FILTER, CONTRACT_ERROR, TRANSACTION_EXECUTION_ERROR, STORAGE_PROOF_NOT_SUPPORTED, CLASS_ALREADY_DECLARED, INVALID_TRANSACTION_NONCE, INSUFFICIENT_RESOURCES_FOR_VALIDATE, INSUFFICIENT_ACCOUNT_BALANCE, VALIDATION_FAILURE, COMPILATION_FAILED, CONTRACT_CLASS_SIZE_IS_TOO_LARGE, NON_ACCOUNT, DUPLICATE_TX, COMPILED_CLASS_HASH_MISMATCH, UNSUPPORTED_TX_VERSION, UNSUPPORTED_CONTRACT_CLASS_VERSION, UNEXPECTED_ERROR, REPLACEMENT_TRANSACTION_UNDERPRICED, FEE_BELOW_MINIMUM, INVALID_SUBSCRIPTION_ID, TOO_MANY_ADDRESSES_IN_FILTER, TOO_MANY_BLOCKS_BACK, COMPILATION_ERROR, ETransactionVersion as ETransactionVersion$1, SUBSCRIPTION_ID, TXN_FINALITY_STATUS, STATUS_ACCEPTED_ON_L1, TXN_STATUS_WITHOUT_L1, StarknetEventsEvent, TransactionsStatusEvent, NewTransactionReceiptsEvent, NewTransactionEvent, NewHeadsEvent, STORAGE_RESULT, INVOKE_TXN_V3, StarknetWindowObject, AccountChangeEventHandler, NetworkChangeEventHandler, WatchAssetParameters, AddStarknetChainParameters, Signature as Signature$1, STRK20_PROOF, Address, STRK20_BALANCE_ENTRY, STRK20_ACTION, STRK20_CALL_AND_PROOF, EDAMode as EDAMode$1, StarknetType, StarknetMerkleType, TypedDataRevision, OutsideCallV1, OutsideCallV2, EmittedEvent as EmittedEvent$1, Event as Event$2, Permission, ChainId, AccountDeploymentData, AddInvokeTransactionParameters, AddInvokeTransactionResult, AddDeclareTransactionParameters, AddDeclareTransactionResult, SpecVersion, API_VERSION as API_VERSION$1 } from '@starknet-io/starknet-types-0103';
|
|
3
|
+
export { STRK20_ACTION, STRK20_BALANCE_ENTRY, STRK20_CALLDATA_ITEM, STRK20_CALLDATA_PLACEHOLDER, STRK20_CALL_AND_PROOF, STRK20_DEPOSIT_ACTION, STRK20_INVOKE_ACTION, STRK20_PROOF, STRK20_TRANSFER_ACTION, STRK20_WITHDRAW_ACTION, StarknetDomain, StarknetEnumType, StarknetMerkleType, StarknetType, TypedData, TypedDataRevision } from '@starknet-io/starknet-types-0103';
|
|
4
4
|
import * as RPC$1 from '@starknet-io/starknet-types-0101';
|
|
5
|
-
import { WatchAssetParameters as WatchAssetParameters$1, AddStarknetChainParameters as AddStarknetChainParameters$1, Signature as Signature$2, Address as Address$1, Permission as Permission$1, ChainId as ChainId$1, AccountDeploymentData as AccountDeploymentData$1, AddInvokeTransactionParameters as AddInvokeTransactionParameters$1, AddInvokeTransactionResult as AddInvokeTransactionResult$1, AddDeclareTransactionParameters as AddDeclareTransactionParameters$1, AddDeclareTransactionResult as AddDeclareTransactionResult$1, TypedData as TypedData$1, SpecVersion as SpecVersion$1 } from '@starknet-io/starknet-types-0101';
|
|
5
|
+
import { WatchAssetParameters as WatchAssetParameters$1, AddStarknetChainParameters as AddStarknetChainParameters$1, Signature as Signature$2, Address as Address$1, Permission as Permission$1, ChainId as ChainId$1, AccountDeploymentData as AccountDeploymentData$1, AddInvokeTransactionParameters as AddInvokeTransactionParameters$1, AddInvokeTransactionResult as AddInvokeTransactionResult$1, AddDeclareTransactionParameters as AddDeclareTransactionParameters$1, AddDeclareTransactionResult as AddDeclareTransactionResult$1, TypedData as TypedData$1, SpecVersion as SpecVersion$1, API_VERSION as API_VERSION$2 } from '@starknet-io/starknet-types-0101';
|
|
6
6
|
import * as weierstrass from '@noble/curves/abstract/weierstrass';
|
|
7
7
|
import { RecoveredSignatureType } from '@noble/curves/abstract/weierstrass';
|
|
8
8
|
import * as RPC from '@starknet-io/starknet-types-09';
|
|
9
9
|
import { Abi as Abi$1, TypedContract } from 'abi-wan-kanabi';
|
|
10
10
|
import { WalletWithStarknetFeatures, StandardEventsChangeProperties } from '@starknet-io/get-starknet-wallet-standard/features';
|
|
11
|
+
import { WalletWithStarknetFeatures as WalletWithStarknetFeatures$1 } from '@starknet-io/get-starknet-wallet-standard-v6/features';
|
|
11
12
|
import * as poseidon from '@noble/curves/abstract/poseidon';
|
|
12
13
|
import * as json$1 from 'lossless-json';
|
|
13
14
|
import * as starknet from '@scure/starknet';
|
|
14
|
-
import { StandardEventsChangeProperties as StandardEventsChangeProperties$1 } from '@wallet-standard/features';
|
|
15
|
+
import { StandardConnectOutput, StandardEventsChangeProperties as StandardEventsChangeProperties$1 } from '@wallet-standard/features';
|
|
15
16
|
|
|
16
17
|
declare const ec_weierstrass: typeof weierstrass;
|
|
17
18
|
declare namespace ec {
|
|
@@ -1150,7 +1151,7 @@ declare abstract class ProviderInterface {
|
|
|
1150
1151
|
* // Equivalent to:
|
|
1151
1152
|
* const [feeEstimate] = await provider.getEstimateFeeBulk([{ type: ETransactionType.INVOKE, ...invocation, ...details }], options);
|
|
1152
1153
|
* ```
|
|
1153
|
-
* @
|
|
1154
|
+
* @remarks This method is an alias that calls getEstimateFeeBulk with a single transaction
|
|
1154
1155
|
*/
|
|
1155
1156
|
abstract getInvokeEstimateFee(invocation: Invocation, details: InvocationsDetailsWithNonce, blockIdentifier?: BlockIdentifier, skipValidate?: boolean): Promise<EstimateFeeResponseOverhead>;
|
|
1156
1157
|
/**
|
|
@@ -1174,7 +1175,7 @@ declare abstract class ProviderInterface {
|
|
|
1174
1175
|
* // Equivalent to:
|
|
1175
1176
|
* const [feeEstimate] = await provider.getEstimateFeeBulk([{ type: ETransactionType.DECLARE, ...transaction, ...details }], options);
|
|
1176
1177
|
* ```
|
|
1177
|
-
* @
|
|
1178
|
+
* @remarks This method is an alias that calls getEstimateFeeBulk with a single transaction
|
|
1178
1179
|
*/
|
|
1179
1180
|
abstract getDeclareEstimateFee(transaction: DeclareContractTransaction, details: InvocationsDetailsWithNonce, blockIdentifier?: BlockIdentifier, skipValidate?: boolean): Promise<EstimateFeeResponseOverhead>;
|
|
1180
1181
|
/**
|
|
@@ -1199,7 +1200,7 @@ declare abstract class ProviderInterface {
|
|
|
1199
1200
|
* // Equivalent to:
|
|
1200
1201
|
* const [feeEstimate] = await provider.getEstimateFeeBulk([{ type: ETransactionType.DEPLOY_ACCOUNT, ...transaction, ...details }], options);
|
|
1201
1202
|
* ```
|
|
1202
|
-
* @
|
|
1203
|
+
* @remarks This method is an alias that calls getEstimateFeeBulk with a single transaction
|
|
1203
1204
|
*/
|
|
1204
1205
|
abstract getDeployAccountEstimateFee(transaction: DeployAccountContractTransaction, details: InvocationsDetailsWithNonce, blockIdentifier?: BlockIdentifier, skipValidate?: boolean): Promise<EstimateFeeResponseOverhead>;
|
|
1205
1206
|
/**
|
|
@@ -1420,7 +1421,7 @@ declare abstract class ProviderInterface {
|
|
|
1420
1421
|
* @param {Signature} signature signature of the message.
|
|
1421
1422
|
* @param {BigNumberish} accountAddress address of the account that has signed the message.
|
|
1422
1423
|
* @param {string} [signatureVerificationFunctionName] if account contract with non standard account verification function name.
|
|
1423
|
-
* @param
|
|
1424
|
+
* @param [signatureVerificationResponse] if account contract with non standard response of verification function.
|
|
1424
1425
|
* @returns
|
|
1425
1426
|
* ```typescript
|
|
1426
1427
|
* const myTypedMessage: TypedMessage = .... ;
|
|
@@ -3612,7 +3613,7 @@ type ParsedEvents = Array<ParsedEvent> & {
|
|
|
3612
3613
|
};
|
|
3613
3614
|
/**
|
|
3614
3615
|
* Advance formatting used to get js types data as result
|
|
3615
|
-
* @
|
|
3616
|
+
* @see https://starknet-io.github.io/starknet.js/docs/guides/define_call_message/#formatresponse
|
|
3616
3617
|
* @example
|
|
3617
3618
|
* ```typescript
|
|
3618
3619
|
* // assign custom or existing method to resulting data
|
|
@@ -6013,6 +6014,13 @@ type WalletAccountV5Options = {
|
|
|
6013
6014
|
cairoVersion?: CairoVersion;
|
|
6014
6015
|
paymaster?: PaymasterOptions | PaymasterInterface;
|
|
6015
6016
|
};
|
|
6017
|
+
type WalletAccountV6Options = {
|
|
6018
|
+
provider: ProviderOptions | ProviderInterface;
|
|
6019
|
+
walletProvider: WalletWithStarknetFeatures$1;
|
|
6020
|
+
address: string;
|
|
6021
|
+
cairoVersion?: CairoVersion;
|
|
6022
|
+
paymaster?: PaymasterOptions | PaymasterInterface;
|
|
6023
|
+
};
|
|
6016
6024
|
|
|
6017
6025
|
declare class WalletAccount extends Account {
|
|
6018
6026
|
walletProvider: StarknetWalletProvider;
|
|
@@ -6052,11 +6060,25 @@ declare class WalletAccountV5 extends Account {
|
|
|
6052
6060
|
* To call before the instance is deleted.
|
|
6053
6061
|
*/
|
|
6054
6062
|
private unsubscribe;
|
|
6063
|
+
/**
|
|
6064
|
+
* Unsubscribe functions for the callbacks registered through {@link onChange}.
|
|
6065
|
+
* Released by {@link unsubscribeChange}.
|
|
6066
|
+
*/
|
|
6067
|
+
private changeSubscriptions;
|
|
6055
6068
|
constructor(options: WalletAccountV5Options);
|
|
6056
6069
|
/**
|
|
6057
6070
|
* WALLET EVENTS
|
|
6058
6071
|
*/
|
|
6059
|
-
|
|
6072
|
+
/**
|
|
6073
|
+
* Subscribe a callback to wallet account/network changes.
|
|
6074
|
+
* @param {(change: StandardEventsChangeProperties) => void} callback called on each change.
|
|
6075
|
+
* @returns {() => void} a function to unsubscribe this specific callback.
|
|
6076
|
+
*/
|
|
6077
|
+
onChange(callback: (change: StandardEventsChangeProperties) => void): () => void;
|
|
6078
|
+
/**
|
|
6079
|
+
* Unsubscribe from all wallet events, including the callbacks registered through {@link onChange}.
|
|
6080
|
+
* To call before the instance is deleted.
|
|
6081
|
+
*/
|
|
6060
6082
|
unsubscribeChange(): void;
|
|
6061
6083
|
/**
|
|
6062
6084
|
* WALLET SPECIFIC METHODS
|
|
@@ -6077,6 +6099,24 @@ declare class WalletAccountV5 extends Account {
|
|
|
6077
6099
|
static connectSilent(provider: ProviderOptions | ProviderInterface, walletProvider: WalletWithStarknetFeatures, cairoVersion?: CairoVersion, paymaster?: PaymasterOptions | PaymasterInterface): Promise<WalletAccountV5>;
|
|
6078
6100
|
}
|
|
6079
6101
|
|
|
6102
|
+
/**
|
|
6103
|
+
* WalletAccountV6 class.
|
|
6104
|
+
* Extends WalletAccountV5 with get-starknet v6 types and STRK20 privacy protocol methods.
|
|
6105
|
+
*/
|
|
6106
|
+
declare class WalletAccountV6 extends WalletAccountV5 {
|
|
6107
|
+
constructor(options: WalletAccountV6Options);
|
|
6108
|
+
private get v6Provider();
|
|
6109
|
+
switchStarknetChain(chainId: _StarknetChainId, silent_mode?: boolean): Promise<boolean>;
|
|
6110
|
+
executeWithProof(calls: AllowArray<Call>, proof?: STRK20_PROOF): Promise<RPCSPEC0103.AddInvokeTransactionResult>;
|
|
6111
|
+
strk20Balances(tokens: Address[]): Promise<STRK20_BALANCE_ENTRY[]>;
|
|
6112
|
+
strk20PrepareInvoke(actions: STRK20_ACTION[], simulate?: boolean): Promise<STRK20_CALL_AND_PROOF>;
|
|
6113
|
+
strk20InvokeTransaction(actions: STRK20_ACTION[]): Promise<{
|
|
6114
|
+
transaction_hash: string;
|
|
6115
|
+
}>;
|
|
6116
|
+
static connect(provider: ProviderOptions | ProviderInterface, walletProvider: WalletWithStarknetFeatures$1, cairoVersion?: CairoVersion, paymaster?: PaymasterOptions | PaymasterInterface, silentMode?: boolean): Promise<WalletAccountV6>;
|
|
6117
|
+
static connectSilent(provider: ProviderOptions | ProviderInterface, walletProvider: WalletWithStarknetFeatures$1, cairoVersion?: CairoVersion, paymaster?: PaymasterOptions | PaymasterInterface): Promise<WalletAccountV6>;
|
|
6118
|
+
}
|
|
6119
|
+
|
|
6080
6120
|
declare module 'abi-wan-kanabi' {
|
|
6081
6121
|
interface Config<OptionT = any, ResultT = any, ErrorT = any> {
|
|
6082
6122
|
FeltType: BigNumberish;
|
|
@@ -9850,10 +9890,6 @@ declare namespace byteArray {
|
|
|
9850
9890
|
/**
|
|
9851
9891
|
* Parse one field of the calldata by using input field from the abi for that method
|
|
9852
9892
|
*
|
|
9853
|
-
* @param argsIterator - Iterator for value of the field
|
|
9854
|
-
* @param input - input(field) information from the abi that will be used to parse the data
|
|
9855
|
-
* @param structs - structs from abi
|
|
9856
|
-
* @param enums - enums from abi
|
|
9857
9893
|
* @return {string | string[]} - parsed arguments in format that contract is expecting
|
|
9858
9894
|
*
|
|
9859
9895
|
* @example
|
|
@@ -9899,10 +9935,15 @@ declare namespace byteArray {
|
|
|
9899
9935
|
* // parsedField === ['1952805748']
|
|
9900
9936
|
*/
|
|
9901
9937
|
declare function parseCalldataField({ argsIterator, input, structs, enums, parser, }: {
|
|
9938
|
+
/** Iterator for value of the field */
|
|
9902
9939
|
argsIterator: Iterator<any>;
|
|
9940
|
+
/** input(field) information from the abi that will be used to parse the data */
|
|
9903
9941
|
input: AbiEntry;
|
|
9942
|
+
/** structs from abi */
|
|
9904
9943
|
structs: AbiStructs;
|
|
9944
|
+
/** enums from abi */
|
|
9905
9945
|
enums: AbiEnums;
|
|
9946
|
+
/** parser used to serialize the value */
|
|
9906
9947
|
parser: AbiParserInterface;
|
|
9907
9948
|
}): string | string[];
|
|
9908
9949
|
|
|
@@ -10025,7 +10066,7 @@ declare function isFileSystemAvailable(): boolean;
|
|
|
10025
10066
|
* - Can accept a single .sierra.json or .casm file, or multiple files
|
|
10026
10067
|
* - If compiledClassHash is provided: .casm file is optional
|
|
10027
10068
|
*
|
|
10028
|
-
* @param {string | File | File[]}
|
|
10069
|
+
* @param {string | File | File[]} contractPath - Path (Node.js) or File/File[] (browser)
|
|
10029
10070
|
* @param {string} [compiledClassHash] - Optional compiled class hash. If provided, .casm file becomes optional
|
|
10030
10071
|
* @return {LoadedContract | Promise<LoadedContract>} - Contract data (sync in Node.js, async in browser)
|
|
10031
10072
|
* @throws {Error} - If no .sierra.json file is found, or if .casm is missing when compiledClassHash is not provided
|
|
@@ -10146,64 +10187,69 @@ declare function units(amount: string | bigint, simbol?: 'fri' | 'strk'): string
|
|
|
10146
10187
|
* @param {boolean} [silent_mode=false] false: request user interaction allowance. true: return only pre-allowed
|
|
10147
10188
|
* @returns allowed accounts addresses
|
|
10148
10189
|
*/
|
|
10149
|
-
declare function requestAccounts$
|
|
10190
|
+
declare function requestAccounts$2(swo: StarknetWindowObject, silent_mode?: boolean): Promise<Address[]>;
|
|
10150
10191
|
/**
|
|
10151
10192
|
* Request Permission for wallet account
|
|
10152
10193
|
* @returns allowed accounts addresses
|
|
10153
10194
|
*/
|
|
10154
|
-
declare function getPermissions$
|
|
10195
|
+
declare function getPermissions$2(swo: StarknetWindowObject): Promise<Permission[]>;
|
|
10155
10196
|
/**
|
|
10156
10197
|
* Request adding ERC20 Token to Wallet List
|
|
10157
10198
|
* @param asset WatchAssetParameters
|
|
10158
10199
|
* @returns boolean
|
|
10159
10200
|
*/
|
|
10160
|
-
declare function watchAsset$
|
|
10201
|
+
declare function watchAsset$2(swo: StarknetWindowObject, asset: WatchAssetParameters): Promise<boolean>;
|
|
10161
10202
|
/**
|
|
10162
10203
|
* Request adding custom Starknet chain
|
|
10163
10204
|
* @param chain AddStarknetChainParameters
|
|
10164
10205
|
* @returns boolean
|
|
10165
10206
|
*/
|
|
10166
|
-
declare function addStarknetChain$
|
|
10207
|
+
declare function addStarknetChain$2(swo: StarknetWindowObject, chain: AddStarknetChainParameters): Promise<boolean>;
|
|
10167
10208
|
/**
|
|
10168
10209
|
* Request Wallet Network change
|
|
10169
10210
|
* @param chainId StarknetChainId
|
|
10170
10211
|
* @returns boolean
|
|
10171
10212
|
*/
|
|
10172
|
-
declare function switchStarknetChain$
|
|
10213
|
+
declare function switchStarknetChain$2(swo: StarknetWindowObject, chainId: ChainId): Promise<boolean>;
|
|
10173
10214
|
/**
|
|
10174
10215
|
* Request the current chain ID from the wallet.
|
|
10175
10216
|
* @returns The current Starknet chain ID.
|
|
10176
10217
|
*/
|
|
10177
|
-
declare function requestChainId$
|
|
10218
|
+
declare function requestChainId$2(swo: StarknetWindowObject): Promise<ChainId>;
|
|
10178
10219
|
/**
|
|
10179
10220
|
* Get deployment data for a contract.
|
|
10180
10221
|
* @returns The deployment data result.
|
|
10181
10222
|
*/
|
|
10182
|
-
declare function deploymentData$
|
|
10223
|
+
declare function deploymentData$2(swo: StarknetWindowObject): Promise<AccountDeploymentData>;
|
|
10183
10224
|
/**
|
|
10184
10225
|
* Add an invoke transaction to the wallet.
|
|
10185
10226
|
* @param params The parameters required for the invoke transaction.
|
|
10186
10227
|
* @returns The result of adding the invoke transaction.
|
|
10187
10228
|
*/
|
|
10188
|
-
declare function addInvokeTransaction$
|
|
10229
|
+
declare function addInvokeTransaction$2(swo: StarknetWindowObject, params: AddInvokeTransactionParameters): Promise<AddInvokeTransactionResult>;
|
|
10189
10230
|
/**
|
|
10190
10231
|
* Add a declare transaction to the wallet.
|
|
10191
10232
|
* @param params The parameters required for the declare transaction.
|
|
10192
10233
|
* @returns The result of adding the declare transaction.
|
|
10193
10234
|
*/
|
|
10194
|
-
declare function addDeclareTransaction$
|
|
10235
|
+
declare function addDeclareTransaction$2(swo: StarknetWindowObject, params: AddDeclareTransactionParameters): Promise<AddDeclareTransactionResult>;
|
|
10195
10236
|
/**
|
|
10196
10237
|
* Sign typed data using the wallet.
|
|
10197
10238
|
* @param swo the starknet (wallet) window object to request the signature.
|
|
10198
10239
|
* @param typedData The typed data to sign.
|
|
10199
10240
|
* @returns An array of signatures as strings.
|
|
10200
10241
|
*/
|
|
10201
|
-
declare function signMessage$
|
|
10242
|
+
declare function signMessage$2(swo: StarknetWindowObject, typedData: TypedData): Promise<Signature$1>;
|
|
10202
10243
|
/**
|
|
10203
10244
|
* Get the list of supported specifications.
|
|
10204
10245
|
* @returns An array of supported specification strings.
|
|
10205
10246
|
*/
|
|
10206
|
-
declare function supportedSpecs$
|
|
10247
|
+
declare function supportedSpecs$2(swo: StarknetWindowObject): Promise<SpecVersion[]>;
|
|
10248
|
+
/**
|
|
10249
|
+
* Get the list of supported wallet API versions.
|
|
10250
|
+
* @returns An array of supported wallet API version strings.
|
|
10251
|
+
*/
|
|
10252
|
+
declare function supportedWalletApi$2(swo: StarknetWindowObject): Promise<API_VERSION$1[]>;
|
|
10207
10253
|
/**
|
|
10208
10254
|
* Attaches an event handler function to the "accountsChanged" event of a StarknetWindowObject.
|
|
10209
10255
|
* When the accounts are changed, the specified callback function will be called.
|
|
@@ -10226,82 +10272,101 @@ declare function onNetworkChanged(swo: StarknetWindowObject, callback: NetworkCh
|
|
|
10226
10272
|
declare const connect_onAccountChange: typeof onAccountChange;
|
|
10227
10273
|
declare const connect_onNetworkChanged: typeof onNetworkChanged;
|
|
10228
10274
|
declare namespace connect {
|
|
10229
|
-
export { addDeclareTransaction$
|
|
10275
|
+
export { addDeclareTransaction$2 as addDeclareTransaction, addInvokeTransaction$2 as addInvokeTransaction, addStarknetChain$2 as addStarknetChain, deploymentData$2 as deploymentData, getPermissions$2 as getPermissions, connect_onAccountChange as onAccountChange, connect_onNetworkChanged as onNetworkChanged, requestAccounts$2 as requestAccounts, requestChainId$2 as requestChainId, signMessage$2 as signMessage, supportedSpecs$2 as supportedSpecs, supportedWalletApi$2 as supportedWalletApi, switchStarknetChain$2 as switchStarknetChain, watchAsset$2 as watchAsset };
|
|
10230
10276
|
}
|
|
10231
10277
|
|
|
10278
|
+
/**
|
|
10279
|
+
* Connect the DApp to the wallet through the wallet-standard `standard:connect` feature.
|
|
10280
|
+
*
|
|
10281
|
+
* Besides authorizing the accounts, this primes the wallet-standard wrapper internal
|
|
10282
|
+
* state (its `#account`). This priming is mandatory: the wrapper only bridges the wallet
|
|
10283
|
+
* legacy `accountsChanged` / `networkChanged` events to the `standard:events` "change"
|
|
10284
|
+
* event (consumed by {@link subscribeWalletEvent}) once it has been connected this way.
|
|
10285
|
+
* Without it, account/network change events never reach the DApp.
|
|
10286
|
+
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10287
|
+
* @param {boolean} [silent_mode=false] false: request user interaction allowance. true: return only pre-allowed accounts.
|
|
10288
|
+
* @returns {StandardConnectOutput} the wallet-standard accounts the DApp is authorized to use.
|
|
10289
|
+
*/
|
|
10290
|
+
declare function standardConnect$1(walletWSF: WalletWithStarknetFeatures, silent_mode?: boolean): Promise<StandardConnectOutput>;
|
|
10232
10291
|
/**
|
|
10233
10292
|
* Request Permission for wallet account, return addresses that are allowed by user
|
|
10234
10293
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10235
10294
|
* @param {boolean} [silent_mode=false] false: request user interaction allowance. true: return only pre-allowed
|
|
10236
10295
|
* @returns {Address[]} allowed accounts addresses
|
|
10237
10296
|
*/
|
|
10238
|
-
declare function requestAccounts(walletWSF: WalletWithStarknetFeatures, silent_mode?: boolean): Promise<Address$1[]>;
|
|
10297
|
+
declare function requestAccounts$1(walletWSF: WalletWithStarknetFeatures, silent_mode?: boolean): Promise<Address$1[]>;
|
|
10239
10298
|
/**
|
|
10240
10299
|
* Request if DAPP is connected to wallet.
|
|
10241
10300
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10242
10301
|
* @returns {Permission[]} "accounts" if permission granted
|
|
10243
10302
|
*/
|
|
10244
|
-
declare function getPermissions(walletWSF: WalletWithStarknetFeatures): Promise<Permission$1[]>;
|
|
10303
|
+
declare function getPermissions$1(walletWSF: WalletWithStarknetFeatures): Promise<Permission$1[]>;
|
|
10245
10304
|
/**
|
|
10246
10305
|
* Request adding an ERC20 Token to the Wallet List
|
|
10247
10306
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10248
10307
|
* @param {WatchAssetParameters} asset description of the token to add.
|
|
10249
10308
|
* @returns {boolean} true if the token was added successfully
|
|
10250
10309
|
*/
|
|
10251
|
-
declare function watchAsset(walletWSF: WalletWithStarknetFeatures, asset: WatchAssetParameters$1): Promise<boolean>;
|
|
10310
|
+
declare function watchAsset$1(walletWSF: WalletWithStarknetFeatures, asset: WatchAssetParameters$1): Promise<boolean>;
|
|
10252
10311
|
/**
|
|
10253
10312
|
* Request adding custom Starknet chain
|
|
10254
10313
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10255
10314
|
* @param {AddStarknetChainParameters} chain description of the chain to add.
|
|
10256
10315
|
* @returns {boolean} true if the chain was added successfully
|
|
10257
10316
|
*/
|
|
10258
|
-
declare function addStarknetChain(walletWSF: WalletWithStarknetFeatures, chain: AddStarknetChainParameters$1): Promise<boolean>;
|
|
10317
|
+
declare function addStarknetChain$1(walletWSF: WalletWithStarknetFeatures, chain: AddStarknetChainParameters$1): Promise<boolean>;
|
|
10259
10318
|
/**
|
|
10260
10319
|
* Request Wallet Network change
|
|
10261
10320
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10262
10321
|
* @param {ChainId} chainId encoded name of the chain requested.
|
|
10263
10322
|
* @returns {boolean} true if the chain was changed successfully
|
|
10264
10323
|
*/
|
|
10265
|
-
declare function switchStarknetChain(walletWSF: WalletWithStarknetFeatures, chainId: ChainId$1): Promise<boolean>;
|
|
10324
|
+
declare function switchStarknetChain$1(walletWSF: WalletWithStarknetFeatures, chainId: ChainId$1): Promise<boolean>;
|
|
10266
10325
|
/**
|
|
10267
10326
|
* Request the current chain ID from the wallet.
|
|
10268
10327
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10269
10328
|
* @returns {ChainId} The current Starknet chain ID.
|
|
10270
10329
|
*/
|
|
10271
|
-
declare function requestChainId(walletWSF: WalletWithStarknetFeatures): Promise<ChainId$1>;
|
|
10330
|
+
declare function requestChainId$1(walletWSF: WalletWithStarknetFeatures): Promise<ChainId$1>;
|
|
10272
10331
|
/**
|
|
10273
10332
|
* Get deployment data for a contract.
|
|
10274
10333
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10275
10334
|
* @returns {AccountDeploymentData} The deployment data result.
|
|
10276
10335
|
*/
|
|
10277
|
-
declare function deploymentData(walletWSF: WalletWithStarknetFeatures): Promise<AccountDeploymentData$1>;
|
|
10336
|
+
declare function deploymentData$1(walletWSF: WalletWithStarknetFeatures): Promise<AccountDeploymentData$1>;
|
|
10278
10337
|
/**
|
|
10279
10338
|
* Add an invoke transaction to the wallet.
|
|
10280
10339
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10281
10340
|
* @param {AddInvokeTransactionParameters} params The parameters required for the invoke transaction.
|
|
10282
10341
|
* @returns {AddInvokeTransactionResult} The result of adding the invoke transaction.
|
|
10283
10342
|
*/
|
|
10284
|
-
declare function addInvokeTransaction(walletWSF: WalletWithStarknetFeatures, params: AddInvokeTransactionParameters$1): Promise<AddInvokeTransactionResult$1>;
|
|
10343
|
+
declare function addInvokeTransaction$1(walletWSF: WalletWithStarknetFeatures, params: AddInvokeTransactionParameters$1): Promise<AddInvokeTransactionResult$1>;
|
|
10285
10344
|
/**
|
|
10286
10345
|
* Add a declare transaction to the wallet.
|
|
10287
10346
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10288
10347
|
* @param {AddDeclareTransactionParameters} params The parameters required for the declare transaction.
|
|
10289
10348
|
* @returns {AddDeclareTransactionResult} The result of adding the declare transaction.
|
|
10290
10349
|
*/
|
|
10291
|
-
declare function addDeclareTransaction(walletWSF: WalletWithStarknetFeatures, params: AddDeclareTransactionParameters$1): Promise<AddDeclareTransactionResult$1>;
|
|
10350
|
+
declare function addDeclareTransaction$1(walletWSF: WalletWithStarknetFeatures, params: AddDeclareTransactionParameters$1): Promise<AddDeclareTransactionResult$1>;
|
|
10292
10351
|
/**
|
|
10293
10352
|
* Sign typed data using the wallet.
|
|
10294
10353
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10295
10354
|
* @param {TypedData} typedData The typed data to sign.
|
|
10296
10355
|
* @returns {Signature} An array of signatures as strings.
|
|
10297
10356
|
*/
|
|
10298
|
-
declare function signMessage(walletWSF: WalletWithStarknetFeatures, typedData: TypedData$1): Promise<Signature$2>;
|
|
10357
|
+
declare function signMessage$1(walletWSF: WalletWithStarknetFeatures, typedData: TypedData$1): Promise<Signature$2>;
|
|
10299
10358
|
/**
|
|
10300
10359
|
* Get the list of supported Wallet API specifications.
|
|
10301
10360
|
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10302
10361
|
* @returns {SpecVersion[]} An array of wallet API supported specification strings.
|
|
10303
10362
|
*/
|
|
10304
|
-
declare function supportedSpecs(walletWSF: WalletWithStarknetFeatures): Promise<SpecVersion$1[]>;
|
|
10363
|
+
declare function supportedSpecs$1(walletWSF: WalletWithStarknetFeatures): Promise<SpecVersion$1[]>;
|
|
10364
|
+
/**
|
|
10365
|
+
* Get the list of supported wallet API versions.
|
|
10366
|
+
* @param {WalletWithStarknetFeatures} walletWSF - The get-starknet V5 wallet object to use.
|
|
10367
|
+
* @returns {API_VERSION[]} An array of supported wallet API version strings.
|
|
10368
|
+
*/
|
|
10369
|
+
declare function supportedWalletApi$1(walletWSF: WalletWithStarknetFeatures): Promise<API_VERSION$2[]>;
|
|
10305
10370
|
/**
|
|
10306
10371
|
* Attaches an event handler function for the changes of network and account.
|
|
10307
10372
|
* When the account/network are changed, the specified callback function will be called.
|
|
@@ -10309,22 +10374,63 @@ declare function supportedSpecs(walletWSF: WalletWithStarknetFeatures): Promise<
|
|
|
10309
10374
|
* @param {StandardEventsChangeProperties} callback - The function to be called when the account/network are changed.
|
|
10310
10375
|
* @returns {() => void} function to execute to unsubscribe events.
|
|
10311
10376
|
*/
|
|
10312
|
-
declare function subscribeWalletEvent(walletWSF: WalletWithStarknetFeatures, callback: (change: StandardEventsChangeProperties$1) => void): () => void;
|
|
10313
|
-
|
|
10314
|
-
declare const connectV5_addDeclareTransaction: typeof addDeclareTransaction;
|
|
10315
|
-
declare const connectV5_addInvokeTransaction: typeof addInvokeTransaction;
|
|
10316
|
-
declare const connectV5_addStarknetChain: typeof addStarknetChain;
|
|
10317
|
-
declare const connectV5_deploymentData: typeof deploymentData;
|
|
10318
|
-
declare const connectV5_getPermissions: typeof getPermissions;
|
|
10319
|
-
declare const connectV5_requestAccounts: typeof requestAccounts;
|
|
10320
|
-
declare const connectV5_requestChainId: typeof requestChainId;
|
|
10321
|
-
declare const connectV5_signMessage: typeof signMessage;
|
|
10322
|
-
declare const connectV5_subscribeWalletEvent: typeof subscribeWalletEvent;
|
|
10323
|
-
declare const connectV5_supportedSpecs: typeof supportedSpecs;
|
|
10324
|
-
declare const connectV5_switchStarknetChain: typeof switchStarknetChain;
|
|
10325
|
-
declare const connectV5_watchAsset: typeof watchAsset;
|
|
10377
|
+
declare function subscribeWalletEvent$1(walletWSF: WalletWithStarknetFeatures, callback: (change: StandardEventsChangeProperties$1) => void): () => void;
|
|
10378
|
+
|
|
10326
10379
|
declare namespace connectV5 {
|
|
10327
|
-
export {
|
|
10380
|
+
export { addDeclareTransaction$1 as addDeclareTransaction, addInvokeTransaction$1 as addInvokeTransaction, addStarknetChain$1 as addStarknetChain, deploymentData$1 as deploymentData, getPermissions$1 as getPermissions, requestAccounts$1 as requestAccounts, requestChainId$1 as requestChainId, signMessage$1 as signMessage, standardConnect$1 as standardConnect, subscribeWalletEvent$1 as subscribeWalletEvent, supportedSpecs$1 as supportedSpecs, supportedWalletApi$1 as supportedWalletApi, switchStarknetChain$1 as switchStarknetChain, watchAsset$1 as watchAsset };
|
|
10381
|
+
}
|
|
10382
|
+
|
|
10383
|
+
/**
|
|
10384
|
+
* Connect the DApp to the wallet through the wallet-standard `standard:connect` feature.
|
|
10385
|
+
*
|
|
10386
|
+
* Besides authorizing the accounts, this primes the wallet-standard wrapper internal
|
|
10387
|
+
* state (its `#account`). This priming is mandatory: the wrapper only bridges the wallet
|
|
10388
|
+
* legacy `accountsChanged` / `networkChanged` events to the `standard:events` "change"
|
|
10389
|
+
* event (consumed by {@link subscribeWalletEvent}) once it has been connected this way.
|
|
10390
|
+
* Without it, account/network change events never reach the DApp.
|
|
10391
|
+
* @param {WalletWithStarknetFeaturesV6} walletWSF - The get-starknet V6 wallet object to use.
|
|
10392
|
+
* @param {boolean} [silent_mode=false] false: request user interaction allowance. true: return only pre-allowed accounts.
|
|
10393
|
+
* @returns {StandardConnectOutput} the wallet-standard accounts the DApp is authorized to use.
|
|
10394
|
+
*/
|
|
10395
|
+
declare function standardConnect(walletWSF: WalletWithStarknetFeatures$1, silent_mode?: boolean): Promise<StandardConnectOutput>;
|
|
10396
|
+
declare function requestAccounts(walletWSF: WalletWithStarknetFeatures$1, silent_mode?: boolean): Promise<Address[]>;
|
|
10397
|
+
declare function getPermissions(walletWSF: WalletWithStarknetFeatures$1): Promise<Permission[]>;
|
|
10398
|
+
declare function watchAsset(walletWSF: WalletWithStarknetFeatures$1, asset: WatchAssetParameters): Promise<boolean>;
|
|
10399
|
+
declare function addStarknetChain(walletWSF: WalletWithStarknetFeatures$1, chain: AddStarknetChainParameters): Promise<boolean>;
|
|
10400
|
+
declare function switchStarknetChain(walletWSF: WalletWithStarknetFeatures$1, chainId: ChainId, silent_mode?: boolean): Promise<boolean>;
|
|
10401
|
+
declare function requestChainId(walletWSF: WalletWithStarknetFeatures$1): Promise<ChainId>;
|
|
10402
|
+
declare function deploymentData(walletWSF: WalletWithStarknetFeatures$1): Promise<AccountDeploymentData>;
|
|
10403
|
+
declare function addInvokeTransaction(walletWSF: WalletWithStarknetFeatures$1, params: AddInvokeTransactionParameters): Promise<AddInvokeTransactionResult>;
|
|
10404
|
+
declare function addDeclareTransaction(walletWSF: WalletWithStarknetFeatures$1, params: AddDeclareTransactionParameters): Promise<AddDeclareTransactionResult>;
|
|
10405
|
+
declare function signMessage(walletWSF: WalletWithStarknetFeatures$1, typedData: TypedData): Promise<Signature$1>;
|
|
10406
|
+
declare function supportedSpecs(walletWSF: WalletWithStarknetFeatures$1): Promise<SpecVersion[]>;
|
|
10407
|
+
declare function supportedWalletApi(walletWSF: WalletWithStarknetFeatures$1): Promise<API_VERSION$1[]>;
|
|
10408
|
+
declare function subscribeWalletEvent(walletWSF: WalletWithStarknetFeatures$1, callback: (change: StandardEventsChangeProperties$1) => void): () => void;
|
|
10409
|
+
declare function strk20Balances(walletWSF: WalletWithStarknetFeatures$1, tokens: Address[]): Promise<STRK20_BALANCE_ENTRY[]>;
|
|
10410
|
+
declare function strk20PrepareInvoke(walletWSF: WalletWithStarknetFeatures$1, actions: STRK20_ACTION[], simulate?: boolean): Promise<STRK20_CALL_AND_PROOF>;
|
|
10411
|
+
declare function strk20InvokeTransaction(walletWSF: WalletWithStarknetFeatures$1, actions: STRK20_ACTION[]): Promise<{
|
|
10412
|
+
transaction_hash: string;
|
|
10413
|
+
}>;
|
|
10414
|
+
|
|
10415
|
+
declare const connectV6_addDeclareTransaction: typeof addDeclareTransaction;
|
|
10416
|
+
declare const connectV6_addInvokeTransaction: typeof addInvokeTransaction;
|
|
10417
|
+
declare const connectV6_addStarknetChain: typeof addStarknetChain;
|
|
10418
|
+
declare const connectV6_deploymentData: typeof deploymentData;
|
|
10419
|
+
declare const connectV6_getPermissions: typeof getPermissions;
|
|
10420
|
+
declare const connectV6_requestAccounts: typeof requestAccounts;
|
|
10421
|
+
declare const connectV6_requestChainId: typeof requestChainId;
|
|
10422
|
+
declare const connectV6_signMessage: typeof signMessage;
|
|
10423
|
+
declare const connectV6_standardConnect: typeof standardConnect;
|
|
10424
|
+
declare const connectV6_strk20Balances: typeof strk20Balances;
|
|
10425
|
+
declare const connectV6_strk20InvokeTransaction: typeof strk20InvokeTransaction;
|
|
10426
|
+
declare const connectV6_strk20PrepareInvoke: typeof strk20PrepareInvoke;
|
|
10427
|
+
declare const connectV6_subscribeWalletEvent: typeof subscribeWalletEvent;
|
|
10428
|
+
declare const connectV6_supportedSpecs: typeof supportedSpecs;
|
|
10429
|
+
declare const connectV6_supportedWalletApi: typeof supportedWalletApi;
|
|
10430
|
+
declare const connectV6_switchStarknetChain: typeof switchStarknetChain;
|
|
10431
|
+
declare const connectV6_watchAsset: typeof watchAsset;
|
|
10432
|
+
declare namespace connectV6 {
|
|
10433
|
+
export { connectV6_addDeclareTransaction as addDeclareTransaction, connectV6_addInvokeTransaction as addInvokeTransaction, connectV6_addStarknetChain as addStarknetChain, connectV6_deploymentData as deploymentData, connectV6_getPermissions as getPermissions, connectV6_requestAccounts as requestAccounts, connectV6_requestChainId as requestChainId, connectV6_signMessage as signMessage, connectV6_standardConnect as standardConnect, connectV6_strk20Balances as strk20Balances, connectV6_strk20InvokeTransaction as strk20InvokeTransaction, connectV6_strk20PrepareInvoke as strk20PrepareInvoke, connectV6_subscribeWalletEvent as subscribeWalletEvent, connectV6_supportedSpecs as supportedSpecs, connectV6_supportedWalletApi as supportedWalletApi, connectV6_switchStarknetChain as switchStarknetChain, connectV6_watchAsset as watchAsset };
|
|
10328
10434
|
}
|
|
10329
10435
|
|
|
10330
10436
|
type DefaultConfig = typeof DEFAULT_GLOBAL_CONFIG;
|
|
@@ -10428,4 +10534,4 @@ declare class Logger {
|
|
|
10428
10534
|
*/
|
|
10429
10535
|
declare const logger: Logger;
|
|
10430
10536
|
|
|
10431
|
-
export { type Abi, type AbiEntry, type AbiEntryType, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, AbiParser1, AbiParser2, AbiParserInterface, type AbiStruct, type AbiStructs, Account, type AccountHooks, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AccountOptions, type AllowArray, type ApiEstimateFeeResponse, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BLOCK_HASH, type BLOCK_NUMBER, BatchClient, type BatchClientOptions, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockTransactionTrace, type BlockTransactionsTracesWithInitialReads, type BlockWithTxHashes, BrotherIdImpl, type BrotherIdProviderMethods, type BrotherProfile, type Builtins, type ByteArray, type ByteCode, type CairoAssembly, CairoByteArray, CairoBytes31, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFelt, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint128, CairoUint16, CairoUint256, CairoUint32, CairoUint512, CairoUint64, CairoUint8, CairoUint96, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallResult, type Calldata, type CommonContractOptions, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassIdentifier, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeclaredTransaction, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployAndInvokeTransaction, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransaction, type DeployTransactionReceiptResponse, type DeployedAccountTransaction, Deployer, type DeployerCall, DeployerInterface, type Details, EDAMode, EDataAvailabilityMode, ESubscriptionTag, ETH_ADDRESS, ETraceFlag, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, ETxnResponseFlag, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type ErrorReceiptResponseHelper, type EstimateFeeBulk, type EstimateFeeResponseBulkOverhead, type EstimateFeeResponseOverhead, EthSigner, type Event$1 as Event, type EventEntry, type EventFilter, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecuteOptions, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FactoryParams, type FastExecuteAccountMethods, type FastExecuteProviderMethods, type FastExecuteResponse, type FastWaitForTransactionOptions, type FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GasPrices, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, type INITIAL_READS, Int, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeTransaction, type InvokeTransactionReceiptResponse, type InvokedTransaction, type L1HandlerTransactionReceiptResponse, type L1_HANDLER_TXN, type LedgerPathCalculation, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type LoadedContract, type LogLevel, LogLevelIndex, type Methods, type MultiDeployContractResponse, type MultiType, NON_ZERO_PREFIX, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type PRE_CONFIRMED_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type ParsingStrategy, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PluginConfig, PluginManager, type PreConfirmedBlock, type PreConfirmedStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, RpcProvider as Provider, type ProviderHooks, ProviderInterface, type ProviderOptions, type ProviderOrAccount, type PythonicHints, type RESOURCE_PRICE, index$4 as RPC, rpc_0_10_2 as RPC0102, rpc_0_10_3 as RPC0103, rpc_0_9_0 as RPC09, RPCResponseParser, type RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Receipt, ReceiptTx, type ReconnectOptions, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsBN, type ResourceBoundsOverhead, ResponseParser, type RevertedTransactionReceiptResponse, type RevertedTransactionReceiptResponseHelper, RpcChannel, RpcError, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type STATE_UPDATE, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type Simplify, type SimulateTransaction, type SimulateTransactionDetails, type SimulateTransactionOverhead, type SimulateTransactionOverheadResponse, type SimulateTransactionResponse, type SimulationFlags, type StarkProfile, type StarknetIdAccountMethods, StarknetIdImpl, type StarknetIdProviderMethods, type StarknetPlugin, type StateUpdate, type StateUpdateResponse, type StorageResponse, type SubscribeEventsParams, type SubscribeNewHeadsParams, type SubscribeNewTransactionReceiptsParams, type SubscribeNewTransactionsParams, type SubscribeTransactionStatusParams, Subscription, type SubscriptionBlockIdentifier, type SubscriptionNewHeadsEvent, type SubscriptionNewTransactionEvent, type SubscriptionNewTransactionReceiptsEvent, type SubscriptionOptions, type SubscriptionStarknetEventsEvent, type SubscriptionTransactionStatusEvent, type SuccessfulTransactionReceiptResponse, type SuccessfulTransactionReceiptResponseHelper, type TXN_EXECUTION_STATUS, type TXN_HASH, type TXN_STATUS, TimeoutError, type TipAnalysisOptions, type TipEstimate, type TipType, type TokenData, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptValue, type TransactionStatus, type TransactionStatusReceiptSets, type TransactionTrace, TransactionType, type TransactionWithHash, type Tupled, type TypedContractV2, UINT_128_MAX, UINT_128_MIN, UINT_256_HIGH_MAX, UINT_256_HIGH_MIN, UINT_256_LOW_MAX, UINT_256_LOW_MIN, UINT_256_MAX, UINT_256_MIN, UINT_512_MAX, UINT_512_MIN, Uint, type Uint256, type Uint512, type UniversalDeployerContractPayload, type UniversalDetails, type UserInvoke, type UserTransaction, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, WalletAccountV5, WebSocketChannel, type WebSocketModule, WebSocketNotConnectedError, type WebSocketOptions, type WeierstrassSignatureType, type WithOptions, addAddressPadding, brotherId, byteArray, cairo, compareVersions, config, constants, contractClassResponseToLegacyCompiledContract, contractLoader, createAbiParser, createTransactionReceipt, defaultDeployer, defaultPlugins, ec, encode, eth, index as events, extractContractHashes, fastExecute, fastParsingStrategy, getAbiVersion, type getBlockTransactionsTracesOptions, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getGasPrices, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, getTipStatsFromBlocks, index$3 as hash, hdParsingStrategy, isAccount, isFileSystemAvailable, isNoConstructorValid, isPreConfirmedBlock, isPreConfirmedStateUpdate, isPreConfirmedTransaction, isRPC08Plus_ResourceBounds, isRPC08Plus_ResourceBoundsBN, isSierra, isSupportedSpecVersion, isV3Tx, isVersion, json, legacyDeployer, logger, merkle, num, outsideExecution, parseCalldataField, paymaster, provider, selector, shortString, src5, index$1 as stark, starknetId, toAnyPatchVersion, toApiVersion, index$2 as transaction, typedData, uint256$1 as uint256, units, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, verifyMessageInStarknet, type waitForTransactionOptions, connect as wallet, connectV5 as walletV5 };
|
|
10537
|
+
export { type Abi, type AbiEntry, type AbiEntryType, type AbiEnum, type AbiEnums, type AbiEvent, type AbiEvents, type AbiInterfaces, AbiParser1, AbiParser2, AbiParserInterface, type AbiStruct, type AbiStructs, Account, type AccountHooks, AccountInterface, type AccountInvocationItem, type AccountInvocations, type AccountInvocationsFactoryDetails, type AccountOptions, type AllowArray, type ApiEstimateFeeResponse, type Args, type ArgsOrCalldata, type ArgsOrCalldataWithOptions, type ArraySignatureType, type AsyncContractFunction, type BLOCK_HASH, type BLOCK_NUMBER, BatchClient, type BatchClientOptions, type BigNumberish, type Block$1 as Block, type BlockIdentifier, type BlockNumber, BlockStatus, BlockTag, type BlockTransactionTrace, type BlockTransactionsTracesWithInitialReads, type BlockWithTxHashes, BrotherIdImpl, type BrotherIdProviderMethods, type BrotherProfile, type Builtins, type ByteArray, type ByteCode, type CairoAssembly, CairoByteArray, CairoBytes31, type CairoContract, CairoCustomEnum, type CairoEnum, type CairoEnumRaw, type CairoEvent, type CairoEventDefinition, type CairoEventVariant, CairoFelt, CairoFelt252, CairoFixedArray, CairoInt128, CairoInt16, CairoInt32, CairoInt64, CairoInt8, CairoOption, CairoOptionVariant, CairoResult, CairoResultVariant, CairoUint128, CairoUint16, CairoUint256, CairoUint32, CairoUint512, CairoUint64, CairoUint8, CairoUint96, type CairoVersion, type Call, type CallContractResponse, CallData, type CallDetails, type CallOptions, type CallResult, type Calldata, type CommonContractOptions, type CompiledContract, type CompiledSierra, type CompiledSierraCasm, type CompilerVersion, type CompleteDeclareContractPayload, type CompressedProgram, Contract, type ContractClass, type ContractClassIdentifier, type ContractClassPayload, type ContractClassResponse, type ContractEntryPointFields, type ContractFunction, ContractInterface, type ContractOptions, type ContractVersion, type DeclareAndDeployContractPayload, type DeclareContractPayload, type DeclareContractResponse, type DeclareContractTransaction, type DeclareDeployUDCResponse, type DeclareSignerDetails, type DeclareTransactionReceiptResponse, type DeclaredTransaction, type DeployAccountContractPayload, type DeployAccountContractTransaction, type DeployAccountSignerDetails, type DeployAccountTransactionReceiptResponse, type DeployAndInvokeTransaction, type DeployContractResponse, type DeployContractUDCResponse, type DeployTransaction, type DeployTransactionReceiptResponse, type DeployedAccountTransaction, Deployer, type DeployerCall, DeployerInterface, type Details, EDAMode, EDataAvailabilityMode, ESubscriptionTag, ETH_ADDRESS, ETraceFlag, ETransactionExecutionStatus, ETransactionStatus, ETransactionVersion, ETransactionVersion2, ETransactionVersion3, ETxnResponseFlag, type EVENTS_CHUNK, type EmittedEvent, EntryPointType, type EntryPointsByType, type ErrorReceiptResponseHelper, type EstimateFeeBulk, type EstimateFeeResponseBulkOverhead, type EstimateFeeResponseOverhead, EthSigner, type Event$1 as Event, type EventEntry, type EventFilter, type ExecutableDeployAndInvokeTransaction, type ExecutableDeployTransaction, type ExecutableInvokeTransaction, type ExecutableUserInvoke, type ExecutableUserTransaction, type ExecuteOptions, type ExecutionParameters, type FEE_ESTIMATE, type FELT, type FactoryParams, type FastExecuteAccountMethods, type FastExecuteProviderMethods, type FastExecuteResponse, type FastWaitForTransactionOptions, type FeeEstimate, type FeeMode, type FormatResponse, type FunctionAbi, type GasPrices, type GetBlockResponse, type GetTransactionReceiptResponse, type GetTransactionResponse, type GetTxReceiptResponseWithoutHelper, type HexCalldata, type Hint, type INITIAL_READS, Int, type InterfaceAbi, type Invocation, type Invocations, type InvocationsDetails, type InvocationsDetailsWithNonce, type InvocationsSignerDetails, type InvokeFunctionResponse, type InvokeTransaction, type InvokeTransactionReceiptResponse, type InvokedTransaction, type L1HandlerTransactionReceiptResponse, type L1_HANDLER_TXN, type LedgerPathCalculation, LedgerSigner111 as LedgerSigner, LedgerSigner111, LedgerSigner221, LedgerSigner231, type LegacyCompiledContract, type LegacyContractClass, type LegacyEvent, LibraryError, Literal, type LoadedContract, type LogLevel, LogLevelIndex, type Methods, type MultiDeployContractResponse, type MultiType, NON_ZERO_PREFIX, type Nonce, type OptionalPayload, type OutsideCall, type OutsideExecution, type OutsideExecutionOptions, OutsideExecutionTypesV1, OutsideExecutionTypesV2, OutsideExecutionVersion, type OutsideTransaction, type PRE_CONFIRMED_STATE_UPDATE, type PRICE_UNIT, type ParsedEvent, type ParsedEvents, type ParsedStruct, type ParsingStrategy, type PaymasterDetails, type PaymasterFeeEstimate, PaymasterInterface, type PaymasterOptions, PaymasterRpc, type PaymasterRpcOptions, type PaymasterTimeBounds, type PluginConfig, PluginManager, type PreConfirmedBlock, type PreConfirmedStateUpdate, type PreparedDeployAndInvokeTransaction, type PreparedDeployTransaction, type PreparedInvokeTransaction, type PreparedTransaction, type Program, RpcProvider as Provider, type ProviderHooks, ProviderInterface, type ProviderOptions, type ProviderOrAccount, type PythonicHints, type RESOURCE_PRICE, index$4 as RPC, rpc_0_10_2 as RPC0102, rpc_0_10_3 as RPC0103, rpc_0_9_0 as RPC09, RPCResponseParser, type RPC_ERROR, type RPC_ERROR_SET, type RawArgs, type RawArgsArray, type RawArgsObject, type RawCalldata, type Receipt, ReceiptTx, type ReconnectOptions, type RequiredKeysOf, type ResourceBounds, type ResourceBoundsBN, type ResourceBoundsOverhead, ResponseParser, type RevertedTransactionReceiptResponse, type RevertedTransactionReceiptResponseHelper, RpcChannel, RpcError, RpcProvider, type RpcProviderOptions, type SIMULATION_FLAG, type STATE_UPDATE, type SierraContractClass, type SierraContractEntryPointFields, type SierraEntryPointsByType, type SierraProgramDebugInfo, type Signature, Signer, SignerInterface, type Simplify, type SimulateTransaction, type SimulateTransactionDetails, type SimulateTransactionOverhead, type SimulateTransactionOverheadResponse, type SimulateTransactionResponse, type SimulationFlags, type StarkProfile, type StarknetIdAccountMethods, StarknetIdImpl, type StarknetIdProviderMethods, type StarknetPlugin, type StateUpdate, type StateUpdateResponse, type StorageResponse, type SubscribeEventsParams, type SubscribeNewHeadsParams, type SubscribeNewTransactionReceiptsParams, type SubscribeNewTransactionsParams, type SubscribeTransactionStatusParams, Subscription, type SubscriptionBlockIdentifier, type SubscriptionNewHeadsEvent, type SubscriptionNewTransactionEvent, type SubscriptionNewTransactionReceiptsEvent, type SubscriptionOptions, type SubscriptionStarknetEventsEvent, type SubscriptionTransactionStatusEvent, type SuccessfulTransactionReceiptResponse, type SuccessfulTransactionReceiptResponseHelper, type TXN_EXECUTION_STATUS, type TXN_HASH, type TXN_STATUS, TimeoutError, type TipAnalysisOptions, type TipEstimate, type TipType, type TokenData, TransactionExecutionStatus, TransactionFinalityStatus, type TransactionReceipt, type TransactionReceiptCallbacks, type TransactionReceiptCallbacksDefault, type TransactionReceiptCallbacksDefined, type TransactionReceiptStatus, type TransactionReceiptValue, type TransactionStatus, type TransactionStatusReceiptSets, type TransactionTrace, TransactionType, type TransactionWithHash, type Tupled, type TypedContractV2, UINT_128_MAX, UINT_128_MIN, UINT_256_HIGH_MAX, UINT_256_HIGH_MIN, UINT_256_LOW_MAX, UINT_256_LOW_MIN, UINT_256_MAX, UINT_256_MIN, UINT_512_MAX, UINT_512_MIN, Uint, type Uint256, type Uint512, type UniversalDeployerContractPayload, type UniversalDetails, type UserInvoke, type UserTransaction, type V3DeclareSignerDetails, type V3DeployAccountSignerDetails, type V3InvocationsSignerDetails, type V3TransactionDetails, ValidateType, WalletAccount, WalletAccountV5, WalletAccountV6, WebSocketChannel, type WebSocketModule, WebSocketNotConnectedError, type WebSocketOptions, type WeierstrassSignatureType, type WithOptions, addAddressPadding, brotherId, byteArray, cairo, compareVersions, config, constants, contractClassResponseToLegacyCompiledContract, contractLoader, createAbiParser, createTransactionReceipt, defaultDeployer, defaultPlugins, ec, encode, eth, index as events, extractContractHashes, fastExecute, fastParsingStrategy, getAbiVersion, type getBlockTransactionsTracesOptions, getChecksumAddress, type getContractVersionOptions, type getEstimateFeeBulkOptions, getGasPrices, getLedgerPathBuffer111 as getLedgerPathBuffer, getLedgerPathBuffer111, getLedgerPathBuffer221, type getSimulateTransactionOptions, getTipStatsFromBlocks, index$3 as hash, hdParsingStrategy, isAccount, isFileSystemAvailable, isNoConstructorValid, isPreConfirmedBlock, isPreConfirmedStateUpdate, isPreConfirmedTransaction, isRPC08Plus_ResourceBounds, isRPC08Plus_ResourceBoundsBN, isSierra, isSupportedSpecVersion, isV3Tx, isVersion, json, legacyDeployer, logger, merkle, num, outsideExecution, parseCalldataField, paymaster, provider, selector, shortString, src5, index$1 as stark, starknetId, toAnyPatchVersion, toApiVersion, index$2 as transaction, typedData, uint256$1 as uint256, units, v2 as v2hash, v3 as v3hash, validateAndParseAddress, validateChecksumAddress, verifyMessageInStarknet, type waitForTransactionOptions, connect as wallet, connectV5 as walletV5, connectV6 as walletV6 };
|