Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented execution/evm.go #58

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
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
47 changes: 24 additions & 23 deletions common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,44 @@
"encoding/json"
"fmt"
"math/big"
"strconv"

Check failure on line 7 in common/types.go

View workflow job for this annotation

GitHub Actions / test

other declaration of strconv

Check failure on line 7 in common/types.go

View workflow job for this annotation

GitHub Actions / golangci-lint (/home/runner/work/selene/selene)

other declaration of strconv

Check failure on line 7 in common/types.go

View workflow job for this annotation

GitHub Actions / golangci-lint (/home/runner/work/selene/selene)

other declaration of strconv

Check failure on line 7 in common/types.go

View workflow job for this annotation

GitHub Actions / golangci-lint (/home/runner/work/selene/selene)

other declaration of strconv

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/holiman/uint256"
"strconv"

Check failure on line 12 in common/types.go

View workflow job for this annotation

GitHub Actions / test

strconv redeclared in this block

Check failure on line 12 in common/types.go

View workflow job for this annotation

GitHub Actions / test

"strconv" imported and not used

Check failure on line 12 in common/types.go

View workflow job for this annotation

GitHub Actions / golangci-lint (/home/runner/work/selene/selene)

strconv redeclared in this block

Check failure on line 12 in common/types.go

View workflow job for this annotation

GitHub Actions / golangci-lint (/home/runner/work/selene/selene)

"strconv" imported and not used (typecheck)

Check failure on line 12 in common/types.go

View workflow job for this annotation

GitHub Actions / golangci-lint (/home/runner/work/selene/selene)

strconv redeclared in this block

Check failure on line 12 in common/types.go

View workflow job for this annotation

GitHub Actions / golangci-lint (/home/runner/work/selene/selene)

"strconv" imported and not used) (typecheck)

Check failure on line 12 in common/types.go

View workflow job for this annotation

GitHub Actions / golangci-lint (/home/runner/work/selene/selene)

strconv redeclared in this block
Common"github.com/ethereum/go-ethereum/common"
)

type Address struct {
Addr [20]byte
}

//Changed address of Miner to Common.Address instead of Address
type Block struct {
Number uint64
BaseFeePerGas uint256.Int
Difficulty uint256.Int
ExtraData []byte
Number uint64
BaseFeePerGas uint256.Int
Difficulty uint256.Int
Extra_data []byte
GasLimit uint64
GasUsed uint64
Hash [32]byte
LogsBloom []byte
Miner Address
MixHash [32]byte
Nonce string
ParentHash [32]byte
ReceiptsRoot [32]byte
Sha3Uncles [32]byte
Size uint64
StateRoot [32]byte
Timestamp uint64
TotalDifficulty uint64
Transactions Transactions
TransactionsRoot [32]byte
Uncles [][32]byte
BlobGasUsed *uint64
ExcessBlobGas *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??
type Transactions struct {
Hashes [][32]byte
Full []Transaction // transaction needs to be defined
Expand Down
Binary file added execution/.DS_Store
Binary file not shown.
Loading
Loading