Skip to content

Commit 00e4c58

Browse files
🔄 synced file(s) with circlefin/modularwallets-ios-sdk-dev (#21)
synced local file(s) with [circlefin/modularwallets-ios-sdk-dev](https://github.com/circlefin/modularwallets-ios-sdk-dev). <details> <summary>Changed files</summary> <ul> <li>synced local directory <code>CircleModularWalletsCore/</code> with remote directory <code>CircleModularWalletsCore/CircleModularWalletsCore/</code></li><li>synced local <code>Package.swift</code> with remote <code>CircleModularWalletsCore/Package.swift</code></li> </ul> </details> --- This PR was created automatically by the [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action) workflow run [#18859542272](https://github.com/circlefin/modularwallets-ios-sdk-dev/actions/runs/18859542272)
1 parent e02c192 commit 00e4c58

File tree

5 files changed

+45
-5
lines changed

5 files changed

+45
-5
lines changed

‎CircleModularWalletsCore/Sources/Accounts/Implementations/Web3swiftLocalAccount.swift‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ class Web3swiftLocalAccount: Account {
5757
/// - Parameter privateKeyHex: The hex string representation of the private key.
5858
/// - Throws: An `BaseError` if the private key is invalid or cannot be converted to Data.
5959
convenience init(privateKeyHex: String) throws {
60-
let privateKey: Data
61-
6260
guard let privateKey = HexUtils.hexToData(hex: privateKeyHex) else {
6361
throw BaseError(shortMessage: "Invalid private key hex string")
6462
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//
2+
// Copyright (c) 2025, Circle Internet Group, Inc. All rights reserved.
3+
//
4+
// SPDX-License-Identifier: Apache-2.0
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
19+
import Foundation
20+
21+
public let ArcTestnet = _ArcTestnet()
22+
23+
public struct _ArcTestnet: Chain {
24+
25+
public let chainId: Int = 5042002
26+
27+
public let blockchain: String = "ARC-TESTNET"
28+
29+
}

‎CircleModularWalletsCore/Sources/Helpers/Constants.swift‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,21 @@ let CIRCLE_SMART_ACCOUNT_VERSION: [String: String] = [
2727
]
2828

2929
let CONTRACT_ADDRESS: [String: String] = [
30-
PolygonToken.USDC.name: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
3130
ArbitrumToken.USDC.name: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
3231
ArbitrumToken.ARB.name: "0x912CE59144191C1204E64559FE8253a0e49E6548",
3332
AvalancheToken.USDC.name: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
3433
BaseToken.USDC.name: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
3534
OptimismToken.USDC.name: "0x0b2c639c533813f4aa9d7837caf62653d097ff85",
3635
OptimismToken.OP.name: "0x4200000000000000000000000000000000000042",
36+
PolygonToken.USDC.name: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
3737
UnichainToken.USDC.name: "0x078D782b760474a361dDA0AF3839290b0EF57AD6",
3838

39-
PolygonAmoyToken.USDC.name: "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",
4039
ArbitrumSepoliaToken.USDC.name: "0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d",
40+
ArcTestnetToken.USDC.name: "0x3600000000000000000000000000000000000000",
4141
AvalancheFujiToken.USDC.name: "0x5425890298aed601595a70ab815c96711a31bc65",
4242
BaseSepoliaToken.USDC.name: "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
4343
OptimismSepoliaToken.USDC.name: "0x5fd84259d66Cd46123540766Be93DFE6D43130D7",
44+
PolygonAmoyToken.USDC.name: "0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",
4445
UnichainSepoliaToken.USDC.name: "0x31d0220469e10c4E71834a79b1f276d740d3768F",
4546
]
4647

‎CircleModularWalletsCore/Sources/Models/Token.swift‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ public enum ArbitrumSepoliaToken: String {
108108
}
109109
}
110110

111+
public enum ArcTestnetToken: String {
112+
case USDC
113+
114+
public var chainId: Int {
115+
return ArcTestnet.chainId
116+
}
117+
118+
public var name: String {
119+
return "ArcTestnet_\(self.rawValue)"
120+
}
121+
}
122+
111123
public enum AvalancheFujiToken: String {
112124
case USDC
113125

‎Package.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import PackageDescription
2222
let package = Package(
2323
name: "CircleModularWalletsCore",
2424
platforms: [
25-
.iOS(.v16)
25+
.macOS("13.5"), .iOS(.v16)
2626
],
2727
products: [
2828
.library(

0 commit comments

Comments
 (0)