xermicus
8754d802fa
llvm-context: bugfix PHI values in SAR builtin translation ( #345 )
...
Closes #344
Signed-off-by: xermicus <cyrill@parity.io >
2025-06-14 15:12:03 +02:00
xermicus
7d8fa75a0f
storage keys and values should be big endian ( #277 )
...
Storage keys and values are big endian. Keeping them LE was a pre-mature
optimization because for the contract itself it this is a no-op and thus
not observable. However we should consider the storage layout as part of
the contract ABI. The endianness of transient storage values are still
kept as-is.
---------
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2025-04-07 10:34:44 +02:00
xermicus
dab29bc89b
bugfix missing byte swap for the create2 salt value ( #272 )
...
Found in https://github.com/paritytech/contract-issues/issues/45 , thanks
@albertov19 and @sekisamu
---------
Signed-off-by: xermicus <cyrill@parity.io >
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2025-04-03 15:20:22 +02:00
xermicus
4a9b651235
Support solc v0.8.29 ( #261 )
...
No observable changes w.r.t. YUL compilation.
- Mark solc v0.8.29 as the latest supported version
- Add integration test for solc v0.8.29 specific feature
- Use the latest version on CI
- Drive-by fix linter complaints and a two types in the CI yaml files
---------
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
Signed-off-by: xermicus <cyrill@parity.io >
2025-03-18 13:01:15 +01:00
xermicus
93788e72e9
integration: additional mcopy test ( #245 )
...
Closes #237
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2025-02-27 11:39:31 +01:00
xermicus
296a226d0b
integration: add delegate call corner case test ( #243 )
...
Closes #235
---------
Signed-off-by: xermicus <cyrill@parity.io >
2025-02-27 11:10:00 +01:00
xermicus
84deb3a29d
integration: add function return type test ( #244 )
...
Closes #236
2025-02-27 10:37:37 +01:00
xermicus
cb268850a9
llvm-context: remove the linear memory pointer indirection ( #211 )
2025-02-13 13:21:43 +01:00
xermicus
374563bbe5
integration: add function pointer integration test ( #205 )
...
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2025-02-10 18:50:12 +01:00
xermicus
60fc09f787
llvm-context: disable call re-entrancy for send and transfer ( #196 )
2025-02-06 16:49:50 +01:00
xermicus
de3e7bf253
integration: add create2 test case with duplicate salt ( #188 )
...
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2025-02-04 14:04:14 +01:00
xermicus
1a8a7926e9
implement the coinbase opcode ( #179 )
...
Signed-off-by: xermicus <cyrill@parity.io >
2025-01-29 15:24:45 +01:00
Cyrill Leutwiler
ad805543b3
call and create set uncapped resource limits ( #161 )
...
- polkadot-sdk#6890 companion
- Adjust the gas price constant for the required polkadot-sdk version as a drive-by
2025-01-15 17:32:31 +01:00
Cyrill Leutwiler
d8752ec6b5
the basefee opcode ( #142 )
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-12-19 18:59:10 +01:00
Cyrill Leutwiler
22070a824d
the gas limit opcode ( #139 )
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-12-18 20:31:42 +01:00
Cyrill Leutwiler
14a598e840
implement the gas opcode ( #136 )
2024-12-18 17:19:32 +01:00
Cyrill Leutwiler
f0d9d44dce
Implement the gasprice opcode ( #127 )
2024-11-29 17:14:27 +01:00
Ermal Kaleci
01b5ed5ba3
Implement delegate_call ( #80 )
2024-11-23 18:05:21 +01:00
Cyrill Leutwiler
3232382d96
update dependencies ( #115 )
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-11-15 13:50:55 +01:00
Cyrill Leutwiler
6a120463c2
implement the blockhash opcode ( #114 )
2024-11-15 13:11:04 +01:00
Cyrill Leutwiler
43d2ef3ce9
implement the code size opcodes ( #107 )
2024-10-31 11:46:47 +01:00
Cyrill Leutwiler
5b3b90db83
support the origin opcode ( #103 )
...
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2024-10-29 18:40:25 +01:00
Ermal Kaleci
aae25107a2
support full storage key space ( #100 )
...
- The storage pointer values will no longer be truncated to the register size, allowing for the use of arbitrary storage keys
- Failed storage value reads will now guarantee to return the zero value
2024-10-28 10:18:11 +01:00
Ermal Kaleci
ee83d28a51
Implement extcodehash ( #77 )
2024-10-21 10:13:50 +02:00
Cyrill Leutwiler
f0f344a139
disable sbrk and emulate EVM linear memory internally ( #76 )
...
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
Signed-off-by: xermicus <cyrill@parity.io >
2024-10-14 15:20:00 +02:00
Cyrill Leutwiler
e5233fc46e
revive-runner: consider non-reverted transactions as success ( #82 )
...
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2024-10-14 13:24:59 +02:00
Ermal Kaleci
d9842b5427
Fix implementation for balance_of ( #79 )
...
The balance_of syscall is now available in pallet-revive.
- Fix balance_of implementation to use correct runtime api
- Add build_address_argument_store helper to be used for address arguments
2024-10-12 12:35:10 +02:00
Cyrill Leutwiler
d5d419cefc
implement immutable variables codegen ( #70 )
2024-10-10 13:33:00 +02:00
xermicus
b344e0cff5
Revert "implement immutable variables codegen"
...
This reverts commit 0e6a6d12c3 .
2024-10-09 03:43:05 +02:00
xermicus
0e6a6d12c3
implement immutable variables codegen
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-10-09 03:37:56 +02:00
Cyrill Leutwiler
6585973e99
Updated call semantics ( #56 )
...
- Update pallet-revive dependency
- Implement calls according to pallet-revive call semantics
- Switch to the new return data API in pallet revive and get rid of return data buffer
- Remove a bunch of resulting dead code
2024-09-28 20:03:03 +02:00
Cyrill Leutwiler
066acc4663
set chain_id in test runtime
...
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2024-09-28 19:17:41 +02:00
Cyrill Leutwiler
6635a0b337
fixed size event topics
...
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2024-09-10 09:09:52 +02:00
Cyrill Leutwiler
2955f77772
implement self balance
...
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2024-09-09 09:40:24 +02:00
Cyrill Leutwiler
d77ee1e0d4
runner: endow test accounts on genesis
...
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2024-09-06 13:50:01 +02:00
Cyrill Leutwiler
d47539159b
enable call context address tests
...
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2024-09-04 12:55:44 +02:00
Cyrill Leutwiler
d2f76b645f
switch to pallet_revive runtime ( #40 )
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-09-03 17:18:22 +02:00
xermicus
10c7045e15
Implement CODESIZE
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-06-06 15:10:21 +02:00
xermicus
39d78179d4
implement transient storage
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-06-05 17:34:17 +02:00
xermicus
2d0a0e2e81
implement BYTE
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-06-04 18:45:06 +02:00
Cyrill Leutwiler
5ff17da695
Implement balance ( #20 )
2024-06-03 12:21:49 +02:00
Cyrill Leutwiler
1ba806be1f
Contract calls ( #19 )
2024-06-01 20:48:20 +02:00
Cyrill Leutwiler
532721f3be
Implement MCOPY ( #18 )
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-05-29 21:43:22 +02:00
xermicus
5138fe3d06
implement EXTCODESIZE
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-05-22 22:56:03 +02:00
Cyrill Leutwiler
06aa289d9b
Constructors and contract creation ( #11 )
...
Implement constructor logic and support create/create2 in the mock runtime
Signed-off-by: xermicus <cyrill@parity.io >
2024-05-22 21:35:32 +02:00
xermicus
83bf9d6041
events
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-05-14 09:46:18 +02:00
xermicus
6af889c1ff
implement division and remainder operations
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-05-08 23:21:16 +02:00
Cyrill Leutwiler
ea63991617
implement address and msg.sender
...
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com >
2024-05-08 16:09:23 +02:00
xermicus
95ff85c6d1
implement block.number and block.timestamp
...
Signed-off-by: xermicus <cyrill@parity.io >
2024-05-07 18:03:17 +02:00
Cyrill Leutwiler
df8ebb61ec
Integrate benchmarks and differential tests against an EVM interpreter ( #7 )
2024-04-24 18:51:19 +02:00