Skip to content

Commit da6f4e5

Browse files
committed
Replace lilico with flow wallet
1 parent c3d81cd commit da6f4e5

7 files changed

Lines changed: 34 additions & 43 deletions

File tree

Assets/flowWallet/logo.png

91.7 KB
Loading

Example/FCLDemo/FCLDemo/ViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ViewModel: NSObject, ObservableObject {
1919

2020
@Published var preAuthz: String = ""
2121

22-
@Published var provider: FCL.Provider = fcl.currentProvider ?? .lilico
22+
@Published var provider: FCL.Provider = fcl.currentProvider ?? .flowWallet
2323

2424
@Published var env: Flow.ChainID = fcl.currentEnv
2525

Package.resolved

Lines changed: 21 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ let metadata = FCL.Metadata(appName: "xxx",
115115
location: URL(string: "xxx")!,
116116
accountProof: accountProof,
117117
walletConnectConfig: walletConnect)
118-
let provider: FCL.Provider = .lilico
118+
let provider: FCL.Provider = .flowWallet
119119
fcl.config(metadata: metadata,
120120
env: env,
121121
provider: provider)

Sources/FCL.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public final class FCL: NSObject, ObservableObject {
2020

2121
public var config = Config()
2222

23-
private var providers: [FCL.Provider] = [.lilico, .blocto]
23+
private var providers: [FCL.Provider] = [.flowWallet, .blocto]
2424

2525
public let version = "@outblock/fcl-swift@0.0.9"
2626

Sources/Provider/Provider.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public extension FCL {
1414
// Dapper remove HTTP/POST Service and new service is TBD
1515
// case dapper
1616
case blocto
17-
case lilico
17+
case flowWallet
1818
case devWallet
1919
case custom(FCL.WalletProvider)
2020

21-
public static var allCases: [FCL.Provider] = [.lilico, .blocto, .devWallet]
21+
public static var allCases: [FCL.Provider] = [.flowWallet, .blocto, .devWallet]
2222

2323
public static func getEnvCases(env: Flow.ChainID = fcl.currentEnv) -> [FCL.Provider] {
2424
allCases.filter { $0.supportNetwork.contains(env) }
@@ -32,7 +32,7 @@ public extension FCL {
3232
switch self {
3333
case .blocto:
3434
return [.mainnet, .testnet]
35-
case .lilico:
35+
case .flowWallet:
3636
return [.mainnet, .testnet]
3737
case .devWallet:
3838
return [.emulator]
@@ -46,8 +46,8 @@ public extension FCL {
4646
case .blocto:
4747
return chainId == .mainnet ? URL(string: "https://flow-wallet.blocto.app/api/flow/authn")!.absoluteString :
4848
URL(string: "https://flow-wallet-testnet.blocto.app/api/flow/authn")!.absoluteString
49-
case .lilico:
50-
return URL(string: "https://link.lilico.app")!.absoluteString
49+
case .flowWallet:
50+
return URL(string: "https://frw-link.lilico.app")!.absoluteString
5151
case .devWallet:
5252
return URL(string: "http://127.0.0.1:8701/api/authn")!.absoluteString
5353
case let .custom(fclWalletProvider):
@@ -72,10 +72,10 @@ public extension FCL {
7272
method: .httpPost,
7373
endpoint: endpoint(chainId: chainId),
7474
supportNetwork: supportNetwork)
75-
case .lilico:
76-
return .init(id: "lilico",
77-
name: "lilico",
78-
logo: URL(string: "https://raw.githubusercontent.com/Outblock/fcl-swift/main/Assets/lilico/logo.png")!,
75+
case .flowWallet:
76+
return .init(id: "flowWallet",
77+
name: "Flow Wallet",
78+
logo: URL(string: "https://raw.githubusercontent.com/Outblock/fcl-swift/main/Assets/flowWallet/logo.png")!,
7979
method: .walletConnect,
8080
endpoint: endpoint(chainId: chainId),
8181
supportNetwork: supportNetwork)

Tests/FCLTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ final class FCLTests: XCTestCase {
2929
accountProof: nil,
3030
walletConnectConfig: nil)
3131

32-
fcl.config(metadata: metadata, env: .mainnet, provider: .lilico)
32+
fcl.config(metadata: metadata, env: .mainnet, provider: .flowWallet)
3333

3434
let dict = fcl.config.configLens("^app\\.detail\\.")
3535
XCTAssertNotNil(dict)

0 commit comments

Comments
 (0)