mirror of
https://github.com/luxfi/bridge.git
synced 2026-09-24 00:26:46 +00:00
gofmt six files, and untrack the laptop build the merge brought back
The merge from upstream restored ./bridge as a tracked file — upstream still carried it — so the ignore rule added alongside the earlier untracking had nothing to act on and the next local build dirtied the tree again. Removed from the index once more; the file stays on disk. The six source files were not gofmt-clean and a formatter pass reordered their imports. Nothing else changed in them. Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
@@ -8,9 +8,9 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/luxfi/bridge"
|
||||
"github.com/zap-proto/zip"
|
||||
middleware "github.com/zap-proto/zip/middleware"
|
||||
"github.com/luxfi/bridge"
|
||||
)
|
||||
|
||||
// apiRig is a minimal API+App pair for exercising the read-only REST
|
||||
@@ -182,4 +182,3 @@ func TestStripPathPrefix_EmptyPathBecomesRoot(t *testing.T) {
|
||||
t.Errorf("Path = %q, want / for an exact-prefix match", req.URL.Path)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -47,14 +47,14 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/zap-proto/fiber/v3"
|
||||
"github.com/zap-proto/zip"
|
||||
"github.com/zap-proto/zip/middleware"
|
||||
"github.com/luxfi/bridge/internal/broadcast"
|
||||
"github.com/luxfi/bridge/internal/depositcheck"
|
||||
"github.com/luxfi/bridge/internal/mchain"
|
||||
"github.com/luxfi/bridge/internal/tokens"
|
||||
"github.com/luxfi/bridge/internal/txassembler"
|
||||
"github.com/zap-proto/fiber/v3"
|
||||
"github.com/zap-proto/zip"
|
||||
"github.com/zap-proto/zip/middleware"
|
||||
)
|
||||
|
||||
// =============================================================================
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/zap-proto/zip"
|
||||
"github.com/luxfi/bridge/internal/bchain"
|
||||
"github.com/zap-proto/zip"
|
||||
)
|
||||
|
||||
// quote_handler.go: thin REST → JSON-RPC pass-through for /v1/bridge/quote.
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/zap-proto/zip"
|
||||
luxlog "github.com/luxfi/log"
|
||||
"github.com/zap-proto/zip"
|
||||
)
|
||||
|
||||
// rpc_proxy.go — same-origin JSON-RPC reverse proxy for the embedded SPA.
|
||||
|
||||
@@ -106,12 +106,12 @@ type Swap struct {
|
||||
// (personal r-addresses, and every non-XRP chain). Validated to fit
|
||||
// uint32 at the API boundary (swaps_handler.go) and read by the XRP
|
||||
// signing path (signOneXRP) which carries it onto the Payment.
|
||||
DestinationTag *uint32 `json:"destination_tag,omitempty"`
|
||||
Sender string `json:"sender,omitempty"`
|
||||
Refuel bool `json:"refuel"`
|
||||
UseDepositAddress bool `json:"use_deposit_address"`
|
||||
UseTeleporter bool `json:"use_teleporter"`
|
||||
AppName string `json:"app_name,omitempty"`
|
||||
DestinationTag *uint32 `json:"destination_tag,omitempty"`
|
||||
Sender string `json:"sender,omitempty"`
|
||||
Refuel bool `json:"refuel"`
|
||||
UseDepositAddress bool `json:"use_deposit_address"`
|
||||
UseTeleporter bool `json:"use_teleporter"`
|
||||
AppName string `json:"app_name,omitempty"`
|
||||
|
||||
// Receive economics (snapshot at quote/create time).
|
||||
ReceiveAmount float64 `json:"receive_amount,omitempty"`
|
||||
|
||||
@@ -7,11 +7,11 @@ import (
|
||||
"net/http"
|
||||
"strconv"
|
||||
|
||||
"github.com/zap-proto/zip"
|
||||
"github.com/luxfi/bridge/internal/bchain"
|
||||
"github.com/luxfi/bridge/internal/depositcheck"
|
||||
"github.com/luxfi/bridge/internal/mchain"
|
||||
"github.com/luxfi/bridge/internal/xrpl"
|
||||
"github.com/zap-proto/zip"
|
||||
)
|
||||
|
||||
// swaps_handler.go wires the native swap CRUD into cmd/bridge.
|
||||
|
||||
Reference in New Issue
Block a user