Skip to main content
Version: Next

Namespace: constants

Utils

Enumerations​

References​

TRANSACTION_VERSION​

Renames and re-exports ETransactionVersion

Variables​

IS_BROWSER​

• Const IS_BROWSER: boolean

Defined in​

src/utils/encode.ts:4


TEXT_TO_FELT_MAX_LEN​

• Const TEXT_TO_FELT_MAX_LEN: 31

Cairo Felt support storing max 31 character

Defined in​

src/constants.ts:8


ZERO​

• Const ZERO: 0n

Defined in​

src/constants.ts:17


MASK_250​

• Const MASK_250: bigint

Defined in​

src/constants.ts:18


MASK_31​

• Const MASK_31: bigint

Defined in​

src/constants.ts:19


API_VERSION​

• Const API_VERSION: 0n

Defined in​

src/constants.ts:20


PRIME​

• Const PRIME: bigint

Defined in​

src/constants.ts:21


MAX_STORAGE_ITEM_SIZE​

• Const MAX_STORAGE_ITEM_SIZE: 256n

Defined in​

src/constants.ts:24


ADDR_BOUND​

• Const ADDR_BOUND: bigint

Defined in​

src/constants.ts:25


RANGE_FELT​

• Const RANGE_FELT: Object

Type declaration​

NameType
minbigint
maxbigint

Defined in​

src/constants.ts:29


RANGE_I128​

• Const RANGE_I128: Object

Type declaration​

NameType
minbigint
maxbigint

Defined in​

src/constants.ts:30


RANGE_U128​

• Const RANGE_U128: Object

Type declaration​

NameType
minbigint
maxbigint

Defined in​

src/constants.ts:31


UDC​

• Const UDC: Object

Type declaration​

NameType
ADDRESS"0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf"
ENTRYPOINT"deployContract"

Defined in​

src/constants.ts:62


RPC_DEFAULT_VERSION​

• Const RPC_DEFAULT_VERSION: "v0_7"

Defined in​

src/constants.ts:67


RPC_NODES​

• Const RPC_NODES: Object

Type declaration​

NameType
SN_MAINreadonly ["https://starknet-mainnet.public.blastapi.io/rpc/v0_7", "https://free-rpc.nethermind.io/mainnet-juno/v0_7"]
SN_SEPOLIAreadonly ["https://starknet-sepolia.public.blastapi.io/rpc/v0_7", "https://free-rpc.nethermind.io/sepolia-juno/v0_7"]

Defined in​

src/constants.ts:69


OutsideExecutionCallerAny​

• Const OutsideExecutionCallerAny: "0x414e595f43414c4c4552"

Defined in​

src/constants.ts:80


SNIP9_V1_INTERFACE_ID​

• Const SNIP9_V1_INTERFACE_ID: "0x68cfd18b92d1907b8ba3cc324900277f5a3622099431ea85dd8089255e4181"

Defined in​

src/constants.ts:81


SNIP9_V2_INTERFACE_ID​

• Const SNIP9_V2_INTERFACE_ID: "0x1d1144bb2138366ff28d8e9ab57456b1d332ac42196230c3a602003c89872"

Defined in​

src/constants.ts:83