Updated on 2026-08-14
This commit is contained in:
parent
cf69bb5975
commit
c97ae7e446
10 changed files with 208 additions and 71 deletions
|
|
@ -49,7 +49,7 @@ sealed class Basic(
|
|||
params = mapOf(AnalyticsParam.CURRENCY to currency.value),
|
||||
)
|
||||
|
||||
class TransactionSent(sentFrom: AnalyticsParam.TxSentFrom) : Basic(
|
||||
class TransactionSent(sentFrom: AnalyticsParam.TxSentFrom, memoType: MemoType) : Basic(
|
||||
event = "Transaction sent",
|
||||
params = buildMap {
|
||||
this[AnalyticsParam.SOURCE] = sentFrom.value
|
||||
|
|
@ -61,8 +61,13 @@ sealed class Basic(
|
|||
if (sentFrom is AnalyticsParam.TxSentFrom.Approve) {
|
||||
this[AnalyticsParam.PERMISSION_TYPE] = sentFrom.permissionType
|
||||
}
|
||||
this["Memo"] = memoType.name
|
||||
},
|
||||
)
|
||||
) {
|
||||
enum class MemoType {
|
||||
Empty, Full, Null
|
||||
}
|
||||
}
|
||||
|
||||
class ScanError(error: Throwable) : Basic(
|
||||
event = "Scan",
|
||||
|
|
|
|||
|
|
@ -73,10 +73,36 @@ sealed class Token(
|
|||
error: Throwable? = null,
|
||||
) : Token("Token / Send", event, params, error) {
|
||||
|
||||
class ScreenOpened : Send("Send Screen Opened")
|
||||
class ButtonPaste : Send("Button - Paste")
|
||||
class ButtonQRCode : Send("Button - QR Code")
|
||||
class ButtonSwapCurrency : Send("Button - Swap Currency")
|
||||
class ScreenOpened : Send(event = "Send Screen Opened")
|
||||
class ButtonPaste : Send(event = "Button - Paste")
|
||||
class ButtonQRCode : Send(event = "Button - QR Code")
|
||||
class ButtonSwapCurrency : Send(event = "Button - Swap Currency")
|
||||
|
||||
class AddressEntered(sourceType: SourceType, validationResult: ValidationResult) : Send(
|
||||
event = "Address Entered",
|
||||
params = mapOf(
|
||||
"Source" to sourceType.name,
|
||||
"Validation" to validationResult.name,
|
||||
),
|
||||
) {
|
||||
enum class SourceType {
|
||||
QRCode, PasteButton, PastePopup
|
||||
}
|
||||
|
||||
enum class ValidationResult {
|
||||
Success, Fail
|
||||
}
|
||||
}
|
||||
|
||||
class SelectedCurrency(currency: CurrencyType) : Send(
|
||||
event = "Selected Currency",
|
||||
params = mapOf("Type" to currency.value),
|
||||
) {
|
||||
|
||||
enum class CurrencyType(val value: String) {
|
||||
Token(value = "Token"), AppCurrency(value = "App Currency")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sealed class Topup(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue