Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Dominic Woerner <[email protected]>
  • Loading branch information
Dominic Woerner committed Nov 8, 2022
1 parent 97c9e97 commit e9d062a
Show file tree
Hide file tree
Showing 38 changed files with 6 additions and 30,307 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
# MetaMask Proxy Canister PoC

This Proof of Concept shows how MetaMask could be used on the Internet Computer, by using a proxy canister that acts as a personal JSON RPC Provider.
This Proof of Concept shows how MetaMask could be used on the Internet Computer, by using a proxy canister that acts as JSON RPC Provider.
The proxy can be used to translate certain EVM contract calls to calls on the Internet Computer. This demo aims to implement this for DIP20 contract calls.

## Architecture

![Architecture](./assets/metamask_ic_proxy_demo.svg)

## Demo Flow



## Status and To Dos

[x] Proxy canister as MetaMask JSON RPC Provider
[x] Send and receive ICP
[x] Fake ERC20 related calls in proxy canister, in particular `transfer`
[ ] Proxy manager canister that is able to create a proxy canister for an Ethereum address dynamically


## Issues
Expand Down
21 changes: 0 additions & 21 deletions dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@
}
}
},
"proxy_manager": {
"candid": "src/proxy_manager/proxy_manager.did",
"package": "proxy_manager",
"type": "rust"
},
"eth_proxy_backend": {
"candid": "src/eth_proxy_backend/eth_proxy_backend.did",
"package": "eth_proxy_backend",
"type": "rust"
},
"eth_proxy_shared": {
"candid": "src/eth_proxy_shared/eth_proxy_shared.did",
"package": "eth_proxy_shared",
Expand All @@ -37,17 +27,6 @@
"dist/"
],
"type": "assets"
},
"swap_backend": {
"candid": "src/swap_backend/swap_backend.did",
"package": "swap_backend",
"type": "rust"
},
"swap_frontend": {
"source": [
"src/swap_frontend/dist/"
],
"type": "assets"
}
},
"defaults": {
Expand Down
25 changes: 0 additions & 25 deletions src/eth_proxy_backend/Cargo.toml

This file was deleted.

3 changes: 0 additions & 3 deletions src/eth_proxy_backend/eth_proxy_backend.did

This file was deleted.

Loading

0 comments on commit e9d062a

Please sign in to comment.