@exodus/analytics-validation 3.3.0 → 3.6.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/common-properties.schemasafe.json +10 -0
- package/lib/events.d.ts +164 -0
- package/lib/exchange/exchange-swap.schemasafe.json +3 -0
- package/lib/exchange/exchange-time-trace.schemasafe.json +9 -0
- package/lib/main.schemasafe.json +93 -0
- package/lib/pay/pay-rewards-banner-dismiss.schemasafe.json +27 -0
- package/lib/pay/pay-rewards-banner-view.schemasafe.json +31 -0
- package/lib/pay/pay-rewards-dashboard-view.schemasafe.json +36 -0
- package/lib/pay/pay-rewards-disable.schemasafe.json +22 -0
- package/lib/pay/pay-rewards-join.schemasafe.json +50 -0
- package/lib/pay/pay-rewards-onboarding-dismiss.schemasafe.json +49 -0
- package/lib/pay/pay-rewards-onboarding-view.schemasafe.json +55 -0
- package/lib/pay/pay-rewards-redeem.schemasafe.json +36 -0
- package/lib/pay/pay-rewards-terms-view.schemasafe.json +34 -0
- package/lib/pay/pay-rewards-wishlist-submit.schemasafe.json +50 -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-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
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayRewardsOnboardingView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"step_name": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["welcome_preview", "intro", "store", "benefits", "join", "welcome"]
|
|
20
|
+
},
|
|
21
|
+
"entry_point": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"wallet_banner",
|
|
25
|
+
"pay_home_card",
|
|
26
|
+
"settings",
|
|
27
|
+
"dashboard_info",
|
|
28
|
+
"disable_sheet",
|
|
29
|
+
"cash_banner"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"intro_variant": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": ["new_user", "existing_pay_user"]
|
|
35
|
+
},
|
|
36
|
+
"is_informational": {
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
},
|
|
39
|
+
"resumed": {
|
|
40
|
+
"type": "boolean"
|
|
41
|
+
},
|
|
42
|
+
"credit_status": {
|
|
43
|
+
"type": ["string", "null"],
|
|
44
|
+
"enum": ["estimated", "confirmed", "delayed", "error", null]
|
|
45
|
+
},
|
|
46
|
+
"points": {
|
|
47
|
+
"type": ["number", "null"]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"unevaluatedProperties": false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"unevaluatedProperties": false,
|
|
54
|
+
"required": ["event", "properties"]
|
|
55
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayRewardsRedeem"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"success": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"points": {
|
|
21
|
+
"type": ["number", "null"]
|
|
22
|
+
},
|
|
23
|
+
"amount_usd": {
|
|
24
|
+
"type": ["number", "null"]
|
|
25
|
+
},
|
|
26
|
+
"error_type": {
|
|
27
|
+
"type": ["string", "null"],
|
|
28
|
+
"enum": ["insufficient_points", "conversion_disabled", "network", "other", null]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"unevaluatedProperties": false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"unevaluatedProperties": false,
|
|
35
|
+
"required": ["event", "properties"]
|
|
36
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayRewardsTermsView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"entry_point": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"wallet_banner",
|
|
21
|
+
"pay_home_card",
|
|
22
|
+
"settings",
|
|
23
|
+
"dashboard_info",
|
|
24
|
+
"disable_sheet",
|
|
25
|
+
"cash_banner"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"unevaluatedProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false,
|
|
33
|
+
"required": ["event", "properties"]
|
|
34
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "PayRewardsWishlistSubmit"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"store_selected": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"wishlist_selected": {
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"entry_point": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"enum": [
|
|
32
|
+
"wallet_banner",
|
|
33
|
+
"pay_home_card",
|
|
34
|
+
"settings",
|
|
35
|
+
"dashboard_info",
|
|
36
|
+
"disable_sheet",
|
|
37
|
+
"cash_banner"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"intro_variant": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": ["new_user", "existing_pay_user"]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"unevaluatedProperties": false
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"unevaluatedProperties": false,
|
|
49
|
+
"required": ["event", "properties"]
|
|
50
|
+
}
|
|
@@ -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,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
|
+
}
|