Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: repo name #24

Merged
merged 2 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bu
IMAGE := ghcr.io/tendermint/docker-build-proto:latest
DOCKER_PROTO_BUILDER := docker run -v $(shell pwd):/workspace --workdir /workspace $(IMAGE)
PROJECTNAME=$(shell basename "$(PWD)")
HTTPS_GIT := https://github.com/sunriselayer/sunrise-app.git
PACKAGE_NAME := github.com/sunriselayer/sunrise-app
HTTPS_GIT := https://github.com/sunriselayer/sunrise.git
PACKAGE_NAME := github.com/sunriselayer/sunrise
GOLANG_CROSS_VERSION ?= v1.21.4

# process linker flags
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# sunrise-app
# Sunrise

**sunrise** is a blockchain built using Cosmos SDK and CometBFT and created with [Ignite CLI](https://ignite.com/cli).

Expand Down Expand Up @@ -27,7 +27,7 @@ go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar
^ +-------------------------------+ ^
| | | |
| | State-machine = Application | |
| | | | sunrise-app (built with Cosmos SDK)
| | | | sunrise (built with Cosmos SDK)
| | ^ + | |
| +----------- | ABCI | ----------+ v
Sunrise | | + v | ^
Expand All @@ -47,22 +47,22 @@ node | | | |

1. [Install Go](https://go.dev/doc/install) 1.22.2
1. Clone this repo
1. Install the sunrise-app CLI
1. Install the sunrise CLI

```shell
make install
```

### Prebuilt binary

If you'd rather not install from source, you can download a prebuilt binary from the [releases](https://github.com/SunriseLayer/sunrise-app/releases) page.
If you'd rather not install from source, you can download a prebuilt binary from the [releases](https://github.com/SunriseLayer/sunrise/releases) page.

1. Navigate to the latest release on <https://github.com/SunriseLayer/sunrise-app/releases>.
1. Download the binary for your platform (e.g. `sunrise-app_Linux_x86_64.tar.gz`) from the **Assets** section. Tip: if you're not sure what platform you're on, you can run `uname -a` and look for the operating system (e.g. `Linux`, `Darwin`) and architecture (e.g. `x86_64`, `arm64`).
1. Navigate to the latest release on <https://github.com/SunriseLayer/sunrise/releases>.
1. Download the binary for your platform (e.g. `sunrise_Linux_x86_64.tar.gz`) from the **Assets** section. Tip: if you're not sure what platform you're on, you can run `uname -a` and look for the operating system (e.g. `Linux`, `Darwin`) and architecture (e.g. `x86_64`, `arm64`).
1. Extract the archive

```shell
tar -xvf sunrise-app_Linux_x86_64.tar.gz
tar -xvf sunrise_Linux_x86_64.tar.gz
```

1. Verify the extracted binary works
Expand All @@ -80,7 +80,7 @@ If you'd rather not install from source, you can download a prebuilt binary from
You should see output like this:

```shell
sunrise-app_Linux_x86_64.tar.gz: OK
sunrise_Linux_x86_64.tar.gz: OK
```

See <https://docs.sunriselayer.io/node/build-node> for more information.
Expand Down
2 changes: 1 addition & 1 deletion api/sunrise/blobstream/v1/query.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/sunrise/blobstream/v1/types.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/abci_check_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

abci "github.com/cometbft/cometbft/abci/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/sunriselayer/sunrise-app/pkg/blob"
blobtypes "github.com/sunriselayer/sunrise-app/x/blob/types"
"github.com/sunriselayer/sunrise/pkg/blob"
blobtypes "github.com/sunriselayer/sunrise/x/blob/types"
)

// CheckTx implements the ABCI interface and executes a tx in CheckTx mode. This
Expand Down
2 changes: 1 addition & 1 deletion app/abci_finalize_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package app

import (
abci "github.com/cometbft/cometbft/abci/types"
"github.com/sunriselayer/sunrise-app/pkg/blob"
"github.com/sunriselayer/sunrise/pkg/blob"
)

// FinalizeBlock will execute the block proposal provided by RequestFinalizeBlock.
Expand Down
10 changes: 5 additions & 5 deletions app/abci_prepare_proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"encoding/binary"
"time"

"github.com/sunriselayer/sunrise-app/app/ante"
"github.com/sunriselayer/sunrise-app/pkg/da"
"github.com/sunriselayer/sunrise-app/pkg/shares"
"github.com/sunriselayer/sunrise-app/pkg/square"
"github.com/sunriselayer/sunrise/app/ante"
"github.com/sunriselayer/sunrise/pkg/da"
"github.com/sunriselayer/sunrise/pkg/shares"
"github.com/sunriselayer/sunrise/pkg/square"

abci "github.com/cometbft/cometbft/abci/types"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
Expand Down Expand Up @@ -64,7 +64,7 @@ func (app *App) PrepareProposal(req *abci.RequestPrepareProposal) (*abci.Respons
// an empty set of transactions. However, even without this validation,
// the initial block is anticipated to be devoid of transactions, as
// established by the findings presented in
// https://github.com/sunriselayer/sunrise-app/issues/1899;
// https://github.com/sunriselayer/sunrise/issues/1899;
// The inclusion of this check is out of an abundance of caution.
// The rationale behind having an empty first block revolves around the fact
// that no transactions can enter the mempool since no committed state exists
Expand Down
12 changes: 6 additions & 6 deletions app/abci_process_proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"fmt"
"time"

"github.com/sunriselayer/sunrise-app/app/ante"
"github.com/sunriselayer/sunrise-app/pkg/blob"
"github.com/sunriselayer/sunrise-app/pkg/da"
"github.com/sunriselayer/sunrise-app/pkg/shares"
"github.com/sunriselayer/sunrise-app/pkg/square"
blobtypes "github.com/sunriselayer/sunrise-app/x/blob/types"
"github.com/sunriselayer/sunrise/app/ante"
"github.com/sunriselayer/sunrise/pkg/blob"
"github.com/sunriselayer/sunrise/pkg/da"
"github.com/sunriselayer/sunrise/pkg/shares"
"github.com/sunriselayer/sunrise/pkg/square"
blobtypes "github.com/sunriselayer/sunrise/x/blob/types"

"cosmossdk.io/log"
abci "github.com/cometbft/cometbft/abci/types"
Expand Down
4 changes: 2 additions & 2 deletions app/ante/ante.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package ante

import (
blobante "github.com/sunriselayer/sunrise-app/x/blob/ante"
blob "github.com/sunriselayer/sunrise-app/x/blob/keeper"
blobante "github.com/sunriselayer/sunrise/x/blob/ante"
blob "github.com/sunriselayer/sunrise/x/blob/keeper"

"cosmossdk.io/x/tx/signing"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand Down
8 changes: 4 additions & 4 deletions app/ante/panic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"testing"

"github.com/sunriselayer/sunrise-app/app"
"github.com/sunriselayer/sunrise-app/app/ante"
"github.com/sunriselayer/sunrise-app/app/encoding"
"github.com/sunriselayer/sunrise-app/test/util/testnode"
"github.com/sunriselayer/sunrise/app"
"github.com/sunriselayer/sunrise/app/ante"
"github.com/sunriselayer/sunrise/app/encoding"
"github.com/sunriselayer/sunrise/test/util/testnode"

sdk "github.com/cosmos/cosmos-sdk/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
Expand Down
10 changes: 5 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ import (
ibctransferkeeper "github.com/cosmos/ibc-go/v8/modules/apps/transfer/keeper"
ibckeeper "github.com/cosmos/ibc-go/v8/modules/core/keeper"

blobmodulekeeper "github.com/sunriselayer/sunrise-app/x/blob/keeper"
grantmodulekeeper "github.com/sunriselayer/sunrise-app/x/blobgrant/keeper"
streammodulekeeper "github.com/sunriselayer/sunrise-app/x/blobstream/keeper"
liquiditypoolmodulekeeper "github.com/sunriselayer/sunrise-app/x/liquiditypool/keeper"
blobmodulekeeper "github.com/sunriselayer/sunrise/x/blob/keeper"
grantmodulekeeper "github.com/sunriselayer/sunrise/x/blobgrant/keeper"
streammodulekeeper "github.com/sunriselayer/sunrise/x/blobstream/keeper"
liquiditypoolmodulekeeper "github.com/sunriselayer/sunrise/x/liquiditypool/keeper"

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

"github.com/sunriselayer/sunrise-app/docs"
"github.com/sunriselayer/sunrise/docs"
)

const (
Expand Down
24 changes: 12 additions & 12 deletions app/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,18 @@ import (
ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported"
"google.golang.org/protobuf/types/known/durationpb"

blobmodulev1 "github.com/sunriselayer/sunrise-app/api/sunrise/blob/v1/module"
grantmodulev1 "github.com/sunriselayer/sunrise-app/api/sunrise/blobgrant/v1/module"
streammodulev1 "github.com/sunriselayer/sunrise-app/api/sunrise/blobstream/v1/module"
liquiditypoolmodulev1 "github.com/sunriselayer/sunrise-app/api/sunrise/liquiditypool/v1/module"
_ "github.com/sunriselayer/sunrise-app/x/blob/module" // import for side-effects
blobmoduletypes "github.com/sunriselayer/sunrise-app/x/blob/types"
_ "github.com/sunriselayer/sunrise-app/x/blobgrant/module" // import for side-effects
grantmoduletypes "github.com/sunriselayer/sunrise-app/x/blobgrant/types"
_ "github.com/sunriselayer/sunrise-app/x/blobstream/module" // import for side-effects
streammoduletypes "github.com/sunriselayer/sunrise-app/x/blobstream/types"
_ "github.com/sunriselayer/sunrise-app/x/liquiditypool/module" // import for side-effects
liquiditypoolmoduletypes "github.com/sunriselayer/sunrise-app/x/liquiditypool/types"
blobmodulev1 "github.com/sunriselayer/sunrise/api/sunrise/blob/v1/module"
grantmodulev1 "github.com/sunriselayer/sunrise/api/sunrise/blobgrant/v1/module"
streammodulev1 "github.com/sunriselayer/sunrise/api/sunrise/blobstream/v1/module"
liquiditypoolmodulev1 "github.com/sunriselayer/sunrise/api/sunrise/liquiditypool/v1/module"
_ "github.com/sunriselayer/sunrise/x/blob/module" // import for side-effects
blobmoduletypes "github.com/sunriselayer/sunrise/x/blob/types"
_ "github.com/sunriselayer/sunrise/x/blobgrant/module" // import for side-effects
grantmoduletypes "github.com/sunriselayer/sunrise/x/blobgrant/types"
_ "github.com/sunriselayer/sunrise/x/blobstream/module" // import for side-effects
streammoduletypes "github.com/sunriselayer/sunrise/x/blobstream/types"
_ "github.com/sunriselayer/sunrise/x/liquiditypool/module" // import for side-effects
liquiditypoolmoduletypes "github.com/sunriselayer/sunrise/x/liquiditypool/types"
// this line is used by starport scaffolding # stargate/app/moduleImport
)

Expand Down
8 changes: 4 additions & 4 deletions app/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
sdkmodule "github.com/cosmos/cosmos-sdk/types/module"

"github.com/sunriselayer/sunrise-app/app/encoding"
"github.com/sunriselayer/sunrise-app/pkg/appconsts"
blobmodule "github.com/sunriselayer/sunrise-app/x/blob/module"
bsmodule "github.com/sunriselayer/sunrise-app/x/blobstream/module"
"github.com/sunriselayer/sunrise/app/encoding"
"github.com/sunriselayer/sunrise/pkg/appconsts"
blobmodule "github.com/sunriselayer/sunrise/x/blob/module"
bsmodule "github.com/sunriselayer/sunrise/x/blobstream/module"

// "cosmossdk.io/depinject"
"cosmossdk.io/x/evidence"
Expand Down
8 changes: 4 additions & 4 deletions app/das_extend_block.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package app

import (
"github.com/sunriselayer/sunrise-app/pkg/appconsts"
"github.com/sunriselayer/sunrise-app/pkg/da"
"github.com/sunriselayer/sunrise-app/pkg/shares"
"github.com/sunriselayer/sunrise-app/pkg/square"
"github.com/sunriselayer/sunrise/pkg/appconsts"
"github.com/sunriselayer/sunrise/pkg/da"
"github.com/sunriselayer/sunrise/pkg/shares"
"github.com/sunriselayer/sunrise/pkg/square"

"github.com/celestiaorg/rsmt2d"
coretypes "github.com/cometbft/cometbft/types"
Expand Down
2 changes: 1 addition & 1 deletion app/das_square_size.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package app

import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/sunriselayer/sunrise-app/pkg/appconsts"
"github.com/sunriselayer/sunrise/pkg/appconsts"
)

// GovSquareSizeUpperBound returns the maximum square size that can be used for a block
Expand Down
2 changes: 1 addition & 1 deletion app/das_validate_txs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/telemetry"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/sunriselayer/sunrise-app/pkg/blob"
"github.com/sunriselayer/sunrise/pkg/blob"
)

// separateTxs decodes raw tendermint txs into normal and blob txs.
Expand Down
2 changes: 1 addition & 1 deletion app/default_overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
"github.com/cosmos/cosmos-sdk/x/staking"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/sunriselayer/sunrise-app/pkg/appconsts"
"github.com/sunriselayer/sunrise/pkg/appconsts"
)

// bankModule defines a custom wrapper around the x/bank module's AppModuleBasic
Expand Down
2 changes: 1 addition & 1 deletion app/default_overrides_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
sdkmath "cosmossdk.io/math"
distributiontypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
"github.com/stretchr/testify/assert"
"github.com/sunriselayer/sunrise-app/app/encoding"
"github.com/sunriselayer/sunrise/app/encoding"
)

// TestDefaultGenesis verifies that the distribution module's genesis state has
Expand Down
18 changes: 9 additions & 9 deletions app/errors/insufficient_gas_price_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
"github.com/stretchr/testify/require"
"github.com/sunriselayer/sunrise-app/app"
"github.com/sunriselayer/sunrise-app/app/encoding"
apperr "github.com/sunriselayer/sunrise-app/app/errors"
"github.com/sunriselayer/sunrise-app/pkg/appconsts"
apprand "github.com/sunriselayer/sunrise-app/pkg/random"
"github.com/sunriselayer/sunrise-app/pkg/user"
testutil "github.com/sunriselayer/sunrise-app/test/util"
"github.com/sunriselayer/sunrise-app/test/util/testfactory"
blob "github.com/sunriselayer/sunrise-app/x/blob/types"
"github.com/sunriselayer/sunrise/app"
"github.com/sunriselayer/sunrise/app/encoding"
apperr "github.com/sunriselayer/sunrise/app/errors"
"github.com/sunriselayer/sunrise/pkg/appconsts"
apprand "github.com/sunriselayer/sunrise/pkg/random"
"github.com/sunriselayer/sunrise/pkg/user"
testutil "github.com/sunriselayer/sunrise/test/util"
"github.com/sunriselayer/sunrise/test/util/testfactory"
blob "github.com/sunriselayer/sunrise/x/blob/types"
)

// This will detect any changes to the DeductFeeDecorator which may cause a
Expand Down
18 changes: 9 additions & 9 deletions app/errors/nonce_mismatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/ante"
"github.com/stretchr/testify/require"
"github.com/sunriselayer/sunrise-app/app"
"github.com/sunriselayer/sunrise-app/app/encoding"
apperr "github.com/sunriselayer/sunrise-app/app/errors"
"github.com/sunriselayer/sunrise-app/pkg/appconsts"
apprand "github.com/sunriselayer/sunrise-app/pkg/random"
"github.com/sunriselayer/sunrise-app/pkg/user"
testutil "github.com/sunriselayer/sunrise-app/test/util"
"github.com/sunriselayer/sunrise-app/test/util/testfactory"
blob "github.com/sunriselayer/sunrise-app/x/blob/types"
"github.com/sunriselayer/sunrise/app"
"github.com/sunriselayer/sunrise/app/encoding"
apperr "github.com/sunriselayer/sunrise/app/errors"
"github.com/sunriselayer/sunrise/pkg/appconsts"
apprand "github.com/sunriselayer/sunrise/pkg/random"
"github.com/sunriselayer/sunrise/pkg/user"
testutil "github.com/sunriselayer/sunrise/test/util"
"github.com/sunriselayer/sunrise/test/util/testfactory"
blob "github.com/sunriselayer/sunrise/x/blob/types"
)

// This will detect any changes to the DeductFeeDecorator which may cause a
Expand Down
2 changes: 1 addition & 1 deletion app/sim_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
simcli "github.com/cosmos/cosmos-sdk/x/simulation/client/cli"
"github.com/stretchr/testify/require"

"github.com/sunriselayer/sunrise-app/app"
"github.com/sunriselayer/sunrise/app"
)

// Profile with:
Expand Down
2 changes: 1 addition & 1 deletion app/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
"github.com/spf13/viper"
"github.com/stretchr/testify/require"

"github.com/sunriselayer/sunrise-app/app"
"github.com/sunriselayer/sunrise/app"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/sunrised/cmd/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/sunriselayer/sunrise-app/app"
"github.com/sunriselayer/sunrise/app"
)

func initRootCmd(
Expand Down
2 changes: 1 addition & 1 deletion cmd/sunrised/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/sunriselayer/sunrise-app/app"
"github.com/sunriselayer/sunrise/app"
)

func initSDKConfig() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/sunrised/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/spf13/cobra"
"github.com/spf13/pflag"

"github.com/sunriselayer/sunrise-app/app"
"github.com/sunriselayer/sunrise/app"
)

// NewRootCmd creates a new root command for sunrised. It is called once in the main function.
Expand Down
2 changes: 1 addition & 1 deletion cmd/sunrised/cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
snapshottypes "cosmossdk.io/store/snapshots/types"
storetypes "cosmossdk.io/store/types"
dbm "github.com/cosmos/cosmos-db"
"github.com/sunriselayer/sunrise-app/app"
"github.com/sunriselayer/sunrise/app"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client/flags"
Expand Down
Loading
Loading