Skip to content

Commit a202a01

Browse files
Feature: support bridge transfer (#89)
* Feature: support bridge transfer * Update license header
1 parent 45e9a58 commit a202a01

File tree

274 files changed

+1016
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+1016
-101
lines changed

HEADER

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
1+
SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
22
SPDX-License-Identifier: MIT

cmd/api/app.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
package main
25

36
import (

cmd/api/bus/dispatcher.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/bus/observer.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/cache/cache.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/cache/cache_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/cache/constants.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/cache/response.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/config.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/docs/docs.go

+10-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/api/docs/swagger.json

+9-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/api/docs/swagger.yaml

+5-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/api/handler/address.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/address_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/app.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/app_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/asset.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/asset_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/block.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/block_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/constant.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/constant_test.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

@@ -58,7 +61,7 @@ func (s *ConstantTestSuite) TestEnums() {
5861
var enums responses.Enums
5962
err := json.NewDecoder(rec.Body).Decode(&enums)
6063
s.Require().NoError(err)
61-
s.Require().Len(enums.ActionType, 14)
64+
s.Require().Len(enums.ActionType, 15)
6265
s.Require().Len(enums.Status, 2)
6366
}
6467

cmd/api/handler/error.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/handler.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
package handler
25

36
import "github.com/labstack/echo/v4"

cmd/api/handler/requests.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/action.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/address.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/app.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/asset.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/block.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/bridge.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/constants.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/constants_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/deposit.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/fee.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/rollup.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

cmd/api/handler/responses/rollup_action.go

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2025 PK Lab AG <[email protected]>
2+
// SPDX-License-Identifier: MIT
3+
14
// SPDX-FileCopyrightText: 2024 PK Lab AG <[email protected]>
25
// SPDX-License-Identifier: MIT
36

0 commit comments

Comments
 (0)