-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed a lot of unused imports and made routers upgradable.
- Loading branch information
Showing
15 changed files
with
89 additions
and
20 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
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
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,28 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
import { FinalProxy } from '@axelar-network/axelar-gmp-sdk-solidity/contracts/upgradable/FinalProxy.sol'; | ||
|
||
/** | ||
* @title InterchainTokenServiceProxy | ||
* @dev Proxy contract for interchain token service contracts. Inherits from the FinalProxy contract. | ||
*/ | ||
contract CanonicalTokenRegistrarProxy is FinalProxy { | ||
bytes32 private constant CONTRACT_ID = keccak256('canonical-token-registrar'); | ||
|
||
/** | ||
* @dev Constructs the InterchainTokenServiceProxy contract. | ||
* @param implementationAddress Address of the interchain token service implementation | ||
* @param owner Address of the owner of the proxy | ||
*/ | ||
constructor(address implementationAddress, address owner) FinalProxy(implementationAddress, owner, '') {} | ||
|
||
/** | ||
* @dev Override for the 'contractId' function in FinalProxy. Returns a unique identifier for this contract. | ||
* @return bytes32 identifier for this contract | ||
*/ | ||
function contractId() internal pure override returns (bytes32) { | ||
return CONTRACT_ID; | ||
} | ||
} |
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,28 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
import { FinalProxy } from '@axelar-network/axelar-gmp-sdk-solidity/contracts/upgradable/FinalProxy.sol'; | ||
|
||
/** | ||
* @title InterchainTokenServiceProxy | ||
* @dev Proxy contract for interchain token service contracts. Inherits from the FinalProxy contract. | ||
*/ | ||
contract StandardizedTokenRegistrarProxy is FinalProxy { | ||
bytes32 private constant CONTRACT_ID = keccak256('standardized-token-registrar'); | ||
|
||
/** | ||
* @dev Constructs the InterchainTokenServiceProxy contract. | ||
* @param implementationAddress Address of the interchain token service implementation | ||
* @param owner Address of the owner of the proxy | ||
*/ | ||
constructor(address implementationAddress, address owner) FinalProxy(implementationAddress, owner, '') {} | ||
|
||
/** | ||
* @dev Override for the 'contractId' function in FinalProxy. Returns a unique identifier for this contract. | ||
* @return bytes32 identifier for this contract | ||
*/ | ||
function contractId() internal pure override returns (bytes32) { | ||
return CONTRACT_ID; | ||
} | ||
} |
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
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