-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
143 lines (136 loc) · 6.95 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[project]
name = "keth"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = []
[tool.uv]
dev-dependencies = ["jupyter>=1.1.1"]
[tool.uv.workspace]
members = ["cairo"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:Using or importing the ABCs:DeprecationWarning", # from frozendict
"ignore:lexer_state will be removed in subsequent releases. Use lexer_thread instead.", # from lark
"ignore:abi:DeprecationWarning", # from web3
"ignore::marshmallow.warnings.RemovedInMarshmallow4Warning", # from marshmallow
]
asyncio_default_fixture_loop_scope = 'session'
markers = [
"ArithmeticOperations",
"ADD: Opcode Value 0x01 - Addition operation",
"MUL: Opcode Value 0x02 - Multiplication operation",
"SUB: Opcode Value 0x03 - Subtraction operation",
"DIV: Opcode Value 0x04 - Integer division operation",
"SDIV: Opcode Value 0x05 - Signed integer division operation (truncated)",
"MOD: Opcode Value 0x06 - Modulo remainder operation",
"SMOD: Opcode Value 0x07 - Signed modulo remainder operation",
"ADDMOD: Opcode Value 0x08 - Modulo addition operation",
"MULMOD: Opcode Value 0x09 - Modulo multiplication operation",
"EXP: Opcode Value 0x0a - Exponential operation",
"SIGNEXTEND: Opcode Value 0x0b - Extend length of two's complement signed integer",
"ComparisonBitwiseLogicOperations",
"LT: Opcode Value 0x10 - Less-than comparison",
"GT: Opcode Value 0x11 - Greater-than comparison",
"SLT: Opcode Value 0x12 - Signed less-than comparison",
"SGT: Opcode Value 0x13 - Signed greater-than comparison",
"EQ: Opcode Value 0x14 - Equality comparison",
"ISZERO: Opcode Value 0x15 - Simple not operator",
"AND: Opcode Value 0x16 - Bitwise AND operation",
"OR: Opcode Value 0x17 - Bitwise OR operation",
"NOT: Opcode Value 0x19 - Bitwise NOT operation",
"SHL: Opcode Value 0x1b - Shift left",
"SHR: Opcode Value 0x1c - Logical shift right",
"SAR: Opcode Value 0x1d - Arithmetic shift right",
"SHA3: Opcode Value 0x20 - Compute Keccak-256 hash",
"EnvironmentalInformation",
"ADDRESS: Opcode Value 0x30 - Get address of currently executing account",
"BALANCE: Opcode Value 0x31 - Get balance of the given account",
"ORIGIN: Opcode Value 0x32 - Get execution origination address",
"CALLER: Opcode Value 0x33 - Get caller address",
"CALLVALUE: Opcode Value 0x34 - Get deposited value by the instruction/transaction responsible for this execution",
"CALLDATALOAD: Opcode Value 0x35 - Get input data of current environment",
"CALLDATASIZE: Opcode Value 0x36 - Get size of input data in current environment",
"CALLDATACOPY: Opcode Value 0x37 - Copy input data in current environment to memory",
"CODESIZE: Opcode Value 0x38 - Get size of code running in current environment",
"CODECOPY: Opcode Value 0x39 - Copy code running in current environment to memory",
"RETURNDATASIZE: Opcode Value 0x3d - Get size of output data from the previous call from the current environment",
"BlockInformation",
"BLOCKHASH: Opcode Value 0x40 - Get the hash of one of the 256 most recent complete blocks",
"COINBASE: Opcode Value 0x41 - Get the block's beneficiary address",
"TIMESTAMP: Opcode Value 0x42 - Get the block's timestamp",
"NUMBER: Opcode Value 0x43 - Get the block's number",
"DIFFICULTY: Opcode Value 0x44 - Get the block's difficulty",
"GASLIMIT: Opcode Value 0x45 - Get the block's gas limit",
"CHAINID: Opcode Value 0x46 - Get the chain ID",
"SELFBALANCE: Opcode Value 0x47 - Get the balance of the current contract",
"BASEFEE: Opcode Value 0x48 - Get the base fee of the current block",
"BLOBHASH: Opcode Value 0x49 - Get the versioned hash at the requested index",
"BLOBBASEFEE: Opcode Value 0x4a - Get the blob base-fee of the current block",
"StackMemoryStorageFlowOperations",
"MLOAD: Opcode Value 0x51 - Load word from memory",
"MSTORE: Opcode Value 0x52 - Save word to memory",
"MSTORE8: Opcode Value 0x53 - Save byte to memory",
"SLOAD: Opcode Value 0x54 - Load word from storage",
"SSTORE: Opcode Value 0x55 - Save word to storage",
"JUMP: Opcode Value 0x56 - Alter the program counter",
"JUMPI: Opcode Value 0x57 - Conditionally alter the program counter",
"PC: Opcode Value 0x58 - Get the value of the program counter prior to the increment",
"MSIZE: Opcode Value 0x59 - Get the size of active memory in bytes",
"JUMPDEST: Opcode Value 0x5b - Mark a valid destination for jumps",
"TLOAD: Opcode Value 0x5c - Load word from transient storage",
"TSTORE: Opcode Value 0x5d - Save word to transient storage",
"MCOPY: Opcode Value 0x5e - Copy memory from one location to another",
"PushOperations",
"PUSH Opcodes 0x60 ~ 7f - Place n-byte item on stack",
"DuplicationOperations",
"DUP: Opcodes 0x80 ~ 8f - Duplicate nth stack item",
"ExchangeOperations",
"SWAP: Opcodes 0x90 ~ 9f - Exchange 1st and nth stack items",
"LoggingOperations",
"LOG: Opcodes 0xa0 ~ a4 - Append log record with n topics",
"SystemOperations",
"RETURN: Opcode Value 0xf3 - Halt execution returning output data",
"REVERT: Opcode value 0xfd - Halt execution reverting state changes",
"INVALID: Opcode Value 0xfe - Designated invalid instruction",
"Precompiles",
"EC_RECOVER: Precompile Value 0x01 - Elliptic curve digital signature algorithm (ECDSA) public key recovery function",
"SHA256: Precompile Value 0x02 - Hash function",
"RIPEMD160: Precompile Value 0x03 - Hash function",
"MOD_EXP: Precompile Value 0x05 - Modular exponentiation MVP - missing support for bigint",
"EC_ADD: Precompile Value 0x06 - Point addition (ADD) on the elliptic curve 'alt_bn128'",
"EC_MUL: Precompile Value 0x07 - Scalar multiplication (MUL) on the elliptic curve 'alt_bn128'",
"BLAKE2F: Precompile Value 0x09 - Blake2 compression function",
"Counter",
"PlainOpcodes",
"SolmateERC20",
"SolmateERC721",
"UniswapV2ERC20",
"UniswapV2Factory",
"RIP7212",
"CairoPrecompiles",
"UniswapV2Router",
"AccountContract",
"Utils",
"Safe",
"EFTests",
"SSTORE",
"SLOAD",
"NoCI",
"slow",
]
norecursedirs = "tests/ef_tests/test_data"
[tool.isort]
profile = "black"
[tool.autoflake]
in_place = true
remove_unused_variables = true
remove_all_unused_imports = true
[tool.codespell]
ignore-words = '.codespellignore'
skip = '.git'
check-filenames = ''
check-hidden = ''
[tool.bandit]
exclude_dirs = ["tests"]