-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
token_type filter added in search_asset rpc method
- Loading branch information
1 parent
313cb5f
commit 7a7e13e
Showing
44 changed files
with
1,053 additions
and
17 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
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
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,26 @@ | ||
use sea_orm::{EntityTrait, EnumIter, Related, RelationDef, RelationTrait}; | ||
|
||
use crate::dao::{asset, token_accounts}; | ||
|
||
#[derive(Copy, Clone, Debug, EnumIter)] | ||
|
||
pub enum Relation { | ||
Asset, | ||
} | ||
|
||
impl RelationTrait for Relation { | ||
fn def(&self) -> RelationDef { | ||
match self { | ||
Self::Asset => token_accounts::Entity::belongs_to(asset::Entity) | ||
.from(token_accounts::Column::Mint) | ||
.to(asset::Column::Id) | ||
.into(), | ||
} | ||
} | ||
} | ||
|
||
impl Related<asset::Entity> for token_accounts::Entity { | ||
fn to() -> RelationDef { | ||
Relation::Asset.def() | ||
} | ||
} |
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
Binary file added
BIN
+224 Bytes
.../search_asset_with_token_type_all_scenario_1/42AYryUGNmJMe9ycBXZekkYvdTehgbtECHs7SLu5JJTB
Binary file not shown.
Binary file added
BIN
+312 Bytes
.../search_asset_with_token_type_all_scenario_1/7oSzJpyztTuK124EyPAw2nbF4Vaj2P9MU9vww1QN1k8p
Binary file not shown.
Binary file added
BIN
+824 Bytes
.../search_asset_with_token_type_all_scenario_1/7sVGLDmpnYqX5EvTg7i3tpRNEugeaUyDC9HtPSb3V3DS
Binary file not shown.
Binary file added
BIN
+224 Bytes
.../search_asset_with_token_type_all_scenario_1/8t77ShMViat27Sjphvi1FVPaGrhFcttPAkEnLCFp49Bo
Binary file not shown.
Binary file added
BIN
+824 Bytes
.../search_asset_with_token_type_all_scenario_1/DVHQquD7pQFUsBoPpW816CU8zQrQCua9mw4Znh9FyKZJ
Binary file not shown.
Binary file added
BIN
+312 Bytes
.../search_asset_with_token_type_all_scenario_1/HboN9TsoMSKJAp388G752pSUscb8iZwgdH459KSJxbZT
Binary file not shown.
Binary file added
BIN
+312 Bytes
...counts/search_asset_with_token_type_fungible/6BRNfDfdq1nKyU1TQiCEQLWyPtD8EwUH9Kt2ahsbidUx
Binary file not shown.
Binary file added
BIN
+824 Bytes
...counts/search_asset_with_token_type_fungible/7BajpcYgnxmWK91RhrfsdB3Tm83PcDwPvMC8ZinvtTY6
Binary file not shown.
Binary file added
BIN
+224 Bytes
...counts/search_asset_with_token_type_fungible/7EYnhQoR9YM3N7UoaKRoA44Uy8JeaZV3qyouov87awMs
Binary file not shown.
Binary file added
BIN
+312 Bytes
...ts/search_asset_with_token_type_non_fungible/47ackukZJRBkQSufwFnhTkmTzB11Ww8375EDXTwY75wk
Binary file not shown.
Binary file added
BIN
+224 Bytes
...ts/search_asset_with_token_type_non_fungible/8t77ShMViat27Sjphvi1FVPaGrhFcttPAkEnLCFp49Bo
Binary file not shown.
Binary file added
BIN
+224 Bytes
...ts/search_asset_with_token_type_non_fungible/AH6VcoSbCGGv8BHeN7K766VUWMcdFRTaXpLvGTLSdAmk
Binary file not shown.
Binary file added
BIN
+824 Bytes
...ts/search_asset_with_token_type_non_fungible/DVHQquD7pQFUsBoPpW816CU8zQrQCua9mw4Znh9FyKZJ
Binary file not shown.
Binary file added
BIN
+824 Bytes
...ts/search_asset_with_token_type_non_fungible/ELNshcVjEgQ6nSsogWEQjRTr9EaEHJzKcSenqe2kyx5J
Binary file not shown.
Binary file added
BIN
+312 Bytes
...ts/search_asset_with_token_type_non_fungible/HboN9TsoMSKJAp388G752pSUscb8iZwgdH459KSJxbZT
Binary file not shown.
Binary file added
BIN
+224 Bytes
...nts/search_asset_with_token_type_regular_nft/2w81QrLYTwSDkNwXgCqKAwrC1Tu6R9mh9BHcxys2Bup2
Binary file not shown.
Binary file added
BIN
+224 Bytes
...nts/search_asset_with_token_type_regular_nft/42AYryUGNmJMe9ycBXZekkYvdTehgbtECHs7SLu5JJTB
Binary file not shown.
Binary file added
BIN
+312 Bytes
...nts/search_asset_with_token_type_regular_nft/7oSzJpyztTuK124EyPAw2nbF4Vaj2P9MU9vww1QN1k8p
Binary file not shown.
Binary file added
BIN
+824 Bytes
...nts/search_asset_with_token_type_regular_nft/7sVGLDmpnYqX5EvTg7i3tpRNEugeaUyDC9HtPSb3V3DS
Binary file not shown.
Binary file added
BIN
+824 Bytes
...nts/search_asset_with_token_type_regular_nft/CyyZ43boZTaP4mJsbTVUpinFJGMQXSMstJvDeatpEo4S
Binary file not shown.
Binary file added
BIN
+312 Bytes
...unts/search_asset_with_token_type_regular_nft/iRjBSW4tnw42qxf3tycTYKki1d4bcETt9AfjEwoHYgy
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
...2w81QrLYTwSDkNwXgCqKAwrC1Tu6R9mh9BHcxys2Bup2/2w81QrLYTwSDkNwXgCqKAwrC1Tu6R9mh9BHcxys2Bup2
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,2 @@ | ||
|
||
�Ÿ���9����mR�i\����]� |
2 changes: 2 additions & 0 deletions
2
...42AYryUGNmJMe9ycBXZekkYvdTehgbtECHs7SLu5JJTB/42AYryUGNmJMe9ycBXZekkYvdTehgbtECHs7SLu5JJTB
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,2 @@ | ||
e9;�:�$f��E�v�KA� | ||
��\�%.��� |
Binary file added
BIN
+32 Bytes
...8t77ShMViat27Sjphvi1FVPaGrhFcttPAkEnLCFp49Bo/8t77ShMViat27Sjphvi1FVPaGrhFcttPAkEnLCFp49Bo
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...AH6VcoSbCGGv8BHeN7K766VUWMcdFRTaXpLvGTLSdAmk/AH6VcoSbCGGv8BHeN7K766VUWMcdFRTaXpLvGTLSdAmk
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 @@ | ||
.B�Q�*pp-���U������g����>� |
Binary file added
BIN
+3.91 KB
.../4URwUGBjbsF7UBUYdSC546tnBy7nD67txsso8D9CR9kGLtbbYh9NkGw15tEp16LLasmJX5VQR4Seh8gDjTrtdpoC
Binary file not shown.
Binary file added
BIN
+3.16 KB
.../4nKDSvw2kGpccZWLEPnfdP7J1SEexQFRP3xWc9NBtQ1qQeGu3bu5WnAdpcLbjQ4iyX6BQ5QGF69wevE8ZeeY5poA
Binary file not shown.
Binary file added
BIN
+3.91 KB
.../4URwUGBjbsF7UBUYdSC546tnBy7nD67txsso8D9CR9kGLtbbYh9NkGw15tEp16LLasmJX5VQR4Seh8gDjTrtdpoC
Binary file not shown.
Binary file added
BIN
+3.16 KB
.../4nKDSvw2kGpccZWLEPnfdP7J1SEexQFRP3xWc9NBtQ1qQeGu3bu5WnAdpcLbjQ4iyX6BQ5QGF69wevE8ZeeY5poA
Binary file not shown.
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
Oops, something went wrong.