Skip to content

Commit 9bad538

Browse files
committed
chore: cleanup
1 parent 2c09cee commit 9bad538

57 files changed

Lines changed: 142 additions & 326 deletions

File tree

Some content is hidden

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

DashWallet/Sources/Models/Explore Dash/Model/CTXConstants.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
//
2+
// Created by Andrei Ashikhmin
3+
// Copyright © 2025 Dash Core Group. All rights reserved.
4+
//
5+
// Licensed under the MIT License (the "License");
6+
// you may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at
8+
//
9+
// https://opensource.org/licenses/MIT
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// See the License for the specific language governing permissions and
15+
// limitations under the License.
16+
//
17+
118
class CTXConstants {
219
static let baseURI = "https://spend.ctx.com/"
320
static let ctxGiftCardAgreementUrl = "https://ctx.com/gift-card-agreement/"

DashWallet/Sources/Models/Explore Dash/Model/CTXSpendModels.swift

Lines changed: 0 additions & 37 deletions
This file was deleted.

DashWallet/Sources/Models/Explore Dash/Model/Entites/CTXSpendModels.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
//
2+
// Created by Andrei Ashikhmin
3+
// Copyright © 2025 Dash Core Group. All rights reserved.
4+
//
5+
// Licensed under the MIT License (the "License");
6+
// you may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at
8+
//
9+
// https://opensource.org/licenses/MIT
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// See the License for the specific language governing permissions and
15+
// limitations under the License.
16+
//
17+
118
import Foundation
219

320
// Request Models

DashWallet/Sources/Models/Explore Dash/Services/CTXSpendAPI.swift

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
//
2+
// Created by Andrei Ashikhmin
3+
// Copyright © 2025 Dash Core Group. All rights reserved.
4+
//
5+
// Licensed under the MIT License (the "License");
6+
// you may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at
8+
//
9+
// https://opensource.org/licenses/MIT
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// See the License for the specific language governing permissions and
15+
// limitations under the License.
16+
//
17+
118
import Foundation
219
import Moya
320

@@ -63,4 +80,4 @@ final class CTXSpendAPI: HTTPClient<CTXSpendEndpoint> {
6380
}
6481
self.ctxSpendAPIAccessTokenProvider = ctxSpendAPIAccessTokenProvider
6582
}
66-
}
83+
}

DashWallet/Sources/Models/Explore Dash/Services/CTXSpendEndpoint.swift

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
1+
//
2+
// Created by Andrei Ashikhmin
3+
// Copyright © 2025 Dash Core Group. All rights reserved.
4+
//
5+
// Licensed under the MIT License (the "License");
6+
// you may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at
8+
//
9+
// https://opensource.org/licenses/MIT
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// See the License for the specific language governing permissions and
15+
// limitations under the License.
16+
//
17+
118
import Foundation
219
import Moya
320

4-
/// Base URL for CTXSpend API Endpoint
521
private let kBaseURL = URL(string: CTXConstants.baseURI)!
622

723
// MARK: - CTXSpendAPIError
824

925
struct CTXSpendAPIError: Decodable {
1026
struct Error: Swift.Error, LocalizedError, Decodable {
1127
let id: String?
12-
13-
/// Human readable message.
1428
let message: String
1529

1630
var errorDescription: String? {
@@ -84,7 +98,6 @@ extension CTXSpendEndpoint: TargetType, AccessTokenAuthorizable {
8498
public var headers: [String: String]? {
8599
var headers = ["Content-Type": "application/json"]
86100

87-
// Add localization header if needed
88101
if let lang = Locale.current.languageCode {
89102
headers["Accept-Language"] = lang
90103
}

DashWallet/Sources/Models/Explore Dash/Services/CTXSpendService.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
//
2+
// Created by Andrei Ashikhmin
3+
// Copyright © 2025 Dash Core Group. All rights reserved.
4+
//
5+
// Licensed under the MIT License (the "License");
6+
// you may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at
8+
//
9+
// https://opensource.org/licenses/MIT
10+
//
11+
// Unless required by applicable law or agreed to in writing, software
12+
// distributed under the License is distributed on an "AS IS" BASIS,
13+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
// See the License for the specific language governing permissions and
15+
// limitations under the License.
16+
//
17+
118
import Foundation
219
import Combine
320

DashWallet/Sources/UI/Explore Dash/DWExploreTestnetViewController+DashWallet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Created by Andrei Ashikhmin
3-
// Copyright © 2024 Dash Core Group. All rights reserved.
3+
// Copyright © 2025 Dash Core Group. All rights reserved.
44
//
55
// Licensed under the MIT License (the "License");
66
// you may not use this file except in compliance with the License.

DashWallet/Sources/UI/Explore Dash/DWExploreTestnetViewController.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ NS_ASSUME_NONNULL_BEGIN
2121

2222
@class DWExploreTestnetViewController;
2323
@protocol DWNavigationFullscreenable;
24-
@protocol DWExploreTestnetViewControllerDelegate;
2524

2625
@protocol DWExploreTestnetViewControllerDelegate <NSObject>
2726

DashWallet/Sources/UI/Explore Dash/DWExploreTestnetViewController.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#import "DWExploreTestnetContentsView.h"
2323
#import "DWUIKit.h"
2424
#import "dashwallet-Swift.h"
25-
#import <objc/runtime.h>
2625

2726
@implementation DWExploreTestnetViewController
2827

DashWallet/Sources/UI/Explore Dash/Resources/dashspend_logo.svg

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)