-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
626 additions
and
15 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
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
6 changes: 6 additions & 0 deletions
6
solwave/src/main/java/com/saganize/solwave/core/models/DisplayFormat.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,6 @@ | ||
package com.saganize.solwave.core.models | ||
|
||
enum class DisplayFormat(val format: String) { | ||
UTF8("utf8"), | ||
HEX("hex"), | ||
} |
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
14 changes: 8 additions & 6 deletions
14
solwave/src/main/java/com/saganize/solwave/core/util/BackendEndpoints.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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
package com.saganize.solwave.core.util | ||
|
||
import com.saganize.solwave.BuildConfig | ||
|
||
object BackendEndpoints { | ||
// RETROFIT requires trailing slash :/ | ||
const val BASE_URL: String = "***REMOVED***" | ||
const val BASE_URL: String = BuildConfig.BASE_URL | ||
|
||
object Auth { | ||
const val INITIATE_LOGIN = "***REMOVED***" | ||
const val INITIATE_CREATION = "***REMOVED***" | ||
const val INITIATE_LOGIN = BuildConfig.INITIATE_LOGIN | ||
const val INITIATE_CREATION = BuildConfig.INITIATE_CREATION | ||
} | ||
|
||
object Transaction { | ||
const val INITIATE_TRANSACTION = "***REMOVED***" | ||
const val SIMULATE_TRANSACTION = "***REMOVED***" | ||
const val INITIATE_TRANSACTION = BuildConfig.INITIATE_TRANSACTION | ||
const val SIMULATE_TRANSACTION = BuildConfig.SIMULATE_TRANSACTION | ||
const val SIGN_MESSAGE = BuildConfig.SIGN_MESSAGE | ||
} | ||
} |
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
10 changes: 10 additions & 0 deletions
10
...c/main/java/com/saganize/solwave/data/remote/model/requests/InitiateSignMessageRequest.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,10 @@ | ||
package com.saganize.solwave.data.remote.model.requests | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class InitiateSignMessageRequest( | ||
@SerialName("publicKey") | ||
val publicKey: String, | ||
) |
16 changes: 16 additions & 0 deletions
16
.../main/java/com/saganize/solwave/data/remote/model/response/InitiateSignMessageResponse.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,16 @@ | ||
package com.saganize.solwave.data.remote.model.response | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class InitiateSignMessageResponse( | ||
@SerialName("idempotencyId") | ||
val idempotencyId: String, | ||
@SerialName("authToken") | ||
val authToken: String, | ||
@SerialName("rsaPublicKey") | ||
val rsaPublicKey: String, | ||
@SerialName("url") | ||
val url: 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
Oops, something went wrong.