Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add example envs for flame deployed assets #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ docs/

# Dotenv file
.env

.DS_Store
53 changes: 53 additions & 0 deletions milktia.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# private key to submit txs with
PRIVATE_KEY=0x

# default local rpc url
RPC_URL="https://rpc.flame.astria.org"

### contract deployment values

# divide withdrawn values by 10^(18-BASE_CHAIN_ASSET_PRECISION)
BASE_CHAIN_ASSET_PRECISION=6

# the address of the bridge on the base chain
BASE_CHAIN_BRIDGE_ADDRESS="astria1kgxhyhvynhcwwrylkzzx6q3a8rn3tuvasxvuy8"

# the denomination of the asset on the base chain
BASE_CHAIN_ASSET_DENOMINATION="transfer/channel-2/factory/osmo1f5vfcph2dvfeqcqkhetwv75fda69z7e5c2dldm3kvgj23crkv6wqcn47a0/umilkTIA"

# the fee charged for each sequencer withdrawal transaction
SEQUENCER_WITHDRAWAL_FEE=1250000000000000

# the fee charged for each IBC withdrawal transaction
IBC_WITHDRAWAL_FEE=10000000000000000

# the address that receives the accumulated withdrawal fees
FEE_RECIPIENT=0x44204559465D67A65E489f030584A234E42f1d9E

### erc20 contract deployment additional values

# the `astriaBridgeSenderAddress` built into the astria-geth node
# in production, the private key for this address must NOT be known.
EVM_BRIDGE_ADDRESS=0xf1a177e000000000000000000000000000000002

# name of the token
TOKEN_NAME="Milk TIA"

# symbol of the token
TOKEN_SYMBOL="milkTIA"

### contract call values

# contract address for AstriaBridgeableERC20.sol
ASTRIA_BRIDGEABLE_ERC20_ADDRESS="0xcbb93e854AA4EF5Db51c3b094F28952eF0dC67bE"

# if withdrawing to the sequencer, this must be set to
# the address to withdraw to on the sequencer
SEQUENCER_DESTINATION_CHAIN_ADDRESS=""

# if withdrawing to another chain via IBC, this must be set to
# the destination chain address to withdraw to
ORIGIN_DESTINATION_CHAIN_ADDRESS=""

# amount to withdraw, must be greater than 10^ASSET_WITHDRAWAL_DECIMALS
AMOUNT=1000000000
54 changes: 54 additions & 0 deletions sttia.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# private key to submit txs with
PRIVATE_KEY=0x

# default local rpc url
RPC_URL="https://rpc.flame.astria.org"

### contract deployment values

# divide withdrawn values by 10^(18-BASE_CHAIN_ASSET_PRECISION)
BASE_CHAIN_ASSET_PRECISION=6

# the address of the bridge on the base chain
BASE_CHAIN_BRIDGE_ADDRESS="astria1dllx9d9karss9ca8le25a4vqhf67a67d5d4l6r"

# the denomination of the asset on the base chain
BASE_CHAIN_ASSET_DENOMINATION="transfer/channel-3/stutia"

# the fee charged for each sequencer withdrawal transaction
SEQUENCER_WITHDRAWAL_FEE=1250000000000000

# the fee charged for each IBC withdrawal transaction
IBC_WITHDRAWAL_FEE=10000000000000000

# the address that receives the accumulated withdrawal fees
FEE_RECIPIENT=0x44204559465D67A65E489f030584A234E42f1d9E

### erc20 contract deployment additional values

# the `astriaBridgeSenderAddress` built into the astria-geth node
# in production, the private key for this address must NOT be known.
EVM_BRIDGE_ADDRESS=0xf1a177e000000000000000000000000000000003

# name of the token
TOKEN_NAME="Stride TIA"

# symbol of the token
TOKEN_SYMBOL="stTIA"

### contract call values

# contract address for AstriaBridgeableERC20.sol
ASTRIA_BRIDGEABLE_ERC20_ADDRESS="0xdf941D092b10FF07eAb44bD174dEe915c13FECcd"

# if withdrawing to the sequencer, this must be set to
# the address to withdraw to on the sequencer
SEQUENCER_DESTINATION_CHAIN_ADDRESS=""

# if withdrawing to another chain via IBC, this must be set to
# the destination chain address to withdraw to
ORIGIN_DESTINATION_CHAIN_ADDRESS=""

# amount to withdraw, must be greater than 10^ASSET_WITHDRAWAL_DECIMALS
AMOUNT=1000000000

41 changes: 41 additions & 0 deletions tia.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# private key to submit txs with
PRIVATE_KEY=0x

# default local rpc url
RPC_URL="https://rpc.flame.astria.org"

### contract deployment values

# divide withdrawn values by 10^(18-BASE_CHAIN_ASSET_PRECISION)
BASE_CHAIN_ASSET_PRECISION=6

# the address of the bridge on the base chain
BASE_CHAIN_BRIDGE_ADDRESS="astria13vptdafyttpmlwppt0s844efey2cpc0mevy92p"

# the denomination of the asset on the base chain
BASE_CHAIN_ASSET_DENOMINATION="transfer/channel-0/utia"

# the fee charged for each sequencer withdrawal transaction
SEQUENCER_WITHDRAWAL_FEE=1250000000000000

# the fee charged for each IBC withdrawal transaction
IBC_WITHDRAWAL_FEE=10000000000000000

# the address that receives the accumulated withdrawal fees
FEE_RECIPIENT=0x44204559465D67A65E489f030584A234E42f1d9E

### contract call values

# contract address for AstriaWithdrawer.sol
ASTRIA_WITHDRAWER=0xB086557f9B5F6fAe5081CC5850BE94e62B1dDE57

# if withdrawing to the sequencer, this must be set to
# the address to withdraw to on the sequencer
SEQUENCER_DESTINATION_CHAIN_ADDRESS=""

# if withdrawing to another chain via IBC, this must be set to
# the destination chain address to withdraw to
ORIGIN_DESTINATION_CHAIN_ADDRESS="someaddress"

# amount to withdraw, must be greater than 10^ASSET_WITHDRAWAL_DECIMALS
AMOUNT=1000000000
47 changes: 47 additions & 0 deletions usdc.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# private key to submit txs with
PRIVATE_KEY=0x

# default local rpc url
RPC_URL="https://rpc.flame.astria.org"

### contract deployment values

# divide withdrawn values by 10^(18-BASE_CHAIN_ASSET_PRECISION)
BASE_CHAIN_ASSET_PRECISION=6

# the address of the bridge on the base chain
BASE_CHAIN_BRIDGE_ADDRESS="astria1eg8hhey0n4untdvqqdvlyl0e7zx8wfca48kglh"

# the denomination of the asset on the base chain
BASE_CHAIN_ASSET_DENOMINATION="transfer/channel-1/uusdc"

# the fee charged for each sequencer withdrawal transaction
SEQUENCER_WITHDRAWAL_FEE=1250000000000000

# the fee charged for each IBC withdrawal transaction
IBC_WITHDRAWAL_FEE=10000000000000000

# the address that receives the accumulated withdrawal fees
FEE_RECIPIENT=0x44204559465D67A65E489f030584A234E42f1d9E

### erc20 contract deployment additional values

# the `astriaBridgeSenderAddress` built into the astria-geth node
# in production, the private key for this address must NOT be known.
EVM_BRIDGE_ADDRESS=0xf1a177e000000000000000000000000000000001

### contract call values

# contract address for AstriaBridgeableERC20.sol
ASTRIA_BRIDGEABLE_ERC20_ADDRESS="0x3f65144F387f6545bF4B19a1B39C94231E1c849F"

# if withdrawing to the sequencer, this must be set to
# the address to withdraw to on the sequencer
SEQUENCER_DESTINATION_CHAIN_ADDRESS=""

# if withdrawing to another chain via IBC, this must be set to
# the destination chain address to withdraw to
ORIGIN_DESTINATION_CHAIN_ADDRESS=""

# amount to withdraw, must be greater than 10^ASSET_WITHDRAWAL_DECIMALS
AMOUNT=1000000000