diff --git a/Packages/Primitives/Sources/SwapProvider.swift b/Packages/Primitives/Sources/SwapProvider.swift index 8480e3e25..4937b8e0f 100644 --- a/Packages/Primitives/Sources/SwapProvider.swift +++ b/Packages/Primitives/Sources/SwapProvider.swift @@ -24,4 +24,5 @@ public enum SwapProvider: String, Codable, Equatable, Hashable, Sendable { case relay case hyperliquid case orca + case squid } diff --git a/Packages/PrimitivesComponents/Sources/Extensions/SwapProviderType+Gemstone.swift b/Packages/PrimitivesComponents/Sources/Extensions/SwapProviderType+Gemstone.swift index 8d6c2320f..8a908b5a9 100644 --- a/Packages/PrimitivesComponents/Sources/Extensions/SwapProviderType+Gemstone.swift +++ b/Packages/PrimitivesComponents/Sources/Extensions/SwapProviderType+Gemstone.swift @@ -26,6 +26,7 @@ public extension SwapProvider { case .orca: Images.SwapProviders.orca case .panora: Images.SwapProviders.panora case .okx: Images.SwapProviders.okx + case .squid: Images.SwapProviders.squid } } } diff --git a/Packages/Signer/Sources/Chains/CosmosSigner.swift b/Packages/Signer/Sources/Chains/CosmosSigner.swift index db7a50541..847c08fe4 100644 --- a/Packages/Signer/Sources/Chains/CosmosSigner.swift +++ b/Packages/Signer/Sources/Chains/CosmosSigner.swift @@ -3,7 +3,6 @@ import Foundation import WalletCore import Primitives -import Keystore // https://github.com/trustwallet/wallet-core/blob/master/swift/Tests/Blockchains/THORChainTests.swift#L27 struct CosmosSigner: Signable { @@ -63,6 +62,10 @@ struct CosmosSigner: Signable { return output.serialized } + func signSwap(input: SignerInput, privateKey: Data) throws -> [String] { + try ChainSigner(chain: input.asset.chain).signSwap(input: input, privateKey: privateKey) + } + func signData(input: Primitives.SignerInput, privateKey: Data) throws -> String { fatalError() } diff --git a/Packages/Style/Sources/Images.swift b/Packages/Style/Sources/Images.swift index 4f39d4f5c..ed7574c5f 100644 --- a/Packages/Style/Sources/Images.swift +++ b/Packages/Style/Sources/Images.swift @@ -83,6 +83,7 @@ public enum Images { public static let panora = Image(.panora) public static let okx = Image(.okx) public static let nearIntents = Image(.nearIntents) + public static let squid = Image(.squid) } public enum EarnProviders { diff --git a/Packages/Style/Sources/Resources/Assets.xcassets/swap_providers/squid.imageset/Contents.json b/Packages/Style/Sources/Resources/Assets.xcassets/swap_providers/squid.imageset/Contents.json new file mode 100644 index 000000000..3ad41ee30 --- /dev/null +++ b/Packages/Style/Sources/Resources/Assets.xcassets/swap_providers/squid.imageset/Contents.json @@ -0,0 +1,15 @@ +{ + "images" : [ + { + "filename" : "squid.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "preserves-vector-representation" : true + } +} diff --git a/Packages/Style/Sources/Resources/Assets.xcassets/swap_providers/squid.imageset/squid.svg b/Packages/Style/Sources/Resources/Assets.xcassets/swap_providers/squid.imageset/squid.svg new file mode 100644 index 000000000..05762c1f8 --- /dev/null +++ b/Packages/Style/Sources/Resources/Assets.xcassets/swap_providers/squid.imageset/squid.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/core b/core index f2414c42c..822e82cc5 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit f2414c42c31f134c05ce0d1ac4b2d86df39dbb7e +Subproject commit 822e82cc5ea82336bc43266f0773b2cb8501b77c