@hyperlane-xyz/utils
Version:
General utilities and types for the Hyperlane network
32 lines • 1.21 kB
JavaScript
export var ProtocolType;
(function (ProtocolType) {
ProtocolType["Ethereum"] = "ethereum";
ProtocolType["Sealevel"] = "sealevel";
ProtocolType["Cosmos"] = "cosmos";
ProtocolType["CosmosNative"] = "cosmosnative";
ProtocolType["Starknet"] = "starknet";
ProtocolType["Radix"] = "radix";
ProtocolType["Aleo"] = "aleo";
ProtocolType["Tron"] = "tron";
ProtocolType["Unknown"] = "unknown";
})(ProtocolType || (ProtocolType = {}));
export function isEVMLike(protocol) {
return protocol === ProtocolType.Ethereum || protocol === ProtocolType.Tron;
}
export const ProtocolSmallestUnit = {
[]: 'wei',
[]: 'lamports',
[]: 'uATOM',
[]: 'uATOM',
[]: 'fri',
[]: 'attos',
[]: 'microcredits',
[]: 'SUN',
[]: 'unknown',
};
export var MessageStatus;
(function (MessageStatus) {
MessageStatus[MessageStatus["NONE"] = 0] = "NONE";
MessageStatus[MessageStatus["PROCESSED"] = 1] = "PROCESSED";
})(MessageStatus || (MessageStatus = {}));
//# sourceMappingURL=types.js.map