Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ integration:
# Start godoc server for viewing documentation
docs:
which godoc > /dev/null || (echo "Installing godoc..." && go install golang.org/x/tools/cmd/godoc@latest)
echo "Documentation available at http://localhost:6060/pkg/github.com/tempo/tempo-go/"
echo "Documentation available at http://localhost:6060/pkg/github.com/tempoxyz/tempo-go/"
echo "Press Ctrl+C to stop the server"
@godoc -http=:6060
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Go SDK for building applications on [Tempo](https://tempo.xyz)
## Installation

```bash
go get github.com/tempo/tempo-go
go get github.com/tempoxyz/tempo-go
```

## Quick Start
Expand All @@ -27,9 +27,9 @@ import (
"math/big"

"github.com/ethereum/go-ethereum/common"
"github.com/tempo/tempo-go/pkg/client"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempo/tempo-go/pkg/transaction"
"github.com/tempoxyz/tempo-go/pkg/client"
"github.com/tempoxyz/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/transaction"
)

func main() {
Expand Down Expand Up @@ -137,8 +137,8 @@ client.SendTransaction(tx)
| Package | Description | Documentation |
|---------|-------------|---------------|
| `transaction` | TempoTransaction encoding, signing, and validation | [README](pkg/transaction/README.md) |
| `client` | RPC client for interacting with Tempo nodes | [GoDoc](https://pkg.go.dev/github.com/tempo/tempo-go/pkg/client) |
| `signer` | Key management and signature generation | [GoDoc](https://pkg.go.dev/github.com/tempo/tempo-go/pkg/signer) |
| `client` | RPC client for interacting with Tempo nodes | [GoDoc](https://pkg.go.dev/github.com/tempoxyz/tempo-go/pkg/client) |
| `signer` | Key management and signature generation | [GoDoc](https://pkg.go.dev/github.com/tempoxyz/tempo-go/pkg/signer) |

## Testing

Expand Down Expand Up @@ -183,10 +183,10 @@ View documentation locally:

```bash
make docs
# Opens at http://localhost:6060/pkg/github.com/tempo/tempo-go/
# Opens at http://localhost:6060/pkg/github.com/tempoxyz/tempo-go/
```

Full API documentation is also available on [pkg.go.dev](https://pkg.go.dev/github.com/tempo/tempo-go).
Full API documentation is also available on [pkg.go.dev](https://pkg.go.dev/github.com/tempoxyz/tempo-go).

## Development Setup

Expand All @@ -198,7 +198,7 @@ Full API documentation is also available on [pkg.go.dev](https://pkg.go.dev/gith
### Building

```bash
git clone https://github.com/tempo/tempo-go.git
git clone https://github.com/tempoxyz/tempo-go.git
cd tempo-go

go mod download
Expand Down
6 changes: 3 additions & 3 deletions examples/feepayer/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"log"

"github.com/tempo/tempo-go/examples/feepayer/server"
"github.com/tempo/tempo-go/pkg/client"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/examples/feepayer/server"
"github.com/tempoxyz/tempo-go/pkg/client"
"github.com/tempoxyz/tempo-go/pkg/signer"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions examples/feepayer/go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module github.com/tempo/tempo-go/examples/feepayer
module github.com/tempoxyz/tempo-go/examples/feepayer

go 1.21

require (
github.com/joho/godotenv v1.5.1
github.com/tempo/tempo-go v0.0.0
github.com/tempoxyz/tempo-go v0.0.0
)

replace github.com/tempo/tempo-go => ../..
replace github.com/tempoxyz/tempo-go => ../..

require (
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
Expand Down
6 changes: 3 additions & 3 deletions examples/feepayer/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"strings"

"github.com/joho/godotenv"
"github.com/tempo/tempo-go/pkg/client"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempo/tempo-go/pkg/transaction"
"github.com/tempoxyz/tempo-go/pkg/client"
"github.com/tempoxyz/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/transaction"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions examples/simple-send/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"strconv"

"github.com/ethereum/go-ethereum/common"
"github.com/tempo/tempo-go/pkg/client"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempo/tempo-go/pkg/transaction"
"github.com/tempoxyz/tempo-go/pkg/client"
"github.com/tempoxyz/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/transaction"
)

// getEnv gets an environment variable or returns a default value
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 github.com/tempo/tempo-go
module github.com/tempoxyz/tempo-go

go 1.21

Expand Down
2 changes: 1 addition & 1 deletion pkg/transaction/deserialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/rlp"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/signer"
)

// Deserialize parses a serialized TempoTransaction.
Expand Down
6 changes: 3 additions & 3 deletions pkg/transaction/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"math/big"

"github.com/ethereum/go-ethereum/common"
"github.com/tempo/tempo-go/pkg/client"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempo/tempo-go/pkg/transaction"
"github.com/tempoxyz/tempo-go/pkg/client"
"github.com/tempoxyz/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/transaction"
)

// Example_simpleTransaction demonstrates creating, signing, and sending a simple transaction.
Expand Down
2 changes: 1 addition & 1 deletion pkg/transaction/golden_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/signer"
)

// TestTempoGoldenFormat tests compatibility with tempo.ts transaction format
Expand Down
2 changes: 1 addition & 1 deletion pkg/transaction/serialization_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/google/go-cmp/cmp"
"github.com/stretchr/testify/assert"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/signer"
)

func TestSerialize(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/transaction/serialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/rlp"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/signer"
)

// SerializeFormat specifies the serialization format for a transaction.
Expand Down
2 changes: 1 addition & 1 deletion pkg/transaction/signing.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/signer"
)

// ComputeHash computes the Keccak256 hash of a serialized transaction.
Expand Down
2 changes: 1 addition & 1 deletion pkg/transaction/signing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/signer"
)

// test private keys pull from `anvil` using default seed -- please don't use these in production! they are technically valid.
Expand Down
2 changes: 1 addition & 1 deletion pkg/transaction/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"math/big"

"github.com/ethereum/go-ethereum/common"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/signer"
)

// Tx represents a Tempo Transaction
Expand Down
2 changes: 1 addition & 1 deletion pkg/transaction/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/signer"
)

func TestNewDefault(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/transaction/transaction_vectors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/signer"
)

// TestValidTransactionVectors tests a set of valid transaction configurations
Expand Down
6 changes: 3 additions & 3 deletions tests/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/tempo/tempo-go/pkg/client"
"github.com/tempo/tempo-go/pkg/signer"
"github.com/tempo/tempo-go/pkg/transaction"
"github.com/tempoxyz/tempo-go/pkg/client"
"github.com/tempoxyz/tempo-go/pkg/signer"
"github.com/tempoxyz/tempo-go/pkg/transaction"
)

const (
Expand Down
Loading