Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions kevm-pyk/src/kevm_pyk/kproj/evm-semantics/evm.md
Original file line number Diff line number Diff line change
Expand Up @@ -1102,9 +1102,22 @@ These are just used by the other operators for shuffling local execution state a
<balance> ORIGTO => ORIGTO +Word VALUE </balance>
...
</account>
<log> L => L #transferLogItem(SCHED, ACCTFROM, ACCTTO, VALUE) </log>
<schedule> SCHED </schedule>
requires ACCTFROM =/=K ACCTTO andBool VALUE <=Int ORIGFROM
[preserves-definedness]

syntax Int ::= "#transferEventTopic" [alias]
// --------------------------------------------
rule #transferEventTopic => 100389287136786176327247604509743168900146139575972864366142685224231313322991

syntax List ::= "#transferLogItem" "(" Schedule "," Int "," Int "," Int ")" [function, total]
// ---------------------------------------------------------------------------------------------
rule #transferLogItem(SCHED, ACCTFROM, ACCTTO, VALUE)
=> ListItem({ SYSTEM_ADDRESS | ListItem(#transferEventTopic) ListItem(ACCTFROM) ListItem(ACCTTO) | #padToWidth(32, #asByteStack(VALUE)) })
requires Ghaseip7708 << SCHED >> andBool VALUE =/=Int 0
rule #transferLogItem(_, _, _, _) => .List [owise]

rule <k> #transferFunds ACCTFROM _ACCTTO VALUE => #end EVMC_BALANCE_UNDERFLOW ... </k>
<account>
<acctID> ACCTFROM </acctID>
Expand Down
9 changes: 6 additions & 3 deletions kevm-pyk/src/kevm_pyk/kproj/evm-semantics/schedule.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ module SCHEDULE
| "Ghaswarmcoinbase" | "Ghaswithdrawals" | "Ghastransient" | "Ghasmcopy"
| "Ghasbeaconroot" | "Ghaseip6780" | "Ghasblobbasefee" | "Ghasblobhash"
| "Ghasbls12msmdiscount" | "Ghashistory" | "Ghasrequests" | "Ghasauthority"
| "Ghasfloorcost" | "Ghasclz"
// -------------------------------------------------------------
| "Ghasfloorcost" | "Ghasclz" | "Ghaseip7708"
// ---------------------------------------------------------------------------------------
```

### Schedule Constants
Expand Down Expand Up @@ -183,6 +183,7 @@ A `ScheduleConst` is a constant determined by the fee schedule.
rule [GhasauthorityDefault]: Ghasauthority << DEFAULT >> => false
rule [GhasfloorcostDefault]: Ghasfloorcost << DEFAULT >> => false
rule [GhasclzDefault]: Ghasclz << DEFAULT >> => false
rule [Ghaseip7708Default]: Ghaseip7708 << DEFAULT >> => false
```

### Frontier Schedule
Expand Down Expand Up @@ -526,7 +527,9 @@ A `ScheduleConst` is a constant determined by the fee schedule.
orBool SCHEDCONST ==K Blobbasefeeupdatefraction
)

rule [SCHEDFLAGAmsterdam]: SCHEDFLAG << AMSTERDAM >> => SCHEDFLAG << OSAKA >>
rule [Ghaseip7708Amsterdam]: Ghaseip7708 << AMSTERDAM >> => true
rule [SCHEDFLAGAmsterdam]: SCHEDFLAG << AMSTERDAM >> => SCHEDFLAG << OSAKA >>
requires notBool ( SCHEDFLAG ==K Ghaseip7708 )
```

```k
Expand Down
Loading