File tree Expand file tree Collapse file tree 9 files changed +14
-14
lines changed Expand file tree Collapse file tree 9 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ A Golang SDK for CodeChain
5
5
## How to install
6
6
7
7
``` bash
8
- go get -u github.com/CodeChain-io/codechain-rpc -go
8
+ go get -u github.com/CodeChain-io/codechain-sdk -go
9
9
```
10
10
11
11
## Example
@@ -15,7 +15,7 @@ package main
15
15
16
16
import (
17
17
" fmt"
18
- rpc " github.com/CodeChain-io/codechain-rpc -go"
18
+ rpc " github.com/CodeChain-io/codechain-sdk -go"
19
19
)
20
20
func main () {
21
21
a := rpc.NewRPC (" https://corgi-rpc.codechain.io/" ).Chain
Original file line number Diff line number Diff line change 1
1
package transaction
2
2
3
3
import (
4
- "github.com/CodeChain-io/codechain-rpc -go/crypto"
5
- "github.com/CodeChain-io/codechain-rpc -go/primitives"
4
+ "github.com/CodeChain-io/codechain-sdk -go/crypto"
5
+ "github.com/CodeChain-io/codechain-sdk -go/primitives"
6
6
"github.com/ethereum/go-ethereum/rlp"
7
7
)
8
8
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package transaction
3
3
import (
4
4
"bytes"
5
5
"encoding/hex"
6
- "github.com/CodeChain-io/codechain-rpc -go/primitives"
6
+ "github.com/CodeChain-io/codechain-sdk -go/primitives"
7
7
"testing"
8
8
)
9
9
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ package transaction
3
3
import (
4
4
"encoding/hex"
5
5
6
- "github.com/CodeChain-io/codechain-rpc -go/crypto"
7
- "github.com/CodeChain-io/codechain-rpc -go/primitives"
6
+ "github.com/CodeChain-io/codechain-sdk -go/crypto"
7
+ "github.com/CodeChain-io/codechain-sdk -go/primitives"
8
8
"github.com/ethereum/go-ethereum/rlp"
9
9
)
10
10
Original file line number Diff line number Diff line change 5
5
"encoding/hex"
6
6
"testing"
7
7
8
- "github.com/CodeChain-io/codechain-rpc -go/primitives"
9
- "github.com/CodeChain-io/codechain-rpc -go/rpc"
8
+ "github.com/CodeChain-io/codechain-sdk -go/primitives"
9
+ "github.com/CodeChain-io/codechain-sdk -go/rpc"
10
10
)
11
11
12
12
func TestSigning (t * testing.T ) {
Original file line number Diff line number Diff line change 1
1
package transaction
2
2
3
3
import (
4
- "github.com/CodeChain-io/codechain-rpc -go/crypto"
5
- "github.com/CodeChain-io/codechain-rpc -go/primitives"
4
+ "github.com/CodeChain-io/codechain-sdk -go/crypto"
5
+ "github.com/CodeChain-io/codechain-sdk -go/primitives"
6
6
)
7
7
8
8
type ActionJSON struct {
Original file line number Diff line number Diff line change 1
- module github.com/CodeChain-io/codechain-rpc -go
1
+ module github.com/CodeChain-io/codechain-sdk -go
2
2
3
3
go 1.12
4
4
Original file line number Diff line number Diff line change 4
4
"crypto/ecdsa"
5
5
"crypto/rand"
6
6
7
- "github.com/CodeChain-io/codechain-rpc -go/crypto"
7
+ "github.com/CodeChain-io/codechain-sdk -go/crypto"
8
8
)
9
9
10
10
func GenerateKey () ([]byte , error ) {
Original file line number Diff line number Diff line change 4
4
"encoding/hex"
5
5
"testing"
6
6
7
- "github.com/CodeChain-io/codechain-rpc -go/crypto"
7
+ "github.com/CodeChain-io/codechain-sdk -go/crypto"
8
8
)
9
9
10
10
func TestEcdsa (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments