Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
renames project from godot to golkadot
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-hanna committed Feb 8, 2019
2 parents 29364f4 + 4ca7c2b commit d8f19c6
Show file tree
Hide file tree
Showing 119 changed files with 317 additions and 308 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Mac
.DS_Store

# vim
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,11 @@ test/common/diskdb:
.PHONY: move/repo
move/repo:
@find . -type f -name '*.go' -not \( -path './.git/*' -o -path './vendor/*' \) -exec sed -i 's|github.com/c3systems/go-substrate/|github.com/opennetsys/go-substrate/|g' {} \;

.PHONY: move/name
move/name:
@find . -type f -name '*.go' -not \( -path './.git/*' -o -path './vendor/*' \) -exec sed -i 's|github.com/opennetsys/go-substrate/|github.com/opennetsys/godot/|g' {} \;

.PHONY: move/name/golkadot
move/name/golkadot:
@find . -type f -name '*.go' -not \( -path './.git/*' -o -path './vendor/*' \) -exec sed -i 's|github.com/opennetsys/godot/|github.com/opennetsys/golkadot/|g' {} \;
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# go-substrate
# golkadot

> [Polkadot](https://github.com/paritytech/polkadot) [Substrate](https://github.com/paritytech/substrate) implementation in Go
[![License](http://img.shields.io/badge/license-GNU%20AGPL%203.0-blue.svg)](https://raw.githubusercontent.com/opennetsys/go-substrate/master/LICENSE)
[![CircleCI](https://circleci.com/gh/opennetsys/go-substrate.svg?style=svg)](https://circleci.com/gh/opennetsys/go-substrate)
[![Coverage Status](https://coveralls.io/repos/github/opennetsys/go-substrate/badge.svg?branch=master)](https://coveralls.io/github/opennetsys/go-substrate?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/opennetsys/go-substrate?)](https://goreportcard.com/report/github.com/opennetsys/go-substrate)
[![GoDoc](https://godoc.org/github.com/opennetsys/go-substrate?status.svg)](https://godoc.org/github.com/opennetsys/go-substrate)
[![License](http://img.shields.io/badge/license-GNU%20AGPL%203.0-blue.svg)](https://raw.githubusercontent.com/opennetsys/golkadot/master/LICENSE)
[![CircleCI](https://circleci.com/gh/opennetsys/golkadot.svg?style=svg)](https://circleci.com/gh/opennetsys/golkadot)
[![Coverage Status](https://coveralls.io/repos/github/opennetsys/golkadot/badge.svg?branch=master)](https://coveralls.io/github/opennetsys/golkadot?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/opennetsys/golkadot?)](https://goreportcard.com/report/github.com/opennetsys/golkadot)
[![GoDoc](https://godoc.org/github.com/opennetsys/golkadot?status.svg)](https://godoc.org/github.com/opennetsys/golkadot)
[![stability-experimental](https://img.shields.io/badge/stability-experimental-orange.svg)](https://github.com/emersion/stability-badges#experimental)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](#contributing)

NOTE: go-substrate is a very early work-in-progress. It's currently highly unstable and not very useful as it is.
NOTE: golkadot is a very early work-in-progress. It's currently highly unstable and not very useful as it is.

## Contents

Expand Down
26 changes: 13 additions & 13 deletions client/chain/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ import (
"log"
"math/big"

clientchainloader "github.com/opennetsys/go-substrate/client/chain/loader"
clientchaintypes "github.com/opennetsys/go-substrate/client/chain/types"
clientdb "github.com/opennetsys/go-substrate/client/db"
clientruntime "github.com/opennetsys/go-substrate/client/runtime"
storagetypes "github.com/opennetsys/go-substrate/client/storage/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
clientwasm "github.com/opennetsys/go-substrate/client/wasm"
"github.com/opennetsys/go-substrate/common/crypto"
"github.com/opennetsys/go-substrate/common/hexutil"
"github.com/opennetsys/go-substrate/common/triehash"
"github.com/opennetsys/go-substrate/common/u8compact"
"github.com/opennetsys/go-substrate/common/u8util"
"github.com/opennetsys/go-substrate/logger"
clientchainloader "github.com/opennetsys/golkadot/client/chain/loader"
clientchaintypes "github.com/opennetsys/golkadot/client/chain/types"
clientdb "github.com/opennetsys/golkadot/client/db"
clientruntime "github.com/opennetsys/golkadot/client/runtime"
storagetypes "github.com/opennetsys/golkadot/client/storage/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
clientwasm "github.com/opennetsys/golkadot/client/wasm"
"github.com/opennetsys/golkadot/common/crypto"
"github.com/opennetsys/golkadot/common/hexutil"
"github.com/opennetsys/golkadot/common/triehash"
"github.com/opennetsys/golkadot/common/u8compact"
"github.com/opennetsys/golkadot/common/u8util"
"github.com/opennetsys/golkadot/logger"
)

// Chain ...
Expand Down
2 changes: 1 addition & 1 deletion client/chain/chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package clientchain
import (
"testing"

"github.com/opennetsys/go-substrate/common/u8util"
"github.com/opennetsys/golkadot/common/u8util"
)

func TestChains(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions client/chain/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"os"
"path/filepath"

chainjson "github.com/opennetsys/go-substrate/client/chain/json"
clientchaintypes "github.com/opennetsys/go-substrate/client/chain/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
"github.com/opennetsys/go-substrate/common/triehash"
"github.com/opennetsys/go-substrate/common/u8util"
chainjson "github.com/opennetsys/golkadot/client/chain/json"
clientchaintypes "github.com/opennetsys/golkadot/client/chain/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
"github.com/opennetsys/golkadot/common/triehash"
"github.com/opennetsys/golkadot/common/u8util"
)

// Loader ...
Expand Down
4 changes: 2 additions & 2 deletions client/chain/loader/loader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package chainloader
import (
"testing"

clienttypes "github.com/opennetsys/go-substrate/client/types"
"github.com/opennetsys/go-substrate/common/u8util"
clienttypes "github.com/opennetsys/golkadot/client/types"
"github.com/opennetsys/golkadot/common/u8util"
)

func TestLoader(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion client/chain/types/types.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package clientchaintypes

import (
clienttypes "github.com/opennetsys/go-substrate/client/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
)

// ChainJSON ...
Expand Down
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"math/big"
"time"

clienttypes "github.com/opennetsys/go-substrate/client/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
)

// TODO: https://github.com/polkadot-js/client/blob/master/packages/client/src/index.ts
Expand Down
4 changes: 2 additions & 2 deletions client/db/block.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package clientdb

import (
"github.com/opennetsys/go-substrate/common/db"
types "github.com/opennetsys/go-substrate/types"
"github.com/opennetsys/golkadot/common/db"
types "github.com/opennetsys/golkadot/types"
)

func createU8a(dbs db.BaseDB, fn types.StorageFunction) StorageMethodU8a {
Expand Down
12 changes: 6 additions & 6 deletions client/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"strings"
"time"

clientchainloader "github.com/opennetsys/go-substrate/client/chain/loader"
clientdbtypes "github.com/opennetsys/go-substrate/client/db/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
"github.com/opennetsys/go-substrate/common/db"
diskdb "github.com/opennetsys/go-substrate/common/diskdb"
"github.com/opennetsys/go-substrate/common/triedb"
clientchainloader "github.com/opennetsys/golkadot/client/chain/loader"
clientdbtypes "github.com/opennetsys/golkadot/client/db/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
"github.com/opennetsys/golkadot/common/db"
diskdb "github.com/opennetsys/golkadot/common/diskdb"
"github.com/opennetsys/golkadot/common/triedb"
)

// TODO: https://github.com/polkadot-js/client/blob/master/packages/client-db/src/index.ts
Expand Down
6 changes: 3 additions & 3 deletions client/db/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package clientdb
import (
"testing"

clientchainloader "github.com/opennetsys/go-substrate/client/chain/loader"
clientdbtypes "github.com/opennetsys/go-substrate/client/db/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
clientchainloader "github.com/opennetsys/golkadot/client/chain/loader"
clientdbtypes "github.com/opennetsys/golkadot/client/db/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
)

func TestClientDB(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/db/keys.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package clientdb

import (
storagetypes "github.com/opennetsys/go-substrate/client/storage/types"
types "github.com/opennetsys/go-substrate/types"
storagetypes "github.com/opennetsys/golkadot/client/storage/types"
types "github.com/opennetsys/golkadot/types"
)

// StorageFunctionMetadata, StorageFunctionModifier, StorageFunctionType from @polkadot/types/Metadata/Modules
Expand Down
6 changes: 3 additions & 3 deletions client/db/state.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package clientdb

import (
storagetypes "github.com/opennetsys/go-substrate/client/storage/types"
"github.com/opennetsys/go-substrate/common/db"
"github.com/opennetsys/go-substrate/common/triedb"
storagetypes "github.com/opennetsys/golkadot/client/storage/types"
"github.com/opennetsys/golkadot/common/db"
"github.com/opennetsys/golkadot/common/triedb"
)

func createStateDB(dbs *triedb.TrieDB) *StateDB {
Expand Down
2 changes: 1 addition & 1 deletion client/db/types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package clientdb

import "github.com/opennetsys/go-substrate/common/triedb"
import "github.com/opennetsys/golkadot/common/triedb"

// DefaultPath ...
var DefaultPath = "~/.go-substrate"
Expand Down
2 changes: 1 addition & 1 deletion client/p2p/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package p2p
import (
"context"

"github.com/opennetsys/go-substrate/logger"
"github.com/opennetsys/golkadot/logger"

host "github.com/libp2p/go-libp2p-host"
peerstore "github.com/libp2p/go-libp2p-peerstore"
Expand Down
4 changes: 2 additions & 2 deletions client/p2p/handler/bft.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handler

import (
handlertypes "github.com/opennetsys/go-substrate/client/p2p/handler/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
handlertypes "github.com/opennetsys/golkadot/client/p2p/handler/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
)

// note: ensure the struct implements the interface
Expand Down
6 changes: 3 additions & 3 deletions client/p2p/handler/blockAnnounce.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package handler
import (
"errors"

handlertypes "github.com/opennetsys/go-substrate/client/p2p/handler/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
"github.com/opennetsys/go-substrate/logger"
handlertypes "github.com/opennetsys/golkadot/client/p2p/handler/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
"github.com/opennetsys/golkadot/logger"
)

// note: ensure the struct implements the interface
Expand Down
6 changes: 3 additions & 3 deletions client/p2p/handler/blockRequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package handler
import (
"errors"

handlertypes "github.com/opennetsys/go-substrate/client/p2p/handler/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
"github.com/opennetsys/go-substrate/logger"
handlertypes "github.com/opennetsys/golkadot/client/p2p/handler/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
"github.com/opennetsys/golkadot/logger"
)

// note: ensure the struct implements the interface
Expand Down
6 changes: 3 additions & 3 deletions client/p2p/handler/blockResponse.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package handler
import (
"errors"

handlertypes "github.com/opennetsys/go-substrate/client/p2p/handler/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
"github.com/opennetsys/go-substrate/logger"
handlertypes "github.com/opennetsys/golkadot/client/p2p/handler/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
"github.com/opennetsys/golkadot/logger"
)

// note: ensure the struct implements the interface
Expand Down
2 changes: 1 addition & 1 deletion client/p2p/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package handler
import (
"errors"

handlertypes "github.com/opennetsys/go-substrate/client/p2p/handler/types"
handlertypes "github.com/opennetsys/golkadot/client/p2p/handler/types"
)

// FromEnum ...
Expand Down
4 changes: 2 additions & 2 deletions client/p2p/handler/interface.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handler

import (
handlertypes "github.com/opennetsys/go-substrate/client/p2p/handler/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
handlertypes "github.com/opennetsys/golkadot/client/p2p/handler/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
)

// InterfaceHandler describes the methods of the handler package
Expand Down
6 changes: 3 additions & 3 deletions client/p2p/handler/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package handler
import (
"errors"

handlertypes "github.com/opennetsys/go-substrate/client/p2p/handler/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
"github.com/opennetsys/go-substrate/logger"
handlertypes "github.com/opennetsys/golkadot/client/p2p/handler/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
"github.com/opennetsys/golkadot/logger"
)

// note: ensure the struct implements the interface
Expand Down
6 changes: 3 additions & 3 deletions client/p2p/handler/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package handler
import (
"errors"

handlertypes "github.com/opennetsys/go-substrate/client/p2p/handler/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
"github.com/opennetsys/go-substrate/logger"
handlertypes "github.com/opennetsys/golkadot/client/p2p/handler/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
"github.com/opennetsys/golkadot/logger"
)

// note: ensure the struct implements the interface
Expand Down
16 changes: 8 additions & 8 deletions client/p2p/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import (
"io"
"time"

"github.com/opennetsys/go-substrate/client/p2p/defaults"
"github.com/opennetsys/go-substrate/client/p2p/handler"
"github.com/opennetsys/go-substrate/client/p2p/peers"
peerstypes "github.com/opennetsys/go-substrate/client/p2p/peers/types"
"github.com/opennetsys/go-substrate/client/p2p/sync"
p2ptypes "github.com/opennetsys/go-substrate/client/p2p/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
"github.com/opennetsys/go-substrate/logger"
"github.com/opennetsys/golkadot/client/p2p/defaults"
"github.com/opennetsys/golkadot/client/p2p/handler"
"github.com/opennetsys/golkadot/client/p2p/peers"
peerstypes "github.com/opennetsys/golkadot/client/p2p/peers/types"
"github.com/opennetsys/golkadot/client/p2p/sync"
p2ptypes "github.com/opennetsys/golkadot/client/p2p/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
"github.com/opennetsys/golkadot/logger"

dht "github.com/libp2p/go-libp2p-kad-dht"
inet "github.com/libp2p/go-libp2p-net"
Expand Down
14 changes: 7 additions & 7 deletions client/p2p/peer/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import (
"io"
"math/big"

"github.com/opennetsys/go-substrate/client/p2p/defaults"
handlertypes "github.com/opennetsys/go-substrate/client/p2p/handler/types"
peertypes "github.com/opennetsys/go-substrate/client/p2p/peer/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
"github.com/opennetsys/go-substrate/common/stringutil"
"github.com/opennetsys/go-substrate/common/u8util"
"github.com/opennetsys/go-substrate/logger"
"github.com/opennetsys/golkadot/client/p2p/defaults"
handlertypes "github.com/opennetsys/golkadot/client/p2p/handler/types"
peertypes "github.com/opennetsys/golkadot/client/p2p/peer/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
"github.com/opennetsys/golkadot/common/stringutil"
"github.com/opennetsys/golkadot/common/u8util"
"github.com/opennetsys/golkadot/logger"

inet "github.com/libp2p/go-libp2p-net"
pstore "github.com/libp2p/go-libp2p-peerstore"
Expand Down
8 changes: 4 additions & 4 deletions client/p2p/peer/peer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"testing"
"time"

peertypes "github.com/opennetsys/go-substrate/client/p2p/peer/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
mocktypes "github.com/opennetsys/go-substrate/client/types/mock"
"github.com/opennetsys/go-substrate/common/u8util"
peertypes "github.com/opennetsys/golkadot/client/p2p/peer/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
mocktypes "github.com/opennetsys/golkadot/client/types/mock"
"github.com/opennetsys/golkadot/common/u8util"

"github.com/golang/mock/gomock"
inet "github.com/libp2p/go-libp2p-net"
Expand Down
4 changes: 2 additions & 2 deletions client/p2p/peer/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"errors"
"math/big"

peertypes "github.com/opennetsys/go-substrate/client/p2p/peer/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
peertypes "github.com/opennetsys/golkadot/client/p2p/peer/types"
clienttypes "github.com/opennetsys/golkadot/client/types"

inet "github.com/libp2p/go-libp2p-net"
pstore "github.com/libp2p/go-libp2p-peerstore"
Expand Down
6 changes: 3 additions & 3 deletions client/p2p/peers/discovery.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package peers

import (
peerstypes "github.com/opennetsys/go-substrate/client/p2p/peers/types"
clienttypes "github.com/opennetsys/go-substrate/client/types"
"github.com/opennetsys/go-substrate/logger"
peerstypes "github.com/opennetsys/golkadot/client/p2p/peers/types"
clienttypes "github.com/opennetsys/golkadot/client/types"
"github.com/opennetsys/golkadot/logger"

peerstore "github.com/libp2p/go-libp2p-peerstore"
)
Expand Down
Loading

0 comments on commit d8f19c6

Please sign in to comment.