Skip to content

Commit 3f4f60d

Browse files
authored
Merge pull request #360 from immutable/feat/update-zkevm-api-2024-11-24-10-04-39
feat: update immutable zkEVM API package
2 parents 319275f + d24f80c commit 3f4f60d

File tree

5 files changed

+682
-71
lines changed

5 files changed

+682
-71
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**NftWithStack** | [**NFTWithStack**](NFTWithStack.md) | |
99
**Market** | [**Market**](Market.md) | |
10-
**Listings** | [**List<Listing>**](Listing.md) | List of open listings for the stack. |
10+
**Listings** | [**List<Listing>**](Listing.md) | List of open listings for the NFT. |
11+
**Bids** | [**List<Bid>**](Bid.md) | List of open bids for the NFT. |
1112

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

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
99
**StackCount** | **int** | Total count of NFTs in the stack matching the filter params |
1010
**Market** | [**Market**](Market.md) | |
1111
**Listings** | [**List<Listing>**](Listing.md) | List of open listings for the stack. |
12+
**Bids** | [**List<Bid>**](Bid.md) | List of open bids for the stack. |
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/Runtime/Model/NFTBundle.cs

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ protected NFTBundle() { }
4141
/// </summary>
4242
/// <param name="nftWithStack">nftWithStack (required).</param>
4343
/// <param name="market">market (required).</param>
44-
/// <param name="listings">List of open listings for the stack. (required).</param>
45-
public NFTBundle(NFTWithStack nftWithStack = default(NFTWithStack), Market market = default(Market), List<Listing> listings = default(List<Listing>))
44+
/// <param name="listings">List of open listings for the NFT. (required).</param>
45+
/// <param name="bids">List of open bids for the NFT. (required).</param>
46+
public NFTBundle(NFTWithStack nftWithStack = default(NFTWithStack), Market market = default(Market), List<Listing> listings = default(List<Listing>), List<Bid> bids = default(List<Bid>))
4647
{
4748
// to ensure "nftWithStack" is required (not null)
4849
if (nftWithStack == null)
@@ -62,6 +63,12 @@ protected NFTBundle() { }
6263
throw new ArgumentNullException("listings is a required property for NFTBundle and cannot be null");
6364
}
6465
this.Listings = listings;
66+
// to ensure "bids" is required (not null)
67+
if (bids == null)
68+
{
69+
throw new ArgumentNullException("bids is a required property for NFTBundle and cannot be null");
70+
}
71+
this.Bids = bids;
6572
}
6673

6774
/// <summary>
@@ -77,12 +84,19 @@ protected NFTBundle() { }
7784
public Market Market { get; set; }
7885

7986
/// <summary>
80-
/// List of open listings for the stack.
87+
/// List of open listings for the NFT.
8188
/// </summary>
82-
/// <value>List of open listings for the stack.</value>
89+
/// <value>List of open listings for the NFT.</value>
8390
[DataMember(Name = "listings", IsRequired = true, EmitDefaultValue = true)]
8491
public List<Listing> Listings { get; set; }
8592

93+
/// <summary>
94+
/// List of open bids for the NFT.
95+
/// </summary>
96+
/// <value>List of open bids for the NFT.</value>
97+
[DataMember(Name = "bids", IsRequired = true, EmitDefaultValue = true)]
98+
public List<Bid> Bids { get; set; }
99+
86100
/// <summary>
87101
/// Returns the string presentation of the object
88102
/// </summary>
@@ -94,6 +108,7 @@ public override string ToString()
94108
sb.Append(" NftWithStack: ").Append(NftWithStack).Append("\n");
95109
sb.Append(" Market: ").Append(Market).Append("\n");
96110
sb.Append(" Listings: ").Append(Listings).Append("\n");
111+
sb.Append(" Bids: ").Append(Bids).Append("\n");
97112
sb.Append("}\n");
98113
return sb.ToString();
99114
}

src/Packages/ZkEvmApi/Runtime/Model/StackBundle.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ protected StackBundle() { }
4343
/// <param name="stackCount">Total count of NFTs in the stack matching the filter params (required).</param>
4444
/// <param name="market">market (required).</param>
4545
/// <param name="listings">List of open listings for the stack. (required).</param>
46-
public StackBundle(Stack stack = default(Stack), int stackCount = default(int), Market market = default(Market), List<Listing> listings = default(List<Listing>))
46+
/// <param name="bids">List of open bids for the stack. (required).</param>
47+
public StackBundle(Stack stack = default(Stack), int stackCount = default(int), Market market = default(Market), List<Listing> listings = default(List<Listing>), List<Bid> bids = default(List<Bid>))
4748
{
4849
// to ensure "stack" is required (not null)
4950
if (stack == null)
@@ -64,6 +65,12 @@ protected StackBundle() { }
6465
throw new ArgumentNullException("listings is a required property for StackBundle and cannot be null");
6566
}
6667
this.Listings = listings;
68+
// to ensure "bids" is required (not null)
69+
if (bids == null)
70+
{
71+
throw new ArgumentNullException("bids is a required property for StackBundle and cannot be null");
72+
}
73+
this.Bids = bids;
6774
}
6875

6976
/// <summary>
@@ -93,6 +100,13 @@ protected StackBundle() { }
93100
[DataMember(Name = "listings", IsRequired = true, EmitDefaultValue = true)]
94101
public List<Listing> Listings { get; set; }
95102

103+
/// <summary>
104+
/// List of open bids for the stack.
105+
/// </summary>
106+
/// <value>List of open bids for the stack.</value>
107+
[DataMember(Name = "bids", IsRequired = true, EmitDefaultValue = true)]
108+
public List<Bid> Bids { get; set; }
109+
96110
/// <summary>
97111
/// Returns the string presentation of the object
98112
/// </summary>
@@ -105,6 +119,7 @@ public override string ToString()
105119
sb.Append(" StackCount: ").Append(StackCount).Append("\n");
106120
sb.Append(" Market: ").Append(Market).Append("\n");
107121
sb.Append(" Listings: ").Append(Listings).Append("\n");
122+
sb.Append(" Bids: ").Append(Bids).Append("\n");
108123
sb.Append("}\n");
109124
return sb.ToString();
110125
}

0 commit comments

Comments
 (0)