diff --git a/Package.swift b/Package.swift index 5a31d6f..b3b3c52 100644 --- a/Package.swift +++ b/Package.swift @@ -30,31 +30,27 @@ let package = Package( ), ], dependencies: [ - .package(url: "https://github.com/thebarndog/swift-dotenv.git", from: "2.0.0") ], targets: [ rustXcframeworkTarget, .target( name: "YttriumCore", dependencies: [ - "RustXcframework", - .product(name: "SwiftDotenv", package: "swift-dotenv") + "RustXcframework" ], path: "crates/ffi/YttriumCore/Sources/YttriumCore" ), .target( name: "Yttrium", dependencies: [ - "YttriumCore", - .product(name: "SwiftDotenv", package: "swift-dotenv") + "YttriumCore" ], path: "platforms/swift/Sources/Yttrium" ), .testTarget( name: "YttriumTests", dependencies: [ - "Yttrium", - .product(name: "SwiftDotenv", package: "swift-dotenv") + "Yttrium" ], path: "platforms/swift/Tests/YttriumTests" ), diff --git a/crates/ffi/YttriumCore/Package.swift b/crates/ffi/YttriumCore/Package.swift index bdd32db..91fb509 100644 --- a/crates/ffi/YttriumCore/Package.swift +++ b/crates/ffi/YttriumCore/Package.swift @@ -16,7 +16,6 @@ let package = Package( ), ], dependencies: [ - .package(url: "https://github.com/thebarndog/swift-dotenv.git", from: "2.0.0") ], targets: [ .binaryTarget( @@ -26,8 +25,7 @@ let package = Package( .target( name: "YttriumCore", dependencies: [ - "RustXcframework", - .product(name: "SwiftDotenv", package: "swift-dotenv") + "RustXcframework" ], path: ".", exclude: ["RustXcframework.xcframework"], @@ -42,4 +40,4 @@ let package = Package( ] ), ] -) \ No newline at end of file +) diff --git a/crates/ffi/YttriumCore/Sources/YttriumCore/Config.swift b/crates/ffi/YttriumCore/Sources/YttriumCore/Config.swift index 3629bef..539f408 100644 --- a/crates/ffi/YttriumCore/Sources/YttriumCore/Config.swift +++ b/crates/ffi/YttriumCore/Sources/YttriumCore/Config.swift @@ -78,7 +78,6 @@ extension Endpoints { } } -import SwiftDotenv extension Config { @@ -86,27 +85,6 @@ extension Config { Config(endpoints: .local()) } - static func pimlico() throws -> Self { - try Dotenv.configure() - - guard let rpcURL = Dotenv["PIMLICO_RPC_URL"]?.stringValue else { - fatalError("Missing PIMLICO_RPC_URL environment variable") - } - guard let bundlerURL = Dotenv["PIMLICO_BUNDLER_URL"]?.stringValue else { - fatalError("Missing PIMLICO_BUNDLER_URL environment variable") - } - let paymasterURL = bundlerURL - - return Self( - endpoints: .init( - rpc: .init(baseURL: rpcURL), - bundler: .init(baseURL: bundlerURL), - paymaster: .init(baseURL: paymasterURL) - ) - ) - } - - public var ffi: FFIConfig { FFIConfig(endpoints: endpoints.ffi) }