diff --git a/accounting/rewind.go b/accounting/rewind.go index 2641e3546..de8895c80 100644 --- a/accounting/rewind.go +++ b/accounting/rewind.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - models "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/types" + models "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/types" sdk "github.com/algorand/go-algorand-sdk/v2/types" ) diff --git a/accounting/rewind_test.go b/accounting/rewind_test.go index 1bafa6839..caa77a960 100644 --- a/accounting/rewind_test.go +++ b/accounting/rewind_test.go @@ -6,13 +6,13 @@ import ( "testing" sdk "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorand/indexer/types" + "github.com/algorand/indexer/v3/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" - models "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/mocks" + models "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/mocks" ) func TestBasic(t *testing.T) { diff --git a/api/app_boxes_fixtures_test.go b/api/app_boxes_fixtures_test.go index 7ed95688f..8d067b25e 100644 --- a/api/app_boxes_fixtures_test.go +++ b/api/app_boxes_fixtures_test.go @@ -6,13 +6,13 @@ import ( "fmt" "testing" - "github.com/algorand/indexer/idb/postgres" + "github.com/algorand/indexer/v3/idb/postgres" "github.com/stretchr/testify/require" "github.com/algorand/avm-abi/apps" "github.com/algorand/go-algorand-sdk/v2/crypto" sdk "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorand/indexer/util/test" + "github.com/algorand/indexer/v3/util/test" ) func goalEncode(t *testing.T, s string) string { diff --git a/api/converter_utils.go b/api/converter_utils.go index d9b422aff..23eae4fd4 100644 --- a/api/converter_utils.go +++ b/api/converter_utils.go @@ -9,9 +9,9 @@ import ( "strconv" "strings" - "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/util" + "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/util" "github.com/algorand/go-algorand-sdk/v2/crypto" sdk "github.com/algorand/go-algorand-sdk/v2/types" diff --git a/api/disabled_parameters_test.go b/api/disabled_parameters_test.go index 984ca52d1..336a2ee2e 100644 --- a/api/disabled_parameters_test.go +++ b/api/disabled_parameters_test.go @@ -13,7 +13,7 @@ import ( "github.com/sirupsen/logrus/hooks/test" "github.com/stretchr/testify/require" - "github.com/algorand/indexer/api/generated/v2" + "github.com/algorand/indexer/v3/api/generated/v2" ) func TestToDisabledMapConfigFromFile(t *testing.T) { diff --git a/api/error_messages.go b/api/error_messages.go index 75721b595..d9c339ada 100644 --- a/api/error_messages.go +++ b/api/error_messages.go @@ -3,8 +3,8 @@ package api import ( "fmt" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/util" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/util" ) // constant error messages. diff --git a/api/fixtures_test.go b/api/fixtures_test.go index b9d17dff1..3a527cba5 100644 --- a/api/fixtures_test.go +++ b/api/fixtures_test.go @@ -14,9 +14,9 @@ import ( "github.com/sirupsen/logrus" "github.com/stretchr/testify/require" - "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/idb/postgres" - "github.com/algorand/indexer/util/test" + "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/idb/postgres" + "github.com/algorand/indexer/v3/util/test" ) /* See the README.md in this directory for more details about Fixtures Tests */ diff --git a/api/generated/common/routes.go b/api/generated/common/routes.go index 8b0d08cb6..e52e02a5b 100644 --- a/api/generated/common/routes.go +++ b/api/generated/common/routes.go @@ -228,29 +228,29 @@ var swaggerSpec = []string{ "RMpAmG4hX9ysDNRBHL/I1JiIcRxMZb6oxC2Lx9CMeza2j3OcWsR4VY3S7cd+X8RkunTxtNu+2AYSC7/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0FR21NWfriwq1QTIKEkjBMkknY5vTe6JNdxKEUjQNrO5ybGiyPy", + "vHozPbBXkzquQ5nbxFWntfDO+LwvujU0vQXLmy8fxKMbeu63mddDdQENHFTRrs2zMHZYUYfS6EI7nMYj", + "VYKt29IDTM/bRvdyO69XPJXJUS/icjRNnr1JJYdBwRmjjHSNHNJec305uAT9YfUDyBWF8A9GHcgYUeC9", + "gZrSf47iknNRMwZqb8p40y5qUaIZAR3BO8OCjwKo2FsuK7VhL0ICnQc/v33xkGkwbW0DkYVswo74PCSf", + "N4V/duGNXvqVv4siaLrlC+ktKithrE4oLu99VZhn8ZDDkWu0NLb3OiKDNaVYnASJC88F09cQTngJu6IS", + "dZslZNfqshomuTTtAuuDCUmZcBfclujNMgHB7Jn6gIeDa1PTUtHN4bYrPe7A4HL9iRnM0ozOz5dGQAee", + "EsG8up97esvNqezTdyP+6We6mXxI4mEfOhEl33X4DEVIRhf/raSsaAqK3XLSh/FV6Xpha+hS2teHlJ1n", + "aGRIOOhyOhwvU8zey1k4CZa1ElOJy02It7+/W3rJCPtXvq5lHQk/y1ZWZrSFfX31PfbXvbKPF31Cm72m", + "3JxQcKwkMAikHUKChksfiNLHUBujStEb4bHWIFUV/Jusdz4R3LiKRr+VjVZXokpVNq/VSpSGVDCnWoxf", + "hb4f57NNW1txw3Feh75kwk5fh2Llr0JZcV0xqB5/9903fxymR/iC2NV0k5LuPX5ZXsvIrSiHcmy3uiOY", + "WEDl2UpNWVbW2KZXve2hM66lkqUebyNDQPLh8EHR6h1EFjvGI1JXTmyvreh/mrvf1tyse9YZVbjFysOc", + "eX419vrDmKPI0HfPIemesItbOWaMjkeOcfSH5Es4GzF7JHo4liW+jjjJtACsXyLpXR29hEBM3OumBifb", + "9Twwm1onoIau/DDnOzEtFB+Pl951bIAV7ZSTRCgXqhMme4kLFQQ9VDfwDp7sz7sYrlQuurUG4yBKe9+s", + "dTL7yL6cl322wUQu85Nw+260p6NsJbhvWQm3ufxMSW320cCXkdkh7Yi1X2TO5WdgxwTmdQmqxomp8tJz", + "lIl1H+lnc5wO38/HZznx4Iy93HLuaaYJDmoXwSPN19ILqRDYSyL/3qsR5VhJOWx8mjsy/vqk+8P9un2Y", + "/keMEFgqynggLS9tn8579tSPNPMlXGdraxvz5Pz8+vr6LExzVqrN+QqjnAqr2nJ9HgbC1I2DdGq+i684", + "5a7demdFadjTNy9RSBa2BgyYQNRFSWyfzB6fPaJ0hyB5I2ZPZt+ePTr7ho7IGuninFILUwFRXIejGpSE", + "X1YYln4JcXJiLJmM6Yex++NHj8I2+GdiZJ48/6chhnacxTSeBjd5uBEP0J72MCrZPqWgn+SlVNeS/Vlr", + "RQzStJsN1zuMiratloY9fvSIiaVPqUzJQLgT097PKCJ39ovrd371+DzyExv9cv57cNEQ1ccDn89505gi", + "MiAfbB+s8HtbJaL4ju9z1Ayjoo+hbXq+6Nfz34cm6o9HNjtfYHWGY5vCsdOfez//0Ha8ePz7/PegWv64", + "59O5T1Wxr3tm36jCy/nv5D5NqopoqnSnAdv/3W49dKjR1e6Yz568/33EZ2DLN00NyGJmH3/pyLvjUJ7M", + "P867X2qlLtsm/sUA1+V69vGXj/8/AAD//4C1E0VL3QAA", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/generated/common/types.go b/api/generated/common/types.go index a34dade46..ff5b7169a 100644 --- a/api/generated/common/types.go +++ b/api/generated/common/types.go @@ -977,7 +977,7 @@ type TransactionAssetTransfer struct { // AssetId \[xaid\] ID of the asset being transferred. AssetId uint64 `json:"asset-id"` - // CloseAmount Number of assets transfered to the close-to account as part of the transaction. + // CloseAmount Number of assets transferred to the close-to account as part of the transaction. CloseAmount *uint64 `json:"close-amount,omitempty"` // CloseTo \[aclose\] Indicates that the asset should be removed from the account's Assets map, and specifies where the remaining asset holdings should be transferred. It's always valid to transfer remaining asset holdings to the creator account. diff --git a/api/generated/v2/routes.go b/api/generated/v2/routes.go index a021eddea..007399b14 100644 --- a/api/generated/v2/routes.go +++ b/api/generated/v2/routes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Yp+PZYtDDqlYY6wbEx3kHmV3", - "l0PtDklItF17Xdbxl/MYQ3MkL/dFK/xpOtFMXfq7XqtycjZZGlPps9NTtqarqmQnuVydQpIK1/+PIPfL", - "1QoYVfjFjRz94kjZp18//b8AAAD//zbuh6lsewEA", + "xjTLmZCvrWh10MJjO4lHBPGwzwEb9Dhocok5xtzZAcgKBSM0vg1W1vTWyITIuOfa/ejpI4Sv3RRSNE71", + "r5eyLgvM9r+C/GfNGzNxOq5EUJALm9pN6MYBXhdxYLOOZog3m5BXdmRaXtGN9oraBrOGh/O7ijUBEkrC", + "OEEiapfTe6NydB1nOa84Eyb43MTnYpF8WL2ZHtipSS3Vwcxt/DJoLZwzPm2KbrVNb97y5soH0YhDT902", + "07KtLsCBvSratnnux/YrCkcaMbTdaTxSJdjClu4ges42upXaOb3ivkQOeyGVw2mGyZuQoh0UPGCUEbaR", + "PbQ3VF20mKC7rG4AscAQ/taoLRkjCrzXrMT0n5245KGoGc1KZ8p4W89KnoMZARzBg2HBRQEU5B0VhVyR", + "lz6BzsOf3718RBTTdWk8kvlswhb5HCSfN4X/4MIrNXcrfx9F0ITlc+EsKguujUooLu98VZBncZfDkW00", + "16bxOkKDNaZY7AWJc0cF02wIJrxgm6zgZT2IyLbVRdFOcqnrGdQH4wIz4c6oycGbpQeC3jL1Dg8H26bE", + "pYKbw01XOu7CwHLdjWnNUnXuz31DoB1PCW9e3U49neVmX/LpuiH9dDNdTz5E8bAJnYiS79rz9EVIOoz/", + "RlJWNAXGblnpQ7uqdI2w1XYpbepDiuAZGhkSdrqctscbKGbv5CyYBMpa8b7EZScE7u94SyMZQf/C1bUs", + "I+FnXotCd7awqa++xf66VfZxoo9vs9WUOyQUjJUEWoG0bUjAcOkCUZoYaq1lzhsjPNQaxKqCfxflxiWC", + "61bRaLayUvKSF6nK5qVc8FyjCmZfi/Fr3/fTdLKqS8OvOc4b3xdN2Gl2yBeOFYqCqoKw4sm33379l3Z6", + "hHtErvqblHTvcctyWkZqeN6W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VytgVOEXN3L0iyNln3799P8CAAD//3BAh1ptewEA", } // GetSwagger returns the content of the embedded swagger specification file diff --git a/api/generated/v2/types.go b/api/generated/v2/types.go index 312d65f6d..de3320b07 100644 --- a/api/generated/v2/types.go +++ b/api/generated/v2/types.go @@ -1065,7 +1065,7 @@ type TransactionAssetTransfer struct { // AssetId \[xaid\] ID of the asset being transferred. AssetId uint64 `json:"asset-id"` - // CloseAmount Number of assets transfered to the close-to account as part of the transaction. + // CloseAmount Number of assets transferred to the close-to account as part of the transaction. CloseAmount *uint64 `json:"close-amount,omitempty"` // CloseTo \[aclose\] Indicates that the asset should be removed from the account's Assets map, and specifies where the remaining asset holdings should be transferred. It's always valid to transfer remaining asset holdings to the creator account. diff --git a/api/handlers.go b/api/handlers.go index d43e83fe9..0b2000c7d 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -17,12 +17,12 @@ import ( log "github.com/sirupsen/logrus" "github.com/algorand/avm-abi/apps" - "github.com/algorand/indexer/accounting" - "github.com/algorand/indexer/api/generated/common" - "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/util" - "github.com/algorand/indexer/version" + "github.com/algorand/indexer/v3/accounting" + "github.com/algorand/indexer/v3/api/generated/common" + "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/util" + "github.com/algorand/indexer/v3/version" sdk "github.com/algorand/go-algorand-sdk/v2/types" ) diff --git a/api/handlers_e2e_test.go b/api/handlers_e2e_test.go index 07fd8a1bd..70f6ff507 100644 --- a/api/handlers_e2e_test.go +++ b/api/handlers_e2e_test.go @@ -19,13 +19,13 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/postgres" - pgtest "github.com/algorand/indexer/idb/postgres/testing" - "github.com/algorand/indexer/types" - "github.com/algorand/indexer/util" - "github.com/algorand/indexer/util/test" + "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/postgres" + pgtest "github.com/algorand/indexer/v3/idb/postgres/testing" + "github.com/algorand/indexer/v3/types" + "github.com/algorand/indexer/v3/util" + "github.com/algorand/indexer/v3/util/test" "github.com/algorand/avm-abi/apps" "github.com/algorand/go-algorand-sdk/v2/crypto" diff --git a/api/handlers_test.go b/api/handlers_test.go index bbf64d6e1..28a37c74b 100644 --- a/api/handlers_test.go +++ b/api/handlers_test.go @@ -21,10 +21,10 @@ import ( sdkcrypto "github.com/algorand/go-algorand-sdk/v2/crypto" "github.com/algorand/go-algorand-sdk/v2/encoding/msgpack" sdk "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/mocks" - "github.com/algorand/indexer/types" + "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/mocks" + "github.com/algorand/indexer/v3/types" ) func TestTransactionParamToTransactionFilter(t *testing.T) { diff --git a/api/middlewares/migration_middleware.go b/api/middlewares/migration_middleware.go index f8734675b..0ceaf95b8 100644 --- a/api/middlewares/migration_middleware.go +++ b/api/middlewares/migration_middleware.go @@ -6,7 +6,7 @@ import ( "github.com/labstack/echo/v4" - "github.com/algorand/indexer/idb" + "github.com/algorand/indexer/v3/idb" ) // DBUnavailableError is the error returned when a migration is in progress or required. diff --git a/api/middlewares/migration_middleware_test.go b/api/middlewares/migration_middleware_test.go index cbe30d0df..ab04b7257 100644 --- a/api/middlewares/migration_middleware_test.go +++ b/api/middlewares/migration_middleware_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/mocks" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/mocks" ) var errSuccess = errors.New("unexpected success") diff --git a/api/server.go b/api/server.go index 3a30d7a6c..94d19ba32 100644 --- a/api/server.go +++ b/api/server.go @@ -12,10 +12,10 @@ import ( "github.com/labstack/echo/v4/middleware" log "github.com/sirupsen/logrus" - "github.com/algorand/indexer/api/generated/common" - "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/api/middlewares" - "github.com/algorand/indexer/idb" + "github.com/algorand/indexer/v3/api/generated/common" + "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/api/middlewares" + "github.com/algorand/indexer/v3/idb" ) // ExtraOptions are options which change the behavior or the HTTP server. diff --git a/api/util_test.go b/api/util_test.go index 82a42e01c..95d4ab39a 100644 --- a/api/util_test.go +++ b/api/util_test.go @@ -11,7 +11,7 @@ import ( "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorand/indexer/idb" + "github.com/algorand/indexer/v3/idb" ) func TestCallWithTimeoutTimesOut(t *testing.T) { diff --git a/cmd/algorand-indexer/api_config.go b/cmd/algorand-indexer/api_config.go index 2ae8a1c45..c38bcb790 100644 --- a/cmd/algorand-indexer/api_config.go +++ b/cmd/algorand-indexer/api_config.go @@ -6,9 +6,9 @@ import ( "github.com/spf13/cobra" - "github.com/algorand/indexer/api" - "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/config" + "github.com/algorand/indexer/v3/api" + "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/config" ) var ( diff --git a/cmd/algorand-indexer/daemon.go b/cmd/algorand-indexer/daemon.go index 480b735fb..d724601ee 100644 --- a/cmd/algorand-indexer/daemon.go +++ b/cmd/algorand-indexer/daemon.go @@ -15,11 +15,11 @@ import ( "github.com/spf13/pflag" "github.com/spf13/viper" - "github.com/algorand/indexer/api" - "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/config" - "github.com/algorand/indexer/idb" - iutil "github.com/algorand/indexer/util" + "github.com/algorand/indexer/v3/api" + "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/config" + "github.com/algorand/indexer/v3/idb" + iutil "github.com/algorand/indexer/v3/util" ) type daemonConfig struct { diff --git a/cmd/algorand-indexer/daemon_test.go b/cmd/algorand-indexer/daemon_test.go index 2f7bc208e..62262d3f8 100644 --- a/cmd/algorand-indexer/daemon_test.go +++ b/cmd/algorand-indexer/daemon_test.go @@ -13,8 +13,8 @@ import ( "github.com/spf13/pflag" "github.com/stretchr/testify/assert" - "github.com/algorand/indexer/config" - "github.com/algorand/indexer/util" + "github.com/algorand/indexer/v3/config" + "github.com/algorand/indexer/v3/util" ) // TestParameterConfigErrorWhenBothFileTypesArePresent test that if both file types are there then it is an error diff --git a/cmd/algorand-indexer/main.go b/cmd/algorand-indexer/main.go index 2313b8d67..de022a5af 100644 --- a/cmd/algorand-indexer/main.go +++ b/cmd/algorand-indexer/main.go @@ -11,13 +11,13 @@ import ( "github.com/spf13/cobra/doc" "github.com/spf13/viper" - v "github.com/algorand/indexer/cmd/validator/core" - "github.com/algorand/indexer/config" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/dummy" - _ "github.com/algorand/indexer/idb/postgres" - "github.com/algorand/indexer/util/metrics" - "github.com/algorand/indexer/version" + v "github.com/algorand/indexer/v3/cmd/validator/core" + "github.com/algorand/indexer/v3/config" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/dummy" + _ "github.com/algorand/indexer/v3/idb/postgres" + "github.com/algorand/indexer/v3/util/metrics" + "github.com/algorand/indexer/v3/version" ) const autoLoadIndexerConfigFileName = config.FileName diff --git a/cmd/e2equeries/main.go b/cmd/e2equeries/main.go index e8b6f3bdd..2fc2aa784 100644 --- a/cmd/e2equeries/main.go +++ b/cmd/e2equeries/main.go @@ -7,10 +7,10 @@ import ( "os" "time" - "github.com/algorand/indexer/idb" - _ "github.com/algorand/indexer/idb/postgres" - "github.com/algorand/indexer/util" - testutil "github.com/algorand/indexer/util/test" + "github.com/algorand/indexer/v3/idb" + _ "github.com/algorand/indexer/v3/idb/postgres" + "github.com/algorand/indexer/v3/util" + testutil "github.com/algorand/indexer/v3/util/test" sdk "github.com/algorand/go-algorand-sdk/v2/types" ) diff --git a/cmd/idbtest/idbtest.go b/cmd/idbtest/idbtest.go index 0000cc101..3307e05d0 100644 --- a/cmd/idbtest/idbtest.go +++ b/cmd/idbtest/idbtest.go @@ -9,12 +9,12 @@ import ( "os" "time" - "github.com/algorand/indexer/accounting" - models "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/idb" - _ "github.com/algorand/indexer/idb/postgres" - "github.com/algorand/indexer/util" - testutil "github.com/algorand/indexer/util/test" + "github.com/algorand/indexer/v3/accounting" + models "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/idb" + _ "github.com/algorand/indexer/v3/idb/postgres" + "github.com/algorand/indexer/v3/util" + testutil "github.com/algorand/indexer/v3/util/test" ajson "github.com/algorand/go-algorand-sdk/v2/encoding/json" sdk_types "github.com/algorand/go-algorand-sdk/v2/types" diff --git a/cmd/validator/core/struct_processor.go b/cmd/validator/core/struct_processor.go index a538f614f..0132a50d5 100644 --- a/cmd/validator/core/struct_processor.go +++ b/cmd/validator/core/struct_processor.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - "github.com/algorand/indexer/api/generated/v2" + "github.com/algorand/indexer/v3/api/generated/v2" ) // StructProcessor implements the process function by serializing API responses into structs and comparing the typed diff --git a/cmd/validator/core/validator.go b/cmd/validator/core/validator.go index d57a5e250..bc15fb6e0 100644 --- a/cmd/validator/core/validator.go +++ b/cmd/validator/core/validator.go @@ -12,7 +12,7 @@ import ( "sync" "time" - "github.com/algorand/indexer/api" + "github.com/algorand/indexer/v3/api" sdk_types "github.com/algorand/go-algorand-sdk/v2/types" ) diff --git a/cmd/validator/core/validator_test.go b/cmd/validator/core/validator_test.go index 39d9864c5..deb8b26ef 100644 --- a/cmd/validator/core/validator_test.go +++ b/cmd/validator/core/validator_test.go @@ -9,7 +9,7 @@ import ( "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorand/indexer/api" + "github.com/algorand/indexer/v3/api" ) type mockProcessor struct { diff --git a/cmd/validator/main.go b/cmd/validator/main.go index 4411bd793..030bb8791 100644 --- a/cmd/validator/main.go +++ b/cmd/validator/main.go @@ -1,6 +1,6 @@ package main -import "github.com/algorand/indexer/cmd/validator/core" +import "github.com/algorand/indexer/v3/cmd/validator/core" func main() { core.ValidatorCmd.Execute() diff --git a/go.mod b/go.mod index 7056eb301..b3d04e764 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/algorand/indexer +module github.com/algorand/indexer/v3 go 1.20 @@ -86,11 +86,13 @@ require ( go.uber.org/multierr v1.7.0 // indirect go.uber.org/zap v1.24.0 // indirect golang.org/x/crypto v0.6.0 // indirect + golang.org/x/mod v0.8.0 // indirect golang.org/x/net v0.8.0 // indirect golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.6.0 // indirect golang.org/x/text v0.8.0 // indirect golang.org/x/time v0.0.0-20220411224347-583f2d630306 // indirect + golang.org/x/tools v0.6.0 // indirect google.golang.org/protobuf v1.28.1 // indirect gopkg.in/ini.v1 v1.66.2 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect diff --git a/go.sum b/go.sum index e69eb8336..5aee3571f 100644 --- a/go.sum +++ b/go.sum @@ -785,6 +785,8 @@ golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.5.0/go.mod h1:5OXOZSfqPIIbmVBIIKWRFfZjPR0E5r58TLhUjH0a2Ro= golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= +golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -1031,6 +1033,8 @@ golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= +golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/idb/dummy/dummy.go b/idb/dummy/dummy.go index ab71b6ae7..19e276e8b 100644 --- a/idb/dummy/dummy.go +++ b/idb/dummy/dummy.go @@ -5,8 +5,8 @@ import ( log "github.com/sirupsen/logrus" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/types" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/types" sdk "github.com/algorand/go-algorand-sdk/v2/types" ) diff --git a/idb/dummy/dummy_factory.go b/idb/dummy/dummy_factory.go index 45f0e5f4a..891786f63 100644 --- a/idb/dummy/dummy_factory.go +++ b/idb/dummy/dummy_factory.go @@ -3,7 +3,7 @@ package dummy import ( log "github.com/sirupsen/logrus" - "github.com/algorand/indexer/idb" + "github.com/algorand/indexer/v3/idb" ) type dummyFactory struct { diff --git a/idb/idb.go b/idb/idb.go index 26826e28b..c91b1c0b7 100644 --- a/idb/idb.go +++ b/idb/idb.go @@ -9,8 +9,8 @@ import ( "strconv" "time" - models "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/types" + models "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/types" sdk "github.com/algorand/go-algorand-sdk/v2/types" ) diff --git a/idb/idb_test.go b/idb/idb_test.go index 419a03406..0fa7af7a2 100644 --- a/idb/idb_test.go +++ b/idb/idb_test.go @@ -7,8 +7,8 @@ import ( "github.com/stretchr/testify/require" sdk "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/util/test" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/util/test" ) func TestTxnRowNext(t *testing.T) { diff --git a/idb/mocks/IndexerDb.go b/idb/mocks/IndexerDb.go index 409cdb5ed..e03ad2cc0 100644 --- a/idb/mocks/IndexerDb.go +++ b/idb/mocks/IndexerDb.go @@ -5,10 +5,10 @@ package mocks import ( context "context" - idb "github.com/algorand/indexer/idb" + idb "github.com/algorand/indexer/v3/idb" mock "github.com/stretchr/testify/mock" - types "github.com/algorand/indexer/types" + types "github.com/algorand/indexer/v3/types" v2types "github.com/algorand/go-algorand-sdk/v2/types" ) diff --git a/idb/postgres/internal/encoding/encoding.go b/idb/postgres/internal/encoding/encoding.go index 507400e41..2e89066d7 100644 --- a/idb/postgres/internal/encoding/encoding.go +++ b/idb/postgres/internal/encoding/encoding.go @@ -6,10 +6,10 @@ import ( "github.com/algorand/go-codec/codec" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/postgres/internal/types" - itypes "github.com/algorand/indexer/types" - "github.com/algorand/indexer/util" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/postgres/internal/types" + itypes "github.com/algorand/indexer/v3/types" + "github.com/algorand/indexer/v3/util" sdk "github.com/algorand/go-algorand-sdk/v2/types" ) diff --git a/idb/postgres/internal/encoding/encoding_test.go b/idb/postgres/internal/encoding/encoding_test.go index ca7fc1c0d..77c8c1223 100644 --- a/idb/postgres/internal/encoding/encoding_test.go +++ b/idb/postgres/internal/encoding/encoding_test.go @@ -6,12 +6,12 @@ import ( "github.com/algorand/go-algorand-sdk/v2/encoding/msgpack" sdk "github.com/algorand/go-algorand-sdk/v2/types" - itypes "github.com/algorand/indexer/types" + itypes "github.com/algorand/indexer/v3/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/postgres/internal/types" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/postgres/internal/types" ) func TestEncodeSignedTxnWithAD(t *testing.T) { diff --git a/idb/postgres/internal/migrations/convert_account_data/m.go b/idb/postgres/internal/migrations/convert_account_data/m.go index a63301c89..98adca848 100644 --- a/idb/postgres/internal/migrations/convert_account_data/m.go +++ b/idb/postgres/internal/migrations/convert_account_data/m.go @@ -6,7 +6,7 @@ import ( "github.com/jackc/pgx/v4" - "github.com/algorand/indexer/idb/postgres/internal/encoding" + "github.com/algorand/indexer/v3/idb/postgres/internal/encoding" sdk "github.com/algorand/go-algorand-sdk/v2/types" ) diff --git a/idb/postgres/internal/migrations/convert_account_data/m_test.go b/idb/postgres/internal/migrations/convert_account_data/m_test.go index 6c57fc1f0..a00fd27c5 100644 --- a/idb/postgres/internal/migrations/convert_account_data/m_test.go +++ b/idb/postgres/internal/migrations/convert_account_data/m_test.go @@ -12,10 +12,10 @@ import ( "github.com/jackc/pgx/v4" "github.com/jackc/pgx/v4/pgxpool" - "github.com/algorand/indexer/idb/postgres/internal/encoding" - cad "github.com/algorand/indexer/idb/postgres/internal/migrations/convert_account_data" - pgtest "github.com/algorand/indexer/idb/postgres/internal/testing" - pgutil "github.com/algorand/indexer/idb/postgres/internal/util" + "github.com/algorand/indexer/v3/idb/postgres/internal/encoding" + cad "github.com/algorand/indexer/v3/idb/postgres/internal/migrations/convert_account_data" + pgtest "github.com/algorand/indexer/v3/idb/postgres/internal/testing" + pgutil "github.com/algorand/indexer/v3/idb/postgres/internal/util" ) func makeAddress(i int) sdk.Address { diff --git a/idb/postgres/internal/testing/testing.go b/idb/postgres/internal/testing/testing.go index 9ff917cd7..1f24bd6b0 100644 --- a/idb/postgres/internal/testing/testing.go +++ b/idb/postgres/internal/testing/testing.go @@ -12,7 +12,7 @@ import ( "github.com/orlangure/gnomock/preset/postgres" "github.com/stretchr/testify/require" - "github.com/algorand/indexer/idb/postgres/internal/schema" + "github.com/algorand/indexer/v3/idb/postgres/internal/schema" ) var testpg string diff --git a/idb/postgres/internal/util/util.go b/idb/postgres/internal/util/util.go index 4f97417d7..52744beb5 100644 --- a/idb/postgres/internal/util/util.go +++ b/idb/postgres/internal/util/util.go @@ -11,7 +11,7 @@ import ( "github.com/jackc/pgx/v4/pgxpool" log "github.com/sirupsen/logrus" - "github.com/algorand/indexer/idb" + "github.com/algorand/indexer/v3/idb" ) func isSerializationError(err error) bool { diff --git a/idb/postgres/internal/util/util_test.go b/idb/postgres/internal/util/util_test.go index d8ee0298a..4c47cc3e4 100644 --- a/idb/postgres/internal/util/util_test.go +++ b/idb/postgres/internal/util/util_test.go @@ -10,8 +10,8 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - pgtest "github.com/algorand/indexer/idb/postgres/internal/testing" - "github.com/algorand/indexer/idb/postgres/internal/util" + pgtest "github.com/algorand/indexer/v3/idb/postgres/internal/testing" + "github.com/algorand/indexer/v3/idb/postgres/internal/util" ) func TestTxWithRetry(t *testing.T) { diff --git a/idb/postgres/internal/writer/write_txn.go b/idb/postgres/internal/writer/write_txn.go index 890e88d7e..4a6be5f0b 100644 --- a/idb/postgres/internal/writer/write_txn.go +++ b/idb/postgres/internal/writer/write_txn.go @@ -6,9 +6,9 @@ import ( "github.com/jackc/pgx/v4" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/postgres/internal/encoding" - "github.com/algorand/indexer/util" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/postgres/internal/encoding" + "github.com/algorand/indexer/v3/util" "github.com/algorand/go-algorand-sdk/v2/crypto" "github.com/algorand/go-algorand-sdk/v2/types" diff --git a/idb/postgres/internal/writer/writer.go b/idb/postgres/internal/writer/writer.go index 1e8b078b3..20ed3f2bc 100644 --- a/idb/postgres/internal/writer/writer.go +++ b/idb/postgres/internal/writer/writer.go @@ -9,10 +9,10 @@ import ( "github.com/jackc/pgx/v4" "github.com/algorand/avm-abi/apps" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/postgres/internal/encoding" - "github.com/algorand/indexer/idb/postgres/internal/schema" - "github.com/algorand/indexer/types" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/postgres/internal/encoding" + "github.com/algorand/indexer/v3/idb/postgres/internal/schema" + "github.com/algorand/indexer/v3/types" sdk "github.com/algorand/go-algorand-sdk/v2/types" ) diff --git a/idb/postgres/internal/writer/writer_test.go b/idb/postgres/internal/writer/writer_test.go index 2e232adee..d793b97a4 100644 --- a/idb/postgres/internal/writer/writer_test.go +++ b/idb/postgres/internal/writer/writer_test.go @@ -13,15 +13,15 @@ import ( "github.com/stretchr/testify/require" "github.com/algorand/avm-abi/apps" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/postgres/internal/encoding" - "github.com/algorand/indexer/idb/postgres/internal/schema" - pgtest "github.com/algorand/indexer/idb/postgres/internal/testing" - pgutil "github.com/algorand/indexer/idb/postgres/internal/util" - "github.com/algorand/indexer/idb/postgres/internal/writer" - "github.com/algorand/indexer/types" - "github.com/algorand/indexer/util" - "github.com/algorand/indexer/util/test" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/postgres/internal/encoding" + "github.com/algorand/indexer/v3/idb/postgres/internal/schema" + pgtest "github.com/algorand/indexer/v3/idb/postgres/internal/testing" + pgutil "github.com/algorand/indexer/v3/idb/postgres/internal/util" + "github.com/algorand/indexer/v3/idb/postgres/internal/writer" + "github.com/algorand/indexer/v3/types" + "github.com/algorand/indexer/v3/util" + "github.com/algorand/indexer/v3/util/test" crypto2 "github.com/algorand/go-algorand-sdk/v2/crypto" sdk "github.com/algorand/go-algorand-sdk/v2/types" diff --git a/idb/postgres/postgres.go b/idb/postgres/postgres.go index 21594c4dc..d0918eda7 100644 --- a/idb/postgres/postgres.go +++ b/idb/postgres/postgres.go @@ -21,16 +21,16 @@ import ( "github.com/jackc/pgx/v4/pgxpool" log "github.com/sirupsen/logrus" - models "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/migration" - "github.com/algorand/indexer/idb/postgres/internal/encoding" - "github.com/algorand/indexer/idb/postgres/internal/schema" - "github.com/algorand/indexer/idb/postgres/internal/types" - pgutil "github.com/algorand/indexer/idb/postgres/internal/util" - "github.com/algorand/indexer/idb/postgres/internal/writer" - itypes "github.com/algorand/indexer/types" - "github.com/algorand/indexer/util" + models "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/migration" + "github.com/algorand/indexer/v3/idb/postgres/internal/encoding" + "github.com/algorand/indexer/v3/idb/postgres/internal/schema" + "github.com/algorand/indexer/v3/idb/postgres/internal/types" + pgutil "github.com/algorand/indexer/v3/idb/postgres/internal/util" + "github.com/algorand/indexer/v3/idb/postgres/internal/writer" + itypes "github.com/algorand/indexer/v3/types" + "github.com/algorand/indexer/v3/util" "github.com/algorand/go-algorand-sdk/v2/protocol" "github.com/algorand/go-algorand-sdk/v2/protocol/config" diff --git a/idb/postgres/postgres_boxes_test.go b/idb/postgres/postgres_boxes_test.go index de5734029..d601199c0 100644 --- a/idb/postgres/postgres_boxes_test.go +++ b/idb/postgres/postgres_boxes_test.go @@ -12,10 +12,10 @@ import ( "github.com/algorand/avm-abi/apps" sdk "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/postgres/internal/encoding" - "github.com/algorand/indexer/idb/postgres/internal/writer" - "github.com/algorand/indexer/util/test" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/postgres/internal/encoding" + "github.com/algorand/indexer/v3/idb/postgres/internal/writer" + "github.com/algorand/indexer/v3/util/test" "github.com/algorand/go-algorand-sdk/v2/protocol" "github.com/algorand/go-algorand-sdk/v2/protocol/config" diff --git a/idb/postgres/postgres_factory.go b/idb/postgres/postgres_factory.go index 1d3c62999..191e825fc 100644 --- a/idb/postgres/postgres_factory.go +++ b/idb/postgres/postgres_factory.go @@ -3,7 +3,7 @@ package postgres import ( log "github.com/sirupsen/logrus" - "github.com/algorand/indexer/idb" + "github.com/algorand/indexer/v3/idb" ) type postgresFactory struct { diff --git a/idb/postgres/postgres_integration_common_test.go b/idb/postgres/postgres_integration_common_test.go index 8abe12022..9392cd9ef 100644 --- a/idb/postgres/postgres_integration_common_test.go +++ b/idb/postgres/postgres_integration_common_test.go @@ -5,13 +5,13 @@ import ( "testing" sdk "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorand/indexer/types" + "github.com/algorand/indexer/v3/types" "github.com/jackc/pgx/v4/pgxpool" "github.com/stretchr/testify/require" - "github.com/algorand/indexer/idb" - pgtest "github.com/algorand/indexer/idb/postgres/internal/testing" - "github.com/algorand/indexer/util/test" + "github.com/algorand/indexer/v3/idb" + pgtest "github.com/algorand/indexer/v3/idb/postgres/internal/testing" + "github.com/algorand/indexer/v3/util/test" ) func setupIdbWithConnectionString(t *testing.T, connStr string, genesis sdk.Genesis) *IndexerDb { diff --git a/idb/postgres/postgres_integration_test.go b/idb/postgres/postgres_integration_test.go index 5e5b1bd01..f1854d020 100644 --- a/idb/postgres/postgres_integration_test.go +++ b/idb/postgres/postgres_integration_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/algorand/indexer/types" + "github.com/algorand/indexer/v3/types" "github.com/jackc/pgx/v4" "github.com/jackc/pgx/v4/pgxpool" "github.com/stretchr/testify/assert" @@ -20,14 +20,14 @@ import ( crypto2 "github.com/algorand/go-algorand-sdk/v2/crypto" "github.com/algorand/go-algorand-sdk/v2/encoding/msgpack" sdk "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/postgres/internal/encoding" - "github.com/algorand/indexer/idb/postgres/internal/schema" - pgtest "github.com/algorand/indexer/idb/postgres/internal/testing" - pgutil "github.com/algorand/indexer/idb/postgres/internal/util" - "github.com/algorand/indexer/util" - "github.com/algorand/indexer/util/test" + "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/postgres/internal/encoding" + "github.com/algorand/indexer/v3/idb/postgres/internal/schema" + pgtest "github.com/algorand/indexer/v3/idb/postgres/internal/testing" + pgutil "github.com/algorand/indexer/v3/idb/postgres/internal/util" + "github.com/algorand/indexer/v3/util" + "github.com/algorand/indexer/v3/util/test" "github.com/algorand/go-algorand-sdk/v2/encoding/json" "github.com/algorand/go-algorand-sdk/v2/protocol" diff --git a/idb/postgres/postgres_migrations.go b/idb/postgres/postgres_migrations.go index cb4969317..173f9c8d0 100644 --- a/idb/postgres/postgres_migrations.go +++ b/idb/postgres/postgres_migrations.go @@ -11,12 +11,12 @@ import ( "github.com/jackc/pgx/v4" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/migration" - "github.com/algorand/indexer/idb/postgres/internal/encoding" - cad "github.com/algorand/indexer/idb/postgres/internal/migrations/convert_account_data" - "github.com/algorand/indexer/idb/postgres/internal/schema" - "github.com/algorand/indexer/idb/postgres/internal/types" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/migration" + "github.com/algorand/indexer/v3/idb/postgres/internal/encoding" + cad "github.com/algorand/indexer/v3/idb/postgres/internal/migrations/convert_account_data" + "github.com/algorand/indexer/v3/idb/postgres/internal/schema" + "github.com/algorand/indexer/v3/idb/postgres/internal/types" ) func init() { diff --git a/idb/postgres/postgres_migrations_test.go b/idb/postgres/postgres_migrations_test.go index 9eb37da3e..6837ceacb 100644 --- a/idb/postgres/postgres_migrations_test.go +++ b/idb/postgres/postgres_migrations_test.go @@ -8,8 +8,8 @@ import ( "github.com/stretchr/testify/require" sdk "github.com/algorand/go-algorand-sdk/v2/types" - pgtest "github.com/algorand/indexer/idb/postgres/internal/testing" - "github.com/algorand/indexer/idb/postgres/internal/types" + pgtest "github.com/algorand/indexer/v3/idb/postgres/internal/testing" + "github.com/algorand/indexer/v3/idb/postgres/internal/types" ) func TestConvertAccountDataIncrementsMigrationNumber(t *testing.T) { diff --git a/idb/postgres/postgres_rand_test.go b/idb/postgres/postgres_rand_test.go index 2237ad230..bcf433ac7 100644 --- a/idb/postgres/postgres_rand_test.go +++ b/idb/postgres/postgres_rand_test.go @@ -13,10 +13,10 @@ import ( sdk "github.com/algorand/go-algorand-sdk/v2/types" - models "github.com/algorand/indexer/api/generated/v2" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/idb/postgres/internal/writer" - "github.com/algorand/indexer/util/test" + models "github.com/algorand/indexer/v3/api/generated/v2" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/idb/postgres/internal/writer" + "github.com/algorand/indexer/v3/util/test" ) func generateAddress(t *testing.T) sdk.Address { diff --git a/idb/postgres/postgres_test.go b/idb/postgres/postgres_test.go index 43b731b6d..c797b1b55 100644 --- a/idb/postgres/postgres_test.go +++ b/idb/postgres/postgres_test.go @@ -10,8 +10,8 @@ import ( sdk "github.com/algorand/go-algorand-sdk/v2/types" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/types" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/types" ) func Test_txnFilterOptimization(t *testing.T) { diff --git a/idb/postgres/testing/pgtest.go b/idb/postgres/testing/pgtest.go index d28b084be..87a20b944 100644 --- a/idb/postgres/testing/pgtest.go +++ b/idb/postgres/testing/pgtest.go @@ -1,7 +1,7 @@ package testing import ( - pgtest "github.com/algorand/indexer/idb/postgres/internal/testing" + pgtest "github.com/algorand/indexer/v3/idb/postgres/internal/testing" ) // SetupPostgres allows setting up postgres instance in integration or e2e tests diff --git a/util/test/account_testutil.go b/util/test/account_testutil.go index 36187ae9f..9b45e1177 100644 --- a/util/test/account_testutil.go +++ b/util/test/account_testutil.go @@ -5,7 +5,7 @@ import ( "fmt" "math/rand" - "github.com/algorand/indexer/util" + "github.com/algorand/indexer/v3/util" "github.com/algorand/go-algorand-sdk/v2/encoding/msgpack" "github.com/algorand/go-algorand-sdk/v2/protocol" diff --git a/util/test/testutil.go b/util/test/testutil.go index cb1a30316..0380edb65 100644 --- a/util/test/testutil.go +++ b/util/test/testutil.go @@ -9,9 +9,9 @@ import ( "os" "runtime" - "github.com/algorand/indexer/idb" - "github.com/algorand/indexer/types" - "github.com/algorand/indexer/util" + "github.com/algorand/indexer/v3/idb" + "github.com/algorand/indexer/v3/types" + "github.com/algorand/indexer/v3/util" "github.com/algorand/go-algorand-sdk/v2/encoding/msgpack" sdk "github.com/algorand/go-algorand-sdk/v2/types" diff --git a/util/util.go b/util/util.go index e291196ff..685763a5b 100644 --- a/util/util.go +++ b/util/util.go @@ -12,7 +12,7 @@ import ( "unicode/utf8" "github.com/algorand/go-codec/codec" - "github.com/algorand/indexer/idb" + "github.com/algorand/indexer/v3/idb" "github.com/algorand/go-algorand-sdk/v2/encoding/json" "github.com/algorand/go-algorand-sdk/v2/protocol"