Skip to content

Instantly share code, notes, and snippets.

@patitonar
Created November 1, 2019 19:09
Show Gist options
  • Save patitonar/ad6aca2b4ce3eeb07f8f15b390d8ae2b to your computer and use it in GitHub Desktop.
Save patitonar/ad6aca2b4ce3eeb07f8f15b390d8ae2b to your computer and use it in GitHub Desktop.
BRIDGE_MODE=ERC_TO_ERC
DEPLOYMENT_ACCOUNT_PRIVATE_KEY=01F903CE0C960FF3A9E68E80FF5FFC344358D80CE1C221C3F9711AF07F83A3BD
DEPLOYMENT_GAS_LIMIT_EXTRA=0.2
HOME_DEPLOYMENT_GAS_PRICE=1000000000
FOREIGN_DEPLOYMENT_GAS_PRICE=1000000000
GET_RECEIPT_INTERVAL_IN_MILLISECONDS=3000
HOME_RPC_URL=https://api.s0.b.hmny.io
# Address on Home network with permissions to change parameters of the bridge contract.
# For extra security we recommended using a multi-sig wallet contract address here.
HOME_BRIDGE_OWNER=0x3aea49553Ce2E478f1c0c5ACC304a84F5F4d1f98
# Address on Home network with permissions to change parameters of bridge validator contract.
HOME_VALIDATORS_OWNER=0x3aea49553Ce2E478f1c0c5ACC304a84F5F4d1f98
# Address on Home network with permissions to upgrade the bridge contract and the bridge validator contract.
HOME_UPGRADEABLE_ADMIN=0x3aea49553Ce2E478f1c0c5ACC304a84F5F4d1f98
# The daily transaction limit in Wei. As soon as this limit is exceeded, any
# transaction which requests to relay assets will fail.
HOME_DAILY_LIMIT=2000000000000000000001
# The maximum limit for one transaction in Wei. If a single transaction tries to
# relay funds exceeding this limit it will fail.
HOME_MAX_AMOUNT_PER_TX=2000000000000000000000
# The minimum limit for one transaction in Wei. If a transaction tries to relay
# funds below this limit it will fail. This is required to prevent dryout
# validator accounts.
HOME_MIN_AMOUNT_PER_TX=10000000000000000
# The finalization threshold. The number of blocks issued after the block with
# the corresponding deposit transaction to guarantee the transaction will not be
# rolled back.
HOME_REQUIRED_BLOCK_CONFIRMATIONS=1
# The default gas price (in Wei) used to send Home Network signature
# transactions for deposit or withdrawal confirmations. This price is used if
# the Gas price oracle is unreachable.
HOME_GAS_PRICE=1000000000
# The RPC channel to a Foreign node able to handle deployment/configuration
# transactions.
FOREIGN_RPC_URL=https://kovan.infura.io/v3/32e8e252699a4ac1b5dd5c1ef53cc301
# Address on Foreign network with permissions to change parameters of the bridge contract.
# For extra security we recommended using a multi-sig wallet contract address here.
FOREIGN_BRIDGE_OWNER=0x3aea49553Ce2E478f1c0c5ACC304a84F5F4d1f98
# Address on Foreign network with permissions to change parameters of bridge validator contract.
FOREIGN_VALIDATORS_OWNER=0x3aea49553Ce2E478f1c0c5ACC304a84F5F4d1f98
# Address on Foreign network with permissions to upgrade the bridge contract and the bridge validator contract.
FOREIGN_UPGRADEABLE_ADMIN=0x3aea49553Ce2E478f1c0c5ACC304a84F5F4d1f98
# The daily limit in Wei. As soon as this limit is exceeded, any transaction
# requesting to relay assets will fail.
FOREIGN_DAILY_LIMIT=2000000000000000000001
# The maximum limit per one transaction in Wei. If a transaction tries to relay
# funds exceeding this limit it will fail.
FOREIGN_MAX_AMOUNT_PER_TX=2000000000000000000000
# The minimum limit for one transaction in Wei. If a transaction tries to relay
# funds below this limit it will fail. This is required to prevent dryout
# validator accounts.
FOREIGN_MIN_AMOUNT_PER_TX=10000000000000000
# The finalization threshold. The number of blocks issued after the block with
# the corresponding deposit transaction to guarantee the transaction will not be
# rolled back.
FOREIGN_REQUIRED_BLOCK_CONFIRMATIONS=1
# The default gas price (in Wei) used to send Foreign network transactions
# finalizing asset deposits. This price is used if the Gas price oracle is
# unreachable.
FOREIGN_GAS_PRICE=15000000000
# The minimum number of validators required to send their signatures confirming
# the relay of assets. The same number of validators is expected on both sides
# of the bridge.
REQUIRED_NUMBER_OF_VALIDATORS=1
# The set of validators' addresses. It is assumed that signatures from these
# addresses are collected on the Home side. The same addresses will be used on
# the Foreign network to confirm that the finalized agreement was transferred
# correctly to the Foreign network.
VALIDATORS=0x3aea49553Ce2E478f1c0c5ACC304a84F5F4d1f98
# The flag defining whether to use RewardableValidators contract and set a fee manager contract on Home network
HOME_REWARDABLE=false
# The flag defining whether to use RewardableValidators contract and set a fee manager contract on Foreign network
FOREIGN_REWARDABLE=false
# The flag defining whether to use ERC677BridgeTokenRewardable contract instead of
# ERC677BridgeToken.
DEPLOY_REWARDABLE_TOKEN=false
ERC20_TOKEN_ADDRESS=0xd145bF4C51D0240238C7bce13737C70462aA0bc8
ERC20_EXTENDED_BY_ERC677=false
BRIDGEABLE_TOKEN_NAME=Testing token
BRIDGEABLE_TOKEN_SYMBOL=TST
BRIDGEABLE_TOKEN_DECIMALS=18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment