mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-25 15:55:18 +00:00
add e2e whale account for erc20 funding (webapp) (#1516)
This commit is contained in:
parent
df7d3b2826
commit
03510c3ec4
7
.github/scripts/seed-internal-testnet.sh
vendored
7
.github/scripts/seed-internal-testnet.sh
vendored
@ -14,6 +14,7 @@ kava config broadcast-mode block
|
|||||||
# setup dev wallet
|
# setup dev wallet
|
||||||
echo "${DEV_WALLET_MNEMONIC}" | kava keys add --recover dev-wallet
|
echo "${DEV_WALLET_MNEMONIC}" | kava keys add --recover dev-wallet
|
||||||
DEV_TEST_WALLET_ADDRESS="0x7E08fa61f22f1A40B4617b887eD24b85CDaf33c2"
|
DEV_TEST_WALLET_ADDRESS="0x7E08fa61f22f1A40B4617b887eD24b85CDaf33c2"
|
||||||
|
WEBAPP_E2E_WHALE_ADDRESS="0x0252284098b19036F81bd22851f8699042fafac2"
|
||||||
|
|
||||||
# setup kava ethereum compatible account for deploying
|
# setup kava ethereum compatible account for deploying
|
||||||
# erc20 contracts to the kava chain
|
# erc20 contracts to the kava chain
|
||||||
@ -68,6 +69,12 @@ npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$USD_CONTRACT
|
|||||||
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$wETH_CONTRACT_ADDRESS" "$DEV_TEST_WALLET_ADDRESS" 1000000000000000000000
|
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$wETH_CONTRACT_ADDRESS" "$DEV_TEST_WALLET_ADDRESS" 1000000000000000000000
|
||||||
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$AXLUSD_CONTRACT_ADDRESS" "$DEV_TEST_WALLET_ADDRESS" 100000000000
|
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$AXLUSD_CONTRACT_ADDRESS" "$DEV_TEST_WALLET_ADDRESS" 100000000000
|
||||||
|
|
||||||
|
# seed webapp E2E whale account
|
||||||
|
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$wBTC_CONTRACT_ADDRESS" "$WEBAPP_E2E_WHALE_ADDRESS" 100000000000000
|
||||||
|
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$USD_CONTRACT_ADDRESS" "$WEBAPP_E2E_WHALE_ADDRESS" 1000000000000
|
||||||
|
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$wETH_CONTRACT_ADDRESS" "$WEBAPP_E2E_WHALE_ADDRESS" 10000000000000000000000
|
||||||
|
npx hardhat --network "${ERC20_DEPLOYER_NETWORK_NAME}" mint-erc20 "$AXLUSD_CONTRACT_ADDRESS" "$WEBAPP_E2E_WHALE_ADDRESS" 10000000000000
|
||||||
|
|
||||||
# give dev-wallet enough delegation power to pass proposals by itself
|
# give dev-wallet enough delegation power to pass proposals by itself
|
||||||
# enumerate all genesis validators
|
# enumerate all genesis validators
|
||||||
GENTX_VALIDATORS=("kavavaloper1xcgtffvv2yeqmgs3yz4gv29kgjrj8usxrnrlwp" "kavavaloper1w66m9hdzwgd6uc8g93zqkcumgwzrpcw958sh3s")
|
GENTX_VALIDATORS=("kavavaloper1xcgtffvv2yeqmgs3yz4gv29kgjrj8usxrnrlwp" "kavavaloper1w66m9hdzwgd6uc8g93zqkcumgwzrpcw958sh3s")
|
||||||
|
36
ci/env/kava-internal-testnet/genesis.json
vendored
36
ci/env/kava-internal-testnet/genesis.json
vendored
@ -204,6 +204,13 @@
|
|||||||
"pub_key": null,
|
"pub_key": null,
|
||||||
"account_number": "0",
|
"account_number": "0",
|
||||||
"sequence": "0"
|
"sequence": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "/cosmos.auth.v1beta1.BaseAccount",
|
||||||
|
"address": "kava1qffzssyckxgrd7qm6g59r7rfjpp047kzaefatc",
|
||||||
|
"pub_key": null,
|
||||||
|
"account_number": "0",
|
||||||
|
"sequence": "0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -422,6 +429,35 @@
|
|||||||
"amount": "103000000000"
|
"amount": "103000000000"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"address": "kava1qffzssyckxgrd7qm6g59r7rfjpp047kzaefatc",
|
||||||
|
"coins": [
|
||||||
|
{
|
||||||
|
"denom": "btcb",
|
||||||
|
"amount": "200000000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"denom": "busd",
|
||||||
|
"amount": "1000000000000000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"denom": "hard",
|
||||||
|
"amount": "1000000000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"denom": "swp",
|
||||||
|
"amount": "5000000000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"denom": "ukava",
|
||||||
|
"amount": "100000000000000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"denom": "usdx",
|
||||||
|
"amount": "103000000000"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"supply": [],
|
"supply": [],
|
||||||
|
Loading…
Reference in New Issue
Block a user