Skip to content

Commit

Permalink
auction start of deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
PFC-developer committed Mar 26, 2024
1 parent b68ba40 commit 1ba9440
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
File renamed without changes.
32 changes: 32 additions & 0 deletions deploy/02-testnet-auction.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# intended to be run from root directory, and *AFTER* the 01-testnet-treasury
# config on machine
injectived config
{
"chain-id": "injective-888",
"keyring-backend": "os",
"output": "json",
"node": "https://testnet.sentry.tm.injective.network:443/",
"broadcast-mode": "sync"
}


export FROM=auction-test
export FROM_ADDR=inj12nn88vtuf893cpfkke23dszpr5uccqj2zqukt6
export TREASURE=8127
export AUCTION=8128
## create the test denom
export FEE_AMT=$(injectived query tokenfactory params|jq -r '.params.denom_creation_fee[0].amount')
#export FEE_AMT=1000000000000000000

# envsubst comes from
# brew install getttext
INIT_MSG=$(envsubst < ./deploy/testnet/auction.json)
date_label=$(date +"%Y-%m-%d %H:%M")

injectived tx wasm instantiate $AUCTION ${INIT_MSG} \
--label auction_${date_label} \
--admin $FROM_ADDR \
--amount ${FEE_AMT}inj \
--from $FROM --yes --gas-prices "160000000inj" --gas-adjustment 1.3 --gas auto

^^ following is failing
14 changes: 14 additions & 0 deletions deploy/testnet/auction.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"owner": "$FROM_ADDR",
"native_denom": "inj",
"min_balance": "$FEE_AMT",
"token_factory_type": "injective",
"rewards_fee": "0.05",
"rewards_fee_addr": "$FROM_ADDR",
"whitelisted_addresses": [
"$FROM_ADDR"
],
"min_next_bid_increment_rate": "0.0005",
"treasury_chest_code_id": $TREASURE,
"min_return": "0.05"
}

0 comments on commit 1ba9440

Please sign in to comment.