Skip to content

Commit

Permalink
go: Type constants
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Aug 20, 2018
1 parent 9242887 commit c9f8d9d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions bindings/go/evmc/evmc.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ const (
type Revision int32

const (
Frontier = C.EVMC_FRONTIER
Homestead = C.EVMC_HOMESTEAD
TangerineWhistle = C.EVMC_TANGERINE_WHISTLE
SpuriousDragon = C.EVMC_SPURIOUS_DRAGON
Byzantium = C.EVMC_BYZANTIUM
Constantinople = C.EVMC_CONSTANTINOPLE
Frontier Revision = C.EVMC_FRONTIER
Homestead Revision = C.EVMC_HOMESTEAD
TangerineWhistle Revision = C.EVMC_TANGERINE_WHISTLE
SpuriousDragon Revision = C.EVMC_SPURIOUS_DRAGON
Byzantium Revision = C.EVMC_BYZANTIUM
Constantinople Revision = C.EVMC_CONSTANTINOPLE
)

type Instance struct {
Expand Down
18 changes: 9 additions & 9 deletions bindings/go/evmc/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ import (
type CallKind int

const (
Call = C.EVMC_CALL
DelegateCall = C.EVMC_DELEGATECALL
CallCode = C.EVMC_CALLCODE
Create = C.EVMC_CREATE
Create2 = C.EVMC_CREATE2
Call CallKind = C.EVMC_CALL
DelegateCall CallKind = C.EVMC_DELEGATECALL
CallCode CallKind = C.EVMC_CALLCODE
Create CallKind = C.EVMC_CREATE
Create2 CallKind = C.EVMC_CREATE2
)

type StorageStatus int

const (
StorageUnchanged = C.EVMC_STORAGE_UNCHANGED
StorageModified = C.EVMC_STORAGE_MODIFIED
StorageAdded = C.EVMC_STORAGE_ADDED
StorageDeleted = C.EVMC_STORAGE_DELETED
StorageUnchanged StorageStatus = C.EVMC_STORAGE_UNCHANGED
StorageModified StorageStatus = C.EVMC_STORAGE_MODIFIED
StorageAdded StorageStatus = C.EVMC_STORAGE_ADDED
StorageDeleted StorageStatus = C.EVMC_STORAGE_DELETED
)

func goAddress(in C.struct_evmc_address) common.Address {
Expand Down

0 comments on commit c9f8d9d

Please sign in to comment.