Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Aug 20, 2024
1 parent 666697b commit 40f6ea6
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/protocol/contracts/L1/tiers/TierProviderV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ contract TierProviderV2 is ITierProvider {

if (_tierId == LibTierId.TIER_TEE) {
return ITierProvider.Tier({
// verifierName can also be B_VERIFIER_TEE
// verifierName can also be B_VERIFIER_TEE_ANY
verifierName: LibStrings.B_VERIFIER_TEE_SGX,
validityBond: 150 ether, // TAIKO
contestBond: 984.375 ether, // = 150 TAIKO * 6.5625
Expand All @@ -43,7 +43,7 @@ contract TierProviderV2 is ITierProvider {

if (_tierId == LibTierId.TIER_ZK) {
return ITierProvider.Tier({
// verifierName can also be B_VERIFIER_ZK and B_VERIFIER_ZK_SP1
// verifierName can also be B_VERIFIER_ZK_ANY and B_VERIFIER_ZK_SP1
verifierName: LibStrings.B_VERIFIER_ZK_RISC0,
validityBond: 250 ether, // TAIKO
contestBond: 1640.625 ether, // = 250 TAIKO * 6.5625
Expand Down
6 changes: 3 additions & 3 deletions packages/protocol/contracts/common/LibStrings.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ library LibStrings {
bytes32 internal constant B_TIER_ROUTER = bytes32("tier_router");
bytes32 internal constant B_VERIFIER_GUARDIAN = bytes32("verifier_guardian");
bytes32 internal constant B_VERIFIER_GUARDIAN_MINORITY = bytes32("verifier_guardian_minority");
bytes32 internal constant B_VERIFIER_TEE = bytes32("verifier_tee");
bytes32 internal constant B_VERIFIER_TEE_ANY = bytes32("verifier_tee_any");
bytes32 internal constant B_VERIFIER_TEE_SGX = bytes32("verifier_tee_sgx");
bytes32 internal constant B_VERIFIER_ZK = bytes32("verifier_zk");
bytes32 internal constant B_VERIFIER_ZK_ANY = bytes32("verifier_zk_any");
bytes32 internal constant B_VERIFIER_ZK_RISC0 = bytes32("verifier_zk_risc0");
bytes32 internal constant B_VERIFIER_ZK_SP1 = bytes32("verifier_zk_sp1");
bytes32 internal constant B_VERIFIER_ZK_SP1 = bytes32("verifier_zk_any_sp1");
bytes32 internal constant B_VERIFIER_ZK_AND_TEE = bytes32("verifier_zk_and_tee");
bytes32 internal constant B_WITHDRAWER = bytes32("withdrawer");
bytes32 internal constant H_RETURN_LIVENESS_BOND = keccak256("RETURN_LIVENESS_BOND");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ library LibRollupAddressCache {
if (_name == LibStrings.B_VERIFIER_ZK_SP1) {
return (false, address(0));
}
if (_name == LibStrings.B_VERIFIER_ZK) {
if (_name == LibStrings.B_VERIFIER_ZK_ANY) {
return (false, address(0));
}
if (_name == LibStrings.B_VERIFIER_GUARDIAN_MINORITY) {
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/script/DeployOnL1.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ contract DeployOnL1 is DeployCapability {
});

deployProxy({
name: "verifier_tee",
name: "verifier_tee_any",
impl: address(new SgxVerifier()),
data: abi.encodeCall(SgxVerifier.init, (owner, rollupAddressManager)),
registerTo: rollupAddressManager
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/test/L1/TaikoL1TestBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ abstract contract TaikoL1TestBase is TaikoTest {

sv = SgxVerifier(
deployProxy({
name: "verifier_tee",
name: "verifier_tee_any",
impl: address(new SgxVerifier()),
data: abi.encodeCall(SgxVerifier.init, (address(0), address(addressManager)))
})
Expand Down Expand Up @@ -89,7 +89,7 @@ abstract contract TaikoL1TestBase is TaikoTest {
);

registerAddress("taiko", address(L1));
registerAddress("verifier_tee", address(sv));
registerAddress("verifier_tee_any", address(sv));
registerAddress("verifier_guardian", address(gp));
registerAddress("tier_router", address(cp));
registerAddress("signal_service", address(ss));
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/test/L1/TestTierProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ contract TestTierProvider is ITierProvider, ITierRouter {

if (_tierId == LibTierId.TIER_TEE) {
return ITierProvider.Tier({
verifierName: LibStrings.B_VERIFIER_TEE,
verifierName: LibStrings.B_VERIFIER_TEE_ANY,
validityBond: 250 ether, // TKO
contestBond: 1640 ether, // =250TKO * 6.5625
cooldownWindow: 1440, //24 hours
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/test/common/AddressResolver.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract TestAddressResolver is TaikoL1TestBase {
);

assertEq(
bridge.resolve(uint64(block.chainid), bytes32(bytes("verifier_tee")), false),
bridge.resolve(uint64(block.chainid), bytes32(bytes("verifier_tee_any")), false),
address(sv),
" wrong TEE verifier address"
);
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol/test/verifiers/SP1Verifier.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ contract TestSP1Verifier is TaikoL1TestBase {
// Deploy Taiko's SP1 proof verifier ('remitter')
sp1 = SP1Verifier(
deployProxy({
name: "verifier_zk_sp1",
name: "verifier_zk_any_sp1",
impl: address(new SP1Verifier()),
data: abi.encodeCall(SP1Verifier.init, (address(0), address(addressManager)))
})
Expand Down

0 comments on commit 40f6ea6

Please sign in to comment.