Skip to content

Commit

Permalink
doc(bridge-ethereum): truffle migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mmacedoeu committed May 18, 2022
1 parent 70c386c commit 14255ab
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bridges/ethereum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,20 @@ The sender that wish to wrap ETH or ERC20 in Bitgreen Chain, should deposit the

All the other functions are accessible to the "Keepers" of the bridge.

## Truffle setup

Refer to truffle oficial documentation at https://trufflesuite.com/docs/truffle/getting-started/running-migrations/

### Custom parameters for bitgreen

* Run yarn to bring dependencies
* Set your environment variable YOUR_SEED_PHRASE to contract owner mnemonic phrase
* Select network when running migration based on configuration from truffle-config.js

Example:
```
yarn
export YOUR_SEED_PHRASE="affair leopard fever palace ..."
truffle migrate --network rinkeby_local
```
8 changes: 8 additions & 0 deletions bridges/ethereum/truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ module.exports = {
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
},
goerli_local: {
provider: () => new HDWalletProvider(YOUR_SEED_PHRASE, `http://127.0.0.1:8545`),
network_id: 5, // Ropsten's id
gas: 5500000, // Ropsten has a lower block limit than mainnet
confirmations: 1, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: true // Skip dry run before migrations? (default: false for public nets )
}
},
//
Expand Down

0 comments on commit 14255ab

Please sign in to comment.