mirror of
https://github.com/GMWalletApp/epusdt.git
synced 2026-07-07 10:16:15 +00:00
Refactor project structure and update import paths to GMWalletApp/epusdt
This commit is contained in:
@@ -15,10 +15,10 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://github.com/assimon/epusdt/stargazers"><img src="https://img.shields.io/github/stars/assimon/epusdt?style=flat-square&color=f5c542" alt="GitHub Stars 3000+"></a>
|
<a href="https://github.com/GMWalletApp/epusdt/stargazers"><img src="https://img.shields.io/github/stars/GMWalletApp/epusdt?style=flat-square&color=f5c542" alt="GitHub Stars 3000+"></a>
|
||||||
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/badge/License-GPLv3-blue?style=flat-square" alt="GPLv3 License"></a>
|
<a href="https://www.gnu.org/licenses/gpl-3.0.html"><img src="https://img.shields.io/badge/License-GPLv3-blue?style=flat-square" alt="GPLv3 License"></a>
|
||||||
<a href="https://golang.org"><img src="https://img.shields.io/badge/Go-1.16+-00ADD8?style=flat-square&logo=go&logoColor=white" alt="Go 1.16+"></a>
|
<a href="https://golang.org"><img src="https://img.shields.io/badge/Go-1.16+-00ADD8?style=flat-square&logo=go&logoColor=white" alt="Go 1.16+"></a>
|
||||||
<a href="https://github.com/assimon/epusdt/releases"><img src="https://img.shields.io/github/v/release/assimon/epusdt?style=flat-square&color=green" alt="Latest Release"></a>
|
<a href="https://github.com/GMWalletApp/epusdt/releases"><img src="https://img.shields.io/github/v/release/GMWalletApp/epusdt?style=flat-square&color=green" alt="Latest Release"></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -42,7 +42,7 @@ Deploy it privately, integrate via HTTP API, and start receiving **crypto paymen
|
|||||||
| **Polygon** | USDT、USDC |
|
| **Polygon** | USDT、USDC |
|
||||||
| **更多** | 持续扩展中… |
|
| **更多** | 持续扩展中… |
|
||||||
|
|
||||||
> 💡 具体支持的链与代币以 [最新版本](https://github.com/assimon/epusdt/releases) 及 [官方文档](https://epusdt.com) 为准。
|
> 💡 具体支持的链与代币以 [最新版本](https://github.com/GMWalletApp/epusdt/releases) 及 [官方文档](https://epusdt.com) 为准。
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@ Epusdt 通过监听多条区块链网络(TRC20、ERC20、BEP20、Polygon 等
|
|||||||
|
|
||||||
## 💬 社区与支持
|
## 💬 社区与支持
|
||||||
|
|
||||||
**遇到问题?** 请优先在 GitHub 提交 [Issue](https://github.com/assimon/epusdt/issues),我们会**优先处理** Issue 中的反馈。
|
**遇到问题?** 请优先在 GitHub 提交 [Issue](https://github.com/GMWalletApp/epusdt/issues),我们会**优先处理** Issue 中的反馈。
|
||||||
|
|
||||||
加入 Telegram 社区,获取最新开发动态,参与需求调研,与超过5000名活跃用户交流使用经验,对接商业资源:
|
加入 Telegram 社区,获取最新开发动态,参与需求调研,与超过5000名活跃用户交流使用经验,对接商业资源:
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/**
|
/**
|
||||||
* The file was created by Assimon.
|
* The file was created by Assimon.
|
||||||
*
|
*
|
||||||
* @author assimon<ashang@utf8.hk>
|
* @author GMWalletApp<ashang@utf8.hk>
|
||||||
* @copyright assimon<ashang@utf8.hk>
|
* @copyright GMWalletApp<ashang@utf8.hk>
|
||||||
* @link http://utf8.hk/
|
* @link http://utf8.hk/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
/**
|
/**
|
||||||
* The file was created by Assimon.
|
* The file was created by Assimon.
|
||||||
*
|
*
|
||||||
* @author assimon<ashang@utf8.hk>
|
* @author GMWalletApp<ashang@utf8.hk>
|
||||||
* @copyright assimon<ashang@utf8.hk>
|
* @copyright GMWalletApp<ashang@utf8.hk>
|
||||||
* @link http://utf8.hk/
|
* @link http://utf8.hk/
|
||||||
*/
|
*/
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ package bootstrap
|
|||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/mq"
|
"github.com/GMWalletApp/epusdt/mq"
|
||||||
"github.com/assimon/luuu/task"
|
"github.com/GMWalletApp/epusdt/task"
|
||||||
"github.com/assimon/luuu/telegram"
|
"github.com/GMWalletApp/epusdt/telegram"
|
||||||
appjwt "github.com/assimon/luuu/util/jwt"
|
appjwt "github.com/GMWalletApp/epusdt/util/jwt"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/gookit/color"
|
"github.com/gookit/color"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package command
|
package command
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/gookit/color"
|
"github.com/gookit/color"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/bootstrap"
|
"github.com/GMWalletApp/epusdt/bootstrap"
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/install"
|
"github.com/GMWalletApp/epusdt/install"
|
||||||
"github.com/assimon/luuu/middleware"
|
"github.com/GMWalletApp/epusdt/middleware"
|
||||||
"github.com/assimon/luuu/route"
|
"github.com/GMWalletApp/epusdt/route"
|
||||||
"github.com/assimon/luuu/util/constant"
|
"github.com/GMWalletApp/epusdt/util/constant"
|
||||||
luluHttp "github.com/assimon/luuu/util/http"
|
luluHttp "github.com/GMWalletApp/epusdt/util/http"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
echoMiddleware "github.com/labstack/echo/v4/middleware"
|
echoMiddleware "github.com/labstack/echo/v4/middleware"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package command
|
package command
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package command
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/util/http_client"
|
"github.com/GMWalletApp/epusdt/util/http_client"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/tidwall/gjson"
|
"github.com/tidwall/gjson"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package admin
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
appjwt "github.com/assimon/luuu/util/jwt"
|
appjwt "github.com/GMWalletApp/epusdt/util/jwt"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/assimon/luuu/controller"
|
"github.com/GMWalletApp/epusdt/controller"
|
||||||
"github.com/assimon/luuu/middleware"
|
"github.com/GMWalletApp/epusdt/middleware"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package admin
|
package admin
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/notify"
|
"github.com/GMWalletApp/epusdt/notify"
|
||||||
"github.com/assimon/luuu/telegram"
|
"github.com/GMWalletApp/epusdt/telegram"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/request"
|
"github.com/GMWalletApp/epusdt/model/request"
|
||||||
"github.com/assimon/luuu/model/service"
|
"github.com/GMWalletApp/epusdt/model/service"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/task"
|
"github.com/GMWalletApp/epusdt/task"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ package admin
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/telegram"
|
"github.com/GMWalletApp/epusdt/telegram"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package controller
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/assimon/luuu/util/http"
|
"github.com/GMWalletApp/epusdt/util/http"
|
||||||
"github.com/gookit/validate"
|
"github.com/gookit/validate"
|
||||||
"github.com/gookit/validate/locales/zhcn"
|
"github.com/gookit/validate/locales/zhcn"
|
||||||
"github.com/gookit/validate/locales/zhtw"
|
"github.com/gookit/validate/locales/zhtw"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package comm
|
package comm
|
||||||
|
|
||||||
import "github.com/assimon/luuu/controller"
|
import "github.com/GMWalletApp/epusdt/controller"
|
||||||
|
|
||||||
var Ctrl = &BaseCommController{}
|
var Ctrl = &BaseCommController{}
|
||||||
|
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/assimon/luuu/middleware"
|
"github.com/GMWalletApp/epusdt/middleware"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/request"
|
"github.com/GMWalletApp/epusdt/model/request"
|
||||||
"github.com/assimon/luuu/model/service"
|
"github.com/GMWalletApp/epusdt/model/service"
|
||||||
"github.com/assimon/luuu/util/constant"
|
"github.com/GMWalletApp/epusdt/util/constant"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/model/response"
|
"github.com/GMWalletApp/epusdt/model/response"
|
||||||
"github.com/assimon/luuu/model/service"
|
"github.com/GMWalletApp/epusdt/model/service"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/response"
|
"github.com/GMWalletApp/epusdt/model/response"
|
||||||
"github.com/assimon/luuu/util/constant"
|
"github.com/GMWalletApp/epusdt/util/constant"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
module github.com/assimon/luuu
|
module github.com/GMWalletApp/epusdt
|
||||||
|
|
||||||
go 1.25.0
|
go 1.25.0
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
luluHttp "github.com/assimon/luuu/util/http"
|
luluHttp "github.com/GMWalletApp/epusdt/util/http"
|
||||||
"github.com/gookit/color"
|
"github.com/gookit/color"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/labstack/echo/v4/middleware"
|
"github.com/labstack/echo/v4/middleware"
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
appLog "github.com/assimon/luuu/util/log"
|
appLog "github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/libtnb/sqlite"
|
"github.com/libtnb/sqlite"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/assimon/luuu/command"
|
"github.com/GMWalletApp/epusdt/command"
|
||||||
"github.com/gookit/color"
|
"github.com/gookit/color"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
appjwt "github.com/assimon/luuu/util/jwt"
|
appjwt "github.com/GMWalletApp/epusdt/util/jwt"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/util/constant"
|
"github.com/GMWalletApp/epusdt/util/constant"
|
||||||
"github.com/assimon/luuu/util/json"
|
"github.com/GMWalletApp/epusdt/util/json"
|
||||||
"github.com/assimon/luuu/util/sign"
|
"github.com/GMWalletApp/epusdt/util/sign"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package dao
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/gookit/color"
|
"github.com/gookit/color"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"gorm.io/driver/mysql"
|
"gorm.io/driver/mysql"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/gookit/color"
|
"github.com/gookit/color"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"gorm.io/driver/postgres"
|
"gorm.io/driver/postgres"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/gookit/color"
|
"github.com/gookit/color"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/gookit/color"
|
"github.com/gookit/color"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package dao
|
package dao
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/gookit/color"
|
"github.com/gookit/color"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
"gorm.io/gorm/logger"
|
"gorm.io/gorm/logger"
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/dromara/carbon/v2"
|
"github.com/dromara/carbon/v2"
|
||||||
"golang.org/x/crypto/bcrypt"
|
"golang.org/x/crypto/bcrypt"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/dromara/carbon/v2"
|
"github.com/dromara/carbon/v2"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package data
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ListChains returns all chain rows ordered by id.
|
// ListChains returns all chain rows ordered by id.
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package data
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ListEnabledChainTokens returns enabled tokens, optionally filtered by network.
|
// ListEnabledChainTokens returns enabled tokens, optionally filtered by network.
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ListNotificationChannels returns all rows, optionally filtered by type.
|
// ListNotificationChannels returns all rows, optionally filtered by type.
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/request"
|
"github.com/GMWalletApp/epusdt/model/request"
|
||||||
"github.com/dromara/carbon/v2"
|
"github.com/dromara/carbon/v2"
|
||||||
"github.com/shopspring/decimal"
|
"github.com/shopspring/decimal"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package data
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DailyStat is one bucket of day-level aggregation used by the
|
// DailyStat is one bucket of day-level aggregation used by the
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/internal/testutil"
|
"github.com/GMWalletApp/epusdt/internal/testutil"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestEvmTransactionLockAddressIsCaseInsensitive(t *testing.T) {
|
func TestEvmTransactionLockAddressIsCaseInsensitive(t *testing.T) {
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"math/rand"
|
"math/rand"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/dromara/carbon/v2"
|
"github.com/dromara/carbon/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package data
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/assimon/luuu/internal/testutil"
|
"github.com/GMWalletApp/epusdt/internal/testutil"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSelectRpcNodeUsesHealthyRow(t *testing.T) {
|
func TestSelectRpcNodeUsesHealthyRow(t *testing.T) {
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package data
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/util/constant"
|
"github.com/GMWalletApp/epusdt/util/constant"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AddWalletAddress 创建钱包 (默认 tron 网络,用于 Telegram 添加)
|
// AddWalletAddress 创建钱包 (默认 tron 网络,用于 Telegram 添加)
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/assimon/luuu/internal/testutil"
|
"github.com/GMWalletApp/epusdt/internal/testutil"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestAddWalletAddressWithNetworkNormalizesEvmAddressToLowercase(t *testing.T) {
|
func TestAddWalletAddressWithNetworkNormalizesEvmAddressToLowercase(t *testing.T) {
|
||||||
|
|||||||
@@ -8,15 +8,15 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/request"
|
"github.com/GMWalletApp/epusdt/model/request"
|
||||||
"github.com/assimon/luuu/model/response"
|
"github.com/GMWalletApp/epusdt/model/response"
|
||||||
"github.com/assimon/luuu/util/constant"
|
"github.com/GMWalletApp/epusdt/util/constant"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/assimon/luuu/util/math"
|
"github.com/GMWalletApp/epusdt/util/math"
|
||||||
"github.com/dromara/carbon/v2"
|
"github.com/dromara/carbon/v2"
|
||||||
"github.com/shopspring/decimal"
|
"github.com/shopspring/decimal"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/assimon/luuu/internal/testutil"
|
"github.com/GMWalletApp/epusdt/internal/testutil"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/request"
|
"github.com/GMWalletApp/epusdt/model/request"
|
||||||
"github.com/assimon/luuu/util/constant"
|
"github.com/GMWalletApp/epusdt/util/constant"
|
||||||
)
|
)
|
||||||
|
|
||||||
func newCreateTransactionRequest(orderID string, amount float64) *request.CreateTransactionRequest {
|
func newCreateTransactionRequest(orderID string, amount float64) *request.CreateTransactionRequest {
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ package service
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/response"
|
"github.com/GMWalletApp/epusdt/model/response"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ErrOrder = errors.New("不存在待支付订单或已过期")
|
var ErrOrder = errors.New("不存在待支付订单或已过期")
|
||||||
|
|||||||
@@ -10,13 +10,13 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/request"
|
"github.com/GMWalletApp/epusdt/model/request"
|
||||||
"github.com/assimon/luuu/util/constant"
|
"github.com/GMWalletApp/epusdt/util/constant"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/assimon/luuu/util/math"
|
"github.com/GMWalletApp/epusdt/util/math"
|
||||||
"github.com/gagliardetto/solana-go"
|
"github.com/gagliardetto/solana-go"
|
||||||
"github.com/go-resty/resty/v2"
|
"github.com/go-resty/resty/v2"
|
||||||
"github.com/shopspring/decimal"
|
"github.com/shopspring/decimal"
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/assimon/luuu/internal/testutil"
|
"github.com/GMWalletApp/epusdt/internal/testutil"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/tidwall/gjson"
|
"github.com/tidwall/gjson"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -9,15 +9,15 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
tron "github.com/assimon/luuu/crypto"
|
tron "github.com/GMWalletApp/epusdt/crypto"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/request"
|
"github.com/GMWalletApp/epusdt/model/request"
|
||||||
"github.com/assimon/luuu/notify"
|
"github.com/GMWalletApp/epusdt/notify"
|
||||||
"github.com/assimon/luuu/util/constant"
|
"github.com/GMWalletApp/epusdt/util/constant"
|
||||||
"github.com/assimon/luuu/util/http_client"
|
"github.com/GMWalletApp/epusdt/util/http_client"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/assimon/luuu/util/math"
|
"github.com/GMWalletApp/epusdt/util/math"
|
||||||
"github.com/dromara/carbon/v2"
|
"github.com/dromara/carbon/v2"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/gookit/goutil/stdutil"
|
"github.com/gookit/goutil/stdutil"
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package service
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/assimon/luuu/internal/testutil"
|
"github.com/GMWalletApp/epusdt/internal/testutil"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestResolveTronNode_NoRow verifies that resolveTronNode requires an enabled
|
// TestResolveTronNode_NoRow verifies that resolveTronNode requires an enabled
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ package mq
|
|||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
+8
-8
@@ -8,14 +8,14 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/response"
|
"github.com/GMWalletApp/epusdt/model/response"
|
||||||
"github.com/assimon/luuu/util/http_client"
|
"github.com/GMWalletApp/epusdt/util/http_client"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/assimon/luuu/util/sign"
|
"github.com/GMWalletApp/epusdt/util/sign"
|
||||||
)
|
)
|
||||||
|
|
||||||
// resolveOrderApiKey returns the api_keys row that signed the order.
|
// resolveOrderApiKey returns the api_keys row that signed the order.
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/internal/testutil"
|
"github.com/GMWalletApp/epusdt/internal/testutil"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/util/sign"
|
"github.com/GMWalletApp/epusdt/util/sign"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestProcessExpiredOrdersExpiresWaitingOrdersAndReleasesLocks(t *testing.T) {
|
func TestProcessExpiredOrdersExpiresWaitingOrdersAndReleasesLocks(t *testing.T) {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Sender delivers an already-rendered text message via a channel row.
|
// Sender delivers an already-rendered text message via a channel row.
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+7
-7
@@ -9,13 +9,13 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/assimon/luuu/controller/admin"
|
"github.com/GMWalletApp/epusdt/controller/admin"
|
||||||
"github.com/assimon/luuu/controller/comm"
|
"github.com/GMWalletApp/epusdt/controller/comm"
|
||||||
"github.com/assimon/luuu/middleware"
|
"github.com/GMWalletApp/epusdt/middleware"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/util/constant"
|
"github.com/GMWalletApp/epusdt/util/constant"
|
||||||
"github.com/assimon/luuu/util/sign"
|
"github.com/GMWalletApp/epusdt/util/sign"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
echoMiddleware "github.com/labstack/echo/v4/middleware"
|
echoMiddleware "github.com/labstack/echo/v4/middleware"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/assimon/luuu/util/sign"
|
"github.com/GMWalletApp/epusdt/util/sign"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"gorm.io/gorm/clause"
|
"gorm.io/gorm/clause"
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package task
|
package task
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
"github.com/robfig/cron/v3"
|
"github.com/robfig/cron/v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/service"
|
"github.com/GMWalletApp/epusdt/model/service"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum"
|
"github.com/ethereum/go-ethereum"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package task
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/assimon/luuu/internal/testutil"
|
"github.com/GMWalletApp/epusdt/internal/testutil"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestResolveChainWsURLRequiresEnabledRpcNode(t *testing.T) {
|
func TestResolveChainWsURLRequiresEnabledRpcNode(t *testing.T) {
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/service"
|
"github.com/GMWalletApp/epusdt/model/service"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum"
|
"github.com/ethereum/go-ethereum"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum"
|
"github.com/ethereum/go-ethereum"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/service"
|
"github.com/GMWalletApp/epusdt/model/service"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum"
|
"github.com/ethereum/go-ethereum"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/service"
|
"github.com/GMWalletApp/epusdt/model/service"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum"
|
"github.com/ethereum/go-ethereum"
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ package task
|
|||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/service"
|
"github.com/GMWalletApp/epusdt/model/service"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ListenSolJob struct{}
|
type ListenSolJob struct{}
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ package task
|
|||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/model/service"
|
"github.com/GMWalletApp/epusdt/model/service"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ListenTrc20Job struct{}
|
type ListenTrc20Job struct{}
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const rpcProbeTimeout = 5 * time.Second
|
const rpcProbeTimeout = 5 * time.Second
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
// --------------- ParseAddress ---------------
|
// --------------- ParseAddress ---------------
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/gookit/goutil/mathutil"
|
"github.com/gookit/goutil/mathutil"
|
||||||
"github.com/gookit/goutil/strutil"
|
"github.com/gookit/goutil/strutil"
|
||||||
tb "gopkg.in/telebot.v3"
|
tb "gopkg.in/telebot.v3"
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/util/log"
|
"github.com/GMWalletApp/epusdt/util/log"
|
||||||
tb "gopkg.in/telebot.v3"
|
tb "gopkg.in/telebot.v3"
|
||||||
"gopkg.in/telebot.v3/middleware"
|
"gopkg.in/telebot.v3/middleware"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ package telegram
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/assimon/luuu/internal/testutil"
|
"github.com/GMWalletApp/epusdt/internal/testutil"
|
||||||
"github.com/assimon/luuu/model/dao"
|
"github.com/GMWalletApp/epusdt/model/dao"
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
)
|
)
|
||||||
|
|
||||||
func withTelegramEnv(token, proxy string, manage int64, fn func()) {
|
func withTelegramEnv(token, proxy string, manage int64, fn func()) {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/btcsuite/btcutil/base58"
|
"github.com/btcsuite/btcutil/base58"
|
||||||
"github.com/gagliardetto/solana-go"
|
"github.com/gagliardetto/solana-go"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package http
|
package http
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/assimon/luuu/util/constant"
|
"github.com/GMWalletApp/epusdt/util/constant"
|
||||||
"github.com/assimon/luuu/util/page"
|
"github.com/GMWalletApp/epusdt/util/page"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|||||||
+2
-2
@@ -6,8 +6,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/assimon/luuu/model/data"
|
"github.com/GMWalletApp/epusdt/model/data"
|
||||||
"github.com/assimon/luuu/model/mdb"
|
"github.com/GMWalletApp/epusdt/model/mdb"
|
||||||
"github.com/golang-jwt/jwt/v4"
|
"github.com/golang-jwt/jwt/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ package log
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/assimon/luuu/config"
|
"github.com/GMWalletApp/epusdt/config"
|
||||||
"github.com/natefinch/lumberjack"
|
"github.com/natefinch/lumberjack"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package sign
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"github.com/assimon/luuu/util/json"
|
"github.com/GMWalletApp/epusdt/util/json"
|
||||||
"github.com/gookit/goutil/strutil"
|
"github.com/gookit/goutil/strutil"
|
||||||
"reflect"
|
"reflect"
|
||||||
"sort"
|
"sort"
|
||||||
|
|||||||
+2
-2
@@ -15,11 +15,11 @@
|
|||||||
### 二、导入Sql
|
### 二、导入Sql
|
||||||
登录管理刚刚新增数据库,导入`Epusdt`所需的sql文件。
|
登录管理刚刚新增数据库,导入`Epusdt`所需的sql文件。
|
||||||
|
|
||||||
以下为示范0.01版本 最新数据库请以 https://github.com/assimon/epusdt/blob/master/sql/ 为准
|
以下为示范0.01版本 最新数据库请以 https://github.com/GMWalletApp/epusdt/blob/master/sql/ 为准
|
||||||
|
|
||||||
#### 1.手动下载导入
|
#### 1.手动下载导入
|
||||||
|
|
||||||
数据库地址:https://github.com/assimon/epusdt/blob/master/sql/v0.0.1.sql
|
数据库地址:https://github.com/GMWalletApp/epusdt/blob/master/sql/v0.0.1.sql
|
||||||

|

|
||||||
|
|
||||||
#### 2.使用phpMyAdmin导入
|
#### 2.使用phpMyAdmin导入
|
||||||
|
|||||||
+2
-2
@@ -8,7 +8,7 @@ cd /var/www/
|
|||||||
mkdir epusdt
|
mkdir epusdt
|
||||||
chmod 777 -R /var/www/epusdt
|
chmod 777 -R /var/www/epusdt
|
||||||
cd epusdt
|
cd epusdt
|
||||||
wget https://github.com/assimon/epusdt/releases/download/v0.0.3/epusdt_0.0.3_Linux_x86_64.tar.gz
|
wget https://github.com/GMWalletApp/epusdt/releases/download/v0.0.3/epusdt_0.0.3_Linux_x86_64.tar.gz
|
||||||
tar -xzf epusdt_0.0.3_Linux_x86_64.tar.gz
|
tar -xzf epusdt_0.0.3_Linux_x86_64.tar.gz
|
||||||
rm epusdt_0.0.3_Linux_x86_64.tar.gz
|
rm epusdt_0.0.3_Linux_x86_64.tar.gz
|
||||||
```
|
```
|
||||||
@@ -206,7 +206,7 @@ supervisorctl tail epusdt
|
|||||||
| |___| |_) | |_| \__ \ (_| | |_
|
| |___| |_) | |_| \__ \ (_| | |_
|
||||||
|_____| .__/ \__,_|___/\__,_|\__|
|
|_____| .__/ \__,_|___/\__,_|\__|
|
||||||
|_|
|
|_|
|
||||||
Epusdt version(0.0.2) Powered by assimon https://github.com/assimon/epusdt
|
Epusdt version(0.0.2) Powered by GMWalletApp https://github.com/GMWalletApp/epusdt
|
||||||
⇨ http server started on [::]:8000
|
⇨ http server started on [::]:8000
|
||||||
```
|
```
|
||||||
## 其他注意事项
|
## 其他注意事项
|
||||||
|
|||||||
Reference in New Issue
Block a user