Skip to content

Commit

Permalink
Update Marketplace contract definitions to v5+
Browse files Browse the repository at this point in the history
  • Loading branch information
0xFirekeeper committed Jan 18, 2024
1 parent feeed7c commit 413324a
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 96 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,37 +14,37 @@ public class ListingBase
[Parameter("uint256", "listingId", 1)]
public virtual BigInteger ListingId { get; set; }

[Parameter("address", "listingCreator", 2)]
public virtual string ListingCreator { get; set; }

[Parameter("address", "assetContract", 3)]
public virtual string AssetContract { get; set; }

[Parameter("uint256", "tokenId", 4)]
[Parameter("uint256", "tokenId", 2)]
public virtual BigInteger TokenId { get; set; }

[Parameter("uint256", "quantity", 5)]
[Parameter("uint256", "quantity", 3)]
public virtual BigInteger Quantity { get; set; }

[Parameter("address", "currency", 6)]
public virtual string Currency { get; set; }

[Parameter("uint256", "pricePerToken", 7)]
[Parameter("uint256", "pricePerToken", 4)]
public virtual BigInteger PricePerToken { get; set; }

[Parameter("uint128", "startTimestamp", 8)]
[Parameter("uint128", "startTimestamp", 5)]
public virtual BigInteger StartTimestamp { get; set; }

[Parameter("uint128", "endTimestamp", 9)]
[Parameter("uint128", "endTimestamp", 6)]
public virtual BigInteger EndTimestamp { get; set; }

[Parameter("bool", "reserved", 10)]
public virtual bool Reserved { get; set; }
[Parameter("address", "listingCreator", 7)]
public virtual string ListingCreator { get; set; }

[Parameter("address", "assetContract", 8)]
public virtual string AssetContract { get; set; }

[Parameter("uint8", "tokenType", 11)]
[Parameter("address", "currency", 9)]
public virtual string Currency { get; set; }

[Parameter("uint8", "tokenType", 10)]
public virtual byte TokenType { get; set; }

[Parameter("uint8", "status", 12)]
[Parameter("uint8", "status", 11)]
public virtual byte Status { get; set; }

[Parameter("bool", "reserved", 12)]
public virtual bool Reserved { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,39 @@ public class AuctionBase
[Parameter("uint256", "auctionId", 1)]
public virtual BigInteger AuctionId { get; set; }

[Parameter("address", "auctionCreator", 2)]
public virtual string AuctionCreator { get; set; }

[Parameter("address", "assetContract", 3)]
public virtual string AssetContract { get; set; }

[Parameter("uint256", "tokenId", 4)]
[Parameter("uint256", "tokenId", 2)]
public virtual BigInteger TokenId { get; set; }

[Parameter("uint256", "quantity", 5)]
[Parameter("uint256", "quantity", 3)]
public virtual BigInteger Quantity { get; set; }

[Parameter("address", "currency", 6)]
public virtual string Currency { get; set; }

[Parameter("uint256", "minimumBidAmount", 7)]
[Parameter("uint256", "minimumBidAmount", 4)]
public virtual BigInteger MinimumBidAmount { get; set; }

[Parameter("uint256", "buyoutBidAmount", 8)]
[Parameter("uint256", "buyoutBidAmount", 5)]
public virtual BigInteger BuyoutBidAmount { get; set; }

[Parameter("uint64", "timeBufferInSeconds", 9)]
[Parameter("uint64", "timeBufferInSeconds", 6)]
public virtual ulong TimeBufferInSeconds { get; set; }

[Parameter("uint64", "bidBufferBps", 10)]
[Parameter("uint64", "bidBufferBps", 7)]
public virtual ulong BidBufferBps { get; set; }

[Parameter("uint64", "startTimestamp", 11)]
[Parameter("uint64", "startTimestamp", 8)]
public virtual ulong StartTimestamp { get; set; }

[Parameter("uint64", "endTimestamp", 12)]
[Parameter("uint64", "endTimestamp", 9)]
public virtual ulong EndTimestamp { get; set; }

[Parameter("address", "auctionCreator", 10)]
public virtual string AuctionCreator { get; set; }

[Parameter("address", "assetContract", 11)]
public virtual string AssetContract { get; set; }

[Parameter("address", "currency", 12)]
public virtual string Currency { get; set; }

[Parameter("uint8", "tokenType", 13)]
public virtual byte TokenType { get; set; }

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ public class OfferBase
[Parameter("uint256", "offerId", 1)]
public virtual BigInteger OfferId { get; set; }

[Parameter("address", "offeror", 2)]
public virtual string Offeror { get; set; }

[Parameter("address", "assetContract", 3)]
public virtual string AssetContract { get; set; }

[Parameter("uint256", "tokenId", 4)]
[Parameter("uint256", "tokenId", 2)]
public virtual BigInteger TokenId { get; set; }

[Parameter("uint256", "quantity", 5)]
[Parameter("uint256", "quantity", 3)]
public virtual BigInteger Quantity { get; set; }

[Parameter("address", "currency", 6)]
public virtual string Currency { get; set; }

[Parameter("uint256", "totalPrice", 7)]
[Parameter("uint256", "totalPrice", 4)]
public virtual BigInteger TotalPrice { get; set; }

[Parameter("uint256", "expirationTimestamp", 8)]
[Parameter("uint256", "expirationTimestamp", 5)]
public virtual BigInteger ExpirationTimestamp { get; set; }

[Parameter("address", "offeror", 6)]
public virtual string Offeror { get; set; }

[Parameter("address", "assetContract", 7)]
public virtual string AssetContract { get; set; }

[Parameter("address", "currency", 8)]
public virtual string Currency { get; set; }

[Parameter("uint8", "tokenType", 9)]
public virtual byte TokenType { get; set; }

Expand Down

Large diffs are not rendered by default.

0 comments on commit 413324a

Please sign in to comment.