diff --git a/Makefile b/Makefile index 9d13d7a..71361c2 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 7bee451..e3b2d50 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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() { @@ -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 @@ -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 @@ -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 diff --git a/examples/feepayer/cmd/main.go b/examples/feepayer/cmd/main.go index 183c989..6c79719 100644 --- a/examples/feepayer/cmd/main.go +++ b/examples/feepayer/cmd/main.go @@ -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() { diff --git a/examples/feepayer/go.mod b/examples/feepayer/go.mod index 9733b99..d393bc7 100644 --- a/examples/feepayer/go.mod +++ b/examples/feepayer/go.mod @@ -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 diff --git a/examples/feepayer/server/server.go b/examples/feepayer/server/server.go index 6b81ba6..e5f6594 100644 --- a/examples/feepayer/server/server.go +++ b/examples/feepayer/server/server.go @@ -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 ( diff --git a/examples/simple-send/main.go b/examples/simple-send/main.go index 680c615..03a7d4e 100644 --- a/examples/simple-send/main.go +++ b/examples/simple-send/main.go @@ -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 diff --git a/go.mod b/go.mod index d751743..14d5afd 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/tempo/tempo-go +module github.com/tempoxyz/tempo-go go 1.21 diff --git a/pkg/transaction/deserialize.go b/pkg/transaction/deserialize.go index c056fa6..ff1895b 100644 --- a/pkg/transaction/deserialize.go +++ b/pkg/transaction/deserialize.go @@ -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. diff --git a/pkg/transaction/example_test.go b/pkg/transaction/example_test.go index a61bd60..5dc6f20 100644 --- a/pkg/transaction/example_test.go +++ b/pkg/transaction/example_test.go @@ -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. diff --git a/pkg/transaction/golden_test.go b/pkg/transaction/golden_test.go index 14f1cf6..b47151f 100644 --- a/pkg/transaction/golden_test.go +++ b/pkg/transaction/golden_test.go @@ -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 diff --git a/pkg/transaction/serialization_test.go b/pkg/transaction/serialization_test.go index bcc1106..41a1f06 100644 --- a/pkg/transaction/serialization_test.go +++ b/pkg/transaction/serialization_test.go @@ -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) { diff --git a/pkg/transaction/serialize.go b/pkg/transaction/serialize.go index 96335cf..5b2bf83 100644 --- a/pkg/transaction/serialize.go +++ b/pkg/transaction/serialize.go @@ -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. diff --git a/pkg/transaction/signing.go b/pkg/transaction/signing.go index f0052c0..ec8d215 100644 --- a/pkg/transaction/signing.go +++ b/pkg/transaction/signing.go @@ -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. diff --git a/pkg/transaction/signing_test.go b/pkg/transaction/signing_test.go index b9df402..c50a0d3 100644 --- a/pkg/transaction/signing_test.go +++ b/pkg/transaction/signing_test.go @@ -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. diff --git a/pkg/transaction/transaction.go b/pkg/transaction/transaction.go index 3b375ed..76d730c 100644 --- a/pkg/transaction/transaction.go +++ b/pkg/transaction/transaction.go @@ -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 diff --git a/pkg/transaction/transaction_test.go b/pkg/transaction/transaction_test.go index 0e0bbef..b67f6bc 100644 --- a/pkg/transaction/transaction_test.go +++ b/pkg/transaction/transaction_test.go @@ -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) { diff --git a/pkg/transaction/transaction_vectors_test.go b/pkg/transaction/transaction_vectors_test.go index ec328eb..62b0b9c 100644 --- a/pkg/transaction/transaction_vectors_test.go +++ b/pkg/transaction/transaction_vectors_test.go @@ -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 diff --git a/tests/integration_test.go b/tests/integration_test.go index 937167d..01f2985 100644 --- a/tests/integration_test.go +++ b/tests/integration_test.go @@ -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 (