Skip to content

Commit

Permalink
Merge pull request #6 from chekist32/release-0.1.0
Browse files Browse the repository at this point in the history
chore: changed module name to github.com/chekist32/go-monero
  • Loading branch information
chekist32 authored Jun 30, 2024
2 parents c2334e5 + 56e6ae4 commit 23d5952
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 18 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ This package is inspired by https://github.com/omani/go-monero-rpc-client.

## Wallet RPC Client

[![GoDoc](https://godoc.org/chekist32/go-monero/wallet?status.svg)](https://godoc.org/chekist32/go-monero/wallet)
[![GoDoc](https://godoc.org/github.com/chekist32/go-monero/wallet?status.svg)](https://godoc.org/github.com/chekist32/go-monero/wallet)

### Monero RPC Version
The ```go-monero/wallet``` package is the RPC client for version `v1.3` of the [Monero Wallet RPC](https://www.getmonero.org/resources/developer-guides/wallet-rpc.html).

### Installation

```sh
go get -u chekist32/go-monero
go get -u github.com/chekist32/go-monero
```

#### Spawn the monero-wallet-rpc daemon (without rpc login):
Expand All @@ -38,7 +38,7 @@ import (
"fmt"
"log"

"chekist32/go-monero/wallet"
"github.com/chekist32/go-monero/wallet"
)

func checkerr(err error) {
Expand Down Expand Up @@ -88,7 +88,7 @@ import (
"fmt"
"log"

"chekist32/go-monero/wallet"
"github.com/chekist32/go-monero/wallet"
)

func checkerr(err error) {
Expand Down Expand Up @@ -128,16 +128,16 @@ func main() {

## Daemon RPC Client

[![GoDoc](https://godoc.org/chekist32/go-monero/wallet?status.svg)](https://godoc.org/chekist32/go-monero/daemon)
[![GoDoc](https://godoc.org/github.com/chekist32/go-monero/wallet?status.svg)](https://godoc.org/github.com/chekist32/go-monero/daemon)

Here is a [List of implemented methods.](https://chekist32/go-monero/issues/3)
Here is a [List of implemented methods.](https://github.com/chekist32/go-monero/issues/3)

**Go code:**
```Go
package main

import (
"chekist32/go-monero/daemon"
"github.com/chekist32/go-monero/daemon"
"fmt"
"log"
"net/url"
Expand All @@ -162,7 +162,7 @@ func main() {

## Monero Utils

[![GoDoc](https://godoc.org/chekist32/go-monero/wallet?status.svg)](https://godoc.org/chekist32/go-monero/utils)
[![GoDoc](https://godoc.org/github.com/chekist32/go-monero/wallet?status.svg)](https://godoc.org/github.com/chekist32/go-monero/utils)

This package contains helper methods that can be used for different cases, such as subaddress generation and tx output decryption.

Expand All @@ -171,7 +171,7 @@ This package contains helper methods that can be used for different cases, such
package main

import (
"chekist32/go-monero/utils"
"github.com/chekist32/go-monero/utils"
"fmt"
"log"
)
Expand Down
2 changes: 1 addition & 1 deletion daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"
"net/http"

"chekist32/go-monero/utils"
"github.com/chekist32/go-monero/utils"

"github.com/icholy/digest"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module chekist32/go-monero
module github.com/chekist32/go-monero

go 1.20

Expand Down
3 changes: 2 additions & 1 deletion test/integration/daemon_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package test

import (
"chekist32/go-monero/daemon"
"context"
"errors"
"net/url"
Expand All @@ -10,6 +9,8 @@ import (
"sync"
"testing"

"github.com/chekist32/go-monero/daemon"

"github.com/stretchr/testify/assert"
"github.com/testcontainers/testcontainers-go"
"github.com/testcontainers/testcontainers-go/wait"
Expand Down
5 changes: 3 additions & 2 deletions test/performance/tx_scan_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package test

import (
"chekist32/go-monero/daemon"
"chekist32/go-monero/utils"
"encoding/json"
"log"
"os"
"testing"

"github.com/chekist32/go-monero/daemon"
"github.com/chekist32/go-monero/utils"
)

func addresses(addrs []string) ([]utils.MoneroAddress, error) {
Expand Down
3 changes: 2 additions & 1 deletion test/unit/address_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package test

import (
"chekist32/go-monero/utils"
"encoding/hex"
"testing"

"github.com/chekist32/go-monero/utils"

"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion test/unit/daemon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"reflect"
"testing"

"chekist32/go-monero/daemon"
"github.com/chekist32/go-monero/daemon"

"github.com/stretchr/testify/assert"
)
Expand Down
3 changes: 2 additions & 1 deletion test/unit/key_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package test

import (
"chekist32/go-monero/utils"
"encoding/hex"
"testing"

"github.com/chekist32/go-monero/utils"

"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 2 additions & 1 deletion test/unit/utils_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package test

import (
"chekist32/go-monero/utils"
"encoding/hex"
"testing"

"github.com/chekist32/go-monero/utils"

"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 23d5952

Please sign in to comment.