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

chore(BUX-586): renames bux-server to spv-wallet #465

Merged
merged 54 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
9791c9c
chore(BUX-586): renames bux-server to spv-wallet
jakubmkowalski Feb 13, 2024
3a027d3
chore(BUX-586): removes unnecessary files
jakubmkowalski Feb 13, 2024
7902a08
chore(BUX-586): renames bux-server to spv-wallet in README
jakubmkowalski Feb 13, 2024
a12b2cd
chore(BUX-586): fixes package comment
jakubmkowalski Feb 13, 2024
6b9165c
deps(BUX-417): update bux; get rid of centrifuge dependency; upgrade …
dorzepowski Feb 14, 2024
008612f
Merge pull request #466 from BuxOrg/deps/update-bux-and-other-depende…
dorzepowski Feb 14, 2024
3653aa4
chore(BUX-586): renames bux-server to spv-wallet
jakubmkowalski Feb 13, 2024
91cd6cb
chore(BUX-586): removes unnecessary files
jakubmkowalski Feb 13, 2024
98d7e66
chore(BUX-586): renames bux-server to spv-wallet in README
jakubmkowalski Feb 13, 2024
a2e832b
chore(BUX-586): fixes package comment
jakubmkowalski Feb 13, 2024
714213e
feat(BUX-603): adds models
jakubmkowalski Feb 16, 2024
ca323cf
feat(BUX-602): adds engine
jakubmkowalski Feb 16, 2024
eff55f5
chore(BUX-586): fixes licences
jakubmkowalski Feb 16, 2024
c87d05d
chore(BUX-586): migrates from BuxOrg to bitcoin-sv
jakubmkowalski Feb 16, 2024
fdae78e
chore(BUX-586): renames leftovers after migration, fixes imports
jakubmkowalski Feb 16, 2024
606257d
chore(BUX-586): README and CODEOWNERS leftovers rename
jakubmkowalski Feb 16, 2024
6b2dee1
chore(BUX-586): removes unnecessary files after migration
jakubmkowalski Feb 16, 2024
cd2146c
Merge branch 'chore/586-rename' of github.com:BuxOrg/bux-server into …
jakubmkowalski Feb 16, 2024
fa9da98
chore(BUX-586): fixes readme
jakubmkowalski Feb 16, 2024
dfdcd84
chore(BUX-586): fixes p_r_template
jakubmkowalski Feb 16, 2024
beff593
chore(BUX-586): minor rename fixes
jakubmkowalski Feb 16, 2024
b31ad16
chore(BUX-586): renames pulse
jakubmkowalski Feb 16, 2024
96b4aac
chore(BUX-586): renames spvwalletmodels to models, renames SPV to Spv…
jakubmkowalski Feb 19, 2024
ea5ea86
chore(BUX-586): reverts changes in CODEOWNERS
jakubmkowalski Feb 19, 2024
bdc5cee
chore(BUX-586): renames SPV in functions
jakubmkowalski Feb 20, 2024
bd0696a
chore(BUX-586): removes bash in CODE_STANDARDS
jakubmkowalski Feb 20, 2024
8ab1b83
chore(BUX-586): renames spvwalletmetrics to enginemetrics
jakubmkowalski Feb 20, 2024
e38c145
chore(BUX-586): moves environment variable prefix to const string
jakubmkowalski Feb 20, 2024
32b48ac
chore(BUX-586): changes letters to uppercase in occurrences of SPV Wa…
jakubmkowalski Feb 20, 2024
8674581
chore(BUX-586): moves main.go from cmd/server to /cmd
jakubmkowalski Feb 20, 2024
8334ff1
chore(BUX-586): fixing examples after moving main.go
jakubmkowalski Feb 20, 2024
12ac1a8
chore: moves to single file
jakubmkowalski Feb 20, 2024
e0a94da
chore: changes about in readme
jakubmkowalski Feb 20, 2024
6a4da55
chore: changes package description
jakubmkowalski Feb 20, 2024
938e882
chore: changes naming convention in package module names
jakubmkowalski Feb 20, 2024
7020a6b
chore: changes spvwalleterrors to apierrors
jakubmkowalski Feb 20, 2024
1151b64
chore: changes names in Dockerfile
jakubmkowalski Feb 20, 2024
6372cc9
chore: changes name check_pulse -> check_block_header_service
jakubmkowalski Feb 20, 2024
df8e28c
fix: code review changes/fixes (#471)
wregulski Feb 21, 2024
2908a15
chore: fixes after CR
jakubmkowalski Feb 21, 2024
c765e97
chore: renames in docker-compose
jakubmkowalski Feb 21, 2024
1d42fde
chore: regenerates swagger docs
jakubmkowalski Feb 21, 2024
6db097f
chore: code review changes, fixes after introducing EnvPrefix
jakubmkowalski Feb 21, 2024
3f313f0
chore(BUX-586): fix linter errors
Feb 21, 2024
bc6ec92
ci(BUX-586): merge makefiles from bux and bux-server; adjust run-test…
Feb 21, 2024
47637df
chore: renames bux_... files, capital W i Wallet
jakubmkowalski Feb 21, 2024
2cc42d5
Merge branch 'chore/586-rename' of github.com:BuxOrg/bux-server into …
jakubmkowalski Feb 21, 2024
10dcc85
ci(BUX-586): try to make tests output prettier
Feb 21, 2024
a67885b
fix(BUX-586): fix loading configuration from env
Feb 21, 2024
c0a8ad9
ci(BUX-586): revert showing tests prettier because of error
Feb 21, 2024
74c46ec
chore: fixes GetUserAgent test
jakubmkowalski Feb 21, 2024
2d9a7df
Merge branch 'chore/586-rename' of github.com:BuxOrg/bux-server into …
jakubmkowalski Feb 21, 2024
7607cfb
ci(BUX-586): run all tests from server, engine and models with make
Feb 21, 2024
f06685a
test(BUX-586): fix test for merkle root
Feb 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
49 changes: 0 additions & 49 deletions .all-contributorsrc

This file was deleted.

6 changes: 3 additions & 3 deletions .github/CODE_STANDARDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ Additional information and guidelines on Conventional Commits can be found [here

Good example:

```bash
feat: add possibility to create a new user by admin (#BUX-123)
```
feat(#123): add possibility to create a new user by admin
chris-4chain marked this conversation as resolved.
Show resolved Hide resolved
```

Bad example:

```bash
```
debugo feature - checkpoint full work
```

Expand Down
4 changes: 0 additions & 4 deletions .github/FUNDING.yml

This file was deleted.

Binary file removed .github/IMAGES/go-share-image.png
Binary file not shown.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

# Pull Request Checklist

- [ ] πŸ“– I created my PR using provided : [CODE_STANDARDS](https://github.com/BuxOrg/bux-server/blob/main/.github/CODE_STANDARDS.md)
- [ ] πŸ“– I have read the short Code of Conduct: [CODE_OF_CONDUCT](https://github.com/BuxOrg/bux-server/blob/main/.github/CODE_OF_CONDUCT.md)
- [ ] πŸ“– I created my PR using provided : [CODE_STANDARDS](https://github.com/bitcoin-sv/spv-wallet/blob/main/.github/CODE_STANDARDS.md)
- [ ] πŸ“– I have read the short Code of Conduct: [CODE_OF_CONDUCT](https://github.com/bitcoin-sv/spv-wallet/blob/main/.github/CODE_OF_CONDUCT.md)
- [ ] 🏠 I tested my changes locally.
- [ ] βœ… I have provided tests for my changes.
- [ ] πŸ“ I have used conventional commits.
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
with:
version: ${{ github.ref_name }}
os: linux
go_main_file: cmd/server/main.go
cgo_enabled: true
release_binaries: false
secrets:
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Start Redis
uses: supercharge/redis-github-action@1.8.0
with:
redis-version: 6
- name: Cache code
uses: actions/cache@v4
with:
Expand All @@ -64,8 +68,13 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run linter and tests
run: make test-ci-no-race
- name: Run linter
run: make lint
# Install gotestfmt on the VM running the action.
- name: Set up gotestfmt
uses: GoTestTools/gotestfmt-action@v2
- name: Run tests
run: make test-all-db-ci
- name: Update code coverage
uses: codecov/codecov-action@v4.0.1
with:
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
FROM golang:1.21.6 as builder

# Set the working directory
WORKDIR /go/src/github.com/BuxOrg/bux-server
WORKDIR /go/src/github.com/bitcoin-sv/spv-wallet

COPY . ./

# Build binary
RUN GOOS=linux go build -o bux cmd/server/main.go
RUN GOOS=linux go build -o spvwallet cmd/main.go

# Get runtime image
FROM registry.access.redhat.com/ubi9-minimal

# Version
LABEL version="1.0" name="Bux"
LABEL version="1.0" name="SPVWallet"

# Set working directory
WORKDIR /

# Copy binary to runner
COPY --from=builder /go/src/github.com/BuxOrg/bux-server/bux .
COPY --from=builder /go/src/github.com/bitcoin-sv/spv-wallet/engine .

# Set entrypoint
ENTRYPOINT ["/bux"]
ENTRYPOINT ["/spvwallet"]
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
MIT License

Copyright (c) 2023 BSV Blockchain Association ("BA")
dorzepowski marked this conversation as resolved.
Show resolved Hide resolved
Copyright (c) 2022 @BuxOrg

Permission is hereby granted, free of charge, to any person obtaining a copy
Expand Down
34 changes: 22 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Set the custom build tags
GO_BUILD_TAGS=json1

# Common makefile commands & variables between projects
include .make/common.mk

Expand All @@ -6,18 +9,19 @@ include .make/go.mk

## Not defined? Use default repo name which is the application
ifeq ($(REPO_NAME),)
REPO_NAME="bux-server"
REPO_NAME="spv-wallet"
endif

## Not defined? Use default repo owner
ifeq ($(REPO_OWNER),)
REPO_OWNER="BuxOrg"
REPO_OWNER="bitcoin-sv"
endif


.PHONY: all
all: ## Runs multiple commands
@$(MAKE) test
@$(MAKE) lint
@$(MAKE) test-all-db

.PHONY: clean
clean: ## Remove previous builds and any cached data
Expand All @@ -27,16 +31,22 @@ clean: ## Remove previous builds and any cached data
@test $(DISTRIBUTIONS_DIR)
@if [ -d $(DISTRIBUTIONS_DIR) ]; then rm -r $(DISTRIBUTIONS_DIR); fi

.PHONY: install-all-contributors
install-all-contributors: ## Installs all contributors locally
@echo "installing all-contributors cli tool..."
@yarn global add all-contributors-cli

.PHONY: release
release:: ## Runs common.release then runs godocs
@$(MAKE) godocs

.PHONY: update-contributors
update-contributors: ## Regenerates the contributors html/list
@echo "generating contributor html..."
@all-contributors generate
.PHONY: test-all-db
test-all-db: ## Runs all tests including embedded database tests
@echo "running all tests including embedded database tests..."
@go test ./... -v -tags="$(GO_BUILD_TAGS) database_tests"
cd engine/ && go test ./... -v -tags="$(GO_BUILD_TAGS) database_tests"
cd models/ && go test ./... -v -tags="$(GO_BUILD_TAGS) database_tests"

.PHONY: test-all-db-ci
test-all-db-ci: ## Runs all tests including embedded database tests (CI)
@echo "running all tests including embedded database tests..."
@go test ./... -coverprofile=coverage.txt -covermode=atomic -tags="$(GO_BUILD_TAGS) database_tests"
cd engine/ && go test ./... -coverprofile=coverage.txt -covermode=atomic -tags="$(GO_BUILD_TAGS) database_tests"
cd models/ && go test ./... -coverprofile=coverage.txt -covermode=atomic -tags="$(GO_BUILD_TAGS) database_tests"
tail -n +2 models/coverage.txt >> coverage.txt
tail -n +2 engine/coverage.txt >> coverage.txt
Loading
Loading