@exodus/analytics-validation 1.0.1-alpha.4 → 1.0.1-alpha.6

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.
Files changed (189) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +2 -2
  3. package/schemasafe.config.js +1 -0
  4. package/src/app-session.schemasafe.json +2 -1
  5. package/src/asset-network-manual-refresh.schemasafe.json +12 -13
  6. package/src/backup-prompt-view.schemasafe.json +10 -11
  7. package/src/balance-fetch-network-error-notice.schemasafe.json +19 -20
  8. package/src/client-migration-run.schemasafe.json +19 -20
  9. package/src/common-properties.schemasafe.json +17 -22
  10. package/src/compound-finance-view.schemasafe.json +2 -1
  11. package/src/contact-support-email-send.schemasafe.json +2 -1
  12. package/src/contact-support-view.schemasafe.json +2 -1
  13. package/src/d-app-auto-approve-set.schemasafe.json +5 -1
  14. package/src/d-app-auto-approve-unset.schemasafe.json +5 -1
  15. package/src/d-app-connection-delete.schemasafe.json +5 -1
  16. package/src/d-app-connection-request.schemasafe.json +25 -23
  17. package/src/d-app-evm-chain-set.schemasafe.json +41 -0
  18. package/src/d-app-favorite-set.schemasafe.json +5 -1
  19. package/src/d-app-launch.schemasafe.json +5 -1
  20. package/src/d-app-network-switch-request.schemasafe.json +10 -8
  21. package/src/d-app-sign-message-request.schemasafe.json +21 -19
  22. package/src/d-app-sign-transaction-request.schemasafe.json +21 -19
  23. package/src/d-app-wallet-watch-asset.schemasafe.json +52 -0
  24. package/src/exchange-asset-swap.schemasafe.json +26 -27
  25. package/src/exchange-configure-asset-swap.schemasafe.json +20 -21
  26. package/src/exchange-order-create.schemasafe.json +119 -120
  27. package/src/exchange-order-flag.schemasafe.json +116 -117
  28. package/src/exchange-order-status-change.schemasafe.json +112 -113
  29. package/src/exchange-prompt-be-click.schemasafe.json +2 -1
  30. package/src/exchange-prompt-be-show.schemasafe.json +2 -1
  31. package/src/exchange-view.schemasafe.json +22 -23
  32. package/src/exodus-shares-view.schemasafe.json +2 -1
  33. package/src/exodus-transaction-broadcast-error.schemasafe.json +28 -29
  34. package/src/exodus-transaction-broadcast.schemasafe.json +28 -29
  35. package/src/fiat-view.schemasafe.json +22 -23
  36. package/src/fusion-profile-create.schemasafe.json +10 -11
  37. package/src/fusion-profile-read.schemasafe.json +10 -11
  38. package/src/fusion-profile-update.schemasafe.json +10 -11
  39. package/src/history-view.schemasafe.json +2 -1
  40. package/src/home-news-tap.schemasafe.json +20 -21
  41. package/src/home-portfolio-select.schemasafe.json +2 -1
  42. package/src/home-portfolio-swipe.schemasafe.json +2 -1
  43. package/src/home-portfolio-time-frame-select.schemasafe.json +10 -11
  44. package/src/home-suggestion-skip.schemasafe.json +35 -36
  45. package/src/home-suggestion-view.schemasafe.json +35 -36
  46. package/src/home-top-mover-tap.schemasafe.json +9 -10
  47. package/src/home-view.schemasafe.json +2 -1
  48. package/src/home-widget-rerank.schemasafe.json +22 -23
  49. package/src/home-widget-toggle.schemasafe.json +22 -23
  50. package/src/install-referrer-attribution.schemasafe.json +21 -22
  51. package/src/invite-friends-view.schemasafe.json +10 -11
  52. package/src/lightning-deposit-view.schemasafe.json +2 -1
  53. package/src/lightning-deposit.schemasafe.json +9 -10
  54. package/src/lightning-history-view.schemasafe.json +2 -1
  55. package/src/lightning-invoice-generated.schemasafe.json +9 -10
  56. package/src/lightning-lnur-view.schemasafe.json +2 -1
  57. package/src/lightning-onboarding-view.schemasafe.json +10 -11
  58. package/src/lightning-receive-funds.schemasafe.json +10 -11
  59. package/src/lightning-receive-view.schemasafe.json +10 -11
  60. package/src/lightning-send-view.schemasafe.json +10 -11
  61. package/src/lightning-send.schemasafe.json +9 -10
  62. package/src/lightning-terms-and-conditions.schemasafe.json +9 -10
  63. package/src/lightning-view.schemasafe.json +10 -11
  64. package/src/lightning-withdraw-view.schemasafe.json +2 -1
  65. package/src/lightning-withdraw.schemasafe.json +9 -10
  66. package/src/main.schemasafe.json +2 -2
  67. package/src/menu-view.schemasafe.json +2 -1
  68. package/src/network-easter-egg-activate.schemasafe.json +10 -11
  69. package/src/news-article-tap.schemasafe.json +20 -21
  70. package/src/news-view.schemasafe.json +2 -1
  71. package/src/nft-gallery-asset-receive-address-copy.schemasafe.json +2 -1
  72. package/src/nft-gallery-asset-receive-view.schemasafe.json +2 -1
  73. package/src/nft-gallery-asset-send-view.schemasafe.json +2 -1
  74. package/src/nft-gallery-asset-send.schemasafe.json +2 -1
  75. package/src/nft-gallery-asset-view.schemasafe.json +2 -1
  76. package/src/nft-gallery-view.schemasafe.json +2 -1
  77. package/src/nfts-proxy-server-get-image.schemasafe.json +16 -17
  78. package/src/notifications-system-permission-modal-enable-tap.schemasafe.json +9 -10
  79. package/src/notifications-system-permission-modal-view.schemasafe.json +2 -1
  80. package/src/off-ramp-configure-asset-sale.schemasafe.json +20 -21
  81. package/src/off-ramp-configure-asset-sell.schemasafe.json +10 -11
  82. package/src/off-ramp-continue-tap.schemasafe.json +31 -32
  83. package/src/off-ramp-provider-status-change.schemasafe.json +67 -68
  84. package/src/off-ramp-sale-confirm-view.schemasafe.json +10 -11
  85. package/src/off-ramp-sale-confirm.schemasafe.json +12 -13
  86. package/src/off-ramp-send-to-browser.schemasafe.json +10 -11
  87. package/src/off-ramp-view.schemasafe.json +10 -11
  88. package/src/on-ramp-configure-asset-purchase.schemasafe.json +10 -11
  89. package/src/on-ramp-continue-tap.schemasafe.json +21 -22
  90. package/src/on-ramp-disabled-view.schemasafe.json +10 -11
  91. package/src/on-ramp-payment-method-select.schemasafe.json +13 -14
  92. package/src/on-ramp-payment-method-view.schemasafe.json +10 -11
  93. package/src/on-ramp-provider-select.schemasafe.json +20 -21
  94. package/src/on-ramp-provider-status-change.schemasafe.json +73 -74
  95. package/src/on-ramp-provider-view.schemasafe.json +10 -11
  96. package/src/on-ramp-purchase-confirm.schemasafe.json +12 -13
  97. package/src/on-ramp-receive-from-browser.schemasafe.json +10 -11
  98. package/src/on-ramp-send-to-browser.schemasafe.json +10 -11
  99. package/src/on-ramp-view.schemasafe.json +10 -11
  100. package/src/onboarding-page-skipped.schemasafe.json +27 -28
  101. package/src/onboarding-page-view.schemasafe.json +27 -28
  102. package/src/onboarding-password-creation-confirm.schemasafe.json +2 -1
  103. package/src/onboarding-password-creation-initiate.schemasafe.json +2 -1
  104. package/src/onboarding-seed-create.schemasafe.json +2 -1
  105. package/src/onboarding-seed-input.schemasafe.json +2 -1
  106. package/src/portfolio-view.schemasafe.json +2 -1
  107. package/src/profile-edit-change-avatar.schemasafe.json +2 -1
  108. package/src/profile-edit-change-name.schemasafe.json +2 -1
  109. package/src/profile-edit-view.schemasafe.json +2 -1
  110. package/src/receive-select-asset-view.schemasafe.json +10 -11
  111. package/src/referral-code-input.schemasafe.json +9 -10
  112. package/src/referral-opt-in.schemasafe.json +10 -11
  113. package/src/referral-program-banner-view.schemasafe.json +10 -11
  114. package/src/referral-program-kyc-completion.schemasafe.json +12 -13
  115. package/src/referral-program-kyc-page-view.schemasafe.json +10 -11
  116. package/src/referral-program-partner-assignment.schemasafe.json +12 -13
  117. package/src/referral-program-referral-activation.schemasafe.json +13 -14
  118. package/src/referral-program-referral-code-page-view.schemasafe.json +10 -11
  119. package/src/referral-program-revenue-share-activity.schemasafe.json +23 -24
  120. package/src/referral-program-send-to-kyc.schemasafe.json +13 -14
  121. package/src/restore-wallet-seed-input.schemasafe.json +16 -17
  122. package/src/rewards-view.schemasafe.json +2 -1
  123. package/src/securitize-account-link.schemasafe.json +2 -1
  124. package/src/security-auto-lock-time-set.schemasafe.json +9 -10
  125. package/src/security-backup-created.schemasafe.json +2 -1
  126. package/src/security-backup-creation-initiated.schemasafe.json +2 -1
  127. package/src/security-backup-vault-view.schemasafe.json +19 -20
  128. package/src/security-backups-screen-view.schemasafe.json +10 -11
  129. package/src/security-private-key-view.schemasafe.json +2 -1
  130. package/src/security-secret-phrase-screen-view.schemasafe.json +19 -20
  131. package/src/send-select-asset-view.schemasafe.json +2 -1
  132. package/src/settings-advanced-mode-toggle.schemasafe.json +9 -10
  133. package/src/settings-auto-connect-toggle.schemasafe.json +9 -10
  134. package/src/settings-default-wallet-toggle.schemasafe.json +9 -10
  135. package/src/settings-lightning-higher-limits-toggle.schemasafe.json +9 -10
  136. package/src/settings-notifications-activity-product-toggle.schemasafe.json +9 -10
  137. package/src/settings-notifications-allow-toggle.schemasafe.json +9 -10
  138. package/src/settings-notifications-special-offers-toggle.schemasafe.json +9 -10
  139. package/src/settings-notifications-view.schemasafe.json +2 -1
  140. package/src/settings-preferred-currency-set.schemasafe.json +10 -11
  141. package/src/settings-restore-from-backup-view.schemasafe.json +10 -11
  142. package/src/settings-restore-wallet-screen-view.schemasafe.json +2 -1
  143. package/src/solana-mobile-adapter-enable.schemasafe.json +9 -10
  144. package/src/solana-pay-qr-code-reader-view.schemasafe.json +28 -29
  145. package/src/solana-pay-transaction-confirm.schemasafe.json +28 -29
  146. package/src/solana-pay-transaction-confirmation-view.schemasafe.json +28 -29
  147. package/src/support-knowledge-base-send-to-browser.schemasafe.json +2 -1
  148. package/src/support-status-send-to-browser.schemasafe.json +2 -1
  149. package/src/support-view.schemasafe.json +2 -1
  150. package/src/telemetry-collection-decision.schemasafe.json +9 -10
  151. package/src/unknown-event.schemasafe.json +2 -1
  152. package/src/wallet-asset-copy-receive-address.schemasafe.json +2 -1
  153. package/src/wallet-asset-manager-toggle.schemasafe.json +9 -10
  154. package/src/wallet-asset-manager-view.schemasafe.json +2 -1
  155. package/src/wallet-asset-network-manual-refresh.schemasafe.json +12 -13
  156. package/src/wallet-asset-receive-view.schemasafe.json +10 -11
  157. package/src/wallet-asset-send-view.schemasafe.json +2 -1
  158. package/src/wallet-asset-send.schemasafe.json +9 -10
  159. package/src/wallet-asset-view.schemasafe.json +2 -1
  160. package/src/wallet-connect-activity-detail-view.schemasafe.json +2 -1
  161. package/src/wallet-connect-activity-view.schemasafe.json +2 -1
  162. package/src/wallet-connect-connection-added.schemasafe.json +10 -11
  163. package/src/wallet-connect-connection-deleted.schemasafe.json +10 -11
  164. package/src/wallet-connect-disconnect-all.schemasafe.json +12 -13
  165. package/src/wallet-connect-edit-connection-update.schemasafe.json +10 -11
  166. package/src/wallet-connect-edit-connection-view.schemasafe.json +10 -11
  167. package/src/wallet-connect-fiat-on-ramp-cta-tap.schemasafe.json +10 -11
  168. package/src/wallet-connect-initiate-connection.schemasafe.json +10 -11
  169. package/src/wallet-connect-view.schemasafe.json +2 -1
  170. package/src/wallet-custom-token-add.schemasafe.json +2 -1
  171. package/src/wallet-exchange-detail-view.schemasafe.json +2 -1
  172. package/src/wallet-portfolio-create.schemasafe.json +2 -1
  173. package/src/wallet-portfolio-select.schemasafe.json +2 -1
  174. package/src/wallet-receive-assets-view.schemasafe.json +10 -11
  175. package/src/wallet-staking-claim.schemasafe.json +9 -10
  176. package/src/wallet-staking-stake.schemasafe.json +9 -10
  177. package/src/wallet-staking-unstake.schemasafe.json +9 -10
  178. package/src/wallet-staking-view.schemasafe.json +12 -13
  179. package/src/wallet-transaction-detail-view.schemasafe.json +2 -1
  180. package/src/wallet-view.schemasafe.json +2 -1
  181. package/src/web3-browser-home-tap.schemasafe.json +2 -1
  182. package/src/web3-browser-launch-dapp.schemasafe.json +13 -14
  183. package/src/web3-browser-view.schemasafe.json +2 -1
  184. package/src/web3-explore-view.schemasafe.json +2 -1
  185. package/src/web3-favorites-view.schemasafe.json +2 -1
  186. package/src/web3-view.schemasafe.json +2 -1
  187. package/src/dapp-evm-chain-set.schemasafe.json +0 -39
  188. package/src/dapp-wallet-watch-asset.schemasafe.json +0 -50
  189. package/src/primitive-type.schemasafe.json +0 -35
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
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.0.1-alpha.6](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.0.1-alpha.5...@exodus/analytics-validation@1.0.1-alpha.6) (2023-04-20)
7
+
8
+ ### Bug Fixes
9
+
10
+ - `experiments` enum ([#1294](https://github.com/ExodusMovement/exodus-hydra/issues/1294)) ([433acd4](https://github.com/ExodusMovement/exodus-hydra/commit/433acd441040c5b51a2bde0c1fc6212ac518e302))
11
+ - `unevaluatedProperties: false` for events with only common properties ([#1303](https://github.com/ExodusMovement/exodus-hydra/issues/1303)) ([a91795d](https://github.com/ExodusMovement/exodus-hydra/commit/a91795dbfbb8198803b686ea71102f918abd6dec))
12
+ - add missing `dapp_origin` property in web3 events ([#1311](https://github.com/ExodusMovement/exodus-hydra/issues/1311)) ([123f7ec](https://github.com/ExodusMovement/exodus-hydra/commit/123f7ec475dfafc81f2d91ec89ae9b36d4be08c4))
13
+
14
+ ## [1.0.1-alpha.5](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.0.1-alpha.4...@exodus/analytics-validation@1.0.1-alpha.5) (2023-04-18)
15
+
16
+ ### Bug Fixes
17
+
18
+ - `allOf` usage with common properties ([#1284](https://github.com/ExodusMovement/exodus-hydra/issues/1284)) ([839c5cf](https://github.com/ExodusMovement/exodus-hydra/commit/839c5cf8f9b2e00abce504a0b55cf07a539d0576))
19
+
6
20
  ## [1.0.1-alpha.4](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/analytics-validation@1.0.1-alpha.3...@exodus/analytics-validation@1.0.1-alpha.4) (2023-04-16)
7
21
 
8
22
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/analytics-validation",
3
- "version": "1.0.1-alpha.4",
3
+ "version": "1.0.1-alpha.6",
4
4
  "description": "The analytics-validation library",
5
5
  "author": "Exodus Movement Inc",
6
6
  "repository": {
@@ -32,5 +32,5 @@
32
32
  "eslint": "^8.33.0",
33
33
  "jest": "^29.1.2"
34
34
  },
35
- "gitHead": "81cb733290310e7f045fb62f6db792368e916398"
35
+ "gitHead": "59213e7cc307d258a9615887c385d80b396fdcb6"
36
36
  }
@@ -35,4 +35,5 @@ module.exports = {
35
35
  locale: localeRegEx,
36
36
  },
37
37
  schemas,
38
+ mode: 'default',
38
39
  }
@@ -10,7 +10,8 @@
10
10
  {
11
11
  "$ref": "common-properties#"
12
12
  }
13
- ]
13
+ ],
14
+ "unevaluatedProperties": false
14
15
  }
15
16
  },
16
17
  "unevaluatedProperties": false,
@@ -9,21 +9,20 @@
9
9
  "allOf": [
10
10
  {
11
11
  "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "balance_changed": {
18
+ "type": "boolean"
12
19
  },
13
- {
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "balance_changed": {
18
- "type": "boolean"
19
- },
20
- "category": {
21
- "type": "string",
22
- "enum": ["BITCOIN_LIKE", "ETHEREUM_LIKE", "OTHER"]
23
- }
24
- }
20
+ "category": {
21
+ "type": "string",
22
+ "enum": ["BITCOIN_LIKE", "ETHEREUM_LIKE", "OTHER"]
25
23
  }
26
- ]
24
+ },
25
+ "unevaluatedProperties": false
27
26
  }
28
27
  },
29
28
  "unevaluatedProperties": false,
@@ -9,18 +9,17 @@
9
9
  "allOf": [
10
10
  {
11
11
  "$ref": "common-properties#"
12
- },
13
- {
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "origin": {
18
- "type": "string",
19
- "enum": ["enabling-passcode", "newly-funded-wallet"]
20
- }
21
- }
22
12
  }
23
- ]
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "origin": {
18
+ "type": "string",
19
+ "enum": ["enabling-passcode", "newly-funded-wallet"]
20
+ }
21
+ },
22
+ "unevaluatedProperties": false
24
23
  }
25
24
  },
26
25
  "unevaluatedProperties": false,
@@ -9,27 +9,26 @@
9
9
  "allOf": [
10
10
  {
11
11
  "$ref": "common-properties#"
12
- },
13
- {
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "network": {
18
- "type": "string",
19
- "enum": [
20
- "avalanchec",
21
- "bsc",
22
- "ethereum",
23
- "ethereumarbone",
24
- "fantommainnet",
25
- "matic",
26
- "rootstock",
27
- "solana"
28
- ]
29
- }
30
- }
31
12
  }
32
- ]
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "network": {
18
+ "type": "string",
19
+ "enum": [
20
+ "avalanchec",
21
+ "bsc",
22
+ "ethereum",
23
+ "ethereumarbone",
24
+ "fantommainnet",
25
+ "matic",
26
+ "rootstock",
27
+ "solana"
28
+ ]
29
+ }
30
+ },
31
+ "unevaluatedProperties": false
33
32
  }
34
33
  },
35
34
  "unevaluatedProperties": false,
@@ -9,28 +9,27 @@
9
9
  "allOf": [
10
10
  {
11
11
  "$ref": "common-properties#"
12
+ }
13
+ ],
14
+ "type": "object",
15
+ "required": [],
16
+ "properties": {
17
+ "migration_id": {
18
+ "type": "string",
19
+ "enum": [
20
+ "encrypt-fusion-storage",
21
+ "encrypt-orders-storage",
22
+ "encrypt-synced-balances-storage",
23
+ "encrypt-wallet-accounts-storage",
24
+ "nfts-hidden-config",
25
+ "revoke-connections"
26
+ ]
12
27
  },
13
- {
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "migration_id": {
18
- "type": "string",
19
- "enum": [
20
- "encrypt-fusion-storage",
21
- "encrypt-orders-storage",
22
- "encrypt-synced-balances-storage",
23
- "encrypt-wallet-accounts-storage",
24
- "nfts-hidden-config",
25
- "revoke-connections"
26
- ]
27
- },
28
- "success": {
29
- "type": "boolean"
30
- }
31
- }
28
+ "success": {
29
+ "type": "boolean"
32
30
  }
33
- ]
31
+ },
32
+ "unevaluatedProperties": false
34
33
  }
35
34
  },
36
35
  "unevaluatedProperties": false,
@@ -1,29 +1,21 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "description": "Common properties used by most of the events.",
3
+ "description": "Common properties used by most of the events. It explicitly omits the 'unevaluatedProperties' keyword to make it usable with 'allOf' syntax.",
4
4
  "type": "object",
5
5
  "required": [],
6
- "unevaluatedProperties": false,
7
- "additionalProperties": {
8
- "anyOf": [
9
- {
10
- "type": "string",
11
- "format": "any-string",
12
- "maxLength": 100
13
- },
14
- {
15
- "type": "number"
16
- },
17
- {
18
- "type": "boolean"
6
+ "definitions": {
7
+ "web3Properties": {
8
+ "description": "Common web3 events properties.",
9
+ "type": "object",
10
+ "required": [],
11
+ "properties": {
12
+ "dapp_domain": {
13
+ "type": "string",
14
+ "format": "uri-template"
15
+ }
19
16
  },
20
- {
21
- "type": "null"
22
- }
23
- ]
24
- },
25
- "propertyNames": {
26
- "pattern": "^\\w*$"
17
+ "$comment": "It explicitly omits the 'unevaluatedProperties' keyword to make it usable with 'allOf' syntax."
18
+ }
27
19
  },
28
20
  "properties": {
29
21
  "time": {
@@ -102,7 +94,10 @@
102
94
  "wallet-connect-dapps:enabled",
103
95
  "seedless:disabled",
104
96
  "seedless:enabled",
105
- "support-chat:on"
97
+ "support-chat:on",
98
+ "wallet-connect-dapps:enabled",
99
+ "wallet-connect:enabled",
100
+ "exchange-v2-21.8.12:v1"
106
101
  ]
107
102
  }
108
103
  },
@@ -10,7 +10,8 @@
10
10
  {
11
11
  "$ref": "common-properties#"
12
12
  }
13
- ]
13
+ ],
14
+ "unevaluatedProperties": false
14
15
  }
15
16
  },
16
17
  "unevaluatedProperties": false,
@@ -10,7 +10,8 @@
10
10
  {
11
11
  "$ref": "common-properties#"
12
12
  }
13
- ]
13
+ ],
14
+ "unevaluatedProperties": false
14
15
  }
15
16
  },
16
17
  "unevaluatedProperties": false,
@@ -10,7 +10,8 @@
10
10
  {
11
11
  "$ref": "common-properties#"
12
12
  }
13
- ]
13
+ ],
14
+ "unevaluatedProperties": false
14
15
  }
15
16
  },
16
17
  "unevaluatedProperties": false,
@@ -9,8 +9,12 @@
9
9
  "allOf": [
10
10
  {
11
11
  "$ref": "common-properties#"
12
+ },
13
+ {
14
+ "$ref": "common-properties#/definitions/web3Properties"
12
15
  }
13
- ]
16
+ ],
17
+ "unevaluatedProperties": false
14
18
  }
15
19
  },
16
20
  "unevaluatedProperties": false,
@@ -9,8 +9,12 @@
9
9
  "allOf": [
10
10
  {
11
11
  "$ref": "common-properties#"
12
+ },
13
+ {
14
+ "$ref": "common-properties#/definitions/web3Properties"
12
15
  }
13
- ]
16
+ ],
17
+ "unevaluatedProperties": false
14
18
  }
15
19
  },
16
20
  "unevaluatedProperties": false,
@@ -9,8 +9,12 @@
9
9
  "allOf": [
10
10
  {
11
11
  "$ref": "common-properties#"
12
+ },
13
+ {
14
+ "$ref": "common-properties#/definitions/web3Properties"
12
15
  }
13
- ]
16
+ ],
17
+ "unevaluatedProperties": false
14
18
  }
15
19
  },
16
20
  "unevaluatedProperties": false,
@@ -11,30 +11,32 @@
11
11
  "$ref": "common-properties#"
12
12
  },
13
13
  {
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "approved": {
18
- "type": "boolean"
19
- },
20
- "connection_origin": {
21
- "type": "string",
22
- "enum": ["banner", "default", "lucky-cat___en"]
23
- },
24
- "connection_protocol": {
25
- "type": "string",
26
- "enum": [
27
- "wallet-connect",
28
- "solana-adapter",
29
- "Solana Mobile Wallet Adapter",
30
- "dApp Browser",
31
- "Wallet Connect",
32
- "WalletConnect"
33
- ]
34
- }
35
- }
14
+ "$ref": "common-properties#/definitions/web3Properties"
36
15
  }
37
- ]
16
+ ],
17
+ "type": "object",
18
+ "required": [],
19
+ "properties": {
20
+ "approved": {
21
+ "type": "boolean"
22
+ },
23
+ "connection_origin": {
24
+ "type": "string",
25
+ "enum": ["banner", "default", "lucky-cat___en"]
26
+ },
27
+ "connection_protocol": {
28
+ "type": "string",
29
+ "enum": [
30
+ "wallet-connect",
31
+ "solana-adapter",
32
+ "Solana Mobile Wallet Adapter",
33
+ "dApp Browser",
34
+ "Wallet Connect",
35
+ "WalletConnect"
36
+ ]
37
+ }
38
+ },
39
+ "unevaluatedProperties": false
38
40
  }
39
41
  },
40
42
  "unevaluatedProperties": false,
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "DappEvmChainSet"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ },
13
+ {
14
+ "$ref": "common-properties#/definitions/web3Properties"
15
+ }
16
+ ],
17
+ "type": "object",
18
+ "required": [],
19
+ "properties": {
20
+ "chain_id": {
21
+ "type": "string",
22
+ "enum": [
23
+ "0x1",
24
+ "0x1e",
25
+ "0x1E",
26
+ "0x38",
27
+ "0x89",
28
+ "0xa",
29
+ "0xa4b1",
30
+ "0xa4ba",
31
+ "0xa86a",
32
+ "0xfa"
33
+ ]
34
+ }
35
+ },
36
+ "unevaluatedProperties": false
37
+ }
38
+ },
39
+ "unevaluatedProperties": false,
40
+ "required": ["event", "properties"]
41
+ }
@@ -9,8 +9,12 @@
9
9
  "allOf": [
10
10
  {
11
11
  "$ref": "common-properties#"
12
+ },
13
+ {
14
+ "$ref": "common-properties#/definitions/web3Properties"
12
15
  }
13
- ]
16
+ ],
17
+ "unevaluatedProperties": false
14
18
  }
15
19
  },
16
20
  "unevaluatedProperties": false,
@@ -9,8 +9,12 @@
9
9
  "allOf": [
10
10
  {
11
11
  "$ref": "common-properties#"
12
+ },
13
+ {
14
+ "$ref": "common-properties#/definitions/web3Properties"
12
15
  }
13
- ]
16
+ ],
17
+ "unevaluatedProperties": false
14
18
  }
15
19
  },
16
20
  "unevaluatedProperties": false,
@@ -11,15 +11,17 @@
11
11
  "$ref": "common-properties#"
12
12
  },
13
13
  {
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "approved": {
18
- "type": "boolean"
19
- }
20
- }
14
+ "$ref": "common-properties#/definitions/web3Properties"
21
15
  }
22
- ]
16
+ ],
17
+ "type": "object",
18
+ "required": [],
19
+ "properties": {
20
+ "approved": {
21
+ "type": "boolean"
22
+ }
23
+ },
24
+ "unevaluatedProperties": false
23
25
  }
24
26
  },
25
27
  "unevaluatedProperties": false,
@@ -11,26 +11,28 @@
11
11
  "$ref": "common-properties#"
12
12
  },
13
13
  {
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "approved": {
18
- "type": "boolean"
19
- },
20
- "connection_protocol": {
21
- "type": "string",
22
- "enum": [
23
- "wallet-connect",
24
- "solana-adapter",
25
- "Solana Mobile Wallet Adapter",
26
- "dApp Browser",
27
- "Wallet Connect",
28
- "WalletConnect"
29
- ]
30
- }
31
- }
14
+ "$ref": "common-properties#/definitions/web3Properties"
32
15
  }
33
- ]
16
+ ],
17
+ "type": "object",
18
+ "required": [],
19
+ "properties": {
20
+ "approved": {
21
+ "type": "boolean"
22
+ },
23
+ "connection_protocol": {
24
+ "type": "string",
25
+ "enum": [
26
+ "wallet-connect",
27
+ "solana-adapter",
28
+ "Solana Mobile Wallet Adapter",
29
+ "dApp Browser",
30
+ "Wallet Connect",
31
+ "WalletConnect"
32
+ ]
33
+ }
34
+ },
35
+ "unevaluatedProperties": false
34
36
  }
35
37
  },
36
38
  "unevaluatedProperties": false,
@@ -11,26 +11,28 @@
11
11
  "$ref": "common-properties#"
12
12
  },
13
13
  {
14
- "type": "object",
15
- "required": [],
16
- "properties": {
17
- "approved": {
18
- "type": "boolean"
19
- },
20
- "connection_protocol": {
21
- "type": "string",
22
- "enum": [
23
- "wallet-connect",
24
- "solana-adapter",
25
- "Solana Mobile Wallet Adapter",
26
- "dApp Browser",
27
- "Wallet Connect",
28
- "WalletConnect"
29
- ]
30
- }
31
- }
14
+ "$ref": "common-properties#/definitions/web3Properties"
32
15
  }
33
- ]
16
+ ],
17
+ "type": "object",
18
+ "required": [],
19
+ "properties": {
20
+ "approved": {
21
+ "type": "boolean"
22
+ },
23
+ "connection_protocol": {
24
+ "type": "string",
25
+ "enum": [
26
+ "wallet-connect",
27
+ "solana-adapter",
28
+ "Solana Mobile Wallet Adapter",
29
+ "dApp Browser",
30
+ "Wallet Connect",
31
+ "WalletConnect"
32
+ ]
33
+ }
34
+ },
35
+ "unevaluatedProperties": false
34
36
  }
35
37
  },
36
38
  "unevaluatedProperties": false,
@@ -0,0 +1,52 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "event": {
6
+ "const": "DappWalletWatchAsset"
7
+ },
8
+ "properties": {
9
+ "allOf": [
10
+ {
11
+ "$ref": "common-properties#"
12
+ },
13
+ {
14
+ "$ref": "common-properties#/definitions/web3Properties"
15
+ }
16
+ ],
17
+ "type": "object",
18
+ "required": [],
19
+ "properties": {
20
+ "options": {
21
+ "type": "object",
22
+ "required": [],
23
+ "properties": {
24
+ "address": {
25
+ "type": "string",
26
+ "format": "any-string"
27
+ },
28
+ "decimals": {
29
+ "type": "number"
30
+ },
31
+ "image": {
32
+ "type": "string",
33
+ "format": "any-string"
34
+ },
35
+ "symbol": {
36
+ "type": "string",
37
+ "format": "any-string"
38
+ }
39
+ },
40
+ "unevaluatedProperties": false
41
+ },
42
+ "type": {
43
+ "type": "string",
44
+ "format": "any-string"
45
+ }
46
+ },
47
+ "unevaluatedProperties": false
48
+ }
49
+ },
50
+ "unevaluatedProperties": false,
51
+ "required": ["event", "properties"]
52
+ }