Skip to content

Commit f179f4a

Browse files
author
Seun Lanlege
authored
Merge pull request #2 from ComposableFi/fix/change-module-address
Fix/ change package url
2 parents ab93c5c + 982a698 commit f179f4a

File tree

178 files changed

+267
-273
lines changed

Some content is hidden

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

178 files changed

+267
-273
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Go Substrate RPC Client (GSRPC)
22

33
[![License: Apache v2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4-
[![GoDoc Reference](https://godoc.org/github.com/centrifuge/go-substrate-rpc-client?status.svg)](https://godoc.org/github.com/centrifuge/go-substrate-rpc-client)
5-
[![Build Status](https://travis-ci.com/centrifuge/go-substrate-rpc-client.svg?branch=master)](https://travis-ci.com/centrifuge/go-substrate-rpc-client)
6-
[![codecov](https://codecov.io/gh/centrifuge/go-substrate-rpc-client/branch/master/graph/badge.svg)](https://codecov.io/gh/centrifuge/go-substrate-rpc-client)
7-
[![Go Report Card](https://goreportcard.com/badge/github.com/centrifuge/go-substrate-rpc-client)](https://goreportcard.com/report/github.com/centrifuge/go-substrate-rpc-client)
4+
[![GoDoc Reference](https://godoc.org/github.com/ComposableFi/go-substrate-rpc-client?status.svg)](https://godoc.org/github.com/ComposableFi/go-substrate-rpc-client)
5+
[![Go Report Card](https://goreportcard.com/badge/github.com/ComposableFi/go-substrate-rpc-client)](https://goreportcard.com/report/github.com/ComposableFi/go-substrate-rpc-client)
86

97
Substrate RPC client in Go. It provides APIs and types around Polkadot and any Substrate-based chain RPC calls.
108
This client is modelled after [polkadot-js/api](https://github.com/polkadot-js/api).
@@ -15,7 +13,7 @@ This package is feature complete, but it is relatively new and might still conta
1513

1614
## Documentation & Usage Examples
1715

18-
Please refer to https://godoc.org/github.com/centrifuge/go-substrate-rpc-client
16+
Please refer to https://godoc.org/github.com/ComposableFi/go-substrate-rpc-client
1917

2018
## Contributing
2119

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/v4/config"
24-
gethrpc "github.com/centrifuge/go-substrate-rpc-client/v4/gethrpc"
25-
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
23+
"github.com/ComposableFi/go-substrate-rpc-client/v4/config"
24+
gethrpc "github.com/ComposableFi/go-substrate-rpc-client/v4/gethrpc"
25+
"github.com/ComposableFi/go-substrate-rpc-client/v4/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/v4/types/) exports a number
39+
The package [types](https://godoc.org/github.com/ComposableFi/go-substrate-rpc-client/v4/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/v4/types/#example_Vec_simple
45+
1. Vectors, lists, series, sets, arrays, slices: https://godoc.org/github.com/ComposableFi/go-substrate-rpc-client/v4/types/#example_Vec_simple
4646
47-
2. Structs: https://godoc.org/github.com/centrifuge/go-substrate-rpc-client/v4/types/#example_Struct_simple
47+
2. Structs: https://godoc.org/github.com/ComposableFi/go-substrate-rpc-client/v4/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/v4/types
59+
For more information about the types sub-package, see https://godoc.org/github.com/ComposableFi/go-substrate-rpc-client/v4/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/v4
1+
module github.com/ComposableFi/go-substrate-rpc-client/v4
22

33
go 1.17
44

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/v4/client"
21-
"github.com/centrifuge/go-substrate-rpc-client/v4/rpc"
20+
"github.com/ComposableFi/go-substrate-rpc-client/v4/client"
21+
"github.com/ComposableFi/go-substrate-rpc-client/v4/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/v4"
25-
"github.com/centrifuge/go-substrate-rpc-client/v4/config"
26-
"github.com/centrifuge/go-substrate-rpc-client/v4/signature"
27-
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
24+
gsrpc "github.com/ComposableFi/go-substrate-rpc-client/v4"
25+
"github.com/ComposableFi/go-substrate-rpc-client/v4/config"
26+
"github.com/ComposableFi/go-substrate-rpc-client/v4/signature"
27+
"github.com/ComposableFi/go-substrate-rpc-client/v4/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/v4/client"
19+
import "github.com/ComposableFi/go-substrate-rpc-client/v4/client"
2020

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

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/v4/types"
20+
"github.com/ComposableFi/go-substrate-rpc-client/v4/types"
2121
)
2222

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

rpc/author/pending_extrinsics_test.go

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

23-
gsrpc "github.com/centrifuge/go-substrate-rpc-client/v4"
24-
"github.com/centrifuge/go-substrate-rpc-client/v4/config"
23+
gsrpc "github.com/ComposableFi/go-substrate-rpc-client/v4"
24+
"github.com/ComposableFi/go-substrate-rpc-client/v4/config"
2525
"github.com/stretchr/testify/assert"
2626
)
2727

rpc/author/submit_and_watch_extrinsic.go

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

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

2828
// ExtrinsicStatusSubscription is a subscription established through one of the Client's subscribe methods.

rpc/author/submit_and_watch_extrinsic_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import (
44
"fmt"
55
"testing"
66

7-
gsrpc "github.com/centrifuge/go-substrate-rpc-client/v4"
8-
"github.com/centrifuge/go-substrate-rpc-client/v4/config"
9-
"github.com/centrifuge/go-substrate-rpc-client/v4/rpc/author"
10-
"github.com/centrifuge/go-substrate-rpc-client/v4/signature"
11-
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
7+
gsrpc "github.com/ComposableFi/go-substrate-rpc-client/v4"
8+
"github.com/ComposableFi/go-substrate-rpc-client/v4/config"
9+
"github.com/ComposableFi/go-substrate-rpc-client/v4/rpc/author"
10+
"github.com/ComposableFi/go-substrate-rpc-client/v4/signature"
11+
"github.com/ComposableFi/go-substrate-rpc-client/v4/types"
1212
"github.com/stretchr/testify/assert"
1313
)
1414

rpc/author/submit_extrinsic.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/v4/types"
19+
import "github.com/ComposableFi/go-substrate-rpc-client/v4/types"
2020

2121
// SubmitExtrinsic will submit a fully formatted extrinsic for block inclusion
2222
func (a *Author) SubmitExtrinsic(xt types.Extrinsic) (types.Hash, error) {

rpc/author/submit_extrinsic_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import (
2020
"fmt"
2121
"testing"
2222

23-
gsrpc "github.com/centrifuge/go-substrate-rpc-client/v4"
24-
"github.com/centrifuge/go-substrate-rpc-client/v4/config"
25-
"github.com/centrifuge/go-substrate-rpc-client/v4/signature"
26-
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
23+
gsrpc "github.com/ComposableFi/go-substrate-rpc-client/v4"
24+
"github.com/ComposableFi/go-substrate-rpc-client/v4/config"
25+
"github.com/ComposableFi/go-substrate-rpc-client/v4/signature"
26+
"github.com/ComposableFi/go-substrate-rpc-client/v4/types"
2727
"github.com/stretchr/testify/assert"
2828
)
2929

rpc/chain/chain.go

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

1717
package chain
1818

19-
import (
20-
"github.com/centrifuge/go-substrate-rpc-client/v4/client"
21-
)
19+
import "github.com/ComposableFi/go-substrate-rpc-client/v4/client"
2220

2321
// Chain exposes methods for retrieval of chain data
2422
type Chain struct {

rpc/chain/chain_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/v4/client"
24-
"github.com/centrifuge/go-substrate-rpc-client/v4/config"
23+
"github.com/ComposableFi/go-substrate-rpc-client/v4/client"
24+
"github.com/ComposableFi/go-substrate-rpc-client/v4/config"
2525
)
2626

2727
var chain *Chain

rpc/chain/get_block.go

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

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

2424
// GetBlock returns the header and body of the relay chain block with the given hash

rpc/chain/get_block_hash.go

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

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

2323
// GetBlockHash returns the block hash for a specific block height

rpc/chain/get_block_hash_test.go

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

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

rpc/chain/get_finalized_head.go

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

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

2323
// GetFinalizedHead returns the hash of the last finalized block in the canon chain

rpc/chain/get_header.go

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

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

2424
// GetHeader retrieves the header for the specific block

rpc/chain/subscribe_finalized_heads.go

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

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

2828
// FinalizedHeadsSubscription is a subscription established through one of the Client's subscribe methods.

rpc/chain/subscribe_new_heads.go

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

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

2828
// NewHeadsSubscription is a subscription established through one of the Client's subscribe methods.

rpc/main.go

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

1919
import (
20-
"github.com/centrifuge/go-substrate-rpc-client/v4/client"
21-
"github.com/centrifuge/go-substrate-rpc-client/v4/rpc/author"
22-
"github.com/centrifuge/go-substrate-rpc-client/v4/rpc/chain"
23-
"github.com/centrifuge/go-substrate-rpc-client/v4/rpc/mmr"
24-
"github.com/centrifuge/go-substrate-rpc-client/v4/rpc/offchain"
25-
"github.com/centrifuge/go-substrate-rpc-client/v4/rpc/state"
26-
"github.com/centrifuge/go-substrate-rpc-client/v4/rpc/system"
27-
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
20+
"github.com/ComposableFi/go-substrate-rpc-client/v4/client"
21+
"github.com/ComposableFi/go-substrate-rpc-client/v4/rpc/author"
22+
"github.com/ComposableFi/go-substrate-rpc-client/v4/rpc/chain"
23+
"github.com/ComposableFi/go-substrate-rpc-client/v4/rpc/mmr"
24+
"github.com/ComposableFi/go-substrate-rpc-client/v4/rpc/offchain"
25+
"github.com/ComposableFi/go-substrate-rpc-client/v4/rpc/state"
26+
"github.com/ComposableFi/go-substrate-rpc-client/v4/rpc/system"
27+
"github.com/ComposableFi/go-substrate-rpc-client/v4/types"
2828
)
2929

3030
type RPC struct {

rpc/mmr/generate_proof.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package mmr
22

33
import (
4-
"github.com/centrifuge/go-substrate-rpc-client/v4/client"
5-
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
4+
"github.com/ComposableFi/go-substrate-rpc-client/v4/client"
5+
"github.com/ComposableFi/go-substrate-rpc-client/v4/types"
66
)
77

88
// GenerateProof retrieves a MMR proof and leaf for the specified leave index, at the given blockHash (useful to query a

rpc/mmr/mmr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package mmr
22

3-
import "github.com/centrifuge/go-substrate-rpc-client/v4/client"
3+
import "github.com/ComposableFi/go-substrate-rpc-client/v4/client"
44

55
// MMR exposes methods for retrieval of MMR data
66
type MMR struct {

rpc/offchain/get_local_storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package offchain
33
import (
44
"fmt"
55

6-
"github.com/centrifuge/go-substrate-rpc-client/v4/types"
6+
"github.com/ComposableFi/go-substrate-rpc-client/v4/types"
77
)
88

99
// StorageKind ...

rpc/offchain/offchain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package offchain
22

3-
import "github.com/centrifuge/go-substrate-rpc-client/v4/client"
3+
import "github.com/ComposableFi/go-substrate-rpc-client/v4/client"
44

55
// Offchain exposes methods for retrieval of off-chain data
66
type Offchain struct {

rpc/offchain/offchain_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"os"
55
"testing"
66

7-
"github.com/centrifuge/go-substrate-rpc-client/v4/client"
8-
"github.com/centrifuge/go-substrate-rpc-client/v4/config"
7+
"github.com/ComposableFi/go-substrate-rpc-client/v4/client"
8+
"github.com/ComposableFi/go-substrate-rpc-client/v4/config"
99
)
1010

1111
var offchain *Offchain

rpc/state/get_child_keys.go

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

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

2424
// GetChildKeys retreives the keys with the given prefix of a specific child storage

rpc/state/get_child_keys_test.go

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

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

rpc/state/get_child_storage.go

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

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

2424
// GetChildStorage retreives the child storage for a key and decodes them into the provided interface. Ok is true if the

rpc/state/get_child_storage_hash.go

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

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

2424
// GetChildStorageHash retreives the child storage hash for the given key

rpc/state/get_child_storage_hash_test.go

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

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

0 commit comments

Comments
 (0)