Skip to content

Commit

Permalink
Feature: support bridge transfer (#89)
Browse files Browse the repository at this point in the history
* Feature: support bridge transfer

* Update license header
  • Loading branch information
aopoltorzhicky authored Feb 20, 2025
1 parent 45e9a58 commit a202a01
Show file tree
Hide file tree
Showing 274 changed files with 1,016 additions and 101 deletions.
2 changes: 1 addition & 1 deletion HEADER
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
SPDX-License-Identifier: MIT
3 changes: 3 additions & 0 deletions cmd/api/app.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

package main

import (
Expand Down
3 changes: 3 additions & 0 deletions cmd/api/bus/dispatcher.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/bus/observer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/cache/cache.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/cache/cache_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/cache/constants.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/cache/response.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
16 changes: 10 additions & 6 deletions cmd/api/docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions cmd/api/docs/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion cmd/api/docs/swagger.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions cmd/api/handler/address.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/address_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/app.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/app_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/asset.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/asset_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/block.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/block_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/constant.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
5 changes: 4 additions & 1 deletion cmd/api/handler/constant_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down Expand Up @@ -58,7 +61,7 @@ func (s *ConstantTestSuite) TestEnums() {
var enums responses.Enums
err := json.NewDecoder(rec.Body).Decode(&enums)
s.Require().NoError(err)
s.Require().Len(enums.ActionType, 14)
s.Require().Len(enums.ActionType, 15)
s.Require().Len(enums.Status, 2)
}

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/error.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/handler.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

package handler

import "github.com/labstack/echo/v4"
Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/requests.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/action.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/address.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/app.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/asset.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/block.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/bridge.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/constants.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/constants_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/deposit.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/fee.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/rollup.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
3 changes: 3 additions & 0 deletions cmd/api/handler/responses/rollup_action.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
// SPDX-License-Identifier: MIT

Expand Down
Loading

0 comments on commit a202a01

Please sign in to comment.