Skip to content

Commit

Permalink
Starport 0.16
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed May 24, 2021
1 parent 47f77f4 commit 89098ac
Show file tree
Hide file tree
Showing 77 changed files with 866 additions and 13,526 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ jobs:
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: 1.16
go-version: 1.15
env:
GOOS: ${{ matrix.targetos }}
GOARCH: ${{ matrix.arch }}

- name: Compile
run: |
go mod download
cd cmd/Junod
cd cmd/junod
go build .
- uses: actions/upload-artifact@v2
with:
name: junod ${{ matrix.targetos }} ${{ matrix.arch }}
path: cmd/Junod/junod
path: cmd/junod/junod

22 changes: 13 additions & 9 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@ package app

import (
"io"
"net/http"
"os"
"path/filepath"

"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/codec/types"
"github.com/spf13/cast"

"github.com/tendermint/spm/openapiconsole"
abci "github.com/tendermint/tendermint/abci/types"
"github.com/tendermint/tendermint/libs/log"
tmos "github.com/tendermint/tendermint/libs/os"
dbm "github.com/tendermint/tm-db"

appparams "github.com/CosmosContracts/Juno/app/params"
appparams "github.com/CosmosContracts/juno/app/params"
"github.com/CosmosContracts/juno/docs"
"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
"github.com/cosmos/cosmos-sdk/client/rpc"
Expand Down Expand Up @@ -82,18 +84,16 @@ import (
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"
tmjson "github.com/tendermint/tendermint/libs/json"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

// this line is used by starport scaffolding # stargate/app/moduleImport
"strings"

"github.com/CosmWasm/wasmd/x/wasm"
wasmclient "github.com/CosmWasm/wasmd/x/wasm/client"
"github.com/CosmosContracts/Juno/x/juno"
junokeeper "github.com/CosmosContracts/Juno/x/juno/keeper"
junotypes "github.com/CosmosContracts/Juno/x/juno/types"
"github.com/CosmosContracts/juno/x/juno"
junokeeper "github.com/CosmosContracts/juno/x/juno/keeper"
junotypes "github.com/CosmosContracts/juno/x/juno/types"
"strings"
)

const Name = "Juno"
const Name = "juno"

var (
// If EnabledSpecificProposals is "", and this is "true", then enable all x/wasm proposals.
Expand Down Expand Up @@ -627,6 +627,10 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig
// Register legacy and grpc-gateway routes for all modules.
ModuleBasics.RegisterRESTRoutes(clientCtx, apiSvr.Router)
ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)

// register app's OpenAPI routes.
apiSvr.Router.Handle("/static/openapi.yml", http.FileServer(http.FS(docs.Docs)))
apiSvr.Router.HandleFunc("/", openapiconsole.Handler(Name, "/static/openapi.yml"))
}

// RegisterTxService implements the Application.RegisterTxService method.
Expand Down
2 changes: 1 addition & 1 deletion app/encoding.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package app

import (
"github.com/CosmosContracts/Juno/app/params"
"github.com/CosmosContracts/juno/app/params"
"github.com/cosmos/cosmos-sdk/std"
)

Expand Down
2 changes: 1 addition & 1 deletion app/prefix.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

const (
AccountAddressPrefix = "juno"
AccountAddressPrefix = "cosmos"
)

var (
Expand Down
192 changes: 0 additions & 192 deletions cmd/Junod/cmd/genaccounts.go

This file was deleted.

29 changes: 0 additions & 29 deletions cmd/Junod/cmd/genwasm.go

This file was deleted.

Loading

0 comments on commit 89098ac

Please sign in to comment.