From 4b5c4eff1a7d98b11a44cef409deca9d20c3f514 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 13 Dec 2023 16:08:33 +0100 Subject: [PATCH] docs: wormhole readme encoding --- src/apps/wormhole/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/apps/wormhole/README.md diff --git a/src/apps/wormhole/README.md b/src/apps/wormhole/README.md new file mode 100644 index 0000000..82abc8b --- /dev/null +++ b/src/apps/wormhole/README.md @@ -0,0 +1,17 @@ +# Wormhole Generalised Incentives + +This is a Wormhole implementation of Generalised INcentives. It works by Hijacking the Wormhole contract. It relies on the Wormhole state while re-implementing the verification logic in a way that is cheaper. + +# Address encoding + +Wormhole uses 32 bytes to represent addresses. + +EVM -> EVM + +```solidity + +function _to_bytes32(address target) internal returns(bytes memory) { + return abi.encode(target); +} + +``` \ No newline at end of file