Skip to content

Commit 509522b

Browse files
authored
Changing namespace and cross tests (#11)
1 parent 885e76f commit 509522b

File tree

13 files changed

+31
-35
lines changed

13 files changed

+31
-35
lines changed

.github/workflows/goveralls.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
fail-fast: false
88
matrix:
99
go:
10-
- '1.19'
10+
- '1.22'
1111

1212
steps:
1313
- uses: actions/setup-go@v3

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![Build Status](https://app.travis-ci.com/txpull/sourcify-go.svg?branch=main)](https://app.travis-ci.com/txpull/sourcify-go)
33
[![Coverage Status](https://coveralls.io/repos/github/txpull/sourcify-go/badge.svg?branch=main)](https://coveralls.io/github/txpull/sourcify-go?branch=main)
44
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
5-
[![PkgGoDev](https://pkg.go.dev/badge/github.com/txpull/sourcify-go)](https://pkg.go.dev/github.com/txpull/sourcify-go)
5+
[![PkgGoDev](https://pkg.go.dev/badge/github.com/unpackdev/sourcify-go)](https://pkg.go.dev/github.com/unpackdev/sourcify-go)
66

77

88

@@ -17,7 +17,7 @@ It allows you to access various API endpoints and perform operations such as che
1717
To use Sourcify in your Go project, you can simply import the package:
1818

1919
```go
20-
import "github.com/txpull/sourcify-go"
20+
import "github.com/unpackdev/sourcify-go"
2121
```
2222

2323
## Usage

examples/chains.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ package examples
22

33
import (
44
"fmt"
5+
"github.com/unpackdev/sourcify-go"
56
"net/http"
67
"time"
7-
8-
"github.com/txpull/sourcify-go"
98
)
109

1110
// Example_GetChains demonstrates how to retrieve chains using the Sourcify client.

examples/check_addresses.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ package examples
22

33
import (
44
"fmt"
5+
"github.com/unpackdev/sourcify-go"
56
"net/http"
67
"time"
7-
8-
"github.com/txpull/sourcify-go"
98
)
109

1110
// Example_CheckAddresses demonstrates how to check contract addresses using the Sourcify client.

examples/get_all_addresses.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ package examples
22

33
import (
44
"fmt"
5+
"github.com/unpackdev/sourcify-go"
56
"net/http"
67
"time"
7-
8-
"github.com/txpull/sourcify-go"
98
)
109

1110
// Example_GetAllAddresses demonstrates how to retrieve all available contract addresses using the Sourcify client.

examples/get_files.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ package examples
22

33
import (
44
"fmt"
5+
"github.com/ethereum/go-ethereum/common"
6+
"github.com/unpackdev/sourcify-go"
57
"net/http"
68
"time"
7-
8-
"github.com/ethereum/go-ethereum/common"
9-
"github.com/txpull/sourcify-go"
109
)
1110

1211
// Example_GetFiles demonstrates how to retrieve source files for a contract using the Sourcify client.

examples/get_metadata.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ package examples
22

33
import (
44
"fmt"
5+
"github.com/ethereum/go-ethereum/common"
6+
"github.com/unpackdev/sourcify-go"
57
"net/http"
68
"time"
7-
8-
"github.com/ethereum/go-ethereum/common"
9-
"github.com/txpull/sourcify-go"
109
)
1110

1211
// Example_GetMetadata demonstrates how to retrieve full metadata for a contract using the Sourcify client.

examples/get_source_code.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ package examples
22

33
import (
44
"fmt"
5+
"github.com/ethereum/go-ethereum/common"
6+
"github.com/unpackdev/sourcify-go"
57
"net/http"
68
"time"
7-
8-
"github.com/ethereum/go-ethereum/common"
9-
"github.com/txpull/sourcify-go"
109
)
1110

1211
// Example_GetSourceCode demonstrates how to retrieve source code for a contract using the Sourcify client.

examples/health.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ package examples
22

33
import (
44
"fmt"
5+
"github.com/unpackdev/sourcify-go"
56
"net/http"
67
"time"
7-
8-
"github.com/txpull/sourcify-go"
98
)
109

1110
// Example_GetHealth demonstrates how to check the health status of the Sourcify server using the Sourcify client.

go.mod

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
module github.com/txpull/sourcify-go
1+
module github.com/unpackdev/sourcify-go
22

3-
go 1.19
3+
go 1.22
44

55
require (
6-
github.com/ethereum/go-ethereum v1.12.1
6+
github.com/ethereum/go-ethereum v1.14.0
77
github.com/stretchr/testify v1.8.4
88
)
99

1010
require (
1111
github.com/davecgh/go-spew v1.1.1 // indirect
12+
github.com/holiman/uint256 v1.2.4 // indirect
1213
github.com/pmezard/go-difflib v1.0.0 // indirect
13-
golang.org/x/crypto v0.17.0 // indirect
14-
golang.org/x/sys v0.15.0 // indirect
14+
golang.org/x/crypto v0.22.0 // indirect
15+
golang.org/x/sys v0.19.0 // indirect
1516
gopkg.in/yaml.v3 v3.0.1 // indirect
1617
)

0 commit comments

Comments
 (0)