Namespace: constants
Utils
Enumerations​
Type Aliases​
SupportedRpcVersion​
Ƭ SupportedRpcVersion: typeof SupportedRpcVersion
[keyof typeof SupportedRpcVersion
]
Defined in​
SupportedTransactionVersion​
Ƭ SupportedTransactionVersion: typeof V2
| typeof V3
Defined in​
Variables​
IS_BROWSER​
• Const
IS_BROWSER: boolean
Defined in​
TEXT_TO_FELT_MAX_LEN​
• Const
TEXT_TO_FELT_MAX_LEN: 31
Cairo Felt support storing max 31 character
Defined in​
TRANSACTION_VERSION​
• TRANSACTION_VERSION: Object
Type declaration​
Name | Type | Description |
---|---|---|
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​
ZERO​
• Const
ZERO: 0n
Defined in​
MASK_250​
• Const
MASK_250: bigint
Defined in​
MASK_31​
• Const
MASK_31: bigint
Defined in​
API_VERSION​
• Const
API_VERSION: 0n
Defined in​
PRIME​
• Const
PRIME: bigint
Defined in​
MAX_STORAGE_ITEM_SIZE​
• Const
MAX_STORAGE_ITEM_SIZE: 256n
Defined in​
ADDR_BOUND​
• Const
ADDR_BOUND: bigint
Defined in​
RANGE_FELT​
• Const
RANGE_FELT: Object
Type declaration​
Name | Type |
---|---|
min | bigint |
max | bigint |
Defined in​
RANGE_I128​
• Const
RANGE_I128: Object
Type declaration​
Name | Type |
---|---|
min | bigint |
max | bigint |
Defined in​
RANGE_U128​
• Const
RANGE_U128: Object
Type declaration​
Name | Type |
---|---|
min | bigint |
max | bigint |
Defined in​
UDC​
• Const
UDC: Object
Type declaration​
Name | Type |
---|---|
ADDRESS | "0x041a78e741e5af2fec34b695679bc6891742439f7afb8484ecd7766661ad02bf" |
ENTRYPOINT | "deployContract" |
Defined in​
OutsideExecutionCallerAny​
• Const
OutsideExecutionCallerAny: "0x414e595f43414c4c4552"
Defined in​
SNIP9_V1_INTERFACE_ID​
• Const
SNIP9_V1_INTERFACE_ID: "0x68cfd18b92d1907b8ba3cc324900277f5a3622099431ea85dd8089255e4181"
Defined in​
SNIP9_V2_INTERFACE_ID​
• Const
SNIP9_V2_INTERFACE_ID: "0x1d1144bb2138366ff28d8e9ab57456b1d332ac42196230c3a602003c89872"
Defined in​
HARDENING_BYTE​
• Const
HARDENING_BYTE: 128
Defined in​
HARDENING_4BYTES​
• Const
HARDENING_4BYTES: 2147483648n
Defined in​
SupportedRpcVersion​
• Const
SupportedRpcVersion: Object
dot formate rpc versions
Type declaration​
Name | Type |
---|---|
0.7 | "0.7" |
0.8 | "0.8" |
Defined in​
DEFAULT_GLOBAL_CONFIG​
• Const
DEFAULT_GLOBAL_CONFIG: Object
Type declaration​
Name | Type |
---|---|
legacyMode | boolean |
logLevel | LogLevel |
rpcVersion | SupportedRpcVersion |
transactionVersion | SupportedTransactionVersion |
feeMarginPercentage | FeeMarginPercentage |
Defined in​
RPC_DEFAULT_NODES​
• Const
RPC_DEFAULT_NODES: Object
Type declaration​
Name | Type |
---|---|
SN_MAIN | readonly ["https://starknet-mainnet.public.blastapi.io/rpc/" , "https://free-rpc.nethermind.io/mainnet-juno/" ] |
SN_SEPOLIA | readonly ["https://starknet-sepolia.public.blastapi.io/rpc/" , "https://free-rpc.nethermind.io/sepolia-juno/" ] |
Defined in​
SYSTEM_MESSAGES​
• Const
SYSTEM_MESSAGES: Object
Type declaration​
Name | Type |
---|---|
legacyTxWarningMessage | string |
legacyTxRPC08Message | string |
SWOldV3 | string |