Skip to main content
Version: Next

Namespace: constants

Utils

Enumerations​

Type Aliases​

SupportedRpcVersion​

Ƭ SupportedRpcVersion: typeof SupportedRpcVersion[keyof typeof SupportedRpcVersion]

Defined in​

src/global/constants.ts:78

src/global/constants.ts:82


SupportedTransactionVersion​

Ƭ SupportedTransactionVersion: typeof V2 | typeof V3

Defined in​

src/global/constants.ts:84

Variables​

IS_BROWSER​

• Const IS_BROWSER: boolean

Defined in​

src/utils/encode.ts:3


TEXT_TO_FELT_MAX_LEN​

• Const TEXT_TO_FELT_MAX_LEN: 31

Cairo Felt support storing max 31 character

Defined in​

src/global/constants.ts:10


TRANSACTION_VERSION​

• TRANSACTION_VERSION: Object

Type declaration​

NameTypeDescription
V0"0x0"Deprecated Starknet 0.14 will not support this transaction
V1"0x1"Deprecated Starknet 0.14 will not support this transaction
V2"0x2"Deprecated Starknet 0.14 will not support this transaction
V3"0x3"-
F0"0x100000000000000000000000000000000"Deprecated Starknet 0.14 will not support this transaction
F1"0x100000000000000000000000000000001"Deprecated Starknet 0.14 will not support this transaction
F2"0x100000000000000000000000000000002"Deprecated Starknet 0.14 will not support this transaction
F3"0x100000000000000000000000000000003"-

Defined in​

src/global/constants.ts:17


ZERO​

• Const ZERO: 0n

Defined in​

src/global/constants.ts:19


MASK_250​

• Const MASK_250: bigint

Defined in​

src/global/constants.ts:20


MASK_31​

• Const MASK_31: bigint

Defined in​

src/global/constants.ts:21


API_VERSION​

• Const API_VERSION: 0n

Defined in​

src/global/constants.ts:22


PRIME​

• Const PRIME: bigint

Defined in​

src/global/constants.ts:23


MAX_STORAGE_ITEM_SIZE​

• Const MAX_STORAGE_ITEM_SIZE: 256n

Defined in​

src/global/constants.ts:26


ADDR_BOUND​

• Const ADDR_BOUND: bigint

Defined in​

src/global/constants.ts:27


RANGE_FELT​

• Const RANGE_FELT: Object

Type declaration​

NameType
minbigint
maxbigint

Defined in​

src/global/constants.ts:31


RANGE_I128​

• Const RANGE_I128: Object

Type declaration​

NameType
minbigint
maxbigint

Defined in​

src/global/constants.ts:32


RANGE_U128​

• Const RANGE_U128: Object

Type declaration​

NameType
minbigint
maxbigint

Defined in​

src/global/constants.ts:33


UDC​

• Const UDC: Object

Type declaration​

NameType
ADDRESS"0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf"
ENTRYPOINT"deployContract"

Defined in​

src/global/constants.ts:58


OutsideExecutionCallerAny​

• Const OutsideExecutionCallerAny: "0x414e595f43414c4c4552"

Defined in​

src/global/constants.ts:63


SNIP9_V1_INTERFACE_ID​

• Const SNIP9_V1_INTERFACE_ID: "0x68cfd18b92d1907b8ba3cc324900277f5a3622099431ea85dd8089255e4181"

Defined in​

src/global/constants.ts:64


SNIP9_V2_INTERFACE_ID​

• Const SNIP9_V2_INTERFACE_ID: "0x1d1144bb2138366ff28d8e9ab57456b1d332ac42196230c3a602003c89872"

Defined in​

src/global/constants.ts:66


HARDENING_BYTE​

• Const HARDENING_BYTE: 128

Defined in​

src/global/constants.ts:71


HARDENING_4BYTES​

• Const HARDENING_4BYTES: 2147483648n

Defined in​

src/global/constants.ts:73


SupportedRpcVersion​

• Const SupportedRpcVersion: Object

dot formate rpc versions

Type declaration​

NameType
0.7"0.7"
0.8"0.8"

Defined in​

src/global/constants.ts:78

src/global/constants.ts:82


DEFAULT_GLOBAL_CONFIG​

• Const DEFAULT_GLOBAL_CONFIG: Object

Type declaration​

NameType
legacyModeboolean
logLevelLogLevel
rpcVersionSupportedRpcVersion
transactionVersionSupportedTransactionVersion
feeMarginPercentageFeeMarginPercentage

Defined in​

src/global/constants.ts:89


RPC_DEFAULT_NODES​

• Const RPC_DEFAULT_NODES: Object

Type declaration​

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

Defined in​

src/global/constants.ts:119


SYSTEM_MESSAGES​

• Const SYSTEM_MESSAGES: Object

Type declaration​

NameType
legacyTxWarningMessagestring
legacyTxRPC08Messagestring
SWOldV3string

Defined in​

src/global/constants.ts:131