Skip to content

Commit 1c0f731

Browse files
canhtrinhnik-suri
andauthored
feat: updating Axelar transceiver version (#17)
* feat: updating Axelar transceiver version * Update NTT dependency to v1.1.0 --------- Co-authored-by: Nikhil Suri <[email protected]>
1 parent 0ee47cf commit 1c0f731

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

lib/example-native-token-transfers

src/axelar/AxelarTransceiver.sol

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ import {
1515
StringToAddress,
1616
AddressToString
1717
} from "@axelar-network/axelar-gmp-sdk-solidity/contracts/libs/AddressString.sol";
18-
// Use their libraries
1918
import {Transceiver} from "@wormhole-foundation/native_token_transfer/Transceiver/Transceiver.sol";
19+
import {ITransceiver} from "@wormhole-foundation/native_token_transfer/interfaces/ITransceiver.sol";
2020

2121
import {IAxelarTransceiver} from "./interfaces/IAxelarTransceiver.sol";
2222

2323
contract AxelarTransceiver is IAxelarTransceiver, AxelarGMPExecutable, Transceiver {
2424
IAxelarGasService public immutable gasService;
2525

26-
string public constant AXELAR_TRANSCEIVER_VERSION = "1.0.0";
26+
string public constant AXELAR_TRANSCEIVER_VERSION = "1.1.0";
2727

2828
// These mappings are used to convert chainId and chainName between Wormhole and Axelar formats.
2929
struct AxelarTransceiverStorage {
@@ -48,6 +48,17 @@ contract AxelarTransceiver is IAxelarTransceiver, AxelarGMPExecutable, Transceiv
4848
gasService = IAxelarGasService(_gasService);
4949
}
5050

51+
/// @notice Returns the string type of the transceiver. E.g. "wormhole", "axelar", etc.
52+
function getTransceiverType()
53+
external
54+
view
55+
virtual
56+
override(Transceiver, ITransceiver)
57+
returns (string memory)
58+
{
59+
return "axelar";
60+
}
61+
5162
// @define This method checks that the the referecnes to the nttManager and its corresponding function
5263
// are correct When new immutable variables are added, this function should be updated.
5364
function _checkImmutables() internal view virtual override {

0 commit comments

Comments
 (0)