Skip to content

Commit

Permalink
docs: wormhole readme encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
reednaa committed Dec 13, 2023
1 parent 70e4dec commit 4b5c4ef
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/apps/wormhole/README.md
Original file line number Diff line number Diff line change
@@ -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);
}
```

0 comments on commit 4b5c4ef

Please sign in to comment.