Skip to content

Commit

Permalink
Implemented execution/evm.go
Browse files Browse the repository at this point in the history
  • Loading branch information
x-senpai-x committed Sep 22, 2024
1 parent fb59b2e commit fe75419
Show file tree
Hide file tree
Showing 6 changed files with 1,087 additions and 26 deletions.
45 changes: 23 additions & 22 deletions common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/ethereum/go-ethereum/core/types"
"github.com/holiman/uint256"
"strconv"
Common"github.com/ethereum/go-ethereum/common"
)

// need to confirm how such primitive types will be imported,
Expand All @@ -17,29 +18,29 @@ import (
type Address struct {
addr [20]byte
}

//Changed address of Miner to Common.Address instead of Address
type Block struct {
number uint64
base_fee_per_gas uint256.Int
difficulty uint256.Int
extra_data []byte
gas_limit uint64
gas_used uint64
hash [32]byte
logs_bloom []byte
miner Address
mix_hash [32]byte
nonce string
parent_hash [32]byte
receipts_root [32]byte
sha3_uncles [32]byte
size uint64
state_root [32]byte
timestamp uint64
total_difficulty uint64
transactions Transactions
transactions_root [32]byte
uncles [][32]byte
Number uint64
BaseFeePerGas uint256.Int
Difficulty uint256.Int
Extra_data []byte
GasLimit uint64
Gas_used uint64
Hash [32]byte
Logs_bloom []byte
Miner Common.Address
Mix_hash [32]byte
Nonce string
Parent_hash [32]byte
Receipts_root [32]byte
Sha3_uncles [32]byte
Size uint64
State_root [32]byte
Timestamp uint64
Total_difficulty uint64
Transactions Transactions
Transactions_root [32]byte
Uncles [][32]byte
}

// an enum having 2 types- how to implement??
Expand Down
Binary file added execution/.DS_Store
Binary file not shown.
Loading

0 comments on commit fe75419

Please sign in to comment.