test: update tests to reflect hway changes

This commit is contained in:
Darp Alakun
2025-01-04 19:26:18 -05:00
parent c31f5b67b7
commit 466b34b5bd
36 changed files with 928 additions and 691 deletions

View File

@@ -3,9 +3,9 @@ package common
import (
bankv1beta1 "cosmossdk.io/api/cosmos/bank/v1beta1"
nodev1beta1 "github.com/cosmos/cosmos-sdk/client/grpc/node"
didv1 "github.com/onsonr/sonr/api/did/v1"
dwnv1 "github.com/onsonr/sonr/api/dwn/v1"
svcv1 "github.com/onsonr/sonr/api/svc/v1"
didv1 "github.com/onsonr/hway/api/did/v1"
dwnv1 "github.com/onsonr/hway/api/dwn/v1"
svcv1 "github.com/onsonr/hway/api/svc/v1"
"google.golang.org/grpc"
)

View File

@@ -8,8 +8,8 @@ import (
"github.com/golang-jwt/jwt"
"github.com/ipfs/go-cid"
"github.com/onsonr/sonr/internal/crypto/keys"
"github.com/onsonr/sonr/internal/crypto/ucan"
"github.com/onsonr/hway/internal/crypto/keys"
"github.com/onsonr/hway/internal/crypto/ucan"
)
type IPFSTokenStore interface {

View File

@@ -6,10 +6,10 @@ import (
"github.com/labstack/echo/v4"
"github.com/medama-io/go-useragent"
"github.com/onsonr/sonr/internal/crypto/mpc"
"github.com/onsonr/sonr/internal/common"
"github.com/onsonr/sonr/internal/config/hway"
hwayorm "github.com/onsonr/sonr/internal/database/hwayorm"
"github.com/onsonr/hway/internal/crypto/mpc"
"github.com/onsonr/hway/internal/common"
"github.com/onsonr/hway/internal/config/hway"
hwayorm "github.com/onsonr/hway/internal/database/hwayorm"
)
type GatewayContext struct {

View File

@@ -4,7 +4,7 @@ import (
"net/http"
"github.com/labstack/echo/v4"
hwayorm "github.com/onsonr/sonr/internal/database/hwayorm"
hwayorm "github.com/onsonr/hway/internal/database/hwayorm"
)
func UpdateProfile(c echo.Context) (*hwayorm.Profile, error) {

View File

@@ -5,7 +5,7 @@ import (
"github.com/a-h/templ"
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/gateway/views"
"github.com/onsonr/hway/gateway/views"
)
func Render(c echo.Context, cmp templ.Component) error {

View File

@@ -3,7 +3,7 @@ package context
import (
"fmt"
"github.com/onsonr/sonr/internal/common"
"github.com/onsonr/hway/internal/common"
)
// ParamsBank returns the bank params

View File

@@ -4,7 +4,7 @@ import (
gocontext "context"
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/internal/common"
"github.com/onsonr/hway/internal/common"
"github.com/segmentio/ksuid"
"lukechampine.com/blake3"
)

View File

@@ -4,7 +4,7 @@ import (
"github.com/go-webauthn/webauthn/protocol"
"github.com/labstack/echo/v4"
"github.com/medama-io/go-useragent"
hwayorm "github.com/onsonr/sonr/internal/database/hwayorm"
hwayorm "github.com/onsonr/hway/internal/database/hwayorm"
)
// Define the credential structure matching our frontend data

View File

@@ -1,8 +1,8 @@
package context
import (
"github.com/onsonr/sonr/internal/crypto/mpc"
"github.com/onsonr/sonr/internal/common"
"github.com/onsonr/hway/internal/crypto/mpc"
"github.com/onsonr/hway/internal/common"
"lukechampine.com/blake3"
)

View File

@@ -29,7 +29,7 @@ templ HeroSocials() {
<sl-button circle outline href="https://onsonr.dev">
<sl-icon name="docs" library="sonr" label="Docs"></sl-icon>
</sl-button>
<sl-button circle outline href="https://github.com/onsonr/sonr">
<sl-button circle outline href="https://github.com/onsonr/hway">
<sl-icon name="social-github" library="sonr" label="Open Source"></sl-icon>
</sl-button>
</div>

View File

@@ -113,7 +113,7 @@ func HeroSocials() templ.Component {
templ_7745c5c3_Var5 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"pt-1.5 flex flex-row items-center justify-center h-full gap-3\"><sl-button circle outline href=\"https://sonr.io\"><sl-icon name=\"home\" library=\"sonr\" label=\"Home\"></sl-icon></sl-button> <sl-button circle outline href=\"https://onsonr.dev\"><sl-icon name=\"docs\" library=\"sonr\" label=\"Docs\"></sl-icon></sl-button> <sl-button circle outline href=\"https://github.com/onsonr/sonr\"><sl-icon name=\"social-github\" library=\"sonr\" label=\"Open Source\"></sl-icon></sl-button></div>")
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("<div class=\"pt-1.5 flex flex-row items-center justify-center h-full gap-3\"><sl-button circle outline href=\"https://sonr.io\"><sl-icon name=\"home\" library=\"sonr\" label=\"Home\"></sl-icon></sl-button> <sl-button circle outline href=\"https://onsonr.dev\"><sl-icon name=\"docs\" library=\"sonr\" label=\"Docs\"></sl-icon></sl-button> <sl-button circle outline href=\"https://github.com/onsonr/hway\"><sl-icon name=\"social-github\" library=\"sonr\" label=\"Open Source\"></sl-icon></sl-button></div>")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}

View File

@@ -1,6 +1,6 @@
package views
import "github.com/onsonr/sonr/gateway/islands"
import "github.com/onsonr/hway/gateway/islands"
templ RegisterProfileView(firstNumber int, lastNumber int) {
@LayoutView("New Profile | Sonr.ID") {

View File

@@ -8,7 +8,7 @@ package views
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
import "github.com/onsonr/sonr/gateway/islands"
import "github.com/onsonr/hway/gateway/islands"
func RegisterProfileView(firstNumber int, lastNumber int) templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {