@exodus/analytics-validation 1.1.0-alpha.2 → 1.1.0-alpha.4
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 +12 -0
- package/package.json +2 -2
- package/schemasafe.config.js +1 -1
- package/src/dapps/d-app-sign-transaction-no-gas.schemasafe.json +30 -0
- package/src/exchange/exchange-no-gas.schemasafe.json +36 -0
- package/src/fiat/off-ramp-no-gas.schemasafe.json +30 -0
- package/src/home/home-edit-favorites-toggle.schemasafe.json +26 -0
- package/src/main.schemasafe.json +33 -0
- package/src/wallet/wallet-asset-send-no-gas.schemasafe.json +30 -0
- package/src/wallet/wallet-asset-view.schemasafe.json +27 -0
- package/src/wallet/wallet-exchange-detail-view.schemasafe.json +27 -0
- package/src/wallet/wallet-purchase-detail-view.schemasafe.json +27 -0
- package/src/wallet/wallet-sale-detail-view.schemasafe.json +27 -0
- package/src/wallet/wallet-staking-no-gas.schemasafe.json +26 -0
- package/src/wallet/wallet-transaction-detail-view.schemasafe.json +34 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
## [1.1.0-alpha.4](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.1.0-alpha.3...@exodus/analytics-validation@1.1.0-alpha.4) (2023-05-18)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **analytics-validation:** add NoGas schemas ([#1653](https://github.com/ExodusMovement/exodus-hydra/issues/1653)) ([2b0f37f](https://github.com/ExodusMovement/exodus-hydra/commit/2b0f37f275348f2d1bc7b21f6bf9d3c45e1b0b6e))
|
|
11
|
+
|
|
12
|
+
## [1.1.0-alpha.3](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.1.0-alpha.2...@exodus/analytics-validation@1.1.0-alpha.3) (2023-05-17)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- add validation for new home and wallet telemetry ([#1629](https://github.com/ExodusMovement/exodus-hydra/issues/1629)) ([af686f6](https://github.com/ExodusMovement/exodus-hydra/commit/af686f6cccb7c8517df3f8923794fb443ac97a59))
|
|
17
|
+
|
|
6
18
|
## [1.1.0-alpha.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.1.0-alpha.1...@exodus/analytics-validation@1.1.0-alpha.2) (2023-05-16)
|
|
7
19
|
|
|
8
20
|
### Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/analytics-validation",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.4",
|
|
4
4
|
"description": "The analytics-validation library",
|
|
5
5
|
"author": "Exodus Movement Inc",
|
|
6
6
|
"repository": {
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"eslint": "^8.33.0",
|
|
34
34
|
"jest": "^29.1.2"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "3b761a0b3870cce7c562ebdbcae311fce416aefa"
|
|
37
37
|
}
|
package/schemasafe.config.js
CHANGED
|
@@ -11,7 +11,7 @@ const getSchemas = ({ schemaDir, schemaNames }) => {
|
|
|
11
11
|
if (fs.statSync(schemaPath).isDirectory()) {
|
|
12
12
|
if (schemaName === '__tests__') continue
|
|
13
13
|
getSchemas({ schemaDir: schemaPath, schemaNames: fs.readdirSync(schemaPath) })
|
|
14
|
-
} else {
|
|
14
|
+
} else if (schemaName.endsWith('.json')) {
|
|
15
15
|
// primitive-type.schemafe.json -> primitive-type
|
|
16
16
|
const name = schemaName.slice(0, schemaName.indexOf('.'))
|
|
17
17
|
const schemaString = fs.readFileSync(schemaPath, 'utf8')
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "DAppSignTransactionNoGas"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["is_zero_balance", "connection_protocol"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"is_zero_balance": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"connection_protocol": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["WalletConnect"]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"unevaluatedProperties": false,
|
|
29
|
+
"required": ["event", "properties"]
|
|
30
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "ExchangeNoGas"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["is_zero_balance", "coin_or_token", "is_all", "user_amount_from_usd"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"is_zero_balance": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"coin_or_token": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["coin", "token"]
|
|
23
|
+
},
|
|
24
|
+
"is_all": {
|
|
25
|
+
"type": "boolean"
|
|
26
|
+
},
|
|
27
|
+
"user_amount_from_usd": {
|
|
28
|
+
"type": "number"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"unevaluatedProperties": false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"unevaluatedProperties": false,
|
|
35
|
+
"required": ["event", "properties"]
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "OffRampNoGas"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["is_zero_balance", "coin_or_token"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"is_zero_balance": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"coin_or_token": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["coin", "token"]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"unevaluatedProperties": false,
|
|
29
|
+
"required": ["event", "properties"]
|
|
30
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "HomeEditFavoritesToggle"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"toggled_on": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"unevaluatedProperties": false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false,
|
|
25
|
+
"required": ["event", "properties"]
|
|
26
|
+
}
|
package/src/main.schemasafe.json
CHANGED
|
@@ -54,6 +54,9 @@
|
|
|
54
54
|
{
|
|
55
55
|
"$ref": "d-app-sign-message-request#"
|
|
56
56
|
},
|
|
57
|
+
{
|
|
58
|
+
"$ref": "d-app-sign-transaction-no-gas#"
|
|
59
|
+
},
|
|
57
60
|
{
|
|
58
61
|
"$ref": "d-app-sign-transaction-request#"
|
|
59
62
|
},
|
|
@@ -69,6 +72,9 @@
|
|
|
69
72
|
{
|
|
70
73
|
"$ref": "exchange-configure-asset-swap#"
|
|
71
74
|
},
|
|
75
|
+
{
|
|
76
|
+
"$ref": "exchange-no-gas#"
|
|
77
|
+
},
|
|
72
78
|
{
|
|
73
79
|
"$ref": "exchange-order-create#"
|
|
74
80
|
},
|
|
@@ -99,6 +105,9 @@
|
|
|
99
105
|
{
|
|
100
106
|
"$ref": "fusion-profile-update#"
|
|
101
107
|
},
|
|
108
|
+
{
|
|
109
|
+
"$ref": "home-edit-favorites-toggle#"
|
|
110
|
+
},
|
|
102
111
|
{
|
|
103
112
|
"$ref": "home-news-tap#"
|
|
104
113
|
},
|
|
@@ -180,6 +189,9 @@
|
|
|
180
189
|
{
|
|
181
190
|
"$ref": "off-ramp-continue-tap#"
|
|
182
191
|
},
|
|
192
|
+
{
|
|
193
|
+
"$ref": "off-ramp-no-gas#"
|
|
194
|
+
},
|
|
183
195
|
{
|
|
184
196
|
"$ref": "off-ramp-provider-status-change#"
|
|
185
197
|
},
|
|
@@ -336,9 +348,15 @@
|
|
|
336
348
|
{
|
|
337
349
|
"$ref": "wallet-asset-receive-view#"
|
|
338
350
|
},
|
|
351
|
+
{
|
|
352
|
+
"$ref": "wallet-asset-send-no-gas#"
|
|
353
|
+
},
|
|
339
354
|
{
|
|
340
355
|
"$ref": "wallet-asset-send#"
|
|
341
356
|
},
|
|
357
|
+
{
|
|
358
|
+
"$ref": "wallet-asset-view#"
|
|
359
|
+
},
|
|
342
360
|
{
|
|
343
361
|
"$ref": "wallet-connect-connection-added#"
|
|
344
362
|
},
|
|
@@ -360,12 +378,24 @@
|
|
|
360
378
|
{
|
|
361
379
|
"$ref": "wallet-connect-initiate-connection#"
|
|
362
380
|
},
|
|
381
|
+
{
|
|
382
|
+
"$ref": "wallet-exchange-detail-view#"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"$ref": "wallet-purchase-detail-view#"
|
|
386
|
+
},
|
|
363
387
|
{
|
|
364
388
|
"$ref": "wallet-receive-assets-view#"
|
|
365
389
|
},
|
|
390
|
+
{
|
|
391
|
+
"$ref": "wallet-sale-detail-view#"
|
|
392
|
+
},
|
|
366
393
|
{
|
|
367
394
|
"$ref": "wallet-staking-claim#"
|
|
368
395
|
},
|
|
396
|
+
{
|
|
397
|
+
"$ref": "wallet-staking-no-gas#"
|
|
398
|
+
},
|
|
369
399
|
{
|
|
370
400
|
"$ref": "wallet-staking-stake#"
|
|
371
401
|
},
|
|
@@ -375,6 +405,9 @@
|
|
|
375
405
|
{
|
|
376
406
|
"$ref": "wallet-staking-view#"
|
|
377
407
|
},
|
|
408
|
+
{
|
|
409
|
+
"$ref": "wallet-transaction-detail-view#"
|
|
410
|
+
},
|
|
378
411
|
{
|
|
379
412
|
"$ref": "web3-browser-launch-dapp#"
|
|
380
413
|
},
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "WalletAssetSendNoGas"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["is_zero_balance", "coin_or_token"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"is_zero_balance": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"coin_or_token": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": ["coin", "token"]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"unevaluatedProperties": false,
|
|
29
|
+
"required": ["event", "properties"]
|
|
30
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "WalletAssetView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"origin": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["home", "edit-favorites", "wallet", "price-alerts", "top-movers", "profile"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"unevaluatedProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false,
|
|
26
|
+
"required": ["event", "properties"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "WalletExchangeDetailView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"origin": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["home", "recent-activity", "wallet-asset", "exchange"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"unevaluatedProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false,
|
|
26
|
+
"required": ["event", "properties"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "WalletPurchaseDetailView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"origin": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["home", "recent-activity", "wallet-asset", "on-ramp"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"unevaluatedProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false,
|
|
26
|
+
"required": ["event", "properties"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "WalletSaleDetailView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"origin": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["home", "recent-activity", "wallet-asset", "off-ramp"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"unevaluatedProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"unevaluatedProperties": false,
|
|
26
|
+
"required": ["event", "properties"]
|
|
27
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "WalletStakingNoGas"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["is_zero_balance"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"is_zero_balance": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"unevaluatedProperties": false
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"unevaluatedProperties": false,
|
|
25
|
+
"required": ["event", "properties"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"event": {
|
|
6
|
+
"const": "WalletTransactionDetailView"
|
|
7
|
+
},
|
|
8
|
+
"properties": {
|
|
9
|
+
"allOf": [
|
|
10
|
+
{
|
|
11
|
+
"$ref": "common-properties#"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": [],
|
|
16
|
+
"properties": {
|
|
17
|
+
"origin": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"home",
|
|
21
|
+
"recent-activity",
|
|
22
|
+
"wallet-asset",
|
|
23
|
+
"lightning",
|
|
24
|
+
"funds-received-notification",
|
|
25
|
+
"solana-pay"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"unevaluatedProperties": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"unevaluatedProperties": false,
|
|
33
|
+
"required": ["event", "properties"]
|
|
34
|
+
}
|