-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧪 Extract schema to dedicated namespace (#18858)
* 🧪 Extract schema to dedicated namespace * ✏️ Fix syntax errors and dep issue * 🦞 Follow guidelines
- Loading branch information
1 parent
9362d12
commit ed427cf
Showing
13 changed files
with
101 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
(ns quo.components.wallet.network-amount.schema) | ||
|
||
(def ?schema | ||
[:=> | ||
[:catn | ||
[:props | ||
[:map {:closed true} | ||
[:amount {:optional true} [:maybe :string]] | ||
[:token {:optional true} [:or :keyword :string]] | ||
[:theme :schema.common/theme]]]] | ||
:any]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(ns quo.components.wallet.network-bridge.schema) | ||
|
||
(def ^:private ?network-bridge-status | ||
[:enum :add :loading :locked :disabled :default]) | ||
|
||
(def ?schema | ||
[:=> | ||
[:catn | ||
[:props | ||
[:map | ||
[:theme :schema.common/theme] | ||
[:network {:optional true} [:maybe :keyword]] | ||
[:status {:optional true} [:maybe ?network-bridge-status]] | ||
[:amount {:optional true} [:maybe :string]] | ||
[:container-style {:optional true} [:maybe :map]] | ||
[:on-press {:optional true} [:maybe fn?]]]]] | ||
:any]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(ns quo.components.wallet.network-routing.schema) | ||
|
||
(def ?schema | ||
[:=> | ||
[:catn | ||
[:props | ||
[:map | ||
[:networks {:optional true} | ||
[:maybe | ||
[:sequential | ||
[:map | ||
[:amount :int] | ||
[:max-amount :int] | ||
[:network-name [:or :string :keyword]]]]]] | ||
[:container-style {:optional true} [:maybe :map]] | ||
[:theme :schema.common/theme]]]] | ||
:any]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(ns quo.components.wallet.progress-bar.schema) | ||
|
||
(def ?schema | ||
[:=> | ||
[:catn | ||
[:props | ||
[:map | ||
[:customization-color {:optional true} [:maybe :schema.common/customization-color]] | ||
[:theme :schema.common/theme] | ||
[:progressed-value {:optional true} [:maybe [:or :string :int]]] | ||
[:full-width? {:optional true} [:maybe :boolean]]]]] | ||
:any]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(ns quo.components.wallet.required-tokens.schema) | ||
|
||
(def ?schema | ||
[:=> | ||
[:catn | ||
[:props | ||
[:map {:closed true} | ||
[:type [:enum :token :collectible]] | ||
[:amount {:optional true} [:maybe [:or :string :int]]] | ||
[:token {:optional true} [:maybe :string]] | ||
[:token-img-src {:optional true} [:maybe :schema.common/image-source]] | ||
[:collectible-img-src {:optional true} [:maybe :schema.common/image-source]] | ||
[:collectible-name {:optional true} [:maybe :string]] | ||
[:divider? {:optional true} [:maybe :boolean]] | ||
[:theme :schema.common/theme] | ||
[:container-style {:optional true} [:maybe :map]]]]] | ||
:any]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(ns quo.components.wallet.summary-info.schema) | ||
|
||
(def ?schema | ||
[:=> | ||
[:catn | ||
[:props | ||
[:map | ||
[:theme :schema.common/theme] | ||
[:type [:enum :status-account :saved-account :account :user]] | ||
[:account-props {:optional true} [:maybe :map]] | ||
[:networks? {:optional true} [:maybe :boolean]] | ||
[:values {:optional true} [:maybe :map]]]]] | ||
:any]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters