Skip to content

Commit

Permalink
fix: rename cosmos-level tokens uagstake/uag to ubld/urun
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Apr 21, 2021
1 parent d3d784b commit 0557983
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions packages/agoric-cli/lib/chain-config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import djson from 'deterministic-json';
import TOML from '@iarna/toml';

export const MINT_DENOM = 'uag';
export const STAKING_DENOM = 'uagstake';
export const MINT_DENOM = 'urun';
export const STAKING_DENOM = 'ubld';
export const STAKING_MAX_VALIDATORS = 150;

export const GOV_DEPOSIT_COINS = [{ amount: '10000000', denom: MINT_DENOM }];
Expand Down
6 changes: 3 additions & 3 deletions packages/cosmic-swingset/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
REPOSITORY = agoric/cosmic-swingset
CHAIN_ID = agoric
INITIAL_TOKENS = 1000000000000uag
INITIAL_TOKENS = 1000000000000urun
INITIAL_HEIGHT = 17
GENESIS_TIME = $(shell TZ=UTC date +%Y-%m-%dT%H:%M:%SZ)

Expand Down Expand Up @@ -60,9 +60,9 @@ scenario2-setup-nobuild:
# Create the bootstrap account.
$(AGCH) --home=t1/bootstrap keys add bootstrap --keyring-backend=test
$(AGCH) --home=t1/bootstrap keys show -a bootstrap --keyring-backend=test > t1/bootstrap-address
$(AGCH) --home=t1/n0 add-genesis-account `cat t1/bootstrap-address` 100000000uagstake,100provisionpass,100sendpacketpass
$(AGCH) --home=t1/n0 add-genesis-account `cat t1/bootstrap-address` 100000000ubld,100provisionpass,100sendpacketpass
# Create the (singleton) chain node.
$(AGCH) --home=t1/n0 --keyring-dir=t1/bootstrap gentx --keyring-backend=test bootstrap 1000000uagstake --chain-id=$(CHAIN_ID)
$(AGCH) --home=t1/n0 --keyring-dir=t1/bootstrap gentx --keyring-backend=test bootstrap 1000000ubld --chain-id=$(CHAIN_ID)
$(AGCH) --home=t1/n0 collect-gentxs
$(AGCH) --home=t1/n0 validate-genesis
../agoric-cli/bin/agoric set-defaults --export-metrics ag-chain-cosmos t1/n0/config
Expand Down
2 changes: 1 addition & 1 deletion packages/cosmic-swingset/bin/ag-nchainz
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ testnet)
addr=$(cat $solo/ag-cosmos-helper-address)
$DAEMON add-genesis-account --home=$n0d \
$($CLI --home=$solo/$CLI-statedir --keyring-backend=test keys show -a ag-solo) \
1000uag,1provisionpass
1000urun,1provisionpass
# Generate powerful SwingSet egresses.
egresses="$egresses$sep\"egress.$addr\":\"{\\\"nickname\\\":\\\"$solo\\\",\\\"peer\\\":\\\"$addr\\\",\\\"powerFlags\\\":$POWER_FLAGS}\""
sep=,
Expand Down
2 changes: 1 addition & 1 deletion packages/cosmic-swingset/scripts/chain-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ single-node)
cd
export DAEMON=ag-chain-cosmos
export CLI=ag-cosmos-helper
export STAKE=10000000000uagstake
export STAKE=10000000000ubld
exec "$DIR/single-node.sh" ${1+"$@"}
;;
*)
Expand Down
2 changes: 1 addition & 1 deletion packages/cosmic-swingset/scripts/single-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
DAEMON=${DAEMON-gaiad}
CLI=${CLI-gaiacli}
STAKE=${STAKE-10000000000stake}
coins="${STAKE},100000000000samoleans,1000000000uag,100provisionpass"
coins="${STAKE},100000000000samoleans,1000000000urun,100provisionpass"

CHAINID=$1
GENACCT=$2
Expand Down
4 changes: 2 additions & 2 deletions packages/deployment/ansible/cosmos-genesis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
- CHAIN_NAME: "{{ lookup('file', SETUP_HOME + '/ag-chain-cosmos/chain-name.txt') }}"
- NETWORK_CONFIG_URL: https://testnet.agoric.com/network-config
- STAKER: ag-staker
- STAKER_TOKENS: 10000000000000000000000000uagstake
- STAKER_AMOUNT: 50000000uagstake
- STAKER_TOKENS: 10000000000000000000000000ubld
- STAKER_AMOUNT: 50000000ubld
- STAKER_NODE: validator0
roles:
- cosmos-genesis
2 changes: 1 addition & 1 deletion packages/deployment/ansible/cosmos-validators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
- CHAIN_NAME: "{{ lookup('file', SETUP_HOME + '/' + service + '/chain-name.txt') }}"
- STAKER: ag-staker
- STAKER_NODE: validator0
- STAKER_AMOUNT: 50000000uagstake
- STAKER_AMOUNT: 50000000ubld
roles:
- cosmos-validators
2 changes: 1 addition & 1 deletion packages/deployment/ansible/prepare-cosmos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- BOOTSTRAP_TOKENS: "{{ lookup('file', SETUP_HOME + '/boot-tokens.txt') }}"
- CHAIN_NAME: "{{ lookup('file', SETUP_HOME + '/' + service + '/chain-name.txt') }}"
- STAKER: ag-staker
- STAKER_AMOUNT: 50000000uagstake
- STAKER_AMOUNT: 50000000ubld
- HELPER_BINARY: "{{lookup('env', 'GOPATH') or '/usr/local'}}/bin/ag-cosmos-helper"
- APPDIR: "{{lookup('pipe', 'pwd')}}/../.."
roles:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ thisdir=$(dirname -- "$0")
FAUCET_HOME=$thisdir/../faucet

MAX_LINES=-1
STAKE=50000000uagstake
STAKE=50000000ubld

OP=$1
shift
Expand Down
6 changes: 3 additions & 3 deletions packages/deployment/bigdipper/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
"bech32PrefixValPub": "agoricvaloperpub",
"bech32PrefixConsAddr": "agoricvalcons",
"bech32PrefixConsPub": "agoricvalconspub",
"bondDenom": "uagstake",
"bondDenom": "ubld",
"powerReduction": 1000000,
"coins": [
{
"denom": "uagstake",
"denom": "ubld",
"displayName": "AGSTAKE",
"displayNamePlural": "AGSTAKES",
"fraction": 1000000
},
{
"denom": "uag",
"denom": "urun",
"displayName": "AG",
"displayNamePlural": "AGS",
"fraction": 1000000
Expand Down
2 changes: 1 addition & 1 deletion packages/deployment/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import chalk from 'chalk';

export const ACCOUNT_JSON = `account.json`;
export const DEFAULT_BOOT_TOKENS = `10000000000000000000000000uag`;
export const DEFAULT_BOOT_TOKENS = `10000000000000000000000000urun`;
export const PLAYBOOK_WRAPPER = `./ansible-playbook.sh`;
export const SSH_TYPE = 'ecdsa';

Expand Down
2 changes: 1 addition & 1 deletion packages/pegasus/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ make scenario2-setup-nobuild scenario2-run-chain
After producing blocks:

```
ag-cosmos-helper --home=t1/bootstrap --keyring-backend=test tx bank send $(ag-cosmos-helper --home=t1/bootstrap --keyring-backend=test keys show -a bootstrap) agoric189hehmq5mz5zp7mel9u8ellc37pvvr9veyje7a 1000000uagstake --from=bootstrap --chain-id=agoric --yes
ag-cosmos-helper --home=t1/bootstrap --keyring-backend=test tx bank send $(ag-cosmos-helper --home=t1/bootstrap --keyring-backend=test keys show -a bootstrap) agoric189hehmq5mz5zp7mel9u8ellc37pvvr9veyje7a 1000000ubld --from=bootstrap --chain-id=agoric --yes
make scenario2-run-client
```

Expand Down

0 comments on commit 0557983

Please sign in to comment.