Skip to content

Commit

Permalink
Rename okt to okb in ut and script file (#38)
Browse files Browse the repository at this point in the history
* rename okt to okb

* rename okt

* Update evm2cm_test.go
  • Loading branch information
ylsGit authored Mar 13, 2023
1 parent fe9f56f commit a6a4b8d
Show file tree
Hide file tree
Showing 42 changed files with 165 additions and 169 deletions.
2 changes: 1 addition & 1 deletion app/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func (suite *FakeBlockTxTestSuite) TestFakeBlockTx() {
txBytes, _ := txEncoder(tx)
return txBytes
},
5, //insufficient funds: insufficient funds to pay for fees; 890.000000000000000000okt < 1000000000000000000.000000000000000000okt
5, //insufficient funds: insufficient funds to pay for fees; 890.000000000000000000okb < 1000000000000000000.000000000000000000okb
0,
},
{
Expand Down
16 changes: 8 additions & 8 deletions app/rpc/tests/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ const (
addrAStoreKey = 0
defaultProtocolVersion = 65
defaultChainID = 65
defaultMinGasPrice = "0.0000000001okt"
safeLowGP = "0.0000000001okt"
avgGP = "0.0000000001okt"
fastestGP = "0.00000000015okt"
defaultMinGasPrice = "0.0000000001okb"
safeLowGP = "0.0000000001okb"
avgGP = "0.0000000001okb"
fastestGP = "0.00000000015okb"
latestBlockNumber = "latest"
pendingBlockNumber = "pending"
)
Expand Down Expand Up @@ -191,7 +191,7 @@ func commitBlock(suite *RPCTestSuite) {
mck.CommitBlock()
}
func (suite *RPCTestSuite) TestEth_GetBalance() {
// initial balance of hexAddr2 is 1000000000okt in test.sh
// initial balance of hexAddr2 is 1000000000okb in test.sh
initialBalance := suite.chain.SenderAccount().GetCoins()[0]
genesisAcc := ethcmn.BytesToAddress(suite.chain.SenderAccount().GetAddress().Bytes()).String()

Expand Down Expand Up @@ -371,7 +371,7 @@ func (suite *RPCTestSuite) TestEth_GasPrice() {
var gasPrice hexutil.Big
suite.Require().NoError(json.Unmarshal(rpcRes.Result, &gasPrice))

// min gas price in test.sh is "0.000000001okt"
// min gas price in test.sh is "0.000000001okb"
mgp, err := sdk.ParseDecCoin(defaultMinGasPrice)
suite.Require().NoError(err)

Expand Down Expand Up @@ -460,7 +460,7 @@ func (suite *RPCTestSuite) TestEth_SendTransaction_Transfer() {
receipt := WaitForReceipt(suite.T(), suite.addr, hash)
suite.Require().NotNil(receipt)
suite.Require().Equal("0x1", receipt["status"].(string))
//suite.T().Logf("%s transfers %sokt to %s successfully\n", hexAddr1.Hex(), value.String(), receiverAddr.Hex())
//suite.T().Logf("%s transfers %sokb to %s successfully\n", hexAddr1.Hex(), value.String(), receiverAddr.Hex())

// TODO: logic bug, fix it later
// ignore gas price -> default 'ethermint.DefaultGasPrice' on node -> successfully
Expand All @@ -471,7 +471,7 @@ func (suite *RPCTestSuite) TestEth_SendTransaction_Transfer() {
//receipt = WaitForReceipt(suite.T(), hash)
//suite.Require().NotNil(receipt)
//suite.Require().Equal("0x1", receipt["status"].(string))
//suite.T().Logf("%s transfers %sokt to %s successfully with nil gas price \n", hexAddr1.Hex(), value.String(), receiverAddr.Hex())
//suite.T().Logf("%s transfers %sokb to %s successfully with nil gas price \n", hexAddr1.Hex(), value.String(), receiverAddr.Hex())

// error check
// sender is not unlocked on the node
Expand Down
16 changes: 8 additions & 8 deletions app/rpc/tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ exchaincli keys add $KEY2 --recover -m "lazy cupboard wealth canoe pumpkin gasp
# Set moniker and chain-id for Ethermint (Moniker can be anything, chain-id must be an integer)
exchaind init $MONIKER --chain-id $CHAINID --home $HOME_SERVER

# Change parameter token denominations to okt
cat $HOME_SERVER/config/genesis.json | jq '.app_state["staking"]["params"]["bond_denom"]="okt"' >$HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["crisis"]["constant_fee"]["denom"]="okt"' >$HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]="okt"' >$HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["mint"]["params"]["mint_denom"]="okt"' >$HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
# Change parameter token denominations to okb
cat $HOME_SERVER/config/genesis.json | jq '.app_state["staking"]["params"]["bond_denom"]="okb"' >$HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["crisis"]["constant_fee"]["denom"]="okb"' >$HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]="okb"' >$HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["mint"]["params"]["mint_denom"]="okb"' >$HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json

# Enable EVM
sed -i "" 's/"enable_call": false/"enable_call": true/' $HOME_SERVER/config/genesis.json
sed -i "" 's/"enable_create": false/"enable_create": true/' $HOME_SERVER/config/genesis.json

# Allocate genesis accounts (cosmos formatted addresses)
exchaind add-genesis-account $(exchaincli keys show $KEY1 -a --home $HOME_CLI) 1000000000okt --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show $KEY2 -a --home $HOME_CLI) 1000000000okt --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show $KEY1 -a --home $HOME_CLI) 1000000000okb --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show $KEY2 -a --home $HOME_CLI) 1000000000okb --home $HOME_SERVER
## Sign genesis transaction
exchaind gentx --name $KEY1 --keyring-backend test --home $HOME_SERVER --home-client $HOME_CLI
# Collect genesis tx
Expand All @@ -76,7 +76,7 @@ exchaind start \
--rest.unlock_key $KEY1,$KEY2 \
--rest.unlock_key_home $HOME_CLI \
--keyring-backend "test" \
--minimum-gas-prices "0.000000001okt"
--minimum-gas-prices "0.000000001okb"

#go test ./

Expand Down
2 changes: 1 addition & 1 deletion app/rpc/tests/tests-pending/rpc_pending_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (

const (
addrAStoreKey = 0
defaultMinGasPrice = "0.000000001okt"
defaultMinGasPrice = "0.000000001okb"
latestBlockNumber = "latest"
pendingBlockNumber = "pending"
)
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func cw20InstantiateMsg(info *AppInfo) ([]sdk.Msg, error) {
addr := info.MinterAddr.String()
init := cw20InitMsg{
Name: "OK Token",
Symbol: "OKT",
Symbol: "OKB",
Decimals: 8,
InitialBalances: []balance{
{
Expand Down
9 changes: 4 additions & 5 deletions dev/client/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"crypto/ecdsa"
"fmt"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/accounts/abi"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
Expand Down Expand Up @@ -152,7 +151,7 @@ func writeContract(client *ethclient.Client,
return nil
}

func transferOKT(client *ethclient.Client,
func transferOKB(client *ethclient.Client,
fromAddress common.Address,
toAddress common.Address,
amount *big.Int,
Expand All @@ -169,7 +168,7 @@ func transferOKT(client *ethclient.Client,

fmt.Printf(
"==================================================\n"+
"Transfer OKT: \n"+
"Transfer OKB: \n"+
" from : <%s>\n"+
" to : <%s>\n"+
" amount: <%s>\n"+
Expand Down Expand Up @@ -330,8 +329,8 @@ func send(client *ethclient.Client, to, privKey string) {
privateKey, senderAddress := initKey(privKey)
toAddress := common.HexToAddress(to)

// send 0.001okt
transferOKT(client, senderAddress, toAddress, str2bigInt("0.001"), privateKey, 0)
// send 0.001okb
transferOKB(client, senderAddress, toAddress, str2bigInt("0.001"), privateKey, 0)
}

func transferOip(client *ethclient.Client, oip20 *Oip20,
Expand Down
8 changes: 4 additions & 4 deletions dev/erc20.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
res=$(exchaincli tx wasm store ./wasm/erc20/artifacts/cw_erc20-aarch64.wasm --fees 0.01okt --from captain --gas=2000000 -b block -y)
res=$(exchaincli tx wasm store ./wasm/erc20/artifacts/cw_erc20-aarch64.wasm --fees 0.01okb --from captain --gas=2000000 -b block -y)
code_id=$(echo "$res" | jq '.logs[0].events[1].attributes[0].value' | sed 's/\"//g')
res=$(exchaincli tx wasm instantiate "$code_id" '{"decimals":10,"initial_balances":[{"address":"ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v","amount":"100000000"}],"name":"my test token", "symbol":"MTT"}' --label test1 --admin ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v --fees 0.001okt --from captain -b block -y)
res=$(exchaincli tx wasm instantiate "$code_id" '{"decimals":10,"initial_balances":[{"address":"ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v","amount":"100000000"}],"name":"my test token", "symbol":"MTT"}' --label test1 --admin ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v --fees 0.001okb --from captain -b block -y)
contractAddr=$(echo "$res" | jq '.logs[0].events[0].attributes[0].value' | sed 's/\"//g')
exchaincli tx wasm execute "$contractAddr" '{"transfer":{"amount":"100","recipient":"ex1eutyuqqase3eyvwe92caw8dcx5ly8s544q3hmq"}}' --fees 0.001okt --from captain -b block -y
exchaincli tx wasm execute "$contractAddr" '{"transfer":{"amount":"100","recipient":"ex1eutyuqqase3eyvwe92caw8dcx5ly8s544q3hmq"}}' --fees 0.001okb --from captain -b block -y

echo " ========================================================== "
echo "## show all codes uploaded ##"
Expand All @@ -24,4 +24,4 @@ echo "#### raw state"
exchaincli query wasm contract-state raw "$contractAddr" 0006636F6E666967636F6E7374616E7473
echo "#### smart state"
exchaincli query wasm contract-state smart "$contractAddr" '{"balance":{"address":"ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v"}}'
exchaincli query wasm contract-state smart "$contractAddr" '{"balance":{"address":"ex1eutyuqqase3eyvwe92caw8dcx5ly8s544q3hmq"}}'
exchaincli query wasm contract-state smart "$contractAddr" '{"balance":{"address":"ex1eutyuqqase3eyvwe92caw8dcx5ly8s544q3hmq"}}'
8 changes: 4 additions & 4 deletions dev/escrow.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
res=$(exchaincli tx wasm store ./wasm/escrow/artifacts/cw_escrow-aarch64.wasm --fees 0.01okt --from captain --gas=2000000 -b block -y)
res=$(exchaincli tx wasm store ./wasm/escrow/artifacts/cw_escrow-aarch64.wasm --fees 0.01okb --from captain --gas=2000000 -b block -y)
echo "store code..."
echo $res
code_id=$(echo "$res" | jq '.logs[0].events[1].attributes[0].value' | sed 's/\"//g')
res=$(exchaincli tx wasm instantiate "$code_id" '{"arbiter":"ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v","end_height":100000,"recipient":"ex190227rqaps5nplhg2tg8hww7slvvquzy0qa0l0"}' --label test1 --admin ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v --fees 0.001okt --from captain -b block -y)
res=$(exchaincli tx wasm instantiate "$code_id" '{"arbiter":"ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v","end_height":100000,"recipient":"ex190227rqaps5nplhg2tg8hww7slvvquzy0qa0l0"}' --label test1 --admin ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v --fees 0.001okb --from captain -b block -y)
contractAddr=$(echo "$res" | jq '.logs[0].events[0].attributes[0].value' | sed 's/\"//g')
echo "instantiate contract..."
echo $res
#exchaincli tx send ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v $contractAddr 999okt --fees 0.01okt -y -b block
exchaincli tx wasm execute "$contractAddr" '{"approve":{"quantity":[{"amount":"1","denom":"okt"}]}}' --amount 888okt --fees 0.001okt --from captain -b block -y
#exchaincli tx send ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v $contractAddr 999okb --fees 0.01okb -y -b block
exchaincli tx wasm execute "$contractAddr" '{"approve":{"quantity":[{"amount":"1","denom":"okb"}]}}' --amount 888okb --fees 0.001okb --from captain -b block -y
18 changes: 9 additions & 9 deletions dev/keplr-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ exchaincli keys add --recover admin18 -m "lazy cause kite fence gravity regret v
# Set moniker and chain-id for Ethermint (Moniker can be anything, chain-id must be an integer)
exchaind init $MONIKER --chain-id $CHAINID --home $HOME_SERVER

# Change parameter token denominations to okt
cat $HOME_SERVER/config/genesis.json | jq '.app_state["staking"]["params"]["bond_denom"]="okt"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["crisis"]["constant_fee"]["denom"]="okt"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]="okt"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["mint"]["params"]["mint_denom"]="okt"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
# Change parameter token denominations to okb
cat $HOME_SERVER/config/genesis.json | jq '.app_state["staking"]["params"]["bond_denom"]="okb"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["crisis"]["constant_fee"]["denom"]="okb"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]="okb"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["mint"]["params"]["mint_denom"]="okb"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json

# Enable EVM

Expand All @@ -112,10 +112,10 @@ else
fi

# Allocate genesis accounts (cosmos formatted addresses)
exchaind add-genesis-account $(exchaincli keys show $KEY -a) 100000000okt --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin16 -a) 900000000okt --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin17 -a) 900000000okt --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin18 -a) 900000000okt --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show $KEY -a) 100000000okb --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin16 -a) 900000000okb --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin17 -a) 900000000okb --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin18 -a) 900000000okb --home $HOME_SERVER

# Sign genesis transaction
exchaind gentx --name $KEY --keyring-backend test --home $HOME_SERVER
Expand Down
18 changes: 9 additions & 9 deletions dev/local-perf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ exchaincli keys add --recover admin18 -m "lazy cause kite fence gravity regret v
# Set moniker and chain-id for Ethermint (Moniker can be anything, chain-id must be an integer)
exchaind init $MONIKER --chain-id $CHAINID --home $HOME_SERVER

# Change parameter token denominations to okt
cat $HOME_SERVER/config/genesis.json | jq '.app_state["staking"]["params"]["bond_denom"]="okt"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["crisis"]["constant_fee"]["denom"]="okt"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]="okt"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["mint"]["params"]["mint_denom"]="okt"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
# Change parameter token denominations to okb
cat $HOME_SERVER/config/genesis.json | jq '.app_state["staking"]["params"]["bond_denom"]="okb"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["crisis"]["constant_fee"]["denom"]="okb"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["gov"]["deposit_params"]["min_deposit"][0]["denom"]="okb"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json
cat $HOME_SERVER/config/genesis.json | jq '.app_state["mint"]["params"]["mint_denom"]="okb"' > $HOME_SERVER/config/tmp_genesis.json && mv $HOME_SERVER/config/tmp_genesis.json $HOME_SERVER/config/genesis.json

# Enable EVM

Expand All @@ -113,10 +113,10 @@ else
fi

# Allocate genesis accounts (cosmos formatted addresses)
exchaind add-genesis-account $(exchaincli keys show $KEY -a) 100000000okt --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin16 -a) 900000000okt --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin17 -a) 900000000okt --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin18 -a) 900000000okt --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show $KEY -a) 100000000okb --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin16 -a) 900000000okb --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin17 -a) 900000000okb --home $HOME_SERVER
exchaind add-genesis-account $(exchaincli keys show admin18 -a) 900000000okb --home $HOME_SERVER

# Sign genesis transaction
exchaind gentx --name $KEY --keyring-backend test --home $HOME_SERVER
Expand Down
2 changes: 1 addition & 1 deletion dev/sendtoevm.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
exchaincli tx wasm execute "ex17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgsw8mmpu" '{"send_to_evm":{"amount":"340282366920938463463374607431768211455","recipient":"0x293a0231e57ee599DB33745bEF9Bfcc320B43de1","evmContract":"0xe76f5f1aE17439236050A8b96f6f5b43130dD72e"}}' --fees 0.001okt --from captain -b block -y
exchaincli tx wasm execute "ex17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9jfksztgw5uh69wac2pgsw8mmpu" '{"send_to_evm":{"amount":"340282366920938463463374607431768211455","recipient":"0x293a0231e57ee599DB33745bEF9Bfcc320B43de1","evmContract":"0xe76f5f1aE17439236050A8b96f6f5b43130dD72e"}}' --fees 0.001okb --from captain -b block -y
#--gas 10000000
4 changes: 2 additions & 2 deletions dev/vmbridge.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
res=$(exchaincli tx wasm store ./wasm/erc20/artifacts/cw_erc20.wasm --fees 0.01okt --from captain --gas=20000000 -b block -y)
res=$(exchaincli tx wasm store ./wasm/erc20/artifacts/cw_erc20.wasm --fees 0.01okb --from captain --gas=20000000 -b block -y)
echo "store--------------"
echo $res
code_id=$(echo "$res" | jq '.logs[0].events[1].attributes[0].value' | sed 's/\"//g')
res=$(exchaincli tx wasm instantiate "$code_id" '{"decimals":10,"initial_balances":[{"address":"ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v","amount":"100000000"}],"name":"my test token", "symbol":"MTT"}' --label test1 --admin ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v --fees 0.001okt --from captain -b block -y)
res=$(exchaincli tx wasm instantiate "$code_id" '{"decimals":10,"initial_balances":[{"address":"ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v","amount":"100000000"}],"name":"my test token", "symbol":"MTT"}' --label test1 --admin ex1h0j8x0v9hs4eq6ppgamemfyu4vuvp2sl0q9p3v --fees 0.001okb --from captain -b block -y)
contractAddr=$(echo "$res" | jq '.logs[0].events[0].attributes[0].value' | sed 's/\"//g')
echo $contractAddr
Loading

0 comments on commit a6a4b8d

Please sign in to comment.