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

Refactor with common-sdk integration [Don't Merge] #21

Open
wants to merge 37 commits into
base: staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
fe75c8b
refactoring
smaulik13 Jan 8, 2025
dacfe33
refactoring 2
smaulik13 Jan 8, 2025
f7ec7e6
fix
smaulik13 Jan 8, 2025
295d20d
fix 2
smaulik13 Jan 8, 2025
e07625b
refactor
smaulik13 Jan 16, 2025
8102de5
refactor 2
smaulik13 Jan 16, 2025
d649bba
wasm refactor
smaulik13 Jan 16, 2025
b59dcf4
refactor 2
smaulik13 Jan 16, 2025
fcca97e
refactor 3
smaulik13 Jan 16, 2025
f01b993
fix
smaulik13 Jan 17, 2025
a0ce8cc
added version
smaulik13 Jan 17, 2025
cd7b1e1
wasm fix
smaulik13 Jan 17, 2025
bdbf983
revert some changes
smaulik13 Jan 17, 2025
3fb79d2
revert changes
smaulik13 Jan 17, 2025
2ee8e28
fix
smaulik13 Jan 17, 2025
bae7a6e
revert
smaulik13 Jan 17, 2025
0f7477d
lint fix
smaulik13 Jan 17, 2025
e49091c
version update
smaulik13 Jan 17, 2025
59f3dd8
gosdk to common
smaulik13 Jan 17, 2025
eb3184b
common update
smaulik13 Jan 17, 2025
088847b
dumy
smaulik13 Jan 17, 2025
f2d815f
dummy
smaulik13 Jan 17, 2025
9b4ae2c
core changes
smaulik13 Jan 21, 2025
7775b2f
updated changes
smaulik13 Jan 21, 2025
acb0596
windows build fix
smaulik13 Jan 22, 2025
8bd0f07
revert changes
smaulik13 Jan 22, 2025
92fabe3
common sdk update version
smaulik13 Jan 22, 2025
f83199a
refactor
smaulik13 Jan 23, 2025
f467a95
added v2 enpoint
smaulik13 Jan 23, 2025
816f388
delete file
smaulik13 Jan 23, 2025
6545972
updates
smaulik13 Jan 24, 2025
29a8e71
updates
smaulik13 Jan 24, 2025
9445d47
fixes
smaulik13 Feb 1, 2025
de1ffc8
fixes
smaulik13 Feb 1, 2025
5d8f32c
some refactor
smaulik13 Feb 3, 2025
dcf5a69
refactor
smaulik13 Feb 3, 2025
93191f4
refactor
smaulik13 Feb 4, 2025
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
  •  
  •  
  •  
24 changes: 12 additions & 12 deletions .github/workflows/build-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go 1.22
- name: Set up Go 1.23
uses: actions/setup-go@v3
with:
go-version: 1.22.5
go-version: 1.23

- name: Clean build
run: make clean-mobilesdk
Expand Down Expand Up @@ -96,10 +96,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go 1.22
- name: Set up Go 1.23
uses: actions/setup-go@v3
with:
go-version: 1.22.5
go-version: 1.23

- name: Install deps
run: |
Expand Down Expand Up @@ -199,10 +199,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go 1.22
- name: Set up Go 1.23
uses: actions/setup-go@v3
with:
go-version: 1.22.5
go-version: 1.23

- name: Clean build
run: make clean-mobilesdk
Expand Down Expand Up @@ -271,10 +271,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go 1.22
- name: Set up Go 1.23
uses: actions/setup-go@v3
with:
go-version: 1.22.5
go-version: 1.23

- name: Install deps
run: |
Expand Down Expand Up @@ -335,21 +335,21 @@ jobs:
name: Build-wasm
runs-on: [self-hosted, arc-runner]
steps:
- name: Set up Go 1.x
- name: Set up Go 1.23
uses: actions/setup-go@v3
with:
go-version: 1.22.5
go-version: 1.23

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev wget

- name: Build
run: docker run --rm -v $PWD:/gosdk -w /gosdk golang:1.22.5 make wasm-build
run: docker run --rm -v $PWD:/gosdk -w /gosdk golang:1.23 make wasm-build

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ This repository currently supports the following platforms:
import (
"fmt"

"github.com/0chain/gosdk/zcncore"
"github.com/0chain/gosdk_common/zcncore"
)

func main() {
Expand Down Expand Up @@ -177,9 +177,9 @@ To run all the unit tests in `gosdk`: `go test github.com/0chain/gosdk/zboxcore/
$ go test ./...
```

To run all the unit tests in `bls0chain_test.go`, run this command from $TOP: `go test github.com/0chain/gosdk/core/zcncrypto -v`
To run all the unit tests in `bls0chain_test.go`, run this command from $TOP: `go test github.com/0chain/gosdk_common/core/zcncrypto -v`

To run a specific unit test in `bls0chain_test.go`, such as `TestSignatureScheme`, run: `go test github.com/0chain/gosdk/core/zcncrypto -v -run TestSignatureScheme`
To run a specific unit test in `bls0chain_test.go`, such as `TestSignatureScheme`, run: `go test github.com/0chain/gosdk_common/core/zcncrypto -v -run TestSignatureScheme`

To run the coverage test in `gosdk`:

Expand Down
27 changes: 0 additions & 27 deletions constants/context_key.go

This file was deleted.

37 changes: 0 additions & 37 deletions constants/errors.go

This file was deleted.

24 changes: 0 additions & 24 deletions constants/files.go

This file was deleted.

94 changes: 0 additions & 94 deletions core/block/block.go

This file was deleted.

71 changes: 0 additions & 71 deletions core/block/magic_block_entity.go

This file was deleted.

2 changes: 0 additions & 2 deletions core/build.go

This file was deleted.

33 changes: 0 additions & 33 deletions core/common/math.go

This file was deleted.

Loading
Loading