diff --git a/client/client.go b/client/client.go index bd7ae01ec..79141e1bd 100644 --- a/client/client.go +++ b/client/client.go @@ -20,9 +20,9 @@ import ( "context" "log" - "github.com/centrifuge/go-substrate-rpc-client/config" - gethrpc "github.com/centrifuge/go-substrate-rpc-client/gethrpc" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" + gethrpc "github.com/centrifuge/go-substrate-rpc-client/v2/gethrpc" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) type Client interface { diff --git a/doc.go b/doc.go index fe9e9f477..d0b2953fa 100644 --- a/doc.go +++ b/doc.go @@ -36,15 +36,15 @@ In order to sign extrinsics, you need to have [subkey](https://github.com/parity Types -The package [types](https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types/) exports a number +The package [types](https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/v2/types/) exports a number of useful basic types including functions for encoding and decoding them. To use your own custom types, you can simply create structs and arrays composing those basic types. Here are some examples using composition of a mix of these basic and builtin Go types: -1. Vectors, lists, series, sets, arrays, slices: https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types/#example_Vec_simple +1. Vectors, lists, series, sets, arrays, slices: https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/v2/types/#example_Vec_simple -2. Structs: https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types/#example_Struct_simple +2. Structs: https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/v2/types/#example_Struct_simple There are some caveats though that you should be aware of: @@ -56,6 +56,6 @@ methods that implement the Encodeable/Decodeable interfaces. Examples for that a types, you can find reference implementations of those here: types/enum_test.go , types/tuple_test.go and types/vec_any_test.go -For more information about the types sub-package, see https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/types +For more information about the types sub-package, see https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/v2/types */ package gsrpc diff --git a/go.mod b/go.mod index 0a0fcea6d..a3a423da6 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/centrifuge/go-substrate-rpc-client +module github.com/centrifuge/go-substrate-rpc-client/v2 go 1.15 diff --git a/go.sum b/go.sum index a1aeec823..2ca75f764 100644 --- a/go.sum +++ b/go.sum @@ -48,8 +48,6 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0 github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4 h1:HuIa8hRrWRSrqYzx1qI49NNxhdi2PrY7gxVSq1JjLDc= -golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d h1:2+ZP7EfsZV7Vvmx3TIqSlSzATMkTAKqM14YGFPoSKjI= golang.org/x/crypto v0.0.0-20200115085410-6d4e4cb37c7d/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= diff --git a/main.go b/main.go index eae92cc24..f7f989872 100644 --- a/main.go +++ b/main.go @@ -17,8 +17,8 @@ package gsrpc import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/rpc" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/rpc" ) type SubstrateAPI struct { diff --git a/main_test.go b/main_test.go index 529141068..48be7fee8 100644 --- a/main_test.go +++ b/main_test.go @@ -21,10 +21,10 @@ import ( "math/big" "time" - gsrpc "github.com/centrifuge/go-substrate-rpc-client" - "github.com/centrifuge/go-substrate-rpc-client/config" - "github.com/centrifuge/go-substrate-rpc-client/signature" - "github.com/centrifuge/go-substrate-rpc-client/types" + gsrpc "github.com/centrifuge/go-substrate-rpc-client/v2" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" + "github.com/centrifuge/go-substrate-rpc-client/v2/signature" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func Example_simpleConnect() { diff --git a/rpc/author/author.go b/rpc/author/author.go index 7575095c0..6871b9ea1 100644 --- a/rpc/author/author.go +++ b/rpc/author/author.go @@ -16,7 +16,7 @@ package author -import "github.com/centrifuge/go-substrate-rpc-client/client" +import "github.com/centrifuge/go-substrate-rpc-client/v2/client" // Author exposes methods for authoring of network items type Author struct { diff --git a/rpc/author/author_test.go b/rpc/author/author_test.go index d78bcd69d..1ee98d800 100644 --- a/rpc/author/author_test.go +++ b/rpc/author/author_test.go @@ -20,8 +20,8 @@ import ( "os" "testing" - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/rpcmocksrv" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/rpcmocksrv" ) var author *Author diff --git a/rpc/author/pending_extrinsics.go b/rpc/author/pending_extrinsics.go index fa3ad90ea..2aa5954d5 100644 --- a/rpc/author/pending_extrinsics.go +++ b/rpc/author/pending_extrinsics.go @@ -17,7 +17,7 @@ package author import ( - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // PendingExtrinsics returns all pending extrinsics, potentially grouped by sender diff --git a/rpc/author/pending_extrinsics_test.go b/rpc/author/pending_extrinsics_test.go index a9fab65c3..9db414db2 100644 --- a/rpc/author/pending_extrinsics_test.go +++ b/rpc/author/pending_extrinsics_test.go @@ -19,7 +19,7 @@ package author import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/author/submit_and_watch_extrinsic.go b/rpc/author/submit_and_watch_extrinsic.go index 1cb8a9c0a..6d0b8480b 100644 --- a/rpc/author/submit_and_watch_extrinsic.go +++ b/rpc/author/submit_and_watch_extrinsic.go @@ -20,9 +20,9 @@ import ( "context" "sync" - "github.com/centrifuge/go-substrate-rpc-client/config" - gethrpc "github.com/centrifuge/go-substrate-rpc-client/gethrpc" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" + gethrpc "github.com/centrifuge/go-substrate-rpc-client/v2/gethrpc" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // ExtrinsicStatusSubscription is a subscription established through one of the Client's subscribe methods. diff --git a/rpc/author/submit_extrinsic.go b/rpc/author/submit_extrinsic.go index 092785058..6bb7d9314 100644 --- a/rpc/author/submit_extrinsic.go +++ b/rpc/author/submit_extrinsic.go @@ -16,7 +16,7 @@ package author -import "github.com/centrifuge/go-substrate-rpc-client/types" +import "github.com/centrifuge/go-substrate-rpc-client/v2/types" // SubmitExtrinsic will submit a fully formatted extrinsic for block inclusion func (a *Author) SubmitExtrinsic(xt types.Extrinsic) (types.Hash, error) { diff --git a/rpc/author/submit_extrinsic_test.go b/rpc/author/submit_extrinsic_test.go index 591bb61ae..f214af54f 100644 --- a/rpc/author/submit_extrinsic_test.go +++ b/rpc/author/submit_extrinsic_test.go @@ -19,7 +19,7 @@ package author import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/chain/chain.go b/rpc/chain/chain.go index ab0cc637f..f12ca0590 100644 --- a/rpc/chain/chain.go +++ b/rpc/chain/chain.go @@ -17,7 +17,7 @@ package chain import ( - "github.com/centrifuge/go-substrate-rpc-client/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" ) // Chain exposes methods for retrieval of chain data diff --git a/rpc/chain/chain_test.go b/rpc/chain/chain_test.go index f5e6ada1d..80a839bdf 100644 --- a/rpc/chain/chain_test.go +++ b/rpc/chain/chain_test.go @@ -20,9 +20,9 @@ import ( "os" "testing" - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/rpcmocksrv" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/rpcmocksrv" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) var chain *Chain diff --git a/rpc/chain/get_block.go b/rpc/chain/get_block.go index 87bc9f3c7..bb6f787ab 100644 --- a/rpc/chain/get_block.go +++ b/rpc/chain/get_block.go @@ -17,8 +17,8 @@ package chain import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetBlock returns the header and body of the relay chain block with the given hash diff --git a/rpc/chain/get_block_hash.go b/rpc/chain/get_block_hash.go index 230b4f4fe..3089b438c 100644 --- a/rpc/chain/get_block_hash.go +++ b/rpc/chain/get_block_hash.go @@ -17,7 +17,7 @@ package chain import ( - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetBlockHash returns the block hash for a specific block height diff --git a/rpc/chain/get_block_hash_test.go b/rpc/chain/get_block_hash_test.go index db9657742..fb341b5e9 100644 --- a/rpc/chain/get_block_hash_test.go +++ b/rpc/chain/get_block_hash_test.go @@ -19,7 +19,7 @@ package chain import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/chain/get_finalized_head.go b/rpc/chain/get_finalized_head.go index 19e250673..71bcde007 100644 --- a/rpc/chain/get_finalized_head.go +++ b/rpc/chain/get_finalized_head.go @@ -17,7 +17,7 @@ package chain import ( - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetFinalizedHead returns the hash of the last finalized block in the canon chain diff --git a/rpc/chain/get_finalized_head_test.go b/rpc/chain/get_finalized_head_test.go index 865b4aabf..ebd03bbf5 100644 --- a/rpc/chain/get_finalized_head_test.go +++ b/rpc/chain/get_finalized_head_test.go @@ -19,7 +19,7 @@ package chain import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/chain/get_header.go b/rpc/chain/get_header.go index 053cecf33..78867b85e 100644 --- a/rpc/chain/get_header.go +++ b/rpc/chain/get_header.go @@ -17,8 +17,8 @@ package chain import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetHeader retrieves the header for the specific block diff --git a/rpc/chain/subscribe_finalized_heads.go b/rpc/chain/subscribe_finalized_heads.go index 87c97f482..dd08895cf 100644 --- a/rpc/chain/subscribe_finalized_heads.go +++ b/rpc/chain/subscribe_finalized_heads.go @@ -20,9 +20,9 @@ import ( "context" "sync" - "github.com/centrifuge/go-substrate-rpc-client/config" - gethrpc "github.com/centrifuge/go-substrate-rpc-client/gethrpc" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" + gethrpc "github.com/centrifuge/go-substrate-rpc-client/v2/gethrpc" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // FinalizedHeadsSubscription is a subscription established through one of the Client's subscribe methods. diff --git a/rpc/chain/subscribe_new_heads.go b/rpc/chain/subscribe_new_heads.go index fc31f199e..c9ed0e5a9 100644 --- a/rpc/chain/subscribe_new_heads.go +++ b/rpc/chain/subscribe_new_heads.go @@ -20,9 +20,9 @@ import ( "context" "sync" - "github.com/centrifuge/go-substrate-rpc-client/config" - gethrpc "github.com/centrifuge/go-substrate-rpc-client/gethrpc" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" + gethrpc "github.com/centrifuge/go-substrate-rpc-client/v2/gethrpc" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // NewHeadsSubscription is a subscription established through one of the Client's subscribe methods. diff --git a/rpc/main.go b/rpc/main.go index f85a7523b..048429837 100644 --- a/rpc/main.go +++ b/rpc/main.go @@ -17,12 +17,12 @@ package rpc import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/rpc/author" - "github.com/centrifuge/go-substrate-rpc-client/rpc/chain" - "github.com/centrifuge/go-substrate-rpc-client/rpc/state" - "github.com/centrifuge/go-substrate-rpc-client/rpc/system" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/rpc/author" + "github.com/centrifuge/go-substrate-rpc-client/v2/rpc/chain" + "github.com/centrifuge/go-substrate-rpc-client/v2/rpc/state" + "github.com/centrifuge/go-substrate-rpc-client/v2/rpc/system" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) type RPC struct { diff --git a/rpc/state/get_child_keys.go b/rpc/state/get_child_keys.go index 03f676882..e063ba6eb 100644 --- a/rpc/state/get_child_keys.go +++ b/rpc/state/get_child_keys.go @@ -17,8 +17,8 @@ package state import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetChildKeys retreives the keys with the given prefix of a specific child storage diff --git a/rpc/state/get_child_keys_test.go b/rpc/state/get_child_keys_test.go index 87c1cf034..6186f072c 100644 --- a/rpc/state/get_child_keys_test.go +++ b/rpc/state/get_child_keys_test.go @@ -19,7 +19,7 @@ package state import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/state/get_child_storage.go b/rpc/state/get_child_storage.go index 710efc493..b3af91089 100644 --- a/rpc/state/get_child_storage.go +++ b/rpc/state/get_child_storage.go @@ -17,8 +17,8 @@ package state import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetChildStorage retreives the child storage for a key and decodes them into the provided interface. Ok is true if the diff --git a/rpc/state/get_child_storage_hash.go b/rpc/state/get_child_storage_hash.go index a9a18fe67..7d5e5aa19 100644 --- a/rpc/state/get_child_storage_hash.go +++ b/rpc/state/get_child_storage_hash.go @@ -17,8 +17,8 @@ package state import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetChildStorageHash retreives the child storage hash for the given key diff --git a/rpc/state/get_child_storage_hash_test.go b/rpc/state/get_child_storage_hash_test.go index 164cbbf48..cba587003 100644 --- a/rpc/state/get_child_storage_hash_test.go +++ b/rpc/state/get_child_storage_hash_test.go @@ -19,7 +19,7 @@ package state import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/state/get_child_storage_size.go b/rpc/state/get_child_storage_size.go index e2b956fcf..230478fb2 100644 --- a/rpc/state/get_child_storage_size.go +++ b/rpc/state/get_child_storage_size.go @@ -17,8 +17,8 @@ package state import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetChildStorageSize retreives the child storage size for the given key diff --git a/rpc/state/get_child_storage_test.go b/rpc/state/get_child_storage_test.go index fb34d83fb..e7a626444 100644 --- a/rpc/state/get_child_storage_test.go +++ b/rpc/state/get_child_storage_test.go @@ -19,7 +19,7 @@ package state import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/state/get_keys.go b/rpc/state/get_keys.go index 4c89031f7..b404ef23a 100644 --- a/rpc/state/get_keys.go +++ b/rpc/state/get_keys.go @@ -17,8 +17,8 @@ package state import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetKeys retreives the keys with the given prefix diff --git a/rpc/state/get_keys_test.go b/rpc/state/get_keys_test.go index 158d4dff2..cb3cfabab 100644 --- a/rpc/state/get_keys_test.go +++ b/rpc/state/get_keys_test.go @@ -19,7 +19,7 @@ package state import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/state/get_metadata.go b/rpc/state/get_metadata.go index 5dd70c8e4..05b26b08c 100644 --- a/rpc/state/get_metadata.go +++ b/rpc/state/get_metadata.go @@ -17,8 +17,8 @@ package state import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetMetadata returns the metadata at the given block diff --git a/rpc/state/get_runtime_version.go b/rpc/state/get_runtime_version.go index 088eaff4b..221e8649c 100644 --- a/rpc/state/get_runtime_version.go +++ b/rpc/state/get_runtime_version.go @@ -17,8 +17,8 @@ package state import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetRuntimeVersion returns the runtime version at the given block diff --git a/rpc/state/get_storage.go b/rpc/state/get_storage.go index 3a0d9a7db..aeb76769b 100644 --- a/rpc/state/get_storage.go +++ b/rpc/state/get_storage.go @@ -17,8 +17,8 @@ package state import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetStorage retreives the stored data and decodes them into the provided interface. Ok is true if the value is not diff --git a/rpc/state/get_storage_hash.go b/rpc/state/get_storage_hash.go index 5bba31faf..9564de7be 100644 --- a/rpc/state/get_storage_hash.go +++ b/rpc/state/get_storage_hash.go @@ -17,8 +17,8 @@ package state import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetStorageHash retreives the storage hash for the given key diff --git a/rpc/state/get_storage_hash_test.go b/rpc/state/get_storage_hash_test.go index ae349c85c..a6fdd6233 100644 --- a/rpc/state/get_storage_hash_test.go +++ b/rpc/state/get_storage_hash_test.go @@ -19,7 +19,7 @@ package state import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/state/get_storage_size.go b/rpc/state/get_storage_size.go index 70c10b751..65ae55aeb 100644 --- a/rpc/state/get_storage_size.go +++ b/rpc/state/get_storage_size.go @@ -17,8 +17,8 @@ package state import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // GetStorageSize retreives the storage size for the given key diff --git a/rpc/state/get_storage_size_test.go b/rpc/state/get_storage_size_test.go index 6eb607229..77407017c 100644 --- a/rpc/state/get_storage_size_test.go +++ b/rpc/state/get_storage_size_test.go @@ -19,7 +19,7 @@ package state import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/state/get_storage_test.go b/rpc/state/get_storage_test.go index ca398f945..81370cf6d 100644 --- a/rpc/state/get_storage_test.go +++ b/rpc/state/get_storage_test.go @@ -19,7 +19,7 @@ package state import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/state/query_storage.go b/rpc/state/query_storage.go index 0828ae586..ef14e2760 100644 --- a/rpc/state/query_storage.go +++ b/rpc/state/query_storage.go @@ -17,8 +17,8 @@ package state import ( - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // QueryStorage queries historical storage entries (by key) starting from a start block until an end block diff --git a/rpc/state/query_storage_test.go b/rpc/state/query_storage_test.go index e76d7dffd..c27382dd9 100644 --- a/rpc/state/query_storage_test.go +++ b/rpc/state/query_storage_test.go @@ -19,7 +19,7 @@ package state import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/rpc/state/state.go b/rpc/state/state.go index 25895ab1a..3d98c1aa4 100644 --- a/rpc/state/state.go +++ b/rpc/state/state.go @@ -16,7 +16,7 @@ package state -import "github.com/centrifuge/go-substrate-rpc-client/client" +import "github.com/centrifuge/go-substrate-rpc-client/v2/client" // State exposes methods for querying state type State struct { diff --git a/rpc/state/state_test.go b/rpc/state/state_test.go index 053aacdb4..40c8d5841 100644 --- a/rpc/state/state_test.go +++ b/rpc/state/state_test.go @@ -21,9 +21,9 @@ import ( "strings" "testing" - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/rpcmocksrv" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/rpcmocksrv" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) var state *State diff --git a/rpc/state/subscribe_runtime_version.go b/rpc/state/subscribe_runtime_version.go index 34f33eadc..a31638b6f 100644 --- a/rpc/state/subscribe_runtime_version.go +++ b/rpc/state/subscribe_runtime_version.go @@ -20,9 +20,9 @@ import ( "context" "sync" - "github.com/centrifuge/go-substrate-rpc-client/config" - gethrpc "github.com/centrifuge/go-substrate-rpc-client/gethrpc" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" + gethrpc "github.com/centrifuge/go-substrate-rpc-client/v2/gethrpc" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // RuntimeVersionSubscription is a subscription established through one of the Client's subscribe methods. diff --git a/rpc/state/subscribe_storage.go b/rpc/state/subscribe_storage.go index 99584a5d0..dd1681a9f 100644 --- a/rpc/state/subscribe_storage.go +++ b/rpc/state/subscribe_storage.go @@ -20,9 +20,9 @@ import ( "context" "sync" - "github.com/centrifuge/go-substrate-rpc-client/config" - gethrpc "github.com/centrifuge/go-substrate-rpc-client/gethrpc" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" + gethrpc "github.com/centrifuge/go-substrate-rpc-client/v2/gethrpc" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // StorageSubscription is a subscription established through one of the Client's subscribe methods. diff --git a/rpc/system/chain.go b/rpc/system/chain.go index fea5ff610..72ff3dd0d 100644 --- a/rpc/system/chain.go +++ b/rpc/system/chain.go @@ -17,7 +17,7 @@ package system import ( - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // Chain retrieves the chain diff --git a/rpc/system/health.go b/rpc/system/health.go index 2ccf106cb..d4aa07039 100644 --- a/rpc/system/health.go +++ b/rpc/system/health.go @@ -17,7 +17,7 @@ package system import ( - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // Health retrieves the health status of the connected node diff --git a/rpc/system/name.go b/rpc/system/name.go index 5a663039d..57fa1f27c 100644 --- a/rpc/system/name.go +++ b/rpc/system/name.go @@ -17,7 +17,7 @@ package system import ( - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // Name retrieves the node name diff --git a/rpc/system/network_state.go b/rpc/system/network_state.go index 7e51b82ca..fc8ac27dd 100644 --- a/rpc/system/network_state.go +++ b/rpc/system/network_state.go @@ -17,7 +17,7 @@ package system import ( - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // NetworkState retrieves the current state of the network diff --git a/rpc/system/peers.go b/rpc/system/peers.go index 23e5a8415..eb357cbdf 100644 --- a/rpc/system/peers.go +++ b/rpc/system/peers.go @@ -17,7 +17,7 @@ package system import ( - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // Peers retrieves the currently connected peers diff --git a/rpc/system/properties.go b/rpc/system/properties.go index ad12528e7..168b0d029 100644 --- a/rpc/system/properties.go +++ b/rpc/system/properties.go @@ -17,7 +17,7 @@ package system import ( - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // Properties retrieves a custom set of properties as a JSON object, defined in the chain spec diff --git a/rpc/system/system.go b/rpc/system/system.go index a297f5ee4..2ef0a9e53 100644 --- a/rpc/system/system.go +++ b/rpc/system/system.go @@ -17,7 +17,7 @@ package system import ( - "github.com/centrifuge/go-substrate-rpc-client/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" ) // System exposes methods for retrieval of system data diff --git a/rpc/system/system_test.go b/rpc/system/system_test.go index 8e05c24f0..f3b99f9be 100644 --- a/rpc/system/system_test.go +++ b/rpc/system/system_test.go @@ -20,9 +20,9 @@ import ( "os" "testing" - "github.com/centrifuge/go-substrate-rpc-client/client" - "github.com/centrifuge/go-substrate-rpc-client/rpcmocksrv" - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/client" + "github.com/centrifuge/go-substrate-rpc-client/v2/rpcmocksrv" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) var system *System diff --git a/rpc/system/version.go b/rpc/system/version.go index 9a7f524b7..5ee9e48b7 100644 --- a/rpc/system/version.go +++ b/rpc/system/version.go @@ -17,7 +17,7 @@ package system import ( - "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // Version retrieves the version of the node diff --git a/rpcmocksrv/server.go b/rpcmocksrv/server.go index 12fc18524..42573d89b 100644 --- a/rpcmocksrv/server.go +++ b/rpcmocksrv/server.go @@ -21,7 +21,7 @@ import ( "strconv" "time" - gethrpc "github.com/centrifuge/go-substrate-rpc-client/gethrpc" + gethrpc "github.com/centrifuge/go-substrate-rpc-client/v2/gethrpc" ) type Server struct { diff --git a/rpcmocksrv/server_test.go b/rpcmocksrv/server_test.go index 245d54eed..dd67686d4 100644 --- a/rpcmocksrv/server_test.go +++ b/rpcmocksrv/server_test.go @@ -19,7 +19,7 @@ package rpcmocksrv import ( "testing" - gethrpc "github.com/centrifuge/go-substrate-rpc-client/gethrpc" + gethrpc "github.com/centrifuge/go-substrate-rpc-client/v2/gethrpc" "github.com/stretchr/testify/assert" ) diff --git a/signature/signature_test.go b/signature/signature_test.go index cb8307cb8..21c1e9933 100644 --- a/signature/signature_test.go +++ b/signature/signature_test.go @@ -20,8 +20,8 @@ import ( "crypto/rand" "testing" - . "github.com/centrifuge/go-substrate-rpc-client/signature" - "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/signature" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/teste2e/author_submit_and_watch_extrinsic_test.go b/teste2e/author_submit_and_watch_extrinsic_test.go index 1b5cdca1a..a8e08f672 100644 --- a/teste2e/author_submit_and_watch_extrinsic_test.go +++ b/teste2e/author_submit_and_watch_extrinsic_test.go @@ -21,10 +21,10 @@ import ( "testing" "time" - gsrpc "github.com/centrifuge/go-substrate-rpc-client" - "github.com/centrifuge/go-substrate-rpc-client/config" - "github.com/centrifuge/go-substrate-rpc-client/signature" - "github.com/centrifuge/go-substrate-rpc-client/types" + gsrpc "github.com/centrifuge/go-substrate-rpc-client/v2" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" + "github.com/centrifuge/go-substrate-rpc-client/v2/signature" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/teste2e/author_submit_extrinsic_test.go b/teste2e/author_submit_extrinsic_test.go index b42c35adb..115582c7d 100644 --- a/teste2e/author_submit_extrinsic_test.go +++ b/teste2e/author_submit_extrinsic_test.go @@ -21,10 +21,10 @@ import ( "testing" "time" - gsrpc "github.com/centrifuge/go-substrate-rpc-client" - "github.com/centrifuge/go-substrate-rpc-client/config" - "github.com/centrifuge/go-substrate-rpc-client/signature" - "github.com/centrifuge/go-substrate-rpc-client/types" + gsrpc "github.com/centrifuge/go-substrate-rpc-client/v2" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" + "github.com/centrifuge/go-substrate-rpc-client/v2/signature" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestChain_Events(t *testing.T) { diff --git a/teste2e/chain_subscribe_finalized_heads_test.go b/teste2e/chain_subscribe_finalized_heads_test.go index c9e36c750..f8cefc898 100644 --- a/teste2e/chain_subscribe_finalized_heads_test.go +++ b/teste2e/chain_subscribe_finalized_heads_test.go @@ -21,8 +21,8 @@ import ( "testing" "time" - gsrpc "github.com/centrifuge/go-substrate-rpc-client" - "github.com/centrifuge/go-substrate-rpc-client/config" + gsrpc "github.com/centrifuge/go-substrate-rpc-client/v2" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" "github.com/stretchr/testify/assert" ) diff --git a/teste2e/chain_subscribe_new_heads_test.go b/teste2e/chain_subscribe_new_heads_test.go index 6ef26acb9..9ff408075 100644 --- a/teste2e/chain_subscribe_new_heads_test.go +++ b/teste2e/chain_subscribe_new_heads_test.go @@ -21,8 +21,8 @@ import ( "testing" "time" - gsrpc "github.com/centrifuge/go-substrate-rpc-client" - "github.com/centrifuge/go-substrate-rpc-client/config" + gsrpc "github.com/centrifuge/go-substrate-rpc-client/v2" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" "github.com/stretchr/testify/assert" ) diff --git a/teste2e/main_test.go b/teste2e/main_test.go index 2fbebc226..a527c7448 100644 --- a/teste2e/main_test.go +++ b/teste2e/main_test.go @@ -20,9 +20,9 @@ import ( "fmt" "testing" - gsrpc "github.com/centrifuge/go-substrate-rpc-client" - "github.com/centrifuge/go-substrate-rpc-client/config" - "github.com/centrifuge/go-substrate-rpc-client/types" + gsrpc "github.com/centrifuge/go-substrate-rpc-client/v2" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/teste2e/state_subscribe_runtime_version_test.go b/teste2e/state_subscribe_runtime_version_test.go index 944675364..5cefe843e 100644 --- a/teste2e/state_subscribe_runtime_version_test.go +++ b/teste2e/state_subscribe_runtime_version_test.go @@ -21,8 +21,8 @@ import ( "testing" "time" - gsrpc "github.com/centrifuge/go-substrate-rpc-client" - "github.com/centrifuge/go-substrate-rpc-client/config" + gsrpc "github.com/centrifuge/go-substrate-rpc-client/v2" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" "github.com/stretchr/testify/assert" ) diff --git a/teste2e/state_subscribe_storage_test.go b/teste2e/state_subscribe_storage_test.go index 4a5d2d81c..0015ee6d4 100644 --- a/teste2e/state_subscribe_storage_test.go +++ b/teste2e/state_subscribe_storage_test.go @@ -21,9 +21,9 @@ import ( "testing" "time" - gsrpc "github.com/centrifuge/go-substrate-rpc-client" - "github.com/centrifuge/go-substrate-rpc-client/config" - "github.com/centrifuge/go-substrate-rpc-client/types" + gsrpc "github.com/centrifuge/go-substrate-rpc-client/v2" + "github.com/centrifuge/go-substrate-rpc-client/v2/config" + "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/account_id_test.go b/types/account_id_test.go index 859e7e885..281a391b0 100644 --- a/types/account_id_test.go +++ b/types/account_id_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestAccountID_EncodeDecode(t *testing.T) { diff --git a/types/account_index_test.go b/types/account_index_test.go index c5e626ea3..fc6c5b005 100644 --- a/types/account_index_test.go +++ b/types/account_index_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestAccountIndex_EncodeDecode(t *testing.T) { diff --git a/types/account_info_test.go b/types/account_info_test.go index fefd9b387..f569fb58b 100644 --- a/types/account_info_test.go +++ b/types/account_info_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestAccountInfoV4_EncodeDecode(t *testing.T) { diff --git a/types/address.go b/types/address.go index 79be9d0b3..17e526ed1 100644 --- a/types/address.go +++ b/types/address.go @@ -19,7 +19,7 @@ package types import ( "fmt" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // Address is a wrapper around an AccountId or an AccountIndex. It is encoded with a prefix in case of an AccountID. diff --git a/types/address_test.go b/types/address_test.go index a5ac02285..262c2770d 100644 --- a/types/address_test.go +++ b/types/address_test.go @@ -21,8 +21,8 @@ import ( "testing" "github.com/btcsuite/btcutil/base58" - "github.com/centrifuge/go-substrate-rpc-client/hash" - . "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/hash" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/balance_status.go b/types/balance_status.go index 0f0bfba9b..b88eb52a8 100644 --- a/types/balance_status.go +++ b/types/balance_status.go @@ -3,7 +3,7 @@ package types import ( "fmt" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) type BalanceStatus byte diff --git a/types/balance_status_test.go b/types/balance_status_test.go index daae7906f..eee4c46c9 100644 --- a/types/balance_status_test.go +++ b/types/balance_status_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" "github.com/stretchr/testify/assert" ) diff --git a/types/bool_test.go b/types/bool_test.go index 4eace48d1..e57590fde 100644 --- a/types/bool_test.go +++ b/types/bool_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestBool_EncodeDecode(t *testing.T) { diff --git a/types/bytes.go b/types/bytes.go index bdc72d1a2..3f3bc4f44 100644 --- a/types/bytes.go +++ b/types/bytes.go @@ -19,7 +19,7 @@ package types import ( "fmt" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // Bytes represents byte slices. Bytes has a variable length, it is encoded with a scale prefix diff --git a/types/bytes_test.go b/types/bytes_test.go index f9cd333c1..5ba2f17c5 100644 --- a/types/bytes_test.go +++ b/types/bytes_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestBytes_EncodeDecode(t *testing.T) { diff --git a/types/chain_properties.go b/types/chain_properties.go index c71b38c89..5db853a14 100644 --- a/types/chain_properties.go +++ b/types/chain_properties.go @@ -17,7 +17,7 @@ package types import ( - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // ChainProperties contains the SS58 format, the token decimals and the token symbol diff --git a/types/chain_properties_test.go b/types/chain_properties_test.go index a06464be5..285b3f64a 100644 --- a/types/chain_properties_test.go +++ b/types/chain_properties_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) var testChainProperties1 = ChainProperties{} diff --git a/types/codec.go b/types/codec.go index 8e617b853..72c4a5038 100644 --- a/types/codec.go +++ b/types/codec.go @@ -23,7 +23,7 @@ import ( "reflect" "strings" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" "golang.org/x/crypto/blake2b" ) diff --git a/types/data.go b/types/data.go index 50474ade3..98e0c1104 100644 --- a/types/data.go +++ b/types/data.go @@ -20,7 +20,7 @@ import ( "fmt" "io" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // Data is a raw data structure, containing raw bytes that are not decoded/encoded (without any length encoding). diff --git a/types/data_test.go b/types/data_test.go index d03b386cd..5c381fac7 100644 --- a/types/data_test.go +++ b/types/data_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/digest_item.go b/types/digest_item.go index 3491c1857..c03e4a812 100644 --- a/types/digest_item.go +++ b/types/digest_item.go @@ -16,7 +16,7 @@ package types -import "github.com/centrifuge/go-substrate-rpc-client/scale" +import "github.com/centrifuge/go-substrate-rpc-client/v2/scale" // DigestItem specifies the item in the logs of a digest type DigestItem struct { diff --git a/types/digest_item_test.go b/types/digest_item_test.go index 67779d882..9ff6f387d 100644 --- a/types/digest_item_test.go +++ b/types/digest_item_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) var testDigestItem1 = DigestItem{IsOther: true, AsOther: NewBytes([]byte{0xab})} diff --git a/types/digest_of_test.go b/types/digest_of_test.go index 3ed856449..5b59504fb 100644 --- a/types/digest_of_test.go +++ b/types/digest_of_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestDigestOf_EncodeDecode(t *testing.T) { diff --git a/types/digest_test.go b/types/digest_test.go index e2286f3c2..4cd18a709 100644 --- a/types/digest_test.go +++ b/types/digest_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestDigest_EncodeDecode(t *testing.T) { diff --git a/types/election_compute.go b/types/election_compute.go index 353e072f8..1c7112b2b 100644 --- a/types/election_compute.go +++ b/types/election_compute.go @@ -3,7 +3,7 @@ package types import ( "fmt" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) type ElectionCompute byte diff --git a/types/election_compute_test.go b/types/election_compute_test.go index 6ef37f7ff..0698fad99 100644 --- a/types/election_compute_test.go +++ b/types/election_compute_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" "github.com/stretchr/testify/assert" ) diff --git a/types/event_record.go b/types/event_record.go index cd7f6aeb7..4cf7e78db 100644 --- a/types/event_record.go +++ b/types/event_record.go @@ -23,7 +23,7 @@ import ( "io" "reflect" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" "github.com/ethereum/go-ethereum/log" ) diff --git a/types/event_record_test.go b/types/event_record_test.go index 0ddc2f1a3..4138e611f 100644 --- a/types/event_record_test.go +++ b/types/event_record_test.go @@ -21,7 +21,7 @@ import ( "math/big" "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/events.go b/types/events.go index 4179517e3..d22cb9231 100644 --- a/types/events.go +++ b/types/events.go @@ -19,7 +19,7 @@ package types import ( "fmt" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // EventBalancesEndowed is emitted when an account is created with some free balance diff --git a/types/events_test.go b/types/events_test.go index 5c0da2c75..a5e2eb1c4 100644 --- a/types/events_test.go +++ b/types/events_test.go @@ -4,7 +4,7 @@ import ( "bytes" "testing" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" "github.com/stretchr/testify/assert" ) diff --git a/types/example_enum_test.go b/types/example_enum_test.go index 87b053026..6cfe41594 100644 --- a/types/example_enum_test.go +++ b/types/example_enum_test.go @@ -20,8 +20,8 @@ import ( "fmt" "reflect" - "github.com/centrifuge/go-substrate-rpc-client/scale" - . "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // PhaseEnum is an enum example. Since Go has no enums, it is implemented as a struct with flags for each diff --git a/types/example_struct_test.go b/types/example_struct_test.go index 5d526837b..5a5868053 100644 --- a/types/example_struct_test.go +++ b/types/example_struct_test.go @@ -19,7 +19,7 @@ package types_test import ( "fmt" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func ExampleExampleStruct() { diff --git a/types/example_tuple_test.go b/types/example_tuple_test.go index f4a3ed330..b8b15d1a1 100644 --- a/types/example_tuple_test.go +++ b/types/example_tuple_test.go @@ -19,7 +19,7 @@ package types_test import ( "fmt" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "golang.org/x/crypto/blake2b" ) diff --git a/types/example_vec_any_test.go b/types/example_vec_any_test.go index e27c947e5..36941482c 100644 --- a/types/example_vec_any_test.go +++ b/types/example_vec_any_test.go @@ -20,8 +20,8 @@ import ( "fmt" "reflect" - "github.com/centrifuge/go-substrate-rpc-client/scale" - . "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // MyVal is a custom type that is used to hold arbitrarily encoded data. In this example, we encode uint8s with a 0x00 diff --git a/types/example_vec_test.go b/types/example_vec_test.go index 1103fb9c5..bed30a544 100644 --- a/types/example_vec_test.go +++ b/types/example_vec_test.go @@ -20,7 +20,7 @@ import ( "fmt" "reflect" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func ExampleExampleVec_simple() { diff --git a/types/extrinsic.go b/types/extrinsic.go index 1a20a93e4..b62b15afd 100644 --- a/types/extrinsic.go +++ b/types/extrinsic.go @@ -24,8 +24,8 @@ import ( "math/big" "strings" - "github.com/centrifuge/go-substrate-rpc-client/scale" - "github.com/centrifuge/go-substrate-rpc-client/signature" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/signature" ) const ( diff --git a/types/extrinsic_era.go b/types/extrinsic_era.go index 928e9e966..54d67fab5 100644 --- a/types/extrinsic_era.go +++ b/types/extrinsic_era.go @@ -16,7 +16,7 @@ package types -import "github.com/centrifuge/go-substrate-rpc-client/scale" +import "github.com/centrifuge/go-substrate-rpc-client/v2/scale" // ExtrinsicEra indicates either a mortal or immortal extrinsic type ExtrinsicEra struct { diff --git a/types/extrinsic_era_test.go b/types/extrinsic_era_test.go index feb72018c..afa5b3415 100644 --- a/types/extrinsic_era_test.go +++ b/types/extrinsic_era_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/extrinsic_payload.go b/types/extrinsic_payload.go index 41c23e799..964bad1d8 100644 --- a/types/extrinsic_payload.go +++ b/types/extrinsic_payload.go @@ -19,8 +19,8 @@ package types import ( "fmt" - "github.com/centrifuge/go-substrate-rpc-client/scale" - "github.com/centrifuge/go-substrate-rpc-client/signature" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/signature" ) // ExtrinsicPayloadV3 is a signing payload for an Extrinsic. For the final encoding, it is variable length based on diff --git a/types/extrinsic_payload_test.go b/types/extrinsic_payload_test.go index c0176841e..6e3e35210 100644 --- a/types/extrinsic_payload_test.go +++ b/types/extrinsic_payload_test.go @@ -19,8 +19,8 @@ package types_test import ( "testing" - "github.com/centrifuge/go-substrate-rpc-client/signature" - . "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/signature" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/extrinsic_signature_test.go b/types/extrinsic_signature_test.go index 9695f96a1..64705a9c2 100644 --- a/types/extrinsic_signature_test.go +++ b/types/extrinsic_signature_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/extrinsic_status.go b/types/extrinsic_status.go index 72ebbe092..b364cd4d2 100644 --- a/types/extrinsic_status.go +++ b/types/extrinsic_status.go @@ -21,7 +21,7 @@ import ( "fmt" "strings" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // ExtrinsicStatus is an enum containing the result of an extrinsic submission diff --git a/types/extrinsic_status_test.go b/types/extrinsic_status_test.go index 808e700fa..5bef32dad 100644 --- a/types/extrinsic_status_test.go +++ b/types/extrinsic_status_test.go @@ -20,7 +20,7 @@ import ( "encoding/json" "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/extrinsic_test.go b/types/extrinsic_test.go index f1ced10c2..362f69c67 100644 --- a/types/extrinsic_test.go +++ b/types/extrinsic_test.go @@ -20,8 +20,8 @@ import ( "fmt" "testing" - "github.com/centrifuge/go-substrate-rpc-client/signature" - . "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/signature" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/hash_test.go b/types/hash_test.go index d6e096a0d..5b6b5c21e 100644 --- a/types/hash_test.go +++ b/types/hash_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) var hash20 = []byte{ diff --git a/types/header.go b/types/header.go index 41c4b9b44..0cb0ca7f1 100644 --- a/types/header.go +++ b/types/header.go @@ -22,7 +22,7 @@ import ( "strconv" "strings" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) type Header struct { diff --git a/types/header_test.go b/types/header_test.go index c4dd3ecf0..e27f20075 100644 --- a/types/header_test.go +++ b/types/header_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) var exampleHeader = Header{ diff --git a/types/health_test.go b/types/health_test.go index 121307b78..a6b772cb9 100644 --- a/types/health_test.go +++ b/types/health_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestHealth_EncodeDecode(t *testing.T) { diff --git a/types/int.go b/types/int.go index ef555010a..a6611c718 100644 --- a/types/int.go +++ b/types/int.go @@ -21,7 +21,7 @@ import ( "fmt" "math/big" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // I8 is a signed 8-bit integer diff --git a/types/int_test.go b/types/int_test.go index 81ae30899..0d741c5d6 100644 --- a/types/int_test.go +++ b/types/int_test.go @@ -20,7 +20,7 @@ import ( "math/big" "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/metadata.go b/types/metadata.go index 7c433ec69..24895a5ff 100644 --- a/types/metadata.go +++ b/types/metadata.go @@ -19,7 +19,7 @@ package types import ( "fmt" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) const MagicNumber uint32 = 0x6174656d diff --git a/types/metadataV10.go b/types/metadataV10.go index 55a667504..da697513b 100644 --- a/types/metadataV10.go +++ b/types/metadataV10.go @@ -22,9 +22,9 @@ import ( "hash" "strings" - ghash "github.com/centrifuge/go-substrate-rpc-client/hash" - "github.com/centrifuge/go-substrate-rpc-client/scale" - "github.com/centrifuge/go-substrate-rpc-client/xxhash" + ghash "github.com/centrifuge/go-substrate-rpc-client/v2/hash" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/xxhash" ) // Modelled after packages/types/src/Metadata/v10/Metadata.ts diff --git a/types/metadataV10_test.go b/types/metadataV10_test.go index 2091784ee..9a728cc70 100644 --- a/types/metadataV10_test.go +++ b/types/metadataV10_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/metadataV11.go b/types/metadataV11.go index 143ddc49d..633aad675 100644 --- a/types/metadataV11.go +++ b/types/metadataV11.go @@ -1,6 +1,6 @@ package types -import "github.com/centrifuge/go-substrate-rpc-client/scale" +import "github.com/centrifuge/go-substrate-rpc-client/v2/scale" // Modelled after packages/types/src/Metadata/v10/toV11.ts type MetadataV11 struct { diff --git a/types/metadataV11_test.go b/types/metadataV11_test.go index 4be422e60..fb9356d50 100644 --- a/types/metadataV11_test.go +++ b/types/metadataV11_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/metadataV12.go b/types/metadataV12.go index b367c9b40..6f3e2c5d2 100644 --- a/types/metadataV12.go +++ b/types/metadataV12.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // Modelled after packages/types/src/Metadata/v11/toV12.ts diff --git a/types/metadataV12_test.go b/types/metadataV12_test.go index 0cdd1d4a2..fe454aa31 100644 --- a/types/metadataV12_test.go +++ b/types/metadataV12_test.go @@ -3,7 +3,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/metadataV4.go b/types/metadataV4.go index e190dcc47..fc3ed667c 100644 --- a/types/metadataV4.go +++ b/types/metadataV4.go @@ -22,8 +22,8 @@ import ( "hash" "strings" - "github.com/centrifuge/go-substrate-rpc-client/scale" - "github.com/centrifuge/go-substrate-rpc-client/xxhash" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/xxhash" "golang.org/x/crypto/blake2b" ) diff --git a/types/metadataV4_test.go b/types/metadataV4_test.go index c6b4d9a42..b2c2c10e7 100644 --- a/types/metadataV4_test.go +++ b/types/metadataV4_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/metadataV7.go b/types/metadataV7.go index a8df3892b..ae04f15ff 100644 --- a/types/metadataV7.go +++ b/types/metadataV7.go @@ -21,8 +21,8 @@ import ( "hash" "strings" - "github.com/centrifuge/go-substrate-rpc-client/scale" - "github.com/centrifuge/go-substrate-rpc-client/xxhash" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/xxhash" ) // Modelled after packages/types/src/Metadata/v7/Metadata.ts diff --git a/types/metadataV7_test.go b/types/metadataV7_test.go index 8b8918ed0..a8a3a4675 100644 --- a/types/metadataV7_test.go +++ b/types/metadataV7_test.go @@ -21,7 +21,7 @@ import ( "github.com/stretchr/testify/assert" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) var exampleMetadataV7 = Metadata{ diff --git a/types/metadataV8.go b/types/metadataV8.go index e1fcfe19b..b29444ee1 100644 --- a/types/metadataV8.go +++ b/types/metadataV8.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // Modelled after packages/types/src/Metadata/v8/Metadata.ts diff --git a/types/metadataV8_test.go b/types/metadataV8_test.go index 78084bae3..dbd5fd184 100644 --- a/types/metadataV8_test.go +++ b/types/metadataV8_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/metadataV9.go b/types/metadataV9.go index feae41404..00d9b9cef 100644 --- a/types/metadataV9.go +++ b/types/metadataV9.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // Modelled after packages/types/src/Metadata/v9/Metadata.ts diff --git a/types/metadataV9_test.go b/types/metadataV9_test.go index b0bb2bbb9..8aaaa33b8 100644 --- a/types/metadataV9_test.go +++ b/types/metadataV9_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/moment.go b/types/moment.go index 8fb22026f..9324eb954 100644 --- a/types/moment.go +++ b/types/moment.go @@ -21,7 +21,7 @@ import ( "math" "time" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) const ( diff --git a/types/moment_test.go b/types/moment_test.go index 01cd05395..a30ba1e58 100644 --- a/types/moment_test.go +++ b/types/moment_test.go @@ -20,7 +20,7 @@ import ( "testing" "time" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestMoment_EncodeDecode(t *testing.T) { diff --git a/types/multi_signature.go b/types/multi_signature.go index a3cc3d312..1a81c560a 100644 --- a/types/multi_signature.go +++ b/types/multi_signature.go @@ -16,7 +16,7 @@ package types -import "github.com/centrifuge/go-substrate-rpc-client/scale" +import "github.com/centrifuge/go-substrate-rpc-client/v2/scale" // MultiSignature type MultiSignature struct { diff --git a/types/multi_signature_test.go b/types/multi_signature_test.go index dfbcb58cb..f8c620a41 100644 --- a/types/multi_signature_test.go +++ b/types/multi_signature_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) var testMultiSig1 = MultiSignature{IsEd25519: true, AsEd25519: NewSignature(hash64)} diff --git a/types/network_state_test.go b/types/network_state_test.go index c7cfe4992..3c6fbc2e2 100644 --- a/types/network_state_test.go +++ b/types/network_state_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestNetworkState_EncodeDecode(t *testing.T) { diff --git a/types/null.go b/types/null.go index f8ec4bc17..06ddb6f6a 100644 --- a/types/null.go +++ b/types/null.go @@ -17,7 +17,7 @@ package types import ( - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // Null is a type that does not contain anything (apart from null) diff --git a/types/null_test.go b/types/null_test.go index ff21bf349..871aec714 100644 --- a/types/null_test.go +++ b/types/null_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestNull_EncodeDecode(t *testing.T) { diff --git a/types/option_bool.go b/types/option_bool.go index 104c5a6bf..5437c4ff7 100644 --- a/types/option_bool.go +++ b/types/option_bool.go @@ -19,7 +19,7 @@ package types import ( "fmt" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // OptionBool is a structure that can store a Bool or a missing value diff --git a/types/option_bool_test.go b/types/option_bool_test.go index 290c6c252..a93cfb545 100644 --- a/types/option_bool_test.go +++ b/types/option_bool_test.go @@ -21,7 +21,7 @@ import ( "github.com/stretchr/testify/assert" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestOptionBool_EncodeDecode(t *testing.T) { diff --git a/types/option_bytes.go b/types/option_bytes.go index 067c3b693..8a05386c7 100644 --- a/types/option_bytes.go +++ b/types/option_bytes.go @@ -16,7 +16,7 @@ package types -import "github.com/centrifuge/go-substrate-rpc-client/scale" +import "github.com/centrifuge/go-substrate-rpc-client/v2/scale" // OptionBytes is a structure that can store a Bytes or a missing value type OptionBytes struct { diff --git a/types/option_bytes_test.go b/types/option_bytes_test.go index d0e3cd2a6..7c509d544 100644 --- a/types/option_bytes_test.go +++ b/types/option_bytes_test.go @@ -21,7 +21,7 @@ import ( "github.com/stretchr/testify/assert" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestOptionBytes8_EncodeDecode(t *testing.T) { diff --git a/types/option_hash.go b/types/option_hash.go index 0c2b4ba27..c1616c7f8 100644 --- a/types/option_hash.go +++ b/types/option_hash.go @@ -16,7 +16,7 @@ package types -import "github.com/centrifuge/go-substrate-rpc-client/scale" +import "github.com/centrifuge/go-substrate-rpc-client/v2/scale" // OptionH160 is a structure that can store a H160 or a missing value type OptionH160 struct { diff --git a/types/option_hash_test.go b/types/option_hash_test.go index a3890a658..54172278c 100644 --- a/types/option_hash_test.go +++ b/types/option_hash_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestOptionH160_EncodeDecode(t *testing.T) { diff --git a/types/option_int.go b/types/option_int.go index 5a097874c..12ba52286 100644 --- a/types/option_int.go +++ b/types/option_int.go @@ -16,7 +16,7 @@ package types -import "github.com/centrifuge/go-substrate-rpc-client/scale" +import "github.com/centrifuge/go-substrate-rpc-client/v2/scale" // OptionI8 is a structure that can store a I8 or a missing value type OptionI8 struct { diff --git a/types/option_int_test.go b/types/option_int_test.go index 76514c3cc..39e9758da 100644 --- a/types/option_int_test.go +++ b/types/option_int_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestOptionI8_EncodeDecode(t *testing.T) { diff --git a/types/option_uint.go b/types/option_uint.go index 230fb7de2..91ef915ef 100644 --- a/types/option_uint.go +++ b/types/option_uint.go @@ -16,7 +16,7 @@ package types -import "github.com/centrifuge/go-substrate-rpc-client/scale" +import "github.com/centrifuge/go-substrate-rpc-client/v2/scale" // OptionU8 is a structure that can store a U8 or a missing value type OptionU8 struct { diff --git a/types/option_uint_test.go b/types/option_uint_test.go index e7b5c8254..7fab92839 100644 --- a/types/option_uint_test.go +++ b/types/option_uint_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestOptionU8_EncodeDecode(t *testing.T) { diff --git a/types/origin.go b/types/origin.go index 779c2b3e9..732f00955 100644 --- a/types/origin.go +++ b/types/origin.go @@ -17,7 +17,7 @@ package types import ( - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // Origin is an internal-only value that will be ignored when encoding/decoding diff --git a/types/origin_test.go b/types/origin_test.go index ed7b9e3dc..4303d018e 100644 --- a/types/origin_test.go +++ b/types/origin_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) // newOrigin creates a new Origin type. This function is not exported by purpose – Origin should be ignored and not be diff --git a/types/peer_info_test.go b/types/peer_info_test.go index 4aa934308..4190426b6 100644 --- a/types/peer_info_test.go +++ b/types/peer_info_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) var testPeerInfo = PeerInfo{ diff --git a/types/runtime_version.go b/types/runtime_version.go index 237a027cd..bd4dd9054 100644 --- a/types/runtime_version.go +++ b/types/runtime_version.go @@ -20,7 +20,7 @@ import ( "encoding/json" "fmt" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) type RuntimeVersion struct { diff --git a/types/runtime_version_test.go b/types/runtime_version_test.go index 93938ea1a..e4da7e431 100644 --- a/types/runtime_version_test.go +++ b/types/runtime_version_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/signature_test.go b/types/signature_test.go index ab5d1d384..415329e32 100644 --- a/types/signature_test.go +++ b/types/signature_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestSignature_EncodeDecode(t *testing.T) { diff --git a/types/signed_block_test.go b/types/signed_block_test.go index 782eef55b..fc713caf9 100644 --- a/types/signed_block_test.go +++ b/types/signed_block_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/storage_change_set_test.go b/types/storage_change_set_test.go index 8901fd4c6..d554e4609 100644 --- a/types/storage_change_set_test.go +++ b/types/storage_change_set_test.go @@ -20,7 +20,7 @@ import ( "encoding/json" "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/storage_data_raw.go b/types/storage_data_raw.go index b27628d91..6b32944d6 100644 --- a/types/storage_data_raw.go +++ b/types/storage_data_raw.go @@ -20,7 +20,7 @@ import ( "fmt" "io" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // StorageDataRaw contains raw bytes that are not decoded/encoded. diff --git a/types/storage_data_raw_test.go b/types/storage_data_raw_test.go index b50488321..845ad13bd 100644 --- a/types/storage_data_raw_test.go +++ b/types/storage_data_raw_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/storage_key.go b/types/storage_key.go index 998e7fd1a..07132fd48 100644 --- a/types/storage_key.go +++ b/types/storage_key.go @@ -20,8 +20,8 @@ import ( "fmt" "io" - "github.com/centrifuge/go-substrate-rpc-client/scale" - "github.com/centrifuge/go-substrate-rpc-client/xxhash" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/xxhash" ) // StorageKey represents typically hashed storage keys of the system. diff --git a/types/storage_key_test.go b/types/storage_key_test.go index 3e68f6427..d36d7c487 100644 --- a/types/storage_key_test.go +++ b/types/storage_key_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/test_utils_test.go b/types/test_utils_test.go index db3dc4cf9..c265e3793 100644 --- a/types/test_utils_test.go +++ b/types/test_utils_test.go @@ -22,8 +22,8 @@ import ( "reflect" "testing" - "github.com/centrifuge/go-substrate-rpc-client/scale" - . "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/text_test.go b/types/text_test.go index 6ba113f3f..8387e7d1c 100644 --- a/types/text_test.go +++ b/types/text_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestString_EncodeDecode(t *testing.T) { diff --git a/types/type_test.go b/types/type_test.go index 1dd57adcd..39e5ee489 100644 --- a/types/type_test.go +++ b/types/type_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestType_EncodeDecode(t *testing.T) { diff --git a/types/ucompact.go b/types/ucompact.go index 336c6bd9a..b7910a039 100644 --- a/types/ucompact.go +++ b/types/ucompact.go @@ -19,7 +19,7 @@ package types import ( "math/big" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) type UCompact big.Int diff --git a/types/uint.go b/types/uint.go index 5fc346a72..7498e6f78 100644 --- a/types/uint.go +++ b/types/uint.go @@ -21,7 +21,7 @@ import ( "fmt" "math/big" - "github.com/centrifuge/go-substrate-rpc-client/scale" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" ) // U8 is an unsigned 8-bit integer diff --git a/types/uint_test.go b/types/uint_test.go index c4d681276..047af276c 100644 --- a/types/uint_test.go +++ b/types/uint_test.go @@ -21,8 +21,8 @@ import ( "math/big" "testing" - "github.com/centrifuge/go-substrate-rpc-client/scale" - . "github.com/centrifuge/go-substrate-rpc-client/types" + "github.com/centrifuge/go-substrate-rpc-client/v2/scale" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" "github.com/stretchr/testify/assert" ) diff --git a/types/usize_test.go b/types/usize_test.go index d84a0787a..36c668e58 100644 --- a/types/usize_test.go +++ b/types/usize_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestUSize_EncodeDecode(t *testing.T) { diff --git a/types/weight_multiplier_test.go b/types/weight_multiplier_test.go index dc7c893ba..e9ea9c7c2 100644 --- a/types/weight_multiplier_test.go +++ b/types/weight_multiplier_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestWeightMultiplier_EncodeDecode(t *testing.T) { diff --git a/types/weight_test.go b/types/weight_test.go index 3a3ea1816..c6d84702a 100644 --- a/types/weight_test.go +++ b/types/weight_test.go @@ -19,7 +19,7 @@ package types_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/types" + . "github.com/centrifuge/go-substrate-rpc-client/v2/types" ) func TestWeight_EncodeDecode(t *testing.T) { diff --git a/xxhash/xxhash_test.go b/xxhash/xxhash_test.go index e27a14510..691bfdb34 100644 --- a/xxhash/xxhash_test.go +++ b/xxhash/xxhash_test.go @@ -19,7 +19,7 @@ package xxhash_test import ( "testing" - . "github.com/centrifuge/go-substrate-rpc-client/xxhash" + . "github.com/centrifuge/go-substrate-rpc-client/v2/xxhash" "github.com/stretchr/testify/assert" )