Skip to content

Commit

Permalink
rename env
Browse files Browse the repository at this point in the history
  • Loading branch information
3100 committed Jan 11, 2022
1 parent 7b22401 commit 1b17c1c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
name: deploy
runs-on: ubuntu-20.04
env:
GAS_LIMIT: 100000000
GAS_PRICE: 1000000000
HARMONY_GAS_LIMIT: 100000000
HARMONY_GAS_PRICE: 1000000000
# cf. https://github.com/harmony-one/harmony/pull/3332
LOCAL_PRIVATE_KEY: '0x1f84c95ac16e6a50f08d44c7bde7aff8742212fda6e4321fde48bf83bef266dc'
LOCAL_SHARD_0_URL: http://localhost:9599
LOCAL_SHARD_1_URL: http://localhost:9598
HARMONY_LOCAL_PRIVATE_KEY: '0x1f84c95ac16e6a50f08d44c7bde7aff8742212fda6e4321fde48bf83bef266dc'
HARMONY_LOCAL_SHARD_0_URL: http://localhost:9599
HARMONY_LOCAL_SHARD_1_URL: http://localhost:9598
steps:
# go is needed for harmony
- name: Set up Go 1.16
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ harmony-cosmos-bridge-demo
## Env

```
export LOCAL_SHARD_0_URL=http://localhost:9599
export LOCAL_SHARD_1_URL=http://localhost:9598
export HARMONY_LOCAL_SHARD_0_URL=http://localhost:9599
export HARMONY_LOCAL_SHARD_1_URL=http://localhost:9598
export HARMONY_GAS_LIMIT=100000000
export HARMONY_GAS_PRICE=1000000000
# cf. https://github.com/harmony-one/harmony/pull/3332
export HARMONY_LOCAL_PRIVATE_KEY: '0x1f84c95ac16e6a50f08d44c7bde7aff8742212fda6e4321fde48bf83bef266dc'
```

## Harmony Localnet
Expand Down
10 changes: 5 additions & 5 deletions contract/truffle-config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const { TruffleProvider } = require('@harmony-js/core')
//Local
const local_private_key = process.env.LOCAL_PRIVATE_KEY
const local_0_url = process.env.LOCAL_SHARD_0_URL
const local_1_url = process.env.LOCAL_SHARD_1_URL
const local_private_key = process.env.HARMONY_LOCAL_PRIVATE_KEY
const local_0_url = process.env.HARMONY_LOCAL_SHARD_0_URL
const local_1_url = process.env.HARMONY_LOCAL_SHARD_1_URL

//GAS - Currently using same GAS accross all environments
gasLimit = process.env.GAS_LIMIT
gasPrice = process.env.GAS_PRICE
const gasLimit = process.env.HARMONY_GAS_LIMIT
const gasPrice = process.env.HARMONY_GAS_PRICE

module.exports = {
// TODO
Expand Down
4 changes: 2 additions & 2 deletions scripts/check_shard.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
set -e

expected_shard0_url=${LOCAL_SHARD_0_URL}
expected_shard1_url=${LOCAL_SHARD_1_URL}
expected_shard0_url=${HARMONY_LOCAL_SHARD_0_URL}
expected_shard1_url=${HARMONY_LOCAL_SHARD_1_URL}
max_shard=1

function check() {
Expand Down

0 comments on commit 1b17c1c

Please sign in to comment.