Skip to content

Commit

Permalink
feat: upgrade go module v3
Browse files Browse the repository at this point in the history
due breaking changes in koios v1.0.9 module
version is incremented to v3

Signed-off-by: Marko Kungla <marko.kungla@gmail.com>
  • Loading branch information
mkungla committed Nov 18, 2022
1 parent 62a6f17 commit 682a877
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 25 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
**[Koios API] Client Library for Go**

[![PkgGoDev](https://pkg.go.dev/badge/github.com/cardano-community/koios-go-client/v2)](https://pkg.go.dev/github.com/cardano-community/koios-go-client/v2)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/cardano-community/koios-go-client/v3)](https://pkg.go.dev/github.com/cardano-community/koios-go-client/v3)

```shell
go get github.com/cardano-community/koios-go-client/v2
go get github.com/cardano-community/koios-go-client/v3
```

```go
...
import (
"github.com/cardano-community/koios-go-client/v2" // imports as package "koios"
"github.com/cardano-community/koios-go-client/v3" // imports as package "koios"
)
...
```
Expand Down Expand Up @@ -46,7 +46,7 @@ import (
[![codecov](https://codecov.io/gh/cardano-community/koios-go-client/branch/main/graph/badge.svg?token=FA1KGG6ZQ5)](https://codecov.io/gh/cardano-community/koios-go-client)
[![codeql](https://github.com/cardano-community/koios-go-client/workflows/codeql/badge.svg)](https://github.com/cardano-community/koios-go-client/actions/workflows/codeql.yml)
[![misspell](https://github.com/cardano-community/koios-go-client/workflows/misspell/badge.svg)](https://github.com/cardano-community/koios-go-client/actions/workflows/misspell.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/cardano-community/koios-go-client/v2)](https://goreportcard.com/report/github.com/cardano-community/koios-go-client/v2)
[![Go Report Card](https://goreportcard.com/badge/github.com/cardano-community/koios-go-client/v3)](https://goreportcard.com/report/github.com/cardano-community/koios-go-client/v3)

---

Expand Down Expand Up @@ -80,7 +80,7 @@ import (

## Usage

See Godoc [![PkgGoDev](https://pkg.go.dev/badge/github.com/cardano-community/koios-go-client/v2)](https://pkg.go.dev/github.com/cardano-community/koios-go-client/v2)
See Godoc [![PkgGoDev](https://pkg.go.dev/badge/github.com/cardano-community/koios-go-client/v3)](https://pkg.go.dev/github.com/cardano-community/koios-go-client/v3)

Additionally you can find all usecases by looking source of `koio-cli` Command-line application [koios-cli] which utilizes entire API of this library.

Expand All @@ -99,7 +99,7 @@ import (
"fmt"
"log"

koios "github.com/cardano-community/koios-go-client/v2"
koios "github.com/cardano-community/koios-go-client/v3"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"strings"
"testing"

"github.com/cardano-community/koios-go-client/v2"
"github.com/cardano-community/koios-go-client/v3"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"testing"

"github.com/cardano-community/koios-go-client/v2"
"github.com/cardano-community/koios-go-client/v3"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion assets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"testing"

"github.com/cardano-community/koios-go-client/v2"
"github.com/cardano-community/koios-go-client/v3"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"testing"

"github.com/cardano-community/koios-go-client/v2"
"github.com/cardano-community/koios-go-client/v3"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion epoch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"testing"

"github.com/cardano-community/koios-go-client/v2"
"github.com/cardano-community/koios-go-client/v3"
"github.com/stretchr/testify/assert"
)

Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/cardano-community/koios-go-client/v2 // imports as package "koios"
module github.com/cardano-community/koios-go-client/v3 // imports as package "koios"

go 1.18

require (
github.com/shopspring/decimal v1.3.1
github.com/stretchr/testify v1.8.0
golang.org/x/text v0.3.7
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af
github.com/stretchr/testify v1.8.1
golang.org/x/text v0.4.0
golang.org/x/time v0.2.0
)

require (
Expand Down
12 changes: 7 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5g
github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af h1:Yx9k8YCG3dvF87UAn2tu2HQLf2dt/eR1bXxpLMWeH+Y=
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/time v0.2.0 h1:52I/1L54xyEQAYdtcSuxtiT84KGYTBGXwayxmIpNJhE=
golang.org/x/time v0.2.0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
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.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
Expand Down
2 changes: 1 addition & 1 deletion koios_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"os"

"github.com/cardano-community/koios-go-client/v2"
"github.com/cardano-community/koios-go-client/v3"
"github.com/shopspring/decimal"
"github.com/stretchr/testify/assert"
)
Expand Down
2 changes: 1 addition & 1 deletion network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"context"
"testing"

"github.com/cardano-community/koios-go-client/v2"
"github.com/cardano-community/koios-go-client/v3"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"testing"

"github.com/cardano-community/koios-go-client/v2"
"github.com/cardano-community/koios-go-client/v3"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"context"
"testing"

"github.com/cardano-community/koios-go-client/v2"
"github.com/cardano-community/koios-go-client/v3"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"fmt"
"testing"

"github.com/cardano-community/koios-go-client/v2"
"github.com/cardano-community/koios-go-client/v3"
"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 682a877

Please sign in to comment.