Migrate internal module imports to unified package path.

Replaced legacy `*.orly` module imports with `next.orly.dev/pkg` paths across the codebase for consistency. Removed legacy `go.mod` files from sub-packages, consolidating dependency management. Added Dockerfiles and configurations for benchmarking environments.
This commit is contained in:
2025-09-12 16:12:31 +01:00
parent 2dd119401b
commit 110223fc4e
236 changed files with 4098 additions and 1253 deletions

View File

@@ -3,10 +3,10 @@ package event
import (
"io"
"crypto.orly/ec/schnorr"
"encoders.orly/tag"
"encoders.orly/varint"
"lol.mleku.dev/chk"
"next.orly.dev/pkg/crypto/ec/schnorr"
"next.orly.dev/pkg/encoders/tag"
"next.orly.dev/pkg/encoders/varint"
)
// MarshalBinary writes a binary encoding of an event.

View File

@@ -6,9 +6,9 @@ import (
"testing"
"time"
"encoders.orly/event/examples"
"lol.mleku.dev/chk"
"utils.orly"
"next.orly.dev/pkg/encoders/event/examples"
"next.orly.dev/pkg/utils"
)
func TestTMarshalBinary_UnmarshalBinary(t *testing.T) {

View File

@@ -1,10 +1,10 @@
package event
import (
"crypto.orly/sha256"
"encoders.orly/hex"
"encoders.orly/ints"
"encoders.orly/text"
"next.orly.dev/pkg/crypto/sha256"
"next.orly.dev/pkg/encoders/hex"
"next.orly.dev/pkg/encoders/ints"
"next.orly.dev/pkg/encoders/text"
)
// ToCanonical converts the event to the canonical encoding used to derive the

View File

@@ -4,18 +4,18 @@ import (
"fmt"
"io"
"crypto.orly/ec/schnorr"
"crypto.orly/sha256"
"encoders.orly/ints"
"encoders.orly/kind"
"encoders.orly/tag"
"encoders.orly/text"
"github.com/templexxx/xhex"
"lol.mleku.dev/chk"
"lol.mleku.dev/errorf"
"lol.mleku.dev/log"
"utils.orly"
"utils.orly/bufpool"
"next.orly.dev/pkg/crypto/ec/schnorr"
"next.orly.dev/pkg/crypto/sha256"
"next.orly.dev/pkg/encoders/ints"
"next.orly.dev/pkg/encoders/kind"
"next.orly.dev/pkg/encoders/tag"
"next.orly.dev/pkg/encoders/text"
"next.orly.dev/pkg/utils"
"next.orly.dev/pkg/utils/bufpool"
)
// E is the primary datatype of nostr. This is the form of the structure that
@@ -28,7 +28,7 @@ import (
// library. Either call MarshalJSON directly or use a json.Encoder with html
// escaping disabled.
//
// Or import "encoders.orly/json" and use json.Marshal which is the
// Or import "next.orly.dev/pkg/encoders/json" and use json.Marshal which is the
// same as go 1.25 json v1 except with this one stupidity removed.
type E struct {

View File

@@ -6,16 +6,16 @@ import (
"testing"
"time"
"encoders.orly/event/examples"
"encoders.orly/hex"
"encoders.orly/json"
"encoders.orly/tag"
"lol.mleku.dev/chk"
"lol.mleku.dev/log"
"lukechampine.com/frand"
"utils.orly"
"utils.orly/bufpool"
"utils.orly/units"
"next.orly.dev/pkg/encoders/event/examples"
"next.orly.dev/pkg/encoders/hex"
"next.orly.dev/pkg/encoders/json"
"next.orly.dev/pkg/encoders/tag"
"next.orly.dev/pkg/utils"
"next.orly.dev/pkg/utils/bufpool"
"next.orly.dev/pkg/utils/units"
)
func TestMarshalJSONUnmarshalJSON(t *testing.T) {

View File

@@ -1,12 +1,12 @@
package event
import (
"crypto.orly/p256k"
"interfaces.orly/signer"
"lol.mleku.dev/chk"
"lol.mleku.dev/errorf"
"lol.mleku.dev/log"
"utils.orly"
"next.orly.dev/pkg/crypto/p256k"
"next.orly.dev/pkg/interfaces/signer"
"next.orly.dev/pkg/utils"
)
// Sign the event using the signer.I. Uses github.com/bitcoin-core/secp256k1 if