Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Packages/Primitives/Sources/SwapProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ public enum SwapProvider: String, Codable, Equatable, Hashable, Sendable {
case relay
case hyperliquid
case orca
case squid
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
5 changes: 4 additions & 1 deletion Packages/Signer/Sources/Chains/CosmosSigner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
}
Expand Down
1 change: 1 addition & 0 deletions Packages/Style/Sources/Images.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "squid.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion core
Submodule core updated 42 files
+5 −0 .claude/skills/review-changes/SKILL.md
+2 −0 Cargo.lock
+4 −2 crates/gem_cosmos/Cargo.toml
+2 −0 crates/gem_cosmos/src/constants.rs
+3 −0 crates/gem_cosmos/src/lib.rs
+11 −0 crates/gem_cosmos/src/models/contract.rs
+16 −0 crates/gem_cosmos/src/models/ibc.rs
+70 −0 crates/gem_cosmos/src/models/long.rs
+138 −0 crates/gem_cosmos/src/models/message.rs
+11 −0 crates/gem_cosmos/src/models/mod.rs
+5 −2 crates/gem_cosmos/src/provider/preload_mapper.rs
+99 −0 crates/gem_cosmos/src/signer/chain_signer.rs
+5 −0 crates/gem_cosmos/src/signer/mod.rs
+70 −0 crates/gem_cosmos/src/signer/protobuf.rs
+158 −0 crates/gem_cosmos/src/signer/transaction.rs
+14 −0 crates/gem_cosmos/testdata/swap_execute_contract.json
+15 −0 crates/gem_cosmos/testdata/swap_ibc_transfer.json
+15 −0 crates/primitives/src/asset_constants.rs
+12 −0 crates/primitives/src/chain_cosmos.rs
+2 −0 crates/primitives/src/explorers/mod.rs
+51 −0 crates/primitives/src/explorers/skip.rs
+6 −3 crates/primitives/src/swap_provider.rs
+7 −0 crates/primitives/src/transaction_load_metadata.rs
+4 −4 crates/signer/src/eip712/mod.rs
+1 −0 crates/signer/src/lib.rs
+6 −1 crates/signer/src/secp256k1.rs
+1 −0 crates/swapper/Cargo.toml
+12 −0 crates/swapper/src/fees/referral.rs
+1 −0 crates/swapper/src/lib.rs
+1 −1 crates/swapper/src/models.rs
+32 −0 crates/swapper/src/squid/client.rs
+32 −0 crates/swapper/src/squid/mod.rs
+98 −0 crates/swapper/src/squid/model.rs
+263 −0 crates/swapper/src/squid/provider.rs
+2 −1 crates/swapper/src/swapper.rs
+7 −0 crates/swapper/testdata/squid/status_response.json
+1 −1 gemstone/Cargo.toml
+2 −1 gemstone/src/block_explorer/mod.rs
+2 −0 gemstone/src/config/swap_config.rs
+1 −0 gemstone/src/gem_swapper/remote_types.rs
+2 −0 gemstone/src/signer/chain.rs
+5 −0 skills/code-style.md
Loading