1.0.11 • Published 6 months ago

@webb-tools/evm-test-utils v1.0.11

Weekly downloads
-
License
(MIT OR Apache-2....
Repository
github
Last release
6 months ago

Webb Logo Webb Logo

License Apache 2.0 Twitter Telegram Discord

This Repository is meant to support a development environment for the anchor protocol over EVM networks. In its current state, it starts up two networks and deploys a Variable Anchor bridge over these networks for a freshly created erc20 token. It is meant to be used directly with this script at the current moment.

  • Hermes: chainId 5001, 'chain a'
  • Athena: chainId 5002, 'chain b'
  • Demeter: chainId 5003, 'chain c'
  1. Clone the repo and build dependencies
git clone https://github.com/webb-tools/protocol-solidity
cd protocol-solidity && yarn
  1. Populate fixed zero knowledge keys by running:
cd packages/contracts && dvc pull && cd ../..
  1. Start the local testnet with:
ts-node ./scripts/evm/deployments/LocalEvmVBridge.ts

Great! Now you have a local EVM node running!

The deployer is the oracle signer for this bridge. As such, a CLI is supported for actions which require the bridge to sign messages, acting as the DKG. These commands are as follows:

- 'deposit on chain a': Using the deployer account, deposit into the fixed anchor on chain a. The deposit is stored in this local testnet memory for use by the withdraw command later.
- 'relay from a to b': Using the deployer account, look at the latest deposit on chain a and update chain b's root. This simulates the work of the Webb Relayer network interacting with a dkg and submitting the signed transaction on the other side of the bridge.
- 'withdraw on chain b': Using the deployer account, withdraw from the chain. It takes the latest deposit done through the CLI for a withdraw.
- 'root on chain a': Print the current root of the merkle tree for chain a.

For full E2E integration testing with the dapp, deposits and withdrawals can be done through the DApp UI. Simply call the 'relay from to ' command after a deposit through the dapp to relay the roots before initiating the withdrawal through the dapp.

1.0.2

11 months ago

1.0.9

8 months ago

1.0.8

9 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.11

6 months ago

1.0.10

7 months ago

0.5.32

1 year ago

1.0.1

11 months ago

0.5.33

1 year ago

1.0.0

11 months ago

0.5.30

1 year ago

0.5.31

1 year ago

0.0.1-masp

1 year ago

0.5.38

1 year ago

0.5.39

1 year ago

0.5.36

1 year ago

0.5.37

1 year ago

0.5.34

1 year ago

0.5.35

1 year ago

0.5.43

12 months ago

0.5.44

12 months ago

0.5.22

1 year ago

0.5.41

12 months ago

0.5.42

12 months ago

0.5.40

1 year ago

0.5.29

1 year ago

0.5.27

1 year ago

0.5.28

1 year ago

0.5.47

11 months ago

0.5.25

1 year ago

0.5.48

11 months ago

0.5.26

1 year ago

0.5.45

12 months ago

0.5.23

1 year ago

0.5.46

12 months ago

0.5.24

1 year ago

0.5.21

1 year ago

0.5.20

1 year ago

0.5.19

1 year ago

0.5.18

1 year ago

0.5.17

1 year ago

0.5.14

1 year ago

0.5.13

1 year ago

0.5.12

1 year ago

0.5.11

1 year ago

0.5.10

1 year ago

0.5.9

1 year ago

0.5.8

1 year ago

0.5.7

1 year ago

0.5.6

1 year ago

0.5.5

1 year ago

0.5.4

1 year ago