Skip to content

Commit

Permalink
Merge branch 'main' into rate_limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik authored May 4, 2024
2 parents 9a349b4 + 5ac48f2 commit 4675507
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 15,268 deletions.
2 changes: 1 addition & 1 deletion packages/bridge-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.3",
"svelte": "^4.2.15",
"svelte-check": "^3.7.0",
"svelte-check": "^3.7.1",
"tailwindcss": "^3.4.3",
"ts-morph": "^19.0.0",
"tslib": "^2.6.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/guardian-prover-health-check-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"svelte": "^4.2.13",
"svelte-check": "^3.6.9",
"svelte-check": "^3.7.1",
"tailwindcss": "^3.4.3",
"tslib": "^2.6.2",
"typescript": "^5.4.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/protocol/contracts/bridge/Bridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ contract Bridge is EssentialContract, IBridge {
view
returns (bool enabled_, address destBridge_)
{
destBridge_ = resolve(_chainId, "bridge", true);
destBridge_ = resolve(_chainId, LibStrings.B_BRIDGE, true);
enabled_ = destBridge_ != address(0);
}

Expand Down Expand Up @@ -542,7 +542,7 @@ contract Bridge is EssentialContract, IBridge {
returns (bool success_, uint32 numCacheOps_)
{
try ISignalService(_signalService).proveSignalReceived(
_chainId, resolve(_chainId, "bridge", false), _signal, _proof
_chainId, resolve(_chainId, LibStrings.B_BRIDGE, false), _signal, _proof
) returns (uint256 numCacheOps) {
numCacheOps_ = uint32(numCacheOps);
success_ = true;
Expand All @@ -569,7 +569,7 @@ contract Bridge is EssentialContract, IBridge {
returns (bool)
{
try ISignalService(_signalService).verifySignalReceived(
_chainId, resolve(_chainId, "bridge", false), _signal, _proof
_chainId, resolve(_chainId, LibStrings.B_BRIDGE, false), _signal, _proof
) {
return true;
} catch {
Expand Down
4 changes: 2 additions & 2 deletions packages/protocol/contracts/signal/SignalService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ contract SignalService is EssentialContract, ISignalService {
address app = _app;
bytes32 signal = _signal;
bytes32 value = _signal;
address signalService = resolve(chainId, "signal_service", false);
address signalService = resolve(chainId, LibStrings.B_SIGNAL_SERVICE, false);

HopProof memory hop;
bytes32 signalRoot;
Expand All @@ -348,7 +348,7 @@ contract SignalService is EssentialContract, ISignalService {
if (hop.chainId == 0 || hop.chainId == block.chainid) {
revert SS_INVALID_MID_HOP_CHAINID();
}
signalService = resolve(hop.chainId, "signal_service", false);
signalService = resolve(hop.chainId, LibStrings.B_SIGNAL_SERVICE, false);
}

isFullProof = hop.accountProof.length != 0;
Expand Down
3 changes: 2 additions & 1 deletion packages/protocol/contracts/tokenvault/ERC1155Vault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity 0.8.24;
import "@openzeppelin/contracts/token/ERC1155/IERC1155.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC1155/utils/ERC1155ReceiverUpgradeable.sol";
import "../libs/LibAddress.sol";
import "../common/LibStrings.sol";
import "./BaseNFTVault.sol";
import "./BridgedERC1155.sol";

Expand Down Expand Up @@ -207,7 +208,7 @@ contract ERC1155Vault is BaseNFTVault, ERC1155ReceiverUpgradeable {

/// @inheritdoc BaseVault
function name() public pure override returns (bytes32) {
return "erc1155_vault";
return LibStrings.B_ERC1155_VAULT;
}

/// @dev Transfers ERC1155 tokens to the `to` address.
Expand Down
3 changes: 2 additions & 1 deletion packages/protocol/contracts/tokenvault/ERC20Vault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "../bridge/IQuotaManager.sol";
import "../libs/LibAddress.sol";
import "../common/LibStrings.sol";
import "./BridgedERC20.sol";
import "./BaseVault.sol";

Expand Down Expand Up @@ -317,7 +318,7 @@ contract ERC20Vault is BaseVault {

/// @inheritdoc BaseVault
function name() public pure override returns (bytes32) {
return "erc20_vault";
return LibStrings.B_ERC20_VAULT;
}

function _transferTokens(
Expand Down
3 changes: 2 additions & 1 deletion packages/protocol/contracts/tokenvault/ERC721Vault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pragma solidity 0.8.24;
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "../libs/LibAddress.sol";
import "../common/LibStrings.sol";
import "./BaseNFTVault.sol";
import "./BridgedERC721.sol";

Expand Down Expand Up @@ -158,7 +159,7 @@ contract ERC721Vault is BaseNFTVault, IERC721Receiver {

/// @inheritdoc BaseVault
function name() public pure override returns (bytes32) {
return "erc721_vault";
return LibStrings.B_ERC721_VAULT;
}

function _transferTokens(
Expand Down
2 changes: 1 addition & 1 deletion packages/taikoon-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"prettier-plugin-svelte": "^3.1.2",
"raw-body": "^2.5.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"svelte-check": "^3.7.1",
"svelte-copy": "^1.4.2",
"svelte-i18n": "^4.0.0",
"svelte-scrolling": "^1.4.0",
Expand Down
Loading

0 comments on commit 4675507

Please sign in to comment.