Namespace: types
Namespaces​
Interfaces​
- Uint256
- Uint512
- Program
- ProviderOptions
- EstimateFee
- UniversalDetails
- PaymasterDetails
- EstimateFeeDetails
- DeployContractResponse
- OutsideExecutionOptions
- OutsideCall
- OutsideExecution
- OutsideTransaction
- PaymasterOptions
- TokenData
- PaymasterTimeBounds
References​
TypedDataRevision​
Re-exports TypedDataRevision
StarknetEnumType​
Re-exports StarknetEnumType
StarknetMerkleType​
Re-exports StarknetMerkleType
StarknetType​
Re-exports StarknetType
StarknetDomain​
Re-exports StarknetDomain
TypedData​
Re-exports TypedData
Type Aliases​
WeierstrassSignatureType​
Ƭ WeierstrassSignatureType: SignatureType
Defined in​
ArraySignatureType​
Ƭ ArraySignatureType: string[]
Defined in​
Signature​
Ƭ Signature: ArraySignatureType | WeierstrassSignatureType
Defined in​
BigNumberish​
Ƭ BigNumberish: string | number | bigint
Defined in​
ByteArray​
Ƭ ByteArray: Object
Type declaration​
| Name | Type |
|---|---|
data | BigNumberish[] |
pending_word | BigNumberish |
pending_word_len | BigNumberish |
Defined in​
Calldata​
Ƭ Calldata: string[] & { __compiled__?: true }
Compiled calldata ready to be sent
decimal-string array
Defined in​
RawCalldata​
Ƭ RawCalldata: BigNumberish[]
BigNumberish array
use CallData.compile() to convert to Calldata
Defined in​
HexCalldata​
Ƭ HexCalldata: string[]
Hexadecimal-string array
Defined in​
AllowArray​
Ƭ AllowArray<T>: T | T[]
Type parameters​
| Name |
|---|
T |
Defined in​
OptionalPayload​
Ƭ OptionalPayload<T>: { payload: T } | T
Type parameters​
| Name |
|---|
T |
Defined in​
RawArgs​
Ƭ RawArgs: RawArgsObject | RawArgsArray
Defined in​
RawArgsObject​
Ƭ RawArgsObject: Object
Index signature​
â–ª [inputName: string]: MultiType | MultiType[] | RawArgs
Defined in​
RawArgsArray​
Ƭ RawArgsArray: (MultiType | MultiType[] | RawArgs)[]
Defined in​
MultiType​
Ƭ MultiType: BigNumberish | Uint256 | object | boolean | CairoEnum
Defined in​
UniversalDeployerContractPayload​
Ƭ UniversalDeployerContractPayload: Object
Type declaration​
| Name | Type |
|---|---|
classHash | BigNumberish |
salt? | string |
unique? | boolean |
constructorCalldata? | RawArgs |
Defined in​
DeployAccountContractPayload​
Ƭ DeployAccountContractPayload: Object
Type declaration​
| Name | Type |
|---|---|
classHash | string |
constructorCalldata? | RawArgs |
addressSalt? | BigNumberish |
contractAddress? | string |
Defined in​
DeployAccountContractTransaction​
Ƭ DeployAccountContractTransaction: Omit<DeployAccountContractPayload, "contractAddress"> & { signature?: Signature }
Defined in​
DeclareContractPayload​
Ƭ DeclareContractPayload: Object
Type declaration​
| Name | Type |
|---|---|
contract | CompiledContract | string |
classHash? | string |
casm? | CompiledSierraCasm |
compiledClassHash? | string |
Defined in​
ContractClassIdentifier​
Ƭ ContractClassIdentifier: DeclareContractPayload | { classHash: string }
DeclareContractPayload with classHash or contract defined
Defined in​
CompleteDeclareContractPayload​
Ƭ CompleteDeclareContractPayload: Object
Type declaration​
| Name | Type |
|---|---|
contract | CompiledContract | string |
classHash | string |
casm? | CompiledSierraCasm |
compiledClassHash? | string |
Defined in​
DeclareAndDeployContractPayload​
Ƭ DeclareAndDeployContractPayload: Omit<UniversalDeployerContractPayload, "classHash"> & DeclareContractPayload
Defined in​
DeclareContractTransaction​
Ƭ DeclareContractTransaction: Object
Type declaration​
| Name | Type |
|---|---|
contract | ContractClass |
senderAddress | string |
signature? | Signature |
compiledClassHash? | string |
Defined in​
CallDetails​
Ƭ CallDetails: Object
Type declaration​
| Name | Type |
|---|---|
contractAddress | string |
calldata? | RawArgs | Calldata |
entrypoint? | string |
Defined in​
Invocation​
Ƭ Invocation: CallDetails & { signature?: Signature }
Defined in​
Call​
Ƭ Call: CallDetails & { entrypoint: string }
Defined in​
CairoVersion​
Ƭ CairoVersion: "0" | "1" | undefined
Defined in​
CompilerVersion​
Ƭ CompilerVersion: "0" | "1" | "2" | undefined
Defined in​
InvocationsDetails​
Ƭ InvocationsDetails: { nonce?: BigNumberish ; maxFee?: BigNumberish ; version?: BigNumberish } & Partial<V3TransactionDetails>
Defined in​
V3TransactionDetails​
Ƭ V3TransactionDetails: Object
Type declaration​
| Name | Type |
|---|---|
nonce | BigNumberish |
version | BigNumberish |
resourceBounds | ResourceBounds |
tip | BigNumberish |
paymasterData | BigNumberish[] |
accountDeploymentData | BigNumberish[] |
nonceDataAvailabilityMode | EDataAvailabilityMode |
feeDataAvailabilityMode | EDataAvailabilityMode |
Defined in​
Details​
Ƭ Details: Object
Contain all additional details params
Type declaration​
| Name | Type |
|---|---|
nonce | BigNumberish |
maxFee | BigNumberish |
version | BigNumberish |
chainId | StarknetChainId |
Defined in​
InvocationsDetailsWithNonce​
Ƭ InvocationsDetailsWithNonce: InvocationsDetails & { nonce: BigNumberish } | V3TransactionDetails
Defined in​
TransactionType​
Ƭ TransactionType: ValuesType<typeof TransactionType>
Defined in​
TransactionFinalityStatus​
Ƭ TransactionFinalityStatus: ValuesType<typeof TransactionFinalityStatus>
Defined in​
TransactionExecutionStatus​
Ƭ TransactionExecutionStatus: ValuesType<typeof TransactionExecutionStatus>
Defined in​
BlockStatus​
Ƭ BlockStatus: ValuesType<typeof BlockStatus>
Defined in​
BlockTag​
Ƭ BlockTag: ValuesType<typeof BlockTag>
Defined in​
BlockNumber​
Ƭ BlockNumber: BlockTag | null | number
Defined in​
BlockIdentifier​
Ƭ BlockIdentifier: BlockNumber | BigNumberish
hex string and BigInt are detected as block hashes
decimal string and number are detected as block numbers
text string are detected as block tag
null return 'pending' block tag
Defined in​
SubscriptionBlockIdentifier​
Ƭ SubscriptionBlockIdentifier: SUBSCRIPTION_BLOCK_TAG | string & {} | number | bigint
Defined in​
AccountInvocationItem​
Ƭ AccountInvocationItem: { type: typeof DECLARE } & DeclareContractTransaction | { type: typeof DEPLOY_ACCOUNT } & DeployAccountContractTransaction | { type: typeof INVOKE } & Invocation & InvocationsDetailsWithNonce
items used by AccountInvocations
Defined in​
AccountInvocations​
Ƭ AccountInvocations: AccountInvocationItem[]
Complete invocations array with account details (internal type from account -> provider)
Defined in​
Invocations​
Ƭ Invocations: ({ type: typeof DECLARE } & OptionalPayload<DeclareContractPayload> | { type: typeof DEPLOY } & OptionalPayload<AllowArray<UniversalDeployerContractPayload>> | { type: typeof DEPLOY_ACCOUNT } & OptionalPayload<DeployAccountContractPayload> | { type: typeof INVOKE } & OptionalPayload<AllowArray<Call>>)[]
Invocations array user provide to bulk method (simulate)
Defined in​
Tupled​
Ƭ Tupled: Object
Type declaration​
| Name | Type |
|---|---|
element | any |
type | string |
Defined in​
Args​
Ƭ Args: Object
Index signature​
â–ª [inputName: string]: BigNumberish | BigNumberish[] | ParsedStruct | ParsedStruct[]
Defined in​
ParsedStruct​
Ƭ ParsedStruct: Object
Index signature​
â–ª [key: string]: BigNumberish | BigNumberish[] | ParsedStruct | Uint256
Defined in​
waitForTransactionOptions​
Ƭ waitForTransactionOptions: Object
Type declaration​
| Name | Type |
|---|---|
retryInterval? | number |
successStates? | (TransactionFinalityStatus | TransactionExecutionStatus)[] |
errorStates? | (TransactionFinalityStatus | TransactionExecutionStatus)[] |
Defined in​
getSimulateTransactionOptions​
Ƭ getSimulateTransactionOptions: Object
Type declaration​
| Name | Type |
|---|---|
blockIdentifier? | BlockIdentifier |
skipValidate? | boolean |
skipExecute? | boolean |
skipFeeCharge? | boolean |
Defined in​
getContractVersionOptions​
Ƭ getContractVersionOptions: Object
Type declaration​
| Name | Type |
|---|---|
blockIdentifier? | BlockIdentifier |
compiler? | boolean |
Defined in​
getEstimateFeeBulkOptions​
Ƭ getEstimateFeeBulkOptions: Object
Type declaration​
| Name | Type |
|---|---|
blockIdentifier? | BlockIdentifier |
skipValidate? | boolean |
Defined in​
ContractVersion​
Ƭ ContractVersion: Object
Represent Contract version
Type declaration​
| Name | Type | Description |
|---|---|---|
cairo | CairoVersion | version of the cairo language |
compiler | CompilerVersion | version of the cairo compiler used to compile the contract |
Defined in​
ContractClass​
Ƭ ContractClass: LegacyContractClass | SierraContractClass
format produced after compressing compiled contract
CompressedCompiledContract
Defined in​
src/types/lib/contract/index.ts:11
CompiledContract​
Ƭ CompiledContract: LegacyCompiledContract | CompiledSierra
format produced after compile .cairo to .json
Defined in​
src/types/lib/contract/index.ts:16
CairoContract​
Ƭ CairoContract: ContractClass | CompiledContract
Compressed or decompressed Cairo0 or Cairo1 Contract
Defined in​
src/types/lib/contract/index.ts:21
EntryPointType​
Ƭ EntryPointType: ValuesType<typeof EntryPointType>
Defined in​
src/types/lib/contract/index.ts:24
src/types/lib/contract/index.ts:30
Abi​
Ƭ Abi: ReadonlyArray<FunctionAbi | AbiEvent | AbiStruct | InterfaceAbi | any>
ABI
Defined in​
src/types/lib/contract/abi.ts:4
AbiEntry​
Ƭ AbiEntry: Object
Type declaration​
| Name | Type |
|---|---|
name | string |
type | "felt" | "felt*" | "event" | string |
Defined in​
src/types/lib/contract/abi.ts:7
EventEntry​
Ƭ EventEntry: Object
Type declaration​
| Name | Type |
|---|---|
name | string |
type | "felt" | "felt*" | string |
kind | "key" | "data" |
Defined in​
src/types/lib/contract/abi.ts:9
FunctionAbi​
Ƭ FunctionAbi: Object
Type declaration​
| Name | Type |
|---|---|
inputs | AbiEntry[] |
name | string |
outputs | AbiEntry[] |
stateMutability? | "view" |
state_mutability? | string |
type | FunctionAbiType |
Defined in​
src/types/lib/contract/abi.ts:14
AbiStructs​
Ƭ AbiStructs: Object
Index signature​
â–ª [name: string]: AbiStruct
Defined in​
src/types/lib/contract/abi.ts:23