Skip to content

Commit 493055b

Browse files
authored
Merge pull request #334 from immutable/feat/update-zkevm-api-2024-10-29-03-57-34
feat: update immutable zkEVM API package
2 parents 0af90e3 + 61cd610 commit 493055b

File tree

7 files changed

+272
-161
lines changed

7 files changed

+272
-161
lines changed

src/Packages/ZkEvmApi/Documentation~/Listing.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**ListingId** | **string** | Global Order identifier |
88
**PriceDetails** | [**MarketPriceDetails**](MarketPriceDetails.md) | |
9-
**ConvertedPrices** | **Dictionary<string, string>** | A mapping of converted prices for major currencies such as ETH, USD. All converted prices are fee-inclusive. |
109
**TokenId** | **string** | Token ID |
1110
**ContractAddress** | **string** | ETH Address of collection that the asset belongs to |
1211
**Creator** | **string** | ETH Address of listing creator |

src/Packages/ZkEvmApi/Documentation~/MarketPriceDetails.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**Amount** | **string** | The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) |
1010
**FeeInclusiveAmount** | **string** | The token amount value. This value is provided in the smallest unit of the token (e.g. wei for ETH) |
1111
**Fees** | [**List<MarketPriceFees>**](MarketPriceFees.md) | |
12+
**ConvertedPrices** | **Dictionary<string, string>** | A mapping of converted prices for major currencies such as ETH, USD. All converted prices are fee-inclusive. |
1213

1314
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1415

src/Packages/ZkEvmApi/Documentation~/StacksApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ No authorization required
318318

319319
<a id="searchstacks"></a>
320320
# **SearchStacks**
321-
> SearchStacksResult SearchStacks (string chainName, List<string> contractAddress, string? accountAddress = null, bool? onlyIncludeOwnerListings = null, bool? onlyIfHasActiveListings = null, string? trait = null, string? keyword = null, string? sortBy = null, int? pageSize = null, string? pageCursor = null)
321+
> SearchStacksResult SearchStacks (string chainName, List<string> contractAddress, string? accountAddress = null, bool? onlyIncludeOwnerListings = null, bool? onlyIfHasActiveListings = null, string? traits = null, string? keyword = null, string? sortBy = null, int? pageSize = null, string? pageCursor = null)
322322
323323
Experimental: Search NFT stacks
324324

@@ -346,7 +346,7 @@ namespace Example
346346
var accountAddress = 0xe9b00a87700f660e46b6f5deaa1232836bcc07d3; // string? | Account address to filter by (optional)
347347
var onlyIncludeOwnerListings = true; // bool? | Whether to the listings should include only the owner created listings (optional)
348348
var onlyIfHasActiveListings = true; // bool? | Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks. (optional)
349-
var trait = "trait_example"; // string? | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional)
349+
var traits = "traits_example"; // string? | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\"rarity\": {\"values\": [\"common\", \"rare\"], \"condition\": \"eq\"}})) (optional)
350350
var keyword = sword; // string? | Keyword to search NFT name and description. Alphanumeric characters only. (optional)
351351
var sortBy = "cheapest_first"; // string? | Sort results in a specific order (optional)
352352
var pageSize = 100; // int? | Number of results to return per page (optional) (default to 100)
@@ -355,7 +355,7 @@ namespace Example
355355
try
356356
{
357357
// Experimental: Search NFT stacks
358-
SearchStacksResult result = apiInstance.SearchStacks(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, trait, keyword, sortBy, pageSize, pageCursor);
358+
SearchStacksResult result = apiInstance.SearchStacks(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, sortBy, pageSize, pageCursor);
359359
Debug.WriteLine(result);
360360
}
361361
catch (ApiException e)
@@ -376,7 +376,7 @@ This returns an ApiResponse object which contains the response data, status code
376376
try
377377
{
378378
// Experimental: Search NFT stacks
379-
ApiResponse<SearchStacksResult> response = apiInstance.SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, trait, keyword, sortBy, pageSize, pageCursor);
379+
ApiResponse<SearchStacksResult> response = apiInstance.SearchStacksWithHttpInfo(chainName, contractAddress, accountAddress, onlyIncludeOwnerListings, onlyIfHasActiveListings, traits, keyword, sortBy, pageSize, pageCursor);
380380
Debug.Write("Status Code: " + response.StatusCode);
381381
Debug.Write("Response Headers: " + response.Headers);
382382
Debug.Write("Response Body: " + response.Data);
@@ -398,7 +398,7 @@ catch (ApiException e)
398398
| **accountAddress** | **string?** | Account address to filter by | [optional] |
399399
| **onlyIncludeOwnerListings** | **bool?** | Whether to the listings should include only the owner created listings | [optional] |
400400
| **onlyIfHasActiveListings** | **bool?** | Filters results to include only stacks that have a current active listing. False and &#39;null&#39; return all unfiltered stacks. | [optional] |
401-
| **trait** | **string?** | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\&quot;rarity\&quot;: {\&quot;values\&quot;: [\&quot;common\&quot;, \&quot;rare\&quot;], \&quot;condition\&quot;: \&quot;eq\&quot;}})) | [optional] |
401+
| **traits** | **string?** | JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({\&quot;rarity\&quot;: {\&quot;values\&quot;: [\&quot;common\&quot;, \&quot;rare\&quot;], \&quot;condition\&quot;: \&quot;eq\&quot;}})) | [optional] |
402402
| **keyword** | **string?** | Keyword to search NFT name and description. Alphanumeric characters only. | [optional] |
403403
| **sortBy** | **string?** | Sort results in a specific order | [optional] |
404404
| **pageSize** | **int?** | Number of results to return per page | [optional] [default to 100] |

0 commit comments

Comments
 (0)