-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from HorizenOfficial/development
1.1.0 to master
- Loading branch information
Showing
32 changed files
with
1,462 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ pom.xml.versionsBackup | |
*.iml | ||
.project | ||
.classpath | ||
*.*bkp* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package io.horizen.evm; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.math.BigInteger; | ||
|
||
/* | ||
This class contains which go-ethereum fork points should be activated. | ||
The mapping between SDK fork points and go-ethereum fork points must be done inside the SDK. | ||
Objects of this class must be passed to all EVM invocations that require checking a go-ethereum fork point. | ||
*/ | ||
public class ForkRules { | ||
public final boolean isShanghai; | ||
|
||
public ForkRules( | ||
@JsonProperty("isShanghai") boolean isShanghai | ||
) { | ||
this.isShanghai = isShanghai; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
package io.horizen.evm.params; | ||
|
||
import io.horizen.evm.Address; | ||
import io.horizen.evm.ForkRules; | ||
|
||
public class AccessParams extends AccountParams { | ||
public final Address destination; | ||
public final Address coinbase; | ||
public final ForkRules rules; | ||
|
||
public AccessParams(int handle, Address sender, Address destination) { | ||
public AccessParams(int handle, Address sender, Address destination, Address coinbase, ForkRules rules) { | ||
super(handle, sender); | ||
this.destination = destination; | ||
this.coinbase = coinbase; | ||
this.rules = rules; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.