-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PWN-8904 - Striga API. get_estimated_fees (#1884)
* PWN-8904 - Striga API. get_estimated_fees * PWN-8904 - comment fixes * PWN-8904 - change base url * PWN-8904 - add StrigaUserWalletsMapper to koin * PWN-8904 - add ending slashes to new striga urls --------- Co-authored-by: Eduard Maximovich <[email protected]>
- Loading branch information
1 parent
018ed0d
commit 4310a6c
Showing
11 changed files
with
114 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...c/main/java/org/p2p/wallet/striga/wallet/api/request/StrigaOnchainWithdrawalFeeRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.p2p.wallet.striga.wallet.api.request | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
/** | ||
* @param amountInUnits The amount denominated in the smallest divisible unit of the sending currency. | ||
* For example: cents or satoshis | ||
*/ | ||
class StrigaOnchainWithdrawalFeeRequest( | ||
@SerializedName("userId") | ||
val userId: String, | ||
@SerializedName("sourceAccountId") | ||
val sourceAccountId: String, | ||
@SerializedName("whitelistedAddressId") | ||
val whitelistedAddressId: String, | ||
@SerializedName("amount") | ||
val amountInUnits: String, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...main/java/org/p2p/wallet/striga/wallet/api/response/StrigaOnchainWithdrawalFeeResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.p2p.wallet.striga.wallet.api.response | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class StrigaOnchainWithdrawalFeeResponse( | ||
@SerializedName("totalFee") | ||
val totalFee: String, | ||
@SerializedName("networkFee") | ||
val networkFee: String, | ||
@SerializedName("ourFee") | ||
val ourFee: String, | ||
@SerializedName("theirFee") | ||
val theirFee: String, | ||
@SerializedName("feeCurrency") | ||
val feeCurrency: String, | ||
@SerializedName("gasLimit") | ||
val gasLimit: String, | ||
@SerializedName("gasPrice") | ||
val gasPrice: String | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
app/src/main/java/org/p2p/wallet/striga/wallet/models/StrigaOnchainWithdrawalFees.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.p2p.wallet.striga.wallet.models | ||
|
||
import android.os.Parcelable | ||
import java.math.BigDecimal | ||
import java.math.BigInteger | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@Parcelize | ||
data class StrigaOnchainWithdrawalFees( | ||
val totalFee: BigInteger, | ||
val networkFee: BigInteger, | ||
val ourFee: BigInteger, | ||
val theirFee: BigInteger, | ||
val feeCurrency: StrigaNetworkCurrency, | ||
val gasLimit: BigInteger, | ||
val gasPrice: BigDecimal, | ||
) : Parcelable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters