Skip to content

Commit

Permalink
Merge pull request #355 from anoma/brent/remove-eth-bridge
Browse files Browse the repository at this point in the history
Remove eth bridge
  • Loading branch information
cwgoes committed Jun 5, 2024
2 parents 0aba9d3 + 4053a33 commit 6c92151
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 110 deletions.
2 changes: 0 additions & 2 deletions packages/docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ Namada's cryptographical features give users asset-agnostic, multichain data pro

- Zcash-like shielded transfers for any assets (fungible and non-fungible)
- Rewards for keeping assets in the shielded set
- Interoperability with Ethereum via a custom bridge with trust-minimization

## Overview of features

- [Proof-of-Stake](./introduction/protocol-intro.mdx) with [governance](./users/governance.mdx) to secure and evolve Namada
- Fast-finality BFT with 4-second blocks
- Trust-minimized 2-way Ethereum bridge
- IBC connections to chains that already speak IBC (all Cosmos chains)
- [Multi-Asset Shielded Pool](./users/shielded-accounts/shielded-transfers.mdx) (MASP)
- Convert Circuit ([shielded set rewards](./users/shielded-accounts/shielded-rewards.mdx))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ The transaction module exposes various modules (objects) to construct transactio

```rust
pub mod account; // contains functions to create transactions for account module
pub mod bridge; // contains functions to create transactions for bridge module
pub mod governance; // contains functions to create transactions for governance module
pub mod ibc; // contains functions to create transactions for ibc module
pub mod pgf; // contains functions to create transactions for pgf module
Expand Down Expand Up @@ -57,20 +56,6 @@ impl InitAccount {

A public key can be constructed from a string using the `::from_str()` method. The `vp_code_hash` is a hash that is found under the `wasm` folder.

### Bridge

```rust
pub use namada_sdk::eth_bridge_pool::{GasFee, TransferToEthereum};
pub struct BridgeTransfer(Tx);
impl BridgeTransfer {
pub fn new(
transfer: TransferToEthereum,
gas_fee: GasFee,
args: GlobalArgs,
) -> Self {...}
}
```

### Governance

```rust
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Once installed, you should have the following binaries:
| `namadan` | The ledger node |
| `namadac` | The client |
| `namadaw` | The wallet |
| `namadar` | The ethereum bridge relayer |

The main binary `namada` has sub-commands for all of the other binaries. Therefore, the following commands are equivalent:

Expand All @@ -19,7 +18,6 @@ The main binary `namada` has sub-commands for all of the other binaries. Therefo
| `namada client` | `namadac` |
| `namada node` | `namadan` |
| `namada wallet` | `namadaw` |
| `namada relayer` | `namadar` |


To explore the command-line interface, the `--help` argument can be added at any sub-command level to find out any possible sub-commands and/or arguments.
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/pages/introduction/privacy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Namada provides the largest possible unified shielded set in the multichain, com
* Namada can also seed data protection to users who want to use an asset originating from one base chain on another chain, without losing data protection
* Namada retrofits data protection to assets that were created and already used in transparent chains

Users should be aware that they can still expose personal information when transferring funds into and out of Namada via the Ethereum bridge or IBC. For example, a user bridging WETH from Ethereum may be able to obfuscate their on-chain identities to *some* on-chain observers by interacting with Smart contract based shielding protocols or centralized exchanges. However, a user transferring a non-fungible token or a low liquidity token that relies on price discovery on-chain, will leak more information by the nature of their asset holdings. This is also true of tokens transferred into and out of Namada via IBC. Once inside the shielded set, a user can perform *shielded actions* such as triggering a cross chain swap.
Users should be aware that they can still expose personal information when transferring funds into and out of Namada via IBC. For example, a user bridging WETH from Ethereum may be able to obfuscate their on-chain identities to *some* on-chain observers by interacting with Smart contract based shielding protocols or centralized exchanges. However, a user transferring a non-fungible token or a low liquidity token that relies on price discovery on-chain, will leak more information by the nature of their asset holdings. This is also true of tokens transferred into and out of Namada via IBC. Once inside the shielded set, a user can perform *shielded actions* such as triggering a cross chain swap.

Shielded actions are not limited to application chains that are IBC compatible, it works with any chain that is connected to Namada, e.g. Ethereum, and the actions can be generalized to interact with any dApp, such as trading NFTs or staking ETH. For the time being, the only shielded action available is cross chain transfers, but more will be added in the future.

Expand Down
4 changes: 0 additions & 4 deletions packages/docs/pages/networks/testnets/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
There are a few more, but we leave it to you as a challenge to find out which these are 🤔
HINT: `namadac balance`

### **Q: How do I use the Ethereum Bridge?**

**A:** The Ethereum Bridge is not yet implemented. Keep an eye on the [Changelog](https://github.com/anoma/namada/tree/main/.changelog) 👀 to see when it will be officially released.

### **Q: How can I make an IBC transfer?**

**A:** As of `v0.23.1` you can now follow the docs [here!](../../users/ibc.mdx)
Expand Down
27 changes: 0 additions & 27 deletions packages/docs/pages/operators/eth-bridge.mdx

This file was deleted.

48 changes: 0 additions & 48 deletions packages/docs/pages/operators/eth-bridge/relaying.mdx

This file was deleted.

11 changes: 0 additions & 11 deletions packages/docs/pages/users/governance/on-chain-governance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,6 @@ For a pgf proposal that is to be executed on an IBC chain, the "Internal" data s
}
```

### ETH Bridge Proposal

```json
"data" : "<hex-encoded-bytes-of-what-will-be-signed-by-validators>"
```

<Callout type="warning">
**Note**:
The encoding will be submitted as a string
</Callout>


## Submitting the proposal
As soon as your `proposal.json` file is ready, you can submit the proposal with (make sure to be in the same directory as the `proposal.json` file):
Expand Down

0 comments on commit 6c92151

Please sign in to comment.