From 441232e824eef190dcee113a7e6e5b906337e299 Mon Sep 17 00:00:00 2001 From: pritsheth Date: Fri, 16 Feb 2024 15:52:22 -0800 Subject: [PATCH] Change module from soroban-tool to rpc in go.mod --- cmd/soroban-rpc/internal/config/options.go | 2 +- cmd/soroban-rpc/internal/daemon/daemon.go | 18 +++++++++--------- cmd/soroban-rpc/internal/daemon/metrics.go | 4 ++-- cmd/soroban-rpc/internal/events/events.go | 4 ++-- cmd/soroban-rpc/internal/events/events_test.go | 4 ++-- cmd/soroban-rpc/internal/ingest/ledgerentry.go | 2 +- .../internal/ingest/mock_db_test.go | 2 +- cmd/soroban-rpc/internal/ingest/service.go | 10 +++++----- .../internal/ingest/service_test.go | 8 ++++---- cmd/soroban-rpc/internal/jsonrpc.go | 14 +++++++------- cmd/soroban-rpc/internal/methods/get_events.go | 2 +- .../internal/methods/get_events_test.go | 4 ++-- .../internal/methods/get_latest_ledger.go | 2 +- .../internal/methods/get_latest_ledger_test.go | 2 +- .../internal/methods/get_ledger_entries.go | 2 +- .../internal/methods/get_ledger_entry.go | 2 +- .../internal/methods/get_network.go | 2 +- .../internal/methods/get_transaction.go | 2 +- .../internal/methods/get_transaction_test.go | 4 ++-- cmd/soroban-rpc/internal/methods/health.go | 2 +- .../internal/methods/send_transaction.go | 4 ++-- .../internal/methods/simulate_transaction.go | 4 ++-- .../internal/network/requestdurationlimiter.go | 2 +- cmd/soroban-rpc/internal/preflight/pool.go | 4 ++-- .../internal/preflight/preflight.go | 2 +- .../internal/preflight/preflight_test.go | 2 +- .../internal/test/get_ledger_entries_test.go | 2 +- .../internal/test/get_ledger_entry_test.go | 2 +- .../internal/test/get_network_test.go | 2 +- cmd/soroban-rpc/internal/test/health_test.go | 2 +- cmd/soroban-rpc/internal/test/integration.go | 8 ++++---- cmd/soroban-rpc/internal/test/metrics_test.go | 2 +- .../internal/test/simulate_transaction_test.go | 2 +- .../internal/test/transaction_test.go | 2 +- .../internal/transactions/transactions.go | 4 ++-- .../internal/transactions/transactions_test.go | 2 +- cmd/soroban-rpc/main.go | 4 ++-- go.mod | 2 +- 38 files changed, 72 insertions(+), 72 deletions(-) diff --git a/cmd/soroban-rpc/internal/config/options.go b/cmd/soroban-rpc/internal/config/options.go index d38dd7cd..df503200 100644 --- a/cmd/soroban-rpc/internal/config/options.go +++ b/cmd/soroban-rpc/internal/config/options.go @@ -14,7 +14,7 @@ import ( "github.com/stellar/go/support/errors" "github.com/stellar/go/support/strutils" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/ledgerbucketwindow" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/ledgerbucketwindow" ) const defaultHTTPEndpoint = "localhost:8000" diff --git a/cmd/soroban-rpc/internal/daemon/daemon.go b/cmd/soroban-rpc/internal/daemon/daemon.go index 7658b096..9e21f97a 100644 --- a/cmd/soroban-rpc/internal/daemon/daemon.go +++ b/cmd/soroban-rpc/internal/daemon/daemon.go @@ -22,15 +22,15 @@ import ( "github.com/stellar/go/support/storage" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/config" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/events" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/ingest" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/ledgerbucketwindow" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/preflight" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/transactions" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/util" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/config" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/events" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/ingest" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/ledgerbucketwindow" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/preflight" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/transactions" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/util" ) const ( diff --git a/cmd/soroban-rpc/internal/daemon/metrics.go b/cmd/soroban-rpc/internal/daemon/metrics.go index c7c44484..b9ed4084 100644 --- a/cmd/soroban-rpc/internal/daemon/metrics.go +++ b/cmd/soroban-rpc/internal/daemon/metrics.go @@ -11,8 +11,8 @@ import ( "github.com/stellar/go/support/logmetrics" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/config" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/config" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" ) func (d *Daemon) registerMetrics() { diff --git a/cmd/soroban-rpc/internal/events/events.go b/cmd/soroban-rpc/internal/events/events.go index d4352983..6eb42c01 100644 --- a/cmd/soroban-rpc/internal/events/events.go +++ b/cmd/soroban-rpc/internal/events/events.go @@ -11,8 +11,8 @@ import ( "github.com/stellar/go/ingest" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/ledgerbucketwindow" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/ledgerbucketwindow" ) type event struct { diff --git a/cmd/soroban-rpc/internal/events/events_test.go b/cmd/soroban-rpc/internal/events/events_test.go index df9b3385..55145fba 100644 --- a/cmd/soroban-rpc/internal/events/events_test.go +++ b/cmd/soroban-rpc/internal/events/events_test.go @@ -7,8 +7,8 @@ import ( "github.com/stellar/go/xdr" "github.com/stretchr/testify/require" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/ledgerbucketwindow" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/ledgerbucketwindow" ) var ( diff --git a/cmd/soroban-rpc/internal/ingest/ledgerentry.go b/cmd/soroban-rpc/internal/ingest/ledgerentry.go index 1e16efe3..9e4cc01d 100644 --- a/cmd/soroban-rpc/internal/ingest/ledgerentry.go +++ b/cmd/soroban-rpc/internal/ingest/ledgerentry.go @@ -10,7 +10,7 @@ import ( "github.com/stellar/go/ingest" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" ) func (s *Service) ingestLedgerEntryChanges(ctx context.Context, reader ingest.ChangeReader, tx db.WriteTx, progressLogPeriod int) error { diff --git a/cmd/soroban-rpc/internal/ingest/mock_db_test.go b/cmd/soroban-rpc/internal/ingest/mock_db_test.go index 221bdc70..cb883eac 100644 --- a/cmd/soroban-rpc/internal/ingest/mock_db_test.go +++ b/cmd/soroban-rpc/internal/ingest/mock_db_test.go @@ -6,7 +6,7 @@ import ( "github.com/stellar/go/xdr" "github.com/stretchr/testify/mock" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" ) var ( diff --git a/cmd/soroban-rpc/internal/ingest/service.go b/cmd/soroban-rpc/internal/ingest/service.go index 2cc082cb..d2c00b7b 100644 --- a/cmd/soroban-rpc/internal/ingest/service.go +++ b/cmd/soroban-rpc/internal/ingest/service.go @@ -16,12 +16,12 @@ import ( "github.com/stellar/go/support/log" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/util" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/util" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/events" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/transactions" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/events" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/transactions" ) const ( diff --git a/cmd/soroban-rpc/internal/ingest/service_test.go b/cmd/soroban-rpc/internal/ingest/service_test.go index a517562d..1fb233c0 100644 --- a/cmd/soroban-rpc/internal/ingest/service_test.go +++ b/cmd/soroban-rpc/internal/ingest/service_test.go @@ -14,10 +14,10 @@ import ( "github.com/stellar/go/xdr" "github.com/stretchr/testify/assert" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/events" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/transactions" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/events" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/transactions" ) type ErrorReadWriter struct { diff --git a/cmd/soroban-rpc/internal/jsonrpc.go b/cmd/soroban-rpc/internal/jsonrpc.go index 4bc4f17c..d122b9a0 100644 --- a/cmd/soroban-rpc/internal/jsonrpc.go +++ b/cmd/soroban-rpc/internal/jsonrpc.go @@ -16,13 +16,13 @@ import ( "github.com/rs/cors" "github.com/stellar/go/support/log" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/config" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/events" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/methods" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/network" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/transactions" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/config" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/events" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/methods" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/network" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/transactions" ) // maxHTTPRequestSize defines the largest request size that the http handler diff --git a/cmd/soroban-rpc/internal/methods/get_events.go b/cmd/soroban-rpc/internal/methods/get_events.go index 71cad1e9..dda0fa06 100644 --- a/cmd/soroban-rpc/internal/methods/get_events.go +++ b/cmd/soroban-rpc/internal/methods/get_events.go @@ -14,7 +14,7 @@ import ( "github.com/stellar/go/support/errors" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/events" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/events" ) type eventTypeSet map[string]interface{} diff --git a/cmd/soroban-rpc/internal/methods/get_events_test.go b/cmd/soroban-rpc/internal/methods/get_events_test.go index 5d1b929c..087a3ffd 100644 --- a/cmd/soroban-rpc/internal/methods/get_events_test.go +++ b/cmd/soroban-rpc/internal/methods/get_events_test.go @@ -14,8 +14,8 @@ import ( "github.com/stellar/go/strkey" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/events" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/events" ) func TestEventTypeSetMatches(t *testing.T) { diff --git a/cmd/soroban-rpc/internal/methods/get_latest_ledger.go b/cmd/soroban-rpc/internal/methods/get_latest_ledger.go index 11bd997a..2f933304 100644 --- a/cmd/soroban-rpc/internal/methods/get_latest_ledger.go +++ b/cmd/soroban-rpc/internal/methods/get_latest_ledger.go @@ -6,7 +6,7 @@ import ( "github.com/creachadair/jrpc2" "github.com/creachadair/jrpc2/handler" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" ) type GetLatestLedgerResponse struct { diff --git a/cmd/soroban-rpc/internal/methods/get_latest_ledger_test.go b/cmd/soroban-rpc/internal/methods/get_latest_ledger_test.go index 474b3b8d..30e05afa 100644 --- a/cmd/soroban-rpc/internal/methods/get_latest_ledger_test.go +++ b/cmd/soroban-rpc/internal/methods/get_latest_ledger_test.go @@ -8,7 +8,7 @@ import ( "github.com/stellar/go/xdr" "github.com/stretchr/testify/assert" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" ) const ( diff --git a/cmd/soroban-rpc/internal/methods/get_ledger_entries.go b/cmd/soroban-rpc/internal/methods/get_ledger_entries.go index 4063858c..e9e58868 100644 --- a/cmd/soroban-rpc/internal/methods/get_ledger_entries.go +++ b/cmd/soroban-rpc/internal/methods/get_ledger_entries.go @@ -9,7 +9,7 @@ import ( "github.com/stellar/go/support/log" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" ) var ErrLedgerTtlEntriesCannotBeQueriedDirectly = "ledger ttl entries cannot be queried directly" diff --git a/cmd/soroban-rpc/internal/methods/get_ledger_entry.go b/cmd/soroban-rpc/internal/methods/get_ledger_entry.go index b78d1099..e457a3b1 100644 --- a/cmd/soroban-rpc/internal/methods/get_ledger_entry.go +++ b/cmd/soroban-rpc/internal/methods/get_ledger_entry.go @@ -10,7 +10,7 @@ import ( "github.com/stellar/go/support/log" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" ) // Deprecated. Use GetLedgerEntriesRequest instead. diff --git a/cmd/soroban-rpc/internal/methods/get_network.go b/cmd/soroban-rpc/internal/methods/get_network.go index be2e0305..5c990c41 100644 --- a/cmd/soroban-rpc/internal/methods/get_network.go +++ b/cmd/soroban-rpc/internal/methods/get_network.go @@ -6,7 +6,7 @@ import ( "github.com/creachadair/jrpc2" "github.com/creachadair/jrpc2/handler" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" ) type GetNetworkRequest struct{} diff --git a/cmd/soroban-rpc/internal/methods/get_transaction.go b/cmd/soroban-rpc/internal/methods/get_transaction.go index de58be64..8b1846f8 100644 --- a/cmd/soroban-rpc/internal/methods/get_transaction.go +++ b/cmd/soroban-rpc/internal/methods/get_transaction.go @@ -10,7 +10,7 @@ import ( "github.com/creachadair/jrpc2/handler" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/transactions" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/transactions" ) const ( diff --git a/cmd/soroban-rpc/internal/methods/get_transaction_test.go b/cmd/soroban-rpc/internal/methods/get_transaction_test.go index 263dd92a..dadf145f 100644 --- a/cmd/soroban-rpc/internal/methods/get_transaction_test.go +++ b/cmd/soroban-rpc/internal/methods/get_transaction_test.go @@ -9,8 +9,8 @@ import ( "github.com/stellar/go/network" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/transactions" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/transactions" ) func txHash(acctSeq uint32) xdr.Hash { diff --git a/cmd/soroban-rpc/internal/methods/health.go b/cmd/soroban-rpc/internal/methods/health.go index ab51cc78..ab46d62a 100644 --- a/cmd/soroban-rpc/internal/methods/health.go +++ b/cmd/soroban-rpc/internal/methods/health.go @@ -8,7 +8,7 @@ import ( "github.com/creachadair/jrpc2" "github.com/creachadair/jrpc2/handler" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/transactions" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/transactions" ) type HealthCheckResult struct { diff --git a/cmd/soroban-rpc/internal/methods/send_transaction.go b/cmd/soroban-rpc/internal/methods/send_transaction.go index c8a0ff84..c8404c69 100644 --- a/cmd/soroban-rpc/internal/methods/send_transaction.go +++ b/cmd/soroban-rpc/internal/methods/send_transaction.go @@ -11,8 +11,8 @@ import ( "github.com/stellar/go/support/log" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/transactions" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/transactions" ) // SendTransactionResponse represents the transaction submission response returned Soroban-RPC diff --git a/cmd/soroban-rpc/internal/methods/simulate_transaction.go b/cmd/soroban-rpc/internal/methods/simulate_transaction.go index a278c9c2..580a5d2f 100644 --- a/cmd/soroban-rpc/internal/methods/simulate_transaction.go +++ b/cmd/soroban-rpc/internal/methods/simulate_transaction.go @@ -10,8 +10,8 @@ import ( "github.com/stellar/go/support/log" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/preflight" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/preflight" ) type SimulateTransactionRequest struct { diff --git a/cmd/soroban-rpc/internal/network/requestdurationlimiter.go b/cmd/soroban-rpc/internal/network/requestdurationlimiter.go index 05204591..141b2486 100644 --- a/cmd/soroban-rpc/internal/network/requestdurationlimiter.go +++ b/cmd/soroban-rpc/internal/network/requestdurationlimiter.go @@ -9,7 +9,7 @@ import ( "github.com/creachadair/jrpc2" "github.com/stellar/go/support/log" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/util" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/util" ) const maxUint = ^uint64(0) //18446744073709551615 diff --git a/cmd/soroban-rpc/internal/preflight/pool.go b/cmd/soroban-rpc/internal/preflight/pool.go index 1d182411..4eeddb53 100644 --- a/cmd/soroban-rpc/internal/preflight/pool.go +++ b/cmd/soroban-rpc/internal/preflight/pool.go @@ -11,8 +11,8 @@ import ( "github.com/stellar/go/support/log" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" ) type workerResult struct { diff --git a/cmd/soroban-rpc/internal/preflight/preflight.go b/cmd/soroban-rpc/internal/preflight/preflight.go index e342ab43..584c47d6 100644 --- a/cmd/soroban-rpc/internal/preflight/preflight.go +++ b/cmd/soroban-rpc/internal/preflight/preflight.go @@ -11,7 +11,7 @@ import ( "github.com/stellar/go/support/log" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" ) /* diff --git a/cmd/soroban-rpc/internal/preflight/preflight_test.go b/cmd/soroban-rpc/internal/preflight/preflight_test.go index 601901ff..926c2611 100644 --- a/cmd/soroban-rpc/internal/preflight/preflight_test.go +++ b/cmd/soroban-rpc/internal/preflight/preflight_test.go @@ -12,7 +12,7 @@ import ( "github.com/stellar/go/xdr" "github.com/stretchr/testify/require" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" ) var mockContractID = xdr.Hash{0xa, 0xb, 0xc} diff --git a/cmd/soroban-rpc/internal/test/get_ledger_entries_test.go b/cmd/soroban-rpc/internal/test/get_ledger_entries_test.go index 889b4e04..50c0af9e 100644 --- a/cmd/soroban-rpc/internal/test/get_ledger_entries_test.go +++ b/cmd/soroban-rpc/internal/test/get_ledger_entries_test.go @@ -14,7 +14,7 @@ import ( "github.com/stellar/go/txnbuild" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/methods" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/methods" ) func TestGetLedgerEntriesNotFound(t *testing.T) { diff --git a/cmd/soroban-rpc/internal/test/get_ledger_entry_test.go b/cmd/soroban-rpc/internal/test/get_ledger_entry_test.go index b453f4d8..df606bfc 100644 --- a/cmd/soroban-rpc/internal/test/get_ledger_entry_test.go +++ b/cmd/soroban-rpc/internal/test/get_ledger_entry_test.go @@ -14,7 +14,7 @@ import ( "github.com/stellar/go/keypair" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/methods" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/methods" ) func TestGetLedgerEntryNotFound(t *testing.T) { diff --git a/cmd/soroban-rpc/internal/test/get_network_test.go b/cmd/soroban-rpc/internal/test/get_network_test.go index 9c8ef266..6cc2fa5e 100644 --- a/cmd/soroban-rpc/internal/test/get_network_test.go +++ b/cmd/soroban-rpc/internal/test/get_network_test.go @@ -8,7 +8,7 @@ import ( "github.com/creachadair/jrpc2/jhttp" "github.com/stretchr/testify/assert" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/methods" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/methods" ) func TestGetNetworkSucceeds(t *testing.T) { diff --git a/cmd/soroban-rpc/internal/test/health_test.go b/cmd/soroban-rpc/internal/test/health_test.go index 517b374d..46a327fd 100644 --- a/cmd/soroban-rpc/internal/test/health_test.go +++ b/cmd/soroban-rpc/internal/test/health_test.go @@ -6,7 +6,7 @@ import ( "github.com/creachadair/jrpc2" "github.com/creachadair/jrpc2/jhttp" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/methods" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/methods" "github.com/stretchr/testify/assert" ) diff --git a/cmd/soroban-rpc/internal/test/integration.go b/cmd/soroban-rpc/internal/test/integration.go index 25096cda..60633b1f 100644 --- a/cmd/soroban-rpc/internal/test/integration.go +++ b/cmd/soroban-rpc/internal/test/integration.go @@ -24,10 +24,10 @@ import ( "github.com/stellar/go/keypair" "github.com/stellar/go/txnbuild" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/config" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/db" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/ledgerbucketwindow" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/config" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/db" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/ledgerbucketwindow" ) const ( diff --git a/cmd/soroban-rpc/internal/test/metrics_test.go b/cmd/soroban-rpc/internal/test/metrics_test.go index b807cb77..a487fe02 100644 --- a/cmd/soroban-rpc/internal/test/metrics_test.go +++ b/cmd/soroban-rpc/internal/test/metrics_test.go @@ -10,7 +10,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/config" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/config" ) func TestMetrics(t *testing.T) { diff --git a/cmd/soroban-rpc/internal/test/simulate_transaction_test.go b/cmd/soroban-rpc/internal/test/simulate_transaction_test.go index 12387530..26866ed7 100644 --- a/cmd/soroban-rpc/internal/test/simulate_transaction_test.go +++ b/cmd/soroban-rpc/internal/test/simulate_transaction_test.go @@ -19,7 +19,7 @@ import ( "github.com/stellar/go/txnbuild" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/methods" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/methods" ) var ( diff --git a/cmd/soroban-rpc/internal/test/transaction_test.go b/cmd/soroban-rpc/internal/test/transaction_test.go index 9027bc58..372e4ee2 100644 --- a/cmd/soroban-rpc/internal/test/transaction_test.go +++ b/cmd/soroban-rpc/internal/test/transaction_test.go @@ -17,7 +17,7 @@ import ( "github.com/stellar/go/txnbuild" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/methods" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/methods" ) func TestSendTransactionSucceedsWithoutResults(t *testing.T) { diff --git a/cmd/soroban-rpc/internal/transactions/transactions.go b/cmd/soroban-rpc/internal/transactions/transactions.go index f2feef49..6b24f429 100644 --- a/cmd/soroban-rpc/internal/transactions/transactions.go +++ b/cmd/soroban-rpc/internal/transactions/transactions.go @@ -8,8 +8,8 @@ import ( "github.com/stellar/go/ingest" "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/ledgerbucketwindow" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/ledgerbucketwindow" ) type transaction struct { diff --git a/cmd/soroban-rpc/internal/transactions/transactions_test.go b/cmd/soroban-rpc/internal/transactions/transactions_test.go index 27b500c4..73ddbaa6 100644 --- a/cmd/soroban-rpc/internal/transactions/transactions_test.go +++ b/cmd/soroban-rpc/internal/transactions/transactions_test.go @@ -12,7 +12,7 @@ import ( "github.com/stellar/go/xdr" "github.com/stretchr/testify/require" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon/interfaces" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon/interfaces" ) func expectedTransaction(t *testing.T, ledger uint32, feeBump bool) Transaction { diff --git a/cmd/soroban-rpc/main.go b/cmd/soroban-rpc/main.go index e7e8713b..48698223 100644 --- a/cmd/soroban-rpc/main.go +++ b/cmd/soroban-rpc/main.go @@ -7,8 +7,8 @@ import ( "github.com/spf13/cobra" goxdr "github.com/stellar/go/xdr" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/config" - "github.com/stellar/soroban-tools/cmd/soroban-rpc/internal/daemon" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/config" + "github.com/stellar/soroban-rpc/cmd/soroban-rpc/internal/daemon" ) func main() { diff --git a/go.mod b/go.mod index 52a105e1..9c1e46ce 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/stellar/soroban-tools +module github.com/stellar/soroban-rpc go 1.21