Skip to content

Commit 3b7101e

Browse files
authored
update imports to v2 (#126)
1 parent f42aa12 commit 3b7101e

165 files changed

Lines changed: 236 additions & 238 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

client/client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import (
2020
"context"
2121
"log"
2222

23-
"github.com/centrifuge/go-substrate-rpc-client/config"
24-
gethrpc "github.com/centrifuge/go-substrate-rpc-client/gethrpc"
25-
"github.com/centrifuge/go-substrate-rpc-client/types"
23+
"github.com/centrifuge/go-substrate-rpc-client/v2/config"
24+
gethrpc "github.com/centrifuge/go-substrate-rpc-client/v2/gethrpc"
25+
"github.com/centrifuge/go-substrate-rpc-client/v2/types"
2626
)
2727

2828
type Client interface {

doc.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ In order to sign extrinsics, you need to have [subkey](https://github.com/parity
3636
3737
Types
3838
39-
The package [types](https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types/) exports a number
39+
The package [types](https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/v2/types/) exports a number
4040
of useful basic types including functions for encoding and decoding them.
4141
4242
To use your own custom types, you can simply create structs and arrays composing those basic types. Here are some
4343
examples using composition of a mix of these basic and builtin Go types:
4444
45-
1. Vectors, lists, series, sets, arrays, slices: https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types/#example_Vec_simple
45+
1. Vectors, lists, series, sets, arrays, slices: https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/v2/types/#example_Vec_simple
4646
47-
2. Structs: https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types/#example_Struct_simple
47+
2. Structs: https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/v2/types/#example_Struct_simple
4848
4949
There are some caveats though that you should be aware of:
5050
@@ -56,6 +56,6 @@ methods that implement the Encodeable/Decodeable interfaces. Examples for that a
5656
types, you can find reference implementations of those here: types/enum_test.go , types/tuple_test.go and
5757
types/vec_any_test.go
5858
59-
For more information about the types sub-package, see https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types
59+
For more information about the types sub-package, see https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/v2/types
6060
*/
6161
package gsrpc

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/centrifuge/go-substrate-rpc-client
1+
module github.com/centrifuge/go-substrate-rpc-client/v2
22

33
go 1.15
44

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0
4848
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
4949
golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
5050
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
51-
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 h1:HuIa8hRrWRSrqYzx1qI49NNxhdi2PrY7gxVSq1JjLDc=
52-
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
5351
golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d h1:2+ZP7EfsZV7Vvmx3TIqSlSzATMkTAKqM14YGFPoSKjI=
5452
golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
5553
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
package gsrpc
1818

1919
import (
20-
"github.com/centrifuge/go-substrate-rpc-client/client"
21-
"github.com/centrifuge/go-substrate-rpc-client/rpc"
20+
"github.com/centrifuge/go-substrate-rpc-client/v2/client"
21+
"github.com/centrifuge/go-substrate-rpc-client/v2/rpc"
2222
)
2323

2424
type SubstrateAPI struct {

main_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ import (
2121
"math/big"
2222
"time"
2323

24-
gsrpc "github.com/centrifuge/go-substrate-rpc-client"
25-
"github.com/centrifuge/go-substrate-rpc-client/config"
26-
"github.com/centrifuge/go-substrate-rpc-client/signature"
27-
"github.com/centrifuge/go-substrate-rpc-client/types"
24+
gsrpc "github.com/centrifuge/go-substrate-rpc-client/v2"
25+
"github.com/centrifuge/go-substrate-rpc-client/v2/config"
26+
"github.com/centrifuge/go-substrate-rpc-client/v2/signature"
27+
"github.com/centrifuge/go-substrate-rpc-client/v2/types"
2828
)
2929

3030
func Example_simpleConnect() {

rpc/author/author.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
package author
1818

19-
import "github.com/centrifuge/go-substrate-rpc-client/client"
19+
import "github.com/centrifuge/go-substrate-rpc-client/v2/client"
2020

2121
// Author exposes methods for authoring of network items
2222
type Author struct {

rpc/author/author_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"os"
2121
"testing"
2222

23-
"github.com/centrifuge/go-substrate-rpc-client/client"
24-
"github.com/centrifuge/go-substrate-rpc-client/rpcmocksrv"
23+
"github.com/centrifuge/go-substrate-rpc-client/v2/client"
24+
"github.com/centrifuge/go-substrate-rpc-client/v2/rpcmocksrv"
2525
)
2626

2727
var author *Author

rpc/author/pending_extrinsics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package author
1818

1919
import (
20-
"github.com/centrifuge/go-substrate-rpc-client/types"
20+
"github.com/centrifuge/go-substrate-rpc-client/v2/types"
2121
)
2222

2323
// PendingExtrinsics returns all pending extrinsics, potentially grouped by sender

rpc/author/pending_extrinsics_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ package author
1919
import (
2020
"testing"
2121

22-
"github.com/centrifuge/go-substrate-rpc-client/types"
22+
"github.com/centrifuge/go-substrate-rpc-client/v2/types"
2323
"github.com/stretchr/testify/assert"
2424
)
2525

0 commit comments

Comments
 (0)