feat: scrollfmlt

This commit is contained in:
georgehao
2023-08-03 16:38:23 +08:00
parent 8adee22cc9
commit 57f348216c
7 changed files with 11 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ require (
github.com/appleboy/gin-jwt/v2 v2.9.1
github.com/gin-gonic/gin v1.9.1
github.com/go-resty/resty/v2 v2.7.0
github.com/mitchellh/mapstructure v1.5.0
github.com/scroll-tech/go-ethereum v1.10.14-0.20230613025759-f055f50f9d56
github.com/shopspring/decimal v1.3.1
github.com/stretchr/testify v1.8.3
@@ -54,7 +55,6 @@ require (
github.com/go-stack/stack v1.8.1 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/iden3/go-iden3-crypto v0.0.15 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/scroll-tech/zktrie v0.5.3 // indirect

View File

@@ -3,6 +3,7 @@ package auth
import (
"github.com/gin-gonic/gin"
"gorm.io/gorm"
"scroll-tech/coordinator/internal/orm"
)

View File

@@ -5,6 +5,7 @@ import (
"time"
"github.com/gin-gonic/gin"
"scroll-tech/coordinator/internal/types"
)

View File

@@ -1,7 +1,6 @@
package middleware
import (
"scroll-tech/coordinator/internal/types"
"time"
jwt "github.com/appleboy/gin-jwt/v2"
@@ -9,6 +8,7 @@ import (
"scroll-tech/coordinator/internal/config"
"scroll-tech/coordinator/internal/controller/api"
"scroll-tech/coordinator/internal/types"
)
// LoginMiddleware jwt auth middleware

View File

@@ -1,10 +1,11 @@
package middleware
import (
"github.com/gin-gonic/gin"
"math/rand"
"time"
"github.com/gin-gonic/gin"
jwt "github.com/appleboy/gin-jwt/v2"
"github.com/scroll-tech/go-ethereum/log"

View File

@@ -3,8 +3,9 @@ package orm
import (
"context"
"fmt"
"gorm.io/gorm"
"time"
"gorm.io/gorm"
)
// Random store the random string from prover client

View File

@@ -4,12 +4,13 @@ import (
"crypto/ecdsa"
"encoding/json"
"fmt"
"net/http"
"testing"
"github.com/go-resty/resty/v2"
"github.com/mitchellh/mapstructure"
"github.com/scroll-tech/go-ethereum/crypto"
"github.com/stretchr/testify/assert"
"net/http"
"testing"
"scroll-tech/common/types/message"