Skip to content

Commit

Permalink
IOS-7967 Add energy web
Browse files Browse the repository at this point in the history
  • Loading branch information
amuraveinik committed Sep 30, 2024
1 parent 0ca9260 commit ac7f454
Show file tree
Hide file tree
Showing 15 changed files with 81 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Tangem/App/Models/Config/SupportedBlockchains.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ struct SupportedBlockchains {
[
.internetComputer,
.sei(testnet: false),
.energyWebChain(testnet: false),
.energyWebX(curve: ed25519Curve(for: version), testnet: false),
]
}

Expand Down
4 changes: 3 additions & 1 deletion Tangem/App/Services/ExchangeService/MercuryoService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ private extension Blockchain {
.cyber,
.blast,
.filecoin,
.sei:
.sei,
.energyWebChain,
.energyWebX:
// Did you get a compilation error here? If so, check whether the network is supported at https://api.mercuryo.io/v1.6/lib/currencies
return nil
}
Expand Down
4 changes: 4 additions & 0 deletions Tangem/App/Services/ExchangeService/MoonPayService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ private extension Blockchain {
case .blast: return nil
case .filecoin: return "filecoin"
case .sei: return nil
case .energyWebChain: return nil
case .energyWebX: return nil
// Did you get a compilation error here? If so, check whether the network is supported at https://api.moonpay.com/v3/currencies
}
}
Expand Down Expand Up @@ -462,6 +464,8 @@ private extension Blockchain {
case .blast: return nil
case .filecoin: return "fil"
case .sei: return nil
case .energyWebChain: return nil
case .energyWebX: return nil
// Did you get a compilation error here? If so, check whether the network is supported at https://api.moonpay.com/v3/currencies
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ private extension CommonExpressTransactionBuilder {
.internetComputer,
.cyber,
.blast,
.filecoin:
.filecoin,
.energyWebChain,
.energyWebX:
throw ExpressTransactionBuilderError.blockchainDonNotSupportedExtraId
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ struct CustomTokenContractAddressConverter {
.cyber,
.blast,
.filecoin,
.sei:
.sei,
.energyWebChain,
.energyWebX:
// Did you get a compilation error here? If so, check if the network supports multiple token contract address
// formats (as Hedera does, for example) and add the appropriate conversion logic here if needed
return originalAddress
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ struct TokenInteractionAvailabilityProvider {
.cyber,
.blast,
.filecoin,
.sei:
.sei,
.energyWebChain,
.energyWebX:

// Checking that we have at least one valid (non-empty) address
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ struct SendTransactionParametersBuilder {
.internetComputer,
.cyber,
.blast,
.filecoin:
.filecoin,
.energyWebChain,
.energyWebX:
return nil
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "fill.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "disabled.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "fill.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "disabled.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Binary file not shown.

0 comments on commit ac7f454

Please sign in to comment.