Skip to content

Commit

Permalink
🔄 synced file(s) with circlefin/modularwallets-ios-sdk-internal (#9)
Browse files Browse the repository at this point in the history
synced local file(s) with
[circlefin/modularwallets-ios-sdk-internal](https://github.com/circlefin/modularwallets-ios-sdk-internal).



<details>
<summary>Changed files</summary>
<ul>
<li>synced local directory <code>CircleModularWalletsCore/</code> with
remote directory <code>CircleModularWalletsCore/</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
[#12746844989](https://github.com/circlefin/modularwallets-ios-sdk-internal/actions/runs/12746844989)
  • Loading branch information
circle-github-action-bot authored Jan 13, 2025
1 parent 2a2d370 commit 4a697fb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CircleModularWalletsCore/Resources/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleShortVersionString</key>
<string>1.0.6</string>
<string>1.0.7</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleName</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import web3swift
/// - Parameters:
/// - client: The client used to interact with the blockchain.
/// - owner: The owner account associated with the Circle smart account.
/// - version: The version of the Circle smart account. Default is "circle_6900_v1".
/// - version: The version of the Circle smart account. Default is CIRCLE_SMART_ACCOUNT_VERSION_V1.
/// - name: The wallet name assigned to the newly registered account defaults to the format "passkey-yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
///
/// - Throws: BaseError if there are any problems during the wallet creation process.
Expand All @@ -35,9 +35,10 @@ import web3swift
public func toCircleSmartAccount<A: Account>(
client: Client,
owner: A,
version: String = "circle_6900_v1",
version: String = CIRCLE_SMART_ACCOUNT_VERSION_V1,
name: String? = nil
) async throws -> CircleSmartAccount<A> where A.T == SignResult {
let version = CIRCLE_SMART_ACCOUNT_VERSION[version] ?? version
let name = name ?? "passkey-\(Utils.getCurrentDateTime())"
return try await .init(client: client, owner: owner, version: version, name: name)
}
Expand Down
5 changes: 5 additions & 0 deletions CircleModularWalletsCore/Sources/Helpers/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ import Foundation

public let CIRCLE_BASE_URL = "https://modular-sdk.circle.com/v1/rpc/w3s/buidl"
public let ENTRYPOINT_V07_ADDRESS = "0x0000000071727De22E5E9d8BAf0edAc6f37da032"
public let CIRCLE_SMART_ACCOUNT_VERSION_V1 = "circle_passkey_account_v1"

let CIRCLE_SMART_ACCOUNT_VERSION: [String: String] = [
CIRCLE_SMART_ACCOUNT_VERSION_V1: "circle_6900_v1",
]

let CONTRACT_ADDRESS: [String: String] = [
MainnetToken.USDT.name: "0xdAC17F958D2ee523a2206206994597C13D831ec7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Foundation
#if SWIFT_PACKAGE
extension Bundle {
public enum SDK {
public static let version = "1.0.6"
public static let version = "1.0.7"
}
}
#else
Expand Down

0 comments on commit 4a697fb

Please sign in to comment.