Skip to content

Commit

Permalink
chore: denom akash -> uakt
Browse files Browse the repository at this point in the history
refs #771
  • Loading branch information
boz committed Sep 8, 2020
1 parent b0cbdee commit 91046d0
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 20 deletions.
4 changes: 2 additions & 2 deletions _docs/sdl.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ westcoast:
region: us-west
pricing:
web:
denom: akash
denom: uakt
amount: 8
db:
denom: akash
denom: uakt
amount: 100
```

Expand Down
2 changes: 1 addition & 1 deletion _run/common-commands.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SDL_PATH ?= deployment.yaml
DSEQ ?= 1
GSEQ ?= 1
OSEQ ?= 1
PRICE ?= 10akash
PRICE ?= 10uakt

.PHONY: provider-create
provider-create:
Expand Down
2 changes: 1 addition & 1 deletion _run/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GENESIS_PATH := $(NODE_HOME)/config/genesis.json

CHAIN_MIN_DEPOSIT := 10000000
CHAIN_ACCOUNT_DEPOSIT := $(shell echo $$(($(CHAIN_MIN_DEPOSIT) * 10)))
CHAIN_TOKEN_DENOM := akash
CHAIN_TOKEN_DENOM := uakt

AKASHCTL_NONODE := $(AKASHCTL_BIN) --home "$(CLIENT_HOME)"
AKASHCTL := $(AKASHCTL_NONODE)
Expand Down
2 changes: 1 addition & 1 deletion _run/kube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ this example.
|`DSEQ`|1|deployment sequence|
|`GSEQ`|1|group sequence|
|`OSEQ`|1|order sequence|
|`PRICE`|10akash|price to bid|
|`PRICE`|10uakt|price to bid|

# Runbook

Expand Down
2 changes: 1 addition & 1 deletion _run/kube/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ profiles:
region: us-west
pricing:
web:
denom: akash
denom: uakt
amount: 1000

deployment:
Expand Down
4 changes: 2 additions & 2 deletions _run/lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ this example.
|`DSEQ`|1|deployment sequence|
|`GSEQ`|1|group sequence|
|`OSEQ`|1|order sequence|
|`PRICE`|10akash|price to bid|
|`PRICE`|10uakt|price to bid|

## Runbook

Expand Down Expand Up @@ -355,7 +355,7 @@ KEY_NAME=other DSEQ=20 GSEQ=99 OSEQ=500 make order-close

Fully-customized bid creation
```sh
KEY_NAME=other PROVIDER_KEY_NAME=validator DSEQ=20 GSEQ=99 OSEQ=500 PRICE=100akash make bid-create
KEY_NAME=other PROVIDER_KEY_NAME=validator DSEQ=20 GSEQ=99 OSEQ=500 PRICE=100uakt make bid-create
```

Fully-customized bid close
Expand Down
2 changes: 1 addition & 1 deletion _run/lite/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ profiles:
region: us-west
pricing:
web:
denom: akash
denom: uakt
amount: 1000

deployment:
Expand Down
2 changes: 1 addition & 1 deletion _run/single/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ this example.
|`DSEQ`|1|deployment sequence|
|`GSEQ`|1|group sequence|
|`OSEQ`|1|order sequence|
|`PRICE`|10akash|price to bid|
|`PRICE`|10uakt|price to bid|

To get DNS routing to work locally, there are two addresses which will probably need to set to configure requests to hit the kind docker container. To route requests back to the local interface, add the following two lines to your `/etc/hosts` for the Akashd and Akash-Provider examples to work correctly.

Expand Down
2 changes: 1 addition & 1 deletion _run/single/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ profiles:
region: us-west
pricing:
web:
denom: akash
denom: uakt
amount: 1000

deployment:
Expand Down
2 changes: 1 addition & 1 deletion integration/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
)

const (
denom = "akash"
denom = "uakt"
denomStartValue = 150
keyFoo = "foo"
keyBar = "bar"
Expand Down
2 changes: 1 addition & 1 deletion sdl/_testdata/profile-svc-name-mismatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ profiles:
region: sjc
pricing:
web:
denom: akash
denom: uakt
amount: 25

deployment:
Expand Down
2 changes: 1 addition & 1 deletion sdl/_testdata/simple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ profiles:
region: us-west
pricing:
web:
denom: akash
denom: uakt
amount: 50

deployment:
Expand Down
7 changes: 5 additions & 2 deletions testutil/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ import (

func init() {
config := sdk.GetConfig()
config.SetBech32PrefixForAccount(CoinDenom, CoinDenom)
config.SetBech32PrefixForAccount(BechPrefix, BechPrefix)
config.Seal()
}

// CoinDenom provides ability to create coins in test functions and
// pass them into testutil functionality.
const CoinDenom = "akash"
const (
CoinDenom = "uakt"
BechPrefix = "akash"
)

// Name generates a random name with the given prefix
func Name(_ testing.TB, prefix string) string {
Expand Down
2 changes: 1 addition & 1 deletion x/deployment/testdata/deployment-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ profiles:
global:
pricing:
web:
denom: akash
denom: uakt
amount: 30

deployment:
Expand Down
2 changes: 1 addition & 1 deletion x/deployment/testdata/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ profiles:
global:
pricing:
web:
denom: akash
denom: uakt
amount: 30

deployment:
Expand Down
3 changes: 1 addition & 2 deletions x/market/handler/endblock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,11 @@ func TestWinningDistribution(t *testing.T) {

func createBid(t *testing.T, oid types.OrderID, bid int) types.Bid {
t.Helper()
akashDenom := "akash"
sdkInt := int64(bid)
b := types.Bid{
BidID: types.MakeBidID(oid, testutil.AccAddress(t)),
State: types.BidOpen,
Price: sdk.NewCoin(akashDenom, sdk.NewInt(sdkInt)),
Price: sdk.NewCoin(testutil.CoinDenom, sdk.NewInt(sdkInt)),
}
return b
}

0 comments on commit 91046d0

Please sign in to comment.