Skip to content

Commit

Permalink
chore(repo): pkg name change. (berachain#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Bear authored Mar 6, 2023
1 parent 23bb3ae commit f1773a6
Show file tree
Hide file tree
Showing 224 changed files with 1,726 additions and 1,704 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs/** linguist-vendored
42 changes: 42 additions & 0 deletions .github/workflows/pr-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# SPDX-License-Identifier: BUSL-1.1
#
# Copyright (C) 2023, Berachain Foundation. All rights reserved.
# Use of this software is govered by the Business Source License included
# in the LICENSE file of this repository and at www.mariadb.com/bsl11.
#
# ANY USE OF THE LICENSED WORK IN VIOLATION OF THIS LICENSE WILL AUTOMATICALLY
# TERMINATE YOUR RIGHTS UNDER THIS LICENSE FOR THE CURRENT AND ALL OTHER
# VERSIONS OF THE LICENSED WORK.
#
# THIS LICENSE DOES NOT GRANT YOU ANY RIGHT IN ANY TRADEMARK OR LOGO OF
# LICENSOR OR ITS AFFILIATES (PROVIDED THAT YOU MAY USE A TRADEMARK OR LOGO OF
# LICENSOR AS EXPRESSLY REQUIRED BY THIS LICENSE).
#
# TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
# AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
# EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
# TITLE.

name: "lint pull request"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
contents: read

jobs:
main:
permissions:
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 0 additions & 5 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
[submodule "precompile/contracts/lib/forge-std"]
path = precompile/contracts/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "lib/forge-std"]
branch = v1.5.0
[submodule "precompile/contracts/solidity/lib/forge-std"]
path = precompile/contracts/solidity/lib/forge-std
url = https://github.com/foundry-rs/forge-std
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<a href="https://codecov.io/gh/berachain/stargazer" >
<img src="https://codecov.io/gh/berachain/stargazer/branch/main/graph/badge.svg?token=0DYQAKBGVW"/>
</a>
<a href="https://pkg.go.dev/pkg.berachain.dev/stargazer">
<img src="https://pkg.go.dev/badge/pkg.berachain.dev/stargazer.svg" alt="Go Reference">
<a href="https://pkg.go.dev/pkg.berachain.dev/polaris">
<img src="https://pkg.go.dev/badge/pkg.berachain.dev/polaris.svg" alt="Go Reference">
</a>
<a href="https://magefile.org">
<img alt="Built with Mage" src="https://magefile.org/badge.svg" />
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

4 changes: 1 addition & 3 deletions build/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
# TITLE.



# This code is licensed under the terms of the MIT license.

## Golden config for golangci-lint v1.50.1
Expand Down Expand Up @@ -105,7 +103,7 @@ linters-settings:
- Prefix(github.com/cosmos/cosmos-sdk
- Prefix(github.com/ethereum/go-ethereum
- Prefix(pkg.berachain.dev
- Prefix(pkg.berachain.dev/stargazer
- Prefix(pkg.berachain.dev/polaris
- blank
- dot
skip-generated: true
Expand Down
2 changes: 1 addition & 1 deletion build/mage/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/magefile/mage/sh"
"github.com/magefile/mage/target"

mi "pkg.berachain.dev/stargazer/build/mage/internal"
mi "pkg.berachain.dev/polaris/build/mage/internal"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion build/mage/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

package mage

import mi "pkg.berachain.dev/stargazer/build/mage/internal"
import mi "pkg.berachain.dev/polaris/build/mage/internal"

var (
// Commands.
Expand Down
2 changes: 1 addition & 1 deletion build/mage/forge.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"fmt"
"os"

mi "pkg.berachain.dev/stargazer/build/mage/internal"
mi "pkg.berachain.dev/polaris/build/mage/internal"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion build/mage/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"fmt"
"os"

mi "pkg.berachain.dev/stargazer/build/mage/internal"
mi "pkg.berachain.dev/polaris/build/mage/internal"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion build/mage/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package mage
import (
"github.com/magefile/mage/sh"

mi "pkg.berachain.dev/stargazer/build/mage/internal"
mi "pkg.berachain.dev/polaris/build/mage/internal"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion build/scripts/proto/proto_generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ for dir in $proto_dirs; do
done

# move proto files to the right places
cp -r pkg.berachain.dev/stargazer/* ../
cp -r pkg.berachain.dev/polaris/* ../
rm -rf pkg.berachain.dev

cd ../
Expand Down
2 changes: 1 addition & 1 deletion crypto/codec/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"

"pkg.berachain.dev/stargazer/crypto/keys/ethsecp256k1"
"pkg.berachain.dev/polaris/crypto/keys/ethsecp256k1"
)

// `RegisterInterfaces` registers the ethsecp256k1 key types.
Expand Down
4 changes: 2 additions & 2 deletions crypto/hd/algo.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"github.com/cosmos/cosmos-sdk/crypto/keyring"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"

"pkg.berachain.dev/stargazer/crypto/keys/ethsecp256k1"
"pkg.berachain.dev/stargazer/eth/crypto"
"pkg.berachain.dev/polaris/crypto/keys/ethsecp256k1"
"pkg.berachain.dev/polaris/eth/crypto"
)

const (
Expand Down
10 changes: 5 additions & 5 deletions crypto/hd/algo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import (

"github.com/cosmos/cosmos-sdk/crypto/keyring"

ethsecp256k1 "pkg.berachain.dev/stargazer/crypto/keys/ethsecp256k1"
"pkg.berachain.dev/stargazer/eth/accounts"
"pkg.berachain.dev/stargazer/eth/common"
crypto "pkg.berachain.dev/stargazer/eth/crypto"
"pkg.berachain.dev/stargazer/lib/utils"
ethsecp256k1 "pkg.berachain.dev/polaris/crypto/keys/ethsecp256k1"
"pkg.berachain.dev/polaris/eth/accounts"
"pkg.berachain.dev/polaris/eth/common"
crypto "pkg.berachain.dev/polaris/eth/crypto"
"pkg.berachain.dev/polaris/lib/utils"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion crypto/keyring/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
sdkhd "github.com/cosmos/cosmos-sdk/crypto/hd"
"github.com/cosmos/cosmos-sdk/crypto/keyring"

"pkg.berachain.dev/stargazer/crypto/hd"
"pkg.berachain.dev/polaris/crypto/hd"
)

// `EthSecp256k1Option` defines a function keys options for the ethereum Secp256k1 curve.
Expand Down
8 changes: 4 additions & 4 deletions crypto/keyring/option_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import (
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/cosmos/cosmos-sdk/std"

cryptocodec "pkg.berachain.dev/stargazer/crypto/codec"
"pkg.berachain.dev/stargazer/crypto/hd"
accounts "pkg.berachain.dev/stargazer/eth/accounts"
"pkg.berachain.dev/stargazer/eth/common"
cryptocodec "pkg.berachain.dev/polaris/crypto/codec"
"pkg.berachain.dev/polaris/crypto/hd"
accounts "pkg.berachain.dev/polaris/eth/accounts"
"pkg.berachain.dev/polaris/eth/common"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion crypto/keys/ethsecp256k1/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (

cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"

"pkg.berachain.dev/stargazer/eth/crypto"
"pkg.berachain.dev/polaris/eth/crypto"
)

const (
Expand Down
39 changes: 19 additions & 20 deletions crypto/keys/ethsecp256k1/keys.pb.go

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

2 changes: 1 addition & 1 deletion crypto/keys/ethsecp256k1/keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (

cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"

"pkg.berachain.dev/stargazer/eth/crypto"
"pkg.berachain.dev/polaris/eth/crypto"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion crypto/keys/ethsecp256k1/signature_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package ethsecp256k1

import (
"pkg.berachain.dev/stargazer/eth/crypto"
"pkg.berachain.dev/polaris/eth/crypto"
)

// `Sign` signs the provided message using the ECDSA private key. It returns an error if the
Expand Down
2 changes: 1 addition & 1 deletion crypto/keys/ethsecp256k1/signature_cgo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package ethsecp256k1
import (
"crypto/ecdsa"

"pkg.berachain.dev/stargazer/eth/crypto"
"pkg.berachain.dev/polaris/eth/crypto"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion eth/accounts/abi/abi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package abi_test
import (
"testing"

"pkg.berachain.dev/stargazer/eth/accounts/abi"
"pkg.berachain.dev/polaris/eth/accounts/abi"

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion eth/api/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package api

import (
"pkg.berachain.dev/stargazer/eth/core"
"pkg.berachain.dev/polaris/eth/core"
)

// `Chain` defines the methods that the Polaris Ethereum API exposes. This is the only interface
Expand Down
Loading

0 comments on commit f1773a6

Please sign in to comment.