Skip to content

Commit

Permalink
furya
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian committed Feb 20, 2024
1 parent 28a1cd4 commit 4661390
Show file tree
Hide file tree
Showing 376 changed files with 1,264 additions and 1,264 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
# most precedence.

# People who get pinged on every PR, request if you'd like to be added
@sge-network/chain-core-reviewer
@furya-network/chain-core-reviewer
54 changes: 27 additions & 27 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,51 +19,51 @@ jobs:
uses: actions/checkout@v3.0.0
with:
ref: master
repository: sge-network/sge
path: sge
repository: furya-network/furya
path: furya

- name: Checkout destination repository
uses: actions/checkout@v3.0.0
with:
ref: master
repository: ${{ secrets.ST_REPO }}/sgejs
path: sgejs
repository: ${{ secrets.ST_REPO }}/furyajs
path: furyajs
token: ${{ secrets.ST_TOKEN }}

- name: Copy Proto Files
run: |
cp -r sge/proto/sge sgejs/proto
git -C sgejs add .
git -C sgejs status
git -C sgejs config user.email "action@github.com"
git -C sgejs config user.name "GitHub Action"
git -C sgejs commit --allow-empty -am "Proto Deployment [skip ci]"
cp -r furya/proto/furya furyajs/proto
git -C furyajs add .
git -C furyajs status
git -C furyajs config user.email "action@github.com"
git -C furyajs config user.name "GitHub Action"
git -C furyajs commit --allow-empty -am "Proto Deployment [skip ci]"
- name: Npm Install
run: |
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > sgejs/.npmrc
npm install --prefix sgejs
git -C sgejs checkout .
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > furyajs/.npmrc
npm install --prefix furyajs
git -C furyajs checkout .
- name: Delete src/codegen and types
run: |
rm -rf sgejs/src/codegen
rm -rf sgejs/types
rm -rf furyajs/src/codegen
rm -rf furyajs/types
- name: Npm Run Codegen
run: |
npm run codegen --prefix sgejs
npm run codegen --prefix furyajs
- name: Commit changes
run: |
git -C sgejs add .
git -C sgejs config user.email "action@github.com"
git -C sgejs config user.name "GitHub Action"
git -C sgejs commit --allow-empty -am "Codegen Deployment [skip ci]"
git -C furyajs add .
git -C furyajs config user.email "action@github.com"
git -C furyajs config user.name "GitHub Action"
git -C furyajs commit --allow-empty -am "Codegen Deployment [skip ci]"
- name: Determine NPM version
run: |
cd sgejs
cd furyajs
if [[ "${{ github.event.pull_request.title }}" == *"major"* ]]; then
echo "NPM_VERSION=major" >> $GITHUB_ENV
elif [[ "${{ github.event.pull_request.title }}" == *"minor"* ]]; then
Expand All @@ -74,7 +74,7 @@ jobs:
- name: Bump NPM version
run: |
cd sgejs
cd furyajs
git status
if [ "${{ env.NPM_VERSION }}" == "major" ]; then
npm version major
Expand All @@ -85,13 +85,13 @@ jobs:
fi
git status
- name: Push sgejs
run: git -C sgejs push
- name: Push furyajs
run: git -C furyajs push

- name: Publish NPM Package
run: |
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > sgejs/.npmrc
cat sgejs/.npmrc
cd sgejs
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > furyajs/.npmrc
cat furyajs/.npmrc
cd furyajs
ls -la
npm publish --access=restricted --force
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

***Changes***

- [\#39](https://github.com/sge-network/sge/issues/39) Adding `CHANGELOG.md` to track all development updates
- [\#41](https://github.com/sge-network/sge/issues/41) Adding release scripts
- [\#39](https://github.com/furya-network/furya/issues/39) Adding `CHANGELOG.md` to track all development updates
- [\#41](https://github.com/furya-network/furya/issues/41) Adding release scripts

## v0.0.3

Expand Down
30 changes: 15 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation')
LEDGER_ENABLED ?= true
SDK_PACK := $(shell go list -m github.com/cosmos/cosmos-sdk | sed 's/ /\@/g')
TM_VERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::') # grab everything after the space in "github.com/tendermint/tendermint v0.34.7"
HTTPS_GIT := https://github.com/sge-network/sge.git
HTTPS_GIT := https://github.com/furya-network/furya.git
DOCKER := $(shell which docker)
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR)/proto:/workspace --workdir /workspace bufbuild/buf
BUILDDIR ?= $(CURDIR)/build
Expand Down Expand Up @@ -52,11 +52,11 @@ ifeq ($(LEDGER_ENABLED),true)
endif
endif

ifeq (cleveldb,$(findstring cleveldb,$(SGE_BUILD_OPTIONS)))
ifeq (cleveldb,$(findstring cleveldb,$(FURYA_BUILD_OPTIONS)))
build_tags += gcc
endif

ifeq (secp,$(findstring secp,$(SGE_BUILD_OPTIONS)))
ifeq (secp,$(findstring secp,$(FURYA_BUILD_OPTIONS)))
build_tags += libsecp256k1_sdk
endif

Expand All @@ -67,34 +67,34 @@ build_tags_comma_sep := $(subst $(whitespace),$(comma),$(build_tags))

# process linker flags

ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=sge \
-X github.com/cosmos/cosmos-sdk/version.AppName=sged \
ldflags = -X github.com/cosmos/cosmos-sdk/version.Name=furya \
-X github.com/cosmos/cosmos-sdk/version.AppName=furyad \
-X github.com/cosmos/cosmos-sdk/version.Version=$(VERSION) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags_comma_sep)" \
-X github.com/tendermint/tendermint/version.TMCoreSemVer=$(TM_VERSION)

# DB backend selection
ifeq (cleveldb,$(findstring cleveldb,$(SGE_BUILD_OPTIONS)))
ifeq (cleveldb,$(findstring cleveldb,$(FURYA_BUILD_OPTIONS)))
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=cleveldb
endif
ifeq (badgerdb,$(findstring badgerdb,$(SGE_BUILD_OPTIONS)))
ifeq (badgerdb,$(findstring badgerdb,$(FURYA_BUILD_OPTIONS)))
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=badgerdb
BUILD_TAGS += badgerdb
endif
# handle rocksdb
ifeq (rocksdb,$(findstring rocksdb,$(SGE_BUILD_OPTIONS)))
ifeq (rocksdb,$(findstring rocksdb,$(FURYA_BUILD_OPTIONS)))
CGO_ENABLED=1
BUILD_TAGS += rocksdb
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=rocksdb
endif
# handle boltdb
ifeq (boltdb,$(findstring boltdb,$(SGE_BUILD_OPTIONS)))
ifeq (boltdb,$(findstring boltdb,$(FURYA_BUILD_OPTIONS)))
BUILD_TAGS += boltdb
ldflags += -X github.com/cosmos/cosmos-sdk/types.DBBackend=boltdb
endif

ifeq (,$(findstring nostrip,$(SGE_BUILD_OPTIONS)))
ifeq (,$(findstring nostrip,$(FURYA_BUILD_OPTIONS)))
ldflags += -w -s
endif
ldflags += $(LDFLAGS)
Expand All @@ -105,7 +105,7 @@ build_tags := $(strip $(build_tags))

BUILD_FLAGS := -tags "$(build_tags)" -ldflags '$(ldflags)'
# check for nostrip option
ifeq (,$(findstring nostrip,$(SGE_BUILD_OPTIONS)))
ifeq (,$(findstring nostrip,$(FURYA_BUILD_OPTIONS)))
BUILD_FLAGS += -trimpath
endif

Expand All @@ -115,7 +115,7 @@ endif

check_version:
ifneq ($(GO_MINOR_VERSION),18)
@echo "ERROR: Go version 1.18 is required for this version of SGE. Go 1.19 has changes that are believed to break consensus."
@echo "ERROR: Go version 1.18 is required for this version of FURYA. Go 1.19 has changes that are believed to break consensus."
exit 1
endif

Expand Down Expand Up @@ -145,7 +145,7 @@ go.sum: go.mod
draw-deps:
@# requires brew install graphviz or apt-get install graphviz
go get github.com/RobotsAndPencils/goviz
@goviz -i ./cmd/sged -d 2 | dot -Tpng -o dependency-graph.png
@goviz -i ./cmd/furyad -d 2 | dot -Tpng -o dependency-graph.png

clean:
rm -rf $(CURDIR)/artifacts/
Expand Down Expand Up @@ -187,7 +187,7 @@ docs:
.PHONY: docs

protoVer=v0.8
protoImageName=sgenetwork/sge-proto-gen:$(protoVer)
protoImageName=furyanetwork/furya-proto-gen:$(protoVer)
containerProtoGen=cosmos-sdk-proto-gen-$(protoVer)
containerProtoFmt=cosmos-sdk-proto-fmt-$(protoVer)

Expand Down Expand Up @@ -275,7 +275,7 @@ update-swagger-docs: statik
.PHONY: update-swagger-docs

godocs:
@echo "--> Wait a few seconds and visit http://localhost:6060/pkg/github.com/SGE-Network/SGE/types"
@echo "--> Wait a few seconds and visit http://localhost:6060/pkg/github.com/FURYA-Network/FURYA/types"
godoc -http=:6060

# This builds a docs site for each branch/tag in `./docs/versions`
Expand Down
Loading

0 comments on commit 4661390

Please sign in to comment.