-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73f2955
commit db1f794
Showing
42 changed files
with
3,879 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import json | ||
import typing | ||
import typing_extensions | ||
from .api_instance import get_api_instance | ||
from openapi_evm_api.paths.nft_address_traits.get import RequestQueryParams, RequestPathParams | ||
|
||
|
||
|
||
class QueryParams(RequestQueryParams): | ||
pass | ||
|
||
class Params(QueryParams,RequestPathParams,): | ||
pass | ||
|
||
def get_nft_traits_by_collection(api_key: str, params: Params): | ||
api_instance = get_api_instance(api_key, params) | ||
query_params: typing.Any = {k: v for k, v in params.items() if k in RequestQueryParams.__annotations__.keys()} | ||
path_params: typing.Any = {k: v for k, v in params.items() if k in RequestPathParams.__annotations__.keys()} | ||
api_response = api_instance.get_nft_traits_by_collection( | ||
query_params=query_params, | ||
path_params=path_params, | ||
accept_content_types=( | ||
'application/json; charset=utf-8', | ||
), | ||
skip_deserialization=True | ||
) | ||
|
||
return json.loads(api_response.response.data) |
28 changes: 28 additions & 0 deletions
28
src/moralis/evm_api/nft/get_nft_traits_by_collection_paginate.py
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,28 @@ | ||
import json | ||
import typing | ||
import typing_extensions | ||
from .api_instance import get_api_instance | ||
from openapi_evm_api.paths.nft_address_traits_paginate.get import RequestQueryParams, RequestPathParams | ||
|
||
|
||
|
||
class QueryParams(RequestQueryParams): | ||
pass | ||
|
||
class Params(QueryParams,RequestPathParams,): | ||
pass | ||
|
||
def get_nft_traits_by_collection_paginate(api_key: str, params: Params): | ||
api_instance = get_api_instance(api_key, params) | ||
query_params: typing.Any = {k: v for k, v in params.items() if k in RequestQueryParams.__annotations__.keys()} | ||
path_params: typing.Any = {k: v for k, v in params.items() if k in RequestPathParams.__annotations__.keys()} | ||
api_response = api_instance.get_nft_traits_by_collection_paginate( | ||
query_params=query_params, | ||
path_params=path_params, | ||
accept_content_types=( | ||
'application/json; charset=utf-8', | ||
), | ||
skip_deserialization=True | ||
) | ||
|
||
return json.loads(api_response.response.data) |
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,28 @@ | ||
import json | ||
import typing | ||
import typing_extensions | ||
from .api_instance import get_api_instance | ||
from openapi_evm_api.paths.nft_address_traits_resync.get import RequestQueryParams, RequestPathParams | ||
|
||
|
||
|
||
class QueryParams(RequestQueryParams): | ||
pass | ||
|
||
class Params(QueryParams,RequestPathParams,): | ||
pass | ||
|
||
def resync_nft_rarity(api_key: str, params: Params): | ||
api_instance = get_api_instance(api_key, params) | ||
query_params: typing.Any = {k: v for k, v in params.items() if k in RequestQueryParams.__annotations__.keys()} | ||
path_params: typing.Any = {k: v for k, v in params.items() if k in RequestPathParams.__annotations__.keys()} | ||
api_response = api_instance.resync_nft_rarity( | ||
query_params=query_params, | ||
path_params=path_params, | ||
accept_content_types=( | ||
'application/json; charset=utf-8', | ||
), | ||
skip_deserialization=True | ||
) | ||
|
||
return json.loads(api_response.response.data) |
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,7 @@ | ||
from openapi_evm_api.paths.nft_address_traits.get import ApiForget | ||
|
||
|
||
class NftAddressTraits( | ||
ApiForget, | ||
): | ||
pass |
7 changes: 7 additions & 0 deletions
7
src/openapi_evm_api/apis/paths/nft_address_traits_paginate.py
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,7 @@ | ||
from openapi_evm_api.paths.nft_address_traits_paginate.get import ApiForget | ||
|
||
|
||
class NftAddressTraitsPaginate( | ||
ApiForget, | ||
): | ||
pass |
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,7 @@ | ||
from openapi_evm_api.paths.nft_address_traits_resync.get import ApiForget | ||
|
||
|
||
class NftAddressTraitsResync( | ||
ApiForget, | ||
): | ||
pass |
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.