-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
getProtocolVersion
RPC method
- Loading branch information
1 parent
c6bfd9d
commit 24f6892
Showing
7 changed files
with
125 additions
and
4 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
src/main/java/io/zksync/methods/response/ZksProtocolVersion.java
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,7 @@ | ||
package io.zksync.methods.response; | ||
|
||
import io.zksync.protocol.core.ProtocolVersion; | ||
import org.web3j.protocol.core.Response; | ||
|
||
public class ZksProtocolVersion extends Response<ProtocolVersion> { | ||
} |
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
11 changes: 11 additions & 0 deletions
11
src/main/java/io/zksync/protocol/core/BaseSystemContracts.java
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,11 @@ | ||
package io.zksync.protocol.core; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@AllArgsConstructor | ||
@Getter | ||
public class BaseSystemContracts { | ||
private String bootloader; | ||
private String defaultAa; | ||
} |
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,12 @@ | ||
package io.zksync.protocol.core; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class Params { | ||
private String recursionNodeLevelVkHash; | ||
private String recursionLeafLevelVkHash; | ||
private String recursionCircuitsSetVksHash; | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/io/zksync/protocol/core/ProtocolVersion.java
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,21 @@ | ||
package io.zksync.protocol.core; | ||
|
||
import org.web3j.protocol.core.Response; | ||
|
||
public class ProtocolVersion { | ||
/** Protocol version ID. */ | ||
private int versionId; | ||
|
||
/** Unix timestamp of the version's activation. */ | ||
private long timestamp; | ||
|
||
/** Contains the hashes of various verification keys used in the protocol. */ | ||
private VerificationKeysHashes verificationKeysHashes; | ||
|
||
/** Addresses of the base system contracts. */ | ||
private BaseSystemContracts baseSystemContracts; | ||
|
||
/** Hash of the transaction used for the system upgrade, if any. */ | ||
private String l2SystemUpgradeTxHash; | ||
} | ||
|
12 changes: 12 additions & 0 deletions
12
src/main/java/io/zksync/protocol/core/VerificationKeysHashes.java
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,12 @@ | ||
package io.zksync.protocol.core; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@AllArgsConstructor | ||
@Getter | ||
public class VerificationKeysHashes { | ||
private Params params; | ||
private String recursionSchedulerLevelVkHash; | ||
} | ||
|