@exodus/analytics-validation 3.2.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/lib/events.d.ts +112 -0
- package/lib/exchange/exchange-time-trace.schemasafe.json +9 -0
- package/lib/main.schemasafe.json +66 -0
- package/lib/pay/rebalancing-attempted.schemasafe.json +21 -0
- package/lib/pay/rebalancing-failed.schemasafe.json +34 -0
- package/lib/pay/rebalancing-succeeded.schemasafe.json +22 -0
- package/lib/wealth/stocks-buy-add-cash-tap.schemasafe.json +38 -0
- package/lib/wealth/stocks-buy-amount-valid.schemasafe.json +34 -0
- package/lib/wealth/stocks-fund-amount-dismissed.schemasafe.json +64 -0
- package/lib/wealth/stocks-fund-amount-view.schemasafe.json +34 -0
- package/lib/wealth/stocks-fund-blocked.schemasafe.json +58 -0
- package/lib/wealth/stocks-fund-confirm-dismissed.schemasafe.json +32 -0
- package/lib/wealth/stocks-fund-confirm-view.schemasafe.json +26 -0
- package/lib/wealth/stocks-fund-deposit-tap.schemasafe.json +30 -0
- package/lib/wealth/stocks-fund-error.schemasafe.json +30 -0
- package/lib/wealth/stocks-fund-success.schemasafe.json +29 -0
- package/lib/wealth/stocks-fund.schemasafe.json +26 -0
- package/lib/wealth/stocks-withdraw-amount-dismissed.schemasafe.json +64 -0
- package/lib/wealth/stocks-withdraw-amount-view.schemasafe.json +27 -0
- package/lib/wealth/stocks-withdraw-blocked.schemasafe.json +58 -0
- package/lib/wealth/stocks-withdraw-confirm-dismissed.schemasafe.json +32 -0
- package/lib/wealth/stocks-withdraw-confirm-view.schemasafe.json +29 -0
- package/lib/wealth/stocks-withdraw-error.schemasafe.json +30 -0
- package/lib/wealth/stocks-withdraw-success.schemasafe.json +29 -0
- package/lib/wealth/stocks-withdraw.schemasafe.json +29 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,34 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.5.0](https://github.com/ExodusMovement/exodus/compare/@exodus/analytics-validation@3.3.0...@exodus/analytics-validation@3.5.0) (2026-09-23)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **analytics-libs:** track fund and withdraw telemetry for markets ([#43186](https://github.com/ExodusMovement/exodus/issues/43186)) ([dfd1a61](https://github.com/ExodusMovement/exodus/commit/dfd1a61371b0be3b818d0055891bc982c0f9b95d))
|
|
11
|
+
- **analytics-validation:** add Rebalancing lifecycle events ([#45640](https://github.com/ExodusMovement/exodus/issues/45640)) ([5d600df](https://github.com/ExodusMovement/exodus/commit/5d600dfbb77aa2ab2962dc81ff771555d74393d2))
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
- **exchange:** abort stale swaps before broadcasting the deposit ([#44416](https://github.com/ExodusMovement/exodus/issues/44416)) ([50150cc](https://github.com/ExodusMovement/exodus/commit/50150cc22190d1767d5b1008ad3bddfcee6d47bf))
|
|
16
|
+
|
|
17
|
+
## [3.4.0](https://github.com/ExodusMovement/exodus/compare/@exodus/analytics-validation@3.3.0...@exodus/analytics-validation@3.4.0) (2026-09-23)
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
- **analytics-libs:** track fund and withdraw telemetry for markets ([#43186](https://github.com/ExodusMovement/exodus/issues/43186)) ([dfd1a61](https://github.com/ExodusMovement/exodus/commit/dfd1a61371b0be3b818d0055891bc982c0f9b95d))
|
|
22
|
+
- **analytics-validation:** add Rebalancing lifecycle events ([#45640](https://github.com/ExodusMovement/exodus/issues/45640)) ([5d600df](https://github.com/ExodusMovement/exodus/commit/5d600dfbb77aa2ab2962dc81ff771555d74393d2))
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
- **exchange:** abort stale swaps before broadcasting the deposit ([#44416](https://github.com/ExodusMovement/exodus/issues/44416)) ([50150cc](https://github.com/ExodusMovement/exodus/commit/50150cc22190d1767d5b1008ad3bddfcee6d47bf))
|
|
27
|
+
|
|
28
|
+
## [3.3.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@3.2.1...@exodus/analytics-validation@3.3.0) (2026-07-09)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
- **analytics-validation:** add StocksBuyAmountValid schema ([#17506](https://github.com/ExodusMovement/exodus-hydra/issues/17506)) ([9310115](https://github.com/ExodusMovement/exodus-hydra/commit/9310115c8b39422cd8a2da6c6ad3ddd01432533b))
|
|
33
|
+
|
|
6
34
|
## [3.2.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@3.2.0...@exodus/analytics-validation@3.2.1) (2026-07-03)
|
|
7
35
|
|
|
8
36
|
### Bug Fixes
|
package/lib/events.d.ts
CHANGED
|
@@ -387,6 +387,9 @@ export interface AnalyticsEventMap {
|
|
|
387
387
|
revokeTokens?: number
|
|
388
388
|
createTxBundle?: number
|
|
389
389
|
sendTxBundle?: number
|
|
390
|
+
executeTrade?: number
|
|
391
|
+
timeToBroadcast?: number
|
|
392
|
+
staleSwapAborted?: boolean
|
|
390
393
|
}
|
|
391
394
|
"ExodusTransactionBroadcast": {
|
|
392
395
|
asset?: "SOL"
|
|
@@ -1148,6 +1151,28 @@ export interface AnalyticsEventMap {
|
|
|
1148
1151
|
orderTo: number
|
|
1149
1152
|
featureName: string
|
|
1150
1153
|
}
|
|
1154
|
+
"RebalancingAttempted": {
|
|
1155
|
+
sourceAsset: string
|
|
1156
|
+
targetAsset: string
|
|
1157
|
+
amountUsd: number
|
|
1158
|
+
attemptNumber: number
|
|
1159
|
+
}
|
|
1160
|
+
"RebalancingFailed": {
|
|
1161
|
+
sourceAsset: string
|
|
1162
|
+
targetAsset: string
|
|
1163
|
+
amountUsd: number
|
|
1164
|
+
attemptNumber: number
|
|
1165
|
+
durationMs: number
|
|
1166
|
+
failureReasonType: "create_deposit_transaction" | "transfer" | "broadcast"
|
|
1167
|
+
retryBackoffMs: number
|
|
1168
|
+
}
|
|
1169
|
+
"RebalancingSucceeded": {
|
|
1170
|
+
sourceAsset: string
|
|
1171
|
+
targetAsset: string
|
|
1172
|
+
amountUsd: number
|
|
1173
|
+
attemptNumber: number
|
|
1174
|
+
durationMs: number
|
|
1175
|
+
}
|
|
1151
1176
|
"ReferralCodeInput": {
|
|
1152
1177
|
success?: boolean
|
|
1153
1178
|
}
|
|
@@ -1336,6 +1361,12 @@ export interface AnalyticsEventMap {
|
|
|
1336
1361
|
confirmReadyS?: number
|
|
1337
1362
|
timeToConfirmS?: number
|
|
1338
1363
|
}
|
|
1364
|
+
"StocksBuyAddCashTap": {
|
|
1365
|
+
asset?: string
|
|
1366
|
+
amountUsd?: number
|
|
1367
|
+
balanceUsd?: number
|
|
1368
|
+
shortfallUsd?: number
|
|
1369
|
+
}
|
|
1339
1370
|
"StocksBuyAmountDismissed": {
|
|
1340
1371
|
asset?: string
|
|
1341
1372
|
amountUsd?: number
|
|
@@ -1349,6 +1380,11 @@ export interface AnalyticsEventMap {
|
|
|
1349
1380
|
amountUsd?: number
|
|
1350
1381
|
timeToReadyS?: number
|
|
1351
1382
|
}
|
|
1383
|
+
"StocksBuyAmountValid": {
|
|
1384
|
+
asset?: string
|
|
1385
|
+
amountUsd?: number
|
|
1386
|
+
balanceUsd?: number
|
|
1387
|
+
}
|
|
1352
1388
|
"StocksBuyAmountView": {
|
|
1353
1389
|
asset?: string
|
|
1354
1390
|
balanceUsd?: number
|
|
@@ -1398,6 +1434,46 @@ export interface AnalyticsEventMap {
|
|
|
1398
1434
|
"StocksBuyView": {
|
|
1399
1435
|
asset?: string
|
|
1400
1436
|
}
|
|
1437
|
+
"StocksFund": {
|
|
1438
|
+
amountUsd?: number
|
|
1439
|
+
}
|
|
1440
|
+
"StocksFundAmountDismissed": {
|
|
1441
|
+
amountUsd?: number
|
|
1442
|
+
buttonReady?: boolean
|
|
1443
|
+
errorType?: "READ_ONLY_WALLET_ACCOUNT" | "EXCHANGE_UNAVAILABLE" | "MUST_OPT_IN" | "LOW_SOL_RENT_EXEMPT_AMOUNT" | "ZERO_BALANCE" | "NOT_ENOUGH_BALANCE" | "LOW_FROM_AMOUNT" | "HIGH_FROM_AMOUNT" | "NOT_ENOUGH_FEE_BALANCE" | "EXACT_OUT_QUOTE" | "MARKET_CLOSED" | "ASSET_PAUSED" | "INTERNAL_ERROR" | "HIGH_RISK_TOKENS" | "INVALID_ADDRESS" | "INSUFFICIENT_LIQUIDITY" | "UNSUPPORTED_SWAP_MODE" | "RESTRICTED_REGION" | "AMOUNT_ABOVE_LIMIT" | "AMOUNT_BELOW_LIMIT" | "PAIR_UNAVAILABLE" | "EOS_ACCOUNT_CREATION_IN_PROGRESS" | "TRANSACTION_STUCK"
|
|
1444
|
+
balanceUsd?: number
|
|
1445
|
+
durationS?: number
|
|
1446
|
+
}
|
|
1447
|
+
"StocksFundAmountView": {
|
|
1448
|
+
origin?: "home" | "buy_insufficient" | "pay_home"
|
|
1449
|
+
balanceUsd?: number
|
|
1450
|
+
amountPrefilledUsd?: number
|
|
1451
|
+
}
|
|
1452
|
+
"StocksFundBlocked": {
|
|
1453
|
+
errorType?: "READ_ONLY_WALLET_ACCOUNT" | "EXCHANGE_UNAVAILABLE" | "MUST_OPT_IN" | "LOW_SOL_RENT_EXEMPT_AMOUNT" | "ZERO_BALANCE" | "NOT_ENOUGH_BALANCE" | "LOW_FROM_AMOUNT" | "HIGH_FROM_AMOUNT" | "NOT_ENOUGH_FEE_BALANCE" | "EXACT_OUT_QUOTE" | "MARKET_CLOSED" | "ASSET_PAUSED" | "INTERNAL_ERROR" | "HIGH_RISK_TOKENS" | "INVALID_ADDRESS" | "INSUFFICIENT_LIQUIDITY" | "UNSUPPORTED_SWAP_MODE" | "RESTRICTED_REGION" | "AMOUNT_ABOVE_LIMIT" | "AMOUNT_BELOW_LIMIT" | "PAIR_UNAVAILABLE" | "EOS_ACCOUNT_CREATION_IN_PROGRESS" | "TRANSACTION_STUCK"
|
|
1454
|
+
amountUsd?: number
|
|
1455
|
+
balanceUsd?: number
|
|
1456
|
+
}
|
|
1457
|
+
"StocksFundConfirmDismissed": {
|
|
1458
|
+
amountUsd?: number
|
|
1459
|
+
confirmReady?: boolean
|
|
1460
|
+
durationS?: number
|
|
1461
|
+
}
|
|
1462
|
+
"StocksFundConfirmView": {
|
|
1463
|
+
amountUsd?: number
|
|
1464
|
+
}
|
|
1465
|
+
"StocksFundDepositTap": {
|
|
1466
|
+
balanceUsd?: number
|
|
1467
|
+
amountUsd?: number
|
|
1468
|
+
}
|
|
1469
|
+
"StocksFundError": {
|
|
1470
|
+
errorType?: "transfer_failed" | "NO_QUOTE"
|
|
1471
|
+
amountUsd?: number
|
|
1472
|
+
}
|
|
1473
|
+
"StocksFundSuccess": {
|
|
1474
|
+
amountUsd?: number
|
|
1475
|
+
durationS?: number
|
|
1476
|
+
}
|
|
1401
1477
|
"StocksGeoBlockedView": {}
|
|
1402
1478
|
"StocksHomeView": {}
|
|
1403
1479
|
"StocksOnboardingComplete": {}
|
|
@@ -1444,6 +1520,42 @@ export interface AnalyticsEventMap {
|
|
|
1444
1520
|
"StocksSellView": {
|
|
1445
1521
|
asset?: string
|
|
1446
1522
|
}
|
|
1523
|
+
"StocksWithdraw": {
|
|
1524
|
+
amountUsd?: number
|
|
1525
|
+
withdrawAll?: boolean
|
|
1526
|
+
}
|
|
1527
|
+
"StocksWithdrawAmountDismissed": {
|
|
1528
|
+
amountUsd?: number
|
|
1529
|
+
buttonReady?: boolean
|
|
1530
|
+
errorType?: "READ_ONLY_WALLET_ACCOUNT" | "EXCHANGE_UNAVAILABLE" | "MUST_OPT_IN" | "LOW_SOL_RENT_EXEMPT_AMOUNT" | "ZERO_BALANCE" | "NOT_ENOUGH_BALANCE" | "LOW_FROM_AMOUNT" | "HIGH_FROM_AMOUNT" | "NOT_ENOUGH_FEE_BALANCE" | "EXACT_OUT_QUOTE" | "MARKET_CLOSED" | "ASSET_PAUSED" | "INTERNAL_ERROR" | "HIGH_RISK_TOKENS" | "INVALID_ADDRESS" | "INSUFFICIENT_LIQUIDITY" | "UNSUPPORTED_SWAP_MODE" | "RESTRICTED_REGION" | "AMOUNT_ABOVE_LIMIT" | "AMOUNT_BELOW_LIMIT" | "PAIR_UNAVAILABLE" | "EOS_ACCOUNT_CREATION_IN_PROGRESS" | "TRANSACTION_STUCK"
|
|
1531
|
+
balanceUsd?: number
|
|
1532
|
+
durationS?: number
|
|
1533
|
+
}
|
|
1534
|
+
"StocksWithdrawAmountView": {
|
|
1535
|
+
balanceUsd?: number
|
|
1536
|
+
}
|
|
1537
|
+
"StocksWithdrawBlocked": {
|
|
1538
|
+
errorType?: "READ_ONLY_WALLET_ACCOUNT" | "EXCHANGE_UNAVAILABLE" | "MUST_OPT_IN" | "LOW_SOL_RENT_EXEMPT_AMOUNT" | "ZERO_BALANCE" | "NOT_ENOUGH_BALANCE" | "LOW_FROM_AMOUNT" | "HIGH_FROM_AMOUNT" | "NOT_ENOUGH_FEE_BALANCE" | "EXACT_OUT_QUOTE" | "MARKET_CLOSED" | "ASSET_PAUSED" | "INTERNAL_ERROR" | "HIGH_RISK_TOKENS" | "INVALID_ADDRESS" | "INSUFFICIENT_LIQUIDITY" | "UNSUPPORTED_SWAP_MODE" | "RESTRICTED_REGION" | "AMOUNT_ABOVE_LIMIT" | "AMOUNT_BELOW_LIMIT" | "PAIR_UNAVAILABLE" | "EOS_ACCOUNT_CREATION_IN_PROGRESS" | "TRANSACTION_STUCK"
|
|
1539
|
+
amountUsd?: number
|
|
1540
|
+
balanceUsd?: number
|
|
1541
|
+
}
|
|
1542
|
+
"StocksWithdrawConfirmDismissed": {
|
|
1543
|
+
amountUsd?: number
|
|
1544
|
+
confirmReady?: boolean
|
|
1545
|
+
durationS?: number
|
|
1546
|
+
}
|
|
1547
|
+
"StocksWithdrawConfirmView": {
|
|
1548
|
+
amountUsd?: number
|
|
1549
|
+
withdrawAll?: boolean
|
|
1550
|
+
}
|
|
1551
|
+
"StocksWithdrawError": {
|
|
1552
|
+
errorType?: "transfer_failed" | "NO_QUOTE"
|
|
1553
|
+
amountUsd?: number
|
|
1554
|
+
}
|
|
1555
|
+
"StocksWithdrawSuccess": {
|
|
1556
|
+
amountUsd?: number
|
|
1557
|
+
durationS?: number
|
|
1558
|
+
}
|
|
1447
1559
|
"SupportFeedbackTap": {
|
|
1448
1560
|
feedback?: number
|
|
1449
1561
|
}
|
|
@@ -94,6 +94,15 @@
|
|
|
94
94
|
},
|
|
95
95
|
"send_tx_bundle": {
|
|
96
96
|
"type": "number"
|
|
97
|
+
},
|
|
98
|
+
"execute_trade": {
|
|
99
|
+
"type": "number"
|
|
100
|
+
},
|
|
101
|
+
"time_to_broadcast": {
|
|
102
|
+
"type": "number"
|
|
103
|
+
},
|
|
104
|
+
"stale_swap_aborted": {
|
|
105
|
+
"type": "boolean"
|
|
97
106
|
}
|
|
98
107
|
},
|
|
99
108
|
"unevaluatedProperties": false
|
package/lib/main.schemasafe.json
CHANGED
|
@@ -650,6 +650,15 @@
|
|
|
650
650
|
{
|
|
651
651
|
"$ref": "pay-withdraw-type-selected#"
|
|
652
652
|
},
|
|
653
|
+
{
|
|
654
|
+
"$ref": "rebalancing-attempted#"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"$ref": "rebalancing-failed#"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"$ref": "rebalancing-succeeded#"
|
|
661
|
+
},
|
|
653
662
|
{
|
|
654
663
|
"$ref": "performance-app-startup#"
|
|
655
664
|
},
|
|
@@ -1049,12 +1058,18 @@
|
|
|
1049
1058
|
{
|
|
1050
1059
|
"$ref": "stocks-asset-detail-view#"
|
|
1051
1060
|
},
|
|
1061
|
+
{
|
|
1062
|
+
"$ref": "stocks-buy-add-cash-tap#"
|
|
1063
|
+
},
|
|
1052
1064
|
{
|
|
1053
1065
|
"$ref": "stocks-buy-amount-dismissed#"
|
|
1054
1066
|
},
|
|
1055
1067
|
{
|
|
1056
1068
|
"$ref": "stocks-buy-amount-ready#"
|
|
1057
1069
|
},
|
|
1070
|
+
{
|
|
1071
|
+
"$ref": "stocks-buy-amount-valid#"
|
|
1072
|
+
},
|
|
1058
1073
|
{
|
|
1059
1074
|
"$ref": "stocks-buy-amount-view#"
|
|
1060
1075
|
},
|
|
@@ -1088,6 +1103,33 @@
|
|
|
1088
1103
|
{
|
|
1089
1104
|
"$ref": "stocks-buy#"
|
|
1090
1105
|
},
|
|
1106
|
+
{
|
|
1107
|
+
"$ref": "stocks-fund-amount-dismissed#"
|
|
1108
|
+
},
|
|
1109
|
+
{
|
|
1110
|
+
"$ref": "stocks-fund-amount-view#"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"$ref": "stocks-fund-blocked#"
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
"$ref": "stocks-fund-confirm-dismissed#"
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"$ref": "stocks-fund-confirm-view#"
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
"$ref": "stocks-fund-deposit-tap#"
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
"$ref": "stocks-fund-error#"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"$ref": "stocks-fund-success#"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"$ref": "stocks-fund#"
|
|
1132
|
+
},
|
|
1091
1133
|
{
|
|
1092
1134
|
"$ref": "stocks-geo-blocked-view#"
|
|
1093
1135
|
},
|
|
@@ -1130,6 +1172,30 @@
|
|
|
1130
1172
|
{
|
|
1131
1173
|
"$ref": "stocks-sell#"
|
|
1132
1174
|
},
|
|
1175
|
+
{
|
|
1176
|
+
"$ref": "stocks-withdraw-amount-dismissed#"
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"$ref": "stocks-withdraw-amount-view#"
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"$ref": "stocks-withdraw-blocked#"
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"$ref": "stocks-withdraw-confirm-dismissed#"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"$ref": "stocks-withdraw-confirm-view#"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"$ref": "stocks-withdraw-error#"
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"$ref": "stocks-withdraw-success#"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"$ref": "stocks-withdraw#"
|
|
1198
|
+
},
|
|
1133
1199
|
{
|
|
1134
1200
|
"$ref": "web3-browser-connection-deleted#"
|
|
1135
1201
|
},
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": { "const": "RebalancingAttempted" },
|
|
6
|
+
"properties": {
|
|
7
|
+
"allOf": [{ "$ref": "common-properties#" }],
|
|
8
|
+
"type": "object",
|
|
9
|
+
"required": ["source_asset", "target_asset", "amount_usd", "attempt_number"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"source_asset": { "type": "string", "format": "any-string" },
|
|
12
|
+
"target_asset": { "type": "string", "format": "any-string" },
|
|
13
|
+
"amount_usd": { "type": "number", "exclusiveMinimum": 0 },
|
|
14
|
+
"attempt_number": { "type": "integer", "minimum": 1 }
|
|
15
|
+
},
|
|
16
|
+
"unevaluatedProperties": false
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"unevaluatedProperties": false,
|
|
20
|
+
"required": ["event", "properties"]
|
|
21
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": { "const": "RebalancingFailed" },
|
|
6
|
+
"properties": {
|
|
7
|
+
"allOf": [{ "$ref": "common-properties#" }],
|
|
8
|
+
"type": "object",
|
|
9
|
+
"required": [
|
|
10
|
+
"source_asset",
|
|
11
|
+
"target_asset",
|
|
12
|
+
"amount_usd",
|
|
13
|
+
"attempt_number",
|
|
14
|
+
"duration_ms",
|
|
15
|
+
"failure_reason_type",
|
|
16
|
+
"retry_backoff_ms"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"source_asset": { "type": "string", "format": "any-string" },
|
|
20
|
+
"target_asset": { "type": "string", "format": "any-string" },
|
|
21
|
+
"amount_usd": { "type": "number", "exclusiveMinimum": 0 },
|
|
22
|
+
"attempt_number": { "type": "integer", "minimum": 1 },
|
|
23
|
+
"duration_ms": { "type": "integer", "minimum": 0 },
|
|
24
|
+
"failure_reason_type": {
|
|
25
|
+
"enum": ["create_deposit_transaction", "transfer", "broadcast"]
|
|
26
|
+
},
|
|
27
|
+
"retry_backoff_ms": { "type": "integer", "minimum": 0 }
|
|
28
|
+
},
|
|
29
|
+
"unevaluatedProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false,
|
|
33
|
+
"required": ["event", "properties"]
|
|
34
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": { "const": "RebalancingSucceeded" },
|
|
6
|
+
"properties": {
|
|
7
|
+
"allOf": [{ "$ref": "common-properties#" }],
|
|
8
|
+
"type": "object",
|
|
9
|
+
"required": ["source_asset", "target_asset", "amount_usd", "attempt_number", "duration_ms"],
|
|
10
|
+
"properties": {
|
|
11
|
+
"source_asset": { "type": "string", "format": "any-string" },
|
|
12
|
+
"target_asset": { "type": "string", "format": "any-string" },
|
|
13
|
+
"amount_usd": { "type": "number", "exclusiveMinimum": 0 },
|
|
14
|
+
"attempt_number": { "type": "integer", "minimum": 1 },
|
|
15
|
+
"duration_ms": { "type": "integer", "minimum": 0 }
|
|
16
|
+
},
|
|
17
|
+
"unevaluatedProperties": false
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"unevaluatedProperties": false,
|
|
21
|
+
"required": ["event", "properties"]
|
|
22
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksBuyAddCashTap"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"asset": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "any-string"
|
|
20
|
+
},
|
|
21
|
+
"amount_usd": {
|
|
22
|
+
"type": "number"
|
|
23
|
+
},
|
|
24
|
+
"balance_usd": {
|
|
25
|
+
"type": "number",
|
|
26
|
+
"minimum": 0
|
|
27
|
+
},
|
|
28
|
+
"shortfall_usd": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"minimum": 0
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"unevaluatedProperties": false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"unevaluatedProperties": false,
|
|
37
|
+
"required": ["event", "properties"]
|
|
38
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksBuyAmountValid"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"asset": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"format": "any-string"
|
|
20
|
+
},
|
|
21
|
+
"amount_usd": {
|
|
22
|
+
"type": "number"
|
|
23
|
+
},
|
|
24
|
+
"balance_usd": {
|
|
25
|
+
"type": "number",
|
|
26
|
+
"minimum": 0
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"unevaluatedProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false,
|
|
33
|
+
"required": ["event", "properties"]
|
|
34
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksFundAmountDismissed"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"amount_usd": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"button_ready": {
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"error_type": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": [
|
|
26
|
+
"READ_ONLY_WALLET_ACCOUNT",
|
|
27
|
+
"EXCHANGE_UNAVAILABLE",
|
|
28
|
+
"MUST_OPT_IN",
|
|
29
|
+
"LOW_SOL_RENT_EXEMPT_AMOUNT",
|
|
30
|
+
"ZERO_BALANCE",
|
|
31
|
+
"NOT_ENOUGH_BALANCE",
|
|
32
|
+
"LOW_FROM_AMOUNT",
|
|
33
|
+
"HIGH_FROM_AMOUNT",
|
|
34
|
+
"NOT_ENOUGH_FEE_BALANCE",
|
|
35
|
+
"EXACT_OUT_QUOTE",
|
|
36
|
+
"MARKET_CLOSED",
|
|
37
|
+
"ASSET_PAUSED",
|
|
38
|
+
"INTERNAL_ERROR",
|
|
39
|
+
"HIGH_RISK_TOKENS",
|
|
40
|
+
"INVALID_ADDRESS",
|
|
41
|
+
"INSUFFICIENT_LIQUIDITY",
|
|
42
|
+
"UNSUPPORTED_SWAP_MODE",
|
|
43
|
+
"RESTRICTED_REGION",
|
|
44
|
+
"AMOUNT_ABOVE_LIMIT",
|
|
45
|
+
"AMOUNT_BELOW_LIMIT",
|
|
46
|
+
"PAIR_UNAVAILABLE",
|
|
47
|
+
"EOS_ACCOUNT_CREATION_IN_PROGRESS",
|
|
48
|
+
"TRANSACTION_STUCK"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"balance_usd": {
|
|
52
|
+
"type": "number",
|
|
53
|
+
"minimum": 0
|
|
54
|
+
},
|
|
55
|
+
"duration_s": {
|
|
56
|
+
"type": "number"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"unevaluatedProperties": false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"unevaluatedProperties": false,
|
|
63
|
+
"required": ["event", "properties"]
|
|
64
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksFundAmountView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"origin": {
|
|
18
|
+
"enum": ["home", "buy_insufficient", "pay_home"]
|
|
19
|
+
},
|
|
20
|
+
"balance_usd": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"minimum": 0
|
|
23
|
+
},
|
|
24
|
+
"amount_prefilled_usd": {
|
|
25
|
+
"type": "number",
|
|
26
|
+
"minimum": 0
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"unevaluatedProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false,
|
|
33
|
+
"required": ["event", "properties"]
|
|
34
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksFundBlocked"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"error_type": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"READ_ONLY_WALLET_ACCOUNT",
|
|
21
|
+
"EXCHANGE_UNAVAILABLE",
|
|
22
|
+
"MUST_OPT_IN",
|
|
23
|
+
"LOW_SOL_RENT_EXEMPT_AMOUNT",
|
|
24
|
+
"ZERO_BALANCE",
|
|
25
|
+
"NOT_ENOUGH_BALANCE",
|
|
26
|
+
"LOW_FROM_AMOUNT",
|
|
27
|
+
"HIGH_FROM_AMOUNT",
|
|
28
|
+
"NOT_ENOUGH_FEE_BALANCE",
|
|
29
|
+
"EXACT_OUT_QUOTE",
|
|
30
|
+
"MARKET_CLOSED",
|
|
31
|
+
"ASSET_PAUSED",
|
|
32
|
+
"INTERNAL_ERROR",
|
|
33
|
+
"HIGH_RISK_TOKENS",
|
|
34
|
+
"INVALID_ADDRESS",
|
|
35
|
+
"INSUFFICIENT_LIQUIDITY",
|
|
36
|
+
"UNSUPPORTED_SWAP_MODE",
|
|
37
|
+
"RESTRICTED_REGION",
|
|
38
|
+
"AMOUNT_ABOVE_LIMIT",
|
|
39
|
+
"AMOUNT_BELOW_LIMIT",
|
|
40
|
+
"PAIR_UNAVAILABLE",
|
|
41
|
+
"EOS_ACCOUNT_CREATION_IN_PROGRESS",
|
|
42
|
+
"TRANSACTION_STUCK"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"amount_usd": {
|
|
46
|
+
"type": "number"
|
|
47
|
+
},
|
|
48
|
+
"balance_usd": {
|
|
49
|
+
"type": "number",
|
|
50
|
+
"minimum": 0
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"unevaluatedProperties": false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"unevaluatedProperties": false,
|
|
57
|
+
"required": ["event", "properties"]
|
|
58
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksFundConfirmDismissed"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"amount_usd": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"confirm_ready": {
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"duration_s": {
|
|
24
|
+
"type": "number"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"unevaluatedProperties": false
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"unevaluatedProperties": false,
|
|
31
|
+
"required": ["event", "properties"]
|
|
32
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksFundConfirmView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"amount_usd": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"unevaluatedProperties": false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false,
|
|
25
|
+
"required": ["event", "properties"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksFundDepositTap"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"balance_usd": {
|
|
18
|
+
"type": "number",
|
|
19
|
+
"minimum": 0
|
|
20
|
+
},
|
|
21
|
+
"amount_usd": {
|
|
22
|
+
"type": "number"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"unevaluatedProperties": false,
|
|
29
|
+
"required": ["event", "properties"]
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksFundError"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"error_type": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["transfer_failed", "NO_QUOTE"]
|
|
20
|
+
},
|
|
21
|
+
"amount_usd": {
|
|
22
|
+
"type": "number"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"unevaluatedProperties": false,
|
|
29
|
+
"required": ["event", "properties"]
|
|
30
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksFundSuccess"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"amount_usd": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"duration_s": {
|
|
21
|
+
"type": "number"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"unevaluatedProperties": false,
|
|
28
|
+
"required": ["event", "properties"]
|
|
29
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksFund"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"amount_usd": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"unevaluatedProperties": false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false,
|
|
25
|
+
"required": ["event", "properties"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksWithdrawAmountDismissed"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"amount_usd": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"button_ready": {
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"error_type": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": [
|
|
26
|
+
"READ_ONLY_WALLET_ACCOUNT",
|
|
27
|
+
"EXCHANGE_UNAVAILABLE",
|
|
28
|
+
"MUST_OPT_IN",
|
|
29
|
+
"LOW_SOL_RENT_EXEMPT_AMOUNT",
|
|
30
|
+
"ZERO_BALANCE",
|
|
31
|
+
"NOT_ENOUGH_BALANCE",
|
|
32
|
+
"LOW_FROM_AMOUNT",
|
|
33
|
+
"HIGH_FROM_AMOUNT",
|
|
34
|
+
"NOT_ENOUGH_FEE_BALANCE",
|
|
35
|
+
"EXACT_OUT_QUOTE",
|
|
36
|
+
"MARKET_CLOSED",
|
|
37
|
+
"ASSET_PAUSED",
|
|
38
|
+
"INTERNAL_ERROR",
|
|
39
|
+
"HIGH_RISK_TOKENS",
|
|
40
|
+
"INVALID_ADDRESS",
|
|
41
|
+
"INSUFFICIENT_LIQUIDITY",
|
|
42
|
+
"UNSUPPORTED_SWAP_MODE",
|
|
43
|
+
"RESTRICTED_REGION",
|
|
44
|
+
"AMOUNT_ABOVE_LIMIT",
|
|
45
|
+
"AMOUNT_BELOW_LIMIT",
|
|
46
|
+
"PAIR_UNAVAILABLE",
|
|
47
|
+
"EOS_ACCOUNT_CREATION_IN_PROGRESS",
|
|
48
|
+
"TRANSACTION_STUCK"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"balance_usd": {
|
|
52
|
+
"type": "number",
|
|
53
|
+
"minimum": 0
|
|
54
|
+
},
|
|
55
|
+
"duration_s": {
|
|
56
|
+
"type": "number"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"unevaluatedProperties": false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"unevaluatedProperties": false,
|
|
63
|
+
"required": ["event", "properties"]
|
|
64
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksWithdrawAmountView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"balance_usd": {
|
|
18
|
+
"type": "number",
|
|
19
|
+
"minimum": 0
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"unevaluatedProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false,
|
|
26
|
+
"required": ["event", "properties"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksWithdrawBlocked"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"error_type": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"READ_ONLY_WALLET_ACCOUNT",
|
|
21
|
+
"EXCHANGE_UNAVAILABLE",
|
|
22
|
+
"MUST_OPT_IN",
|
|
23
|
+
"LOW_SOL_RENT_EXEMPT_AMOUNT",
|
|
24
|
+
"ZERO_BALANCE",
|
|
25
|
+
"NOT_ENOUGH_BALANCE",
|
|
26
|
+
"LOW_FROM_AMOUNT",
|
|
27
|
+
"HIGH_FROM_AMOUNT",
|
|
28
|
+
"NOT_ENOUGH_FEE_BALANCE",
|
|
29
|
+
"EXACT_OUT_QUOTE",
|
|
30
|
+
"MARKET_CLOSED",
|
|
31
|
+
"ASSET_PAUSED",
|
|
32
|
+
"INTERNAL_ERROR",
|
|
33
|
+
"HIGH_RISK_TOKENS",
|
|
34
|
+
"INVALID_ADDRESS",
|
|
35
|
+
"INSUFFICIENT_LIQUIDITY",
|
|
36
|
+
"UNSUPPORTED_SWAP_MODE",
|
|
37
|
+
"RESTRICTED_REGION",
|
|
38
|
+
"AMOUNT_ABOVE_LIMIT",
|
|
39
|
+
"AMOUNT_BELOW_LIMIT",
|
|
40
|
+
"PAIR_UNAVAILABLE",
|
|
41
|
+
"EOS_ACCOUNT_CREATION_IN_PROGRESS",
|
|
42
|
+
"TRANSACTION_STUCK"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"amount_usd": {
|
|
46
|
+
"type": "number"
|
|
47
|
+
},
|
|
48
|
+
"balance_usd": {
|
|
49
|
+
"type": "number",
|
|
50
|
+
"minimum": 0
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"unevaluatedProperties": false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"unevaluatedProperties": false,
|
|
57
|
+
"required": ["event", "properties"]
|
|
58
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksWithdrawConfirmDismissed"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"amount_usd": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"confirm_ready": {
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
"duration_s": {
|
|
24
|
+
"type": "number"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"unevaluatedProperties": false
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"unevaluatedProperties": false,
|
|
31
|
+
"required": ["event", "properties"]
|
|
32
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksWithdrawConfirmView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"amount_usd": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"withdraw_all": {
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"unevaluatedProperties": false,
|
|
28
|
+
"required": ["event", "properties"]
|
|
29
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksWithdrawError"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"error_type": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["transfer_failed", "NO_QUOTE"]
|
|
20
|
+
},
|
|
21
|
+
"amount_usd": {
|
|
22
|
+
"type": "number"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"unevaluatedProperties": false,
|
|
29
|
+
"required": ["event", "properties"]
|
|
30
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksWithdrawSuccess"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"amount_usd": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"duration_s": {
|
|
21
|
+
"type": "number"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"unevaluatedProperties": false,
|
|
28
|
+
"required": ["event", "properties"]
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "StocksWithdraw"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"amount_usd": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"withdraw_all": {
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"unevaluatedProperties": false,
|
|
28
|
+
"required": ["event", "properties"]
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/analytics-validation",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "JSON schemas for analytics events, to prevent sensitive data from being sent up to the infamous cloud",
|
|
6
6
|
"author": "Exodus Movement, Inc.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/ExodusMovement/exodus
|
|
9
|
+
"url": "git+https://github.com/ExodusMovement/exodus.git"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://github.com/ExodusMovement/exodus
|
|
11
|
+
"homepage": "https://github.com/ExodusMovement/exodus/tree/master/libs/libraries/analytics-validation",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/ExodusMovement/exodus
|
|
14
|
+
"url": "https://github.com/ExodusMovement/exodus/issues?q=is%3Aissue+is%3Aopen+label%3Aanalytics-validation"
|
|
15
15
|
},
|
|
16
16
|
"main": "lib/index.js",
|
|
17
17
|
"types": "lib/index.d.ts",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"access": "public",
|
|
57
57
|
"provenance": false
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "167b6409ba2ff5e24dc84704f7cef7e1c8f66056"
|
|
60
60
|
}
|