Skip to content

Commit

Permalink
Upgrading and changing namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
0x19 committed Apr 26, 2024
1 parent 885e76f commit 3f65f2d
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Build Status](https://app.travis-ci.com/txpull/sourcify-go.svg?branch=main)](https://app.travis-ci.com/txpull/sourcify-go)
[![Coverage Status](https://coveralls.io/repos/github/txpull/sourcify-go/badge.svg?branch=main)](https://coveralls.io/github/txpull/sourcify-go?branch=main)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/txpull/sourcify-go)](https://pkg.go.dev/github.com/txpull/sourcify-go)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/unpackdev/sourcify-go)](https://pkg.go.dev/github.com/unpackdev/sourcify-go)



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

```go
import "github.com/txpull/sourcify-go"
import "github.com/unpackdev/sourcify-go"
```

## Usage
Expand Down
2 changes: 0 additions & 2 deletions examples/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"fmt"
"net/http"
"time"

"github.com/txpull/sourcify-go"
)

// Example_GetChains demonstrates how to retrieve chains using the Sourcify client.
Expand Down
2 changes: 0 additions & 2 deletions examples/check_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"fmt"
"net/http"
"time"

"github.com/txpull/sourcify-go"
)

// Example_CheckAddresses demonstrates how to check contract addresses using the Sourcify client.
Expand Down
2 changes: 0 additions & 2 deletions examples/get_all_addresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"fmt"
"net/http"
"time"

"github.com/txpull/sourcify-go"
)

// Example_GetAllAddresses demonstrates how to retrieve all available contract addresses using the Sourcify client.
Expand Down
1 change: 0 additions & 1 deletion examples/get_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/txpull/sourcify-go"
)

// Example_GetFiles demonstrates how to retrieve source files for a contract using the Sourcify client.
Expand Down
1 change: 0 additions & 1 deletion examples/get_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/txpull/sourcify-go"
)

// Example_GetMetadata demonstrates how to retrieve full metadata for a contract using the Sourcify client.
Expand Down
1 change: 0 additions & 1 deletion examples/get_source_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"time"

"github.com/ethereum/go-ethereum/common"
"github.com/txpull/sourcify-go"
)

// Example_GetSourceCode demonstrates how to retrieve source code for a contract using the Sourcify client.
Expand Down
2 changes: 0 additions & 2 deletions examples/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"fmt"
"net/http"
"time"

"github.com/txpull/sourcify-go"
)

// Example_GetHealth demonstrates how to check the health status of the Sourcify server using the Sourcify client.
Expand Down
11 changes: 6 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
module github.com/txpull/sourcify-go
module github.com/unpackdev/sourcify-go

go 1.19
go 1.22

require (
github.com/ethereum/go-ethereum v1.12.1
github.com/ethereum/go-ethereum v1.14.0
github.com/stretchr/testify v1.8.4
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/holiman/uint256 v1.2.4 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/crypto v0.22.0 // indirect
golang.org/x/sys v0.19.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
14 changes: 8 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/ethereum/go-ethereum v1.12.1 h1:1kXDPxhLfyySuQYIfRxVBGYuaHdxNNxevA73vjIwsgk=
github.com/ethereum/go-ethereum v1.12.1/go.mod h1:zKetLweqBR8ZS+1O9iJWI8DvmmD2NzD19apjEWDCsnw=
github.com/ethereum/go-ethereum v1.14.0 h1:xRWC5NlB6g1x7vNy4HDBLuqVNbtLrc7v8S6+Uxim1LU=
github.com/ethereum/go-ethereum v1.14.0/go.mod h1:1STrq471D0BQbCX9He0hUj4bHxX2k6mt5nOQJhDNOJ8=
github.com/holiman/uint256 v1.2.4 h1:jUc4Nk8fm9jZabQuqr2JzednajVmBpC+oiTiXZJEApU=
github.com/holiman/uint256 v1.2.4/go.mod h1:EOMSn4q6Nyt9P6efbI3bueV4e1b3dGlUCXeiRV4ng7E=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30=
golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M=
golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o=
golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
4 changes: 2 additions & 2 deletions sourcify.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
// fmt.Println("Contract Metadata:", metadata)
//
// For more information on the Sourcify API and its endpoints, refer to the official documentation:
// - API Documentation: https://pkg.go.dev/github.com/txpull/sourcify-go
// - GitHub Repository: https://github.com/txpull/sourcify-go
// - API Documentation: https://pkg.go.dev/github.com/unpackdev/sourcify-go
// - GitHub Repository: https://github.com/unpackdev/sourcify-go
package sourcify

0 comments on commit 3f65f2d

Please sign in to comment.