diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 72d9044..30217f3 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -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 diff --git a/README.md b/README.md index 0664a0f..e15b912 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/contract/truffle-config.js b/contract/truffle-config.js index fe8d65f..03495a4 100644 --- a/contract/truffle-config.js +++ b/contract/truffle-config.js @@ -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 diff --git a/scripts/check_shard.sh b/scripts/check_shard.sh index 2cf6bcd..a04ae85 100755 --- a/scripts/check_shard.sh +++ b/scripts/check_shard.sh @@ -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() {