Skip to main content
Version: Next

Namespace: CONTRACT

RPCSPEC08.API.CONTRACT

Type Aliases​

ABI​

Ƭ ABI: (FUNCTION | CONSTRUCTOR | L1_HANDLER | EVENT | STRUCT | ENUM | INTERFACE | IMPL)[]

Cairo v>=2 Contract ABI

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:11


FUNCTION​

Ƭ FUNCTION: Object

Type declaration​

NameTypeDescription
typeABI_TYPE_FUNCTION-
namestringthe function's name
inputsABI_NAME_AND_TYPE[]the arguments name and type.
outputsABI_TYPE[]the output type.
state_mutabilitySTATE_MUTABILITY-

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:12


CONSTRUCTOR​

Ƭ CONSTRUCTOR: Object

Type declaration​

NameType
typeABI_TYPE_CONSTRUCTOR
nameABI_TYPE_CONSTRUCTOR
inputsABI_NAME_AND_TYPE[]

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:28


L1_HANDLER​

Ƭ L1_HANDLER: Object

Type declaration​

NameType
typeABI_TYPE_L1_HANDLER
namestring
inputsABI_NAME_AND_TYPE[]
outputsABI_TYPE[]
state_mutabilitySTATE_MUTABILITY

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:33


EVENT​

Ƭ EVENT: { type: EVENT_ABI_TYPE ; name: string } & SimpleOneOf<ENUM_EVENT, STRUCT_EVENT>

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:40


STRUCT_EVENT​

Ƭ STRUCT_EVENT: Object

Type declaration​

NameTypeDescription
kindSTRUCT_ABI_TYPE-
membersEVENT_FIELD[]struct members

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:47


ENUM_EVENT​

Ƭ ENUM_EVENT: Object

Type declaration​

NameTypeDescription
kindABI_TYPE_ENUM-
variantsEVENT_FIELD[]enum variants

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:54


STRUCT​

Ƭ STRUCT: Object

Type declaration​

NameTypeDescription
typeSTRUCT_ABI_TYPE-
namestringthe (Cairo) struct name, including namespacing
membersABI_NAME_AND_TYPE[]name of the struct member. type of the struct member, including namespacing.

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:61


ENUM​

Ƭ ENUM: Object

Type declaration​

NameTypeDescription
typeABI_TYPE_ENUM-
namestringthe (Cairo) enum name, including namespacing
variantsABI_NAME_AND_TYPE[]name of the enum variant. type of the enum variant, including namespacing.

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:73


INTERFACE​

Ƭ INTERFACE: Object

Type declaration​

NameType
type"interface"
namestring
itemsFUNCTION[]

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:85


IMPL​

Ƭ IMPL: Object

Type declaration​

NameTypeDescription
type"impl"-
namestringthe name of an impl containing contract entry points
interface_namestringthe name of the trait corresponding to this impl

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:90


EVENT_KIND​

Ƭ EVENT_KIND: STRUCT_ABI_TYPE | ABI_TYPE_ENUM

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:101


EVENT_FIELD​

Ƭ EVENT_FIELD: Object

Type declaration​

NameTypeDescription
namestringthe name of the struct member or enum variant
typestringthe Cairo type of the member or variant, including namespacing
kind"key" | "data" | "nested" | "flat"-

Defined in​

node_modules/starknet-types-08/dist/types/api/contract.d.ts:102